129 lines
5.2 MiB
129 lines
5.2 MiB
(self.webpackChunkstaffdb=self.webpackChunkstaffdb||[]).push([[792],{56806:(ei,rt,D)=>{"use strict";D.d(rt,{eh:()=>j,JP:()=>o,Lt:()=>_,R3:()=>d,oe:()=>E,q6:()=>m,h2:()=>h,rJ:()=>be,Qv:()=>ee,gs:()=>W,Xm:()=>_e});var r=D(1522);const d={lockCount:0,lock(){this.lockCount++},callbacks:[],callEffects(){if(this.lockCount--,this.lockCount<0)throw new Error("Unexpected Effect Call");if(0===this.lockCount){const z=this.callbacks;this.callbacks=[],z.forEach(X=>X())}}},L=(z,X)=>{if(!(z instanceof Object&&X instanceof Object))return z===X;const ye=Object.keys(z),xe=Object.keys(X);return ye.length===xe.length&&!ye.some(Ee=>z[Ee]!==X[Ee])};class j extends r.uA{constructor(){super(...arguments),this._pendingContext=this.context}componentWillReceiveProps(X,q){this._pendingContext=q??{}}shouldComponentUpdate(X,q){return!L(this.props,X)||!L(this.state,q)||!L(this.context,this._pendingContext)}}class o extends j{constructor(){super(...arguments),this._effects=[]}createEffects(){return[]}updateEffects(){}componentWillMount(){d.lock()}componentWillUpdate(X,q,ye){d.lock()}componentDidMount(){d.callbacks.push(()=>{this._effects=this.createEffects()}),d.callEffects()}componentDidUpdate(){d.callbacks.push(()=>this.updateEffects()),d.callEffects()}destroyEffects(){this._effects.forEach(X=>X.dispose())}componentWillUnmount(){this.destroyEffects()}}class E extends o{constructor(){super(...arguments),this.vDomElement=null}vDomUpdateClasses(){const X=this.vDomElement,q=X.className.length?X.className.split(" "):[],ye=q.filter(ge=>X.dxClasses.previous.indexOf(ge)<0),xe=X.dxClasses.previous.filter(ge=>q.indexOf(ge)<0);ye.forEach(ge=>{const Ee=X.dxClasses.removed.indexOf(ge);Ee>-1?X.dxClasses.removed.splice(Ee,1):X.dxClasses.added.push(ge)}),xe.forEach(ge=>{const Ee=X.dxClasses.added.indexOf(ge);Ee>-1?X.dxClasses.added.splice(Ee,1):X.dxClasses.removed.push(ge)})}componentDidMount(){const X=(0,r.UV)(this.$LI,!0);this.vDomElement=X,super.componentDidMount(),X.dxClasses=X.dxClasses||{removed:[],added:[],previous:[]},X.dxClasses.previous=X?.className.length?X.className.split(" "):[]}componentDidUpdate(){super.componentDidUpdate();const X=this.vDomElement;null!==X&&(X.dxClasses.added.forEach(q=>X.classList.add(q)),X.dxClasses.removed.forEach(q=>X.classList.remove(q)),X.dxClasses.previous=X.className.length?X.className.split(" "):[])}shouldComponentUpdate(X,q){const ye=super.shouldComponentUpdate(X,q);return ye&&this.vDomUpdateClasses(),ye}}let R=0;const m=function(z){const X=R++;return{id:X,defaultValue:z,Provider:class extends r.uA{getChildContext(){return Object.assign(Object.assign({},this.context),{[X]:this.props.value||z})}render(){return this.props.children}}}};class _{constructor(X,q){this.dependency=q,this.effect=X,this.destroy=X()}update(X){const q=this.dependency;X&&(this.dependency=X),(!X||X.some((ye,xe)=>q[xe]!==ye))&&(this.dispose(),this.destroy=this.effect())}dispose(){this.destroy&&this.destroy()}}const h=()=>new _(()=>{(0,r.mM)()},[]),s="a runtime error occured! Use Inferno in development environment to find the error.";function f(z){return null===z}function F(z,X,q,ye,xe,ge){const Ee=z.childFlags,he=z.children,Ie=z.props,ce=z.flags;if(1!==Ee){if(2===Ee)f(q)?(0,r._M)(he,X,ye,xe,null,ge):q=(q=ie(he,X,q,ye,xe,ge))?q.nextSibling:null;else if(16===Ee)f(q)?X.appendChild(document.createTextNode(he)):1!==X.childNodes.length||3!==q.nodeType?X.textContent=he:q.nodeValue!==he&&(q.nodeValue=he),q=null;else if(12&Ee){let de=!1;for(let pe=0,Be=he.length;pe<Be;++pe){const We=he[pe];f(q)||de&&(16&We.flags)>0?(0,r._M)(We,X,ye,xe,q,ge):q=(q=ie(We,X,q,ye,xe,ge))?q.nextSibling:null,de=(16&We.flags)>0}}if(!(8192&ce)){let de=null;for(;q;)de=q.nextSibling,X.removeChild(q),q=de}}else!f(X.firstChild)&&!function g(z,X){return!!(X&&X.dangerouslySetInnerHTML&&X.dangerouslySetInnerHTML.__html&&function I(z,X){const q=document.createElement("i");return q.innerHTML=X,q.innerHTML===z.innerHTML}(z,X.dangerouslySetInnerHTML.__html))}(X,Ie)&&(X.textContent="",448&ce&&(X.defaultValue=""))}function Q(z,X,q){if(3!==q.nodeType)X.replaceChild(z.dom=document.createTextNode(z.children),q);else{const ye=z.children;q.nodeValue!==ye&&(q.nodeValue=ye),z.dom=q}return z.dom}function ie(z,X,q,ye,xe,ge){const Ee=z.flags|=16384;return 14&Ee?function C(z,X,q,ye,xe,ge,Ee){const Ie=z.ref;let de;if(ge){const pe=(0,r.EW)(z,z.type,z.props||r.MZ,ye,xe,Ee);de=ie(pe.$LI,X,q,pe.$CX,xe,Ee),(0,r.Gg)(Ie,pe,Ee)}else{const pe=(0,r.zF)((0,r.F1)(z,ye));de=ie(pe,X,q,ye,xe,Ee),z.children=pe,(0,r.Hq)(z,Ee)}return de}(z,X,q,ye,xe,(4&Ee)>0,ge):481&Ee?function Y(z,X,q,ye,xe,ge){const Ee=z.props,he=z.className,Ie=z.flags,ce=z.ref;return xe=xe||(32&Ie)>0,1!==q.nodeType?((0,r.C4)(z,null,ye,xe,null,ge),X.replaceChild(z.dom,q)):(z.dom=q,F(z,q,q.firstChild,ye,xe,ge),f(Ee)||(0,r.vI)(z,Ie,Ee,q,xe),function b(z){return null==z}(he)?""!==q.className&&q.removeAttribute("class"):xe?q.setAttribute("class",he):q.className=he,(0,r.J4)(ce,q,ge)),z.dom}(z,X,q,ye,xe,ge):16&Ee?Q(z,X,q):512&Ee?z.dom=q:8192&Ee?function se(z,X,q,ye,xe,ge){const Ee=z.children;return 2===z.childFlags?(Q(Ee,X,q),Ee.dom):(F(z,X,q,ye,xe,ge),function x(z){let X,q;for(;z;){if(X=z.flags,2033&X)return z.dom;q=z.children,z=8192&X?2===z.childFlags?q:q[q.length-1]:4&X?q.$LI:q}return null}(Ee[Ee.length-1]))}(z,X,q,ye,xe,ge):(function k(z){throw z||(z=s),new Error(`Inferno Error: ${z}`)}(),null)}function ee(z,X,q){let ye=X.firstChild;if(f(ye))(0,r.XX)(z,X,q);else{const xe=[];for(function O(z){return null===z||!1===z||!0===z||void 0===z}(z)||(ye=ie(z,X,ye,{},!1,xe));ye&&(ye=ye.nextSibling);)X.removeChild(ye);if(xe.length>0){let ge;for(;void 0!==(ge=xe.shift());)ge()}}X.$V=z,function w(z){return"function"==typeof z}(q)&&q()}var re=D(55937);const ne=z=>{var X,q;return(null===(X=z.container)||void 0===X?void 0:X.get(0))||(null===(q=z.item)||void 0===q?void 0:q.get(0))};function _e(z,X,q){setTimeout(()=>{(0,r.XX)((0,re.n)(z,X),ne(X))},0)}const be=(z,X,q)=>{const ye=X[z];return!!ye&&"string"!=typeof ye},oe=new Set(["animationIterationCount","borderImageOutset","borderImageSlice","border-imageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","fillOpacity","flex","flexGrow","flexNegative","flexOrder","flexPositive","flexShrink","floodOpacity","fontWeight","gridColumn","gridRow","lineClamp","lineHeight","opacity","order","orphans","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),me=z=>"number"==typeof z||!Number.isNaN(Number(z)),we=(z,X)=>oe.has(z)?X:`${X}px`,N=/[A-Z]/g,G=z=>z.replace(N,"-$&").toLowerCase();function W(z){if(z instanceof Object)return Object.entries(z).reduce((X,[q,ye])=>(X[G(q)]=me(ye)?we(q,ye):ye,X),{})}},44703:(ei,rt,D)=>{"use strict";D.d(rt,{$Q:()=>E,B_:()=>L,FG:()=>j,Fc:()=>d,Hv:()=>m,Js:()=>h,bF:()=>_,rs:()=>o,tm:()=>v});var r=D(19057);const d=["de","en"],L=environment.APP_TITLE??"StaffDB",j=environment.culture??"de-DE",o=environment.language??"de",E=[{caption:"Mitarbeiter",path:"employee",loadChildren:()=>Promise.all([D.e(426),D.e(995),D.e(233),D.e(140)]).then(D.bind(D,50140)).then(s=>s.EmployeeModule),icon:"",messageCaption:"Employee"},{caption:"Abteilungen",path:"departments",loadChildren:()=>Promise.all([D.e(426),D.e(995),D.e(233),D.e(102)]).then(D.bind(D,86102)).then(s=>s.DepartmentModule),icon:"",messageCaption:"Department"},r.Ik,r.m0];var m=function(s){return s.Employee="employee",s.CostCentre="costcentre",s.Vendor="vendor",s.EmployeeStatus="employeestatus",s.Rang="rang",s.DocumentArt="documentart",s.Project="project",s.Department="department",s.WindreamSearch="windreamsearch",s.WindreamIndex="windreamindex",s.WindreamIndexToWindreamSearchToDepartment="windreamindextowindreamsearchtodepartment",s.WindreamSearchToDepartment="windreamsearchtodepartment",s.WindreamSearchItemToWindreamSearchToDepartment="windreamsearchitemtowindreamsearchtodepartment",s.WindreamSearchItem="windreamsearchitem",s.DocumentArtToDepartment="documentarttodepartment",s.EmployeeToDepartment="employeetodepartment",s.EmployeeToWebapp="employeetowebapp",s.WebApp="webapp",s.WebAppRole="webapprole",s.WebAppToDepartment="webapptodepartment",s.WebAppToWebAppRole="webapptowebapprole",s.EmployeeAttribute="employeeattribute",s.EmployeeToAttribute="employeetoattribute",s.WebAppAdditionalRole="webappadditionalrole",s.WebAppToWebAppAdditionalRole="webapptowebappadditionalrole",s.WindreamSearchToDepartmentCopyWindreamTile="windreamSearchToDepartment/CopyWindreamTile",s.DepartmentCopyWindreamTiles="department/copyWindreamTiles",s.Subsidiary="Subsidiary",s}(m||{}),_=function(s){return s[s.MainFunction=1]="MainFunction",s[s.AdditionalFunction=2]="AdditionalFunction",s}(_||{}),v=function(s){return s[s.Mitarbeiter=4]="Mitarbeiter",s}(v||{});const h=3e4},18406:(ei,rt,D)=>{"use strict";D.d(rt,{e:()=>Dp});var r=D(5194),d=D(18617),L=D(72318),j=D(76939),o=D(60177),E=D(54438),R=D(86600);let X=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[o.MD,R.yE,j.jc,R.pZ,L.w5,d.Pd,R.yE]})}return ft})();D(49969);var ye=D(47987);D(36860);const Je={provide:new E.nKC("mat-menu-scroll-strategy"),deps:[ye.hJ],useFactory:function xi(ft){return()=>ft.scrollStrategies.reposition()}};var ui=D(23980);let st=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[Je],imports:[o.MD,R.yE,R.pZ,ye.z_,ui.Gj,R.yE]})}return ft})();var Wt=D(85956),Vt=D(55911);D(14085),D(45024),D(89417);let po=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[R.yE,R.pZ,R.yE]})}return ft})();var sa=D(15311),Pr=D(74854),no=D(43684),ja=D(20962),Na=D(83269),uo=D(44613);const Nn={provide:new E.nKC("mat-select-scroll-strategy"),deps:[ye.hJ],useFactory:function ji(ft){return()=>ft.scrollStrategies.reposition()}};let Ho=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[Nn],imports:[o.MD,ye.z_,Na.zI,R.yE,ui.Gj,uo.C,Na.zI,R.yE]})}return ft})();const ws={provide:new E.nKC("mat-tooltip-scroll-strategy"),deps:[ye.hJ],useFactory:function hs(ft){return()=>ft.scrollStrategies.reposition({scrollThrottle:20})}};let gs=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[ws],imports:[d.Pd,o.MD,ye.z_,R.yE,R.yE,ui.Gj]})}return ft})();var _s=D(21413);let xs=(()=>{class ft{constructor(){this.changes=new _s.B,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(ve,ze,dt)=>{if(0==dt||0==ze)return`0 of ${dt}`;const ti=ve*ze;return`${ti+1} \u2013 ${ti<(dt=Math.max(dt,0))?Math.min(ti+ze,dt):ti+ze} of ${dt}`}}static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275prov=E.jDH({token:ft,factory:ft.\u0275fac,providedIn:"root"})}return ft})();const Il={provide:xs,deps:[[new E.Xx1,new E.kdw,xs]],useFactory:function oc(ft){return ft||new xs}};let Yi=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[Il],imports:[o.MD,Wt.wG,Ho,gs,R.yE]})}return ft})();D(28203),D(86648),D(84412),D(74402),D(7673),D(56977),D(96697);let Rs=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[ui.E9]})}return ft})(),nd=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[Rs,R.yE,R.yE]})}return ft})(),Qa=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[R.yE,R.pZ,R.yE]})}return ft})();D(18359);var lu=D(67336);D(53719),D(59042);let th=(()=>{class ft{constructor(){this.changes=new _s.B,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(ve,ze){return`${ve} \u2013 ${ze}`}formatYearRangeLabel(ve,ze){return`${ve} to ${ze}`}static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275prov=E.jDH({token:ft,factory:ft.\u0275fac,providedIn:"root"})}return ft})();const Ce={provide:new E.nKC("mat-datepicker-scroll-strategy"),deps:[ye.hJ],useFactory:function te(ft){return()=>ft.scrollStrategies.reposition()}};let jr=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[th,Ce],imports:[o.MD,Qa,ye.z_,d.Pd,j.jc,R.yE,ui.Gj]})}return ft})();var wr=D(224);let ka=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[R.Np,R.yE,R.Np,R.yE]})}return ft})();var qa=D(82153);let Cl=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[d.Pd,R.yE,R.yE]})}return ft})();var gl=D(90882),ls=D(99213);let Do=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({imports:[R.pZ,R.yE,R.yE]})}return ft})();D(57786),D(99172);const Gs=new E.nKC("mat-chips-default-options");let Jh=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[R.es,{provide:Gs,useValue:{separatorKeyCodes:[lu.Fm]}}],imports:[R.yE]})}return ft})();var Qh=D(1776);let Dp=(()=>{class ft{static#e=this.\u0275fac=function(ze){return new(ze||ft)};static#t=this.\u0275mod=E.$C({type:ft});static#i=this.\u0275inj=E.G2t({providers:[jr],imports:[r.$D,X,st,Wt.wG,Vt.s5,ls.m_,gl.vg,Cl,qa.Wh,ka,wr.mz,uo.C,Ho,Do,jr,Jh,gs,nd,Yi,ja.ic,Qh.A8,no.Dy,Pr.eB,sa.KR,po]})}return ft})()},92:(ei,rt,D)=>{"use strict";D.d(rt,{d:()=>ee});var r=D(60177),d=D(54438),L=D(89417),j=D(19664),o=D(33514),E=D(37712),R=D(94753),m=D(15311),_=D(18406),v=D(99830);let h=(()=>{class re{set greater(_e){this.valueFromExcl=_e,this.control?.updateValueAndValidity()}set notless(_e){this.valueFromIncl=_e,this.control?.updateValueAndValidity()}set notgreater(_e){this.valueToIncl=_e,this.control?.updateValueAndValidity()}set less(_e){this.valueToExcl=_e,this.control?.updateValueAndValidity()}set isValid(_e){this.valid=_e,this.control?.updateValueAndValidity()}constructor(){this.valid=!0}validate(_e){if(this.control=_e,null===_e.value||"undefined"===_e.value||""===_e.value)return null;const be=+_e.value;return(this.valueFromExcl||0===this.valueFromExcl)&&be<=this.valueFromExcl||(this.valueFromIncl||0===this.valueFromIncl)&&be<this.valueFromIncl||(this.valueToIncl||0===this.valueToIncl)&&be>this.valueToIncl||(this.valueToExcl||0===this.valueToExcl)&&be>=this.valueToExcl||!this.valid?{validateEqual:!1}:null}static#e=this.\u0275fac=function(be){return new(be||re)};static#t=this.\u0275dir=d.FsC({type:re,selectors:[["","hensel-validator",""]],inputs:{greater:"greater",notless:"notless",notgreater:"notgreater",less:"less",isValid:"isValid"},standalone:!0,features:[d.Jv_([{provide:L.cz,useExisting:(0,d.Rfq)(()=>re),multi:!0}])]})}return re})();var s=D(67336);let b=(()=>{class re{set henselDecimal(_e){this.noOfDecimals=_e}constructor(_e,be,oe){this.elementRef=_e,this.localeId=be,this.control=oe,this.focused=!1,this.noOfDecimals=2,this.transformAnyway=!1,this.henselDecimalAllowEmpty=!1,this.transform=(me,we)=>{const N=null==this.control.value;(this.transformAnyway||!this.focused)&&(!N||this.el.value)&&(this.el.value=(N||""===this.control.value)&&this.henselDecimalAllowEmpty?null:(0,r.ZV)(+this.control.value,this.localeId,`1.${me}-${we}`),this.transformAnyway=!1)},this.el=this.elementRef.nativeElement}useDirective(){return null!=this.noOfDecimals}onFocus(){this.useDirective()&&(this.previousValue=this.control.value,this.transform(0,this.noOfDecimals),this.focused=!0,this.el.select())}onKeyDown(_e){return!this.useDirective()||_e.which!==s._f||(_e.stopPropagation(),this.transformAnyway=!0,this.control.control.setValue(!this.previousValue&&this.henselDecimalAllowEmpty?this.previousValue:+(this.previousValue??0)),!1)}onBlur(_e){this.useDirective()&&(this.focused=!1,this.transform(this.noOfDecimals,this.noOfDecimals),(isNaN(this.control.value)||!this.control.value)&&!this.henselDecimalAllowEmpty&&this.control.control.setValue(0))}ngAfterViewInit(){}ngOnInit(){this.useDirective()&&(this.subscription=this.control.valueChanges.subscribe(()=>setTimeout(()=>{this.transform(this.noOfDecimals,this.noOfDecimals)},0)))}ngOnDestroy(){this.subscription?.unsubscribe()}static#e=this.\u0275fac=function(be){return new(be||re)(d.rXU(d.aKT),d.rXU(d.xe9),d.rXU(L.vO,8))};static#t=this.\u0275dir=d.FsC({type:re,selectors:[["","henselDecimal",""]],hostBindings:function(be,oe){1&be&&d.bIt("focus",function(we){return oe.onFocus(we.target.value)})("keydown",function(we){return oe.onKeyDown(we)})("blur",function(we){return oe.onBlur(we.target.value)})},inputs:{henselDecimal:"henselDecimal",henselDecimalAllowEmpty:"henselDecimalAllowEmpty"},standalone:!0})}return re})();var O=D(12748),w=D(62855),f=D(44613),k=D(224);const I=["cbInput"],x=["hs_matformfield"],g=["hensel_input"],C=[[["","hensel-input-textSuffix",""]],[["","hensel-input-suffix",""]],[["","hensel-input-error",""]]],F=["[hensel-input-textSuffix]","[hensel-input-suffix]","[hensel-input-error]"];function Y(re,ne){if(1&re&&(d.j41(0,"mat-label"),d.EFF(1),d.k0s()),2&re){const _e=d.XpG();d.R7$(),d.JRh(_e.label)}}function Q(re,ne){if(1&re&&(d.j41(0,"mat-hint")(1,"div"),d.EFF(2),d.nI1(3,"translate"),d.k0s()()),2&re){const _e=d.XpG();d.R7$(),d.Aen("color: red; background-color:"+_e.computedBackgroundColor+";"),d.R7$(),d.SpI(" ",d.bMT(3,3,_e.hint)," ")}}function se(re,ne){if(1&re&&(d.j41(0,"span",9),d.EFF(1),d.k0s()),2&re){const _e=d.XpG();d.R7$(),d.JRh(_e.getIcon())}}function ie(re,ne){if(1&re&&(d.j41(0,"mat-error"),d.EFF(1),d.k0s()),2&re){const _e=d.XpG();d.R7$(),d.SpI(" ",_e.errorMessageFn(_e.value)," ")}}let ee=(()=>{class re{get required(){return this._required}set required(_e){"string"==typeof _e&&(_e="false"!==_e),this.setRequired(_e),this.updateParent()}get disabled(){return this._disabled}set disabled(_e){this.setDisable("string"==typeof _e?"false"!==_e:_e)}set ngModel(_e){this.setValueInternally(_e,!0),this.lastValue=this._value}get ngModel(){return this.value}get value(){return this._value}get parent(){return this._parent}set parent(_e){this._parent=_e??this._parentForm,this.hsRequiredsubscription?.unsubscribe(),this.hsRequiredsubscription=this.parent?.valueChanges.subscribe(()=>this.checkRequired()),this.markAsTouchedDirty()}get canClear(){return this._canClear}set canClear(_e){this._canClear=_e}get title(){return this._title}set title(_e){this._title=_e}get lastValue(){return this._lastValue}set lastValue(_e){this._lastValue=_e}get formGroup(){return this.parent?.control}constructor(_e,be,oe){this.translate=_e,this.localeService=be,this._parentForm=oe,this._disabled=!1,this._value=null,this.ngModelChange=new d.bkB,this.width="100%",this.backgroundColor="inherit",this.type="text",this.id="",this.name="",this.hsClass="",this.autofocus=!1,this.autocomplete="",this._parent=null,this._canClear=!0,this.focus=new d.bkB,this.blur=new d.bkB,this.tabindex=0,this._title="",this.suffix="",this.prefix="",this.leadZero=!0,this.separatorLimit="0",this.itemsControl=new L.MJ,this.hasFocus=!1,this.showInputField=!0,this.initialised=!1,this.takeFocus=()=>{this.hasFocus=!0,this.focus.emit(this)},this.leaveFocus=()=>{this.hasFocus=!1,this.blur.emit(this)}}ngOnInit(){setTimeout(()=>{this.parent||(this.parent=this._parent)},0)}ngAfterViewInit(){setTimeout(()=>{this.initialised=!0,this.computedBackgroundColor=this.getBackgroundColor(this.hsElementRef.nativeElement)},0)}setDisable(_e){this._disabled=_e,this.disabled?this.itemsControl.disable():this.itemsControl.enable()}setRequired(_e){this._required=_e}setValueInternally(_e,be=!1){_e!==this._value&&(this._value=_e,this.itemsControl.setValue(this._value),be&&this.updateParent())}getBackgroundColor(_e){const be=window.getComputedStyle(_e,null).getPropertyValue("background-color");return"rgba(0, 0, 0, 0)"===be&&_e?.parentElement?this.getBackgroundColor(_e.parentElement):be}checkRequired(){this.requiredError()&&this.formGroup?.setErrors({required:!0})}requiredError(){let _e=this.required;return!this.disabled&&void 0!==_e&&!1!==_e&&this.isEmpty()}isEmpty(){return!this._value}updateParent(){}ngOnDestroy(){this.hsRequiredsubscription?.unsubscribe()}getIcon(){return this.displayIconFn?this.displayIconFn(this):null}markAsDirty(){this.hsMatFormField?._control?.ngControl?.control&&(this.hsMatFormField._control.ngControl.control.markAsDirty(),this.updateParent())}markAsTouched(){this.hsMatFormField?._control?.ngControl?.control&&(this.hsMatFormField._control.ngControl.control.markAsTouched(),this.updateParent())}markAsTouchedDirty(){this.hsMatFormField?._control?.ngControl?.control&&this.required&&this.isEmpty()&&(this.hsMatFormField._control.ngControl.control.markAsTouched(),this.hsMatFormField._control.ngControl.control.markAsDirty(),this.updateParent())}onChange(_e){_e!==this.value&&(this._value=_e,console.log("--",_e),this.updateParent(),this.ngModelChange.emit(_e))}static#e=this.\u0275fac=function(be){return new(be||re)(d.rXU(O.X),d.rXU(w.i),d.rXU(L.cV,8))};static#t=this.\u0275cmp=d.VBU({type:re,selectors:[["hensel-input"]],viewQuery:function(be,oe){if(1&be&&(d.GBs(m.cm,5),d.GBs(I,5),d.GBs(x,5),d.GBs(g,5)),2&be){let me;d.mGM(me=d.lsd())&&(oe.autocompleteTrigger=me.first),d.mGM(me=d.lsd())&&(oe.cbInput=me.first),d.mGM(me=d.lsd())&&(oe.hsMatFormField=me.first),d.mGM(me=d.lsd())&&(oe.hsElementRef=me.first)}},inputs:{required:"required",disabled:"disabled",validate:"validate",ngModel:"ngModel",label:"label",placeholder:"placeholder",width:"width",backgroundColor:"backgroundColor",hint:"hint",type:"type",displayIconFn:"displayIconFn",id:"id",name:"name",hsClass:"hsClass",autofocus:"autofocus",maxlength:"maxlength",readonly:"readonly",autocomplete:"autocomplete",parent:"parent",canClear:"canClear",defaultValue:"defaultValue",tabindex:"tabindex",errorMessageFn:"errorMessageFn",title:"title",mask:"mask",suffix:"suffix",prefix:"prefix",decimalMarker:"decimalMarker",thousandSeparator:"thousandSeparator",leadZero:"leadZero",separatorLimit:"separatorLimit",greater:"greater",notless:"notless",notgreater:"notgreater",less:"less",henselDecimal:"henselDecimal",henselDecimalAllowEmpty:"henselDecimalAllowEmpty"},outputs:{value:"value",ngModelChange:"ngModelChange",focus:"focus",blur:"blur"},standalone:!0,features:[d.aNF],ngContentSelectors:F,decls:16,vars:41,consts:[["hensel_input",""],["hs_matformfield",""],["cbInput",""],["tabindex","-1",1,"hs_div",3,"title"],[4,"ngIf"],["class","material-icons",4,"ngIf"],["matInput","","hensel-validator","",1,"mat-select-value-text",3,"blur","focus","input","type","maxlength","placeholder","formControl","required","readonly","name","autocomplete","id","tabindex","autofocus","mask","decimalMarker","thousandSeparator","prefix","suffix","leadZero","separatorLimit","greater","notless","notgreater","less","henselDecimal","henselDecimalAllowEmpty"],["matTextSuffix",""],["matSuffix",""],[1,"material-icons"]],template:function(be,oe){if(1&be){const me=d.RV6();d.NAR(C),d.j41(0,"span",3,0)(2,"mat-form-field",null,1),d.DNE(4,Y,2,1,"mat-label",4)(5,Q,4,5,"mat-hint",4)(6,se,2,1,"span",5),d.j41(7,"input",6,2),d.bIt("blur",function(){return d.eBV(me),d.Njj(oe.leaveFocus())})("focus",function(){return d.eBV(me),d.Njj(oe.takeFocus())})("input",function(N){return d.eBV(me),d.Njj(oe.onChange(N.target.value))}),d.k0s(),d.j41(9,"span",7),d.SdG(10),d.k0s(),d.j41(11,"span",8),d.SdG(12,1),d.k0s(),d.j41(13,"mat-error"),d.SdG(14,2),d.k0s(),d.DNE(15,ie,2,1,"mat-error",4),d.k0s()()}2&be&&(d.xc7("pointer-events",oe.disabled?"none":void 0)("width",oe.width),d.Y8G("title",oe.title),d.R7$(2),d.HbH("hs_form"+(oe.placeholder?"":" no-placeholder")+" "+oe.hsClass),d.xc7("background-color",oe.backgroundColor)("width",oe.width)("visibility",oe.showInputField?"visible":"hidden"),d.R7$(2),d.Y8G("ngIf",oe.label),d.R7$(),d.Y8G("ngIf",oe.hint),d.R7$(),d.Y8G("ngIf",oe.displayIconFn),d.R7$(),d.Y8G("type",oe.type)("maxlength",oe.maxlength)("placeholder",oe.placeholder)("formControl",oe.itemsControl)("required",oe.required)("readonly",oe.readonly)("name",oe.name)("autocomplete",oe.autocomplete)("id",oe.id)("tabindex",oe.showInputField?oe.tabindex:-1)("autofocus",oe.autofocus||""===oe.autofocus)("mask",oe.mask)("decimalMarker",oe.decimalMarker)("thousandSeparator",oe.thousandSeparator)("prefix",oe.prefix)("suffix",oe.suffix)("leadZero",oe.leadZero)("separatorLimit",oe.separatorLimit)("greater",oe.greater)("notless",oe.notless)("notgreater",oe.notgreater)("less",oe.less)("henselDecimal",oe.henselDecimal)("henselDecimalAllowEmpty",oe.henselDecimalAllowEmpty),d.R7$(8),d.Y8G("ngIf",oe.errorMessageFn))},dependencies:[r.MD,r.bT,_.e,f.k5,f.Ky,f.V3,f.aw,f.xZ,k.aL,L.YN,L.me,L.BC,L.YS,L.tU,L.X1,L.l_,o.L,E.U,j.h,j.D9,R.N,v.Zr,h,b],styles:[".cell_positive_balance{color:#76b82a} .cell_negative_balance{color:#b22222}.hs_div[_ngcontent-%COMP%]{outline:none;pointer-events:auto}.hs_pointer[_ngcontent-%COMP%]{cursor:pointer} .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 re})()},75445:(ei,rt,D)=>{"use strict";D.d(rt,{N:()=>w});var r=D(44232),d=D(74854),L=D(54438),j=D(19057),o=D(12748),E=D(60177),R=D(85956),m=D(99213),_=D(1776),v=D(89417),h=D(92),s=D(19664);function b(f,k){1&f&&L.nrm(0,"mat-spinner",13)}function O(f,k){if(1&f&&(L.j41(0,"p",14),L.EFF(1),L.k0s()),2&f){const I=L.XpG();L.R7$(),L.SpI(" ",I.errorMsg," ")}}let w=(()=>{class f{static#e=this.LOGIN_IS_SHOWN=!1;constructor(I,x,g,C,F){this.dialogRef=I,this.globals=x,this.translate=g,this.environment=F,this.hide=!0,this.showSpinner=!1,this.overHeader=this.globals.appTitleWithVersion,this.header=g.instant("core.caption.registration"),this.errorMsg=C.errorMsg,this.authorizationService=C.authorizationService,this.userSubscription=this.authorizationService.loginAction$.subscribe(Y=>{this.showSpinner=!1,Y.result?this.close():this.errorMsg=Y.errMsg})}ngAfterViewInit(){f.LOGIN_IS_SHOWN=!0}close(){this.dialogRef.close()}ngOnDestroy(){this.userSubscription.unsubscribe(),f.LOGIN_IS_SHOWN=!1}login(I,x){!I||!x||(this.showSpinner=!0,this.authorizationService.login(I,x))}static#t=this.\u0275fac=function(x){return new(x||f)(L.rXU(d.RN),L.rXU(j.RV),L.rXU(o.X),L.rXU(d.xh),L.rXU(r.i2))};static#i=this.\u0275cmp=L.VBU({type:f,selectors:[["app-login-popup"]],decls:22,vars:23,consts:[["popupForm","ngForm"],["loginname",""],["passw",""],[1,"PopupContainer"],[1,"messageOverHeader"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"PopupContent"],["class","spinner","mode","indeterminate",4,"ngIf"],["required","",1,"login-name",3,"keydown.enter","placeholder","readonly"],["required","",1,"login-password",3,"keydown.enter","placeholder","type","readonly"],["hensel-input-suffix","","mat-icon-button","","tabindex","-1",3,"click","disabled"],["mat-stroked-button","","color","accent",1,"login-btn-block",3,"click","disabled"],["class","login-error",4,"ngIf"],["mode","indeterminate",1,"spinner"],[1,"login-error"]],template:function(x,g){if(1&x){const C=L.RV6();L.j41(0,"form",3,0)(2,"a",4),L.EFF(3),L.k0s(),L.j41(4,"h3",5),L.EFF(5),L.k0s(),L.j41(6,"mat-dialog-content",6),L.DNE(7,b,1,0,"mat-spinner",7),L.j41(8,"hensel-input",8,1),L.nI1(10,"translate"),L.bIt("keydown.enter",function(Y){return L.eBV(C),L.Njj(Y.preventDefault())}),L.k0s(),L.j41(11,"hensel-input",9,2),L.nI1(13,"translate"),L.bIt("keydown.enter",function(Y){L.eBV(C);const Q=L.sdS(9),se=L.sdS(12);return Y.stopPropagation(),L.Njj(g.login(Q.value,se.value))}),L.j41(14,"button",10),L.nI1(15,"translate"),L.bIt("click",function(){return L.eBV(C),L.Njj(g.hide=!g.hide)}),L.j41(16,"mat-icon"),L.EFF(17),L.k0s()()(),L.j41(18,"button",11),L.bIt("click",function(){L.eBV(C);const Y=L.sdS(9),Q=L.sdS(12);return L.Njj(g.login(Y.value,Q.value))}),L.EFF(19),L.nI1(20,"translate"),L.k0s(),L.DNE(21,O,2,1,"p",12),L.k0s()()}if(2&x){let C;const F=L.sdS(9),Y=L.sdS(12);L.R7$(3),L.JRh(g.overHeader),L.R7$(2),L.JRh(g.header),L.R7$(2),L.Y8G("ngIf",g.showSpinner),L.R7$(),L.FS9("placeholder",L.bMT(10,15,null!==(C=g.environment.caption_loginname)&&void 0!==C?C:"core.caption.username")),L.Y8G("readonly",g.showSpinner),L.R7$(3),L.FS9("placeholder",L.bMT(13,17,"core.caption.password")),L.Y8G("type",g.hide?"password":"text")("readonly",g.showSpinner),L.R7$(3),L.Y8G("disabled",g.showSpinner),L.BMQ("aria-label",L.bMT(15,19,"core.caption.hidepassword"))("aria-pressed",g.hide),L.R7$(3),L.JRh(g.hide?"visibility_off":"visibility"),L.R7$(),L.Y8G("disabled",g.showSpinner||!F.value||!Y.value),L.R7$(),L.SpI(" ",L.bMT(20,21,"core.caption.login")," "),L.R7$(2),L.Y8G("ngIf",!!g.errorMsg)}},dependencies:[E.bT,R.iV,m.An,_.wS,d.KI,d.PQ,v.qT,v.cb,v.cV,h.d,s.D9],styles:['.cell_positive_balance{color:#76b82a} .cell_negative_balance{color:#b22222}.PopupContainer[_ngcontent-%COMP%]{width:330px;padding:4px 20px 10px;font-size:14px}@media only screen and (max-width: 520px){.PopupContainer[_ngcontent-%COMP%]{width:calc(100% - 40px)}}.messageOverHeader[_ngcontent-%COMP%]{color:#0b3a62;display:block;height:0px;top:-15px;left:-25px;position:relative}.login-header[_ngcontent-%COMP%]{color:#0b3a62;font-size:30px;margin:30px 0;font-weight:700}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-rows:auto auto auto auto;grid-template-columns:minmax(0,1fr);grid-column-gap:15px;grid-template-areas:"login-name" "login-password" "login-btn-block" "login-error"}.messageBoxHeader[_ngcontent-%COMP%]{text-align:center}.mat-stroked-button.mat-accent[_ngcontent-%COMP%]{color:#fff;background:#0b3a62}.login-error[_ngcontent-%COMP%]{padding:16px;color:#e71010;background-color:#78b7e5;border-color:#0b3a62}.login-btn-block[_ngcontent-%COMP%]{margin-top:20px;grid-area:login-btn-block}.login-name[_ngcontent-%COMP%]{grid-area:login-name}.login-password[_ngcontent-%COMP%]{grid-area:login-password}.spinner[_ngcontent-%COMP%]{margin-top:-140px;margin-left:35%;z-index:10}.mat-stroked-button[disabled][_ngcontent-%COMP%]{background-color:#00000042;color:#00000075}']})}return f})()},70753:(ei,rt,D)=>{"use strict";D.d(rt,{F:()=>R});var r=D(67336),d=D(54438),L=D(19057),j=D(74854),o=D(44613);const E=["popupForm"];let R=(()=>{class m{get focusedItem(){return this._focusedItem}set focusedItem(v){this._focusedItem=v}constructor(){this.readOnly=!1,this.data=(0,d.WQX)(j.xh),this.globals=(0,d.WQX)(L.RV),this.dialogRef=(0,d.WQX)(j.RN),this.save=this.save.bind(this),this.baseEntityWrapper=this.data.baseEntityWrapper,this.keyItemName=this.data.keyItemName,this.description=this.data.description,this.readOnly=this.data.readOnly,this.list=this.data.list,this._focusedItem=this.baseEntityWrapper?.entity}ngAfterViewInit(){this.lastDetailForm=this.baseEntityWrapper.detailForm,this.baseEntityWrapper.detailForm=this.detailForm;const v=this;setTimeout(()=>{v.materialInputFields.forEach(h=>h._control.ngControl.control.markAsDirty())},0)}close(v){this.baseEntityWrapper.detailForm=this.lastDetailForm,this.dialogRef.close(v)}popupKeyboardInput(v){return!(!this.baseEntityWrapper.keyDownListenerStopped&&v.which===r._f&&(v.stopPropagation(),this.cancel(),1))}cancel(){this.baseEntityWrapper.cancelWithSave(this.save,()=>this.close(!1))}save(){this.baseEntityWrapper.save(()=>this.close(!0))}static#e=this.\u0275fac=function(h){return new(h||m)};static#t=this.\u0275cmp=d.VBU({type:m,selectors:[["app-popup-base"]],viewQuery:function(h,s){if(1&h&&(d.GBs(E,5),d.GBs(o.Ky,5)),2&h){let b;d.mGM(b=d.lsd())&&(s.detailForm=b.first),d.mGM(b=d.lsd())&&(s.materialInputFields=b)}},hostBindings:function(h,s){1&h&&d.bIt("keydown",function(O){return s.popupKeyboardInput(O)},!1,d.tSv)},decls:0,vars:0,template:function(h,s){},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}']})}return m})()},33570:(ei,rt,D)=>{"use strict";D.d(rt,{AB:()=>o,DA:()=>h,Fc:()=>g,Jr:()=>v,Kn:()=>O,ME:()=>f,P9:()=>R,W1:()=>b,cX:()=>m,dr:()=>_,j$:()=>x,nm:()=>w,te:()=>I,vx:()=>k,zQ:()=>s});var r=D(60177),d=D(54438),L=D(97586);const o="https://api.ipify.org/?format=json",R="LoginWithAuthorization",m="LoginWithJWT",_="LoginWithNameAndPassword",v="Benutzerauthentifizierung ist abgelaufen!",h="cancel_error",s=401;var b=function(C){return C.returnRequestColor="green",C.startRequestColor="blue",C.showSpinnerColor="gray",C.hideSpinnerColor="red",C}(b||{});const O={parse:{dateInput:"DD.MM.YYYY"},display:{dateInput:"DD.MM.YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY",monthShortName:"MMM",date4WebAPI:"yyyy-MM-dd",dateTime4JSON:"yyyy-MM-ddTHH:mm:ss.SSS",dateFormat:"dd.MM.yyyy",dateTimeFormat:"dd.MM.yyyy HH:mm",dateFormatHensel:"d MMM YYYY",momentFormat:{date4WebAPI:"YYYY-MM-DD",dateTime4JSON:"YYYY-MM-DDTHH:mm:ss.SSS",dateFormat:"DD.MM.YYYY",dateTimeFormat:"DD.MM.YYYY HH:mm"},timeFormat:"HH:mm"}};var w=function(C){return C.message="Message",C.warning="Warning",C.error="Error",C.confirmation="Question",C.guid_message="HTTPtiming",C.debug_message="Debug",C}(w||{}),f=function(C){return C[C.unknown=0]="unknown",C[C.loginWithNameAndPassword=1]="loginWithNameAndPassword",C[C.jwt=2]="jwt",C[C.windowsAuthorizatoin=3]="windowsAuthorizatoin",C}(f||{}),k=function(C){return C[C.WebAPI=0]="WebAPI",C[C.Date=1]="Date",C[C.DateTime=2]="DateTime",C[C.JSON=3]="JSON",C}(k||{});Date.prototype.toJSON=function(){return(0,r.Yq)(this,O.display.dateTime4JSON,d.qyG)},L.fn.toJSON=function(){return this.format(O.display.momentFormat.dateTime4JSON)};const I=21,x=[{culture:"de-DE",country:"core.caption.country-ge",languageName:"core.caption.lang-ge"},{culture:"de-AT",country:"core.caption.country-at",languageName:"core.caption.lang-at"},{culture:"en-GB",country:"core.caption.country-gb",languageName:"core.caption.lang-gb"},{culture:"en-US",country:"core.caption.country-us",languageName:"core.caption.lang-us"},{culture:"en-AU",country:"core.caption.country-au",languageName:"core.caption.lang-au"},{culture:"fr-FR",country:"core.caption.country-fr",languageName:"core.caption.lang-fr"},{culture:"en-MY",country:"core.caption.country-my",languageName:"core.caption.lang-my"}],g=[{langCode:"de",languageName:"core.caption.lang-ge"},{langCode:"en",languageName:"core.caption.lang-us"},{langCode:"fr",languageName:"core.caption.lang-fr"}]},44232:(ei,rt,D)=>{"use strict";D.d(rt,{DG:()=>j,Fz:()=>E,XA:()=>R,dQ:()=>o,i2:()=>d,pj:()=>L});var r=D(54438);const d=new r.nKC("environment"),L=new r.nKC("Languages supported by App"),j=new r.nKC("Culturess supported by App"),o=new r.nKC("APPICON4TEST_TOKEN",{providedIn:"root",factory:()=>"assets/icons/hr-logo_red.ico"}),E=new r.nKC("APPICON4LIVE_TOKEN",{providedIn:"root",factory:()=>"assets/icons/hr-logo_color.ico"}),R=new r.nKC("APPICON4NAVBAR_TOKEN",{providedIn:"root",factory:()=>"assets/icons/hr-logo_bright.ico"})},61999:(ei,rt,D)=>{"use strict";D.d(rt,{j:()=>L});var r=D(57764),d=D(19057);class L extends r.H{constructor(){super(...arguments),this.typeName=d.lp.User}get entityId(){return this.webAppUserId}set entityId(o){this.webAppUserId=o}get isAdmin(){return this.isInRolle("sDigital Data - IIM-Administratoren")}get isMaster(){return this.isInRolle("sDigital Data - IIM-Administratoren")||this.isInRolle("departmentmaster")||this.isAdmin}isInRolle(o){return o=o?.toLowerCase(),this.roleList.toLowerCase().includes(o)}assign(o){return super.assign(o),this.jwtExpiredOn&&"object"!=typeof this.jwtExpiredOn&&(this.jwtExpiredOn=new Date(this.jwtExpiredOn)),this}clear(){super.clear(),this.jwtExpiredOn=void 0,this.token=void 0}}},57764:(ei,rt,D)=>{"use strict";D.d(rt,{H:()=>o});var r=D(10467),d=D(33570),L=D(15113);class j{constructor(R,m,_=""){this.result=!1,this.errMsg=(0,L.$5)(R),this.errMsg!==d.DA&&-1===this.errMsg.indexOf(_)&&(this.errMsg=_+this.errMsg),this.entity=m}}class o{get entitytitle(){return""}get useNull4Clear(){return!1}get dateFields(){return null}constructor(R){this.typeName="",this.entityChanged=!1,this.technicalFields=["dateFields","dontInsertFields","dontUpdateFields","typeName","entitytitle","technicalFields","lastLoaded","useNull4Clear"],this.dontUpdateFields=[...this.technicalFields,"entityChanged"],this.dontInsertFields=[...this.technicalFields,"entityChanged"],R?this.assign(R):this.clear()}deleteFields(){const R=Object.assign({},this);return(this.isNew()?this.dontInsertFields:this.dontUpdateFields).forEach(_=>delete R[_]),R}get entityId(){return-1}set entityId(R){}assign(R){this.clear();const m=Object.assign(this,R);return this.approveDateFields(this.dateFields),m}approveDateField(R){this[R]&&!(this[R]instanceof Date)&&(this[R]=new Date(this[R]))}approveDateFields(R){R&&R.split(",").forEach(_=>this.approveDateField(_.trim()))}clearField(R,m=!1){if(this[R]instanceof Array)this[R]=[];else if("Id"===R.slice(-2))this[R]=null;else switch(m||this.useNull4Clear?null:typeof this[R]){case"number":this[R]=0;break;case"boolean":this[R]=!1;break;case"string":this[R]="";break;default:this[R]=null}}clear(R=!1){try{for(const m in this)-1===this.technicalFields.indexOf(m)&&this.propertyIsEnumerable(m)&&this.clearField(m,R)}catch{}this.isRealObject()&&(this.entityId=0),this.entityChanged=!1,this.resetCallBack&&this.resetCallBack(this)}isEmpty(){return 0===Object.keys(this).length&&"object"==typeof this}isRealObject(){return"entityId"in this}isValidInput(){return!0}isNew(){return!this.entityId||this.entityId<=0}insertWithIds(){return!1}load(R,m,_,v){const h=this.entityId;return this.isNew()&&-1!==h?(this.clear(),v&&v()):R.getDataById(this.typeName,h).subscribe(s=>this.entityId===h&&(console.log("loaded",s),this.lastLoaded=(0,L.tB)(),this.assign(s),m&&m(this),!0),s=>{s.status!==d.zQ&&this.clear(),_&&_(new j(s,this,this.typeName+": "))},v),!1}includeFieldForUpdate(R){R.split(",").forEach(_=>{const v=this.dontUpdateFields.indexOf(_);v>-1&&this.dontUpdateFields.splice(v,1)})}excludeFieldFromUpdate(R){R.split(",").forEach(_=>{-1===this.dontUpdateFields.indexOf(_)&&this.dontUpdateFields.push(_)})}saveAsync(R){var m=this;return(0,r.A)(function*(){return new Promise((_,v)=>m.save(R,()=>_(!0),()=>_(!1)))})()}save(R,m,_,v,h){const s=this.entityId;this.isNew()&&(this.entityId=this.insertWithIds()?-this.entityId:0);const b=this.deleteFields();this.entityId=s,(this.isNew()||null!=h?R.postDataById(this.typeName,h??this.entityId,b):R.putDataById(this.typeName,this.entityId,b)).subscribe(w=>{console.log("loaded",w),this.assign(w),this.isNew()?(this.entityChanged=!0,_&&_({errMsg:this.typeName+": Saving unsucceeded",entity:this})):(this.lastLoaded=(0,L.tB)(),m&&m(this))},w=>{_&&_(new j(w,this,this.typeName+": "))},v)}delete(R,m,_,v){return this.isNew()?this.clear():R.deleteDataById(this.typeName,this.entityId).subscribe(()=>(console.log("deleted",this),m&&m(this),!0),h=>{_&&_(new j(h,this,this.typeName+": "))},v),!0}}},66664:(ei,rt,D)=>{"use strict";D.d(rt,{w:()=>se});var r=D(15113),d=D(67336),L=D(74854),j=D(54438),o=D(12748),E=D(19057),R=D(60177),m=D(85956),_=D(89417),v=D(19664);const h=["popupForm"];function s(ie,ee){if(1&ie){const re=j.RV6();j.j41(0,"dx-button",11),j.bIt("click",function(){j.eBV(re);const _e=j.XpG();return j.Njj(_e.close())}),j.k0s()}}function b(ie,ee){1&ie&&(j.j41(0,"i",12),j.EFF(1,"info"),j.k0s())}function O(ie,ee){1&ie&&(j.j41(0,"i",13),j.EFF(1,"warning"),j.k0s())}function w(ie,ee){1&ie&&(j.j41(0,"i",14),j.EFF(1,"error_outline"),j.k0s())}function f(ie,ee){1&ie&&(j.j41(0,"i",12),j.EFF(1,"contact_support"),j.k0s())}function k(ie,ee){if(1&ie){const re=j.RV6();j.j41(0,"button",16),j.bIt("click",function(){const _e=j.eBV(re).$implicit,be=j.XpG(2);return j.Njj(be.btnClick(_e))}),j.EFF(1),j.nI1(2,"translate"),j.k0s()}if(2&ie){const re=ee.$implicit,ne=ee.index,_e=j.XpG(2);j.HbH("btn"+(ne+1)+" "+_e.messageBoxInterfaceType+"btn"+(re.default?" default1-"+_e.messageBoxInterfaceType+"btn":"")),j.Y8G("id","btn"+(ne+1))("name","btn"+(ne+1)),j.R7$(),j.SpI(" ",j.bMT(2,5,re.title)," ")}}function I(ie,ee){if(1&ie&&(j.j41(0,"div"),j.DNE(1,k,3,7,"button",15),j.k0s()),2&ie){const re=j.XpG();j.HbH(re.messageBoxInterfaceType+"buttons"+re.buttons.length),j.R7$(),j.Y8G("ngForOf",re.buttons)}}let x=(()=>{class ie{constructor(re,ne,_e,be){this.dialogRef=re,this.translate=ne,this.globals=_e,this.readOnly=!1,this.messageBoxInterfaceType="new-",this.overHeader=this.translate.translateString(be.overHeader),this.header=this.translate.translateString(be.header),this.message=this.translate.translateString(be.message),this.buttons=be.buttons,this.messageType=be.type,1===this.buttons.length&&(this.buttons[0].default=!0,this.buttons[0].cancel=!0),this.buttons.forEach((oe,me)=>{oe.default&&(this.defaultButtonIdx=me),oe.cancel&&(this.cancelButtonIdx=me),oe.code||(oe.code=0)})}ngAfterViewInit(){setTimeout(()=>document.getElementById("btn"+(this.defaultButtonIdx+1))?.focus())}close(re){this.dialogRef.close(re)}btnClick(re){this.close(re?.code||0)}popupKeyboardInput(re){switch(re.which){case d._f:return re.stopPropagation(),this.btnClick(this.buttons[this.cancelButtonIdx]),!1;case d.Fm:return re.stopPropagation(),this.btnClick(this.buttons[this.defaultButtonIdx]),!1}return!0}static#e=this.\u0275fac=function(ne){return new(ne||ie)(j.rXU(L.RN),j.rXU(o.X),j.rXU(E.RV),j.rXU(L.xh))};static#t=this.\u0275cmp=j.VBU({type:ie,selectors:[["hr-message-box"]],viewQuery:function(ne,_e){if(1&ne&&j.GBs(h,5),2&ne){let be;j.mGM(be=j.lsd())&&(_e.detailForm=be.first)}},hostBindings:function(ne,_e){1&ne&&j.bIt("keydown",function(oe){return _e.popupKeyboardInput(oe)},!1,j.tSv)},decls:15,vars:9,consts:[["popupForm","ngForm"],[1,"PopupContainer"],["class","buttonClose","icon","close",3,"click",4,"ngIf"],[1,"messageOverHeader"],["mat-dialog-title","",1,"messageBoxHeader"],[1,"PopupContent"],["class","material-icons-outlined icon infoIcon",4,"ngIf"],["class","material-icons-outlined icon warningIcon",4,"ngIf"],["class","material-icons-outlined icon errorIcon",4,"ngIf"],[1,"message"],[3,"class",4,"ngIf"],["icon","close",1,"buttonClose",3,"click"],[1,"material-icons-outlined","icon","infoIcon"],[1,"material-icons-outlined","icon","warningIcon"],[1,"material-icons-outlined","icon","errorIcon"],["mat-stroked-button","",3,"id","name","class","click",4,"ngFor","ngForOf"],["mat-stroked-button","",3,"click","id","name"]],template:function(ne,_e){1&ne&&(j.j41(0,"form",1,0),j.DNE(2,s,1,0,"dx-button",2),j.j41(3,"a",3),j.EFF(4),j.k0s(),j.j41(5,"h3",4),j.EFF(6),j.k0s(),j.j41(7,"mat-dialog-content",5),j.DNE(8,b,2,0,"i",6)(9,O,2,0,"i",7)(10,w,2,0,"i",8)(11,f,2,0,"i",6),j.j41(12,"span",9),j.EFF(13),j.k0s(),j.DNE(14,I,2,3,"div",10),j.k0s()()),2&ne&&(j.R7$(2),j.Y8G("ngIf",!(null!=_e.buttons&&_e.buttons.length)),j.R7$(2),j.JRh(_e.overHeader),j.R7$(2),j.JRh(_e.header),j.R7$(2),j.Y8G("ngIf","Message"===_e.messageType),j.R7$(),j.Y8G("ngIf","Warning"===_e.messageType),j.R7$(),j.Y8G("ngIf","Error"===_e.messageType),j.R7$(),j.Y8G("ngIf","Question"===_e.messageType),j.R7$(2),j.JRh(_e.message),j.R7$(),j.Y8G("ngIf",null==_e.buttons?null:_e.buttons.length))},dependencies:[R.Sq,R.bT,m.iV,L.KI,L.PQ,_.qT,_.cb,_.cV,v.D9],styles:['.cell_positive_balance{color:#76b82a} .cell_negative_balance{color:#b22222}.PopupContainer[_ngcontent-%COMP%]{max-width:500px}.large[_ngcontent-%COMP%] .PopupContainer[_ngcontent-%COMP%]{max-width:600px}.buttonClose[_ngcontent-%COMP%]{font-size:16px;cursor:pointer;text-align:center;margin-left:auto;float:right}.messageOverHeader[_ngcontent-%COMP%]{color:#0b3a62;display:block;height:0px;top:-20px;left:-15px;position:relative}.large[_ngcontent-%COMP%] .messageOverHeader[_ngcontent-%COMP%]{font-size:initial}.large[_ngcontent-%COMP%] .messageBoxHeader[_ngcontent-%COMP%]{font-size:x-large}.PopupContent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;height:100%;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;grid-column-gap:15px;grid-row-gap:20px;grid-template-areas:"icon message" "buttons buttons"}.icon[_ngcontent-%COMP%]{grid-area:icon;font-size:65px}.large[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:80px}.infoIcon[_ngcontent-%COMP%]{color:#0b3a62}.errorIcon[_ngcontent-%COMP%]{color:red}.warningIcon[_ngcontent-%COMP%]{color:#0b3a62}.message[_ngcontent-%COMP%]{grid-area:message;font-size:larger;overflow-wrap:break-word;max-width:100%;margin:auto auto auto 0;white-space:pre-wrap}.large[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{font-size:large}.buttons1[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:auto;grid-template-rows:auto;grid-template-columns:repeat(3,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:". btn1 ."}.buttons2[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:auto;grid-template-rows:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-column-gap:30px;grid-template-areas:". btn1 btn2 ."}.buttons3[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:10px 0 0;overflow:hidden;display:grid;height:auto;grid-template-rows:auto;grid-template-columns:minmax(0,1fr) repeat(3,minmax(0,2fr)) minmax(0,1fr);grid-column-gap:30px;grid-template-areas:". btn1 btn2 btn3 ."}.btn1[_ngcontent-%COMP%]{grid-area:btn1}.btn2[_ngcontent-%COMP%]{grid-area:btn2}.btn3[_ngcontent-%COMP%]{grid-area:btn3}.large[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], .large[_ngcontent-%COMP%] .new-btn[_ngcontent-%COMP%]{font-size:medium}.new-buttons1[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:auto;grid-template-rows:auto;grid-column-gap:10px;grid-template-columns:repeat(3,1fr);grid-template-areas:". . btn1"}.new-buttons2[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:0;overflow:hidden;display:grid;height:auto;grid-template-rows:auto;grid-column-gap:10px;grid-template-columns:repeat(4,1fr);grid-template-areas:". . btn1 btn2"}.new-buttons3[_ngcontent-%COMP%]{grid-area:buttons;padding:0;margin:10px 0 0;overflow:hidden;height:auto;display:grid;grid-template-rows:auto;grid-column-gap:10px;grid-template-columns:repeat(5,1fr);grid-template-areas:". . btn1 btn2 btn3"}@media only screen and (max-width: 600px){.new-buttons1[_ngcontent-%COMP%]{grid-template-columns:.5fr 1fr .5fr;grid-template-areas:". btn1 ."}}@media only screen and (max-width: 600px){.new-buttons3[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-fab[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-flat-button[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-mini-fab[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%], .new-buttons3[_ngcontent-%COMP%] .mat-stroked-button[_ngcontent-%COMP%]{font-size:3v}.new-buttons2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);grid-template-areas:"btn1 btn2"}.new-buttons3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr);grid-template-areas:"btn1 btn2 btn3"}}']})}return ie})();var g=D(33570),C=D(29643),F=D(44232),Y=D(89097);let se=(()=>{class ie{constructor(re,ne,_e,be){this.dialog=re,this.globals=ne,this.translate=_e,this.environment=be,this.startingTimes=new Map}checkDoubledEvent(re){const ne=r.tB(),_e=this.startingTimes.has(re)&&ne-this.startingTimes.get(re)<500;return this.startingTimes.set(re,ne),_e}log(re,...ne){this._log(g.nm.message,re,...ne)}warn(re,...ne){this._log(g.nm.warning,re,...ne)}error(re,...ne){this._log(g.nm.error,re,...ne);const _e=ne.find(be=>"object"==typeof be);this.environment.sentry_dsn&&C.Cp(_e??re)}exception(re,...ne){this._log(g.nm.error,r.$5(re),...ne),this.environment.sentry_dsn&&C.Cp(r.cP(re))}dlog(re,...ne){this._log(g.nm.debug_message,re,...ne)}_log(re,ne,..._e){let be="",oe=null;const me=re===g.nm.debug_message,we=_e.findIndex(N=>"object"==typeof N&&"guid"in N&&(oe=N.guid,!0));switch(oe&&(_e.splice(we,1),this.startingTimes.has(oe)?(be=r.or(r.tB()-this.startingTimes.get(oe),"m:s.SSS"),this.startingTimes.delete(oe),re=g.nm.guid_message):this.startingTimes.set(oe,r.tB())),re){case g.nm.message:console.log(ne,..._e);break;case g.nm.warning:console.warn(ne,..._e);break;case g.nm.error:console.error(ne,..._e);break;case g.nm.debug_message:this.environment.production||console.log(ne,..._e);break;case g.nm.guid_message:(!me||!this.environment.production)&&console.log("Finished: "+(ne.indexOf("%c")>-1?"":"%c")+ne+(be?": "+be+"s":""),..._e)}}showMessageBox(re,ne){return re.overHeader=this.globals.appTitleWithVersion,this.dialog.openDialog(x,re,!0,_e=>{ne&&ne(),re.buttons.forEach(be=>{be.code===_e&&be.callback&&be.callback()})},!1)}errorMessageBox(re,ne,_e){return this.showMessageBox({type:g.nm.error,header:re,message:ne,buttons:[{title:this.translate.instant("core.btn.ok")}]},_e)}warningMessageBox(re,ne,_e){return this.showMessageBox({type:g.nm.warning,header:re,message:ne,buttons:[{title:this.translate.instant("core.btn.ok")}]},_e)}informationMessageBox(re,ne,_e){return this.showMessageBox({type:g.nm.message,header:re,message:ne,buttons:[{title:this.translate.instant("core.btn.ok")}]},_e)}confirmMessageBoxYesNo(re,ne,_e,be,oe=0){return this.showMessageBox({type:g.nm.confirmation,header:re,message:ne,buttons:[{title:this.translate.instant("core.btn.yes"),code:1,default:0===oe,callback:_e},{title:this.translate.instant("core.btn.no"),default:1===oe,cancel:!0,code:0}]},be)}confirmMessageBoxYesNoCancel(re,ne,_e,be,oe,me=0){return this.showMessageBox({type:g.nm.confirmation,header:re,message:ne,buttons:[{title:this.translate.instant("core.btn.yes"),code:1,callback:_e,default:0===me},{title:this.translate.instant("core.btn.no"),code:0,callback:be,default:1===me},{title:this.translate.instant("core.btn.cancel"),cancel:!0,code:-1,default:2===me}]},oe)}static#e=this.\u0275fac=function(ne){return new(ne||ie)(j.KVO(Y.w),j.KVO(E.RV),j.KVO(o.X),j.KVO(F.i2))};static#t=this.\u0275prov=j.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})()},62560:(ei,rt,D)=>{"use strict";D.d(rt,{V:()=>ge});var r=D(10467),d=D(54438),L=D(22912),j=D(21413),o=D(84412),E=D(75445),R=D(33570),m=D(19057),_=D(44232),v=D(61999),h=D(15113),s=D(89097),b=D(18498),O=D(45197),w=D(66664),f=D(37085),k=D(60177);const I={UKNOWN:"Unknown"},x={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:I.UKNOWN},g={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},C={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200|SM-T970"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09|AGS-L09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},F={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:I.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},Y=[F.PS4,F.CHROME_BOOK,F.MAC,F.DELL,F.ASUS,F.UNKNOWN],Q={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:I.UKNOWN},se={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:I.UKNOWN.toLowerCase()},ie={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},re={...g,...C,...ie,FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}},ne={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},_e={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},be=Object.keys(ne).reduce((Ee,he)=>(Ee[he]=ne[he],Ee),{}),oe=Object.keys(_e).reduce((Ee,he)=>(Ee[x[he]]=_e[he],Ee),{});var me=Object.freeze({__proto__:null,BROWSERS:x,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},BROWSER_VERSIONS_RE:oe,BROWSER_VERSIONS_RE_MAP:_e,DESKTOP_DEVICES:Y,DEVICES:F,DEVICES_RE:re,GENERAL:I,MOBILES_RE:g,OS:Q,OS_RE:ie,OS_VERSIONS:se,OS_VERSIONS_RE:be,OS_VERSIONS_RE_MAP:ne,TABLETS_RE:C});class we{constructor(){}test(he,Ie){return"string"==typeof Ie&&(Ie=new RegExp(Ie)),Ie instanceof RegExp?Ie.test(he):Ie&&Array.isArray(Ie.and)?Ie.and.every(ce=>this.test(he,ce)):Ie&&Array.isArray(Ie.or)?Ie.or.some(ce=>this.test(he,ce)):!(!Ie||!Ie.not||this.test(he,Ie.not))}exec(he,Ie){return"string"==typeof Ie&&(Ie=new RegExp(Ie)),Ie instanceof RegExp?Ie.exec(he):Ie&&Array.isArray(Ie)?Ie.reduce((ce,de)=>ce||this.exec(he,de),null):null}}var N=function(Ee){return Ee.Mobile="mobile",Ee.Tablet="tablet",Ee.Desktop="desktop",Ee.Unknown="unknown",Ee}(N||{}),G=function(Ee){return Ee.Portrait="portrait",Ee.Landscape="landscape",Ee}(G||{});const W="iPad";let z=(()=>{class Ee{constructor(Ie){this.platformId=Ie,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new we,this.deviceType="",this.orientation="",(0,k.UE)(this.platformId)&&typeof window<"u"&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(Ie=this.userAgent){Ie!==this.userAgent&&(this.userAgent=Ie);const ce=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(ce.forEach(de=>{this[de.prop]=Object.keys(me[de.const]).reduce((pe,Be)=>"device"===me[de.const][Be]&&(0,k.UE)(this.platformId)&&(this.reTree.test(this.userAgent,C[W])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(pe[me[de.const][Be]]=W,Object):(pe[me[de.const][Be]]=this.reTree.test(Ie,me[`${de.const}_RE`][Be]),pe),{})}),ce.forEach(de=>{this[de.prop]=Object.keys(me[de.const]).map(pe=>me[de.const][pe]).reduce((pe,Be)=>"device"===de.prop&&pe===me[de.const].ANDROID?this[de.prop][Be]?Be:pe:pe===me[de.const].UNKNOWN&&this[de.prop][Be]?Be:pe,me[de.const].UNKNOWN)}),this.browser_version="0",this.browser!==x.UNKNOWN){const pe=this.reTree.exec(Ie,oe[this.browser]);pe&&(this.browser_version=pe[1])}this.orientation=typeof window<"u"&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?G.Landscape:G.Portrait:I.UKNOWN,this.deviceType=this.isTablet()?N.Tablet:this.isMobile(this.userAgent)?N.Mobile:this.isDesktop(this.userAgent)?N.Desktop:N.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(Ie=this.userAgent){return!this.isTablet(Ie)&&!!Object.keys(g).find(de=>this.reTree.test(Ie,g[de]))}isTablet(Ie=this.userAgent){return!(!(0,k.UE)(this.platformId)||!(this.reTree.test(this.userAgent,C[W])||typeof navigator<"u"&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(C).find(de=>!!this.reTree.test(Ie,C[de]))}isDesktop(Ie=this.userAgent){return(this.device!==F.UNKNOWN||!this.isMobile(Ie)&&!this.isTablet(Ie))&&Y.indexOf(this.device)>-1}static#e=this.\u0275fac=function(ce){return new(ce||Ee)(d.KVO(d.Agw))};static#t=this.\u0275prov=d.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();var X=D(36554),q=D(12748),ye=D(62855);class xe{constructor(he,Ie,ce){this.idToken=he,this.expiresAt=Ie,this.expiresInSec=ce}}let ge=(()=>{class Ee{get versionObsolete(){return this._versionObsolete}set versionObsolete(Ie){this._versionObsolete!==Ie&&(this._versionObsolete=Ie,Ie&&this.versionObsolete$.next())}constructor(Ie,ce,de,pe,Be,We,tt,vt,Xt,Nt){if(this.dialog=Ie,this.router=ce,this.repositoryService=de,this.appLogsService=pe,this.uiNotifier=Be,this.deviceService=We,this.spinnerService=tt,this.translate=vt,this.localeService=Xt,this.environment=(0,d.WQX)(_.i2),this.EN_LoginStatus_Unknown=R.ME.unknown,this.EN_LoginStatus_JWT=R.ME.jwt,this.EN_LoginStatus_Password=R.ME.loginWithNameAndPassword,this.EN_LoginStatus_Windows=R.ME.windowsAuthorizatoin,this.versionObsolete$=new j.B,this.loginAction$=new j.B,this.loginLogout$=new o.t(null),this.loginStatus=R.ME.unknown,this.useWindowsLogin=!0,this.isMobileDevice=!1,this.expiredJWTLogout=!1,this.useJWT=!1,this._user=new v.j,this._versionObsolete=!1,this.isRunningRenewJWT=!1,de.authService=this,this.isMobileDevice=!this.deviceService.isDesktop(),this.useWindowsLogin=!this.isMobileDevice,"useLoginWithJWT"in this.environment&&(this.useJWT=this.environment.useLoginWithJWT),"dontUseWindowsLogin"in this.environment&&(this.useWindowsLogin=!this.environment.dontUseWindowsLogin),Nt)throw new Error("Authorization service is already loaded. Import it in the AppModule only");this.loginAction$.subscribe(Qe=>{Qe.result?(!this.user.isAdmin&&this.environment.production&&window&&(window.console.log=function(){},this.uiNotifier.isActive=!1),this.appLogsService.log(Qe.errMsg,this.user),this.uiNotifier.showMessage(this.translate.instant("core.msg.loggedon",{value:this.user.loginName}))):(this.appLogsService.error(Qe.errMsg),this.uiNotifier.showMessage(`${Qe.errMsg}`))}),this.environment.sentry_dsn&&this.loginLogout$.subscribe(Qe=>{L.o5().setUser({id:Qe?.webAppUserId.toString(),shortname:Qe?.shortName,username:Qe?.name,login:Qe?.loginName})}),this.appLogsService.dlog("AuthorizeService is initialized")}get user(){return this._user}set user(Ie){this._user=Ie}isLoggedIn(){return this.isValidUser()}isValidUser(){return!this.isEmptyUser()&&0!==this.user.entityId}isEmptyUser(){return!this._user||this._user.isEmpty()}get loginname(){return this.user?.loginName}get userName(){return this.user?.name}logout(Ie=!0){this.loginStatus=this.EN_LoginStatus_Password,this._user.clear(),localStorage.removeItem("HR-JWToken"),this.HR_JWT=void 0,Ie&&(this.isLoggedUserChanged()&&this.loginLogout$.next(null),this.lastLoggedUserId=null,this.router.navigate(["/"+m.m0.path]))}login(Ie,ce){var de=this;const pe=!!Ie;if(!pe&&!this.useJWT&&!this.useWindowsLogin)return;const Be=pe?R.dr:this.useJWT?R.cX:R.P9,We=pe?this.translate.instant("core.error.logon"):this.translate.instant("core.error.logonnotpossible",{value:this.translate.instant(this.useJWT?"JWT-":"Windows-")});this.user.loginName=Ie,this.user.password=ce,this.user.clientVersion=this.environment.appVersion;try{this.user.timeZoneOffsetInMin=(new Date).getTimezoneOffset();const tt=this.repositoryService.postData(this.user.typeName+"/"+Be,this.user);pe&&(this.HR_JWT=void 0,this.user.culture=this.localeService.currentCulture,this.user.language=this.localeService.currentLanguage),tt.subscribe(function(){var vt=(0,r.A)(function*(Xt){if(de.user.assign(Xt),de.user.entityId)if(de.user.roleList&&(de.user.isMaster||de.user.isInRolle("departmentuser")||de.user.isInRolle("sDigital Data - IIM-Benutzer"))){if(pe?(de.jwtAuthentication(),de.loginStatus=de.EN_LoginStatus_Password):de.loginStatus=de.jwtAuthentication()?de.EN_LoginStatus_JWT:de.EN_LoginStatus_Windows,Xt.language&&(de.localeService.currentLanguage=Xt.language),Xt.culture&&(de.localeService.currentCulture=Xt.culture),Xt.showDisclaimer&&de.processDisclaimer&&(E.N.LOGIN_IS_SHOWN=!0,!(yield de.processDisclaimer(Xt))))return E.N.LOGIN_IS_SHOWN=!1,void de.loginAction$.next({result:!1,errMsg:de.translate.instant("core.error.disclaimernotconfirmed")});de.isLoggedUserChanged()&&de.loginLogout$.next(Xt),de.appLogsService.dlog("!! - eingelogged",(new Date).toTimeString(),Xt),de.loginAction$.next({result:!0,entity:Xt}),de.lastLoggedUserId=Xt.webAppUserId}else de.loginAction$.next({result:!1,errMsg:de.translate.instant("core.error.nouserrole"),entity:Xt}),de.loginStatus=de.EN_LoginStatus_Password;else de.loginAction$.next({result:!1,errMsg:Xt.Message}),de.loginStatus=de.EN_LoginStatus_Password});return function(Xt){return vt.apply(this,arguments)}}(),vt=>{this.loginAction$.next({result:!1,errMsg:We+("string"==typeof vt.error&&-1===vt.error.indexOf("Exception")?" "+vt.error:"")}),this.loginStatus=this.EN_LoginStatus_Password})}catch(tt){this.loginStatus=this.EN_LoginStatus_Password,this.appLogsService.dlog(Be+" Unexpected Error",tt)}}isLoggedUserChanged(){return(this.lastLoggedUserId??0)!==(this.user?.webAppUserId??0)}checkJWT(Ie){if(!this.HR_JWT){if(this.HR_JWT=JSON.parse(localStorage.getItem("HR-JWToken")),!this.HR_JWT?.idToken)return!1;this.HR_JWT&&(this.HR_JWT.expiresAt=new Date(this.HR_JWT?.expiresAt))}const ce=this.HR_JWT.expiresAt;return null==Ie?!!this.HR_JWT?.idToken:(ce.setMinutes(ce.getMinutes()-Ie),!!this.HR_JWT?.idToken&&h.Y8(this.HR_JWT?.expiresAt))}jwtAuthentication(){return!(!this.useJWT||!this.user.token||(this.user.jwtExpiredOn.setMinutes(this.user.jwtExpiredOn.getMinutes()+1),this.HR_JWT=new xe(this.user.token,this.user.jwtExpiredOn),localStorage.setItem("HR-JWToken",JSON.stringify(this.HR_JWT)),0))}loginPopup(Ie,ce=!1){E.N.LOGIN_IS_SHOWN||(E.N.LOGIN_IS_SHOWN=!0,this.logout(ce),null==Ie&&this.expiredJWTLogout&&(Ie=R.Jr),this.expiredJWTLogout=!1,this.dialog.openDialog(E.N,{errorMsg:Ie,authorizationService:this},!0,()=>{}))}tryRenewJWTAsync(Ie=!0){var ce=this;return(0,r.A)(function*(){if(!ce.useJWT)return!1;if(!E.N.LOGIN_IS_SHOWN&&!ce.isRunningRenewJWT){ce.isRunningRenewJWT=!0,ce.appLogsService.warn("Try to renew JWT"),ce.uiNotifier.showMessage(ce.translate.instant("core.msg.renewJWT")),ce.spinnerService.show();try{if(!ce.HR_JWT||!(yield ce.loginAsync()))return Ie&&ce.loginPopup(R.Jr),!1}finally{ce.spinnerService.hide(),ce.isRunningRenewJWT=!1}return!0}})()}loginAsync(){var Ie=this;return(0,r.A)(function*(){return new Promise((ce,de)=>{const pe=Ie.loginAction$.subscribe(Be=>{pe.unsubscribe(),ce(Be.result)});Ie.login()})})()}static#e=this.\u0275fac=function(ce){return new(ce||Ee)(d.KVO(s.w),d.KVO(b.Ix),d.KVO(O.U),d.KVO(w.w),d.KVO(f.u),d.KVO(z),d.KVO(X.ex),d.KVO(q.X),d.KVO(ye.i),d.KVO(Ee,12))};static#t=this.\u0275prov=d.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})()},19057:(ei,rt,D)=>{"use strict";D.d(rt,{Ik:()=>Im,lp:()=>Wc,RV:()=>Uo,m0:()=>Ef});var r=D(54438),d=D(15113),L=D(72463),j=D(70370),o=D(15655),E=D(69259),R=D(65276),m=D(33437),_={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848},h=D(87951),b=(D(21364),1632),O={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},w=/a+/g,f=/E/g,k=/dE+/g,I=/L/g,x=/h/g,g=/./g;function ne(Se){return!(!Se||!/^[@=\t\r]/.test(Se)&&(!/^[+-]/.test(Se)||(0,L.kf)(Se)))}var _e={formatObjectConverter(Se,ue){var B={format:Se,precision:Se&&Se.precision,dataType:ue};return(0,L.Gv)(Se)?(0,h.X)(B,Se,{format:Se.formatter||Se.type,currency:Se.currency}):B},convertFormat(Se,ue,B,te){if((0,L.O9)(Se)){if("date"===B)return function Y(Se){var ue=(E.A.format(new Date(2009,8,8,6,5,4),Se)||"").toString(),B=(0,R.g)(te=>E.A.format(te,Se));return B&&(B=function se(Se){return Se.split("/").join("\\/").split("'").map(function(ue,B){return B%2==0?ue.replace(w,"AM/PM").replace(k,"d").replace(f,"d").replace(I,"M").replace(x,"H").split("[").join("\\[").split("]").join("\\]"):ue?ue.replace(g,"\\$&"):"'"}).join("")}(B),B=function Q(Se){var ue=function v(){return _[m.A.locale()]}(),B=ue?ue.toString(16):"",te="";if(function F(Se){for(var ue,B=0;B<Se.length;B++)if((ue=Se.charCodeAt(B))>=b&&ue<b+10)return!0;return!1}(Se)){for(;B.length<3;)B="0"+B;te="[$-2010"+B+"]"}else B&&(te="[$-"+B+"]");return te}(ue)+B),B}(Se);if((0,L.Kg)(Se)&&O[Se.toLowerCase()])return function ie(Se,ue,B){var te,Ce;return(Ce="currency"===Se?o.A.getOpenXmlCurrencyFormat(B):O[Se.toLowerCase()])&&(te=(0,j.GP)(Ce,function C(Se,ue){var B,te;if(ue>0){for(B="decimal"!==Se?".":"",te=0;te<ue;te++)B+="0";return B}return""}(Se,ue))),te}(Se,ue,te)}},encode(Se){var ue=!1;if(function ee(Se){return!(!Se||Se.length<2)&&ne(Se)}(Se)?ue=!0:function re(Se,ue){return!(!Se||Se.length<4||Se[0]!==ue)&&ne(Se.substring(1,Se.length-1))}(Se,'"')&&(Se=Se.substring(1,Se.length-1),ue=!0),ue){var B="".concat('"').concat('"');return"\"'"+Se.replaceAll('"',B)+'"'}return Se}},be=D(24292),oe=D(20736),me=D(38543);const N=D(25207).A;class W{constructor(ue,B,te,Ce){this._$targetElement=B,this._$container=te,this._loadPanel=ue._createComponent((0,be.A)("<div>").addClass("dx-export-loadpanel").appendTo(this._$container),me.A,this.getOptions(Ce))}getDefaultOptions(){return{animation:null,shading:!1,height:90,width:200,container:this._$container}}getOptions(ue){return ue.message=(0,L.O9)(ue.text)?ue.text:oe.A.format("dxDataGrid-exporting"),(0,h.X)(this.getDefaultOptions(),ue)}show(){this._loadPanel.option("position",N.calculateLoadPanelPosition(this._$targetElement)),this._loadPanel.show()}dispose(){(0,be.A)(this._loadPanel.element()).remove(),delete this._loadPanel}}var z=D(14435),ye={getFullOptions(Se){var ue=(0,h.X)({},Se);if(!(0,L.O9)(ue.worksheet)||!(0,L.Gv)(ue.worksheet))throw Error('The "worksheet" field must contain an object.');if((0,L.O9)(ue.topLeftCell)){if((0,L.Kg)(ue.topLeftCell)){var{row:B,col:te}=ue.worksheet.getCell(ue.topLeftCell);ue.topLeftCell={row:B,column:te}}}else ue.topLeftCell={row:1,column:1};return(0,L.O9)(ue.keepColumnWidths)||(ue.keepColumnWidths=!0),(0,L.O9)(ue.loadPanel)||(ue.loadPanel={}),(0,L.O9)(ue.loadPanel.enabled)||(ue.loadPanel.enabled=!0),(0,L.O9)(ue.encodeExecutableContent)||(ue.encodeExecutableContent=!1),ue},convertDateForExcelJS:Se=>new Date(Date.UTC(Se.getFullYear(),Se.getMonth(),Se.getDate(),Se.getHours(),Se.getMinutes(),Se.getSeconds(),Se.getMilliseconds())),setNumberFormat(Se,ue){Se.numFmt=ue},getCellStyles(Se){var ue=Se.getStyles();return ue.forEach(B=>{var te=this.tryConvertToExcelNumberFormat(B.format,B.dataType);(0,L.O9)(te)&&(te=te.replace(/"/g,'"')),B.numberFormat=te}),ue},tryConvertToExcelNumberFormat(Se,ue){var B=_e.formatObjectConverter(Se,ue);return _e.convertFormat(Se=B.format,B.precision,ue=B.dataType,B.currency)},setAlignment(Se,ue,B){var te;Se.alignment=null!==(te=Se.alignment)&&void 0!==te?te:{},(0,L.O9)(ue)&&(Se.alignment.wrapText=ue),(0,L.O9)(B)&&(Se.alignment.horizontal=B),Se.alignment.vertical="top"},setColumnsWidth(Se,ue,B){if((0,L.O9)(ue))for(var te=0;te<ue.length;te++){var Ce=ue[te];"number"==typeof Ce&&isFinite(Ce)&&(Se.getColumn(B+te).width=Math.min(255,Math.floor(Ce/7*100)/100))}},export(Se,ue,B,te){var Ce,nn,{component:De,worksheet:Le,topLeftCell:je,keepColumnWidths:it,selectedRowsOnly:Pt,loadPanel:Zt,encodeExecutableContent:fi}=Se,Jt=De.getDataProvider(Pt),Rt=(null===(Ce=De._getInternalInstance)||void 0===Ce?void 0:Ce.call(De))||De,sn=Rt.option("loadPanel")&&Rt.option("loadPanel").enabled;if(sn&&De.option("loadPanel.enabled",!1),Zt.enabled&&(0,z.Vd)()){var fn=B(De),$i=te(De);(nn=new W(De,fn,$i,Zt)).show()}var vn=!!De.option("wordWrapEnabled");Le.properties.outlineProperties={summaryBelow:!1,summaryRight:!1};var kn={from:{row:je.row,column:je.column},to:{row:je.row,column:je.column}};return new Promise(Fn=>{Jt.ready().done(()=>{var ur=Jt.getColumns(),Vr=Jt.getRowsCount(),sr=new ue(De,Jt,Le,Se);it&&this.setColumnsWidth(Le,Jt.getColumnsWidths(),kn.from.column),sr._exportAllFieldHeaders(ur,this.setAlignment);var Rn=sr._getFieldHeaderRowsCount();kn.to.row=kn.from.row+Rn;for(var Nr=this.getCellStyles(Jt),kr=0;kr<Vr;kr++){var mn=kn.from.row+Rn+kr,hn=Le.getRow(mn),Hn=0;sr._isRowFieldHeadersRow(kr)&&(Hn=Jt.getRowAreaColCount(),sr._exportFieldHeaders("row",mn,0,Hn,this.setAlignment)),sr._trySetOutlineLevel(hn,kr),this.exportRow(Jt,sr,hn,kr,Hn,ur.length,vn,Nr,fi),kn.to.row=mn}sr.mergedRangesManager.applyMergedRages(),kn.to.column+=ur.length>0?ur.length-1:0;var Vn=Le.views[0]||{};De.option("rtlEnabled")&&(Vn.rightToLeft=!0),sr._isFrozenZone(Jt)&&(-1===Object.keys(Vn).indexOf("state")&&(0,h.X)(Vn,sr._getWorksheetFrozenState(kn)),sr._trySetAutoFilter(kn)),Object.keys(Vn).length>0&&(Le.views=[Vn]),Fn(kn)}).always(()=>{sn&&De.option("loadPanel.enabled",sn),Zt.enabled&&(0,z.Vd)()&&nn.dispose()})})},exportRow(Se,ue,B,te,Ce,De,Le,je,it){for(var Pt=Ce;Pt<De;Pt++){var Zt=Se.getCellData(te,Pt,!0),fi=B.getCell(ue._getFirstColumnIndex()+Pt);ue.mergedRangesManager.updateMergedRanges(fi,te,Pt,ue);var Jt=ue.mergedRangesManager.findMergedCellInfo(te,Pt,ue._isHeaderCell(te,Pt));if((0,L.O9)(Jt)&&fi!==Jt.masterCell)fi.style=Jt.masterCell.style,fi.value=Jt.masterCell.value;else if(fi.value=(0,L.$P)(Zt.value)?this.convertDateForExcelJS(Zt.value):Zt.value,(0,L.O9)(fi.value)){var{bold:Rt,alignment:sn,numberFormat:nn}=je[Se.getStyleId(te,Pt)];(0,L.O9)(nn)?this.setNumberFormat(fi,nn):(0,L.Kg)(fi.value)&&/^[@=+-]/.test(fi.value)&&this.setNumberFormat(fi,"@"),ue._trySetFont(fi,Rt),this.setAlignment(fi,Le,sn)}ue._customizeCell(fi,Zt.cellSourceData),it&&(fi.value=_e.encode(fi.value))}}};class xe{constructor(ue,B){this.dataProvider=ue,this.worksheet=B,this.mergedCells=[],this.mergedRanges=[]}updateMergedRanges(ue,B,te,Ce){if(Ce._isHeaderCell(B,te)&&!this.isCellInMergedRanges(B,te)){var{rowspan:De,colspan:Le}=this.dataProvider.getCellMerging(B,te);if(Le||De){var it=Ce._allowToMergeRange(B,te,De,Le);if(this.updateMergedCells(ue,B,te,De,Le),it){var Pt=Ce._isInfoCell(B,te)&&Ce._allowExportRowFieldHeaders();this.mergedRanges.push({masterCell:ue,rowspan:De-(Pt&&De>0),colspan:Le})}}}}isCellInMergedRanges(ue,B){return this.mergedCells[ue]&&this.mergedCells[ue][B]}findMergedCellInfo(ue,B,te){if(te&&this.isCellInMergedRanges(ue,B))return this.mergedCells[ue][B]}updateMergedCells(ue,B,te,Ce,De){for(var Le=B;Le<=B+Ce;Le++)for(var je=te;je<=te+De;je++)this.mergedCells[Le]||(this.mergedCells[Le]=[]),this.mergedCells[Le][je]={masterCell:ue}}addMergedRange(ue,B,te){this.mergedRanges.push({masterCell:ue,rowspan:B,colspan:te})}applyMergedRages(){this.mergedRanges.forEach(ue=>{var B=ue.masterCell.fullAddress.row,te=ue.masterCell.fullAddress.col;this.worksheet.mergeCells(B,te,B+ue.rowspan,te+ue.colspan)})}}class ge{constructor(ue,B,te,Ce){this.component=ue,this.dataProvider=B,this.worksheet=te,this.mergedRangesManager=new xe(B,te),this.topLeftCell=Ce.topLeftCell,this.customizeCell=Ce.customizeCell,this.autoFilterEnabled=Ce.autoFilterEnabled}_getFirstColumnIndex(){return this.topLeftCell.column}_getFieldHeaderRowsCount(){return 0}_trySetAutoFilter(ue){if(this.autoFilterEnabled&&!(0,L.O9)(this.worksheet.autoFilter)&&this.dataProvider.getRowsCount()>0){var B={from:{row:ue.from.row+this.dataProvider.getHeaderRowCount()-1,column:ue.from.column},to:ue.to};this.worksheet.autoFilter=B}}_trySetFont(ue,B){(0,L.O9)(B)&&(ue.font=ue.font||{},ue.font.bold=B)}_getWorksheetFrozenState(ue){return{state:"frozen",ySplit:ue.from.row+this.dataProvider.getFrozenArea().y-1}}_trySetOutlineLevel(ue,B){B>=this.dataProvider.getHeaderRowCount()&&(ue.outlineLevel=this.dataProvider.getGroupLevel(B))}_isFrozenZone(ue){return ue.getHeaderRowCount()>0}_isHeaderCell(ue){return ue<this.dataProvider.getHeaderRowCount()}_isInfoCell(){return!1}_allowToMergeRange(){return!0}_getAllFieldHeaders(){return[]}_customizeCell(ue,B){(0,L.Tn)(this.customizeCell)&&this.customizeCell({excelCell:ue,gridCell:B})}_exportFieldHeaders(){}_exportAllFieldHeaders(){}_isRowFieldHeadersRow(){}}function Ee(Se){return ye.export(function he(Se){if(!(0,L.O9)(Se)||!(0,L.Gv)(Se))throw Error('The "exportDataGrid" method requires a configuration object.');if(!(0,L.O9)(Se.component)||!(0,L.Gv)(Se.component)||"dxDataGrid"!==Se.component.NAME)throw Error('The "component" field must contain a DataGrid instance.');return(0,L.O9)(Se.selectedRowsOnly)||(Se.selectedRowsOnly=!1),(0,L.O9)(Se.autoFilterEnabled)||(Se.autoFilterEnabled=!1),ye.getFullOptions(Se)}(Se),ge,Ie,ce)}function Ie(Se){return Se.getView("rowsView").element()}function ce(Se){return Se.getView("rowsView").element().parent()}var de=D(58168),pe=D(50448),Be=D(48745);class tt{constructor(ue,B,te,Ce){this.component=ue,this.dataProvider=B,this.worksheet=te,this.mergedRangesManager=new xe(B,te),this.topLeftCell=Ce.topLeftCell,this.customizeCell=Ce.customizeCell,this.mergeColumnFieldValues=Ce.mergeColumnFieldValues,this.mergeRowFieldValues=Ce.mergeRowFieldValues,this.exportFilterFieldHeaders=Ce.exportFilterFieldHeaders,this.exportDataFieldHeaders=Ce.exportDataFieldHeaders,this.exportColumnFieldHeaders=Ce.exportColumnFieldHeaders,this.exportRowFieldHeaders=Ce.exportRowFieldHeaders,this.rtlEnabled=ue.option("rtlEnabled"),this.rowHeaderLayout=ue.option("rowHeaderLayout"),this.wrapText=!!ue.option("wordWrapEnabled"),this.filterFieldHeaders=this._tryGetFieldHeaders("filter"),this.dataFieldHeaders=this._tryGetFieldHeaders("data"),this.columnFieldHeaders=this._tryGetFieldHeaders("column"),this.rowFieldHeaders=this._tryGetFieldHeaders("row")}_getFirstColumnIndex(){return this.topLeftCell.column}_getWorksheetFrozenState(ue){var{x:B,y:te}=this.dataProvider.getFrozenArea();return{state:"frozen",xSplit:ue.from.column+B-1,ySplit:ue.from.row+te+this._getFieldHeaderRowsCount()-1}}_getFieldHeaderRowsCount(){return 0+this._allowExportFilterFieldHeaders()+(this._allowExportDataFieldHeaders()||this._allowExportColumnFieldHeaders())}_isFrozenZone(){return!0}_isHeaderCell(ue,B){return ue<this.dataProvider.getColumnAreaRowCount()||B<this.dataProvider.getRowAreaColCount()}_getDefaultFieldHeaderCellsData(ue){return{text:ue,value:ue}}_isInfoCell(ue,B){return ue<this.dataProvider.getColumnAreaRowCount()&&B<this.dataProvider.getRowAreaColCount()}_allowToMergeRange(ue,B,te,Ce){return!(this.dataProvider.isColumnAreaCell(ue,B)&&!this.mergeColumnFieldValues&&Ce||this.dataProvider.isRowAreaCell(ue,B)&&!this.mergeRowFieldValues&&te)}_trySetAutoFilter(){}_trySetFont(ue,B){(0,L.O9)(B)&&(ue.font=ue.font||{},ue.font.bold=B)}_getFieldHeaderStyles(){var ue={style:"thin",color:{argb:"FF7E7E7E"}};return{alignment:(0,pe.n)(this.rtlEnabled),bold:!0,border:{bottom:ue,left:ue,right:ue,top:ue}}}_trySetOutlineLevel(){}_getAllFieldHeaders(){return this.dataProvider._exportController.getDataSource()._descriptions}_tryGetFieldHeaders(ue){if(!this["export".concat((0,Be.PT)(ue,!0),"FieldHeaders")])return[];var B=this._getAllFieldHeaders()["data"===ue?"values":"".concat(ue,"s")].filter(te=>te.area===ue);return"right"===(0,pe.n)(this.rtlEnabled)&&B.sort((te,Ce)=>Ce.areaIndex-te.areaIndex),B.map(te=>te.caption)}_customizeCell(ue,B,te){(0,L.Tn)(this.customizeCell)&&!te&&this.customizeCell({excelCell:ue,pivotCell:B})}_isRowFieldHeadersRow(ue){var B=this._isInfoCell(ue,0)&&"row"===this.dataProvider.getCellData(ue+1,0,!0).cellSourceData.area;return this._allowExportRowFieldHeaders()&&B}_exportAllFieldHeaders(ue,B){var te=ue.length,Ce=this.dataProvider.getRowAreaColCount(),De=this.topLeftCell.row;this._allowExportFilterFieldHeaders()&&(this._exportFieldHeaders("filter",De,0,te,B),De++),this._allowExportDataFieldHeaders()&&(this._exportFieldHeaders("data",De,0,Ce,B),this._allowExportColumnFieldHeaders()||this._exportFieldHeaders("column",De,Ce,te-Ce,B)),this._allowExportColumnFieldHeaders()&&(this._allowExportDataFieldHeaders()||this._exportFieldHeaders("data",De,0,Ce,B),this._exportFieldHeaders("column",De,Ce,te-Ce,B))}_exportFieldHeaders(ue,B,te,Ce,De){var Le=this["".concat(ue,"FieldHeaders")],je=this.worksheet.getRow(B),it="row"!==ue||"row"===ue&&"tree"===this.rowHeaderLayout;it&&this.mergedRangesManager.addMergedRange(je.getCell(this.topLeftCell.column+te),0,Ce-1);for(var Pt=0;Pt<Ce;Pt++){var Jt,Zt=je.getCell(this.topLeftCell.column+te+Pt),fi=Le,Rt=fi.length>Ce||it?fi.join(", "):fi[Pt];Jt=(0,de.A)({},this._getDefaultFieldHeaderCellsData(Rt),{headerType:ue}),Zt.value=Rt,this._applyHeaderStyles(Zt,De),this._customizeCell(Zt,Jt)}}_applyHeaderStyles(ue,B){var{bold:te,alignment:Ce,border:De}=this._getFieldHeaderStyles();this._trySetFont(ue,te),B(ue,this.wrapText,Ce),ue.border=De}_allowExportRowFieldHeaders(){return this.rowFieldHeaders.length>0}_allowExportFilterFieldHeaders(){return this.filterFieldHeaders.length>0}_allowExportDataFieldHeaders(){return this.dataFieldHeaders.length>0}_allowExportColumnFieldHeaders(){return this.columnFieldHeaders.length>0}}function vt(Se){return ye.export(function Xt(Se){if(!(0,L.O9)(Se)||!(0,L.Gv)(Se))throw Error('The "exportPivotGrid" method requires a configuration object.');if(!(0,L.O9)(Se.component)||!(0,L.Gv)(Se.component)||"dxPivotGrid"!==Se.component.NAME)throw Error('The "component" field must contain a PivotGrid instance.');return(0,L.O9)(Se.mergeRowFieldValues)||(Se.mergeRowFieldValues=!0),(0,L.O9)(Se.mergeColumnFieldValues)||(Se.mergeColumnFieldValues=!0),(0,L.O9)(Se.exportDataFieldHeaders)||(Se.exportDataFieldHeaders=!1),(0,L.O9)(Se.exportRowFieldHeaders)||(Se.exportRowFieldHeaders=!1),(0,L.O9)(Se.exportColumnFieldHeaders)||(Se.exportColumnFieldHeaders=!1),(0,L.O9)(Se.exportFilterFieldHeaders)||(Se.exportFilterFieldHeaders=!1),ye.getFullOptions(Se)}(Se),tt,Nt,Qe)}function Nt(Se){return Se._dataArea.groupElement()}function Qe(Se){return Se.$element()}var Et=D(87550);function Lt(Se){var ue,B,te,Ce;return(0,L.kf)(Se)?{top:Se,right:Se,bottom:Se,left:Se}:{top:null!==(ue=Se?.top)&&void 0!==ue?ue:0,right:null!==(B=Se?.right)&&void 0!==B?B:0,bottom:null!==(te=Se?.bottom)&&void 0!==te?te:0,left:null!==(Ce=Se?.left)&&void 0!==Ce?Ce:0}}var Mt="...";function Ge(Se,ue){return ue*(1/Se.internal.scaleFactor)}function ot(Se){return Se.internal.pageSize.getWidth()}function Tt(Se){return Se.internal.pageSize.getHeight()}function jt(Se,ue,B,te){var{wordWrapEnabled:Ce,targetRectWidth:De}=te;if(Ce){var Le=Se.getFont(B?.name,B?.style);return Se.splitTextToSize(ue,De,{fontSize:B?.size||Se.getFontSize(),fontName:Le.fontName,fontStyle:Le.fontStyle})}var je=ue.split("\n").filter(Zt=>""!==Zt).join(" ");if(an(Se,je,B).w<=De)return[je];for(var it=an(Se,je+Mt,B).w;je.length>0&&it>De;){var Pt=0;it>=2*De&&(Pt=je.length/2),Pt<1&&(Pt=1),it=an(Se,(je=je.substring(0,je.length-Pt))+Mt,B).w}return[je+Mt]}function li(Se,ue){var B=Se-(ue.left+ue.right);return B>=0?B:0}function an(Se,ue,B){return Se.getTextDimensions(ue,{font:Se.getFont(B?.name,B?.style),fontSize:B?.size||Se.getFontSize()})}function xi(Se,ue,B,te){var{wordWrapEnabled:Ce,targetRectWidth:De}=te;return an(Se,ue,B).h*jt(Se,ue,B,{wordWrapEnabled:Ce,targetRectWidth:De}).length*Se.getLineHeightFactor()}var Ti=(Se,ue)=>Se+ue;var Vt={base:{font:{size:10},borderWidth:.5,borderColor:"#979797"},header:{textColor:"#979797"},group:{},data:{},groupFooter:{},totalFooter:{}};function bi(Se){for(var{doc:ue,dataProvider:B,rowIndex:te,wordWrapEnabled:Ce,columns:De,styles:Le,rowType:je,backgroundColor:it,rtlEnabled:Pt}=Se,Zt=[],fi=0;fi<De.length;fi++){var Jt,Rt=B.getCellData(te,fi,!0),sn=Le[B.getStyleId(te,fi)],nn=ai(De[fi],je,sn),fn=Pt?"right":"left",$i=Ge(ue,5),vn={text:kt(Rt.value,sn.format),verticalAlign:"middle",horizontalAlign:null!==(Jt=nn.alignment)&&void 0!==Jt?Jt:fn,wordWrapEnabled:Ce,backgroundColor:it,padding:{top:$i,right:$i,bottom:$i,left:$i},_rect:{},_internalTextOptions:{}};Pt&&(vn._internalTextOptions.isInputVisual=!1,vn._internalTextOptions.isOutputVisual=!0,vn._internalTextOptions.isInputRtl=!0,vn._internalTextOptions.isOutputRtl=!1);var kn={gridCell:Rt.cellSourceData,pdfCell:(0,de.A)({},vn,nn)};if("header"===je){var Fn=B.getCellMerging(te,fi);Fn&&Fn.rowspan>0&&(kn.rowSpan=Fn.rowspan),Fn&&Fn.colspan>0&&(kn.colSpan=Fn.colspan)}else if("group"===je){var Vr=Pt?"drawLeftBorder":"drawRightBorder";if(kn.pdfCell[Pt?"drawRightBorder":"drawLeftBorder"]=0===fi,kn.pdfCell[Vr]=fi===De.length-1,fi>0){var sr=Zt.slice(1).reduce((Nr,kr)=>Nr&&!(0,L.O9)(kr.pdfCell.text),!0);if(!(0,L.O9)(kn.pdfCell.text)&&sr){Zt[0].pdfCell[Vr]=!0;for(var Rn=0;Rn<Zt.length;Rn++)Zt[Rn].colSpan=Zt.length;kn.colSpan=Zt.length}}}Zt.push(kn)}return Zt}function ai(Se,ue,B){var te=(0,de.A)({},Vt.base,Vt[ue]),Ce="header"===ue?Se.alignment:B.alignment;return Ce&&(te.alignment=Ce),B.bold&&"header"!==ue&&(te.font=(0,de.A)({},te.font,{style:"bold"})),te}function kt(Se,ue){if((0,L.O9)(ue)){if((0,L.$P)(Se))return E.A.format(Se,ue);if((0,L.kf)(Se))return o.A.format(Se,ue)}return Se?.toString()}var mi=D(98587),Kt=["_rect","gridCell"];function qi(Se){return Se.charAt(0).toUpperCase()+Se.slice(1)}function Wi(Se){return Math.round(1e3*Se)/1e3}function Ur(Se,ue,B,te,Ce){Se.line(Wi(ue),Wi(B),Wi(te),Wi(Ce))}function ar(Se,ue,B,te,Ce,De){(0,L.O9)(De)?Se.rect(Wi(ue),Wi(B),Wi(te),Wi(Ce),De):Se.rect(Wi(ue),Wi(B),Wi(te),Wi(Ce))}function Na(Se,ue,B,te){var{borderWidth:Ce,borderColor:De,drawLeftBorder:Le=!0,drawRightBorder:je=!0,drawTopBorder:it=!0,drawBottomBorder:Pt=!0}=B;if(!(0,L.O9)(ue))throw"rect is required";!Le&&!je&&!it&&!Pt||(Le&&je&&it&&Pt?(Eo(Se,{borderWidth:Ce,borderColor:De},te),ar(Se,ue.x,ue.y,ue.w,ue.h)):(Eo(Se,{borderWidth:Ce,borderColor:De},te),it&&Ur(Se,ue.x,ue.y,ue.x+ue.w,ue.y),Le&&Ur(Se,ue.x,ue.y,ue.x,ue.y+ue.h),je&&Ur(Se,ue.x+ue.w,ue.y,ue.x+ue.w,ue.y+ue.h),Pt&&Ur(Se,ue.x,ue.y+ue.h,ue.x+ue.w,ue.y+ue.h)))}function Eo(Se,ue,B){var{borderWidth:te,borderColor:Ce}=ue,De=(0,L.O9)(te)?te:B.borderWidth;De!==Dt(Se)&&Pi(Se,Ge(Se,De)),To(Se,"draw",(0,L.O9)(Ce)?Ce:B.borderColor)}function To(Se,ue,B){var te="get".concat(qi(ue),"Color"),Ce="set".concat(qi(ue),"Color"),{ch1:De=B,ch2:Le,ch3:je,ch4:it}=B;(Se.__private__.decodeColorString(Se.__private__.encodeColorString({ch1:De,ch2:Le,ch3:je,ch4:it,precision:"text"===ue?3:2}))!==Se[te]()||"fill"===ue)&&Se[Ce].apply(Se,[De,Le,je,it].filter(Zt=>void 0!==Zt))}function Dt(Se){var ue;return(0,L.O9)(Se.getLineWidth)?Se.getLineWidth():null!==(ue=Se.__borderWidth)&&void 0!==ue?ue:.200025}function Pi(Se,ue){Se.setLineWidth(ue),(0,L.O9)(Se.getLineWidth)||(Se.__borderWidth=ue)}var jn=Se=>"header"===Se?.sourceCellInfo.gridCell.rowType;function Ri(Se,ue,B){return(0,de.A)({},Se,{sourceCellInfo:(0,de.A)({},Se.sourceCellInfo,{text:ue}),y:B})}function Nn(Se){return[].concat.apply([],Se.map(ue=>ue.cells.filter(B=>!(0,L.O9)(B.pdfCell.isMerged)).map(B=>(0,de.A)({},B.pdfCell._rect,{sourceCellInfo:(0,de.A)({},B.pdfCell,{gridCell:B.gridCell})}))))}function _r(Se,ue,B,te,Ce,De,Le){for(var je=[],it=[...Se],Pt=(fi,Jt)=>Ce(fi,Jt+ue),Zt=function(){var fi=0,Jt=it.filter(kn=>{var Fn=kn[B]+kn[te];return!!Ce(0===je.length,Fn)&&(fi<=Fn&&(fi=Fn),!0)}),Rt=((Se,ue)=>ue&&jn(Se[Se.length-1]))(Jt,0===je.length),sn=((Se,ue,B,te,Ce)=>{if(!te)return[];var De=Se[Se.length-1],Le=ue[Se.length];if(!Le||jn(Le))return[];if(Ce(B,Le.h)&&!B)return[];var it=ue.filter(Jt=>{var{y:Rt}=Jt;return Rt===Le.y}),Pt=De.y+De.h,[Zt,fi]=((Se,ue,B,te,Ce)=>{for(var[De,Le]=te(ue,Se),je=[ue?De.map(it=>(0,de.A)({},it,{y:B})):De];!Ce(!1,Le[0].h);)[De,Le]=te(!1,Le),je.push(De);return[je,Le]})(it,B,Pt,te,Ce);return((Se,ue,B)=>{ue.forEach((Le,je)=>{Le.sourceCellInfo.text=B[je].sourceCellInfo.text,Le.h=B[je].h});var te=Se.indexOf(ue[ue.length-1])+1;if(!(te>=Se.length))for(var Ce=Se[te].y-(ue[0].y+B[0].h),De=te;De<Se.length;De++)Se[De].y=Se[De].y-Ce})(ue,it,fi),Zt})(Jt,it,Rt,Le,Pt);if(it.filter(kn=>fi-kn[B]>.001&&kn[B]+kn[te]-fi>.001).forEach(kn=>{De(kn,fi,Jt,it);var Fn=it.indexOf(kn);-1!==Fn&&it.splice(Fn,1)}),Jt.forEach(kn=>{var Fn=it.indexOf(kn);-1!==Fn&&it.splice(Fn,1)}),it.forEach(kn=>{kn[B]=(0,L.O9)(fi)?kn[B]-fi+ue:kn[B]}),Rt&&sn.length>0){var[$i,...vn]=sn;je.push([...Jt,...$i]),je.push(...vn)}else if(Jt.length>0)je.push(Jt),je.push(...sn);else{if(!(sn.length>0))return je.push(it),1;je.push(...sn),je.push(it)}};it.length>0&&!Zt(););return je}var Fa_getFullOptions=function ha(Se){var{jsPDFDocument:ue}=Se,B=(0,h.X)({},Se);return(0,L.O9)(B.topLeft)||(B.topLeft={x:0,y:0}),(0,L.O9)(B.indent)||(B.indent=0),(0,L.O9)(B.repeatHeaders)||(B.repeatHeaders=!0),(0,L.O9)(B.margin)||(B.margin=Ge(ue,40)),B.margin=Lt(B.margin),Array.isArray(B.columnWidths)||(B.columnWidths=[]),(0,L.O9)(B.loadPanel)||(B.loadPanel={}),(0,L.O9)(B.loadPanel.enabled)||(B.loadPanel.enabled=!0),(0,L.O9)(B.loadPanel.text)||(B.loadPanel.text=oe.A.format("dxDataGrid-exporting")),B},Fa_export=function aa(Se){var ue,it,{jsPDFDocument:B,component:te,selectedRowsOnly:Ce,loadPanel:De}=Se,Le=(null===(ue=te._getInternalInstance)||void 0===ue?void 0:ue.call(te))||te,je=Le.option("loadPanel")&&Le.option("loadPanel").enabled;if(je&&te.option("loadPanel.enabled",!1),De.enabled&&(0,z.Vd)()){var Pt=te.getView("rowsView");(it=new W(te,Pt.element(),Pt.element().parent(),De)).show()}var Zt=te.getDataProvider(Ce);return new Promise(fi=>{Zt.ready().done(()=>{var Jt,Rt,sn=function ci(Se,ue,B,te){for(var Ce=[],De=ue.getRowsCount(),Le=!!B.option("wordWrapEnabled"),je=!!B.option("rtlEnabled"),it=ue.getColumns(),Pt=ue.getStyles(),Zt=0;Zt<De;Zt++){var fi=ue.getCellData(Zt,0,!0).cellSourceData.rowType,Jt="header"!==fi?ue.getGroupLevel(Zt):0,Rt=Ce[Zt-1];"groupFooter"===fi&&"groupFooter"===Rt?.rowType&&(Jt=Rt.indentLevel-1),Ce.push({rowType:fi,indentLevel:Jt,cells:bi({doc:Se,dataProvider:ue,rowIndex:Zt,wordWrapEnabled:Le,columns:it,styles:Pt,rowType:fi,backgroundColor:"header"===fi?te:void 0,rtlEnabled:je}),rowIndex:Zt})}return Ce}(B,Zt,te,null===(Jt=Se.rowOptions)||void 0===Jt||null===(Rt=Jt.headerStyles)||void 0===Rt?void 0:Rt.backgroundColor);Se.customizeCell&&sn.forEach(vn=>vn.cells.forEach(kn=>Se.customizeCell(kn))),function wt(Se){Se.forEach(ue=>{ue.cells.forEach(B=>{var{pdfCell:te}=B;te.padding=Lt(te.padding)})})}(sn),function ui(Se,ue,B,te){var Ce=function ni(Se,ue,B,te,Ce){var De=ue.getColumnsWidths().map(Zt=>Ge(Se,Zt??150)),Le=De.filter((Zt,fi)=>!(0,L.O9)(Ce[fi])).reduce(Ti,0),je=Ce.filter(Zt=>(0,L.kf)(Zt)).reduce(Ti,0),it=function wi(Se,ue,B){return ot(Se)-ue-B.left-B.right}(Se,B,te),Pt=je<it?(it-je)/Le:1;return De.map((Zt,fi)=>{var Jt;return null!==(Jt=Ce[fi])&&void 0!==Jt?Jt:Zt*Pt})}(Se,ue,te.topLeft.x,te.margin,te.columnWidths);B.forEach(De=>{De.cells.forEach((Le,je)=>{var{pdfCell:Pt}=Le;Pt._rect.w=Ce[je]})})}(B,Zt,sn,Se),function Qi(Se,ue){Se.forEach(B=>{B.cells[0].pdfCell._rect.w-=B.indentLevel*ue.indent})}(sn,Se),function Ui(Se){for(var ue=0;ue<Se.length;ue++)for(var B=Se[ue],te=0;te<B.cells.length;te++){var Ce=B.cells[te];if((0,L.O9)(Ce.colSpan)&&!(0,L.O9)(Ce.pdfCell.isMerged))for(var De=1;De<=Ce.colSpan;De++){var Le=Se[ue].cells[te+De];Ce.pdfCell._rect.w+=Le.pdfCell._rect.w,Le.pdfCell._rect.w=0,Le.pdfCell.isMerged=!0}}}(sn),function cn(Se,ue,B){ue.forEach(te=>{var De,Ce=te.cells.map(je=>je.pdfCell);if(B.onRowExporting){var Le={rowCells:Ce};B.onRowExporting(Le),(0,L.O9)(Le.rowHeight)&&(De=Le.rowHeight)}te.height=(0,L.O9)(De)?De:function Je(Se,ue,B){if(ue.length!==B.length)throw"the cells count must be equal to the count of the columns";for(var te=0,Ce=0;Ce<ue.length;Ce++)if(!(0,L.O9)(ue[Ce].rowSpan)){var De=ue[Ce].pdfCell.text,Le=ue[Ce].pdfCell.padding,je=ue[Ce].pdfCell.font,it=ue[Ce].pdfCell.wordWrapEnabled,Zt=li(B[Ce],Le);if((0,L.O9)(De)){var Jt=(""!==De?xi(Se,De,je,{wordWrapEnabled:it,targetRectWidth:Zt}):0)+Le.top+Le.bottom;te<Jt&&(te=Jt)}}return te}(Se,te.cells,Ce.map(je=>je._rect.w)),Ce.forEach(je=>{je._rect.h=te.height})})}(B,sn,Se),function Xi(Se){for(var ue=0;ue<Se.length;ue++)for(var B=Se[ue],te=0;te<B.cells.length;te++){var Ce=B.cells[te];if((0,L.O9)(Ce.rowSpan)&&!(0,L.O9)(Ce.pdfCell.isMerged))for(var De=1;De<=Ce.rowSpan;De++){var Le=Se[ue+De].cells[te];Ce.pdfCell._rect.h+=Le.pdfCell._rect.h,Le.pdfCell._rect.h=0,Le.pdfCell.isMerged=!0}}}(sn),function pt(Se,ue){var B=function st(Se,ue){var B=Array.from({length:ue.length},()=>0),te=function Wt(Se){var ue=B=>{var te=B.cells.map(Ce=>{var De;return null!==(De=Ce.rowSpan)&&void 0!==De?De:0});return Math.max(...te)};return[...Se].sort((B,te)=>{var Ce=ue(B),De=ue(te);return Ce>De?1:De>Ce?-1:0})}(ue);return te.forEach(Ce=>{Ce.cells.filter(Le=>(0,L.O9)(Le.rowSpan)).forEach(Le=>{var je=li(Le.pdfCell._rect.w,Le.pdfCell.padding),Pt=xi(Se,Le.pdfCell.text,Le.pdfCell.font,{wordWrapEnabled:Le.pdfCell.wordWrapEnabled,targetRectWidth:je})+Le.pdfCell.padding.top+Le.pdfCell.padding.bottom,Zt=Le.rowSpan+1,fi=ue.slice(Ce.rowIndex,Ce.rowIndex+Zt).reduce((sn,nn)=>sn+nn.height+B[nn.rowIndex],0);if(Pt>fi)for(var Jt=(Pt-fi)/Zt,Rt=Ce.rowIndex;Rt<Ce.rowIndex+Zt;Rt++)B[Rt]+=Jt})}),B}(Se,ue);ue.forEach(te=>{te.height+=B[te.rowIndex]}),ue.forEach(te=>{te.cells.forEach(Ce=>{var De,Le=(null!==(De=Ce.rowSpan)&&void 0!==De?De:0)+1;Ce.pdfCell._rect.h=ue.slice(te.rowIndex,te.rowIndex+Le).reduce((je,it)=>je+it.height,0)})})}(B,sn),function It(Se,ue,B){var te,Ce=B?.topLeft,De=B?.margin,Le=(null!==(te=Ce?.y)&&void 0!==te?te:0)+De.top;ue.forEach(je=>{var it,Pt=(null!==(it=Ce?.x)&&void 0!==it?it:0)+De.left,Zt=je.indentLevel*B.indent;je.cells.forEach(fi=>{fi.pdfCell._rect.x=Pt+Zt,fi.pdfCell._rect.y=Le,Pt+=fi.pdfCell._rect.w}),Le+=je.height})}(0,sn,Se),function Ut(Se){for(var ue=0;ue<Se.length;ue++)for(var B=Se[ue].cells,te=0;te<B.length;te++){var Ce=B[te].pdfCell,De=te>=1?B[te-1].pdfCell:null,Le=ue>=1?Se[ue-1].cells[te].pdfCell:null;!1!==Ce.drawLeftBorder||(0,L.O9)(B[te].colSpan)?(0,L.O9)(Ce.drawLeftBorder)||(0,L.O9)(De)&&!1===De.drawRightBorder&&(Ce.drawLeftBorder=!1):(0,L.O9)(De)&&(De.drawRightBorder=!1),!1===Ce.drawTopBorder?(0,L.O9)(Le)&&(Le.drawBottomBorder=!1):(0,L.O9)(Ce.drawTopBorder)||(0,L.O9)(Le)&&!1===Le.drawBottomBorder&&(Ce.drawTopBorder=!1)}}(sn),function Ht(Se,ue){ue.forEach(B=>{B.cells.forEach(te=>{var{pdfCell:Ce}=te;if((0,L.O9)(Ce.text)){var De=jt(Se,Ce.text,Ce.font,{wordWrapEnabled:Ce.wordWrapEnabled,targetRectWidth:li(Ce._rect.w,Ce.padding)});Ce.text=De.join("\n")}})})}(B,sn);var nn=function Bi(Se){var ue=Se.getFont();return{borderWidth:Dt(Se),borderColor:Se.getDrawColor(),font:{name:ue.fontName,style:ue.fontStyle,size:Se.getFontSize()},textColor:Se.getTextColor()}}(B),fn=!!te.option("rtlEnabled"),$i=function En(Se,ue,B,te,Ce){if(0===ue.length)return[[]];var De={x:ot(Se)-B.margin.right,y:Tt(Se)-B.margin.bottom},Le=ue.filter(Rt=>"header"===Rt.rowType),je=Le.reduce((Rt,sn)=>Rt+sn.height,0),it=_r(Nn(ue),B.margin.top,"y","h",(Rt,sn)=>Wi(sn+(!Rt&&B.repeatHeaders?je:0))<=Wi(De.y),(Rt,sn,nn,fn)=>{var $i={sourceRect:Rt,topRect:{x:Rt.x,y:Rt.y,w:Rt.w,h:sn-Rt.y},bottomRect:{x:Rt.x,y:sn,w:Rt.w,h:Rt.h-(sn-Rt.y)}};Ce($i),nn.push($i.topRect),fn.push($i.bottomRect)},((Se,ue,B,te)=>(Ce,De)=>{var Le=[],je=[],it=0,Pt=0;return De.forEach(Zt=>{var{w:fi,sourceCellInfo:Jt}=Zt,Rt=!Ce&&ue.repeatHeaders?B:B+ue.topLeft.y,sn=an(Se,Jt.text,Jt.font).h,nn=Jt.padding.top+Jt.padding.bottom,$i=Math.floor((te.y-Rt-nn-ue.margin.top)/(sn*Se.getLineHeightFactor())),vn=jt(Se,Jt.text,Jt.font,{wordWrapEnabled:Jt.wordWrapEnabled,targetRectWidth:fi});if($i<vn.length){var kn=vn.slice(0,$i).join("\n"),Fn=xi(Se,kn,Jt.font,{wordWrapEnabled:Jt.wordWrapEnabled,targetRectWidth:fi});it=Math.max(it,Fn+nn),Pt=Zt.h-Fn,Le.push(Ri(Zt,kn,ue.margin.top)),je.push(Ri(Zt,vn.slice($i).join("\n"),ue.margin.top))}else{var ur=xi(Se,Jt.text,Jt.font,{wordWrapEnabled:Jt.wordWrapEnabled,targetRectWidth:fi});it=Math.max(it,ur+nn),Pt=Math.max(Pt,ur+nn),Le.push(Ri(Zt,Jt.text,ue.margin.top)),je.push(Ri(Zt,"",ue.margin.top))}}),Le.forEach(Zt=>Zt.h=it),je.forEach(Zt=>Zt.h=Pt),[Le,je]})(Se,B,je,De));if(B.repeatHeaders)for(var Pt=1;Pt<it.length;Pt++){it[Pt].forEach(Rt=>Rt.y+=je);var Zt=Nn(Le);Zt.forEach(Rt=>{Rt.y-=B.topLeft.y}),it[Pt]=[...Zt,...it[Pt]]}for(var fi=0;fi<it.length;){var Jt=_r(it[fi],B.margin.left,"x","w",(Rt,sn)=>Wi(sn)<=Wi(De.x),(Rt,sn,nn,fn)=>{var $i={sourceRect:Rt,leftRect:{x:Rt.x,y:Rt.y,w:sn-Rt.x,h:Rt.h},rightRect:{x:sn,y:Rt.y,w:Rt.w-(sn-Rt.x),h:Rt.h}};te($i),nn.push($i.leftRect),fn.push($i.rightRect)});Jt.length>1?(it.splice(fi,1,...Jt),fi+=Jt.length):fi+=1}return it.map(Rt=>Rt.map(sn=>(0,de.A)({},sn.sourceCellInfo,{_rect:sn})))}(B,sn,Se,vn=>{var kn,{sourceRect:Fn,leftRect:ur,rightRect:Vr}=vn,sr={},Rn={};if((null===(kn=Fn.sourceCellInfo.text)||void 0===kn?void 0:kn.length)>0)if(fn){var hn,Hn,Vn,Rr,br,jr,kr=B.getTextWidth(Fn.sourceCellInfo.text)>ur.w,mn=!(0,L.O9)(Fn.sourceCellInfo.horizontalAlign)||"right"===Fn.sourceCellInfo.horizontalAlign;if(kr||!mn)"right"===(null===(hn=Fn.sourceCellInfo)||void 0===hn?void 0:hn.horizontalAlign)?br=(Rr=null!==(jr=Fn.sourceCellInfo._textLeftOffset)&&void 0!==jr?jr:0)+ur.w:"center"===(null===(Hn=Fn.sourceCellInfo)||void 0===Hn?void 0:Hn.horizontalAlign)?Rr=(br=Fn.x+Fn.w-(Vr.x+Vr.w)+Fn.sourceCellInfo._rect.w/2-ur.w/2)-Vr.w:"left"===(null===(Vn=Fn.sourceCellInfo)||void 0===Vn?void 0:Vn.horizontalAlign)&&(Rr=(br=Fn.x+Fn.w-(Vr.x+Vr.w))-Vr.w),sr=(0,de.A)({},{_textLeftOffset:Rr}),Rn=(0,de.A)({},{_textLeftOffset:br});else Rn=(0,de.A)({},{text:""})}else{var wr=B.getTextWidth(Fn.sourceCellInfo.text)>ur.w,Kr=!(0,L.O9)(Fn.sourceCellInfo.horizontalAlign)||"left"===Fn.sourceCellInfo.horizontalAlign;if(wr||!Kr){var Xr,Ja,Vi,Cn,Ln,Jn;if("left"===(null===(Xr=Fn.sourceCellInfo)||void 0===Xr?void 0:Xr.horizontalAlign))Ln=(Cn=null!==(Jn=Fn.sourceCellInfo._textLeftOffset)&&void 0!==Jn?Jn:0)-ur.w;else if("center"===(null===(Ja=Fn.sourceCellInfo)||void 0===Ja?void 0:Ja.horizontalAlign)){var lr,Sr=null!==(lr=Fn.sourceCellInfo._textLeftOffset)&&void 0!==lr?lr:0;Cn=Sr+(Fn.x+Fn.w/2)-(ur.x+ur.w/2),Ln=Sr+(Fn.x+Fn.w/2)-(Vr.x+Vr.w/2)}else"right"===(null===(Vi=Fn.sourceCellInfo)||void 0===Vi?void 0:Vi.horizontalAlign)&&(Cn=Fn.x+Fn.w-(ur.x+ur.w),Ln=Fn.x+Fn.w-(Vr.x+Vr.w));sr=(0,de.A)({},{_textLeftOffset:Cn}),Rn=(0,de.A)({},{_textLeftOffset:Ln})}else Rn=(0,de.A)({},{text:""})}ur.sourceCellInfo=(0,de.A)({},Fn.sourceCellInfo,{debugSourceCellInfo:Fn.sourceCellInfo},sr),Vr.sourceCellInfo=(0,de.A)({},Fn.sourceCellInfo,{debugSourceCellInfo:Fn.sourceCellInfo},Rn)},vn=>{var kn,{sourceRect:Fn,topRect:ur,bottomRect:Vr}=vn,sr={},Rn={};if((null===(kn=Fn.sourceCellInfo.text)||void 0===kn?void 0:kn.length)>0){var kr,mn=B.getTextDimensions(Fn.sourceCellInfo.text).h>ur.h,hn="top"===(null===(kr=Fn.sourceCellInfo)||void 0===kr?void 0:kr.verticalAlign);if(mn||!hn){var Hn,Vn,Rr,br,jr,wr;if("top"===(null===(Hn=Fn.sourceCellInfo)||void 0===Hn?void 0:Hn.verticalAlign))jr=(br=null!==(wr=Fn.sourceCellInfo._textTopOffset)&&void 0!==wr?wr:0)-ur.h;else if("middle"===(null===(Vn=Fn.sourceCellInfo)||void 0===Vn?void 0:Vn.verticalAlign)){var Kr,Xr=null!==(Kr=Fn.sourceCellInfo._textTopOffset)&&void 0!==Kr?Kr:0;br=Xr+(Fn.y+Fn.h/2)-(ur.y+ur.h/2),jr=Xr+(Fn.y+Fn.h/2)-(Vr.y+Vr.h/2)}else"bottom"===(null===(Rr=Fn.sourceCellInfo)||void 0===Rr?void 0:Rr.verticalAlign)&&(br=Fn.y+Fn.h-(ur.y+ur.h),jr=Fn.y+Fn.h-(Vr.y+Vr.h));sr=(0,de.A)({},{_textTopOffset:br}),Rn=(0,de.A)({},{_textTopOffset:jr})}else Rn=(0,de.A)({},{text:""})}ur.sourceCellInfo=(0,de.A)({},Fn.sourceCellInfo,{debugSourceCellInfo:Fn.sourceCellInfo},sr),Vr.sourceCellInfo=(0,de.A)({},Fn.sourceCellInfo,{debugSourceCellInfo:Fn.sourceCellInfo},Rn)});fn&&function gi(Se,ue,B){ue.forEach(te=>{te.forEach(Ce=>{var De=ot(Se)-(Ce._rect.x+Ce._rect.w);Ce._rect.x=De+(B.margin.left-B.margin.right)})})}(B,$i,Se),$i.forEach((vn,kn)=>{if(kn>0&&function si(Se){Se.addPage(),function ln(Se){(0,L.O9)(Se.getLineWidth)||(Se.__borderWidth=null)}(Se)}(B),function yn(Se,ue,B,te){B.forEach(Ce=>{var{_rect:De,gridCell:Le}=Ce,je=(0,mi.A)(Ce,Kt),{x:it,y:Pt,w:Zt,h:fi}=De,Rt={doc:Se,rect:{x:it,y:Pt,w:Zt,h:fi},pdfCell:je,gridCell:Le,cancel:!1};ue?.(Rt),Rt.cancel||(function sa(Se,ue){(0,L.O9)(ue.backgroundColor)&&(To(Se,"fill",ue.backgroundColor),ar(Se,ue._rect.x,ue._rect.y,ue._rect.w,ue._rect.h,"F"))}(Se,Ce),function Pr(Se,ue,B){if((0,L.O9)(ue.text)&&""!==ue.text){var{textColor:te,font:Ce,_rect:De,padding:Le}=ue;!function uo(Se,ue,B){var{textColor:te,font:Ce}=ue;To(Se,"text",(0,L.O9)(te)?te:B.textColor);var De=(0,L.O9)(Ce)?(0,h.X)({},B.font,Ce):B.font,Le=Se.getFont();(De.name!==Le.fontName||De.style!==Le.fontStyle||(0,L.O9)(De.weight))&&Se.setFont(De.name,De.style,De.weight),De.size!==Se.getFontSize()&&Se.setFontSize(De.size)}(Se,{textColor:te,font:Ce},B);var it,Pt,je={x:De.x+Le.left,y:De.y+Le.top,w:De.w-(Le.left+Le.right),h:De.h-(Le.top+Le.bottom)};((0,L.O9)(ue._textLeftOffset)||(0,L.O9)(ue._textTopOffset))&&(je.x=je.x+(null!==(it=ue._textLeftOffset)&&void 0!==it?it:0),je.y=je.y+(null!==(Pt=ue._textTopOffset)&&void 0!==Pt?Pt:0),Se.saveGraphicsState(),function An(Se,ue,B,te,Ce){Se.moveTo(Wi(ue),Wi(B)),Se.lineTo(Wi(ue+te),Wi(B)),Se.lineTo(Wi(ue+te),Wi(B+Ce)),Se.lineTo(Wi(ue),Wi(B+Ce)),Se.clip(),Se.discardPath()}(Se,ue._rect.x,ue._rect.y,ue._rect.w,ue._rect.h)),function po(Se,ue,B,te,Ce,De){var Le=ue.split("\n"),je=Le.length,it=xi(Se,Le[0],Se.getFont(),{wordWrapEnabled:!1,targetRectWidth:1e9}),Pt=te??"middle",Zt=Ce??"left",fi={top:0,middle:.5,bottom:1},Jt=B.y+B.h*fi[Pt]-it*(je-1)*fi[Pt]+function na(Se){return(Se.getLineHeightFactor()-1.15)*Se.getFontSize()}(Se),Rt=B.x+B.w*{left:0,center:.5,right:1}[Zt],sn=(0,h.X)({baseline:Pt,align:Zt},De);Se.text(Le.join("\n"),Wi(Rt),Wi(Jt),sn)}(Se,ue.text,je,ue.verticalAlign,ue.horizontalAlign,ue._internalTextOptions),((0,L.O9)(ue._textLeftOffset)||(0,L.O9)(ue._textTopOffset))&&Se.restoreGraphicsState()}}(Se,Ce,te))})}(B,Se.customDrawCell,vn,nn),function no(Se,ue,B){ue.filter(te=>!(0,L.O9)(te.borderColor)).forEach(te=>{Na(Se,te._rect,te,B)}),ue.filter(te=>(0,L.O9)(te.borderColor)).forEach(te=>{Na(Se,te._rect,te,B)})}(B,vn,nn),(0,L.O9)(vn)&&0===vn.length){var ur=function yt(Se,ue,B){var te,Ce,De,Le,je,it,Pt,Zt,fi,Jt;ue.forEach($i=>{(!(0,L.O9)(Pt)||Pt>$i._rect.x)&&(Pt=$i._rect.x),(!(0,L.O9)(Zt)||Zt>$i._rect.y)&&(Zt=$i._rect.y),(!(0,L.O9)(fi)||fi<$i._rect.x+$i._rect.w)&&(fi=$i._rect.x+$i._rect.w),(!(0,L.O9)(Jt)||Jt<$i._rect.y+$i._rect.h)&&(Jt=$i._rect.y+$i._rect.h)});var Rt=null!==(te=null!==(Ce=Pt)&&void 0!==Ce?Ce:null==B||null===(De=B.topLeft)||void 0===De?void 0:De.x)&&void 0!==te?te:0,sn=null!==(Le=null!==(je=Zt)&&void 0!==je?je:null==B||null===(it=B.topLeft)||void 0===it?void 0:it.y)&&void 0!==Le?Le:0;return{x:Rt,y:sn,w:(0,L.O9)(fi)?fi-Rt:0,h:(0,L.O9)(Jt)?Jt-sn:0}}(0,vn,Se),Vr=function gt(){return Vt.base}();!function ja(Se,ue,B,te){Na(Se,ue,B,te)}(B,ur,Vr,nn)}}),function _t(Se,ue){var{borderWidth:B,borderColor:te,font:Ce,textColor:De}=ue,Le=Se.getFont();(Le.fontName!==Ce.name||Le.fontStyle!==Ce.style)&&Se.setFont(Ce.name,Ce.style,void 0),Se.getFontSize()!==Ce.size&&Se.setFontSize(Ce.size),Dt(Se)!==B&&Pi(Se,B),Se.getDrawColor()!==te&&Se.setDrawColor(te),Se.getTextColor()!==De&&Se.setTextColor(De)}(B,nn),fi()}).always(()=>{je&&te.option("loadPanel.enabled",je),De.enabled&&(0,z.Vd)()&&it.dispose()})})};var mo=D(82284),zo=Uint8Array,Ao=Uint16Array,Ha=Uint32Array,us=new zo([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ql=new zo([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ms=new zo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),El=function(Se,ue){for(var B=new Ao(31),te=0;te<31;++te)B[te]=ue+=1<<Se[te-1];var Ce=new Ha(B[30]);for(te=1;te<30;++te)for(var De=B[te];De<B[te+1];++De)Ce[De]=De-B[te]<<5|te;return[B,Ce]},Wl=El(us,2),Xd=Wl[0],rs=Wl[1];Xd[28]=258,rs[258]=28;for(var Ho=El(Ql,0),Zs=Ho[0],jl=Ho[1],Ms=new Ao(32768),Ko=0;Ko<32768;++Ko){var hs=(43690&Ko)>>>1|(21845&Ko)<<1;Ms[Ko]=((65280&(hs=(61680&(hs=(52428&hs)>>>2|(13107&hs)<<2))>>>4|(3855&hs)<<4))>>>8|(255&hs)<<8)>>>1}var ws=function(Se,ue,B){for(var te=Se.length,Ce=0,De=new Ao(ue);Ce<te;++Ce)++De[Se[Ce]-1];var je,Le=new Ao(ue);for(Ce=0;Ce<ue;++Ce)Le[Ce]=Le[Ce-1]+De[Ce-1]<<1;if(B){je=new Ao(1<<ue);var it=15-ue;for(Ce=0;Ce<te;++Ce)if(Se[Ce])for(var Pt=Ce<<4|Se[Ce],Zt=ue-Se[Ce],fi=Le[Se[Ce]-1]++<<Zt,Jt=fi|(1<<Zt)-1;fi<=Jt;++fi)je[Ms[fi]>>>it]=Pt}else for(je=new Ao(te),Ce=0;Ce<te;++Ce)je[Ce]=Ms[Le[Se[Ce]-1]++]>>>15-Se[Ce];return je},Yl=new zo(288);for(Ko=0;Ko<144;++Ko)Yl[Ko]=8;for(Ko=144;Ko<256;++Ko)Yl[Ko]=9;for(Ko=256;Ko<280;++Ko)Yl[Ko]=7;for(Ko=280;Ko<288;++Ko)Yl[Ko]=8;var Bt=new zo(32);for(Ko=0;Ko<32;++Ko)Bt[Ko]=5;var Si=ws(Yl,9,0),Ni=ws(Yl,9,1),Sn=ws(Bt,5,0),Dn=ws(Bt,5,1),Kn=function(Se){for(var ue=Se[0],B=1;B<Se.length;++B)Se[B]>ue&&(ue=Se[B]);return ue},tr=function(Se,ue,B){var te=ue/8|0;return(Se[te]|Se[te+1]<<8)>>>(7&ue)&B},xr=function(Se,ue){var B=ue/8|0;return(Se[B]|Se[B+1]<<8|Se[B+2]<<16)>>>(7&ue)},Pa=function(Se){return(Se/8|0)+(7&Se&&1)},va=function(Se,ue,B){(null==ue||ue<0)&&(ue=0),(null==B||B>Se.length)&&(B=Se.length);var te=new(Se instanceof Ao?Ao:Se instanceof Ha?Ha:zo)(B-ue);return te.set(Se.subarray(ue,B)),te},Ba=function(Se,ue,B){var te=ue/8|0;Se[te]|=B<<=7&ue,Se[te+1]|=B>>>8},ga=function(Se,ue,B){var te=ue/8|0;Se[te]|=B<<=7&ue,Se[te+1]|=B>>>8,Se[te+2]|=B>>>16},Lo=function(Se,ue){for(var B=[],te=0;te<Se.length;++te)Se[te]&&B.push({s:te,f:Se[te]});var Ce=B.length,De=B.slice();if(!Ce)return[new zo(0),0];if(1==Ce){var Le=new zo(B[0].s+1);return Le[B[0].s]=1,[Le,1]}B.sort(function(ur,Vr){return ur.f-Vr.f}),B.push({s:-1,f:25001});var je=B[0],it=B[1],Pt=0,Zt=1,fi=2;for(B[0]={s:-1,f:je.f+it.f,l:je,r:it};Zt!=Ce-1;)je=B[B[Pt].f<B[fi].f?Pt++:fi++],it=B[Pt!=Zt&&B[Pt].f<B[fi].f?Pt++:fi++],B[Zt++]={s:-1,f:je.f+it.f,l:je,r:it};var Jt=De[0].s;for(te=1;te<Ce;++te)De[te].s>Jt&&(Jt=De[te].s);var Rt=new Ao(Jt+1),sn=$a(B[Zt-1],Rt,0);if(sn>ue){te=0;var nn=0,fn=sn-ue,$i=1<<fn;for(De.sort(function(Vr,sr){return Rt[sr.s]-Rt[Vr.s]||Vr.f-sr.f});te<Ce;++te){var vn=De[te].s;if(!(Rt[vn]>ue))break;nn+=$i-(1<<sn-Rt[vn]),Rt[vn]=ue}for(nn>>>=fn;nn>0;){var kn=De[te].s;Rt[kn]<ue?nn-=1<<ue-Rt[kn]++-1:++te}for(;te>=0&&nn;--te){var Fn=De[te].s;Rt[Fn]==ue&&(--Rt[Fn],++nn)}sn=ue}return[new zo(Rt),sn]},$a=function(Se,ue,B){return-1==Se.s?Math.max($a(Se.l,ue,B+1),$a(Se.r,ue,B+1)):ue[Se.s]=B},qs=function(Se){for(var ue=Se.length;ue&&!Se[--ue];);for(var B=new Ao(++ue),te=0,Ce=Se[0],De=1,Le=function(it){B[te++]=it},je=1;je<=ue;++je)if(Se[je]==Ce&&je!=ue)++De;else{if(!Ce&&De>2){for(;De>138;De-=138)Le(32754);De>2&&(Le(De>10?De-11<<5|28690:De-3<<5|12305),De=0)}else if(De>3){for(Le(Ce),--De;De>6;De-=6)Le(8304);De>2&&(Le(De-3<<5|8208),De=0)}for(;De--;)Le(Ce);De=1,Ce=Se[je]}return[B.subarray(0,te),ue]},Mo=function(Se,ue){for(var B=0,te=0;te<ue.length;++te)B+=Se[te]*ue[te];return B},Ml=function(Se,ue,B){var te=B.length,Ce=Pa(ue+2);Se[Ce]=255&te,Se[Ce+1]=te>>>8,Se[Ce+2]=255^Se[Ce],Se[Ce+3]=255^Se[Ce+1];for(var De=0;De<te;++De)Se[Ce+De+4]=B[De];return 8*(Ce+4+te)},gs=function(Se,ue,B,te,Ce,De,Le,je,it,Pt,Zt){Ba(ue,Zt++,B),++Ce[256];for(var fi=Lo(Ce,15),Jt=fi[0],Rt=fi[1],sn=Lo(De,15),nn=sn[0],fn=sn[1],$i=qs(Jt),vn=$i[0],kn=$i[1],Fn=qs(nn),ur=Fn[0],Vr=Fn[1],sr=new Ao(19),Rn=0;Rn<vn.length;++Rn)sr[31&vn[Rn]]++;for(Rn=0;Rn<ur.length;++Rn)sr[31&ur[Rn]]++;for(var Nr=Lo(sr,7),kr=Nr[0],mn=Nr[1],hn=19;hn>4&&!kr[ms[hn-1]];--hn);var br,jr,wr,Kr,Hn=Pt+5<<3,Vn=Mo(Ce,Yl)+Mo(De,Bt)+Le,Rr=Mo(Ce,Jt)+Mo(De,nn)+Le+14+3*hn+Mo(sr,kr)+(2*sr[16]+3*sr[17]+7*sr[18]);if(Hn<=Vn&&Hn<=Rr)return Ml(ue,Zt,Se.subarray(it,it+Pt));if(Ba(ue,Zt,1+(Rr<Vn)),Zt+=2,Rr<Vn){br=ws(Jt,Rt,0),jr=Jt,wr=ws(nn,fn,0),Kr=nn;var Xr=ws(kr,mn,0);for(Ba(ue,Zt,kn-257),Ba(ue,Zt+5,Vr-1),Ba(ue,Zt+10,hn-4),Zt+=14,Rn=0;Rn<hn;++Rn)Ba(ue,Zt+3*Rn,kr[ms[Rn]]);Zt+=3*hn;for(var Ja=[vn,ur],Vi=0;Vi<2;++Vi){var Cn=Ja[Vi];for(Rn=0;Rn<Cn.length;++Rn)Ba(ue,Zt,Xr[Ln=31&Cn[Rn]]),Zt+=kr[Ln],Ln>15&&(Ba(ue,Zt,Cn[Rn]>>>5&127),Zt+=Cn[Rn]>>>12)}}else br=Si,jr=Yl,wr=Sn,Kr=Bt;for(Rn=0;Rn<je;++Rn)if(te[Rn]>255){var Ln;ga(ue,Zt,br[257+(Ln=te[Rn]>>>18&31)]),Zt+=jr[Ln+257],Ln>7&&(Ba(ue,Zt,te[Rn]>>>23&31),Zt+=us[Ln]);var Jn=31&te[Rn];ga(ue,Zt,wr[Jn]),Zt+=Kr[Jn],Jn>3&&(ga(ue,Zt,te[Rn]>>>5&8191),Zt+=Ql[Jn])}else ga(ue,Zt,br[te[Rn]]),Zt+=jr[te[Rn]];return ga(ue,Zt,br[256]),Zt+jr[256]},el=new Ha([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),_s=new zo(0),Zl=function(Se,ue,B,te,Ce){return function(Se,ue,B,te,Ce,De){var Le=Se.length,je=new zo(te+Le+5*(1+Math.floor(Le/7e3))+Ce),it=je.subarray(te,je.length-Ce),Pt=0;if(!ue||Le<8)for(var Zt=0;Zt<=Le;Zt+=65535){var fi=Zt+65535;fi<Le?Pt=Ml(it,Pt,Se.subarray(Zt,fi)):(it[Zt]=De,Pt=Ml(it,Pt,Se.subarray(Zt,Le)))}else{for(var Jt=el[ue-1],Rt=Jt>>>13,sn=8191&Jt,nn=(1<<B)-1,fn=new Ao(32768),$i=new Ao(nn+1),vn=Math.ceil(B/3),kn=2*vn,Fn=function(as){return(Se[as]^Se[as+1]<<vn^Se[as+2]<<kn)&nn},ur=new Ha(25e3),Vr=new Ao(288),sr=new Ao(32),Rn=0,Nr=0,kr=(Zt=0,0),mn=0,hn=0;Zt<Le;++Zt){var Hn=Fn(Zt),Vn=32767&Zt,Rr=$i[Hn];if(fn[Vn]=Rr,$i[Hn]=Vn,mn<=Zt){var br=Le-Zt;if((Rn>7e3||kr>24576)&&br>423){Pt=gs(Se,it,0,ur,Vr,sr,Nr,kr,hn,Zt-hn,Pt),kr=Rn=Nr=0,hn=Zt;for(var jr=0;jr<286;++jr)Vr[jr]=0;for(jr=0;jr<30;++jr)sr[jr]=0}var wr=2,Kr=0,Xr=sn,Ja=Vn-Rr&32767;if(br>2&&Hn==Fn(Zt-Ja))for(var Vi=Math.min(Rt,br)-1,Cn=Math.min(32767,Zt),Ln=Math.min(258,br);Ja<=Cn&&--Xr&&Vn!=Rr;){if(Se[Zt+wr]==Se[Zt+wr-Ja]){for(var Jn=0;Jn<Ln&&Se[Zt+Jn]==Se[Zt+Jn-Ja];++Jn);if(Jn>wr){if(wr=Jn,Kr=Ja,Jn>Vi)break;var lr=Math.min(Ja,Jn-2),Sr=0;for(jr=0;jr<lr;++jr){var Br=Zt-Ja+jr+32768&32767,za=Br-fn[Br]+32768&32767;za>Sr&&(Sr=za,Rr=Br)}}}Ja+=(Vn=Rr)-(Rr=fn[Vn])+32768&32767}if(Kr){ur[kr++]=268435456|rs[wr]<<18|jl[Kr];var _a=31&rs[wr],Xa=31&jl[Kr];Nr+=us[_a]+Ql[Xa],++Vr[257+_a],++sr[Xa],mn=Zt+wr,++Rn}else ur[kr++]=Se[Zt],++Vr[Se[Zt]]}}Pt=gs(Se,it,De,ur,Vr,sr,Nr,kr,hn,Zt-hn,Pt),De||(Pt=Ml(it,Pt,_s))}return va(je,0,te+Pa(Pt)+Ce)}(Se,null==ue.level?6:ue.level,null==ue.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(Se.length)))):12+ue.mem,B,te,!Ce)};function ml(Se,ue){void 0===ue&&(ue={});var B=function(){var Se=1,ue=0;return{p:function(B){for(var te=Se,Ce=ue,De=B.length,Le=0;Le!=De;){for(var je=Math.min(Le+5552,De);Le<je;++Le)Ce+=te+=B[Le];te%=65521,Ce%=65521}Se=te,ue=Ce},d:function(){return(Se>>>8<<16|(255&ue)<<8|ue>>>8)+2*((255&Se)<<23)}}}();B.p(Se);var te=Zl(Se,ue,2,4);return function(Se,ue){var B=ue.level,te=0==B?0:B<6?1:9==B?3:2;Se[0]=120,Se[1]=te<<6|(te?32-2*te:1)}(te,ue),function(Se,ue,B){for(;B;++ue)Se[ue]=B,B>>>=8}(te,te.length-4,B.d()),te}function id(Se,ue){return function(Se,ue,B){var te=Se.length,Ce=!ue||B,De=!B||B.i;B||(B={}),ue||(ue=new zo(3*te));var Le=function(lr){var Sr=ue.length;if(lr>Sr){var Br=new zo(Math.max(2*Sr,lr));Br.set(ue),ue=Br}},je=B.f||0,it=B.p||0,Pt=B.b||0,Zt=B.l,fi=B.d,Jt=B.m,Rt=B.n,sn=8*te;do{if(!Zt){B.f=je=tr(Se,it,1);var nn=tr(Se,it+1,3);if(it+=3,!nn){var $i=Se[(fn=Pa(it)+4)-4]|Se[fn-3]<<8,vn=fn+$i;if(vn>te){if(De)throw"unexpected EOF";break}Ce&&Le(Pt+$i),ue.set(Se.subarray(fn,vn),Pt),B.b=Pt+=$i,B.p=it=8*vn;continue}if(1==nn)Zt=Ni,fi=Dn,Jt=9,Rt=5;else{if(2!=nn)throw"invalid block type";var kn=tr(Se,it,31)+257,Fn=tr(Se,it+10,15)+4,ur=kn+tr(Se,it+5,31)+1;it+=14;for(var Vr=new zo(ur),sr=new zo(19),Rn=0;Rn<Fn;++Rn)sr[ms[Rn]]=tr(Se,it+3*Rn,7);it+=3*Fn;var Nr=Kn(sr),kr=(1<<Nr)-1;if(!De&&it+ur*(Nr+7)>sn)break;var mn=ws(sr,Nr,1);for(Rn=0;Rn<ur;){var fn,hn=mn[tr(Se,it,kr)];if(it+=15&hn,(fn=hn>>>4)<16)Vr[Rn++]=fn;else{var Hn=0,Vn=0;for(16==fn?(Vn=3+tr(Se,it,3),it+=2,Hn=Vr[Rn-1]):17==fn?(Vn=3+tr(Se,it,7),it+=3):18==fn&&(Vn=11+tr(Se,it,127),it+=7);Vn--;)Vr[Rn++]=Hn}}var Rr=Vr.subarray(0,kn),br=Vr.subarray(kn);Jt=Kn(Rr),Rt=Kn(br),Zt=ws(Rr,Jt,1),fi=ws(br,Rt,1)}if(it>sn)throw"unexpected EOF"}Ce&&Le(Pt+131072);for(var jr=(1<<Jt)-1,wr=(1<<Rt)-1,Kr=Jt+Rt+18;De||it+Kr<sn;){var Xr=(Hn=Zt[xr(Se,it)&jr])>>>4;if((it+=15&Hn)>sn)throw"unexpected EOF";if(!Hn)throw"invalid length/literal";if(Xr<256)ue[Pt++]=Xr;else{if(256==Xr){Zt=null;break}var Ja=Xr-254;Xr>264&&(Ja=tr(Se,it,(1<<(Vi=us[Rn=Xr-257]))-1)+Xd[Rn],it+=Vi);var Cn=fi[xr(Se,it)&wr],Ln=Cn>>>4;if(!Cn)throw"invalid distance";if(it+=15&Cn,br=Zs[Ln],Ln>3){var Vi=Ql[Ln];br+=xr(Se,it)&(1<<Vi)-1,it+=Vi}if(it>sn)throw"unexpected EOF";Ce&&Le(Pt+131072);for(var Jn=Pt+Ja;Pt<Jn;Pt+=4)ue[Pt]=ue[Pt-br],ue[Pt+1]=ue[Pt+1-br],ue[Pt+2]=ue[Pt+2-br],ue[Pt+3]=ue[Pt+3-br];Pt=Jn}}B.l=Zt,B.p=it,B.b=Pt,Zt&&(je=1,B.m=Jt,B.d=fi,B.n=Rt)}while(!je);return Pt==ue.length?ue:va(ue,0,Pt)}((function(Se){if(8!=(15&Se[0])||Se[0]>>>4>7||(Se[0]<<8|Se[1])%31)throw"invalid zlib data";if(32&Se[1])throw"invalid zlib data: preset dictionaries not supported"}(Se),Se.subarray(2,-4)),ue)}var wo=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function lc(){wo.console&&"function"==typeof wo.console.log&&wo.console.log.apply(wo.console,arguments)}var $s={log:lc,warn:function(Se){wo.console&&("function"==typeof wo.console.warn?wo.console.warn.apply(wo.console,arguments):lc.call(null,arguments))},error:function(Se){wo.console&&("function"==typeof wo.console.error?wo.console.error.apply(wo.console,arguments):lc(Se))}};function et(Se,ue,B){var te=new XMLHttpRequest;te.open("GET",Se),te.responseType="blob",te.onload=function(){Bn(te.response,ue,B)},te.onerror=function(){$s.error("could not download file")},te.send()}function Ot(Se){var ue=new XMLHttpRequest;ue.open("HEAD",Se,!1);try{ue.send()}catch{}return ue.status>=200&&ue.status<=299}function Qt(Se){try{Se.dispatchEvent(new MouseEvent("click"))}catch{var ue=document.createEvent("MouseEvents");ue.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Se.dispatchEvent(ue)}}var Ei,on,Bn=wo.saveAs||("object"!==(typeof window>"u"?"undefined":(0,mo.A)(window))||window!==wo?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(Se,ue,B){var te=wo.URL||wo.webkitURL,Ce=document.createElement("a");Ce.download=ue=ue||Se.name||"download",Ce.rel="noopener","string"==typeof Se?(Ce.href=Se,Ce.origin!==location.origin?Ot(Ce.href)?et(Se,ue,B):Qt(Ce,Ce.target="_blank"):Qt(Ce)):(Ce.href=te.createObjectURL(Se),setTimeout(function(){te.revokeObjectURL(Ce.href)},4e4),setTimeout(function(){Qt(Ce)},0))}:"msSaveOrOpenBlob"in navigator?function(Se,ue,B){if(ue=ue||Se.name||"download","string"==typeof Se)if(Ot(Se))et(Se,ue,B);else{var te=document.createElement("a");te.href=Se,te.target="_blank",setTimeout(function(){Qt(te)})}else navigator.msSaveOrOpenBlob((Ce=Se,void 0===(De=B)?De={autoBom:!1}:"object"!==(0,mo.A)(De)&&($s.warn("Deprecated: Expected third argument to be a object"),De={autoBom:!De}),De.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Ce.type)?new Blob(["\ufeff",Ce],{type:Ce.type}):Ce),ue);var Ce,De}:function(Se,ue,B,te){if((te=te||open("","_blank"))&&(te.document.title=te.document.body.innerText="downloading..."),"string"==typeof Se)return et(Se,ue,B);var Ce="application/octet-stream"===Se.type,De=/constructor/i.test(wo.HTMLElement)||wo.safari,Le=/CriOS\/[\d]+/.test(navigator.userAgent);if((Le||Ce&&De)&&"object"===(typeof FileReader>"u"?"undefined":(0,mo.A)(FileReader))){var je=new FileReader;je.onloadend=function(){var Zt=je.result;Zt=Le?Zt:Zt.replace(/^data:[^;]*;/,"data:attachment/file;"),te?te.location.href=Zt:location=Zt,te=null},je.readAsDataURL(Se)}else{var it=wo.URL||wo.webkitURL,Pt=it.createObjectURL(Se);te?te.location=Pt:location.href=Pt,te=null,setTimeout(function(){it.revokeObjectURL(Pt)},4e4)}});function ir(Se){var ue;Se=Se||"",this.ok=!1,"#"==Se.charAt(0)&&(Se=Se.substr(1,6)),Se={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",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"}[Se=(Se=Se.replace(/ /g,"")).toLowerCase()]||Se;for(var B=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(je){return[parseInt(je[1]),parseInt(je[2]),parseInt(je[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(je){return[parseInt(je[1],16),parseInt(je[2],16),parseInt(je[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(je){return[parseInt(je[1]+je[1],16),parseInt(je[2]+je[2],16),parseInt(je[3]+je[3],16)]}}],te=0;te<B.length;te++){var De=B[te].process,Le=B[te].re.exec(Se);Le&&(ue=De(Le),this.r=ue[0],this.g=ue[1],this.b=ue[2],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.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var je=this.r.toString(16),it=this.g.toString(16),Pt=this.b.toString(16);return 1==je.length&&(je="0"+je),1==it.length&&(it="0"+it),1==Pt.length&&(Pt="0"+Pt),"#"+je+it+Pt}}function Yr(Se,ue){var B=Se[0],te=Se[1],Ce=Se[2],De=Se[3];B=pa(B,te,Ce,De,ue[0],7,-680876936),De=pa(De,B,te,Ce,ue[1],12,-389564586),Ce=pa(Ce,De,B,te,ue[2],17,606105819),te=pa(te,Ce,De,B,ue[3],22,-1044525330),B=pa(B,te,Ce,De,ue[4],7,-176418897),De=pa(De,B,te,Ce,ue[5],12,1200080426),Ce=pa(Ce,De,B,te,ue[6],17,-1473231341),te=pa(te,Ce,De,B,ue[7],22,-45705983),B=pa(B,te,Ce,De,ue[8],7,1770035416),De=pa(De,B,te,Ce,ue[9],12,-1958414417),Ce=pa(Ce,De,B,te,ue[10],17,-42063),te=pa(te,Ce,De,B,ue[11],22,-1990404162),B=pa(B,te,Ce,De,ue[12],7,1804603682),De=pa(De,B,te,Ce,ue[13],12,-40341101),Ce=pa(Ce,De,B,te,ue[14],17,-1502002290),B=fa(B,te=pa(te,Ce,De,B,ue[15],22,1236535329),Ce,De,ue[1],5,-165796510),De=fa(De,B,te,Ce,ue[6],9,-1069501632),Ce=fa(Ce,De,B,te,ue[11],14,643717713),te=fa(te,Ce,De,B,ue[0],20,-373897302),B=fa(B,te,Ce,De,ue[5],5,-701558691),De=fa(De,B,te,Ce,ue[10],9,38016083),Ce=fa(Ce,De,B,te,ue[15],14,-660478335),te=fa(te,Ce,De,B,ue[4],20,-405537848),B=fa(B,te,Ce,De,ue[9],5,568446438),De=fa(De,B,te,Ce,ue[14],9,-1019803690),Ce=fa(Ce,De,B,te,ue[3],14,-187363961),te=fa(te,Ce,De,B,ue[8],20,1163531501),B=fa(B,te,Ce,De,ue[13],5,-1444681467),De=fa(De,B,te,Ce,ue[2],9,-51403784),Ce=fa(Ce,De,B,te,ue[7],14,1735328473),B=eo(B,te=fa(te,Ce,De,B,ue[12],20,-1926607734),Ce,De,ue[5],4,-378558),De=eo(De,B,te,Ce,ue[8],11,-2022574463),Ce=eo(Ce,De,B,te,ue[11],16,1839030562),te=eo(te,Ce,De,B,ue[14],23,-35309556),B=eo(B,te,Ce,De,ue[1],4,-1530992060),De=eo(De,B,te,Ce,ue[4],11,1272893353),Ce=eo(Ce,De,B,te,ue[7],16,-155497632),te=eo(te,Ce,De,B,ue[10],23,-1094730640),B=eo(B,te,Ce,De,ue[13],4,681279174),De=eo(De,B,te,Ce,ue[0],11,-358537222),Ce=eo(Ce,De,B,te,ue[3],16,-722521979),te=eo(te,Ce,De,B,ue[6],23,76029189),B=eo(B,te,Ce,De,ue[9],4,-640364487),De=eo(De,B,te,Ce,ue[12],11,-421815835),Ce=eo(Ce,De,B,te,ue[15],16,530742520),B=Oo(B,te=eo(te,Ce,De,B,ue[2],23,-995338651),Ce,De,ue[0],6,-198630844),De=Oo(De,B,te,Ce,ue[7],10,1126891415),Ce=Oo(Ce,De,B,te,ue[14],15,-1416354905),te=Oo(te,Ce,De,B,ue[5],21,-57434055),B=Oo(B,te,Ce,De,ue[12],6,1700485571),De=Oo(De,B,te,Ce,ue[3],10,-1894986606),Ce=Oo(Ce,De,B,te,ue[10],15,-1051523),te=Oo(te,Ce,De,B,ue[1],21,-2054922799),B=Oo(B,te,Ce,De,ue[8],6,1873313359),De=Oo(De,B,te,Ce,ue[15],10,-30611744),Ce=Oo(Ce,De,B,te,ue[6],15,-1560198380),te=Oo(te,Ce,De,B,ue[13],21,1309151649),B=Oo(B,te,Ce,De,ue[4],6,-145523070),De=Oo(De,B,te,Ce,ue[11],10,-1120210379),Ce=Oo(Ce,De,B,te,ue[2],15,718787259),te=Oo(te,Ce,De,B,ue[9],21,-343485551),Se[0]=hi(B,Se[0]),Se[1]=hi(te,Se[1]),Se[2]=hi(Ce,Se[2]),Se[3]=hi(De,Se[3])}function Ir(Se,ue,B,te,Ce,De){return ue=hi(hi(ue,Se),hi(te,De)),hi(ue<<Ce|ue>>>32-Ce,B)}function pa(Se,ue,B,te,Ce,De,Le){return Ir(ue&B|~ue&te,Se,ue,Ce,De,Le)}function fa(Se,ue,B,te,Ce,De,Le){return Ir(ue&te|B&~te,Se,ue,Ce,De,Le)}function eo(Se,ue,B,te,Ce,De,Le){return Ir(ue^B^te,Se,ue,Ce,De,Le)}function Oo(Se,ue,B,te,Ce,De,Le){return Ir(B^(ue|~te),Se,ue,Ce,De,Le)}function Fs(Se){var ue,B=Se.length,te=[1732584193,-271733879,-1732584194,271733878];for(ue=64;ue<=Se.length;ue+=64)Yr(te,Tl(Se.substring(ue-64,ue)));Se=Se.substring(ue-64);var Ce=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(ue=0;ue<Se.length;ue++)Ce[ue>>2]|=Se.charCodeAt(ue)<<(ue%4<<3);if(Ce[ue>>2]|=128<<(ue%4<<3),ue>55)for(Yr(te,Ce),ue=0;ue<16;ue++)Ce[ue]=0;return Ce[14]=8*B,Yr(te,Ce),te}function Tl(Se){var ue,B=[];for(ue=0;ue<64;ue+=4)B[ue>>2]=Se.charCodeAt(ue)+(Se.charCodeAt(ue+1)<<8)+(Se.charCodeAt(ue+2)<<16)+(Se.charCodeAt(ue+3)<<24);return B}Ei=wo.atob.bind(wo),on=wo.btoa.bind(wo);var Rs="0123456789abcdef".split("");function Qc(Se){for(var ue="",B=0;B<4;B++)ue+=Rs[Se>>8*B+4&15]+Rs[Se>>8*B&15];return ue}function ut(Se){return String.fromCharCode(255&Se,(65280&Se)>>8,(16711680&Se)>>16,(4278190080&Se)>>24)}function Mi(Se){return Fs(Se).map(ut).join("")}var Gt="5d41402abc4b2a76b9719d911017c592"!=function(Se){for(var ue=0;ue<Se.length;ue++)Se[ue]=Qc(Se[ue]);return Se.join("")}(Fs("hello"));function hi(Se,ue){if(Gt){var B=(65535&Se)+(65535&ue);return(Se>>16)+(ue>>16)+(B>>16)<<16|65535&B}return Se+ue&4294967295}function gn(Se,ue){var B,te,Ce;if(Se!==B){for(var Le=(Ce=Se,new Array(1+(256/Se.length|0)+1).join(Ce)),je=[],it=0;it<256;it++)je[it]=it;var Pt=0;for(it=0;it<256;it++){var Zt=je[it];Pt=(Pt+Zt+Le.charCodeAt(it))%256,je[it]=je[Pt],je[Pt]=Zt}B=Se,te=je}else je=te;var fi=ue.length,Jt=0,Rt=0,sn="";for(it=0;it<fi;it++)Rt=(Rt+(Zt=je[Jt=(Jt+1)%256]))%256,je[Jt]=je[Rt],je[Rt]=Zt,Le=je[(je[Jt]+je[Rt])%256],sn+=String.fromCharCode(ue.charCodeAt(it)^Le);return sn}var rr={print:4,modify:8,copy:16,"annot-forms":32};function Tr(Se,ue,B,te){this.v=1,this.r=2;var Ce=192;Se.forEach(function(je){if(void 0!==rr.perm)throw new Error("Invalid permission: "+je);Ce+=rr[je]}),this.padding="(\xbfN^Nu\x8aAd\0NV\xff\xfa\x01\b..\0\xb6\xd0h>\x80/\f\xa9\xfedSiz";var De=(ue+this.padding).substr(0,32),Le=(B+this.padding).substr(0,32);this.O=this.processOwnerPassword(De,Le),this.P=-(1+(255^Ce)),this.encryptionKey=Mi(De+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(te)).substr(0,5),this.U=gn(this.encryptionKey,this.padding)}function Da(Se){if(/[^\u0000-\u00ff]/.test(Se))throw new Error("Invalid PDF Name Object: "+Se+", Only accept ASCII characters.");for(var ue="",B=Se.length,te=0;te<B;te++){var Ce=Se.charCodeAt(te);ue+=Ce<33||35===Ce||37===Ce||40===Ce||41===Ce||47===Ce||60===Ce||62===Ce||91===Ce||93===Ce||123===Ce||125===Ce||Ce>126?"#"+("0"+Ce.toString(16)).slice(-2):Se[te]}return ue}function Ca(Se){if("object"!==(0,mo.A)(Se))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var ue={};this.subscribe=function(B,te,Ce){if(Ce=Ce||!1,"string"!=typeof B||"function"!=typeof te||"boolean"!=typeof Ce)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");ue.hasOwnProperty(B)||(ue[B]={});var De=Math.random().toString(35);return ue[B][De]=[te,!!Ce],De},this.unsubscribe=function(B){for(var te in ue)if(ue[te][B])return delete ue[te][B],0===Object.keys(ue[te]).length&&delete ue[te],!0;return!1},this.publish=function(B){if(ue.hasOwnProperty(B)){var te=Array.prototype.slice.call(arguments,1),Ce=[];for(var De in ue[B]){var Le=ue[B][De];try{Le[0].apply(Se,te)}catch(je){wo.console&&$s.error("jsPDF PubSub Error",je.message,je)}Le[1]&&Ce.push(De)}Ce.length&&Ce.forEach(this.unsubscribe)}},this.getTopics=function(){return ue}}function ts(Se){if(!(this instanceof ts))return new ts(Se);var ue="opacity,stroke-opacity".split(",");for(var B in Se)Se.hasOwnProperty(B)&&ue.indexOf(B)>=0&&(this[B]=Se[B]);this.id="",this.objectNumber=-1}function zn(Se,ue){this.gState=Se,this.matrix=ue,this.id="",this.objectNumber=-1}function bo(Se,ue,B,te,Ce){if(!(this instanceof bo))return new bo(Se,ue,B,te,Ce);this.type="axial"===Se?2:3,this.coords=ue,this.colors=B,zn.call(this,te,Ce)}function Ss(Se,ue,B,te,Ce){if(!(this instanceof Ss))return new Ss(Se,ue,B,te,Ce);this.boundingBox=Se,this.xStep=ue,this.yStep=B,this.stream="",this.cloneIndex=0,zn.call(this,te,Ce)}function wa(Se){var ue,B="string"==typeof arguments[0]?arguments[0]:"p",te=arguments[1],Ce=arguments[2],De=arguments[3],Le=[],je=1,it=16,Pt="S",Zt=null;"object"===(0,mo.A)(Se=Se||{})&&(B=Se.orientation,te=Se.unit||te,Ce=Se.format||Ce,De=Se.compress||Se.compressPdf||De,null!==(Zt=Se.encryption||null)&&(Zt.userPassword=Zt.userPassword||"",Zt.ownerPassword=Zt.ownerPassword||"",Zt.userPermissions=Zt.userPermissions||[]),je="number"==typeof Se.userUnit?Math.abs(Se.userUnit):1,void 0!==Se.precision&&(ue=Se.precision),void 0!==Se.floatPrecision&&(it=Se.floatPrecision),Pt=Se.defaultPathOperation||"S"),Le=Se.filters||(!0===De?["FlateEncode"]:Le),te=te||"mm",B=(""+(B||"P")).toLowerCase();var fi=Se.putOnlyUsedFonts||!1,Jt={},Rt={internal:{},__private__:{}};Rt.__private__.PubSub=Ca;var sn="1.3",nn=Rt.__private__.getPdfVersion=function(){return sn};Rt.__private__.setPdfVersion=function(mt){sn=mt};var fn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};Rt.__private__.getPageFormats=function(){return fn};var $i=Rt.__private__.getPageFormat=function(mt){return fn[mt]};Ce=Ce||"a4";var kn="compat";function Fn(){this.saveGraphicsState(),Pn(new Do(ro,0,0,-ro,0,lf()*ro).toString()+" cm"),this.setFontSize(this.getFontSize()/ro),Pt="n",kn="advanced"}function ur(){this.restoreGraphicsState(),Pt="S",kn="compat"}var Vr=Rt.__private__.combineFontStyleAndFontWeight=function(mt,ki){if("bold"==mt&&"normal"==ki||"bold"==mt&&400==ki||"normal"==mt&&"italic"==ki||"bold"==mt&&"italic"==ki)throw new Error("Invalid Combination of fontweight and fontstyle");return ki&&(mt=400==ki||"normal"===ki?"italic"===mt?"italic":"normal":700!=ki&&"bold"!==ki||"normal"!==mt?(700==ki?"bold":ki)+""+mt:"bold"),mt};Rt.advancedAPI=function(mt){var ki="compat"===kn;return ki&&Fn.call(this),"function"!=typeof mt||(mt(this),ki&&ur.call(this)),this},Rt.compatAPI=function(mt){var ki="advanced"===kn;return ki&&ur.call(this),"function"!=typeof mt||(mt(this),ki&&Fn.call(this)),this},Rt.isAdvancedAPI=function(){return"advanced"===kn};var sr,Rn=function(mt){if("advanced"!==kn)throw new Error(mt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Nr=Rt.roundToPrecision=Rt.__private__.roundToPrecision=function(mt,ki){var Mn=ue||ki;if(isNaN(mt)||isNaN(Mn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return mt.toFixed(Mn).replace(/0+$/,"")};sr=Rt.hpf=Rt.__private__.hpf="number"==typeof it?function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.hpf");return Nr(mt,it)}:"smart"===it?function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.hpf");return Nr(mt,mt>-1&&mt<1?16:5)}:function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.hpf");return Nr(mt,16)};var kr=Rt.f2=Rt.__private__.f2=function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.f2");return Nr(mt,2)},mn=Rt.__private__.f3=function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.f3");return Nr(mt,3)},hn=Rt.scale=Rt.__private__.scale=function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.scale");return"compat"===kn?mt*ro:"advanced"===kn?mt:void 0},Vn=function(mt){return hn(function(mt){return"compat"===kn?lf()-mt:"advanced"===kn?mt:void 0}(mt))};Rt.__private__.setPrecision=Rt.setPrecision=function(mt){"number"==typeof parseInt(mt,10)&&(ue=parseInt(mt,10))};var Rr,br="00000000000000000000000000000000",jr=Rt.__private__.getFileId=function(){return br},wr=Rt.__private__.setFileId=function(mt){return br=void 0!==mt&&/^[a-fA-F0-9]{32}$/.test(mt)?mt.toUpperCase():br.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==Zt&&(Wd=new Tr(Zt.userPermissions,Zt.userPassword,Zt.ownerPassword,br)),br};Rt.setFileId=function(mt){return wr(mt),this},Rt.getFileId=function(){return jr()};var Kr=Rt.__private__.convertDateToPDFDate=function(mt){var ki=mt.getTimezoneOffset(),Mn=ki<0?"+":"-",Xn=Math.floor(Math.abs(ki/60)),yr=Math.abs(ki%60),$r=[Mn,Ln(Xn),"'",Ln(yr),"'"].join("");return["D:",mt.getFullYear(),Ln(mt.getMonth()+1),Ln(mt.getDate()),Ln(mt.getHours()),Ln(mt.getMinutes()),Ln(mt.getSeconds()),$r].join("")},Xr=Rt.__private__.convertPDFDateToDate=function(mt){var ki=parseInt(mt.substr(2,4),10),Mn=parseInt(mt.substr(6,2),10)-1,Xn=parseInt(mt.substr(8,2),10),yr=parseInt(mt.substr(10,2),10),$r=parseInt(mt.substr(12,2),10),Ta=parseInt(mt.substr(14,2),10);return new Date(ki,Mn,Xn,yr,$r,Ta,0)},Ja=Rt.__private__.setCreationDate=function(mt){var ki;if(void 0===mt&&(mt=new Date),mt instanceof Date)ki=Kr(mt);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(mt))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ki=mt}return Rr=ki},Vi=Rt.__private__.getCreationDate=function(mt){var ki=Rr;return"jsDate"===mt&&(ki=Xr(Rr)),ki};Rt.setCreationDate=function(mt){return Ja(mt),this},Rt.getCreationDate=function(mt){return Vi(mt)};var Cn,Ln=Rt.__private__.padd2=function(mt){return("0"+parseInt(mt)).slice(-2)},Jn=Rt.__private__.padd2Hex=function(mt){return("00"+(mt=mt.toString())).substr(mt.length)},lr=0,Sr=[],Br=[],Lr=0,za=[],_a=[],Xa=!1,Oa=Br;Rt.__private__.setCustomOutputDestination=function(mt){Xa=!0,Oa=mt};var Jr=function(mt){Xa||(Oa=mt)};Rt.__private__.resetCustomOutputDestination=function(){Xa=!1,Oa=Br};var Pn=Rt.__private__.out=function(mt){return mt=mt.toString(),Lr+=mt.length+1,Oa.push(mt),Oa},cs=Rt.__private__.write=function(mt){return Pn(1===arguments.length?mt.toString():Array.prototype.join.call(arguments," "))},So=Rt.__private__.getArrayBuffer=function(mt){for(var ki=mt.length,Mn=new ArrayBuffer(ki),Xn=new Uint8Array(Mn);ki--;)Xn[ki]=mt.charCodeAt(ki);return Mn},Ea=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];Rt.__private__.getStandardFonts=function(){return Ea};var ka=Se.fontSize||16;Rt.__private__.setFontSize=Rt.setFontSize=function(mt){return ka="advanced"===kn?mt/ro:mt,this};var Ka,qa=Rt.__private__.getFontSize=Rt.getFontSize=function(){return"compat"===kn?ka:ka*ro},Po=Se.R2L||!1;Rt.__private__.setR2L=Rt.setR2L=function(mt){return Po=mt,this},Rt.__private__.getR2L=Rt.getR2L=function(){return Po};var Jo,Ds=Rt.__private__.setZoomMode=function(mt){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(mt))Ka=mt;else if(isNaN(mt)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(mt))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+mt+'" is not recognized.');Ka=mt}else Ka=parseInt(mt,10)};Rt.__private__.getZoomMode=function(){return Ka};var Us,Cl=Rt.__private__.setPageMode=function(mt){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(mt))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+mt+'" is not recognized.');Jo=mt};Rt.__private__.getPageMode=function(){return Jo};var gl=Rt.__private__.setLayoutMode=function(mt){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(mt))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+mt+'" is not recognized.');Us=mt};Rt.__private__.getLayoutMode=function(){return Us},Rt.__private__.setDisplayMode=Rt.setDisplayMode=function(mt,ki,Mn){return Ds(mt),gl(ki),Cl(Mn),this};var ls={title:"",subject:"",author:"",keywords:"",creator:""};Rt.__private__.getDocumentProperty=function(mt){if(-1===Object.keys(ls).indexOf(mt))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ls[mt]},Rt.__private__.getDocumentProperties=function(){return ls},Rt.__private__.setDocumentProperties=Rt.setProperties=Rt.setDocumentProperties=function(mt){for(var ki in ls)ls.hasOwnProperty(ki)&&mt[ki]&&(ls[ki]=mt[ki]);return this},Rt.__private__.setDocumentProperty=function(mt,ki){if(-1===Object.keys(ls).indexOf(mt))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ls[mt]=ki};var bs,ro,wc,il,xu,Rl={},fd={},bh=[],nl={},Sp={},rd={},nh={},Lu=null,ll=0,os=[],co=new Ca(Rt),ef=Se.hotfixes||[],Sc={},Id={},ad=[],Do=function mt(ki,Mn,Xn,yr,$r,Ta){if(!(this instanceof mt))return new mt(ki,Mn,Xn,yr,$r,Ta);isNaN(ki)&&(ki=1),isNaN(Mn)&&(Mn=0),isNaN(Xn)&&(Xn=0),isNaN(yr)&&(yr=1),isNaN($r)&&($r=0),isNaN(Ta)&&(Ta=0),this._matrix=[ki,Mn,Xn,yr,$r,Ta]};Object.defineProperty(Do.prototype,"sx",{get:function(){return this._matrix[0]},set:function(mt){this._matrix[0]=mt}}),Object.defineProperty(Do.prototype,"shy",{get:function(){return this._matrix[1]},set:function(mt){this._matrix[1]=mt}}),Object.defineProperty(Do.prototype,"shx",{get:function(){return this._matrix[2]},set:function(mt){this._matrix[2]=mt}}),Object.defineProperty(Do.prototype,"sy",{get:function(){return this._matrix[3]},set:function(mt){this._matrix[3]=mt}}),Object.defineProperty(Do.prototype,"tx",{get:function(){return this._matrix[4]},set:function(mt){this._matrix[4]=mt}}),Object.defineProperty(Do.prototype,"ty",{get:function(){return this._matrix[5]},set:function(mt){this._matrix[5]=mt}}),Object.defineProperty(Do.prototype,"a",{get:function(){return this._matrix[0]},set:function(mt){this._matrix[0]=mt}}),Object.defineProperty(Do.prototype,"b",{get:function(){return this._matrix[1]},set:function(mt){this._matrix[1]=mt}}),Object.defineProperty(Do.prototype,"c",{get:function(){return this._matrix[2]},set:function(mt){this._matrix[2]=mt}}),Object.defineProperty(Do.prototype,"d",{get:function(){return this._matrix[3]},set:function(mt){this._matrix[3]=mt}}),Object.defineProperty(Do.prototype,"e",{get:function(){return this._matrix[4]},set:function(mt){this._matrix[4]=mt}}),Object.defineProperty(Do.prototype,"f",{get:function(){return this._matrix[5]},set:function(mt){this._matrix[5]=mt}}),Object.defineProperty(Do.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Do.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Do.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Do.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Do.prototype.join=function(mt){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(sr).join(mt)},Do.prototype.multiply=function(mt){return new Do(mt.sx*this.sx+mt.shy*this.shx,mt.sx*this.shy+mt.shy*this.sy,mt.shx*this.sx+mt.sy*this.shx,mt.shx*this.shy+mt.sy*this.sy,mt.tx*this.sx+mt.ty*this.shx+this.tx,mt.tx*this.shy+mt.ty*this.sy+this.ty)},Do.prototype.decompose=function(){var mt=this.sx,ki=this.shy,Mn=this.shx,Xn=this.sy,yr=this.tx,$r=this.ty,Ta=Math.sqrt(mt*mt+ki*ki),ho=(mt/=Ta)*Mn+(ki/=Ta)*Xn;Mn-=mt*ho,Xn-=ki*ho;var Go=Math.sqrt(Mn*Mn+Xn*Xn);return ho/=Go,mt*(Xn/=Go)<ki*(Mn/=Go)&&(mt=-mt,ki=-ki,ho=-ho,Ta=-Ta),{scale:new Do(Ta,0,0,Go,0,0),translate:new Do(1,0,0,1,yr,$r),rotate:new Do(mt,ki,-ki,mt,0,0),skew:new Do(1,0,ho,1,0,0)}},Do.prototype.toString=function(mt){return this.join(" ")},Do.prototype.inversed=function(){var mt=this.sx,ki=this.shy,Mn=this.shx,Xn=this.sy,yr=this.tx,$r=this.ty,Ta=1/(mt*Xn-ki*Mn),ho=Xn*Ta,Go=-ki*Ta,ss=-Mn*Ta,Xs=mt*Ta;return new Do(ho,Go,ss,Xs,-ho*yr-ss*$r,-Go*yr-Xs*$r)},Do.prototype.applyToPoint=function(mt){return new tm(mt.x*this.sx+mt.y*this.shx+this.tx,mt.x*this.shy+mt.y*this.sy+this.ty)},Do.prototype.applyToRectangle=function(mt){var ki=this.applyToPoint(mt),Mn=this.applyToPoint(new tm(mt.x+mt.w,mt.y+mt.h));return new bm(ki.x,ki.y,Mn.x-ki.x,Mn.y-ki.y)},Do.prototype.clone=function(){return new Do(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)},Rt.Matrix=Do;var wd=Rt.matrixMult=function(mt,ki){return ki.multiply(mt)},kd=new Do(1,0,0,1,0,0);Rt.unitMatrix=Rt.identityMatrix=kd;var Pc=function(mt,ki){if(!Sp[mt]){var Mn=(ki instanceof bo?"Sh":"P")+(Object.keys(nl).length+1).toString(10);ki.id=Mn,Sp[mt]=Mn,nl[Mn]=ki,co.publish("addPattern",ki)}};Rt.ShadingPattern=bo,Rt.TilingPattern=Ss,Rt.addShadingPattern=function(mt,ki){return Rn("addShadingPattern()"),Pc(mt,ki),this},Rt.beginTilingPattern=function(mt){Rn("beginTilingPattern()"),ug(mt.boundingBox[0],mt.boundingBox[1],mt.boundingBox[2]-mt.boundingBox[0],mt.boundingBox[3]-mt.boundingBox[1],mt.matrix)},Rt.endTilingPattern=function(mt,ki){Rn("endTilingPattern()"),ki.stream=_a[Cn].join("\n"),Pc(mt,ki),co.publish("endTilingPattern",ki),ad.pop().restore()};var mt,Sd=Rt.__private__.newObject=function(){var mt=Dd();return ec(mt,!0),mt},Dd=Rt.__private__.newObjectDeferred=function(){return lr++,Sr[lr]=function(){return Lr},lr},ec=function(mt,ki){return ki="boolean"==typeof ki&&ki,Sr[mt]=Lr,ki&&Pn(mt+" 0 obj"),mt},hp=Rt.__private__.newAdditionalObject=function(){var mt={objId:Dd(),content:""};return za.push(mt),mt},Cu=Dd(),Ed=Dd(),md=Rt.__private__.decodeColorString=function(mt){var ki=mt.split(" ");if(2!==ki.length||"g"!==ki[1]&&"G"!==ki[1])5===ki.length&&("k"===ki[4]||"K"===ki[4])&&(ki=[(1-ki[0])*(1-ki[3]),(1-ki[1])*(1-ki[3]),(1-ki[2])*(1-ki[3]),"r"]);else{var Mn=parseFloat(ki[0]);ki=[Mn,Mn,Mn,"r"]}for(var Xn="#",yr=0;yr<3;yr++)Xn+=("0"+Math.floor(255*parseFloat(ki[yr])).toString(16)).slice(-2);return Xn},uc=Rt.__private__.encodeColorString=function(mt){var ki;"string"==typeof mt&&(mt={ch1:mt});var Mn=mt.ch1,Xn=mt.ch2,yr=mt.ch3,$r=mt.ch4,Ta="draw"===mt.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof Mn&&"#"!==Mn.charAt(0)){var ho=new ir(Mn);if(ho.ok)Mn=ho.toHex();else if(!/^\d*\.?\d*$/.test(Mn))throw new Error('Invalid color "'+Mn+'" passed to jsPDF.encodeColorString.')}if("string"==typeof Mn&&/^#[0-9A-Fa-f]{3}$/.test(Mn)&&(Mn="#"+Mn[1]+Mn[1]+Mn[2]+Mn[2]+Mn[3]+Mn[3]),"string"==typeof Mn&&/^#[0-9A-Fa-f]{6}$/.test(Mn)){var Go=parseInt(Mn.substr(1),16);Mn=Go>>16&255,Xn=Go>>8&255,yr=255&Go}if(void 0===Xn||void 0===$r&&Mn===Xn&&Xn===yr)ki="string"==typeof Mn?Mn+" "+Ta[0]:2===mt.precision?kr(Mn/255)+" "+Ta[0]:mn(Mn/255)+" "+Ta[0];else if(void 0===$r||"object"===(0,mo.A)($r)){if($r&&!isNaN($r.a)&&0===$r.a)return["1.","1.","1.",Ta[1]].join(" ");ki="string"==typeof Mn?[Mn,Xn,yr,Ta[1]].join(" "):2===mt.precision?[kr(Mn/255),kr(Xn/255),kr(yr/255),Ta[1]].join(" "):[mn(Mn/255),mn(Xn/255),mn(yr/255),Ta[1]].join(" ")}else ki="string"==typeof Mn?[Mn,Xn,yr,$r,Ta[2]].join(" "):2===mt.precision?[kr(Mn),kr(Xn),kr(yr),kr($r),Ta[2]].join(" "):[mn(Mn),mn(Xn),mn(yr),mn($r),Ta[2]].join(" ");return ki},Dc=Rt.__private__.getFilters=function(){return Le},od=Rt.__private__.putStream=function(mt){var ki=(mt=mt||{}).data||"",Mn=mt.filters||Dc(),Xn=mt.alreadyAppliedFilters||[],yr=mt.addLength1||!1,$r=ki.length,Ta=mt.objectId,ho=function(nc){return nc};if(null!==Zt&&void 0===Ta)throw new Error("ObjectId must be passed to putStream for file encryption");null!==Zt&&(ho=Wd.encryptor(Ta,0));var Go={};!0===Mn&&(Mn=["FlateEncode"]);var ss=mt.additionalKeyValues||[],Xs=(Go=void 0!==wa.API.processDataByFilters?wa.API.processDataByFilters(ki,Mn):{data:ki,reverseChain:[]}).reverseChain+(Array.isArray(Xn)?Xn.join(" "):Xn.toString());if(0!==Go.data.length&&(ss.push({key:"Length",value:Go.data.length}),!0===yr&&ss.push({key:"Length1",value:$r})),0!=Xs.length)if(Xs.split("/").length-1==1)ss.push({key:"Filter",value:Xs});else{ss.push({key:"Filter",value:"["+Xs+"]"});for(var wl=0;wl<ss.length;wl+=1)if("DecodeParms"===ss[wl].key){for(var jd=[],sd=0;sd<Go.reverseChain.split("/").length-1;sd+=1)jd.push("null");jd.push(ss[wl].value),ss[wl].value="["+jd.join(" ")+"]"}}Pn("<<");for(var hc=0;hc<ss.length;hc++)Pn("/"+ss[hc].key+" "+ss[hc].value);Pn(">>"),0!==Go.data.length&&(Pn("stream"),Pn(ho(Go.data)),Pn("endstream"))},Gs=Rt.__private__.putPage=function(mt){var ki=mt.number,Mn=mt.data,Xn=mt.objId,yr=mt.contentsObjId;ec(Xn,!0),Pn("<</Type /Page"),Pn("/Parent "+mt.rootDictionaryObjId+" 0 R"),Pn("/Resources "+mt.resourceDictionaryObjId+" 0 R"),Pn("/MediaBox ["+parseFloat(sr(mt.mediaBox.bottomLeftX))+" "+parseFloat(sr(mt.mediaBox.bottomLeftY))+" "+sr(mt.mediaBox.topRightX)+" "+sr(mt.mediaBox.topRightY)+"]"),null!==mt.cropBox&&Pn("/CropBox ["+sr(mt.cropBox.bottomLeftX)+" "+sr(mt.cropBox.bottomLeftY)+" "+sr(mt.cropBox.topRightX)+" "+sr(mt.cropBox.topRightY)+"]"),null!==mt.bleedBox&&Pn("/BleedBox ["+sr(mt.bleedBox.bottomLeftX)+" "+sr(mt.bleedBox.bottomLeftY)+" "+sr(mt.bleedBox.topRightX)+" "+sr(mt.bleedBox.topRightY)+"]"),null!==mt.trimBox&&Pn("/TrimBox ["+sr(mt.trimBox.bottomLeftX)+" "+sr(mt.trimBox.bottomLeftY)+" "+sr(mt.trimBox.topRightX)+" "+sr(mt.trimBox.topRightY)+"]"),null!==mt.artBox&&Pn("/ArtBox ["+sr(mt.artBox.bottomLeftX)+" "+sr(mt.artBox.bottomLeftY)+" "+sr(mt.artBox.topRightX)+" "+sr(mt.artBox.topRightY)+"]"),"number"==typeof mt.userUnit&&1!==mt.userUnit&&Pn("/UserUnit "+mt.userUnit),co.publish("putPage",{objId:Xn,pageContext:os[ki],pageNumber:ki,page:Mn}),Pn("/Contents "+yr+" 0 R"),Pn(">>"),Pn("endobj");var $r=Mn.join("\n");return"advanced"===kn&&($r+="\nQ"),ec(yr,!0),od({data:$r,filters:Dc(),objectId:yr}),Pn("endobj"),Xn},Rd=Rt.__private__.putPages=function(){var mt,ki,Mn=[];for(mt=1;mt<=ll;mt++)os[mt].objId=Dd(),os[mt].contentsObjId=Dd();for(mt=1;mt<=ll;mt++)Mn.push(Gs({number:mt,data:_a[mt],objId:os[mt].objId,contentsObjId:os[mt].contentsObjId,mediaBox:os[mt].mediaBox,cropBox:os[mt].cropBox,bleedBox:os[mt].bleedBox,trimBox:os[mt].trimBox,artBox:os[mt].artBox,userUnit:os[mt].userUnit,rootDictionaryObjId:Cu,resourceDictionaryObjId:Ed}));ec(Cu,!0),Pn("<</Type /Pages");var Xn="/Kids [";for(ki=0;ki<ll;ki++)Xn+=Mn[ki]+" 0 R ";Pn(Xn+"]"),Pn("/Count "+ll),Pn(">>"),Pn("endobj"),co.publish("postPutPages")},$h=function(mt){co.publish("putFont",{font:mt,out:Pn,newObject:Sd,putStream:od}),!0!==mt.isAlreadyPutted&&(mt.objectNumber=Sd(),Pn("<<"),Pn("/Type /Font"),Pn("/BaseFont /"+Da(mt.postScriptName)),Pn("/Subtype /Type1"),"string"==typeof mt.encoding&&Pn("/Encoding /"+mt.encoding),Pn("/FirstChar 32"),Pn("/LastChar 255"),Pn(">>"),Pn("endobj"))},Fu=function(mt){mt.objectNumber=Sd();var ki=[];ki.push({key:"Type",value:"/XObject"}),ki.push({key:"Subtype",value:"/Form"}),ki.push({key:"BBox",value:"["+[sr(mt.x),sr(mt.y),sr(mt.x+mt.width),sr(mt.y+mt.height)].join(" ")+"]"}),ki.push({key:"Matrix",value:"["+mt.matrix.toString()+"]"});var Mn=mt.pages[1].join("\n");od({data:Mn,additionalKeyValues:ki,objectId:mt.objectNumber}),Pn("endobj")},yh=function(mt,ki){ki||(ki=21);var Mn=Sd(),Xn=function(mt,ki){var Mn,Xn=[],yr=1/(ki-1);for(Mn=0;Mn<1;Mn+=yr)Xn.push(Mn);Xn.push(1),0!=mt[0].offset&&mt.unshift({offset:0,color:mt[0].color}),1!=mt[mt.length-1].offset&&mt.push({offset:1,color:mt[mt.length-1].color});for(var ho="",Go=0,ss=0;ss<Xn.length;ss++){for(Mn=Xn[ss];Mn>mt[Go+1].offset;)Go++;var Xs=mt[Go].offset,wl=(Mn-Xs)/(mt[Go+1].offset-Xs),jd=mt[Go].color,sd=mt[Go+1].color;ho+=Jn(Math.round((1-wl)*jd[0]+wl*sd[0]).toString(16))+Jn(Math.round((1-wl)*jd[1]+wl*sd[1]).toString(16))+Jn(Math.round((1-wl)*jd[2]+wl*sd[2]).toString(16))}return ho.trim()}(mt.colors,ki),yr=[];yr.push({key:"FunctionType",value:"0"}),yr.push({key:"Domain",value:"[0.0 1.0]"}),yr.push({key:"Size",value:"["+ki+"]"}),yr.push({key:"BitsPerSample",value:"8"}),yr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),yr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),od({data:Xn,additionalKeyValues:yr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Mn}),Pn("endobj"),mt.objectNumber=Sd(),Pn("<< /ShadingType "+mt.type),Pn("/ColorSpace /DeviceRGB");var $r="/Coords ["+sr(parseFloat(mt.coords[0]))+" "+sr(parseFloat(mt.coords[1]))+" ";$r+=2===mt.type?sr(parseFloat(mt.coords[2]))+" "+sr(parseFloat(mt.coords[3])):sr(parseFloat(mt.coords[2]))+" "+sr(parseFloat(mt.coords[3]))+" "+sr(parseFloat(mt.coords[4]))+" "+sr(parseFloat(mt.coords[5])),Pn($r+="]"),mt.matrix&&Pn("/Matrix ["+mt.matrix.toString()+"]"),Pn("/Function "+Mn+" 0 R"),Pn("/Extend [true true]"),Pn(">>"),Pn("endobj")},Jh=function(mt,ki){var Mn=Dd(),Xn=Sd();ki.push({resourcesOid:Mn,objectOid:Xn}),mt.objectNumber=Xn;var yr=[];yr.push({key:"Type",value:"/Pattern"}),yr.push({key:"PatternType",value:"1"}),yr.push({key:"PaintType",value:"1"}),yr.push({key:"TilingType",value:"1"}),yr.push({key:"BBox",value:"["+mt.boundingBox.map(sr).join(" ")+"]"}),yr.push({key:"XStep",value:sr(mt.xStep)}),yr.push({key:"YStep",value:sr(mt.yStep)}),yr.push({key:"Resources",value:Mn+" 0 R"}),mt.matrix&&yr.push({key:"Matrix",value:"["+mt.matrix.toString()+"]"}),od({data:mt.stream,additionalKeyValues:yr,objectId:mt.objectNumber}),Pn("endobj")},Dp=function(mt){for(var ki in mt.objectNumber=Sd(),Pn("<<"),mt)switch(ki){case"opacity":Pn("/ca "+kr(mt[ki]));break;case"stroke-opacity":Pn("/CA "+kr(mt[ki]))}Pn(">>"),Pn("endobj")},cr=function(mt){ec(mt.resourcesOid,!0),Pn("<<"),Pn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var mt in Pn("/Font <<"),Rl)Rl.hasOwnProperty(mt)&&(!1===fi||!0===fi&&Jt.hasOwnProperty(mt))&&Pn("/"+mt+" "+Rl[mt].objectNumber+" 0 R");Pn(">>")}(),function(){if(Object.keys(nl).length>0){for(var mt in Pn("/Shading <<"),nl)nl.hasOwnProperty(mt)&&nl[mt]instanceof bo&&nl[mt].objectNumber>=0&&Pn("/"+mt+" "+nl[mt].objectNumber+" 0 R");co.publish("putShadingPatternDict"),Pn(">>")}}(),function(mt){if(Object.keys(nl).length>0){for(var ki in Pn("/Pattern <<"),nl)nl.hasOwnProperty(ki)&&nl[ki]instanceof Rt.TilingPattern&&nl[ki].objectNumber>=0&&nl[ki].objectNumber<mt&&Pn("/"+ki+" "+nl[ki].objectNumber+" 0 R");co.publish("putTilingPatternDict"),Pn(">>")}}(mt.objectOid),function(){if(Object.keys(rd).length>0){var mt;for(mt in Pn("/ExtGState <<"),rd)rd.hasOwnProperty(mt)&&rd[mt].objectNumber>=0&&Pn("/"+mt+" "+rd[mt].objectNumber+" 0 R");co.publish("putGStateDict"),Pn(">>")}}(),function(){for(var mt in Pn("/XObject <<"),Sc)Sc.hasOwnProperty(mt)&&Sc[mt].objectNumber>=0&&Pn("/"+mt+" "+Sc[mt].objectNumber+" 0 R");co.publish("putXobjectDict"),Pn(">>")}(),Pn(">>"),Pn("endobj")},Bs=function(mt){fd[mt.fontName]=fd[mt.fontName]||{},fd[mt.fontName][mt.fontStyle]=mt.id},Pl=function(mt,ki,Mn,Xn,yr){var $r={id:"F"+(Object.keys(Rl).length+1).toString(10),postScriptName:mt,fontName:ki,fontStyle:Mn,encoding:Xn,isStandardFont:yr||!1,metadata:{}};return co.publish("addFont",{font:$r,instance:this}),Rl[$r.id]=$r,Bs($r),$r.id},gd=Rt.__private__.pdfEscape=Rt.pdfEscape=function(mt,ki){return function(mt,ki){var Mn,Xn,yr,$r,Ta,ho,Go,ss,Xs;if(yr=(ki=ki||{}).sourceEncoding||"Unicode",Ta=ki.outputEncoding,(ki.autoencode||Ta)&&Rl[bs].metadata&&Rl[bs].metadata[yr]&&Rl[bs].metadata[yr].encoding&&($r=Rl[bs].metadata[yr].encoding,!Ta&&Rl[bs].encoding&&(Ta=Rl[bs].encoding),!Ta&&$r.codePages&&(Ta=$r.codePages[0]),"string"==typeof Ta&&(Ta=$r[Ta]),Ta)){for(Go=!1,ho=[],Mn=0,Xn=mt.length;Mn<Xn;Mn++)(ss=Ta[mt.charCodeAt(Mn)])?ho.push(String.fromCharCode(ss)):ho.push(mt[Mn]),ho[Mn].charCodeAt(0)>>8&&(Go=!0);mt=ho.join("")}for(Mn=mt.length;void 0===Go&&0!==Mn;)mt.charCodeAt(Mn-1)>>8&&(Go=!0),Mn--;if(!Go)return mt;for(ho=ki.noBOM?[]:[254,255],Mn=0,Xn=mt.length;Mn<Xn;Mn++){if((Xs=(ss=mt.charCodeAt(Mn))>>8)>>8)throw new Error("Character at position "+Mn+" of string '"+mt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ho.push(Xs),ho.push(ss-(Xs<<8))}return String.fromCharCode.apply(void 0,ho)}(mt,ki).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},tc=Rt.__private__.beginPage=function(mt){_a[++ll]=[],os[ll]={objId:0,contentsObjId:0,userUnit:Number(je),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(mt[0]),topRightY:Number(mt[1])}},Ep(ll),Jr(_a[Cn])},Pd=function(mt,ki){var Mn,Xn,yr;switch(B=ki||B,"string"==typeof mt&&(Mn=$i(mt.toLowerCase()),Array.isArray(Mn)&&(Xn=Mn[0],yr=Mn[1])),Array.isArray(mt)&&(Xn=mt[0]*ro,yr=mt[1]*ro),isNaN(Xn)&&(Xn=Ce[0],yr=Ce[1]),(Xn>14400||yr>14400)&&($s.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Xn=Math.min(14400,Xn),yr=Math.min(14400,yr)),Ce=[Xn,yr],B.substr(0,1)){case"l":yr>Xn&&(Ce=[yr,Xn]);break;case"p":Xn>yr&&(Ce=[yr,Xn])}tc(Ce),Ll(ua),Pn(ah),0!==jc&&Pn(jc+" J"),0!==Rm&&Pn(Rm+" j"),co.publish("addPage",{pageNumber:ll})},r_=function(mt){mt>0&&mt<=ll&&(_a.splice(mt,1),os.splice(mt,1),ll--,Cn>ll&&(Cn=ll),this.setPage(Cn))},Ep=function(mt){mt>0&&mt<=ll&&(Cn=mt)},Qf=Rt.__private__.getNumberOfPages=Rt.getNumberOfPages=function(){return _a.length-1},Mp=function(mt,ki,Mn){var Xn,yr=void 0;return Mn=Mn||{},ki=void 0!==ki?ki:Rl[bs].fontStyle,Xn=(mt=void 0!==mt?mt:Rl[bs].fontName).toLowerCase(),void 0!==fd[Xn]&&void 0!==fd[Xn][ki]?yr=fd[Xn][ki]:void 0!==fd[mt]&&void 0!==fd[mt][ki]?yr=fd[mt][ki]:!1===Mn.disableWarning&&$s.warn("Unable to look up font label for font '"+mt+"', '"+ki+"'. Refer to getFontList() for available fonts."),yr||Mn.noFallback||null==(yr=fd.times[ki])&&(yr=fd.times.normal),yr},qh=Rt.__private__.putInfo=function(){var mt=Sd(),ki=function(Xn){return Xn};for(var Mn in null!==Zt&&(ki=Wd.encryptor(mt,0)),Pn("<<"),Pn("/Producer ("+gd(ki("jsPDF "+wa.version))+")"),ls)ls.hasOwnProperty(Mn)&&ls[Mn]&&Pn("/"+Mn.substr(0,1).toUpperCase()+Mn.substr(1)+" ("+gd(ki(ls[Mn]))+")");Pn("/CreationDate ("+gd(ki(Rr))+")"),Pn(">>"),Pn("endobj")},Zf=Rt.__private__.putCatalog=function(mt){var ki=(mt=mt||{}).rootDictionaryObjId||Cu;switch(Sd(),Pn("<<"),Pn("/Type /Catalog"),Pn("/Pages "+ki+" 0 R"),Ka||(Ka="fullwidth"),Ka){case"fullwidth":Pn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Pn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Pn("/OpenAction [3 0 R /Fit]");break;case"original":Pn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Mn=""+Ka;"%"===Mn.substr(Mn.length-1)&&(Ka=parseInt(Ka)/100),"number"==typeof Ka&&Pn("/OpenAction [3 0 R /XYZ null null "+kr(Ka)+"]")}switch(Us||(Us="continuous"),Us){case"continuous":Pn("/PageLayout /OneColumn");break;case"single":Pn("/PageLayout /SinglePage");break;case"two":case"twoleft":Pn("/PageLayout /TwoColumnLeft");break;case"tworight":Pn("/PageLayout /TwoColumnRight")}Jo&&Pn("/PageMode /"+Jo),co.publish("putCatalog"),Pn(">>"),Pn("endobj")},tf=Rt.__private__.putTrailer=function(){Pn("trailer"),Pn("<<"),Pn("/Size "+(lr+1)),Pn("/Root "+lr+" 0 R"),Pn("/Info "+(lr-1)+" 0 R"),null!==Zt&&Pn("/Encrypt "+Wd.oid+" 0 R"),Pn("/ID [ <"+br+"> <"+br+"> ]"),Pn(">>")},pp=Rt.__private__.putHeader=function(){Pn("%PDF-"+sn),Pn("%\xba\xdf\xac\xe0")},Bg=Rt.__private__.putXRef=function(){var mt="0000000000";Pn("xref"),Pn("0 "+(lr+1)),Pn("0000000000 65535 f ");for(var ki=1;ki<=lr;ki++)Pn("function"==typeof Sr[ki]?(mt+Sr[ki]()).slice(-10)+" 00000 n ":void 0!==Sr[ki]?(mt+Sr[ki]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},fp=Rt.__private__.buildDocument=function(){lr=0,Lr=0,Br=[],Sr=[],za=[],Cu=Dd(),Ed=Dd(),Jr(Br),co.publish("buildDocument"),pp(),Rd(),function(){co.publish("putAdditionalObjects");for(var mt=0;mt<za.length;mt++){var ki=za[mt];ec(ki.objId,!0),Pn(ki.content),Pn("endobj")}co.publish("postPutAdditionalObjects")}(),function(){var mt=[];(function(){for(var mt in Rl)Rl.hasOwnProperty(mt)&&(!1===fi||!0===fi&&Jt.hasOwnProperty(mt))&&$h(Rl[mt])})(),function(){var mt;for(mt in rd)rd.hasOwnProperty(mt)&&Dp(rd[mt])}(),function(){for(var mt in Sc)Sc.hasOwnProperty(mt)&&Fu(Sc[mt])}(),function(mt){var ki;for(ki in nl)nl.hasOwnProperty(ki)&&(nl[ki]instanceof bo?yh(nl[ki]):nl[ki]instanceof Ss&&Jh(nl[ki],mt))}(mt),co.publish("putResources"),mt.forEach(cr),cr({resourcesOid:Ed,objectOid:Number.MAX_SAFE_INTEGER}),co.publish("postPutResources")}(),null!==Zt&&(Wd.oid=Sd(),Pn("<<"),Pn("/Filter /Standard"),Pn("/V "+Wd.v),Pn("/R "+Wd.r),Pn("/U <"+Wd.toHexString(Wd.U)+">"),Pn("/O <"+Wd.toHexString(Wd.O)+">"),Pn("/P "+Wd.P),Pn(">>"),Pn("endobj")),qh(),Zf();var mt=Lr;return Bg(),tf(),Pn("startxref"),Pn(""+mt),Pn("%%EOF"),Jr(_a[Cn]),Br.join("\n")},vm=Rt.__private__.getBlob=function(mt){return new Blob([So(mt)],{type:"application/pdf"})},lg=Rt.output=Rt.__private__.output=((mt=function(mt,ki){switch("string"==typeof(ki=ki||{})?ki={filename:ki}:ki.filename=ki.filename||"generated.pdf",mt){case void 0:return fp();case"save":Rt.save(ki.filename);break;case"arraybuffer":return So(fp());case"blob":return vm(fp());case"bloburi":case"bloburl":if(void 0!==wo.URL&&"function"==typeof wo.URL.createObjectURL)return wo.URL&&wo.URL.createObjectURL(vm(fp()))||void 0;$s.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Mn="",Xn=fp();try{Mn=on(Xn)}catch{Mn=on(unescape(encodeURIComponent(Xn)))}return"data:application/pdf;filename="+ki.filename+";base64,"+Mn;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(wo)){var yr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",$r=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';ki.pdfObjectUrl&&(yr=ki.pdfObjectUrl,$r="");var Ta='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+yr+'"'+$r+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(ki)+");<\/script></body></html>",ho=wo.open();return null!==ho&&ho.document.write(Ta),ho}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(wo)){var Go='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(ki.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+ki.filename+'" width="500px" height="400px" /></body></html>',ss=wo.open();if(null!==ss){ss.document.write(Go);var Xs=this;ss.document.documentElement.querySelector("#pdfViewer").onload=function(){ss.document.title=ki.filename,ss.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Xs.output("bloburl"))}}return ss}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(wo))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var wl='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",ki)+'"></iframe></body></html>',jd=wo.open();if(null!==jd&&(jd.document.write(wl),jd.document.title=ki.filename),jd||typeof safari>"u")return jd;break;case"datauri":case"dataurl":return wo.document.location.href=this.output("datauristring",ki);default:return null}}).foo=function(){try{return mt.apply(this,arguments)}catch(Xn){var ki=Xn.stack||"";~ki.indexOf(" at ")&&(ki=ki.split(" at ")[1]);var Mn="Error in function "+ki.split("\n")[0].split("<")[0]+": "+Xn.message;if(!wo.console)throw new Error(Mn);wo.console.error(Mn,Xn),wo.alert&&alert(Mn)}},mt.foo.bar=mt,mt.foo),a_=function(mt){return!0===Array.isArray(ef)&&ef.indexOf(mt)>-1};switch(te){case"pt":ro=1;break;case"mm":ro=72/25.4;break;case"cm":ro=72/2.54;break;case"in":ro=72;break;case"px":ro=1==a_("px_scaling")?.75:96/72;break;case"pc":case"em":ro=12;break;case"ex":ro=6;break;default:if("number"!=typeof te)throw new Error("Invalid unit: "+te);ro=te}var Wd=null;Ja(),wr();var nf=Rt.__private__.getPageInfo=Rt.getPageInfo=function(mt){if(isNaN(mt)||mt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:os[mt].objId,pageNumber:mt,pageContext:os[mt]}},Qo=Rt.__private__.getPageInfoByObjId=function(mt){if(isNaN(mt)||mt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var ki in os)if(os[ki].objId===mt)break;return nf(ki)},cu=Rt.__private__.getCurrentPageInfo=Rt.getCurrentPageInfo=function(){return{objId:os[Cn].objId,pageNumber:Cn,pageContext:os[Cn]}};Rt.addPage=function(){return Pd.apply(this,arguments),this},Rt.setPage=function(){return Ep.apply(this,arguments),Jr.call(this,_a[Cn]),this},Rt.insertPage=function(mt){return this.addPage(),this.movePage(Cn,mt),this},Rt.movePage=function(mt,ki){var Mn,Xn;if(mt>ki){Mn=_a[mt],Xn=os[mt];for(var yr=mt;yr>ki;yr--)_a[yr]=_a[yr-1],os[yr]=os[yr-1];_a[ki]=Mn,os[ki]=Xn,this.setPage(ki)}else if(mt<ki){Mn=_a[mt],Xn=os[mt];for(var $r=mt;$r<ki;$r++)_a[$r]=_a[$r+1],os[$r]=os[$r+1];_a[ki]=Mn,os[ki]=Xn,this.setPage(ki)}return this},Rt.deletePage=function(){return r_.apply(this,arguments),this},Rt.__private__.text=Rt.text=function(mt,ki,Mn,Xn,yr){var $r,Ta,ho,Go,ss,Xs,wl,jd,sd,hc=(Xn=Xn||{}).scope||this;if("number"==typeof mt&&"number"==typeof ki&&("string"==typeof Mn||Array.isArray(Mn))){var nc=Mn;Mn=ki,ki=mt,mt=nc}if(arguments[3]instanceof Do?(Rn("The transform parameter of text() with a Matrix value"),sd=yr):(ho=arguments[4],Go=arguments[5],"object"===(0,mo.A)(wl=arguments[3])&&null!==wl||("string"==typeof ho&&(Go=ho,ho=null),"string"==typeof wl&&(Go=wl,wl=null),"number"==typeof wl&&(ho=wl,wl=null),Xn={flags:wl,angle:ho,align:Go})),isNaN(ki)||isNaN(Mn)||null==mt)throw new Error("Invalid arguments passed to jsPDF.text");if(0===mt.length)return hc;var gp,Hd="",tp="number"==typeof Xn.lineHeightFactor?Xn.lineHeightFactor:$e,ld=hc.internal.scaleFactor;function nm(_l){return _l=_l.split("\t").join(Array(Xn.TabLen||9).join(" ")),gd(_l,wl)}function Bm(_l){for(var _d,zd=_l.concat(),pc=[],Oh=zd.length;Oh--;)"string"==typeof(_d=zd.shift())?pc.push(_d):Array.isArray(_l)&&(1===_d.length||void 0===_d[1]&&void 0===_d[2])?pc.push(_d[0]):pc.push([_d[0],_d[1],_d[2]]);return pc}function Tf(_l,_d){var zd;if("string"==typeof _l)zd=_d(_l)[0];else if(Array.isArray(_l)){for(var pc,Oh,Mu=_l.concat(),cf=[],Nm=Mu.length;Nm--;)"string"==typeof(pc=Mu.shift())?cf.push(_d(pc)[0]):Array.isArray(pc)&&"string"==typeof pc[0]&&(Oh=_d(pc[0],pc[1],pc[2]),cf.push([Oh[0],Oh[1],Oh[2]]));zd=cf}return zd}var df=!1,Dh=!0;if("string"==typeof mt)df=!0;else if(Array.isArray(mt)){var ip=mt.concat();Ta=[];for(var Af,uu=ip.length;uu--;)("string"!=typeof(Af=ip.shift())||Array.isArray(Af)&&"string"!=typeof Af[0])&&(Dh=!1);df=Dh}if(!1===df)throw new Error('Type of text must be string or Array. "'+mt+'" is not recognized.');"string"==typeof mt&&(mt=mt.match(/[\r?\n]/)?mt.split(/\r\n|\r|\n/g):[mt]);var Ap=ka/hc.internal.scaleFactor,rm=Ap*(tp-1);switch(Xn.baseline){case"bottom":Mn-=rm;break;case"top":Mn+=Ap-rm;break;case"hanging":Mn+=Ap-2*rm;break;case"middle":Mn+=Ap/2-rm}if((Xs=Xn.maxWidth||0)>0&&("string"==typeof mt?mt=hc.splitTextToSize(mt,Xs):"[object Array]"===Object.prototype.toString.call(mt)&&(mt=mt.reduce(function(_l,_d){return _l.concat(hc.splitTextToSize(_d,Xs))},[]))),co.publish("preProcessText",$r={text:mt,x:ki,y:Mn,options:Xn,mutex:{pdfEscape:gd,activeFontKey:bs,fonts:Rl,activeFontSize:ka}}),mt=$r.text,ho=(Xn=$r.options).angle,sd instanceof Do||!ho||"number"!=typeof ho)ho&&ho instanceof Do&&(sd=ho);else{ho*=Math.PI/180,0===Xn.rotationDirection&&(ho=-ho),"advanced"===kn&&(ho=-ho);var wu=Math.cos(ho),oh=Math.sin(ho);sd=new Do(wu,oh,-oh,wu,0,0)}"advanced"!==kn||sd||(sd=kd),void 0!==(ss=Xn.charSpace||Of)&&(Hd+=sr(hn(ss))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(jd=Xn.horizontalScale)&&(Hd+=sr(100*jd)+" Tz\n");var zl=-1,hu=void 0!==Xn.renderingMode?Xn.renderingMode:Xn.stroke,_p=hc.internal.getCurrentPageInfo().pageContext;switch(hu){case 0:case!1:case"fill":zl=0;break;case 1:case!0:case"stroke":zl=1;break;case 2:case"fillThenStroke":zl=2;break;case 3:case"invisible":zl=3;break;case 4:case"fillAndAddForClipping":zl=4;break;case 5:case"strokeAndAddPathForClipping":zl=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":zl=6;break;case 7:case"addToPathForClipping":zl=7}-1!==zl?Hd+=zl+" Tr\n":-1!==(void 0!==_p.usedRenderingMode?_p.usedRenderingMode:-1)&&(Hd+="0 Tr\n"),-1!==zl&&(_p.usedRenderingMode=zl),Go=Xn.align||"left";var Nu,Sl=ka*tp,Ip=hc.internal.pageSize.getWidth(),If=Rl[bs];ss=Xn.charSpace||Of,Xs=Xn.maxWidth||0,wl=Object.assign({autoencode:!0,noBOM:!0},Xn.flags);var vp=[];if("[object Array]"===Object.prototype.toString.call(mt)){var kp;Ta=Bm(mt),"left"!==Go&&(Nu=Ta.map(function(_l){return hc.getStringUnitWidth(_l,{font:If,charSpace:ss,fontSize:ka,doKerning:!1})*ka/ld}));var Eh,Du=0;if("right"===Go){ki-=Nu[0],mt=[],uu=Ta.length;for(var Vu=0;Vu<uu;Vu++)0===Vu?(Eh=wh(ki),kp=af(Mn)):(Eh=hn(Du-Nu[Vu]),kp=-Sl),mt.push([Ta[Vu],Eh,kp]),Du=Nu[Vu]}else if("center"===Go){ki-=Nu[0]/2,mt=[],uu=Ta.length;for(var Rp=0;Rp<uu;Rp++)0===Rp?(Eh=wh(ki),kp=af(Mn)):(Eh=hn((Du-Nu[Rp])/2),kp=-Sl),mt.push([Ta[Rp],Eh,kp]),Du=Nu[Rp]}else if("left"===Go){mt=[],uu=Ta.length;for(var kf=0;kf<uu;kf++)mt.push(Ta[kf])}else{if("justify"!==Go)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');mt=[],uu=Ta.length,Xs=0!==Xs?Xs:Ip;for(var Pp=0;Pp<uu;Pp++)kp=0===Pp?af(Mn):-Sl,Eh=0===Pp?wh(ki):0,vp.push(Pp<uu-1?sr(hn((Xs-Nu[Pp])/(Ta[Pp].split(" ").length-1))):0),mt.push([Ta[Pp],Eh,kp])}}!0===("boolean"==typeof Xn.R2L?Xn.R2L:Po)&&(mt=Tf(mt,function(_l,_d,zd){return[_l.split("").reverse().join(""),_d,zd]})),co.publish("postProcessText",$r={text:mt,x:ki,y:Mn,options:Xn,mutex:{pdfEscape:gd,activeFontKey:bs,fonts:Rl,activeFontSize:ka}}),mt=$r.text,gp=$r.mutex.isHex||!1;var Td=Rl[bs].encoding;"WinAnsiEncoding"!==Td&&"StandardEncoding"!==Td||(mt=Tf(mt,function(_l,_d,zd){return[nm(_l),_d,zd]})),Ta=Bm(mt),mt=[];for(var sh,bp,Fc,am=Array.isArray(Ta[0])?1:0,Rf="",o_=function(_l,_d,zd){var pc="";return zd instanceof Do?(zd="number"==typeof Xn.angle?wd(zd,new Do(1,0,0,1,_l,_d)):wd(new Do(1,0,0,1,_l,_d),zd),"advanced"===kn&&(zd=wd(new Do(1,0,0,-1,0,0),zd)),pc=zd.join(" ")+" Tm\n"):pc=sr(_l)+" "+sr(_d)+" Td\n",pc},Bc=0;Bc<Ta.length;Bc++){switch(Rf="",am){case 1:Fc=(gp?"<":"(")+Ta[Bc][0]+(gp?">":")"),sh=parseFloat(Ta[Bc][1]),bp=parseFloat(Ta[Bc][2]);break;case 0:Fc=(gp?"<":"(")+Ta[Bc]+(gp?">":")"),sh=wh(ki),bp=af(Mn)}void 0!==vp&&void 0!==vp[Bc]&&(Rf=vp[Bc]+" Tw\n"),0===Bc?mt.push(Rf+o_(sh,bp,sd)+Fc):0===am?mt.push(Rf+Fc):1===am&&mt.push(Rf+o_(sh,bp,sd)+Fc)}mt=mt.join(0===am?" Tj\nT* ":" Tj\n"),mt+=" Tj\n";var Mh="BT\n/";return Mh+=bs+" "+ka+" Tf\n",Mh+=sr(ka*tp)+" TL\n",Mh+=Mf+"\n",Mh+=Hd,Mh+=mt,Pn(Mh+="ET"),Jt[bs]=!0,hc};var rf=Rt.__private__.clip=Rt.clip=function(mt){return Pn("evenodd"===mt?"W*":"W"),this};Rt.clipEvenOdd=function(){return rf("evenodd")},Rt.__private__.discardPath=Rt.discardPath=function(){return Pn("n"),this};var xh=Rt.__private__.isValidStyle=function(mt){var ki=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(mt)&&(ki=!0),ki};Rt.__private__.setDefaultPathOperation=Rt.setDefaultPathOperation=function(mt){return xh(mt)&&(Pt=mt),this};var cg=Rt.__private__.getStyle=Rt.getStyle=function(mt){var ki=Pt;switch(mt){case"D":case"S":ki="S";break;case"F":ki="f";break;case"FD":case"DF":ki="B";break;case"f":case"f*":case"B":case"B*":ki=mt}return ki},Bu=Rt.close=function(){return Pn("h"),this};Rt.stroke=function(){return Pn("S"),this},Rt.fill=function(mt){return Hl("f",mt),this},Rt.fillEvenOdd=function(mt){return Hl("f*",mt),this},Rt.fillStroke=function(mt){return Hl("B",mt),this},Rt.fillStrokeEvenOdd=function(mt){return Hl("B*",mt),this};var Hl=function(mt,ki){"object"===(0,mo.A)(ki)?em(ki,mt):Pn(mt)},rh=function(mt){null===mt||"advanced"===kn&&void 0===mt||(mt=cg(mt),Pn(mt))};function qf(mt,ki,Mn,Xn,yr){var $r=new Ss(ki||this.boundingBox,Mn||this.xStep,Xn||this.yStep,this.gState,yr||this.matrix);$r.stream=this.stream;var Ta=mt+"$$"+this.cloneIndex+++"$$";return Pc(Ta,$r),$r}var em=function(mt,ki){var Mn=Sp[mt.key],Xn=nl[Mn];if(Xn instanceof bo)Pn("q"),Pn(Ch(ki)),Xn.gState&&Rt.setGState(Xn.gState),Pn(mt.matrix.toString()+" cm"),Pn("/"+Mn+" sh"),Pn("Q");else if(Xn instanceof Ss){var yr=new Do(1,0,0,-1,0,lf());mt.matrix&&(yr=yr.multiply(mt.matrix||kd),Mn=qf.call(Xn,mt.key,mt.boundingBox,mt.xStep,mt.yStep,yr).id),Pn("q"),Pn("/Pattern cs"),Pn("/"+Mn+" scn"),Xn.gState&&Rt.setGState(Xn.gState),Pn(ki),Pn("Q")}},Ch=function(mt){switch(mt){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},mp=Rt.moveTo=function(mt,ki){return Pn(sr(hn(mt))+" "+sr(Vn(ki))+" m"),this},M=Rt.lineTo=function(mt,ki){return Pn(sr(hn(mt))+" "+sr(Vn(ki))+" l"),this},Ae=Rt.curveTo=function(mt,ki,Mn,Xn,yr,$r){return Pn([sr(hn(mt)),sr(Vn(ki)),sr(hn(Mn)),sr(Vn(Xn)),sr(hn(yr)),sr(Vn($r)),"c"].join(" ")),this};Rt.__private__.line=Rt.line=function(mt,ki,Mn,Xn,yr){if(isNaN(mt)||isNaN(ki)||isNaN(Mn)||isNaN(Xn)||!xh(yr))throw new Error("Invalid arguments passed to jsPDF.line");return"compat"===kn?this.lines([[Mn-mt,Xn-ki]],mt,ki,[1,1],yr||"S"):this.lines([[Mn-mt,Xn-ki]],mt,ki,[1,1]).stroke()},Rt.__private__.lines=Rt.lines=function(mt,ki,Mn,Xn,yr,$r){var Ta,ho,Go,ss,Xs,nc,Hd,gp;if("number"==typeof mt&&(gp=Mn,Mn=ki,ki=mt,mt=gp),Xn=Xn||[1,1],$r=$r||!1,isNaN(ki)||isNaN(Mn)||!Array.isArray(mt)||!Array.isArray(Xn)||!xh(yr)||"boolean"!=typeof $r)throw new Error("Invalid arguments passed to jsPDF.lines");for(mp(ki,Mn),Ta=Xn[0],ho=Xn[1],ss=mt.length,nc=ki,Hd=Mn,Go=0;Go<ss;Go++)2===(Xs=mt[Go]).length?M(nc=Xs[0]*Ta+nc,Hd=Xs[1]*ho+Hd):Ae(Xs[0]*Ta+nc,Xs[1]*ho+Hd,Xs[2]*Ta+nc,Xs[3]*ho+Hd,nc=Xs[4]*Ta+nc,Hd=Xs[5]*ho+Hd);return $r&&Bu(),rh(yr),this},Rt.path=function(mt){for(var ki=0;ki<mt.length;ki++){var Mn=mt[ki],Xn=Mn.c;switch(Mn.op){case"m":mp(Xn[0],Xn[1]);break;case"l":M(Xn[0],Xn[1]);break;case"c":Ae.apply(this,Xn);break;case"h":Bu()}}return this},Rt.__private__.rect=Rt.rect=function(mt,ki,Mn,Xn,yr){if(isNaN(mt)||isNaN(ki)||isNaN(Mn)||isNaN(Xn)||!xh(yr))throw new Error("Invalid arguments passed to jsPDF.rect");return"compat"===kn&&(Xn=-Xn),Pn([sr(hn(mt)),sr(Vn(ki)),sr(hn(Mn)),sr(hn(Xn)),"re"].join(" ")),rh(yr),this},Rt.__private__.triangle=Rt.triangle=function(mt,ki,Mn,Xn,yr,$r,Ta){if(isNaN(mt)||isNaN(ki)||isNaN(Mn)||isNaN(Xn)||isNaN(yr)||isNaN($r)||!xh(Ta))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Mn-mt,Xn-ki],[yr-Mn,$r-Xn],[mt-yr,ki-$r]],mt,ki,[1,1],Ta,!0),this},Rt.__private__.roundedRect=Rt.roundedRect=function(mt,ki,Mn,Xn,yr,$r,Ta){if(isNaN(mt)||isNaN(ki)||isNaN(Mn)||isNaN(Xn)||isNaN(yr)||isNaN($r)||!xh(Ta))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ho=4/3*(Math.SQRT2-1);return yr=Math.min(yr,.5*Mn),$r=Math.min($r,.5*Xn),this.lines([[Mn-2*yr,0],[yr*ho,0,yr,$r-$r*ho,yr,$r],[0,Xn-2*$r],[0,$r*ho,-yr*ho,$r,-yr,$r],[2*yr-Mn,0],[-yr*ho,0,-yr,-$r*ho,-yr,-$r],[0,2*$r-Xn],[0,-$r*ho,yr*ho,-$r,yr,-$r]],mt+yr,ki,[1,1],Ta,!0),this},Rt.__private__.ellipse=Rt.ellipse=function(mt,ki,Mn,Xn,yr){if(isNaN(mt)||isNaN(ki)||isNaN(Mn)||isNaN(Xn)||!xh(yr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var $r=4/3*(Math.SQRT2-1)*Mn,Ta=4/3*(Math.SQRT2-1)*Xn;return mp(mt+Mn,ki),Ae(mt+Mn,ki-Ta,mt+$r,ki-Xn,mt,ki-Xn),Ae(mt-$r,ki-Xn,mt-Mn,ki-Ta,mt-Mn,ki),Ae(mt-Mn,ki+Ta,mt-$r,ki+Xn,mt,ki+Xn),Ae(mt+$r,ki+Xn,mt+Mn,ki+Ta,mt+Mn,ki),rh(yr),this},Rt.__private__.circle=Rt.circle=function(mt,ki,Mn,Xn){if(isNaN(mt)||isNaN(ki)||isNaN(Mn)||!xh(Xn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(mt,ki,Mn,Mn,Xn)},Rt.setFont=function(mt,ki,Mn){return Mn&&(ki=Vr(ki,Mn)),bs=Mp(mt,ki,{disableWarning:!1}),this};var i=Rt.__private__.getFont=Rt.getFont=function(){return Rl[Mp.apply(Rt,arguments)]};Rt.__private__.getFontList=Rt.getFontList=function(){var mt,ki,Mn={};for(mt in fd)if(fd.hasOwnProperty(mt))for(ki in Mn[mt]=[],fd[mt])fd[mt].hasOwnProperty(ki)&&Mn[mt].push(ki);return Mn},Rt.addFont=function(mt,ki,Mn,Xn,yr){var $r=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==$r.indexOf(arguments[3])?yr=arguments[3]:arguments[3]&&-1==$r.indexOf(arguments[3])&&(Mn=Vr(Mn,Xn)),Pl.call(this,mt,ki,Mn,yr=yr||"Identity-H")};var $e,ua=Se.lineWidth||.200025,mr=Rt.__private__.getLineWidth=Rt.getLineWidth=function(){return ua},Ll=Rt.__private__.setLineWidth=Rt.setLineWidth=function(mt){return ua=mt,Pn(sr(hn(mt))+" w"),this};Rt.__private__.setLineDash=wa.API.setLineDash=wa.API.setLineDashPattern=function(mt,ki){if(mt=mt||[],ki=ki||0,isNaN(ki)||!Array.isArray(mt))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return mt=mt.map(function(Mn){return sr(hn(Mn))}).join(" "),ki=sr(hn(ki)),Pn("["+mt+"] "+ki+" d"),this};var dl=Rt.__private__.getLineHeight=Rt.getLineHeight=function(){return ka*$e};Rt.__private__.getLineHeight=Rt.getLineHeight=function(){return ka*$e};var Ec=Rt.__private__.setLineHeightFactor=Rt.setLineHeightFactor=function(mt){return"number"==typeof(mt=mt||1.15)&&($e=mt),this},Od=Rt.__private__.getLineHeightFactor=Rt.getLineHeightFactor=function(){return $e};Ec(Se.lineHeight);var wh=Rt.__private__.getHorizontalCoordinate=function(mt){return hn(mt)},af=Rt.__private__.getVerticalCoordinate=function(mt){return"advanced"===kn?mt:os[Cn].mediaBox.topRightY-os[Cn].mediaBox.bottomLeftY-hn(mt)},km=Rt.__private__.getHorizontalCoordinateString=Rt.getHorizontalCoordinateString=function(mt){return sr(wh(mt))},ic=Rt.__private__.getVerticalCoordinateString=Rt.getVerticalCoordinateString=function(mt){return sr(af(mt))},ah=Se.strokeColor||"0 G";Rt.__private__.getStrokeColor=Rt.getDrawColor=function(){return md(ah)},Rt.__private__.setStrokeColor=Rt.setDrawColor=function(mt,ki,Mn,Xn){return ah=uc({ch1:mt,ch2:ki,ch3:Mn,ch4:Xn,pdfColorType:"draw",precision:2}),Pn(ah),this};var Op=Se.fillColor||"0 g";Rt.__private__.getFillColor=Rt.getFillColor=function(){return md(Op)},Rt.__private__.setFillColor=Rt.setFillColor=function(mt,ki,Mn,Xn){return Op=uc({ch1:mt,ch2:ki,ch3:Mn,ch4:Xn,pdfColorType:"fill",precision:2}),Pn(Op),this};var Mf=Se.textColor||"0 g",Sh=Rt.__private__.getTextColor=Rt.getTextColor=function(){return md(Mf)};Rt.__private__.setTextColor=Rt.setTextColor=function(mt,ki,Mn,Xn){return Mf=uc({ch1:mt,ch2:ki,ch3:Mn,ch4:Xn,pdfColorType:"text",precision:3}),this};var Of=Se.charSpace,sf=Rt.__private__.getCharSpace=Rt.getCharSpace=function(){return parseFloat(Of||0)};Rt.__private__.setCharSpace=Rt.setCharSpace=function(mt){if(isNaN(mt))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Of=mt,this};var jc=0;Rt.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},Rt.__private__.setLineCap=Rt.setLineCap=function(mt){var ki=Rt.CapJoinStyles[mt];if(void 0===ki)throw new Error("Line cap style of '"+mt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return jc=ki,Pn(ki+" J"),this};var Rm=0;Rt.__private__.setLineJoin=Rt.setLineJoin=function(mt){var ki=Rt.CapJoinStyles[mt];if(void 0===ki)throw new Error("Line join style of '"+mt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Rm=ki,Pn(ki+" j"),this},Rt.__private__.setLineMiterLimit=Rt.__private__.setMiterLimit=Rt.setLineMiterLimit=Rt.setMiterLimit=function(mt){if(mt=mt||0,isNaN(mt))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Pn(sr(hn(mt))+" M"),this},Rt.GState=ts,Rt.setGState=function(mt){(mt="string"==typeof mt?rd[nh[mt]]:Pm(null,mt)).equals(Lu)||(Pn("/"+mt.id+" gs"),Lu=mt)};var Pm=function(mt,ki){if(!mt||!nh[mt]){var Mn=!1;for(var Xn in rd)if(rd.hasOwnProperty(Xn)&&rd[Xn].equals(ki)){Mn=!0;break}if(Mn)ki=rd[Xn];else{var yr="GS"+(Object.keys(rd).length+1).toString(10);rd[yr]=ki,ki.id=yr}return mt&&(nh[mt]=ki.id),co.publish("addGState",ki),ki}};Rt.addGState=function(mt,ki){return Pm(mt,ki),this},Rt.saveGraphicsState=function(){return Pn("q"),bh.push({key:bs,size:ka,color:Mf}),this},Rt.restoreGraphicsState=function(){Pn("Q");var mt=bh.pop();return bs=mt.key,ka=mt.size,Mf=mt.color,Lu=null,this},Rt.setCurrentTransformationMatrix=function(mt){return Pn(mt.toString()+" cm"),this},Rt.comment=function(mt){return Pn("#"+mt),this};var tm=function(mt,ki){var Mn=mt||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Mn},set:function($r){isNaN($r)||(Mn=parseFloat($r))}});var Xn=ki||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Xn},set:function($r){isNaN($r)||(Xn=parseFloat($r))}});var yr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return yr},set:function($r){yr=$r.toString()}}),this},bm=function(mt,ki,Mn,Xn){tm.call(this,mt,ki),this.type="rect";var yr=Mn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return yr},set:function(Ta){isNaN(Ta)||(yr=parseFloat(Ta))}});var $r=Xn||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return $r},set:function(Ta){isNaN(Ta)||($r=parseFloat(Ta))}}),this},Lm=function(){this.page=ll,this.currentPage=Cn,this.pages=_a.slice(0),this.pagesContext=os.slice(0),this.x=wc,this.y=il,this.matrix=xu,this.width=im(Cn),this.height=lf(Cn),this.outputDestination=Oa,this.id="",this.objectNumber=-1};Lm.prototype.restore=function(){ll=this.page,os=this.pagesContext,_a=this.pages,wc=this.x,il=this.y,xu=this.matrix,ep(Cn=this.currentPage,this.width),ym(Cn,this.height),Oa=this.outputDestination};var ug=function(mt,ki,Mn,Xn,yr){ad.push(new Lm),ll=Cn=0,_a=[],wc=mt,il=ki,xu=yr,tc([Mn,Xn])};for(var Tp in Rt.beginFormObject=function(mt,ki,Mn,Xn,yr){return ug(mt,ki,Mn,Xn,yr),this},Rt.endFormObject=function(mt){return function(mt){if(Id[mt])ad.pop().restore();else{var ki=new Lm,Mn="Xo"+(Object.keys(Sc).length+1).toString(10);ki.id=Mn,Id[mt]=Mn,Sc[Mn]=ki,co.publish("addFormObject",ki),ad.pop().restore()}}(mt),this},Rt.doFormObject=function(mt,ki){var Mn=Sc[Id[mt]];return Pn("q"),Pn(ki.toString()+" cm"),Pn("/"+Mn.id+" Do"),Pn("Q"),this},Rt.getFormObject=function(mt){var ki=Sc[Id[mt]];return{x:ki.x,y:ki.y,width:ki.width,height:ki.height,matrix:ki.matrix}},Rt.save=function(mt,ki){return mt=mt||"generated.pdf",(ki=ki||{}).returnPromise=ki.returnPromise||!1,!1===ki.returnPromise?(Bn(vm(fp()),mt),"function"==typeof Bn.unload&&wo.setTimeout&&setTimeout(Bn.unload,911),this):new Promise(function(Mn,Xn){try{var yr=Bn(vm(fp()),mt);"function"==typeof Bn.unload&&wo.setTimeout&&setTimeout(Bn.unload,911),Mn(yr)}catch($r){Xn($r.message)}})},wa.API)wa.API.hasOwnProperty(Tp)&&("events"===Tp&&wa.API.events.length?function(mt,ki){var Xn,yr;for(yr=ki.length-1;-1!==yr;yr--)mt.subscribe.apply(mt,[ki[yr][0]].concat("function"==typeof(Xn=ki[yr][1])?[Xn]:Xn))}(co,wa.API.events):Rt[Tp]=wa.API[Tp]);var im=Rt.getPageWidth=function(mt){return(os[mt=mt||Cn].mediaBox.topRightX-os[mt].mediaBox.bottomLeftX)/ro},ep=Rt.setPageWidth=function(mt,ki){os[mt].mediaBox.topRightX=ki*ro+os[mt].mediaBox.bottomLeftX},lf=Rt.getPageHeight=function(mt){return(os[mt=mt||Cn].mediaBox.topRightY-os[mt].mediaBox.bottomLeftY)/ro},ym=Rt.setPageHeight=function(mt,ki){os[mt].mediaBox.topRightY=ki*ro+os[mt].mediaBox.bottomLeftY};return Rt.internal={pdfEscape:gd,getStyle:cg,getFont:i,getFontSize:qa,getCharSpace:sf,getTextColor:Sh,getLineHeight:dl,getLineHeightFactor:Od,getLineWidth:mr,write:cs,getHorizontalCoordinate:wh,getVerticalCoordinate:af,getCoordinateString:km,getVerticalCoordinateString:ic,collections:{},newObject:Sd,newAdditionalObject:hp,newObjectDeferred:Dd,newObjectDeferredBegin:ec,getFilters:Dc,putStream:od,events:co,scaleFactor:ro,pageSize:{getWidth:function(){return im(Cn)},setWidth:function(mt){ep(Cn,mt)},getHeight:function(){return lf(Cn)},setHeight:function(mt){ym(Cn,mt)}},encryptionOptions:Zt,encryption:Wd,getEncryptor:function(mt){return null!==Zt?Wd.encryptor(mt,0):function(ki){return ki}},output:lg,getNumberOfPages:Qf,pages:_a,out:Pn,f2:kr,f3:mn,getPageInfo:nf,getPageInfoByObjId:Qo,getCurrentPageInfo:cu,getPDFVersion:nn,Point:tm,Rectangle:bm,Matrix:Do,hasHotfix:a_},Object.defineProperty(Rt.internal.pageSize,"width",{get:function(){return im(Cn)},set:function(mt){ep(Cn,mt)},enumerable:!0,configurable:!0}),Object.defineProperty(Rt.internal.pageSize,"height",{get:function(){return lf(Cn)},set:function(mt){ym(Cn,mt)},enumerable:!0,configurable:!0}),function(mt){for(var ki=0,Mn=Ea.length;ki<Mn;ki++){var Xn=Pl.call(this,mt[ki][0],mt[ki][1],mt[ki][2],Ea[ki][3],!0);!1===fi&&(Jt[Xn]=!0);var yr=mt[ki][0].split("-");Bs({id:Xn,fontName:yr[0],fontStyle:yr[1]||""})}co.publish("addFonts",{fonts:Rl,dictionary:fd})}.call(Rt,Ea),bs="F1",Pd(Ce,B),co.publish("initialized"),Rt}Tr.prototype.lsbFirstWord=function(Se){return String.fromCharCode(255&Se,Se>>8&255,Se>>16&255,Se>>24&255)},Tr.prototype.toHexString=function(Se){return Se.split("").map(function(ue){return("0"+(255&ue.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Tr.prototype.hexToBytes=function(Se){for(var ue=[],B=0;B<Se.length;B+=2)ue.push(String.fromCharCode(parseInt(Se.substr(B,2),16)));return ue.join("")},Tr.prototype.processOwnerPassword=function(Se,ue){return gn(Mi(ue).substr(0,5),Se)},Tr.prototype.encryptor=function(Se,ue){var B=Mi(this.encryptionKey+String.fromCharCode(255&Se,Se>>8&255,Se>>16&255,255&ue,ue>>8&255)).substr(0,10);return function(te){return gn(B,te)}},ts.prototype.equals=function(Se){var ue,B="id,objectNumber,equals";if(!Se||(0,mo.A)(Se)!==(0,mo.A)(this))return!1;var te=0;for(ue in this)if(!(B.indexOf(ue)>=0)){if(this.hasOwnProperty(ue)&&!Se.hasOwnProperty(ue)||this[ue]!==Se[ue])return!1;te++}for(ue in Se)Se.hasOwnProperty(ue)&&B.indexOf(ue)<0&&te--;return 0===te},wa.API={events:[]},wa.version="2.5.1";var Fo=wa.API,Ia=1,vr=function(Se){return Se.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ba=function(Se){return Se.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},oa=function(Se){return Se.toFixed(2)},zs=function(Se){return Se.toFixed(5)};Fo.__acroform__={};var Wn=function(Se,ue){Se.prototype=Object.create(ue.prototype),Se.prototype.constructor=Se},nd=function(Se){return Se*Ia},Zr=function(Se){var ue=new Uh,B=Qa.internal.getHeight(Se)||0,te=Qa.internal.getWidth(Se)||0;return ue.BBox=[0,0,Number(oa(te)),Number(oa(B))],ue},tl=Fo.__acroform__.setBit=function(Se,ue){if(Se=Se||0,ue=ue||0,isNaN(Se)||isNaN(ue))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Se|1<<ue},hd=Fo.__acroform__.clearBit=function(Se,ue){if(Se=Se||0,ue=ue||0,isNaN(Se)||isNaN(ue))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Se&~(1<<ue)},Zc=Fo.__acroform__.getBit=function(Se,ue){if(isNaN(Se)||isNaN(ue))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return Se&1<<ue?1:0},lo=Fo.__acroform__.getBitForPdf=function(Se,ue){if(isNaN(Se)||isNaN(ue))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Zc(Se,ue-1)},Al=Fo.__acroform__.setBitForPdf=function(Se,ue){if(isNaN(Se)||isNaN(ue))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return tl(Se,ue-1)},Nd=Fo.__acroform__.clearBitForPdf=function(Se,ue){if(isNaN(Se)||isNaN(ue))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return hd(Se,ue-1)},Vh=Fo.__acroform__.calculateCoordinates=function(Se,ue){var B=ue.internal.getHorizontalCoordinate,te=ue.internal.getVerticalCoordinate,Ce=Se[0],De=Se[1],Le=Se[2],je=Se[3],it={};return it.lowerLeft_X=B(Ce)||0,it.lowerLeft_Y=te(De+je)||0,it.upperRight_X=B(Ce+Le)||0,it.upperRight_Y=te(De)||0,[Number(oa(it.lowerLeft_X)),Number(oa(it.lowerLeft_Y)),Number(oa(it.upperRight_X)),Number(oa(it.upperRight_Y))]},Ks=function(Se){if(Se.appearanceStreamContent)return Se.appearanceStreamContent;if(Se.V||Se.DV){var ue=[],te=ph(Se,Se._V||Se.DV),Ce=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id;ue.push("/Tx BMC"),ue.push("q"),ue.push("BT"),ue.push(Se.scope.__private__.encodeColorString(Se.color)),ue.push("/"+Ce+" "+oa(te.fontSize)+" Tf"),ue.push("1 0 0 1 0 0 Tm"),ue.push(te.text),ue.push("ET"),ue.push("Q"),ue.push("EMC");var De=Zr(Se);return De.scope=Se.scope,De.stream=ue.join("\n"),De}},ph=function(Se,ue){var B=0===Se.fontSize?Se.maxFontSize:Se.fontSize,te={text:"",fontSize:""},Ce=(ue=")"==(ue="("==ue.substr(0,1)?ue.substr(1):ue).substr(ue.length-1)?ue.substr(0,ue.length-1):ue).split(" ");Ce=Ce.map(Se.multiline?function(mn){return mn.split("\n")}:function(mn){return[mn]});var De=B,Le=Qa.internal.getHeight(Se)||0;Le=Le<0?-Le:Le;var mn,je=Qa.internal.getWidth(Se)||0;je=je<0?-je:je,De++;e:for(;De>0;){ue="",De--;var Pt,Zt,fi=Hh("3",Se,De).height,Jt=Se.multiline?Le-De:(Le-fi)/2,Rt=Jt+=2,sn=0,nn=0,fn=0;if(De<=0){ue="(...) Tj\n",ue+="% Width of Text: "+Hh(ue,Se,De=12).width+", FieldWidth:"+je+"\n";break}for(var $i="",vn=0,kn=0;kn<Ce.length;kn++)if(Ce.hasOwnProperty(kn)){var Fn=!1;if(1!==Ce[kn].length&&fn!==Ce[kn].length-1){if((fi+2)*(vn+2)+2>Le)continue e;$i+=Ce[kn][fn],Fn=!0,nn=kn,kn--}else{$i=" "==($i+=Ce[kn][fn]+" ").substr($i.length-1)?$i.substr(0,$i.length-1):$i;var ur=parseInt(kn),Vr=(mn=ur)+1<Ce.length&&Hh($i+" "+Ce[mn+1][0],Se,De).width<=je-4,sr=kn>=Ce.length-1;if(Vr&&!sr){$i+=" ",fn=0;continue}if(Vr||sr){if(sr)nn=ur;else if(Se.multiline&&(fi+2)*(vn+2)+2>Le)continue e}else{if(!Se.multiline||(fi+2)*(vn+2)+2>Le)continue e;nn=ur}}for(var Rn="",Nr=sn;Nr<=nn;Nr++){var kr=Ce[Nr];if(Se.multiline){if(Nr===nn){Rn+=kr[fn]+" ",fn=(fn+1)%kr.length;continue}if(Nr===sn){Rn+=kr[kr.length-1]+" ";continue}}Rn+=kr[0]+" "}switch(Rn=" "==Rn.substr(Rn.length-1)?Rn.substr(0,Rn.length-1):Rn,Zt=Hh(Rn,Se,De).width,Se.textAlign){case"right":Pt=je-Zt-2;break;case"center":Pt=(je-Zt)/2;break;default:Pt=2}ue+=oa(Pt)+" "+oa(Rt)+" Td\n",ue+="("+vr(Rn)+") Tj\n",ue+=-oa(Pt)+" 0 Td\n",Rt=-(De+2),Zt=0,sn=Fn?nn:nn+1,vn++,$i=""}break}return te.text=ue,te.fontSize=De,te},Hh=function(Se,ue,B){var te=ue.scope.internal.getFont(ue.fontName,ue.fontStyle),Ce=ue.scope.getStringUnitWidth(Se,{font:te,fontSize:parseFloat(B),charSpace:0})*parseFloat(B);return{height:ue.scope.getStringUnitWidth("3",{font:te,fontSize:parseFloat(B),charSpace:0})*parseFloat(B)*1.5,width:Ce}},fh={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},zh=function(Se,ue){var B={type:"reference",object:Se};void 0===ue.internal.getPageInfo(Se.page).pageContext.annotations.find(function(te){return te.type===B.type&&te.object===B.object})&&ue.internal.getPageInfo(Se.page).pageContext.annotations.push(B)},Zd=Fo.__acroform__.arrayToPdfArray=function(Se,ue,B){var te=function(Le){return Le};if(Array.isArray(Se)){for(var Ce="[",De=0;De<Se.length;De++)switch(0!==De&&(Ce+=" "),(0,mo.A)(Se[De])){case"boolean":case"number":case"object":Ce+=Se[De].toString();break;case"string":"/"!==Se[De].substr(0,1)?(void 0!==ue&&B&&(te=B.internal.getEncryptor(ue)),Ce+="("+vr(te(Se[De].toString()))+")"):Ce+=Se[De].toString()}return Ce+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Zu=function(Se,ue,B){var te=function(Ce){return Ce};return void 0!==ue&&B&&(te=B.internal.getEncryptor(ue)),(Se=Se||"").toString(),"("+vr(te(Se))+")"},ko=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(Se){this._objId=Se}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ko.prototype.toString=function(){return this.objId+" 0 R"},ko.prototype.putStream=function(){var Se=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Se,objectId:this.objId}),this.scope.internal.out("endobj")},ko.prototype.getKeyValueListForStream=function(){var Se=[],ue=Object.getOwnPropertyNames(this).filter(function(De){return"content"!=De&&"appearanceStreamContent"!=De&&"scope"!=De&&"objId"!=De&&"_"!=De.substring(0,1)});for(var B in ue)if(!1===Object.getOwnPropertyDescriptor(this,ue[B]).configurable){var te=ue[B],Ce=this[te];Ce&&(Array.isArray(Ce)?Se.push({key:te,value:Zd(Ce,this.objId,this.scope)}):Ce instanceof ko?(Ce.scope=this.scope,Se.push({key:te,value:Ce.objId+" 0 R"})):"function"!=typeof Ce&&Se.push({key:te,value:Ce}))}return Se};var Uh=function(){ko.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var Se,ue=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return ue},set:function(B){ue=B}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(B){Se=B.trim()},get:function(){return Se||null}})};Wn(Uh,ko);var Gh=function(){ko.call(this);var Se,ue=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return ue.length>0?ue:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return ue}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Se){var B=function(te){return te};return this.scope&&(B=this.scope.internal.getEncryptor(this.objId)),"("+vr(B(Se))+")"}},set:function(B){Se=B}})};Wn(Gh,ko);var qd=function Se(){ko.call(this);var ue=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return ue},set:function($i){if(isNaN($i))throw new Error('Invalid value "'+$i+'" for attribute F supplied.');ue=$i}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!lo(ue,3)},set:function($i){this.F=$i?Al(ue,3):Nd(ue,3)}});var B=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return B},set:function($i){if(isNaN($i))throw new Error('Invalid value "'+$i+'" for attribute Ff supplied.');B=$i}});var te=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==te.length)return te},set:function($i){te=void 0!==$i?$i:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!te||isNaN(te[0])?0:te[0]},set:function($i){te[0]=$i}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!te||isNaN(te[1])?0:te[1]},set:function($i){te[1]=$i}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!te||isNaN(te[2])?0:te[2]},set:function($i){te[2]=$i}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!te||isNaN(te[3])?0:te[3]},set:function($i){te[3]=$i}});var Ce="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Ce},set:function($i){switch($i){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Ce=$i;break;default:throw new Error('Invalid value "'+$i+'" for attribute FT supplied.')}}});var De=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!De||De.length<1){if(this instanceof _u)return;De="FieldObject"+Se.FieldNum++}var $i=function(vn){return vn};return this.scope&&($i=this.scope.internal.getEncryptor(this.objId)),"("+vr($i(De))+")"},set:function($i){De=$i.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return De},set:function($i){De=$i}});var Le="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return Le},set:function($i){Le=$i}});var je="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return je},set:function($i){je=$i}});var it=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return it},set:function($i){it=$i}});var Pt=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===Pt?50/Ia:Pt},set:function($i){Pt=$i}});var Zt="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Zt},set:function($i){Zt=$i}});var fi="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!fi||this instanceof _u||this instanceof cc))return Zu(fi,this.objId,this.scope)},set:function($i){$i=$i.toString(),fi=$i}});var Jt=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Jt)return this instanceof sl?Jt:Zu(Jt,this.objId,this.scope)},set:function($i){$i=$i.toString(),Jt=this instanceof sl?$i:"("===$i.substr(0,1)?ba($i.substr(1,$i.length-2)):ba($i)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof sl?ba(Jt.substr(1,Jt.length-1)):Jt},set:function($i){$i=$i.toString(),Jt=this instanceof sl?"/"+$i:$i}});var Rt=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Rt)return Rt},set:function($i){this.V=$i}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Rt)return this instanceof sl?Rt:Zu(Rt,this.objId,this.scope)},set:function($i){$i=$i.toString(),Rt=this instanceof sl?$i:"("===$i.substr(0,1)?ba($i.substr(1,$i.length-2)):ba($i)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof sl?ba(Rt.substr(1,Rt.length-1)):Rt},set:function($i){$i=$i.toString(),Rt=this instanceof sl?"/"+$i:$i}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var sn,nn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return nn},set:function($i){nn=$i=!!$i}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(sn)return sn},set:function($i){sn=$i}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,1)},set:function($i){this.Ff=$i?Al(this.Ff,1):Nd(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,2)},set:function($i){this.Ff=$i?Al(this.Ff,2):Nd(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,3)},set:function($i){this.Ff=$i?Al(this.Ff,3):Nd(this.Ff,3)}});var fn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==fn)return fn},set:function($i){if(-1===[0,1,2].indexOf($i))throw new Error('Invalid value "'+$i+'" for attribute Q supplied.');fn=$i}}),Object.defineProperty(this,"textAlign",{get:function(){var $i;switch(fn){case 0:default:$i="left";break;case 1:$i="center";break;case 2:$i="right"}return $i},configurable:!0,enumerable:!0,set:function($i){switch($i){case"right":case 2:fn=2;break;case"center":case 1:fn=1;break;default:fn=0}}})};Wn(qd,ko);var qc=function(){qd.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Se=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Se},set:function(B){Se=B}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Se},set:function(B){Se=B}});var ue=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Zd(ue,this.objId,this.scope)},set:function(B){var te,Ce;Ce=[],"string"==typeof(te=B)&&(Ce=function(De,Le,je){je||(je=1);for(var it,Pt=[];it=Le.exec(De);)Pt.push(it[je]);return Pt}(te,/\((.*?)\)/g)),ue=Ce}}),this.getOptions=function(){return ue},this.setOptions=function(B){ue=B,this.sort&&ue.sort()},this.addOption=function(B){B=(B=B||"").toString(),ue.push(B),this.sort&&ue.sort()},this.removeOption=function(B,te){for(te=te||!1,B=(B=B||"").toString();-1!==ue.indexOf(B)&&(ue.splice(ue.indexOf(B),1),!1!==te););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,18)},set:function(B){this.Ff=B?Al(this.Ff,18):Nd(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,19)},set:function(B){!0===this.combo&&(this.Ff=B?Al(this.Ff,19):Nd(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,20)},set:function(B){B?(this.Ff=Al(this.Ff,20),ue.sort()):this.Ff=Nd(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,22)},set:function(B){this.Ff=B?Al(this.Ff,22):Nd(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,23)},set:function(B){this.Ff=B?Al(this.Ff,23):Nd(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,27)},set:function(B){this.Ff=B?Al(this.Ff,27):Nd(this.Ff,27)}}),this.hasAppearanceStream=!1};Wn(qc,qd);var kc=function(){qc.call(this),this.fontName="helvetica",this.combo=!1};Wn(kc,qc);var xl=function(){kc.call(this),this.combo=!0};Wn(xl,kc);var Wh=function(){xl.call(this),this.edit=!0};Wn(Wh,xl);var sl=function(){qd.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,15)},set:function(B){this.Ff=B?Al(this.Ff,15):Nd(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,16)},set:function(B){this.Ff=B?Al(this.Ff,16):Nd(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,17)},set:function(B){this.Ff=B?Al(this.Ff,17):Nd(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,26)},set:function(B){this.Ff=B?Al(this.Ff,26):Nd(this.Ff,26)}});var Se,ue={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var B=function(De){return De};if(this.scope&&(B=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(ue).length){var te,Ce=[];for(te in Ce.push("<<"),ue)Ce.push("/"+te+" ("+vr(B(ue[te]))+")");return Ce.push(">>"),Ce.join("\n")}},set:function(B){"object"===(0,mo.A)(B)&&(ue=B)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return ue.CA||""},set:function(B){"string"==typeof B&&(ue.CA=B)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Se},set:function(B){Se=B}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Se.substr(1,Se.length-1)},set:function(B){Se="/"+B}})};Wn(sl,qd);var dc=function(){sl.call(this),this.pushButton=!0};Wn(dc,sl);var Ru=function(){sl.call(this),this.radio=!0,this.pushButton=!1;var Se=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Se},set:function(ue){Se=void 0!==ue?ue:[]}})};Wn(Ru,sl);var _u=function(){var Se,ue;qd.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Se},set:function(Ce){Se=Ce}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return ue},set:function(Ce){ue=Ce}});var B,te={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ce=function(je){return je};this.scope&&(Ce=this.scope.internal.getEncryptor(this.objId));var De,Le=[];for(De in Le.push("<<"),te)Le.push("/"+De+" ("+vr(Ce(te[De]))+")");return Le.push(">>"),Le.join("\n")},set:function(Ce){"object"===(0,mo.A)(Ce)&&(te=Ce)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return te.CA||""},set:function(Ce){"string"==typeof Ce&&(te.CA=Ce)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return B},set:function(Ce){B=Ce}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return B.substr(1,B.length-1)},set:function(Ce){B="/"+Ce}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Qa.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Wn(_u,qd),Ru.prototype.setAppearance=function(Se){if(!("createAppearanceStream"in Se)||!("getCA"in Se))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var ue in this.Kids)if(this.Kids.hasOwnProperty(ue)){var B=this.Kids[ue];B.appearanceStreamContent=Se.createAppearanceStream(B.optionName),B.caption=Se.getCA()}},Ru.prototype.createOption=function(Se){var ue=new _u;return ue.Parent=this,ue.optionName=Se,this.Kids.push(ue),qu.call(this.scope,ue),ue};var vu=function(){sl.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Qa.CheckBox.createAppearanceStream()};Wn(vu,sl);var cc=function(){qd.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,13)},set:function(ue){this.Ff=ue?Al(this.Ff,13):Nd(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,21)},set:function(ue){this.Ff=ue?Al(this.Ff,21):Nd(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,23)},set:function(ue){this.Ff=ue?Al(this.Ff,23):Nd(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,24)},set:function(ue){this.Ff=ue?Al(this.Ff,24):Nd(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,25)},set:function(ue){this.Ff=ue?Al(this.Ff,25):Nd(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,26)},set:function(ue){this.Ff=ue?Al(this.Ff,26):Nd(this.Ff,26)}});var Se=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Se},set:function(ue){Se=ue}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Se},set:function(ue){Number.isInteger(ue)&&(Se=ue)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Wn(cc,qd);var eu=function(){cc.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!lo(this.Ff,14)},set:function(Se){this.Ff=Se?Al(this.Ff,14):Nd(this.Ff,14)}}),this.password=!0};Wn(eu,cc);var Qa={CheckBox:{createAppearanceStream:function(){return{N:{On:Qa.CheckBox.YesNormal},D:{On:Qa.CheckBox.YesPushDown,Off:Qa.CheckBox.OffPushDown}}},YesPushDown:function(Se){var ue=Zr(Se);ue.scope=Se.scope;var B=[],te=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,Ce=Se.scope.__private__.encodeColorString(Se.color),De=ph(Se,Se.caption);return B.push("0.749023 g"),B.push("0 0 "+oa(Qa.internal.getWidth(Se))+" "+oa(Qa.internal.getHeight(Se))+" re"),B.push("f"),B.push("BMC"),B.push("q"),B.push("0 0 1 rg"),B.push("/"+te+" "+oa(De.fontSize)+" Tf "+Ce),B.push("BT"),B.push(De.text),B.push("ET"),B.push("Q"),B.push("EMC"),ue.stream=B.join("\n"),ue},YesNormal:function(Se){var ue=Zr(Se);ue.scope=Se.scope;var B=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,te=Se.scope.__private__.encodeColorString(Se.color),Ce=[],De=Qa.internal.getHeight(Se),Le=Qa.internal.getWidth(Se),je=ph(Se,Se.caption);return Ce.push("1 g"),Ce.push("0 0 "+oa(Le)+" "+oa(De)+" re"),Ce.push("f"),Ce.push("q"),Ce.push("0 0 1 rg"),Ce.push("0 0 "+oa(Le-1)+" "+oa(De-1)+" re"),Ce.push("W"),Ce.push("n"),Ce.push("0 g"),Ce.push("BT"),Ce.push("/"+B+" "+oa(je.fontSize)+" Tf "+te),Ce.push(je.text),Ce.push("ET"),Ce.push("Q"),ue.stream=Ce.join("\n"),ue},OffPushDown:function(Se){var ue=Zr(Se);ue.scope=Se.scope;var B=[];return B.push("0.749023 g"),B.push("0 0 "+oa(Qa.internal.getWidth(Se))+" "+oa(Qa.internal.getHeight(Se))+" re"),B.push("f"),ue.stream=B.join("\n"),ue}},RadioButton:{Circle:{createAppearanceStream:function(Se){var ue={D:{Off:Qa.RadioButton.Circle.OffPushDown},N:{}};return ue.N[Se]=Qa.RadioButton.Circle.YesNormal,ue.D[Se]=Qa.RadioButton.Circle.YesPushDown,ue},getCA:function(){return"l"},YesNormal:function(Se){var ue=Zr(Se);ue.scope=Se.scope;var B=[],te=Qa.internal.getWidth(Se)<=Qa.internal.getHeight(Se)?Qa.internal.getWidth(Se)/4:Qa.internal.getHeight(Se)/4;te=Number((.9*te).toFixed(5));var De=Number((te*Qa.internal.Bezier_C).toFixed(5));return B.push("q"),B.push("1 0 0 1 "+zs(Qa.internal.getWidth(Se)/2)+" "+zs(Qa.internal.getHeight(Se)/2)+" cm"),B.push(te+" 0 m"),B.push(te+" "+De+" "+De+" "+te+" 0 "+te+" c"),B.push("-"+De+" "+te+" -"+te+" "+De+" -"+te+" 0 c"),B.push("-"+te+" -"+De+" -"+De+" -"+te+" 0 -"+te+" c"),B.push(De+" -"+te+" "+te+" -"+De+" "+te+" 0 c"),B.push("f"),B.push("Q"),ue.stream=B.join("\n"),ue},YesPushDown:function(Se){var ue=Zr(Se);ue.scope=Se.scope;var B=[],te=Qa.internal.getWidth(Se)<=Qa.internal.getHeight(Se)?Qa.internal.getWidth(Se)/4:Qa.internal.getHeight(Se)/4;te=Number((.9*te).toFixed(5));var Ce=Number((2*te).toFixed(5)),De=Number((Ce*Qa.internal.Bezier_C).toFixed(5)),Le=Number((te*Qa.internal.Bezier_C).toFixed(5));return B.push("0.749023 g"),B.push("q"),B.push("1 0 0 1 "+zs(Qa.internal.getWidth(Se)/2)+" "+zs(Qa.internal.getHeight(Se)/2)+" cm"),B.push(Ce+" 0 m"),B.push(Ce+" "+De+" "+De+" "+Ce+" 0 "+Ce+" c"),B.push("-"+De+" "+Ce+" -"+Ce+" "+De+" -"+Ce+" 0 c"),B.push("-"+Ce+" -"+De+" -"+De+" -"+Ce+" 0 -"+Ce+" c"),B.push(De+" -"+Ce+" "+Ce+" -"+De+" "+Ce+" 0 c"),B.push("f"),B.push("Q"),B.push("0 g"),B.push("q"),B.push("1 0 0 1 "+zs(Qa.internal.getWidth(Se)/2)+" "+zs(Qa.internal.getHeight(Se)/2)+" cm"),B.push(te+" 0 m"),B.push(te+" "+Le+" "+Le+" "+te+" 0 "+te+" c"),B.push("-"+Le+" "+te+" -"+te+" "+Le+" -"+te+" 0 c"),B.push("-"+te+" -"+Le+" -"+Le+" -"+te+" 0 -"+te+" c"),B.push(Le+" -"+te+" "+te+" -"+Le+" "+te+" 0 c"),B.push("f"),B.push("Q"),ue.stream=B.join("\n"),ue},OffPushDown:function(Se){var ue=Zr(Se);ue.scope=Se.scope;var B=[],te=Qa.internal.getWidth(Se)<=Qa.internal.getHeight(Se)?Qa.internal.getWidth(Se)/4:Qa.internal.getHeight(Se)/4;te=Number((.9*te).toFixed(5));var Ce=Number((2*te).toFixed(5)),De=Number((Ce*Qa.internal.Bezier_C).toFixed(5));return B.push("0.749023 g"),B.push("q"),B.push("1 0 0 1 "+zs(Qa.internal.getWidth(Se)/2)+" "+zs(Qa.internal.getHeight(Se)/2)+" cm"),B.push(Ce+" 0 m"),B.push(Ce+" "+De+" "+De+" "+Ce+" 0 "+Ce+" c"),B.push("-"+De+" "+Ce+" -"+Ce+" "+De+" -"+Ce+" 0 c"),B.push("-"+Ce+" -"+De+" -"+De+" -"+Ce+" 0 -"+Ce+" c"),B.push(De+" -"+Ce+" "+Ce+" -"+De+" "+Ce+" 0 c"),B.push("f"),B.push("Q"),ue.stream=B.join("\n"),ue}},Cross:{createAppearanceStream:function(Se){var ue={D:{Off:Qa.RadioButton.Cross.OffPushDown},N:{}};return ue.N[Se]=Qa.RadioButton.Cross.YesNormal,ue.D[Se]=Qa.RadioButton.Cross.YesPushDown,ue},getCA:function(){return"8"},YesNormal:function(Se){var ue=Zr(Se);ue.scope=Se.scope;var B=[],te=Qa.internal.calculateCross(Se);return B.push("q"),B.push("1 1 "+oa(Qa.internal.getWidth(Se)-2)+" "+oa(Qa.internal.getHeight(Se)-2)+" re"),B.push("W"),B.push("n"),B.push(oa(te.x1.x)+" "+oa(te.x1.y)+" m"),B.push(oa(te.x2.x)+" "+oa(te.x2.y)+" l"),B.push(oa(te.x4.x)+" "+oa(te.x4.y)+" m"),B.push(oa(te.x3.x)+" "+oa(te.x3.y)+" l"),B.push("s"),B.push("Q"),ue.stream=B.join("\n"),ue},YesPushDown:function(Se){var ue=Zr(Se);ue.scope=Se.scope;var B=Qa.internal.calculateCross(Se),te=[];return te.push("0.749023 g"),te.push("0 0 "+oa(Qa.internal.getWidth(Se))+" "+oa(Qa.internal.getHeight(Se))+" re"),te.push("f"),te.push("q"),te.push("1 1 "+oa(Qa.internal.getWidth(Se)-2)+" "+oa(Qa.internal.getHeight(Se)-2)+" re"),te.push("W"),te.push("n"),te.push(oa(B.x1.x)+" "+oa(B.x1.y)+" m"),te.push(oa(B.x2.x)+" "+oa(B.x2.y)+" l"),te.push(oa(B.x4.x)+" "+oa(B.x4.y)+" m"),te.push(oa(B.x3.x)+" "+oa(B.x3.y)+" l"),te.push("s"),te.push("Q"),ue.stream=te.join("\n"),ue},OffPushDown:function(Se){var ue=Zr(Se);ue.scope=Se.scope;var B=[];return B.push("0.749023 g"),B.push("0 0 "+oa(Qa.internal.getWidth(Se))+" "+oa(Qa.internal.getHeight(Se))+" re"),B.push("f"),ue.stream=B.join("\n"),ue}}},createDefaultAppearanceStream:function(Se){var ue=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,B=Se.scope.__private__.encodeColorString(Se.color);return"/"+ue+" "+Se.fontSize+" Tf "+B}};Qa.internal={Bezier_C:.551915024494,calculateCross:function(Se){var ue=Qa.internal.getWidth(Se),B=Qa.internal.getHeight(Se),te=Math.min(ue,B);return{x1:{x:(ue-te)/2,y:(B-te)/2+te},x2:{x:(ue-te)/2+te,y:(B-te)/2},x3:{x:(ue-te)/2,y:(B-te)/2},x4:{x:(ue-te)/2+te,y:(B-te)/2+te}}}},Qa.internal.getWidth=function(Se){var ue=0;return"object"===(0,mo.A)(Se)&&(ue=nd(Se.Rect[2])),ue},Qa.internal.getHeight=function(Se){var ue=0;return"object"===(0,mo.A)(Se)&&(ue=nd(Se.Rect[3])),ue};var Se,ue,qu=Fo.addField=function(Se){if(function(Se,ue){if(ue.scope=Se,void 0!==Se.internal&&(void 0===Se.internal.acroformPlugin||!1===Se.internal.acroformPlugin.isInitialized)){if(qd.FieldNum=0,Se.internal.acroformPlugin=JSON.parse(JSON.stringify(fh)),Se.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ia=Se.internal.scaleFactor,Se.internal.acroformPlugin.acroFormDictionaryRoot=new Gh,Se.internal.acroformPlugin.acroFormDictionaryRoot.scope=Se,Se.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Se.internal.events.subscribe("postPutResources",function(){var B;(B=Se).internal.events.unsubscribe(B.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete B.internal.acroformPlugin.acroFormDictionaryRoot._eventID,B.internal.acroformPlugin.printedOut=!0}),Se.internal.events.subscribe("buildDocument",function(){!function(B){B.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var te=B.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Ce in te)if(te.hasOwnProperty(Ce)){var De=te[Ce];De.objId=void 0,De.hasAnnotation&&zh(De,B)}}(Se)}),Se.internal.events.subscribe("putCatalog",function(){!function(B){if(void 0===B.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");B.internal.write("/AcroForm "+B.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Se)}),Se.internal.events.subscribe("postPutPages",function(B){!function(te,Ce){var De=!te;for(var Le in te||(Ce.internal.newObjectDeferredBegin(Ce.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Ce.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),te=te||Ce.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(te.hasOwnProperty(Le)){var je=te[Le],it=[],Pt=je.Rect;if(je.Rect&&(je.Rect=Vh(je.Rect,Ce)),Ce.internal.newObjectDeferredBegin(je.objId,!0),je.DA=Qa.createDefaultAppearanceStream(je),"object"===(0,mo.A)(je)&&"function"==typeof je.getKeyValueListForStream&&(it=je.getKeyValueListForStream()),je.Rect=Pt,je.hasAppearanceStream&&!je.appearanceStreamContent){var Zt=Ks(je);it.push({key:"AP",value:"<</N "+Zt+">>"}),Ce.internal.acroformPlugin.xForms.push(Zt)}if(je.appearanceStreamContent){var fi="";for(var Jt in je.appearanceStreamContent)if(je.appearanceStreamContent.hasOwnProperty(Jt)){var Rt=je.appearanceStreamContent[Jt];if(fi+="/"+Jt+" ",fi+="<<",Object.keys(Rt).length>=1||Array.isArray(Rt)){for(var Le in Rt)if(Rt.hasOwnProperty(Le)){var sn=Rt[Le];"function"==typeof sn&&(sn=sn.call(Ce,je)),fi+="/"+Le+" "+sn+" ",Ce.internal.acroformPlugin.xForms.indexOf(sn)>=0||Ce.internal.acroformPlugin.xForms.push(sn)}}else"function"==typeof(sn=Rt)&&(sn=sn.call(Ce,je)),fi+="/"+Le+" "+sn,Ce.internal.acroformPlugin.xForms.indexOf(sn)>=0||Ce.internal.acroformPlugin.xForms.push(sn);fi+=">>"}it.push({key:"AP",value:"<<\n"+fi+">>"})}Ce.internal.putStream({additionalKeyValues:it,objectId:je.objId}),Ce.internal.out("endobj")}De&&function(Se,ue){for(var B in Se)if(Se.hasOwnProperty(B)){var te=B,Ce=Se[B];ue.internal.newObjectDeferredBegin(Ce.objId,!0),"object"===(0,mo.A)(Ce)&&"function"==typeof Ce.putStream&&Ce.putStream(),delete Se[te]}}(Ce.internal.acroformPlugin.xForms,Ce)}(B,Se)}),Se.internal.acroformPlugin.isInitialized=!0}}(this,Se),!(Se instanceof qd))throw new Error("Invalid argument passed to jsPDF.addField.");var ue;return(ue=Se).scope.internal.acroformPlugin.printedOut&&(ue.scope.internal.acroformPlugin.printedOut=!1,ue.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),ue.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(ue),Se.page=Se.scope.internal.getCurrentPageInfo().pageNumber,this};function eh(Se){return Se.reduce(function(ue,B,te){return ue[B]=te,ue},{})}Fo.AcroFormChoiceField=qc,Fo.AcroFormListBox=kc,Fo.AcroFormComboBox=xl,Fo.AcroFormEditBox=Wh,Fo.AcroFormButton=sl,Fo.AcroFormPushButton=dc,Fo.AcroFormRadioButton=Ru,Fo.AcroFormCheckBox=vu,Fo.AcroFormTextField=cc,Fo.AcroFormPasswordField=eu,Fo.AcroFormAppearance=Qa,Fo.AcroForm={ChoiceField:qc,ListBox:kc,ComboBox:xl,EditBox:Wh,Button:sl,PushButton:dc,RadioButton:Ru,CheckBox:vu,TextField:cc,PasswordField:eu,Appearance:Qa},wa.AcroForm={ChoiceField:qc,ListBox:kc,ComboBox:xl,EditBox:Wh,Button:sl,PushButton:dc,RadioButton:Ru,CheckBox:vu,TextField:cc,PasswordField:eu,Appearance:Qa},function(Se){Se.__addimage__={};var ue="UNKNOWN",B={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},te=Se.__addimage__.getImageFileTypeByImageData=function(mn,hn){var Hn,Vn,Rr,br,jr,wr=ue;if("RGBA"===(hn=hn||ue)||void 0!==mn.data&&mn.data instanceof Uint8ClampedArray&&"height"in mn&&"width"in mn)return"RGBA";if(Vr(mn))for(jr in B)for(Rr=B[jr],Hn=0;Hn<Rr.length;Hn+=1){for(br=!0,Vn=0;Vn<Rr[Hn].length;Vn+=1)if(void 0!==Rr[Hn][Vn]&&Rr[Hn][Vn]!==mn[Vn]){br=!1;break}if(!0===br){wr=jr;break}}else for(jr in B)for(Rr=B[jr],Hn=0;Hn<Rr.length;Hn+=1){for(br=!0,Vn=0;Vn<Rr[Hn].length;Vn+=1)if(void 0!==Rr[Hn][Vn]&&Rr[Hn][Vn]!==mn.charCodeAt(Vn)){br=!1;break}if(!0===br){wr=jr;break}}return wr===ue&&hn!==ue&&(wr=hn),wr},Ce=function mn(hn){for(var Hn=this.internal.write,Vn=this.internal.putStream,Rr=(0,this.internal.getFilters)();-1!==Rr.indexOf("FlateEncode");)Rr.splice(Rr.indexOf("FlateEncode"),1);hn.objectId=this.internal.newObject();var br=[];if(br.push({key:"Type",value:"/XObject"}),br.push({key:"Subtype",value:"/Image"}),br.push({key:"Width",value:hn.width}),br.push({key:"Height",value:hn.height}),hn.colorSpace===fn.INDEXED?br.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(hn.palette.length/3-1)+" "+("sMask"in hn&&void 0!==hn.sMask?hn.objectId+2:hn.objectId+1)+" 0 R]"}):(br.push({key:"ColorSpace",value:"/"+hn.colorSpace}),hn.colorSpace===fn.DEVICE_CMYK&&br.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),br.push({key:"BitsPerComponent",value:hn.bitsPerComponent}),"decodeParameters"in hn&&void 0!==hn.decodeParameters&&br.push({key:"DecodeParms",value:"<<"+hn.decodeParameters+">>"}),"transparency"in hn&&Array.isArray(hn.transparency)){for(var jr="",wr=0,Kr=hn.transparency.length;wr<Kr;wr++)jr+=hn.transparency[wr]+" "+hn.transparency[wr]+" ";br.push({key:"Mask",value:"["+jr+"]"})}if(void 0!==hn.sMask&&br.push({key:"SMask",value:hn.objectId+1+" 0 R"}),Vn({data:hn.data,additionalKeyValues:br,alreadyAppliedFilters:void 0!==hn.filter?["/"+hn.filter]:void 0,objectId:hn.objectId}),Hn("endobj"),"sMask"in hn&&void 0!==hn.sMask){var Vi={width:hn.width,height:hn.height,colorSpace:"DeviceGray",bitsPerComponent:hn.bitsPerComponent,decodeParameters:"/Predictor "+hn.predictor+" /Colors 1 /BitsPerComponent "+hn.bitsPerComponent+" /Columns "+hn.width,data:hn.sMask};"filter"in hn&&(Vi.filter=hn.filter),mn.call(this,Vi)}if(hn.colorSpace===fn.INDEXED){var Cn=this.internal.newObject();Vn({data:Rn(new Uint8Array(hn.palette)),objectId:Cn}),Hn("endobj")}},De=function(){var mn=this.internal.collections.addImage_images;for(var hn in mn)Ce.call(this,mn[hn])},Le=function(){var mn,hn=this.internal.collections.addImage_images,Hn=this.internal.write;for(var Vn in hn)Hn("/I"+(mn=hn[Vn]).index,mn.objectId,"0","R")},je=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",De),this.internal.events.subscribe("putXobjectDict",Le))},it=function(){var mn=this.internal.collections.addImage_images;return je.call(this),mn},Pt=function(){return Object.keys(this.internal.collections.addImage_images).length},Zt=function(mn){return"function"==typeof Se["process"+mn.toUpperCase()]},fi=function(mn){return"object"===(0,mo.A)(mn)&&1===mn.nodeType},Jt=function(mn,hn){if("IMG"===mn.nodeName&&mn.hasAttribute("src")){var Hn=""+mn.getAttribute("src");if(0===Hn.indexOf("data:image/"))return Ei(unescape(Hn).split("base64,").pop());var Vn=Se.loadFile(Hn,!0);if(void 0!==Vn)return Vn}if("CANVAS"===mn.nodeName){if(0===mn.width||0===mn.height)throw new Error("Given canvas must have data. Canvas width: "+mn.width+", height: "+mn.height);var Rr;switch(hn){case"PNG":Rr="image/png";break;case"WEBP":Rr="image/webp";break;default:Rr="image/jpeg"}return Ei(mn.toDataURL(Rr,1).split("base64,").pop())}},Rt=function(mn){var hn=this.internal.collections.addImage_images;if(hn)for(var Hn in hn)if(mn===hn[Hn].alias)return hn[Hn]},sn=function(mn,hn,Hn){return mn||hn||(mn=-96,hn=-96),mn<0&&(mn=-1*Hn.width*72/mn/this.internal.scaleFactor),hn<0&&(hn=-1*Hn.height*72/hn/this.internal.scaleFactor),0===mn&&(mn=hn*Hn.width/Hn.height),0===hn&&(hn=mn*Hn.height/Hn.width),[mn,hn]},nn=function(mn,hn,Hn,Vn,Rr,br){var jr=sn.call(this,Hn,Vn,Rr),wr=this.internal.getCoordinateString,Kr=this.internal.getVerticalCoordinateString,Xr=it.call(this);if(Hn=jr[0],Vn=jr[1],Xr[Rr.index]=Rr,br){br*=Math.PI/180;var Ja=Math.cos(br),Vi=Math.sin(br),Cn=function(Jn){return Jn.toFixed(4)},Ln=[Cn(Ja),Cn(Vi),Cn(-1*Vi),Cn(Ja),0,0,"cm"]}this.internal.write("q"),br?(this.internal.write([1,"0","0",1,wr(mn),Kr(hn+Vn),"cm"].join(" ")),this.internal.write(Ln.join(" ")),this.internal.write([wr(Hn),"0","0",wr(Vn),"0","0","cm"].join(" "))):this.internal.write([wr(Hn),"0","0",wr(Vn),wr(mn),Kr(hn+Vn),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Rr.index+" Do"),this.internal.write("Q")},fn=Se.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};Se.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var $i=Se.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},vn=Se.__addimage__.sHashCode=function(mn){var hn,Hn,Vn=0;if("string"==typeof mn)for(Hn=mn.length,hn=0;hn<Hn;hn++)Vn=(Vn<<5)-Vn+mn.charCodeAt(hn),Vn|=0;else if(Vr(mn))for(Hn=mn.byteLength/2,hn=0;hn<Hn;hn++)Vn=(Vn<<5)-Vn+mn[hn],Vn|=0;return Vn},kn=Se.__addimage__.validateStringAsBase64=function(mn){(mn=mn||"").toString().trim();var hn=!0;return 0===mn.length&&(hn=!1),mn.length%4!=0&&(hn=!1),!1===/^[A-Za-z0-9+/]+$/.test(mn.substr(0,mn.length-2))&&(hn=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(mn.substr(-2))&&(hn=!1),hn},Fn=Se.__addimage__.extractImageFromDataUrl=function(mn){var hn=(mn=mn||"").split("base64,"),Hn=null;if(2===hn.length){var Vn=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(hn[0]);Array.isArray(Vn)&&(Hn={mimeType:Vn[1],charset:Vn[2],data:hn[1]})}return Hn},ur=Se.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};Se.__addimage__.isArrayBuffer=function(mn){return ur()&&mn instanceof ArrayBuffer};var Vr=Se.__addimage__.isArrayBufferView=function(mn){return ur()&&typeof Uint32Array<"u"&&(mn instanceof Int8Array||mn instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&mn instanceof Uint8ClampedArray||mn instanceof Int16Array||mn instanceof Uint16Array||mn instanceof Int32Array||mn instanceof Uint32Array||mn instanceof Float32Array||mn instanceof Float64Array)},sr=Se.__addimage__.binaryStringToUint8Array=function(mn){for(var hn=mn.length,Hn=new Uint8Array(hn),Vn=0;Vn<hn;Vn++)Hn[Vn]=mn.charCodeAt(Vn);return Hn},Rn=Se.__addimage__.arrayBufferToBinaryString=function(mn){for(var hn="",Hn=Vr(mn)?mn:new Uint8Array(mn),Vn=0;Vn<Hn.length;Vn+=8192)hn+=String.fromCharCode.apply(null,Hn.subarray(Vn,Vn+8192));return hn};Se.addImage=function(){var mn,hn,Hn,Vn,Rr,br,jr,wr,Kr;if("number"==typeof arguments[1]?(hn=ue,Hn=arguments[1],Vn=arguments[2],Rr=arguments[3],br=arguments[4],jr=arguments[5],wr=arguments[6],Kr=arguments[7]):(hn=arguments[1],Hn=arguments[2],Vn=arguments[3],Rr=arguments[4],br=arguments[5],jr=arguments[6],wr=arguments[7],Kr=arguments[8]),"object"===(0,mo.A)(mn=arguments[0])&&!fi(mn)&&"imageData"in mn){var Xr=mn;mn=Xr.imageData,hn=Xr.format||hn||ue,Hn=Xr.x||Hn||0,Vn=Xr.y||Vn||0,Rr=Xr.w||Xr.width||Rr,br=Xr.h||Xr.height||br,jr=Xr.alias||jr,wr=Xr.compression||wr,Kr=Xr.rotation||Xr.angle||Kr}var Ja=this.internal.getFilters();if(void 0===wr&&-1!==Ja.indexOf("FlateEncode")&&(wr="SLOW"),isNaN(Hn)||isNaN(Vn))throw new Error("Invalid coordinates passed to jsPDF.addImage");je.call(this);var Vi=Nr.call(this,mn,hn,jr,wr);return nn.call(this,Hn,Vn,Rr,br,Vi,Kr),this};var Nr=function(mn,hn,Hn,Vn){var Rr,br,jr,Kr;if("string"==typeof mn&&te(mn)===ue){mn=unescape(mn);var wr=kr(mn,!1);(""!==wr||void 0!==(wr=Se.loadFile(mn,!0)))&&(mn=wr)}if(fi(mn)&&(mn=Jt(mn,hn)),hn=te(mn,hn),!Zt(hn))throw new Error("addImage does not support files of type '"+hn+"', please ensure that a plugin for '"+hn+"' support is added.");if((null==(jr=Hn)||0===jr.length)&&(Hn="string"==typeof(Kr=mn)||Vr(Kr)?vn(Kr):Vr(Kr.data)?vn(Kr.data):null),(Rr=Rt.call(this,Hn))||(ur()&&(mn instanceof Uint8Array||"RGBA"===hn||(br=mn,mn=sr(mn))),Rr=this["process"+hn.toUpperCase()](mn,Pt.call(this),Hn,function(Kr){return Kr&&"string"==typeof Kr&&(Kr=Kr.toUpperCase()),Kr in Se.image_compression?Kr:$i.NONE}(Vn),br)),!Rr)throw new Error("An unknown error occurred whilst processing the image.");return Rr},kr=Se.__addimage__.convertBase64ToBinaryString=function(mn,hn){var Hn;hn="boolean"!=typeof hn||hn;var Vn,Rr="";if("string"==typeof mn){Vn=null!==(Hn=Fn(mn))?Hn.data:mn;try{Rr=Ei(Vn)}catch(br){if(hn)throw kn(Vn)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+br.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Rr};Se.getImageProperties=function(mn){var hn,Hn,Vn="";if(fi(mn)&&(mn=Jt(mn)),"string"==typeof mn&&te(mn)===ue&&(""===(Vn=kr(mn,!1))&&(Vn=Se.loadFile(mn)||""),mn=Vn),Hn=te(mn),!Zt(Hn))throw new Error("addImage does not support files of type '"+Hn+"', please ensure that a plugin for '"+Hn+"' support is added.");if(!ur()||mn instanceof Uint8Array||(mn=sr(mn)),!(hn=this["process"+Hn.toUpperCase()](mn)))throw new Error("An unknown error occurred whilst processing the image");return hn.fileType=Hn,hn}}(wa.API),
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
|
*
|
|
* Licensed under the MIT License.
|
|
* http://opensource.org/licenses/mit-license
|
|
*/
|
|
Se=wa.API,ue=function(B){if(void 0!==B&&""!=B)return!0},wa.API.events.push(["addPage",function(B){this.internal.getPageInfo(B.pageNumber).pageContext.annotations=[]}]),Se.events.push(["putPage",function(B){for(var te,Ce,De,Le=this.internal.getCoordinateString,je=this.internal.getVerticalCoordinateString,it=this.internal.getPageInfoByObjId(B.objId),Pt=B.pageContext.annotations,Zt=!1,fi=0;fi<Pt.length&&!Zt;fi++)switch((te=Pt[fi]).type){case"link":(ue(te.options.url)||ue(te.options.pageNumber))&&(Zt=!0);break;case"reference":case"text":case"freetext":Zt=!0}if(0!=Zt){this.internal.write("/Annots [");for(var Jt=0;Jt<Pt.length;Jt++){te=Pt[Jt];var Rt=this.internal.pdfEscape,sn=this.internal.getEncryptor(B.objId);switch(te.type){case"reference":this.internal.write(" "+te.object.objId+" 0 R ");break;case"text":var nn=this.internal.newAdditionalObject(),fn=this.internal.newAdditionalObject(),$i=this.internal.getEncryptor(nn.objId),vn=te.title||"Note";De="<</Type /Annot /Subtype /Text "+(Ce="/Rect ["+Le(te.bounds.x)+" "+je(te.bounds.y+te.bounds.h)+" "+Le(te.bounds.x+te.bounds.w)+" "+je(te.bounds.y)+"] ")+"/Contents ("+Rt($i(te.contents))+")",De+=" /Popup "+fn.objId+" 0 R",De+=" /P "+it.objId+" 0 R",De+=" /T ("+Rt($i(vn))+") >>",nn.content=De;var kn=nn.objId+" 0 R";De="<</Type /Annot /Subtype /Popup "+(Ce="/Rect ["+Le(te.bounds.x+30)+" "+je(te.bounds.y+te.bounds.h)+" "+Le(te.bounds.x+te.bounds.w+30)+" "+je(te.bounds.y)+"] ")+" /Parent "+kn,te.open&&(De+=" /Open true"),fn.content=De+=" >>",this.internal.write(nn.objId,"0 R",fn.objId,"0 R");break;case"freetext":Ce="/Rect ["+Le(te.bounds.x)+" "+je(te.bounds.y)+" "+Le(te.bounds.x+te.bounds.w)+" "+je(te.bounds.y+te.bounds.h)+"] ";var Fn=te.color||"#000000";De="<</Type /Annot /Subtype /FreeText "+Ce+"/Contents ("+Rt(sn(te.contents))+")",De+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Fn+")",De+=" /Border [0 0 0]",this.internal.write(De+=" >>");break;case"link":if(te.options.name){var ur=this.annotations._nameMap[te.options.name];te.options.pageNumber=ur.page,te.options.top=ur.y}else te.options.top||(te.options.top=0);if(Ce="/Rect ["+te.finalBounds.x+" "+te.finalBounds.y+" "+te.finalBounds.w+" "+te.finalBounds.h+"] ",De="",te.options.url)De="<</Type /Annot /Subtype /Link "+Ce+"/Border [0 0 0] /A <</S /URI /URI ("+Rt(sn(te.options.url))+") >>";else if(te.options.pageNumber)switch(De="<</Type /Annot /Subtype /Link "+Ce+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(te.options.pageNumber).objId+" 0 R",te.options.magFactor=te.options.magFactor||"XYZ",te.options.magFactor){case"Fit":De+=" /Fit]";break;case"FitH":De+=" /FitH "+te.options.top+"]";break;case"FitV":te.options.left=te.options.left||0,De+=" /FitV "+te.options.left+"]";break;default:var Vr=je(te.options.top);te.options.left=te.options.left||0,void 0===te.options.zoom&&(te.options.zoom=0),De+=" /XYZ "+te.options.left+" "+Vr+" "+te.options.zoom+"]"}""!=De&&this.internal.write(De+=" >>")}}this.internal.write("]")}}]),Se.createAnnotation=function(B){var te=this.internal.getCurrentPageInfo();switch(B.type){case"link":this.link(B.bounds.x,B.bounds.y,B.bounds.w,B.bounds.h,B);break;case"text":case"freetext":te.pageContext.annotations.push(B)}},Se.link=function(B,te,Ce,De,Le){var je=this.internal.getCurrentPageInfo(),it=this.internal.getCoordinateString,Pt=this.internal.getVerticalCoordinateString;je.pageContext.annotations.push({finalBounds:{x:it(B),y:Pt(te),w:it(B+Ce),h:Pt(te+De)},options:Le,type:"link"})},Se.textWithLink=function(B,te,Ce,De){var Le,je,it=this.getTextWidth(B),Pt=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==De.maxWidth){var Zt=this.splitTextToSize(B,je=De.maxWidth).length;Le=Math.ceil(Pt*Zt)}else je=it,Le=Pt;return this.text(B,te,Ce,De),"center"===De.align&&(te-=it/2),"right"===De.align&&(te-=it),this.link(te,(Ce+=.2*Pt)-Pt,je,Le,De),it},Se.getTextWidth=function(B){var te=this.internal.getFontSize();return this.getStringUnitWidth(B)*te/this.internal.scaleFactor},
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2017 Aras Abbasi
|
|
*
|
|
* Licensed under the MIT License.
|
|
* http://opensource.org/licenses/mit-license
|
|
*/
|
|
function(Se){var ue={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},B={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},te={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Ce=[1570,1571,1573,1575];Se.__arabicParser__={};var De=Se.__arabicParser__.isInArabicSubstitutionA=function(nn){return void 0!==ue[nn.charCodeAt(0)]},Le=Se.__arabicParser__.isArabicLetter=function(nn){return"string"==typeof nn&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(nn)},je=Se.__arabicParser__.isArabicEndLetter=function(nn){return Le(nn)&&De(nn)&&ue[nn.charCodeAt(0)].length<=2},it=Se.__arabicParser__.isArabicAlfLetter=function(nn){return Le(nn)&&Ce.indexOf(nn.charCodeAt(0))>=0};Se.__arabicParser__.arabicLetterHasIsolatedForm=function(nn){return Le(nn)&&De(nn)&&ue[nn.charCodeAt(0)].length>=1};var Pt=Se.__arabicParser__.arabicLetterHasFinalForm=function(nn){return Le(nn)&&De(nn)&&ue[nn.charCodeAt(0)].length>=2};Se.__arabicParser__.arabicLetterHasInitialForm=function(nn){return Le(nn)&&De(nn)&&ue[nn.charCodeAt(0)].length>=3};var Zt=Se.__arabicParser__.arabicLetterHasMedialForm=function(nn){return Le(nn)&&De(nn)&&4==ue[nn.charCodeAt(0)].length},fi=Se.__arabicParser__.resolveLigatures=function(nn){var fn=0,$i=B,vn="",kn=0;for(fn=0;fn<nn.length;fn+=1)void 0!==$i[nn.charCodeAt(fn)]?(kn++,"number"==typeof($i=$i[nn.charCodeAt(fn)])&&(vn+=String.fromCharCode($i),$i=B,kn=0),fn===nn.length-1&&($i=B,vn+=nn.charAt(fn-(kn-1)),fn-=kn-1,kn=0)):($i=B,vn+=nn.charAt(fn-kn),fn-=kn,kn=0);return vn};Se.__arabicParser__.isArabicDiacritic=function(nn){return void 0!==nn&&void 0!==te[nn.charCodeAt(0)]};var Jt=Se.__arabicParser__.getCorrectForm=function(nn,fn,$i){return Le(nn)?!1===De(nn)?-1:!Pt(nn)||!Le(fn)&&!Le($i)||!Le($i)&&je(fn)||je(nn)&&!Le(fn)||je(nn)&&it(fn)||je(nn)&&je(fn)?0:Zt(nn)&&Le(fn)&&!je(fn)&&Le($i)&&Pt($i)?3:je(nn)||!Le($i)?1:2:-1},Rt=function(nn){var fn=0,$i=0,vn=0,kn="",Fn="",ur="",Vr=(nn=nn||"").split("\\s+"),sr=[];for(fn=0;fn<Vr.length;fn+=1){for(sr.push(""),$i=0;$i<Vr[fn].length;$i+=1)Fn=Vr[fn][$i-1],ur=Vr[fn][$i+1],Le(kn=Vr[fn][$i])?(vn=Jt(kn,Fn,ur),sr[fn]+=-1!==vn?String.fromCharCode(ue[kn.charCodeAt(0)][vn]):kn):sr[fn]+=kn;sr[fn]=fi(sr[fn])}return sr.join(" ")},sn=Se.__arabicParser__.processArabic=Se.processArabic=function(){var nn,fn="string"==typeof arguments[0]?arguments[0]:arguments[0].text,$i=[];if(Array.isArray(fn)){var vn=0;for($i=[],vn=0;vn<fn.length;vn+=1)Array.isArray(fn[vn])?$i.push([Rt(fn[vn][0]),fn[vn][1],fn[vn][2]]):$i.push([Rt(fn[vn])]);nn=$i}else nn=Rt(fn);return"string"==typeof arguments[0]?nn:(arguments[0].text=nn,arguments[0])};Se.events.push(["preProcessText",sn])}(wa.API),wa.API.autoPrint=function(Se){var ue;return"javascript"===((Se=Se||{}).variant=Se.variant||"non-conform",Se.variant)?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){ue=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+ue+" 0 R")})),this},
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
|
*
|
|
* Licensed under the MIT License.
|
|
* http://opensource.org/licenses/mit-license
|
|
*/
|
|
function(Se){var ue=function(){var B=void 0;Object.defineProperty(this,"pdf",{get:function(){return B},set:function(je){B=je}});var te=150;Object.defineProperty(this,"width",{get:function(){return te},set:function(je){te=isNaN(je)||!1===Number.isInteger(je)||je<0?150:je,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=te+1)}});var Ce=300;Object.defineProperty(this,"height",{get:function(){return Ce},set:function(je){Ce=isNaN(je)||!1===Number.isInteger(je)||je<0?300:je,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Ce+1)}});var De=[];Object.defineProperty(this,"childNodes",{get:function(){return De},set:function(je){De=je}});var Le={};Object.defineProperty(this,"style",{get:function(){return Le},set:function(je){Le=je}}),Object.defineProperty(this,"parentNode",{})};ue.prototype.getContext=function(B,te){var Ce;if("2d"!==(B=B||"2d"))return null;for(Ce in te)this.pdf.context2d.hasOwnProperty(Ce)&&(this.pdf.context2d[Ce]=te[Ce]);return this.pdf.context2d._canvas=this,this.pdf.context2d},ue.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Se.events.push(["initialized",function(){this.canvas=new ue,this.canvas.pdf=this}])}(wa.API),function(Se){var ue={left:0,top:0,bottom:0,right:0},B=!1,te=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},ue),this.internal.__cell__.margins.width=this.getPageWidth(),Ce.call(this))},Ce=function(){this.internal.__cell__.lastCell=new De,this.internal.__cell__.pages=1},De=function(){var it=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return it},set:function(nn){it=nn}});var Pt=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Pt},set:function(nn){Pt=nn}});var Zt=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Zt},set:function(nn){Zt=nn}});var fi=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return fi},set:function(nn){fi=nn}});var Jt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Jt},set:function(nn){Jt=nn}});var Rt=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Rt},set:function(nn){Rt=nn}});var sn=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return sn},set:function(nn){sn=nn}}),this};De.prototype.clone=function(){return new De(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},De.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Se.setHeaderFunction=function(it){return te.call(this),this.internal.__cell__.headerFunction="function"==typeof it?it:void 0,this},Se.getTextDimensions=function(it,Pt){te.call(this);var Zt=(Pt=Pt||{}).fontSize||this.getFontSize(),fi=Pt.font||this.getFont(),Jt=Pt.scaleFactor||this.internal.scaleFactor,Rt=0,sn=0,nn=0,fn=this;if(!Array.isArray(it)&&"string"!=typeof it){if("number"!=typeof it)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");it=String(it)}var $i=Pt.maxWidth;$i>0?"string"==typeof it?it=this.splitTextToSize(it,$i):"[object Array]"===Object.prototype.toString.call(it)&&(it=it.reduce(function(kn,Fn){return kn.concat(fn.splitTextToSize(Fn,$i))},[])):it=Array.isArray(it)?it:[it];for(var vn=0;vn<it.length;vn++)Rt<(nn=this.getStringUnitWidth(it[vn],{font:fi})*Zt)&&(Rt=nn);return 0!==Rt&&(sn=it.length),{w:Rt/=Jt,h:Math.max((sn*Zt*this.getLineHeightFactor()-Zt*(this.getLineHeightFactor()-1))/Jt,0)}},Se.cellAddPage=function(){te.call(this),this.addPage();var it=this.internal.__cell__.margins||ue;return this.internal.__cell__.lastCell=new De(it.left,it.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Le=Se.cell=function(){var it;it=arguments[0]instanceof De?arguments[0]:new De(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),te.call(this);var Pt=this.internal.__cell__.lastCell,Zt=this.internal.__cell__.padding,fi=this.internal.__cell__.margins||ue,Jt=this.internal.__cell__.tableHeaderRow,Rt=this.internal.__cell__.printHeaders;return void 0!==Pt.lineNumber&&(Pt.lineNumber===it.lineNumber?(it.x=(Pt.x||0)+(Pt.width||0),it.y=Pt.y||0):Pt.y+Pt.height+it.height+fi.bottom>this.getPageHeight()?(this.cellAddPage(),it.y=fi.top,Rt&&Jt&&(this.printHeaderRow(it.lineNumber,!0),it.y+=Jt[0].height)):it.y=Pt.y+Pt.height||it.y),void 0!==it.text[0]&&(this.rect(it.x,it.y,it.width,it.height,!0===B?"FD":void 0),"right"===it.align?this.text(it.text,it.x+it.width-Zt,it.y+Zt,{align:"right",baseline:"top"}):"center"===it.align?this.text(it.text,it.x+it.width/2,it.y+Zt,{align:"center",baseline:"top",maxWidth:it.width-Zt-Zt}):this.text(it.text,it.x+Zt,it.y+Zt,{align:"left",baseline:"top",maxWidth:it.width-Zt-Zt})),this.internal.__cell__.lastCell=it,this};Se.table=function(it,Pt,Zt,fi,Jt){if(te.call(this),!Zt)throw new Error("No data for PDF table.");var Rt,sn,nn,fn,$i=[],vn=[],kn=[],Fn={},ur={},Vr=[],sr=[],Rn=(Jt=Jt||{}).autoSize||!1,Nr=!1!==Jt.printHeaders,kr=Jt.css&&void 0!==Jt.css["font-size"]?16*Jt.css["font-size"]:Jt.fontSize||12,mn=Jt.margins||Object.assign({width:this.getPageWidth()},ue),hn="number"==typeof Jt.padding?Jt.padding:3,Hn=Jt.headerBackgroundColor||"#c8c8c8",Vn=Jt.headerTextColor||"#000";if(Ce.call(this),this.internal.__cell__.printHeaders=Nr,this.internal.__cell__.margins=mn,this.internal.__cell__.table_font_size=kr,this.internal.__cell__.padding=hn,this.internal.__cell__.headerBackgroundColor=Hn,this.internal.__cell__.headerTextColor=Vn,this.setFontSize(kr),null==fi)vn=$i=Object.keys(Zt[0]),kn=$i.map(function(){return"left"});else if(Array.isArray(fi)&&"object"===(0,mo.A)(fi[0]))for($i=fi.map(function(Xr){return Xr.name}),vn=fi.map(function(Xr){return Xr.prompt||Xr.name||""}),kn=fi.map(function(Xr){return Xr.align||"left"}),Rt=0;Rt<fi.length;Rt+=1)ur[fi[Rt].name]=fi[Rt].width*(19.049976/25.4);else Array.isArray(fi)&&"string"==typeof fi[0]&&(vn=$i=fi,kn=$i.map(function(){return"left"}));if(Rn||Array.isArray(fi)&&"string"==typeof fi[0])for(Rt=0;Rt<$i.length;Rt+=1){for(Fn[fn=$i[Rt]]=Zt.map(function(Xr){return Xr[fn]}),this.setFont(void 0,"bold"),Vr.push(this.getTextDimensions(vn[Rt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),sn=Fn[fn],this.setFont(void 0,"normal"),nn=0;nn<sn.length;nn+=1)Vr.push(this.getTextDimensions(sn[nn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ur[fn]=Math.max.apply(null,Vr)+hn+hn,Vr=[]}if(Nr){var Rr={};for(Rt=0;Rt<$i.length;Rt+=1)Rr[$i[Rt]]={},Rr[$i[Rt]].text=vn[Rt],Rr[$i[Rt]].align=kn[Rt];var br=je.call(this,Rr,ur);sr=$i.map(function(Xr){return new De(it,Pt,ur[Xr],br,Rr[Xr].text,void 0,Rr[Xr].align)}),this.setTableHeaderRow(sr),this.printHeaderRow(1,!1)}var jr=fi.reduce(function(Xr,Ja){return Xr[Ja.name]=Ja.align,Xr},{});for(Rt=0;Rt<Zt.length;Rt+=1){"rowStart"in Jt&&Jt.rowStart instanceof Function&&Jt.rowStart({row:Rt,data:Zt[Rt]},this);var wr=je.call(this,Zt[Rt],ur);for(nn=0;nn<$i.length;nn+=1){var Kr=Zt[Rt][$i[nn]];"cellStart"in Jt&&Jt.cellStart instanceof Function&&Jt.cellStart({row:Rt,col:nn,data:Kr},this),Le.call(this,new De(it,Pt,ur[$i[nn]],wr,Kr,Rt+2,jr[$i[nn]]))}}return this.internal.__cell__.table_x=it,this.internal.__cell__.table_y=Pt,this};var je=function(it,Pt){var Zt=this.internal.__cell__.padding,fi=this.internal.__cell__.table_font_size,Jt=this.internal.scaleFactor;return Object.keys(it).map(function(Rt){var sn=it[Rt];return this.splitTextToSize(sn.hasOwnProperty("text")?sn.text:sn,Pt[Rt]-Zt-Zt)},this).map(function(Rt){return this.getLineHeightFactor()*Rt.length*fi/Jt+Zt+Zt},this).reduce(function(Rt,sn){return Math.max(Rt,sn)},0)};Se.setTableHeaderRow=function(it){te.call(this),this.internal.__cell__.tableHeaderRow=it},Se.printHeaderRow=function(it,Pt){if(te.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Zt;if(B=!0,"function"==typeof this.internal.__cell__.headerFunction){var fi=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new De(fi[0],fi[1],fi[2],fi[3],void 0,-1)}this.setFont(void 0,"bold");for(var Jt=[],Rt=0;Rt<this.internal.__cell__.tableHeaderRow.length;Rt+=1){Zt=this.internal.__cell__.tableHeaderRow[Rt].clone(),Pt&&(Zt.y=this.internal.__cell__.margins.top||0,Jt.push(Zt)),Zt.lineNumber=it;var sn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Le.call(this,Zt),this.setTextColor(sn)}Jt.length>0&&this.setTableHeaderRow(Jt),this.setFont(void 0,"normal"),B=!1}}(wa.API);var Cc={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},mh=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Kf=eh(mh),Kp=[100,200,300,400,500,600,700,800,900],Xp=eh(Kp);function Sa(Se){var De,ue=Se.family.replace(/"|'/g,"").toLowerCase(),B=Cc[De=(De=Se.style)||"normal"]?De:"normal",te=function(De){return De?"number"==typeof De?De>=100&&De<=900&&De%100==0?De:400:/^\d00$/.test(De)?parseInt(De):"bold"===De?700:400:400}(Se.weight),Ce=function(De){return"number"==typeof Kf[De=De||"normal"]?De:"normal"}(Se.stretch);return{family:ue,style:B,weight:te,stretch:Ce,src:Se.src||[],ref:Se.ref||{name:ue,style:[Ce,B,te].join(" ")}}}function Xf(Se,ue,B,te){var Ce;for(Ce=B;Ce>=0&&Ce<ue.length;Ce+=te)if(Se[ue[Ce]])return Se[ue[Ce]];for(Ce=B;Ce>=0&&Ce<ue.length;Ce-=te)if(Se[ue[Ce]])return Se[ue[Ce]]}var nt={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ct={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function at(Se){return[Se.stretch,Se.style,Se.weight,Se.family].join(" ")}function pi(Se){return Se.trimLeft()}function zi(Se,ue){for(var B=0;B<Se.length;){if(Se.charAt(B)===ue)return[Se.substring(0,B),Se.substring(B+1)];B+=1}return null}function In(Se){var ue=Se.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===ue?null:[ue[0],Se.substring(ue[0].length)]}var qn,pr,Za,ds=["times"];(function(Se){var ue,B,te,Ce,De,Le,je,it,Pt,Zt=function(Vi){return this.isStrokeTransparent=(Vi=Vi||{}).isStrokeTransparent||!1,this.strokeOpacity=Vi.strokeOpacity||1,this.strokeStyle=Vi.strokeStyle||"#000000",this.fillStyle=Vi.fillStyle||"#000000",this.isFillTransparent=Vi.isFillTransparent||!1,this.fillOpacity=Vi.fillOpacity||1,this.font=Vi.font||"10px sans-serif",this.textBaseline=Vi.textBaseline||"alphabetic",this.textAlign=Vi.textAlign||"left",this.lineWidth=Vi.lineWidth||1,this.lineJoin=Vi.lineJoin||"miter",this.lineCap=Vi.lineCap||"butt",this.path=Vi.path||[],this.transform=void 0!==Vi.transform?Vi.transform.clone():new it,this.globalCompositeOperation=Vi.globalCompositeOperation||"normal",this.globalAlpha=Vi.globalAlpha||1,this.clip_path=Vi.clip_path||[],this.currentPoint=Vi.currentPoint||new Le,this.miterLimit=Vi.miterLimit||10,this.lastPoint=Vi.lastPoint||new Le,this.lineDashOffset=Vi.lineDashOffset||0,this.lineDash=Vi.lineDash||[],this.margin=Vi.margin||[0,0,0,0],this.prevPageLastElemOffset=Vi.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof Vi.ignoreClearRect||Vi.ignoreClearRect,this};Se.events.push(["initialized",function(){this.context2d=new fi(this),ue=this.internal.f2,B=this.internal.getCoordinateString,te=this.internal.getVerticalCoordinateString,Ce=this.internal.getHorizontalCoordinate,De=this.internal.getVerticalCoordinate,Le=this.internal.Point,je=this.internal.Rectangle,it=this.internal.Matrix,Pt=new Zt}]);var fi=function(Vi){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Cn=Vi;Object.defineProperty(this,"pdf",{get:function(){return Cn}});var Ln=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Ln},set:function(Jr){Ln=!!Jr}});var Jn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Jn},set:function(Jr){Jn=!!Jr}});var lr=0;Object.defineProperty(this,"posX",{get:function(){return lr},set:function(Jr){isNaN(Jr)||(lr=Jr)}});var Sr=0;Object.defineProperty(this,"posY",{get:function(){return Sr},set:function(Jr){isNaN(Jr)||(Sr=Jr)}}),Object.defineProperty(this,"margin",{get:function(){return Pt.margin},set:function(Jr){var Pn;"number"==typeof Jr?Pn=[Jr,Jr,Jr,Jr]:((Pn=new Array(4))[0]=Jr[0],Pn[1]=Jr.length>=2?Jr[1]:Pn[0],Pn[2]=Jr.length>=3?Jr[2]:Pn[0],Pn[3]=Jr.length>=4?Jr[3]:Pn[1]),Pt.margin=Pn}});var Br=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Br},set:function(Jr){Br=Jr}});var Lr=0;Object.defineProperty(this,"lastBreak",{get:function(){return Lr},set:function(Jr){Lr=Jr}});var za=[];Object.defineProperty(this,"pageBreaks",{get:function(){return za},set:function(Jr){za=Jr}}),Object.defineProperty(this,"ctx",{get:function(){return Pt},set:function(Jr){Jr instanceof Zt&&(Pt=Jr)}}),Object.defineProperty(this,"path",{get:function(){return Pt.path},set:function(Jr){Pt.path=Jr}});var _a=[];Object.defineProperty(this,"ctxStack",{get:function(){return _a},set:function(Jr){_a=Jr}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Jr){var Pn;Pn=Jt(Jr),this.ctx.fillStyle=Pn.style,this.ctx.isFillTransparent=0===Pn.a,this.ctx.fillOpacity=Pn.a,this.pdf.setFillColor(Pn.r,Pn.g,Pn.b,{a:Pn.a}),this.pdf.setTextColor(Pn.r,Pn.g,Pn.b,{a:Pn.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Jr){var Pn=Jt(Jr);this.ctx.strokeStyle=Pn.style,this.ctx.isStrokeTransparent=0===Pn.a,this.ctx.strokeOpacity=Pn.a,0===Pn.a?this.pdf.setDrawColor(255,255,255):this.pdf.setDrawColor(Pn.r,Pn.g,Pn.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Jr){-1!==["butt","round","square"].indexOf(Jr)&&(this.ctx.lineCap=Jr,this.pdf.setLineCap(Jr))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Jr){isNaN(Jr)||(this.ctx.lineWidth=Jr,this.pdf.setLineWidth(Jr))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Jr){-1!==["bevel","round","miter"].indexOf(Jr)&&(this.ctx.lineJoin=Jr,this.pdf.setLineJoin(Jr))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Jr){isNaN(Jr)||(this.ctx.miterLimit=Jr,this.pdf.setMiterLimit(Jr))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Jr){this.ctx.textBaseline=Jr}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Jr){-1!==["right","end","center","left","start"].indexOf(Jr)&&(this.ctx.textAlign=Jr)}});var Xa=null,as=null;Object.defineProperty(this,"fontFaces",{get:function(){return as},set:function(Jr){Xa=null,as=Jr}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Jr){var Pn;if(this.ctx.font=Jr,null!==(Pn=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Jr))){var cs=Pn[1],So=Pn[3],Ea=Pn[4],ka=Pn[6],Ka=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ea)[2];Ea=Math.floor("px"===Ka?parseFloat(Ea)*this.pdf.internal.scaleFactor:"em"===Ka?parseFloat(Ea)*this.pdf.getFontSize():parseFloat(Ea)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ea);var qa=function(ls){var bs,ro,wc=[],il=ls.trim();if(""===il)return ds;if(il in Ct)return[Ct[il]];for(;""!==il;){switch(ro=null,bs=(il=pi(il)).charAt(0)){case'"':case"'":ro=zi(il.substring(1),bs);break;default:ro=In(il)}if(null===ro||(wc.push(ro[0]),""!==(il=pi(ro[1]))&&","!==il.charAt(0)))return ds;il=il.replace(/^,/,"")}return wc}(ka);if(this.fontFaces){var Po=function St(Se,ue,B){for(var te=(B=B||{}).defaultFontFamily||"times",Ce=Object.assign({},nt,B.genericFontFamilies||{}),De=null,Le=null,je=0;je<ue.length;++je)if(Ce[(De=Sa(ue[je])).family]&&(De.family=Ce[De.family]),Se.hasOwnProperty(De.family)){Le=Se[De.family];break}if(!(Le=Le||Se[te]))throw new Error("Could not find a font-family for the rule '"+at(De)+"' and default family '"+te+"'.");if(Le=function(it,Pt){if(Pt[it])return Pt[it];var Zt=Kf[it],Jt=Xf(Pt,mh,Zt,Zt<=Kf.normal?-1:1);if(!Jt)throw new Error("Could not find a matching font-stretch value for "+it);return Jt}(De.stretch,Le),Le=function(it,Pt){if(Pt[it])return Pt[it];for(var Zt=Cc[it],fi=0;fi<Zt.length;++fi)if(Pt[Zt[fi]])return Pt[Zt[fi]];throw new Error("Could not find a matching font-style for "+it)}(De.style,Le),!(Le=function(it,Pt){if(Pt[it])return Pt[it];if(400===it&&Pt[500])return Pt[500];if(500===it&&Pt[400])return Pt[400];var fi=Xf(Pt,Kp,Xp[it],it<400?-1:1);if(!fi)throw new Error("Could not find a matching font-weight for value "+it);return fi}(De.weight,Le)))throw new Error("Failed to resolve a font for the rule '"+at(De)+"'.");return Le}(function Oa(Jr,Pn){if(null===Xa){var cs=(So=Jr.getFontList(),Ea=[],Object.keys(So).forEach(function(ka){So[ka].forEach(function(Ka){var qa=null;switch(Ka){case"bold":qa={family:ka,weight:"bold"};break;case"italic":qa={family:ka,style:"italic"};break;case"bolditalic":qa={family:ka,weight:"bold",style:"italic"};break;case"":case"normal":qa={family:ka}}null!==qa&&(qa.ref={name:ka,style:Ka},Ea.push(qa))})}),Ea);Xa=function(So){for(var Ea={},ka=0;ka<So.length;++ka){var Ka=Sa(So[ka]),qa=Ka.family,Po=Ka.stretch,Jo=Ka.style,Ds=Ka.weight;Ea[qa]=Ea[qa]||{},Ea[qa][Po]=Ea[qa][Po]||{},Ea[qa][Po][Jo]=Ea[qa][Po][Jo]||{},Ea[qa][Po][Jo][Ds]=Ka}return Ea}(cs.concat(Pn))}var So,Ea;return Xa}(this.pdf,this.fontFaces),qa.map(function(ls){return{family:ls,stretch:"normal",weight:So,style:cs}}));this.pdf.setFont(Po.ref.name,Po.ref.style)}else{var Jo="";("bold"===So||parseInt(So,10)>=700||"bold"===cs)&&(Jo="bold"),"italic"===cs&&(Jo+="italic"),0===Jo.length&&(Jo="normal");for(var Ds="",Us={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Cl=0;Cl<qa.length;Cl++){if(void 0!==this.pdf.internal.getFont(qa[Cl],Jo,{noFallback:!0,disableWarning:!0})){Ds=qa[Cl];break}if("bolditalic"===Jo&&void 0!==this.pdf.internal.getFont(qa[Cl],"bold",{noFallback:!0,disableWarning:!0}))Ds=qa[Cl],Jo="bold";else if(void 0!==this.pdf.internal.getFont(qa[Cl],"normal",{noFallback:!0,disableWarning:!0})){Ds=qa[Cl],Jo="normal";break}}if(""===Ds)for(var gl=0;gl<qa.length;gl++)if(Us[qa[gl]]){Ds=Us[qa[gl]];break}this.pdf.setFont(Ds=""===Ds?"Times":Ds,Jo)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Jr){this.ctx.globalCompositeOperation=Jr}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Jr){this.ctx.globalAlpha=Jr}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Jr){this.ctx.lineDashOffset=Jr,Ja.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Jr){this.ctx.lineDash=Jr,Ja.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Jr){this.ctx.ignoreClearRect=!!Jr}})};fi.prototype.setLineDash=function(Vi){this.lineDash=Vi},fi.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},fi.prototype.fill=function(){Fn.call(this,"fill",!1)},fi.prototype.stroke=function(){Fn.call(this,"stroke",!1)},fi.prototype.beginPath=function(){this.path=[{type:"begin"}]},fi.prototype.moveTo=function(Vi,Cn){if(isNaN(Vi)||isNaN(Cn))throw $s.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Ln=this.ctx.transform.applyToPoint(new Le(Vi,Cn));this.path.push({type:"mt",x:Ln.x,y:Ln.y}),this.ctx.lastPoint=new Le(Vi,Cn)},fi.prototype.closePath=function(){var Vi=new Le(0,0),Cn=0;for(Cn=this.path.length-1;-1!==Cn;Cn--)if("begin"===this.path[Cn].type&&"object"===(0,mo.A)(this.path[Cn+1])&&"number"==typeof this.path[Cn+1].x){Vi=new Le(this.path[Cn+1].x,this.path[Cn+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new Le(Vi.x,Vi.y)},fi.prototype.lineTo=function(Vi,Cn){if(isNaN(Vi)||isNaN(Cn))throw $s.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Ln=this.ctx.transform.applyToPoint(new Le(Vi,Cn));this.path.push({type:"lt",x:Ln.x,y:Ln.y}),this.ctx.lastPoint=new Le(Ln.x,Ln.y)},fi.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Fn.call(this,null,!0)},fi.prototype.quadraticCurveTo=function(Vi,Cn,Ln,Jn){if(isNaN(Ln)||isNaN(Jn)||isNaN(Vi)||isNaN(Cn))throw $s.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var lr=this.ctx.transform.applyToPoint(new Le(Ln,Jn)),Sr=this.ctx.transform.applyToPoint(new Le(Vi,Cn));this.path.push({type:"qct",x1:Sr.x,y1:Sr.y,x:lr.x,y:lr.y}),this.ctx.lastPoint=new Le(lr.x,lr.y)},fi.prototype.bezierCurveTo=function(Vi,Cn,Ln,Jn,lr,Sr){if(isNaN(lr)||isNaN(Sr)||isNaN(Vi)||isNaN(Cn)||isNaN(Ln)||isNaN(Jn))throw $s.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Br=this.ctx.transform.applyToPoint(new Le(lr,Sr)),Lr=this.ctx.transform.applyToPoint(new Le(Vi,Cn)),za=this.ctx.transform.applyToPoint(new Le(Ln,Jn));this.path.push({type:"bct",x1:Lr.x,y1:Lr.y,x2:za.x,y2:za.y,x:Br.x,y:Br.y}),this.ctx.lastPoint=new Le(Br.x,Br.y)},fi.prototype.arc=function(Vi,Cn,Ln,Jn,lr,Sr){if(isNaN(Vi)||isNaN(Cn)||isNaN(Ln)||isNaN(Jn)||isNaN(lr))throw $s.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Sr=!!Sr,!this.ctx.transform.isIdentity){var Br=this.ctx.transform.applyToPoint(new Le(Vi,Cn));Vi=Br.x,Cn=Br.y;var Lr=this.ctx.transform.applyToPoint(new Le(0,Ln)),za=this.ctx.transform.applyToPoint(new Le(0,0));Ln=Math.sqrt(Math.pow(Lr.x-za.x,2)+Math.pow(Lr.y-za.y,2))}Math.abs(lr-Jn)>=2*Math.PI&&(Jn=0,lr=2*Math.PI),this.path.push({type:"arc",x:Vi,y:Cn,radius:Ln,startAngle:Jn,endAngle:lr,counterclockwise:Sr})},fi.prototype.arcTo=function(Vi,Cn,Ln,Jn,lr){throw new Error("arcTo not implemented.")},fi.prototype.rect=function(Vi,Cn,Ln,Jn){if(isNaN(Vi)||isNaN(Cn)||isNaN(Ln)||isNaN(Jn))throw $s.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Vi,Cn),this.lineTo(Vi+Ln,Cn),this.lineTo(Vi+Ln,Cn+Jn),this.lineTo(Vi,Cn+Jn),this.lineTo(Vi,Cn),this.lineTo(Vi+Ln,Cn),this.lineTo(Vi,Cn)},fi.prototype.fillRect=function(Vi,Cn,Ln,Jn){if(isNaN(Vi)||isNaN(Cn)||isNaN(Ln)||isNaN(Jn))throw $s.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Rt.call(this)){var lr={};"butt"!==this.lineCap&&(lr.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(lr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Vi,Cn,Ln,Jn),this.fill(),lr.hasOwnProperty("lineCap")&&(this.lineCap=lr.lineCap),lr.hasOwnProperty("lineJoin")&&(this.lineJoin=lr.lineJoin)}},fi.prototype.strokeRect=function(Vi,Cn,Ln,Jn){if(isNaN(Vi)||isNaN(Cn)||isNaN(Ln)||isNaN(Jn))throw $s.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");sn.call(this)||(this.beginPath(),this.rect(Vi,Cn,Ln,Jn),this.stroke())},fi.prototype.clearRect=function(Vi,Cn,Ln,Jn){if(isNaN(Vi)||isNaN(Cn)||isNaN(Ln)||isNaN(Jn))throw $s.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Vi,Cn,Ln,Jn))},fi.prototype.save=function(Vi){Vi="boolean"!=typeof Vi||Vi;for(var Cn=this.pdf.internal.getCurrentPageInfo().pageNumber,Ln=0;Ln<this.pdf.internal.getNumberOfPages();Ln++)this.pdf.setPage(Ln+1),this.pdf.internal.out("q");if(this.pdf.setPage(Cn),Vi){this.ctx.fontSize=this.pdf.internal.getFontSize();var Jn=new Zt(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Jn}},fi.prototype.restore=function(Vi){Vi="boolean"!=typeof Vi||Vi;for(var Cn=this.pdf.internal.getCurrentPageInfo().pageNumber,Ln=0;Ln<this.pdf.internal.getNumberOfPages();Ln++)this.pdf.setPage(Ln+1),this.pdf.internal.out("Q");this.pdf.setPage(Cn),Vi&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},fi.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Jt=function(Vi){var Cn,Ln,Jn,lr;if(!0===Vi.isCanvasGradient&&(Vi=Vi.getColor()),!Vi)return{r:0,g:0,b:0,a:0,style:Vi};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Vi))Cn=0,Ln=0,Jn=0,lr=0;else{var Sr=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Vi);if(null!==Sr)Cn=parseInt(Sr[1]),Ln=parseInt(Sr[2]),Jn=parseInt(Sr[3]),lr=1;else if(null!==(Sr=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Vi)))Cn=parseInt(Sr[1]),Ln=parseInt(Sr[2]),Jn=parseInt(Sr[3]),lr=parseFloat(Sr[4]);else{if(lr=1,"string"==typeof Vi&&"#"!==Vi.charAt(0)){var Br=new ir(Vi);Vi=Br.ok?Br.toHex():"#000000"}4===Vi.length?(Cn=Vi.substring(1,2),Cn+=Cn,Ln=Vi.substring(2,3),Ln+=Ln,Jn=Vi.substring(3,4),Jn+=Jn):(Cn=Vi.substring(1,3),Ln=Vi.substring(3,5),Jn=Vi.substring(5,7)),Cn=parseInt(Cn,16),Ln=parseInt(Ln,16),Jn=parseInt(Jn,16)}}return{r:Cn,g:Ln,b:Jn,a:lr,style:Vi}},Rt=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},sn=function(){return!(!this.ctx.isStrokeTransparent&&0!=this.globalAlpha)};fi.prototype.fillText=function(Vi,Cn,Ln,Jn){if(isNaN(Cn)||isNaN(Ln)||"string"!=typeof Vi)throw $s.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Jn=isNaN(Jn)?void 0:Jn,!Rt.call(this)){var lr=wr(this.ctx.transform.rotation);hn.call(this,{text:Vi,x:Cn,y:Ln,scale:this.ctx.transform.scaleX,angle:lr,align:this.textAlign,maxWidth:Jn})}},fi.prototype.strokeText=function(Vi,Cn,Ln,Jn){if(isNaN(Cn)||isNaN(Ln)||"string"!=typeof Vi)throw $s.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!sn.call(this)){Jn=isNaN(Jn)?void 0:Jn;var lr=wr(this.ctx.transform.rotation);hn.call(this,{text:Vi,x:Cn,y:Ln,scale:this.ctx.transform.scaleX,renderingMode:"stroke",angle:lr,align:this.textAlign,maxWidth:Jn})}},fi.prototype.measureText=function(Vi){if("string"!=typeof Vi)throw $s.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Cn=this.pdf,Ln=this.pdf.internal.scaleFactor,Jn=Cn.internal.getFontSize(),lr=Cn.getStringUnitWidth(Vi)*Jn/Cn.internal.scaleFactor;return new function(Br){var Lr=(Br=Br||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Lr}}),this}({width:lr*=Math.round(96*Ln/72*1e4)/1e4})},fi.prototype.scale=function(Vi,Cn){if(isNaN(Vi)||isNaN(Cn))throw $s.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Ln=new it(Vi,0,0,Cn,0,0);this.ctx.transform=this.ctx.transform.multiply(Ln)},fi.prototype.rotate=function(Vi){if(isNaN(Vi))throw $s.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Cn=new it(Math.cos(Vi),Math.sin(Vi),-Math.sin(Vi),Math.cos(Vi),0,0);this.ctx.transform=this.ctx.transform.multiply(Cn)},fi.prototype.translate=function(Vi,Cn){if(isNaN(Vi)||isNaN(Cn))throw $s.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Ln=new it(1,0,0,1,Vi,Cn);this.ctx.transform=this.ctx.transform.multiply(Ln)},fi.prototype.transform=function(Vi,Cn,Ln,Jn,lr,Sr){if(isNaN(Vi)||isNaN(Cn)||isNaN(Ln)||isNaN(Jn)||isNaN(lr)||isNaN(Sr))throw $s.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Br=new it(Vi,Cn,Ln,Jn,lr,Sr);this.ctx.transform=this.ctx.transform.multiply(Br)},fi.prototype.setTransform=function(Vi,Cn,Ln,Jn,lr,Sr){Vi=isNaN(Vi)?1:Vi,Cn=isNaN(Cn)?0:Cn,Ln=isNaN(Ln)?0:Ln,Jn=isNaN(Jn)?1:Jn,lr=isNaN(lr)?0:lr,Sr=isNaN(Sr)?0:Sr,this.ctx.transform=new it(Vi,Cn,Ln,Jn,lr,Sr)};var nn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};fi.prototype.drawImage=function(Vi,Cn,Ln,Jn,lr,Sr,Br,Lr,za){var _a=this.pdf.getImageProperties(Vi),Xa=1,Oa=1,as=1,Jr=1;void 0!==Jn&&void 0!==Lr&&(as=Lr/Jn,Jr=za/lr,Xa=_a.width/Jn*Lr/Jn,Oa=_a.height/lr*za/lr),void 0===Sr&&(Sr=Cn,Br=Ln,Cn=0,Ln=0),void 0!==Jn&&void 0===Lr&&(Lr=Jn,za=lr),void 0===Jn&&void 0===Lr&&(Lr=_a.width,za=_a.height);for(var Pn,cs=this.ctx.transform.decompose(),So=wr(cs.rotate.shx),Ea=new it,ka=(Ea=(Ea=(Ea=Ea.multiply(cs.translate)).multiply(cs.skew)).multiply(cs.scale)).applyToRectangle(new je(Sr-Cn*as,Br-Ln*Jr,Jn*Xa,lr*Oa)),Ka=fn.call(this,ka),qa=[],Po=0;Po<Ka.length;Po+=1)-1===qa.indexOf(Ka[Po])&&qa.push(Ka[Po]);if(kn(qa),this.autoPaging)for(var Jo=qa[0],Ds=qa[qa.length-1],Us=Jo;Us<Ds+1;Us++){this.pdf.setPage(Us);var Cl=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],gl=1===Us?this.posY+this.margin[0]:this.margin[0],bs=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ro=1===Us?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(Us-2)*bs;if(0!==this.ctx.clip_path.length){var wc=this.path;Pn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=vn(Pn,this.posX+this.margin[3],-ro+gl+this.ctx.prevPageLastElemOffset),ur.call(this,"fill",!0),this.path=wc}var il=JSON.parse(JSON.stringify(ka));il=vn([il],this.posX+this.margin[3],-ro+gl+this.ctx.prevPageLastElemOffset)[0];var xu=(Us>Jo||Us<Ds)&&nn.call(this);xu&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Cl,bs,null).clip().discardPath()),this.pdf.addImage(Vi,"JPEG",il.x,il.y,il.w,il.h,null,null,So),xu&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Vi,"JPEG",ka.x,ka.y,ka.w,ka.h,null,null,So)};var fn=function(Vi,Cn,Ln){var Jn=[];Cn=Cn||this.pdf.internal.pageSize.width,Ln=Ln||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var lr=this.posY+this.ctx.prevPageLastElemOffset;switch(Vi.type){default:case"mt":case"lt":Jn.push(Math.floor((Vi.y+lr)/Ln)+1);break;case"arc":Jn.push(Math.floor((Vi.y+lr-Vi.radius)/Ln)+1),Jn.push(Math.floor((Vi.y+lr+Vi.radius)/Ln)+1);break;case"qct":var Sr=Kr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Vi.x1,Vi.y1,Vi.x,Vi.y);Jn.push(Math.floor((Sr.y+lr)/Ln)+1),Jn.push(Math.floor((Sr.y+Sr.h+lr)/Ln)+1);break;case"bct":var Br=Xr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Vi.x1,Vi.y1,Vi.x2,Vi.y2,Vi.x,Vi.y);Jn.push(Math.floor((Br.y+lr)/Ln)+1),Jn.push(Math.floor((Br.y+Br.h+lr)/Ln)+1);break;case"rect":Jn.push(Math.floor((Vi.y+lr)/Ln)+1),Jn.push(Math.floor((Vi.y+Vi.h+lr)/Ln)+1)}for(var Lr=0;Lr<Jn.length;Lr+=1)for(;this.pdf.internal.getNumberOfPages()<Jn[Lr];)$i.call(this);return Jn},$i=function(){var Vi=this.fillStyle,Cn=this.strokeStyle,Ln=this.font,Jn=this.lineCap,lr=this.lineWidth,Sr=this.lineJoin;this.pdf.addPage(),this.fillStyle=Vi,this.strokeStyle=Cn,this.font=Ln,this.lineCap=Jn,this.lineWidth=lr,this.lineJoin=Sr},vn=function(Vi,Cn,Ln){for(var Jn=0;Jn<Vi.length;Jn++)switch(Vi[Jn].type){case"bct":Vi[Jn].x2+=Cn,Vi[Jn].y2+=Ln;case"qct":Vi[Jn].x1+=Cn,Vi[Jn].y1+=Ln;default:Vi[Jn].x+=Cn,Vi[Jn].y+=Ln}return Vi},kn=function(Vi){return Vi.sort(function(Cn,Ln){return Cn-Ln})},Fn=function(Vi,Cn){for(var Ln,Jn,lr=this.fillStyle,Sr=this.strokeStyle,Br=this.lineCap,Lr=this.lineWidth,za=Math.abs(Lr*this.ctx.transform.scaleX),_a=this.lineJoin,Xa=JSON.parse(JSON.stringify(this.path)),Oa=JSON.parse(JSON.stringify(this.path)),as=[],Jr=0;Jr<Oa.length;Jr++)if(void 0!==Oa[Jr].x)for(var Pn=fn.call(this,Oa[Jr]),cs=0;cs<Pn.length;cs+=1)-1===as.indexOf(Pn[cs])&&as.push(Pn[cs]);for(var So=0;So<as.length;So++)for(;this.pdf.internal.getNumberOfPages()<as[So];)$i.call(this);if(kn(as),this.autoPaging)for(var Ea=as[0],ka=as[as.length-1],Ka=Ea;Ka<ka+1;Ka++){this.pdf.setPage(Ka),this.fillStyle=lr,this.strokeStyle=Sr,this.lineCap=Br,this.lineWidth=za,this.lineJoin=_a;var qa=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Po=1===Ka?this.posY+this.margin[0]:this.margin[0],Ds=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Us=1===Ka?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(Ka-2)*Ds;if(0!==this.ctx.clip_path.length){var Cl=this.path;Ln=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=vn(Ln,this.posX+this.margin[3],-Us+Po+this.ctx.prevPageLastElemOffset),ur.call(this,Vi,!0),this.path=Cl}if(Jn=JSON.parse(JSON.stringify(Xa)),this.path=vn(Jn,this.posX+this.margin[3],-Us+Po+this.ctx.prevPageLastElemOffset),!1===Cn||0===Ka){var gl=(Ka>Ea||Ka<ka)&&nn.call(this);gl&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],qa,Ds,null).clip().discardPath()),ur.call(this,Vi,Cn),gl&&this.pdf.restoreGraphicsState()}this.lineWidth=Lr}else this.lineWidth=za,ur.call(this,Vi,Cn),this.lineWidth=Lr;this.path=Xa},ur=function(Vi,Cn){if(("stroke"!==Vi||Cn||!sn.call(this))&&("stroke"===Vi||Cn||!Rt.call(this))){for(var Ln,Jn,lr=[],Sr=this.path,Br=0;Br<Sr.length;Br++){var Lr=Sr[Br];switch(Lr.type){case"begin":lr.push({begin:!0});break;case"close":lr.push({close:!0});break;case"mt":lr.push({start:Lr,deltas:[],abs:[]});break;case"lt":var za=lr.length;if(Sr[Br-1]&&!isNaN(Sr[Br-1].x)&&(Ln=[Lr.x-Sr[Br-1].x,Lr.y-Sr[Br-1].y],za>0))for(;za>=0;za--)if(!0!==lr[za-1].close&&!0!==lr[za-1].begin){lr[za-1].deltas.push(Ln),lr[za-1].abs.push(Lr);break}break;case"bct":lr[lr.length-1].deltas.push(Ln=[Lr.x1-Sr[Br-1].x,Lr.y1-Sr[Br-1].y,Lr.x2-Sr[Br-1].x,Lr.y2-Sr[Br-1].y,Lr.x-Sr[Br-1].x,Lr.y-Sr[Br-1].y]);break;case"qct":lr[lr.length-1].deltas.push(Ln=[Sr[Br-1].x+2/3*(Lr.x1-Sr[Br-1].x)-Sr[Br-1].x,Sr[Br-1].y+2/3*(Lr.y1-Sr[Br-1].y)-Sr[Br-1].y,Lr.x+2/3*(Lr.x1-Lr.x)-Sr[Br-1].x,Lr.y+2/3*(Lr.y1-Lr.y)-Sr[Br-1].y,Lr.x-Sr[Br-1].x,Lr.y-Sr[Br-1].y]);break;case"arc":lr.push({deltas:[],abs:[],arc:!0}),Array.isArray(lr[lr.length-1].abs)&&lr[lr.length-1].abs.push(Lr)}}Jn=Cn?null:"stroke"===Vi?"stroke":"fill";for(var cs=!1,So=0;So<lr.length;So++)if(lr[So].arc)for(var Ea=lr[So].abs,ka=0;ka<Ea.length;ka++){var Ka=Ea[ka];"arc"===Ka.type?Rn.call(this,Ka.x,Ka.y,Ka.radius,Ka.startAngle,Ka.endAngle,Ka.counterclockwise,void 0,Cn,!cs):Hn.call(this,Ka.x,Ka.y),cs=!0}else!0===lr[So].close?(this.pdf.internal.out("h"),cs=!1):!0!==lr[So].begin&&(Vn.call(this,lr[So].deltas,lr[So].start.x,lr[So].start.y),cs=!0);Jn&&Nr.call(this,Jn),Cn&&kr.call(this)}},Vr=function(Vi){var Cn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Ln=Cn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Vi-Ln;case"top":return Vi+Cn-Ln;case"hanging":return Vi+Cn-2*Ln;case"middle":return Vi+Cn/2-Ln;default:return Vi}},sr=function(Vi){return Vi+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};fi.prototype.createLinearGradient=function(){var Vi=function(){};return Vi.colorStops=[],Vi.addColorStop=function(Cn,Ln){this.colorStops.push([Cn,Ln])},Vi.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},Vi.isCanvasGradient=!0,Vi},fi.prototype.createPattern=function(){return this.createLinearGradient()},fi.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Rn=function(Vi,Cn,Ln,Jn,lr,Sr,Br,Lr,za){for(var _a=br.call(this,Ln,Jn,lr,Sr),Xa=0;Xa<_a.length;Xa++){var Oa=_a[Xa];0===Xa&&(za?mn.call(this,Oa.x1+Vi,Oa.y1+Cn):Hn.call(this,Oa.x1+Vi,Oa.y1+Cn)),Rr.call(this,Vi,Cn,Oa.x2,Oa.y2,Oa.x3,Oa.y3,Oa.x4,Oa.y4)}Lr?kr.call(this):Nr.call(this,Br)},Nr=function(Vi){switch(Vi){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},kr=function(){this.pdf.clip(),this.pdf.discardPath()},mn=function(Vi,Cn){this.pdf.internal.out(B(Vi)+" "+te(Cn)+" m")},hn=function(Vi){var Cn;switch(Vi.align){case"right":case"end":Cn="right";break;case"center":Cn="center";break;default:Cn="left"}var Ln=this.pdf.getTextDimensions(Vi.text),Jn=Vr.call(this,Vi.y),lr=sr.call(this,Jn)-Ln.h,Sr=this.ctx.transform.applyToPoint(new Le(Vi.x,Jn)),Br=this.ctx.transform.decompose(),Lr=new it;Lr=(Lr=(Lr=Lr.multiply(Br.translate)).multiply(Br.skew)).multiply(Br.scale);for(var za,_a,Xa,Oa=this.ctx.transform.applyToRectangle(new je(Vi.x,Jn,Ln.w,Ln.h)),as=Lr.applyToRectangle(new je(Vi.x,lr,Ln.w,Ln.h)),Jr=fn.call(this,as),Pn=[],cs=0;cs<Jr.length;cs+=1)-1===Pn.indexOf(Jr[cs])&&Pn.push(Jr[cs]);if(kn(Pn),this.autoPaging)for(var So=Pn[0],Ea=Pn[Pn.length-1],ka=So;ka<Ea+1;ka++){this.pdf.setPage(ka);var Ka=1===ka?this.posY+this.margin[0]:this.margin[0],Po=this.pdf.internal.pageSize.height-this.margin[2],Jo=Po-this.margin[0],Ds=this.pdf.internal.pageSize.width-this.margin[1],Us=Ds-this.margin[3],Cl=1===ka?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(ka-2)*Jo;if(0!==this.ctx.clip_path.length){var gl=this.path;za=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=vn(za,this.posX+this.margin[3],-1*Cl+Ka),ur.call(this,"fill",!0),this.path=gl}var ls=vn([JSON.parse(JSON.stringify(as))],this.posX+this.margin[3],-Cl+Ka+this.ctx.prevPageLastElemOffset)[0];Vi.scale>=.01&&(_a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(_a*Vi.scale),this.lineWidth=(Xa=this.lineWidth)*Vi.scale);var bs="text"!==this.autoPaging;if(bs||ls.y+ls.h<=Po){if(bs||ls.y>=Ka&&ls.x<=Ds){var ro=bs?Vi.text:this.pdf.splitTextToSize(Vi.text,Vi.maxWidth||Ds-ls.x)[0],wc=vn([JSON.parse(JSON.stringify(Oa))],this.posX+this.margin[3],-Cl+Ka+this.ctx.prevPageLastElemOffset)[0],il=bs&&(ka>So||ka<Ea)&&nn.call(this);il&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Us,Jo,null).clip().discardPath()),this.pdf.text(ro,wc.x,wc.y,{angle:Vi.angle,align:Cn,renderingMode:Vi.renderingMode}),il&&this.pdf.restoreGraphicsState()}}else ls.y<Po&&(this.ctx.prevPageLastElemOffset+=Po-ls.y);Vi.scale>=.01&&(this.pdf.setFontSize(_a),this.lineWidth=Xa)}else Vi.scale>=.01&&(_a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(_a*Vi.scale),this.lineWidth=(Xa=this.lineWidth)*Vi.scale),this.pdf.text(Vi.text,Sr.x+this.posX,Sr.y+this.posY,{angle:Vi.angle,align:Cn,renderingMode:Vi.renderingMode,maxWidth:Vi.maxWidth}),Vi.scale>=.01&&(this.pdf.setFontSize(_a),this.lineWidth=Xa)},Hn=function(Vi,Cn,Ln,Jn){Jn=Jn||0,this.pdf.internal.out(B(Vi+(Ln=Ln||0))+" "+te(Cn+Jn)+" l")},Vn=function(Vi,Cn,Ln){return this.pdf.lines(Vi,Cn,Ln,null,null)},Rr=function(Vi,Cn,Ln,Jn,lr,Sr,Br,Lr){this.pdf.internal.out([ue(Ce(Ln+Vi)),ue(De(Jn+Cn)),ue(Ce(lr+Vi)),ue(De(Sr+Cn)),ue(Ce(Br+Vi)),ue(De(Lr+Cn)),"c"].join(" "))},br=function(Vi,Cn,Ln,Jn){for(var lr=2*Math.PI,Sr=Math.PI/2;Cn>Ln;)Cn-=lr;var Br=Math.abs(Ln-Cn);Br<lr&&Jn&&(Br=lr-Br);for(var Lr=[],za=Jn?-1:1,_a=Cn;Br>1e-5;){var Xa=_a+za*Math.min(Br,Sr);Lr.push(jr.call(this,Vi,_a,Xa)),Br-=Math.abs(Xa-_a),_a=Xa}return Lr},jr=function(Vi,Cn,Ln){var Jn=(Ln-Cn)/2,lr=Vi*Math.cos(Jn),Sr=Vi*Math.sin(Jn),Br=lr,Lr=-Sr,za=Br*Br+Lr*Lr,_a=za+Br*lr+Lr*Sr,Xa=4/3*(Math.sqrt(2*za*_a)-_a)/(Br*Sr-Lr*lr),Oa=Br-Xa*Lr,as=Lr+Xa*Br,Jr=Oa,Pn=-as,cs=Jn+Cn,So=Math.cos(cs),Ea=Math.sin(cs);return{x1:Vi*Math.cos(Cn),y1:Vi*Math.sin(Cn),x2:Oa*So-as*Ea,y2:Oa*Ea+as*So,x3:Jr*So-Pn*Ea,y3:Jr*Ea+Pn*So,x4:Vi*Math.cos(Ln),y4:Vi*Math.sin(Ln)}},wr=function(Vi){return 180*Vi/Math.PI},Kr=function(Vi,Cn,Ln,Jn,lr,Sr){var Br=Vi+.5*(Ln-Vi),Lr=Cn+.5*(Jn-Cn),za=lr+.5*(Ln-lr),_a=Sr+.5*(Jn-Sr),Xa=Math.min(Vi,lr,Br,za),Oa=Math.max(Vi,lr,Br,za),as=Math.min(Cn,Sr,Lr,_a),Jr=Math.max(Cn,Sr,Lr,_a);return new je(Xa,as,Oa-Xa,Jr-as)},Xr=function(Vi,Cn,Ln,Jn,lr,Sr,Br,Lr){var za,_a,Xa,Oa,as,Jr,Pn,cs,So,Ea,ka,Ka,qa,Po,Jo=Ln-Vi,Ds=Jn-Cn,Us=lr-Ln,Cl=Sr-Jn,gl=Br-lr,ls=Lr-Sr;for(_a=0;_a<41;_a++)So=(Pn=(Xa=Vi+(za=_a/40)*Jo)+za*((as=Ln+za*Us)-Xa))+za*(as+za*(lr+za*gl-as)-Pn),Ea=(cs=(Oa=Cn+za*Ds)+za*((Jr=Jn+za*Cl)-Oa))+za*(Jr+za*(Sr+za*ls-Jr)-cs),0==_a?(ka=So,Ka=Ea,qa=So,Po=Ea):(ka=Math.min(ka,So),Ka=Math.min(Ka,Ea),qa=Math.max(qa,So),Po=Math.max(Po,Ea));return new je(Math.round(ka),Math.round(Ka),Math.round(qa-ka),Math.round(Po-Ka))},Ja=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Ln=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==Ln&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ln)}}})(wa.API),
|
|
/**
|
|
* @license
|
|
* jsPDF filters PlugIn
|
|
* Copyright (c) 2014 Aras Abbasi
|
|
*
|
|
* Licensed under the MIT License.
|
|
* http://opensource.org/licenses/mit-license
|
|
*/
|
|
function(Se){var ue=function(De){var Le,je,it,Pt,Zt,fi,Jt,Rt,sn,nn;for(/[^\x00-\xFF]/.test(De),je=[],it=0,Pt=(De+=Le="\0\0\0\0".slice(De.length%4||4)).length;Pt>it;it+=4)0!==(Zt=(De.charCodeAt(it)<<24)+(De.charCodeAt(it+1)<<16)+(De.charCodeAt(it+2)<<8)+De.charCodeAt(it+3))?(fi=(Zt=((Zt=((Zt=((Zt=(Zt-(nn=Zt%85))/85)-(sn=Zt%85))/85)-(Rt=Zt%85))/85)-(Jt=Zt%85))/85)%85,je.push(fi+33,Jt+33,Rt+33,sn+33,nn+33)):je.push(122);return function(fn,$i){for(var vn=$i;vn>0;vn--)fn.pop()}(je,Le.length),String.fromCharCode.apply(String,je)+"~>"},B=function(De){var Le,je,it,Pt,Zt,fi=String,Jt="length",sn="charCodeAt",nn="slice",fn="replace";for(De[nn](-2),De=De[nn](0,-2)[fn](/\s/g,"")[fn]("z","!!!!!"),it=[],Pt=0,Zt=(De+=Le="uuuuu"[nn](De[Jt]%5||5))[Jt];Zt>Pt;Pt+=5)je=52200625*(De[sn](Pt)-33)+614125*(De[sn](Pt+1)-33)+7225*(De[sn](Pt+2)-33)+85*(De[sn](Pt+3)-33)+(De[sn](Pt+4)-33),it.push(255&je>>24,255&je>>16,255&je>>8,255&je);return function($i,vn){for(var kn=vn;kn>0;kn--)$i.pop()}(it,Le[Jt]),fi.fromCharCode.apply(fi,it)},te=function(De){var Le=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(De=De.replace(/\s/g,"")).indexOf(">")&&(De=De.substr(0,De.indexOf(">"))),De.length%2&&(De+="0"),!1===Le.test(De))return"";for(var je="",it=0;it<De.length;it+=2)je+=String.fromCharCode("0x"+(De[it]+De[it+1]));return je},Ce=function(De){for(var Le=new Uint8Array(De.length),je=De.length;je--;)Le[je]=De.charCodeAt(je);return(Le=ml(Le)).reduce(function(it,Pt){return it+String.fromCharCode(Pt)},"")};Se.processDataByFilters=function(De,Le){var je=0,it=De||"",Pt=[];for("string"==typeof(Le=Le||[])&&(Le=[Le]),je=0;je<Le.length;je+=1)switch(Le[je]){case"ASCII85Decode":case"/ASCII85Decode":it=B(it),Pt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":it=ue(it),Pt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":it=te(it),Pt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":it=it.split("").map(function(Zt){return("0"+Zt.charCodeAt().toString(16)).slice(-2)}).join("")+">",Pt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":it=Ce(it),Pt.push("/FlateDecode");break;default:throw new Error('The filter: "'+Le[je]+'" is not implemented')}return{data:it,reverseChain:Pt.reverse().join(" ")}}}(wa.API),
|
|
/**
|
|
* @license
|
|
* jsPDF fileloading PlugIn
|
|
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
|
|
*
|
|
* Licensed under the MIT License.
|
|
* http://opensource.org/licenses/mit-license
|
|
*/
|
|
function(Se){Se.loadFile=function(ue,B,te){return function(Ce,De,Le){De=!1!==De,Le="function"==typeof Le?Le:function(){};var je=void 0;try{je=function(it,Pt,Zt){var fi=new XMLHttpRequest,Jt=0,Rt=function(sn){var nn=sn.length,fn=[],$i=String.fromCharCode;for(Jt=0;Jt<nn;Jt+=1)fn.push($i(255&sn.charCodeAt(Jt)));return fn.join("")};if(fi.open("GET",it,!Pt),fi.overrideMimeType("text/plain; charset=x-user-defined"),!1===Pt&&(fi.onload=function(){Zt(200===fi.status?Rt(this.responseText):void 0)}),fi.send(null),Pt&&200===fi.status)return Rt(fi.responseText)}(Ce,De,Le)}catch{}return je}(ue,B,te)},Se.loadImageFile=Se.loadFile}(wa.API),function(Se){function ue(){return(wo.html2canvas?Promise.resolve(wo.html2canvas):D.e(239).then(D.t.bind(D,7239,23))).catch(function(Le){return Promise.reject(new Error("Could not load html2canvas: "+Le))}).then(function(Le){return Le.default?Le.default:Le})}function B(){return(wo.DOMPurify?Promise.resolve(wo.DOMPurify):D.e(973).then(D.t.bind(D,91973,23))).catch(function(Le){return Promise.reject(new Error("Could not load dompurify: "+Le))}).then(function(Le){return Le.default?Le.default:Le})}var te=function(Le){var je=(0,mo.A)(Le);return"undefined"===je?"undefined":"string"===je||Le instanceof String?"string":"number"===je||Le instanceof Number?"number":"function"===je||Le instanceof Function?"function":Le&&Le.constructor===Array?"array":Le&&1===Le.nodeType?"element":"object"===je?"object":"unknown"},Ce=function(Le,je){var it=document.createElement(Le);for(var Pt in je.className&&(it.className=je.className),je.innerHTML&&je.dompurify&&(it.innerHTML=je.dompurify.sanitize(je.innerHTML)),je.style)it.style[Pt]=je.style[Pt];return it},De=function Le(je){var it=Object.assign(Le.convert(Promise.resolve()),JSON.parse(JSON.stringify(Le.template))),Pt=Le.convert(Promise.resolve(),it);return(Pt=Pt.setProgress(1,Le,1,[Le])).set(je)};(De.prototype=Object.create(Promise.prototype)).constructor=De,De.convert=function(Le,je){return Le.__proto__=je||De.prototype,Le},De.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},De.prototype.from=function(Le,je){return this.then(function(){switch(je=je||function(it){switch(te(it)){case"string":return"string";case"element":return"canvas"===it.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(Le)){case"string":return this.then(B).then(function(it){return this.set({src:Ce("div",{innerHTML:Le,dompurify:it})})});case"element":return this.set({src:Le});case"canvas":return this.set({canvas:Le});case"img":return this.set({img:Le});default:return this.error("Unknown source type.")}})},De.prototype.to=function(Le){switch(Le){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},De.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var Le={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},je=function it(Pt,Zt){for(var fi=3===Pt.nodeType?document.createTextNode(Pt.nodeValue):Pt.cloneNode(!1),Jt=Pt.firstChild;Jt;Jt=Jt.nextSibling)!0!==Zt&&1===Jt.nodeType&&"SCRIPT"===Jt.nodeName||fi.appendChild(it(Jt,Zt));return 1===Pt.nodeType&&("CANVAS"===Pt.nodeName?(fi.width=Pt.width,fi.height=Pt.height,fi.getContext("2d").drawImage(Pt,0,0)):"TEXTAREA"!==Pt.nodeName&&"SELECT"!==Pt.nodeName||(fi.value=Pt.value),fi.addEventListener("load",function(){fi.scrollTop=Pt.scrollTop,fi.scrollLeft=Pt.scrollLeft},!0)),fi}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===je.tagName&&(Le.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Ce("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Ce("div",{className:"html2pdf__container",style:Le}),this.prop.container.appendChild(je),this.prop.container.firstChild.appendChild(Ce("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},De.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(ue).then(function(je){var it=Object.assign({},this.opt.html2canvas);return delete it.onrendered,je(this.prop.container,it)}).then(function(je){(this.opt.html2canvas.onrendered||function(){})(je),this.prop.canvas=je,document.body.removeChild(this.prop.overlay)})},De.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(ue).then(function(je){var it=this.opt.jsPDF,Pt=this.opt.fontFaces,Zt="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,fi=Object.assign({async:!0,allowTaint:!0,scale:Zt,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete fi.onrendered,it.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,it.context2d.posX=this.opt.x,it.context2d.posY=this.opt.y,it.context2d.margin=this.opt.margin,it.context2d.fontFaces=Pt,Pt)for(var Jt=0;Jt<Pt.length;++Jt){var Rt=Pt[Jt],sn=Rt.src.find(function(nn){return"truetype"===nn.format});sn&&it.addFont(sn.url,Rt.ref.name,Rt.ref.style)}return fi.windowHeight=fi.windowHeight||0,fi.windowHeight=0==fi.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):fi.windowHeight,it.context2d.save(!0),je(this.prop.container,fi)}).then(function(je){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(je),this.prop.canvas=je,document.body.removeChild(this.prop.overlay)})},De.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Le=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Le})},De.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},De.prototype.output=function(Le,je,it){return"img"===(it=it||"pdf").toLowerCase()||"image"===it.toLowerCase()?this.outputImg(Le,je):this.outputPdf(Le,je)},De.prototype.outputPdf=function(Le,je){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Le,je)})},De.prototype.outputImg=function(Le){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(Le){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Le+'" is not supported.'}})},De.prototype.save=function(Le){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Le?{filename:Le}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},De.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},De.prototype.set=function(Le){if("object"!==te(Le))return this;var je=Object.keys(Le||{}).map(function(it){if(it in De.template.prop)return function(){this.prop[it]=Le[it]};switch(it){case"margin":return this.setMargin.bind(this,Le.margin);case"jsPDF":return function(){return this.opt.jsPDF=Le.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Le.pageSize);default:return function(){this.opt[it]=Le[it]}}},this);return this.then(function(){return this.thenList(je)})},De.prototype.get=function(Le,je){return this.then(function(){var it=Le in De.template.prop?this.prop[Le]:this.opt[Le];return je?je(it):it})},De.prototype.setMargin=function(Le){return this.then(function(){switch(te(Le)){case"number":Le=[Le,Le,Le,Le];case"array":if(2===Le.length&&(Le=[Le[0],Le[1],Le[0],Le[1]]),4===Le.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=Le}).then(this.setPageSize)},De.prototype.setPageSize=function(Le){function je(it,Pt){return Math.floor(it*Pt/72*96)}return this.then(function(){(Le=Le||wa.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Le.inner={width:Le.width-this.opt.margin[1]-this.opt.margin[3],height:Le.height-this.opt.margin[0]-this.opt.margin[2]},Le.inner.px={width:je(Le.inner.width,Le.k),height:je(Le.inner.height,Le.k)},Le.inner.ratio=Le.inner.height/Le.inner.width),this.prop.pageSize=Le})},De.prototype.setProgress=function(Le,je,it,Pt){return null!=Le&&(this.progress.val=Le),null!=je&&(this.progress.state=je),null!=it&&(this.progress.n=it),null!=Pt&&(this.progress.stack=Pt),this.progress.ratio=this.progress.val/this.progress.state,this},De.prototype.updateProgress=function(Le,je,it,Pt){return this.setProgress(Le?this.progress.val+Le:null,je||null,it?this.progress.n+it:null,Pt?this.progress.stack.concat(Pt):null)},De.prototype.then=function(Le,je){var it=this;return this.thenCore(Le,je,function(Pt,Zt){return it.updateProgress(null,null,1,[Pt]),Promise.prototype.then.call(this,function(fi){return it.updateProgress(null,Pt),fi}).then(Pt,Zt).then(function(fi){return it.updateProgress(1),fi})})},De.prototype.thenCore=function(Le,je,it){it=it||Promise.prototype.then,Le&&(Le=Le.bind(this)),je&&(je=je.bind(this));var Pt=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:De.convert(Object.assign({},this),Promise.prototype),Zt=it.call(Pt,Le,je);return De.convert(Zt,this.__proto__)},De.prototype.thenExternal=function(Le,je){return Promise.prototype.then.call(this,Le,je)},De.prototype.thenList=function(Le){var je=this;return Le.forEach(function(it){je=je.thenCore(it)}),je},De.prototype.catch=function(Le){Le&&(Le=Le.bind(this));var je=Promise.prototype.catch.call(this,Le);return De.convert(je,this)},De.prototype.catchExternal=function(Le){return Promise.prototype.catch.call(this,Le)},De.prototype.error=function(Le){return this.then(function(){throw new Error(Le)})},De.prototype.using=De.prototype.set,De.prototype.saveAs=De.prototype.save,De.prototype.export=De.prototype.output,De.prototype.run=De.prototype.then,wa.getPageSize=function(Le,je,it){if("object"===(0,mo.A)(Le)){var Pt=Le;Le=Pt.orientation,je=Pt.unit||je,it=Pt.format||it}je=je||"mm",it=it||"a4",Le=(""+(Le||"P")).toLowerCase();var Zt,fi=(""+it).toLowerCase(),Jt={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(je){case"pt":Zt=1;break;case"mm":Zt=72/25.4;break;case"cm":Zt=72/2.54;break;case"in":Zt=72;break;case"px":Zt=.75;break;case"pc":case"em":Zt=12;break;case"ex":Zt=6;break;default:throw"Invalid unit: "+je}var Rt,sn=0,nn=0;if(Jt.hasOwnProperty(fi))sn=Jt[fi][1]/Zt,nn=Jt[fi][0]/Zt;else try{sn=it[1],nn=it[0]}catch{throw new Error("Invalid format: "+it)}if("p"===Le||"portrait"===Le)Le="p",nn>sn&&(Rt=nn,nn=sn,sn=Rt);else{if("l"!==Le&&"landscape"!==Le)throw"Invalid orientation: "+Le;Le="l",sn>nn&&(Rt=nn,nn=sn,sn=Rt)}return{width:nn,height:sn,unit:je,k:Zt,orientation:Le}},Se.html=function(Le,je){(je=je||{}).callback=je.callback||function(){},je.html2canvas=je.html2canvas||{},je.html2canvas.canvas=je.html2canvas.canvas||this.canvas,je.jsPDF=je.jsPDF||this,je.fontFaces=je.fontFaces?je.fontFaces.map(Sa):null;var it=new De(je);return je.worker?it:it.from(Le).doCallback()}}(wa.API),wa.API.addJS=function(Se){return Za=Se,this.internal.events.subscribe("postPutResources",function(){qn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(qn+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),pr=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Za+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==qn&&void 0!==pr&&this.internal.out("/Names <</JavaScript "+qn+" 0 R>>")}),this},
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
|
*
|
|
* Licensed under the MIT License.
|
|
* http://opensource.org/licenses/mit-license
|
|
*/
|
|
function(Se){var ue;Se.events.push(["postPutResources",function(){var B=this,te=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Ce=B.outline.render().split(/\r\n/),De=0;De<Ce.length;De++){var Le=Ce[De],je=te.exec(Le);null!=je&&B.internal.newObjectDeferredBegin(je[1],!1),B.internal.write(Le)}if(this.outline.createNamedDestinations){var Pt=this.internal.pages.length,Zt=[];for(De=0;De<Pt;De++){var fi=B.internal.newObject();Zt.push(fi);var Jt=B.internal.getPageInfo(De+1);B.internal.write("<< /D["+Jt.objId+" 0 R /XYZ null null null]>> endobj")}var Rt=B.internal.newObject();for(B.internal.write("<< /Names [ "),De=0;De<Zt.length;De++)B.internal.write("(page_"+(De+1)+")"+Zt[De]+" 0 R");B.internal.write(" ] >>","endobj"),ue=B.internal.newObject(),B.internal.write("<< /Dests "+Rt+" 0 R"),B.internal.write(">>","endobj")}}]),Se.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+ue+" 0 R"))}]),Se.events.push(["initialized",function(){var B=this;B.outline={createNamedDestinations:!1,root:{children:[]}},B.outline.add=function(te,Ce,De){var Le={title:Ce,options:De,children:[]};return null==te&&(te=this.root),te.children.push(Le),Le},B.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=B,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},B.outline.genIds_r=function(te){te.id=B.internal.newObjectDeferred();for(var Ce=0;Ce<te.children.length;Ce++)this.genIds_r(te.children[Ce])},B.outline.renderRoot=function(te){this.objStart(te),this.line("/Type /Outlines"),te.children.length>0&&(this.line("/First "+this.makeRef(te.children[0])),this.line("/Last "+this.makeRef(te.children[te.children.length-1]))),this.line("/Count "+this.count_r({count:0},te)),this.objEnd()},B.outline.renderItems=function(te){for(var Ce=this.ctx.pdf.internal.getVerticalCoordinateString,De=0;De<te.children.length;De++){var Le=te.children[De];this.objStart(Le),this.line("/Title "+this.makeString(Le.title)),this.line("/Parent "+this.makeRef(te)),De>0&&this.line("/Prev "+this.makeRef(te.children[De-1])),De<te.children.length-1&&this.line("/Next "+this.makeRef(te.children[De+1])),Le.children.length>0&&(this.line("/First "+this.makeRef(Le.children[0])),this.line("/Last "+this.makeRef(Le.children[Le.children.length-1])));var je=this.count=this.count_r({count:0},Le);if(je>0&&this.line("/Count "+je),Le.options&&Le.options.pageNumber){var it=B.internal.getPageInfo(Le.options.pageNumber);this.line("/Dest ["+it.objId+" 0 R /XYZ 0 "+Ce(0)+" 0]")}this.objEnd()}for(var Pt=0;Pt<te.children.length;Pt++)this.renderItems(te.children[Pt])},B.outline.line=function(te){this.ctx.val+=te+"\r\n"},B.outline.makeRef=function(te){return te.id+" 0 R"},B.outline.makeString=function(te){return"("+B.internal.pdfEscape(te)+")"},B.outline.objStart=function(te){this.ctx.val+="\r\n"+te.id+" 0 obj\r\n<<\r\n"},B.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},B.outline.count_r=function(te,Ce){for(var De=0;De<Ce.children.length;De++)te.count++,this.count_r(te,Ce.children[De]);return te.count}}])}(wa.API),
|
|
/**
|
|
* @license
|
|
*
|
|
* Licensed under the MIT License.
|
|
* http://opensource.org/licenses/mit-license
|
|
*/
|
|
function(Se){var ue=[192,193,194,195,196,197,198,199];Se.processJPEG=function(B,te,Ce,De,Le,je){var it,Pt=this.decode.DCT_DECODE,Zt=null;if("string"==typeof B||this.__addimage__.isArrayBuffer(B)||this.__addimage__.isArrayBufferView(B)){switch(B=this.__addimage__.isArrayBuffer(B=Le||B)?new Uint8Array(B):B,(it=function(fi){for(var Jt,Rt=256*fi.charCodeAt(4)+fi.charCodeAt(5),sn=fi.length,nn={width:0,height:0,numcomponents:1},fn=4;fn<sn;fn+=2){if(-1!==ue.indexOf(fi.charCodeAt((fn+=Rt)+1))){Jt=256*fi.charCodeAt(fn+5)+fi.charCodeAt(fn+6),nn={width:256*fi.charCodeAt(fn+7)+fi.charCodeAt(fn+8),height:Jt,numcomponents:fi.charCodeAt(fn+9)};break}Rt=256*fi.charCodeAt(fn+2)+fi.charCodeAt(fn+3)}return nn}(B=this.__addimage__.isArrayBufferView(B)?this.__addimage__.arrayBufferToBinaryString(B):B)).numcomponents){case 1:je=this.color_spaces.DEVICE_GRAY;break;case 4:je=this.color_spaces.DEVICE_CMYK;break;case 3:je=this.color_spaces.DEVICE_RGB}Zt={data:B,width:it.width,height:it.height,colorSpace:je,bitsPerComponent:8,filter:Pt,index:te,alias:Ce}}return Zt}}(wa.API);var La,pd,bu,th,gh,dp=function(){var Se,ue,B;function te(De){var Le,it,Pt,Zt,fi,Jt,Rt,sn,nn,fn,$i,vn,kn;for(this.data=De,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},fi=null;;){switch(Le=this.readUInt32(),sn=function(){var Fn,ur;for(ur=[],Fn=0;Fn<4;++Fn)ur.push(String.fromCharCode(this.data[this.pos++]));return ur}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(Le);break;case"fcTL":fi&&this.animation.frames.push(fi),this.pos+=4,fi={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Zt=this.readUInt16(),Pt=this.readUInt16()||100,fi.delay=1e3*Zt/Pt,fi.disposeOp=this.data[this.pos++],fi.blendOp=this.data[this.pos++],fi.data=[];break;case"IDAT":case"fdAT":for("fdAT"===sn&&(this.pos+=4,Le-=4),De=fi?.data||this.imgData,$i=0;0<=Le?$i<Le:$i>Le;0<=Le?++$i:--$i)De.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(it=this.palette.length/3,this.transparency.indexed=this.read(Le),this.transparency.indexed.length>it)throw new Error("More transparent colors than palette size");if((nn=it-this.transparency.indexed.length)>0)for(vn=0;0<=nn?vn<nn:vn>nn;0<=nn?++vn:--vn)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(Le)[0];break;case 2:this.transparency.rgb=this.read(Le)}break;case"tEXt":Jt=(fn=this.read(Le)).indexOf(0),Rt=String.fromCharCode.apply(String,fn.slice(0,Jt)),this.text[Rt]=String.fromCharCode.apply(String,fn.slice(Jt+1));break;case"IEND":return fi&&this.animation.frames.push(fi),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(kn=this.colorType)||6===kn,this.pixelBitlength=this.bits*(this.colors+(this.hasAlphaChannel?1:0)),this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=Le}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}te.prototype.read=function(De){var Le,je;for(je=[],Le=0;0<=De?Le<De:Le>De;0<=De?++Le:--Le)je.push(this.data[this.pos++]);return je},te.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},te.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},te.prototype.decodePixels=function(De){var Le=this.pixelBitlength/8,je=new Uint8Array(this.width*this.height*Le),it=0,Pt=this;if(null==De&&(De=this.imgData),0===De.length)return new Uint8Array(0);function Zt(fi,Jt,Rt,sn){var nn,fn,$i,vn,kn,Fn,ur,Vr,Rn,Nr,kr,mn,hn,Hn,Vn,Rr,br,jr,wr,Kr,Xr=Math.ceil((Pt.width-fi)/Rt),Ja=Math.ceil((Pt.height-Jt)/sn),Vi=Pt.width==Xr&&Pt.height==Ja;for(hn=Le*Xr,kr=Vi?je:new Uint8Array(hn*Ja),Fn=De.length,mn=0,fn=0;mn<Ja&&it<Fn;){switch(De[it++]){case 0:for(vn=Rr=0;Rr<hn;vn=Rr+=1)kr[fn++]=De[it++];break;case 1:for(vn=br=0;br<hn;vn=br+=1)nn=De[it++],kn=vn<Le?0:kr[fn-Le],kr[fn++]=(nn+kn)%256;break;case 2:for(vn=jr=0;jr<hn;vn=jr+=1)nn=De[it++],$i=(vn-vn%Le)/Le,kr[fn++]=((Hn=mn&&kr[(mn-1)*hn+$i*Le+vn%Le])+nn)%256;break;case 3:for(vn=wr=0;wr<hn;vn=wr+=1)nn=De[it++],$i=(vn-vn%Le)/Le,kn=vn<Le?0:kr[fn-Le],Hn=mn&&kr[(mn-1)*hn+$i*Le+vn%Le],kr[fn++]=(nn+Math.floor((kn+Hn)/2))%256;break;case 4:for(vn=Kr=0;Kr<hn;vn=Kr+=1)nn=De[it++],$i=(vn-vn%Le)/Le,0===mn?Hn=Vn=0:(Hn=kr[(mn-1)*hn+$i*Le+vn%Le],Vn=$i&&kr[(mn-1)*hn+($i-1)*Le+vn%Le]),ur=(kn=vn<Le?0:kr[fn-Le])+Hn-Vn,Vr=Math.abs(ur-kn),Rn=Math.abs(ur-Hn),Nr=Math.abs(ur-Vn),kr[fn++]=(nn+(Vr<=Rn&&Vr<=Nr?kn:Rn<=Nr?Hn:Vn))%256;break;default:throw new Error("Invalid filter algorithm: "+De[it-1])}if(!Vi){var Cn=((Jt+mn*sn)*Pt.width+fi)*Le,Ln=mn*hn;for(vn=0;vn<Xr;vn+=1){for(var Jn=0;Jn<Le;Jn+=1)je[Cn++]=kr[Ln++];Cn+=(Rt-1)*Le}}mn++}}return De=id(De),1==Pt.interlaceMethod?(Zt(0,0,8,8),Zt(4,0,8,8),Zt(0,4,4,8),Zt(2,0,4,4),Zt(0,2,2,4),Zt(1,0,2,2),Zt(0,1,1,2)):Zt(0,0,1,1),je},te.prototype.decodePalette=function(){var De,Le,je,it,Pt,Zt,fi,Jt,Rt;for(je=this.palette,Zt=this.transparency.indexed||[],Pt=new Uint8Array((Zt.length||0)+je.length),it=0,De=0,Le=fi=0,Jt=je.length;fi<Jt;Le=fi+=3)Pt[it++]=je[Le],Pt[it++]=je[Le+1],Pt[it++]=je[Le+2],Pt[it++]=null!=(Rt=Zt[De++])?Rt:255;return Pt},te.prototype.copyToImageData=function(De,Le){var je,it,Pt,Zt,fi,Jt,Rt,sn,nn,fn,$i;if(it=this.colors,nn=null,je=this.hasAlphaChannel,this.palette.length&&(nn=null!=($i=this._decodedPalette)?$i:this._decodedPalette=this.decodePalette(),it=4,je=!0),sn=(Pt=De.data||De).length,fi=nn||Le,Zt=Jt=0,1===it)for(;Zt<sn;)Rt=nn?4*Le[Zt/4]:Jt,fn=fi[Rt++],Pt[Zt++]=fn,Pt[Zt++]=fn,Pt[Zt++]=fn,Pt[Zt++]=je?fi[Rt++]:255,Jt=Rt;else for(;Zt<sn;)Rt=nn?4*Le[Zt/4]:Jt,Pt[Zt++]=fi[Rt++],Pt[Zt++]=fi[Rt++],Pt[Zt++]=fi[Rt++],Pt[Zt++]=je?fi[Rt++]:255,Jt=Rt},te.prototype.decode=function(){var De;return De=new Uint8Array(this.width*this.height*4),this.copyToImageData(De,this.decodePixels()),De};var Ce=function(){if("[object Window]"===Object.prototype.toString.call(wo)){try{ue=wo.document.createElement("canvas"),B=ue.getContext("2d")}catch{return!1}return!0}return!1};return Ce(),Se=function(De){var Le;if(!0===Ce())return B.width=De.width,B.height=De.height,B.clearRect(0,0,De.width,De.height),B.putImageData(De,0,0),(Le=new Image).src=ue.toDataURL(),Le;throw new Error("This method requires a Browser with Canvas-capability.")},te.prototype.decodeFrames=function(De){var Le,je,it,Pt,Zt,fi,Jt,Rt;if(this.animation){for(Rt=[],je=Zt=0,fi=(Jt=this.animation.frames).length;Zt<fi;je=++Zt)it=De.createImageData((Le=Jt[je]).width,Le.height),Pt=this.decodePixels(new Uint8Array(Le.data)),this.copyToImageData(it,Pt),Le.imageData=it,Rt.push(Le.image=Se(it));return Rt}},te.prototype.renderFrame=function(De,Le){var je,it,Pt;return je=(it=this.animation.frames)[Le],Pt=it[Le-1],0===Le&&De.clearRect(0,0,this.width,this.height),1===Pt?.disposeOp?De.clearRect(Pt.xOffset,Pt.yOffset,Pt.width,Pt.height):2===Pt?.disposeOp&&De.putImageData(Pt.imageData,Pt.xOffset,Pt.yOffset),0===je.blendOp&&De.clearRect(je.xOffset,je.yOffset,je.width,je.height),De.drawImage(je.image,je.xOffset,je.yOffset)},te.prototype.animate=function(De){var Le,je,it,Pt,Zt,fi,Jt=this;return je=0,Pt=(fi=this.animation).numFrames,it=fi.frames,Zt=fi.numPlays,(Le=function(){var Rt,sn;if(Rt=je++%Pt,sn=it[Rt],Jt.renderFrame(De,Rt),Pt>1&&je/Pt<Zt)return Jt.animation._timeout=setTimeout(Le,sn.delay)})()},te.prototype.stopAnimation=function(){var De;return clearTimeout(null!=(De=this.animation)?De._timeout:void 0)},te.prototype.render=function(De){var Le,je;return De._png&&De._png.stopAnimation(),De._png=this,De.width=this.width,De.height=this.height,Le=De.getContext("2d"),this.animation?(this.decodeFrames(Le),this.animate(Le)):(je=Le.createImageData(this.width,this.height),this.copyToImageData(je,this.decodePixels()),Le.putImageData(je,0,0))},te}();function _h(Se){var ue=0;if(71!==Se[ue++]||73!==Se[ue++]||70!==Se[ue++]||56!==Se[ue++]||56!=(Se[ue++]+1&253)||97!==Se[ue++])throw new Error("Invalid GIF 87a/89a header.");var B=Se[ue++]|Se[ue++]<<8,te=Se[ue++]|Se[ue++]<<8,Ce=Se[ue++],Le=1<<1+(7&Ce);ue++,ue++;var je=null,it=null;Ce>>7&&(je=ue,it=Le,ue+=3*Le);var Pt=!0,Zt=[],fi=0,Jt=null,Rt=0,sn=null;for(this.width=B,this.height=te;Pt&&ue<Se.length;)switch(Se[ue++]){case 33:switch(Se[ue++]){case 255:if(11!==Se[ue]||78==Se[ue+1]&&69==Se[ue+2]&&84==Se[ue+3]&&83==Se[ue+4]&&67==Se[ue+5]&&65==Se[ue+6]&&80==Se[ue+7]&&69==Se[ue+8]&&50==Se[ue+9]&&46==Se[ue+10]&&48==Se[ue+11]&&3==Se[ue+12]&&1==Se[ue+13]&&0==Se[ue+16])ue+=14,sn=Se[ue++]|Se[ue++]<<8,ue++;else for(ue+=12;;){if(!((mn=Se[ue++])>=0))throw Error("Invalid block size");if(0===mn)break;ue+=mn}break;case 249:if(4!==Se[ue++]||0!==Se[ue+4])throw new Error("Invalid graphics extension block.");var nn=Se[ue++];fi=Se[ue++]|Se[ue++]<<8,Jt=Se[ue++],!(1&nn)&&(Jt=null),Rt=nn>>2&7,ue++;break;case 254:for(;;){if(!((mn=Se[ue++])>=0))throw Error("Invalid block size");if(0===mn)break;ue+=mn}break;default:throw new Error("Unknown graphic control label: 0x"+Se[ue-1].toString(16))}break;case 44:var fn=Se[ue++]|Se[ue++]<<8,$i=Se[ue++]|Se[ue++]<<8,vn=Se[ue++]|Se[ue++]<<8,kn=Se[ue++]|Se[ue++]<<8,Fn=Se[ue++],ur=Fn>>6&1,Vr=1<<1+(7&Fn),sr=je,Rn=it,Nr=!1;Fn>>7&&(Nr=!0,sr=ue,Rn=Vr,ue+=3*Vr);var kr=ue;for(ue++;;){var mn;if(!((mn=Se[ue++])>=0))throw Error("Invalid block size");if(0===mn)break;ue+=mn}Zt.push({x:fn,y:$i,width:vn,height:kn,has_local_palette:Nr,palette_offset:sr,palette_size:Rn,data_offset:kr,data_length:ue-kr,transparent_index:Jt,interlaced:!!ur,delay:fi,disposal:Rt});break;case 59:Pt=!1;break;default:throw new Error("Unknown gif block: 0x"+Se[ue-1].toString(16))}this.numFrames=function(){return Zt.length},this.loopCount=function(){return sn},this.frameInfo=function(hn){if(hn<0||hn>=Zt.length)throw new Error("Frame index out of range.");return Zt[hn]},this.decodeAndBlitFrameBGRA=function(hn,Hn){var Vn=this.frameInfo(hn),Rr=Vn.width*Vn.height,br=new Uint8Array(Rr);gm(Se,Vn.data_offset,br,Rr);var jr=Vn.palette_offset,wr=Vn.transparent_index;null===wr&&(wr=256);var Kr=Vn.width,Xr=B-Kr,Ja=Kr,Vi=4*(Vn.y*B+Vn.x),Cn=4*((Vn.y+Vn.height)*B+Vn.x),Ln=Vi,Jn=4*Xr;!0===Vn.interlaced&&(Jn+=4*B*7);for(var lr=8,Sr=0,Br=br.length;Sr<Br;++Sr){var Lr=br[Sr];if(0===Ja&&(Ja=Kr,(Ln+=Jn)>=Cn&&(Jn=4*Xr+4*B*(lr-1),Ln=Vi+(Kr+Xr)*(lr<<1),lr>>=1)),Lr===wr)Ln+=4;else{var za=Se[jr+3*Lr],_a=Se[jr+3*Lr+1];Hn[Ln++]=Se[jr+3*Lr+2],Hn[Ln++]=_a,Hn[Ln++]=za,Hn[Ln++]=255}--Ja}},this.decodeAndBlitFrameRGBA=function(hn,Hn){var Vn=this.frameInfo(hn),Rr=Vn.width*Vn.height,br=new Uint8Array(Rr);gm(Se,Vn.data_offset,br,Rr);var jr=Vn.palette_offset,wr=Vn.transparent_index;null===wr&&(wr=256);var Kr=Vn.width,Xr=B-Kr,Ja=Kr,Vi=4*(Vn.y*B+Vn.x),Cn=4*((Vn.y+Vn.height)*B+Vn.x),Ln=Vi,Jn=4*Xr;!0===Vn.interlaced&&(Jn+=4*B*7);for(var lr=8,Sr=0,Br=br.length;Sr<Br;++Sr){var Lr=br[Sr];if(0===Ja&&(Ja=Kr,(Ln+=Jn)>=Cn&&(Jn=4*Xr+4*B*(lr-1),Ln=Vi+(Kr+Xr)*(lr<<1),lr>>=1)),Lr===wr)Ln+=4;else{var _a=Se[jr+3*Lr+1],Xa=Se[jr+3*Lr+2];Hn[Ln++]=Se[jr+3*Lr],Hn[Ln++]=_a,Hn[Ln++]=Xa,Hn[Ln++]=255}--Ja}}}function gm(Se,ue,B,te){for(var Ce=Se[ue++],De=1<<Ce,Le=De+1,je=Le+1,it=Ce+1,Pt=(1<<it)-1,Zt=0,fi=0,Jt=0,Rt=Se[ue++],sn=new Int32Array(4096),nn=null;;){for(;Zt<16&&0!==Rt;)fi|=Se[ue++]<<Zt,Zt+=8,1===Rt?Rt=Se[ue++]:--Rt;if(Zt<it)break;var fn=fi&Pt;if(fi>>=it,Zt-=it,fn!==De){if(fn===Le)break;for(var $i=fn<je?fn:nn,vn=0,kn=$i;kn>De;)kn=sn[kn]>>8,++vn;var Fn=kn;if(Jt+vn+($i!==fn?1:0)>te)return void $s.log("Warning, gif stream longer than expected.");B[Jt++]=Fn;var ur=Jt+=vn;for($i!==fn&&(B[Jt++]=Fn),kn=$i;vn--;)B[--ur]=255&(kn=sn[kn]),kn>>=8;null!==nn&&je<4096&&(sn[je++]=nn<<8|Fn,je>=Pt+1&&it<12&&(++it,Pt=Pt<<1|1)),nn=fn}else je=Le+1,Pt=(1<<(it=Ce+1))-1,nn=null}return Jt!==te&&$s.log("Warning, gif stream shorter than expected."),B}function Jp(Se){var ue,B,te,Ce,De,Le=Math.floor,je=new Array(64),it=new Array(64),Pt=new Array(64),Zt=new Array(64),fi=new Array(65535),Jt=new Array(65535),Rt=new Array(64),sn=new Array(64),nn=[],fn=0,$i=7,vn=new Array(64),kn=new Array(64),Fn=new Array(64),ur=new Array(256),Vr=new Array(2048),sr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Rn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Nr=[0,1,2,3,4,5,6,7,8,9,10,11],kr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],mn=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],hn=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Hn=[0,1,2,3,4,5,6,7,8,9,10,11],Vn=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Rr=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function br(Vi,Cn){for(var Ln=0,Jn=0,lr=new Array,Sr=1;Sr<=16;Sr++){for(var Br=1;Br<=Vi[Sr];Br++)lr[Cn[Jn]]=[],lr[Cn[Jn]][0]=Ln,lr[Cn[Jn]][1]=Sr,Jn++,Ln++;Ln*=2}return lr}function jr(Vi){for(var Cn=Vi[0],Ln=Vi[1]-1;Ln>=0;)Cn&1<<Ln&&(fn|=1<<$i),Ln--,--$i<0&&(255==fn?(wr(255),wr(0)):wr(fn),$i=7,fn=0)}function wr(Vi){nn.push(Vi)}function Kr(Vi){wr(Vi>>8&255),wr(255&Vi)}function Xr(Vi,Cn,Ln,Jn,lr){for(var Sr,Br=lr[0],Lr=lr[240],za=function(Ea,ka){var Ka,qa,Po,Jo,Ds,Us,Cl,gl,ls,bs,ro=0;for(ls=0;ls<8;++ls){var wc=(Ka=Ea[ro])+(gl=Ea[ro+7]),il=Ka-gl,xu=(qa=Ea[ro+1])+(Cl=Ea[ro+6]),Rl=qa-Cl,fd=(Po=Ea[ro+2])+(Us=Ea[ro+5]),bh=Po-Us,nl=(Jo=Ea[ro+3])+(Ds=Ea[ro+4]),Sp=Jo-Ds,rd=wc+nl,nh=wc-nl,Lu=xu+fd,ll=xu-fd;Ea[ro]=rd+Lu,Ea[ro+4]=rd-Lu;var os=.707106781*(ll+nh);Ea[ro+2]=nh+os,Ea[ro+6]=nh-os;var co=.382683433*((rd=Sp+bh)-(ll=Rl+il)),ef=.5411961*rd+co,Sc=1.306562965*ll+co,Id=.707106781*(Lu=bh+Rl),ad=il+Id,Do=il-Id;Ea[ro+5]=Do+ef,Ea[ro+3]=Do-ef,Ea[ro+1]=ad+Sc,Ea[ro+7]=ad-Sc,ro+=8}for(ro=0,ls=0;ls<8;++ls){var wd=(Ka=Ea[ro])+(gl=Ea[ro+56]),kd=Ka-gl,Pc=(qa=Ea[ro+8])+(Cl=Ea[ro+48]),Sd=qa-Cl,Dd=(Po=Ea[ro+16])+(Us=Ea[ro+40]),ec=Po-Us,hp=(Jo=Ea[ro+24])+(Ds=Ea[ro+32]),Cu=Jo-Ds,Ed=wd+hp,md=wd-hp,uc=Pc+Dd,Dc=Pc-Dd;Ea[ro]=Ed+uc,Ea[ro+32]=Ed-uc;var od=.707106781*(Dc+md);Ea[ro+16]=md+od,Ea[ro+48]=md-od;var Gs=.382683433*((Ed=Cu+ec)-(Dc=Sd+kd)),Rd=.5411961*Ed+Gs,$h=1.306562965*Dc+Gs,Kh=.707106781*(uc=ec+Sd),Fu=kd+Kh,$l=kd-Kh;Ea[ro+40]=$l+Rd,Ea[ro+24]=$l-Rd,Ea[ro+8]=Fu+$h,Ea[ro+56]=Fu-$h,ro++}for(ls=0;ls<64;++ls)Rt[ls]=(bs=Ea[ls]*ka[ls])>0?bs+.5|0:bs-.5|0;return Rt}(Vi,Cn),_a=0;_a<64;++_a)sn[sr[_a]]=za[_a];var Xa=sn[0]-Ln;Ln=sn[0],0==Xa?jr(Jn[0]):(jr(Jn[Jt[Sr=32767+Xa]]),jr(fi[Sr]));for(var Oa=63;Oa>0&&0==sn[Oa];)Oa--;if(0==Oa)return jr(Br),Ln;for(var as,Jr=1;Jr<=Oa;){for(var Pn=Jr;0==sn[Jr]&&Jr<=Oa;)++Jr;var cs=Jr-Pn;if(cs>=16){as=cs>>4;for(var So=1;So<=as;++So)jr(Lr);cs&=15}jr(lr[(cs<<4)+Jt[Sr=32767+sn[Jr]]]),jr(fi[Sr]),Jr++}return 63!=Oa&&jr(Br),Ln}function Ja(Vi){Vi=Math.min(Math.max(Vi,1),100),De!=Vi&&(function(Cn){for(var Ln=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Jn=0;Jn<64;Jn++){var lr=Le((Ln[Jn]*Cn+50)/100);lr=Math.min(Math.max(lr,1),255),je[sr[Jn]]=lr}for(var Sr=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Br=0;Br<64;Br++){var Lr=Le((Sr[Br]*Cn+50)/100);Lr=Math.min(Math.max(Lr,1),255),it[sr[Br]]=Lr}for(var za=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],_a=0,Xa=0;Xa<8;Xa++)for(var Oa=0;Oa<8;Oa++)Pt[_a]=1/(je[sr[_a]]*za[Xa]*za[Oa]*8),Zt[_a]=1/(it[sr[_a]]*za[Xa]*za[Oa]*8),_a++}(Vi<50?Math.floor(5e3/Vi):Math.floor(200-2*Vi)),De=Vi)}this.encode=function(Vi,Cn){var qa,Po;Cn&&Ja(Cn),nn=new Array,fn=0,$i=7,Kr(65496),Kr(65504),Kr(16),wr(74),wr(70),wr(73),wr(70),wr(0),wr(1),wr(1),wr(0),Kr(1),Kr(1),wr(0),wr(0),function(){Kr(65499),Kr(132),wr(0);for(var qa=0;qa<64;qa++)wr(je[qa]);wr(1);for(var Po=0;Po<64;Po++)wr(it[Po])}(),qa=Vi.width,Po=Vi.height,Kr(65472),Kr(17),wr(8),Kr(Po),Kr(qa),wr(3),wr(1),wr(17),wr(0),wr(2),wr(17),wr(1),wr(3),wr(17),wr(1),function(){Kr(65476),Kr(418),wr(0);for(var qa=0;qa<16;qa++)wr(Rn[qa+1]);for(var Po=0;Po<=11;Po++)wr(Nr[Po]);wr(16);for(var Jo=0;Jo<16;Jo++)wr(kr[Jo+1]);for(var Ds=0;Ds<=161;Ds++)wr(mn[Ds]);wr(1);for(var Us=0;Us<16;Us++)wr(hn[Us+1]);for(var Cl=0;Cl<=11;Cl++)wr(Hn[Cl]);wr(17);for(var gl=0;gl<16;gl++)wr(Vn[gl+1]);for(var ls=0;ls<=161;ls++)wr(Rr[ls])}(),Kr(65498),Kr(12),wr(3),wr(1),wr(0),wr(2),wr(17),wr(3),wr(17),wr(0),wr(63),wr(0);var Ln=0,Jn=0,lr=0;fn=0,$i=7,this.encode.displayName="_encode_";for(var Sr,Br,Lr,za,_a,Xa,Oa,as,Jr,Pn=Vi.data,So=Vi.height,Ea=4*Vi.width,ka=0;ka<So;){for(Sr=0;Sr<Ea;){for(_a=Ea*ka+Sr,Oa=-1,as=0,Jr=0;Jr<64;Jr++)Xa=_a+(as=Jr>>3)*Ea+(Oa=4*(7&Jr)),ka+as>=So&&(Xa-=Ea*(ka+1+as-So)),Sr+Oa>=Ea&&(Xa-=Sr+Oa-Ea+4),Br=Pn[Xa++],Lr=Pn[Xa++],za=Pn[Xa++],vn[Jr]=(Vr[Br]+Vr[Lr+256|0]+Vr[za+512|0]>>16)-128,kn[Jr]=(Vr[Br+768|0]+Vr[Lr+1024|0]+Vr[za+1280|0]>>16)-128,Fn[Jr]=(Vr[Br+1280|0]+Vr[Lr+1536|0]+Vr[za+1792|0]>>16)-128;Ln=Xr(vn,Pt,Ln,ue,te),Jn=Xr(kn,Zt,Jn,B,Ce),lr=Xr(Fn,Zt,lr,B,Ce),Sr+=32}ka+=8}if($i>=0){var Ka=[];Ka[1]=$i+1,Ka[0]=(1<<$i+1)-1,jr(Ka)}return Kr(65497),new Uint8Array(nn)},Se=Se||50,function(){for(var Vi=String.fromCharCode,Cn=0;Cn<256;Cn++)ur[Cn]=Vi(Cn)}(),ue=br(Rn,Nr),B=br(hn,Hn),te=br(kr,mn),Ce=br(Vn,Rr),function(){for(var Vi=1,Cn=2,Ln=1;Ln<=15;Ln++){for(var Jn=Vi;Jn<Cn;Jn++)Jt[32767+Jn]=Ln,fi[32767+Jn]=[],fi[32767+Jn][1]=Ln,fi[32767+Jn][0]=Jn;for(var lr=-(Cn-1);lr<=-Vi;lr++)Jt[32767+lr]=Ln,fi[32767+lr]=[],fi[32767+lr][1]=Ln,fi[32767+lr][0]=Cn-1+lr;Vi<<=1,Cn<<=1}}(),function(){for(var Vi=0;Vi<256;Vi++)Vr[Vi]=19595*Vi,Vr[Vi+256|0]=38470*Vi,Vr[Vi+512|0]=7471*Vi+32768,Vr[Vi+768|0]=-11059*Vi,Vr[Vi+1024|0]=-21709*Vi,Vr[Vi+1280|0]=32768*Vi+8421375,Vr[Vi+1536|0]=-27439*Vi,Vr[Vi+1792|0]=-5329*Vi}(),Ja(Se)}function tu(Se,ue){if(this.pos=0,this.buffer=Se,this.datav=new DataView(Se.buffer),this.is_with_alpha=!!ue,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function du(Se){function ue(Rn){if(!Rn)throw Error("assert :P")}function B(Rn,Nr,kr){for(var mn=0;4>mn;mn++)if(Rn[Nr+mn]!=kr.charCodeAt(mn))return!0;return!1}function te(Rn,Nr,kr,mn,hn){for(var Hn=0;Hn<hn;Hn++)Rn[Nr+Hn]=kr[mn+Hn]}function Ce(Rn,Nr,kr,mn){for(var hn=0;hn<mn;hn++)Rn[Nr+hn]=kr}function De(Rn){return new Int32Array(Rn)}function Le(Rn,Nr){for(var kr=[],mn=0;mn<Rn;mn++)kr.push(new Nr);return kr}function je(Rn,Nr){var kr=[];return function mn(hn,Hn,Vn){for(var Rr=Vn[Hn],br=0;br<Rr&&(hn.push(Vn.length>Hn+1?[]:new Nr),!(Vn.length<Hn+1));br++)mn(hn[br],Hn+1,Vn)}(kr,0,Rn),kr}var it=function(){var Rn=this;function Nr(Pe,Ke){for(var xt=1<<Ke-1>>>0;Pe&xt;)xt>>>=1;return xt?(Pe&xt-1)+xt:Pe}function kr(Pe,Ke,xt,qt,Ai){ue(!(qt%xt));do{Pe[Ke+(qt-=xt)]=Ai}while(0<qt)}function mn(Pe,Ke,xt,qt,Ai){if(ue(2328>=Ai),512>=Ai)var Hi=De(512);else if(null==(Hi=De(Ai)))return 0;return function(Gi,Zi,dn,xn,er,Ar){var Er,hr,qr=Zi,Wr=1<<dn,Zn=De(16),nr=De(16);for(ue(0!=er),ue(null!=xn),ue(null!=Gi),ue(0<dn),hr=0;hr<er;++hr){if(15<xn[hr])return 0;++Zn[xn[hr]]}if(Zn[0]==er)return 0;for(nr[1]=0,Er=1;15>Er;++Er){if(Zn[Er]>1<<Er)return 0;nr[Er+1]=nr[Er]+Zn[Er]}for(hr=0;hr<er;++hr)Er=xn[hr],0<xn[hr]&&(Ar[nr[Er]++]=hr);if(1==nr[15])return(xn=new hn).g=0,xn.value=Ar[0],kr(Gi,qr,1,Wr,xn),Wr;var da,ya=-1,Qr=Wr-1,xo=0,to=1,Bo=1,ao=1<<dn;for(hr=0,Er=1,er=2;Er<=dn;++Er,er<<=1){if(to+=Bo<<=1,0>(Bo-=Zn[Er]))return 0;for(;0<Zn[Er];--Zn[Er])(xn=new hn).g=Er,xn.value=Ar[hr++],kr(Gi,qr+xo,er,ao,xn),xo=Nr(xo,Er)}for(Er=dn+1,er=2;15>=Er;++Er,er<<=1){if(to+=Bo<<=1,0>(Bo-=Zn[Er]))return 0;for(;0<Zn[Er];--Zn[Er]){if(xn=new hn,(xo&Qr)!=ya){for(qr+=ao,da=1<<(ya=Er)-dn;15>ya&&!(0>=(da-=Zn[ya]));)++ya,da<<=1;Wr+=ao=1<<(da=ya-dn),Gi[Zi+(ya=xo&Qr)].g=da+dn,Gi[Zi+ya].value=qr-Zi-ya}xn.g=Er-dn,xn.value=Ar[hr++],kr(Gi,qr+(xo>>dn),er,ao,xn),xo=Nr(xo,Er)}}return to!=2*nr[15]-1?0:Wr}(Pe,Ke,xt,qt,Ai,Hi)}function hn(){this.value=this.g=0}function Hn(){this.value=this.g=0}function Vn(){this.G=Le(5,hn),this.H=De(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=Le(uu,Hn)}function Rr(Pe,Ke,xt,qt){ue(null!=Pe),ue(null!=Ke),ue(2147483648>qt),Pe.Ca=254,Pe.I=0,Pe.b=-8,Pe.Ka=0,Pe.oa=Ke,Pe.pa=xt,Pe.Jd=Ke,Pe.Yc=xt+qt,Pe.Zc=4<=qt?xt+qt-4+1:xt,Sr(Pe)}function br(Pe,Ke){for(var xt=0;0<Ke--;)xt|=Lr(Pe,128)<<Ke;return xt}function jr(Pe,Ke){var xt=br(Pe,Ke);return Br(Pe)?-xt:xt}function wr(Pe,Ke,xt,qt){var Ai,Hi=0;for(ue(null!=Pe),ue(null!=Ke),ue(4294967288>qt),Pe.Sb=qt,Pe.Ra=0,Pe.u=0,Pe.h=0,4<qt&&(qt=4),Ai=0;Ai<qt;++Ai)Hi+=Ke[xt+Ai]<<8*Ai;Pe.Ra=Hi,Pe.bb=qt,Pe.oa=Ke,Pe.pa=xt}function Kr(Pe){for(;8<=Pe.u&&Pe.bb<Pe.Sb;)Pe.Ra>>>=8,Pe.Ra+=Pe.oa[Pe.pa+Pe.bb]<<wu-8>>>0,++Pe.bb,Pe.u-=8;Ln(Pe)&&(Pe.h=1,Pe.u=0)}function Xr(Pe,Ke){if(ue(0<=Ke),!Pe.h&&Ke<=rm){var xt=Cn(Pe)&Ap[Ke];return Pe.u+=Ke,Kr(Pe),xt}return Pe.h=1,Pe.u=0}function Ja(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Vi(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Cn(Pe){return Pe.Ra>>>(Pe.u&wu-1)>>>0}function Ln(Pe){return ue(Pe.bb<=Pe.Sb),Pe.h||Pe.bb==Pe.Sb&&Pe.u>wu}function Jn(Pe,Ke){Pe.u=Ke,Pe.h=Ln(Pe)}function lr(Pe){Pe.u>=oh&&(ue(Pe.u>=oh),Kr(Pe))}function Sr(Pe){ue(null!=Pe&&null!=Pe.oa),Pe.pa<Pe.Zc?(Pe.I=(Pe.oa[Pe.pa++]|Pe.I<<8)>>>0,Pe.b+=8):(ue(null!=Pe&&null!=Pe.oa),Pe.pa<Pe.Yc?(Pe.b+=8,Pe.I=Pe.oa[Pe.pa++]|Pe.I<<8):Pe.Ka?Pe.b=0:(Pe.I<<=8,Pe.b+=8,Pe.Ka=1))}function Br(Pe){return br(Pe,1)}function Lr(Pe,Ke){var xt=Pe.Ca;0>Pe.b&&Sr(Pe);var qt=Pe.b,Ai=xt*Ke>>>8,Hi=(Pe.I>>>qt>Ai)+0;for(Hi?(xt-=Ai,Pe.I-=Ai+1<<qt>>>0):xt=Ai+1,qt=xt,Ai=0;256<=qt;)Ai+=8,qt>>=8;return Pe.b-=qt=7^Ai+zl[qt],Pe.Ca=(xt<<qt)-1,Hi}function za(Pe,Ke,xt){Pe[Ke+0]=xt>>24&255,Pe[Ke+1]=xt>>16&255,Pe[Ke+2]=xt>>8&255,Pe[Ke+3]=255&xt}function _a(Pe,Ke){return Pe[Ke+0]|Pe[Ke+1]<<8}function Xa(Pe,Ke){return _a(Pe,Ke)|Pe[Ke+2]<<16}function Oa(Pe,Ke){return _a(Pe,Ke)|_a(Pe,Ke+2)<<16}function as(Pe,Ke){var xt=1<<Ke;return ue(null!=Pe),ue(0<Ke),Pe.X=De(xt),null==Pe.X?0:(Pe.Mb=32-Ke,Pe.Xa=Ke,1)}function Jr(Pe,Ke){ue(null!=Pe),ue(null!=Ke),ue(Pe.Xa==Ke.Xa),te(Ke.X,0,Pe.X,0,1<<Ke.Xa)}function Pn(){this.X=[],this.Xa=this.Mb=0}function cs(Pe,Ke,xt,qt){ue(null!=xt),ue(null!=qt);var Ai=xt[0],Hi=qt[0];return 0==Ai&&(Ai=(Pe*Hi+Ke/2)/Ke),0==Hi&&(Hi=(Ke*Ai+Pe/2)/Pe),0>=Ai||0>=Hi?0:(xt[0]=Ai,qt[0]=Hi,1)}function So(Pe,Ke){return Pe+(1<<Ke)-1>>>Ke}function Ea(Pe,Ke){return((4278255360&Pe)+(4278255360&Ke)>>>0&4278255360)+((16711935&Pe)+(16711935&Ke)>>>0&16711935)>>>0}function ka(Pe,Ke){Rn[Ke]=function(xt,qt,Ai,Hi,Gi,Zi,dn){var xn;for(xn=0;xn<Gi;++xn){var er=Rn[Pe](Zi[dn+xn-1],Ai,Hi+xn);Zi[dn+xn]=Ea(xt[qt+xn],er)}}}function Ka(){this.ud=this.hd=this.jd=0}function qa(Pe,Ke){return((4278124286&(Pe^Ke))>>>1)+(Pe&Ke)>>>0}function Po(Pe){return 0<=Pe&&256>Pe?Pe:0>Pe?0:255<Pe?255:void 0}function Jo(Pe,Ke){return Po(Pe+(Pe-Ke+.5>>1))}function Ds(Pe,Ke,xt){return Math.abs(Ke-xt)-Math.abs(Pe-xt)}function Us(Pe,Ke,xt,qt,Ai,Hi,Gi){for(qt=Hi[Gi-1],xt=0;xt<Ai;++xt)Hi[Gi+xt]=qt=Ea(Pe[Ke+xt],qt)}function Cl(Pe,Ke,xt,qt,Ai){var Hi;for(Hi=0;Hi<xt;++Hi){var Gi=Pe[Ke+Hi],Zi=Gi>>8&255,dn=16711935&(dn=(dn=16711935&Gi)+((Zi<<16)+Zi));qt[Ai+Hi]=(4278255360&Gi)+dn>>>0}}function gl(Pe,Ke){Ke.jd=255&Pe,Ke.hd=Pe>>8&255,Ke.ud=Pe>>16&255}function ls(Pe,Ke,xt,qt,Ai,Hi){var Gi;for(Gi=0;Gi<qt;++Gi){var Zi=Ke[xt+Gi],dn=Zi>>>8,xn=Zi,er=255&(er=(er=Zi>>>16)+((Pe.jd<<24>>24)*(dn<<24>>24)>>>5));xn=255&(xn=(xn+=(Pe.hd<<24>>24)*(dn<<24>>24)>>>5)+((Pe.ud<<24>>24)*(er<<24>>24)>>>5)),Ai[Hi+Gi]=(4278255360&Zi)+(er<<16)+xn}}function bs(Pe,Ke,xt,qt,Ai){Rn[Ke]=function(Hi,Gi,Zi,dn,xn,er,Ar,Er,hr){for(dn=Ar;dn<Er;++dn)for(Ar=0;Ar<hr;++Ar)xn[er++]=Ai(Zi[qt(Hi[Gi++])])},Rn[Pe]=function(Hi,Gi,Zi,dn,xn,er,Ar){var Er=8>>Hi.b,hr=Hi.Ea,qr=Hi.K[0],Wr=Hi.w;if(8>Er)for(Hi=(1<<Hi.b)-1,Wr=(1<<Er)-1;Gi<Zi;++Gi){var Zn,nr=0;for(Zn=0;Zn<hr;++Zn)Zn&Hi||(nr=qt(dn[xn++])),er[Ar++]=Ai(qr[nr&Wr]),nr>>=Er}else Rn["VP8LMapColor"+xt](dn,xn,qr,Wr,er,Ar,Gi,Zi,hr)}}function ro(Pe,Ke,xt,qt,Ai){for(xt=Ke+xt;Ke<xt;){var Hi=Pe[Ke++];qt[Ai++]=Hi>>16&255,qt[Ai++]=Hi>>8&255,qt[Ai++]=255&Hi}}function wc(Pe,Ke,xt,qt,Ai){for(xt=Ke+xt;Ke<xt;){var Hi=Pe[Ke++];qt[Ai++]=Hi>>16&255,qt[Ai++]=Hi>>8&255,qt[Ai++]=255&Hi,qt[Ai++]=Hi>>24&255}}function il(Pe,Ke,xt,qt,Ai){for(xt=Ke+xt;Ke<xt;){var Hi=(Gi=Pe[Ke++])>>16&240|Gi>>12&15,Gi=240&Gi|Gi>>28&15;qt[Ai++]=Hi,qt[Ai++]=Gi}}function xu(Pe,Ke,xt,qt,Ai){for(xt=Ke+xt;Ke<xt;){var Hi=(Gi=Pe[Ke++])>>16&248|Gi>>13&7,Gi=Gi>>5&224|Gi>>3&31;qt[Ai++]=Hi,qt[Ai++]=Gi}}function Rl(Pe,Ke,xt,qt,Ai){for(xt=Ke+xt;Ke<xt;){var Hi=Pe[Ke++];qt[Ai++]=255&Hi,qt[Ai++]=Hi>>8&255,qt[Ai++]=Hi>>16&255}}function fd(Pe,Ke,xt,qt,Ai,Hi){if(0==Hi)for(xt=Ke+xt;Ke<xt;)za(qt,((Hi=Pe[Ke++])[0]>>24|Hi[1]>>8&65280|Hi[2]<<8&16711680|Hi[3]<<24)>>>0),Ai+=32;else te(qt,Ai,Pe,Ke,xt)}function bh(Pe,Ke){Rn[Ke][0]=Rn[Pe+"0"],Rn[Ke][1]=Rn[Pe+"1"],Rn[Ke][2]=Rn[Pe+"2"],Rn[Ke][3]=Rn[Pe+"3"],Rn[Ke][4]=Rn[Pe+"4"],Rn[Ke][5]=Rn[Pe+"5"],Rn[Ke][6]=Rn[Pe+"6"],Rn[Ke][7]=Rn[Pe+"7"],Rn[Ke][8]=Rn[Pe+"8"],Rn[Ke][9]=Rn[Pe+"9"],Rn[Ke][10]=Rn[Pe+"10"],Rn[Ke][11]=Rn[Pe+"11"],Rn[Ke][12]=Rn[Pe+"12"],Rn[Ke][13]=Rn[Pe+"13"],Rn[Ke][14]=Rn[Pe+"0"],Rn[Ke][15]=Rn[Pe+"0"]}function nl(Pe){return Pe==Ff||Pe==Vm||Pe==Th||Pe==Ah}function Sp(){this.eb=[],this.size=this.A=this.fb=0}function rd(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function nh(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Sp,this.f.kb=new rd,this.sd=null}function Lu(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ll(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function os(Pe){return alert("todo:WebPSamplerProcessPlane"),Pe.T}function co(Pe,Ke){var xt=Pe.T,qt=Ke.ba.f.RGBA,Ai=qt.eb,Hi=qt.fb+Pe.ka*qt.A,Gi=kh[Ke.ba.S],Zi=Pe.y,dn=Pe.O,xn=Pe.f,er=Pe.N,Ar=Pe.ea,Er=Pe.W,hr=Ke.cc,qr=Ke.dc,Wr=Ke.Mc,Zn=Ke.Nc,nr=Pe.ka,da=Pe.ka+Pe.T,ya=Pe.U,Qr=ya+1>>1;for(0==nr?Gi(Zi,dn,null,null,xn,er,Ar,Er,xn,er,Ar,Er,Ai,Hi,null,null,ya):(Gi(Ke.ec,Ke.fc,Zi,dn,hr,qr,Wr,Zn,xn,er,Ar,Er,Ai,Hi-qt.A,Ai,Hi,ya),++xt);nr+2<da;nr+=2)Gi(Zi,(dn+=2*Pe.fa)-Pe.fa,Zi,dn,hr=xn,qr=er,Wr=Ar,Zn=Er,xn,er+=Pe.Rc,Ar,Er+=Pe.Rc,Ai,(Hi+=2*qt.A)-qt.A,Ai,Hi,ya);return dn+=Pe.fa,Pe.j+da<Pe.o?(te(Ke.ec,Ke.fc,Zi,dn,ya),te(Ke.cc,Ke.dc,xn,er,Qr),te(Ke.Mc,Ke.Nc,Ar,Er,Qr),xt--):1&da||Gi(Zi,dn,null,null,xn,er,Ar,Er,xn,er,Ar,Er,Ai,Hi+qt.A,null,null,ya),xt}function ef(Pe,Ke,xt){var qt=Pe.F,Ai=[Pe.J];if(null!=qt){var Hi=Pe.U,Gi=Ke.ba.S,Zi=Gi==Lf||Gi==Th;Ke=Ke.ba.f.RGBA;var dn=[0],xn=Pe.ka;dn[0]=Pe.T,Pe.Kb&&(0==xn?--dn[0]:(--xn,Ai[0]-=Pe.width),Pe.j+Pe.ka+Pe.T==Pe.o&&(dn[0]=Pe.o-Pe.j-xn));var er=Ke.eb;Pe=Nm(qt,Ai[0],Pe.width,Hi,dn,er,(xn=Ke.fb+xn*Ke.A)+(Zi?0:3),Ke.A),ue(xt==dn),Pe&&nl(Gi)&&Mu(er,xn,Zi,Hi,dn,Ke.A)}return 0}function Sc(Pe){var Ke=Pe.ma,xt=Ke.ba.S,qt=11>xt,Ai=xt==sm||xt==Mc||xt==Lf||xt==Vg||12==xt||nl(xt);if(Ke.memory=null,Ke.Ib=null,Ke.Jb=null,Ke.Nd=null,!Dh(Ke.Oa,Pe,Ai?11:12))return 0;if(Ai&&nl(xt)&&Ta(),Pe.da)alert("todo:use_scaling");else{if(qt){if(Ke.Ib=os,Pe.Kb){if(Ke.memory=De(Pe.U+2*(xt=Pe.U+1>>1)),null==Ke.memory)return 0;Ke.ec=Ke.memory,Ke.fc=0,Ke.cc=Ke.ec,Ke.dc=Ke.fc+Pe.U,Ke.Mc=Ke.cc,Ke.Nc=Ke.dc+xt,Ke.Ib=co,Ta()}}else alert("todo:EmitYUV");Ai&&(Ke.Jb=ef,qt&&yr())}if(qt&&!Ym){for(Pe=0;256>Pe;++Pe)lh[Pe]=89858*(Pe-128)+Vf>>vg,bg[Pe]=-22014*(Pe-128)+Vf,N_[Pe]=-45773*(Pe-128),Ug[Pe]=113618*(Pe-128)+Vf>>vg;for(Pe=Ou;Pe<Cm;++Pe)l_[Pe-Ou]=tp(Ke=76283*(Pe-16)+Vf>>vg,255),d_[Pe-Ou]=tp(Ke+8>>4,15);Ym=1}return 1}function Id(Pe){var Ke=Pe.ma,xt=Pe.U,qt=Pe.T;return ue(!(1&Pe.ka)),0>=xt||0>=qt?0:(xt=Ke.Ib(Pe,Ke),null!=Ke.Jb&&Ke.Jb(Pe,Ke,xt),Ke.Dc+=xt,1)}function ad(Pe){Pe.ma.memory=null}function Do(Pe,Ke,xt,qt){return 47!=Xr(Pe,8)?0:(Ke[0]=Xr(Pe,14)+1,xt[0]=Xr(Pe,14)+1,qt[0]=Xr(Pe,1),0!=Xr(Pe,3)?0:!Pe.h)}function wd(Pe,Ke){if(4>Pe)return Pe+1;var xt=Pe-2>>1;return(2+(1&Pe)<<xt)+Xr(Ke,xt)+1}function kd(Pe,Ke){return 120<Ke?Ke-120:1<=(xt=((xt=Uu[Ke-1])>>4)*Pe+(8-(15&xt)))?xt:1;var xt}function Pc(Pe,Ke,xt){var qt=Cn(xt),Ai=Pe[Ke+=255&qt].g-8;return 0<Ai&&(Jn(xt,xt.u+8),qt=Cn(xt),Ke+=Pe[Ke].value,Ke+=qt&(1<<Ai)-1),Jn(xt,xt.u+Pe[Ke].g),Pe[Ke].value}function Sd(Pe,Ke,xt){return xt.g+=Pe.g,xt.value+=Pe.value<<Ke>>>0,ue(8>=xt.g),Pe.g}function Dd(Pe,Ke,xt){var qt=Pe.xc;return ue((Ke=0==qt?0:Pe.vc[Pe.md*(xt>>qt)+(Ke>>qt)])<Pe.Wb),Pe.Ya[Ke]}function ec(Pe,Ke,xt,qt){var Ai=Pe.ab,Hi=Pe.c*Ke,Gi=Pe.C;Ke=Gi+Ke;var Zi=xt,dn=qt;for(qt=Pe.Ta,xt=Pe.Ua;0<Ai--;){var xn=Pe.gc[Ai],er=Gi,Ar=Ke,Er=Zi,hr=dn,qr=(dn=qt,Zi=xt,xn.Ea);switch(ue(er<Ar),ue(Ar<=xn.nc),xn.hc){case 2:Su(Er,hr,(Ar-er)*qr,dn,Zi);break;case 0:var Wr=er,Zn=Ar,nr=dn,da=Zi,ya=(ao=xn).Ea;0==Wr&&(hu(Er,hr,null,null,1,nr,da),Us(Er,hr+1,0,0,ya-1,nr,da+1),hr+=ya,da+=ya,++Wr);for(var Qr=1<<ao.b,xo=Qr-1,to=So(ya,ao.b),Bo=ao.K,ao=ao.w+(Wr>>ao.b)*to;Wr<Zn;){var Ul=Bo,Gl=ao,vl=1;for(_p(Er,hr,nr,da-ya,1,nr,da);vl<ya;){var ps=(vl&~xo)+Qr;ps>ya&&(ps=ya),(0,vp[Ul[Gl++]>>8&15])(Er,hr+ +vl,nr,da+vl-ya,ps-vl,nr,da+vl),vl=ps}hr+=ya,da+=ya,++Wr&xo||(ao+=to)}Ar!=xn.nc&&te(dn,Zi-qr,dn,Zi+(Ar-er-1)*qr,qr);break;case 1:for(qr=Er,Zn=hr,ya=(Er=xn.Ea)-(da=Er&~(nr=(hr=1<<xn.b)-1)),Wr=So(Er,xn.b),Qr=xn.K,xn=xn.w+(er>>xn.b)*Wr;er<Ar;){for(xo=Qr,to=xn,Bo=new Ka,ao=Zn+da,Ul=Zn+Er;Zn<ao;)gl(xo[to++],Bo),kp(Bo,qr,Zn,hr,dn,Zi),Zn+=hr,Zi+=hr;Zn<Ul&&(gl(xo[to++],Bo),kp(Bo,qr,Zn,ya,dn,Zi),Zn+=ya,Zi+=ya),++er&nr||(xn+=Wr)}break;case 3:if(Er==dn&&hr==Zi&&0<xn.b){for(Zn=dn,Er=qr=Zi+(Ar-er)*qr-(da=(Ar-er)*So(xn.Ea,xn.b)),hr=dn,nr=Zi,Wr=[],da=(ya=da)-1;0<=da;--da)Wr[da]=hr[nr+da];for(da=ya-1;0<=da;--da)Zn[Er+da]=Wr[da];Nu(xn,er,Ar,dn,qr,dn,Zi)}else Nu(xn,er,Ar,Er,hr,dn,Zi)}Zi=qt,dn=xt}dn!=xt&&te(qt,xt,Zi,dn,Hi)}function hp(Pe,Ke){var xt=Pe.V,qt=Pe.Ba+Pe.c*Pe.C,Ai=Ke-Pe.C;if(ue(Ke<=Pe.l.o),ue(16>=Ai),0<Ai){var Hi=Pe.l,Gi=Pe.Ta,Zi=Pe.Ua,dn=Hi.width;if(ec(Pe,Ai,xt,qt),Ai=Zi=[Zi],ue((xt=Pe.C)<(qt=Ke)),ue(Hi.v<Hi.va),qt>Hi.o&&(qt=Hi.o),xt<Hi.j){var xn=Hi.j-xt;xt=Hi.j,Ai[0]+=xn*dn}if(xt>=qt?xt=0:(Ai[0]+=4*Hi.v,Hi.ka=xt-Hi.j,Hi.U=Hi.va-Hi.v,Hi.T=qt-xt,xt=1),xt){if(Zi=Zi[0],11>(xt=Pe.ca).S){var er=xt.f.RGBA,Ar=(qt=xt.S,Ai=Hi.U,Hi=Hi.T,xn=er.eb,er.A),Er=Hi;for(er=er.fb+Pe.Ma*er.A;0<Er--;){var hr=Gi,qr=Zi,Wr=Ai,Zn=xn,nr=er;switch(qt){case uf:Eh(hr,qr,Wr,Zn,nr);break;case sm:Du(hr,qr,Wr,Zn,nr);break;case Ff:Du(hr,qr,Wr,Zn,nr),Mu(Zn,nr,0,Wr,1,0);break;case Lp:kf(hr,qr,Wr,Zn,nr);break;case Mc:fd(hr,qr,Wr,Zn,nr,1);break;case Vm:fd(hr,qr,Wr,Zn,nr,1),Mu(Zn,nr,0,Wr,1,0);break;case Lf:fd(hr,qr,Wr,Zn,nr,0);break;case Th:fd(hr,qr,Wr,Zn,nr,0),Mu(Zn,nr,1,Wr,1,0);break;case Vg:Vu(hr,qr,Wr,Zn,nr);break;case Ah:Vu(hr,qr,Wr,Zn,nr),cf(Zn,nr,Wr,1,0);break;case zu:Rp(hr,qr,Wr,Zn,nr);break;default:ue(0)}Zi+=dn,er+=Ar}Pe.Ma+=Hi}else alert("todo:EmitRescaledRowsYUVA");ue(Pe.Ma<=xt.height)}}Pe.C=Ke,ue(Pe.C<=Pe.i)}function Cu(Pe){var Ke;if(0<Pe.ua)return 0;for(Ke=0;Ke<Pe.Wb;++Ke){var xt=Pe.Ya[Ke].G,qt=Pe.Ya[Ke].H;if(0<xt[1][qt[1]+0].g||0<xt[2][qt[2]+0].g||0<xt[3][qt[3]+0].g)return 0}return 1}function Ed(Pe,Ke,xt,qt,Ai,Hi){if(0!=Pe.Z){var Gi=Pe.qd,Zi=Pe.rd;for(ue(null!=ap[Pe.Z]);Ke<xt;++Ke)ap[Pe.Z](Gi,Zi,qt,Ai,qt,Ai,Hi),Gi=qt,Zi=Ai,Ai+=Hi;Pe.qd=Gi,Pe.rd=Zi}}function md(Pe,Ke){var xt=Pe.l.ma,qt=0==xt.Z||1==xt.Z?Pe.l.j:Pe.C;if(qt=Pe.C<qt?qt:Pe.C,ue(Ke<=Pe.l.o),Ke>qt){var Ai=Pe.l.width,Hi=xt.ca,Gi=xt.tb+Ai*qt,Zi=Pe.V,dn=Pe.Ba+Pe.c*qt,xn=Pe.gc;ue(1==Pe.ab),ue(3==xn[0].hc),Ip(xn[0],qt,Ke,Zi,dn,Hi,Gi),Ed(xt,qt,Ke,Hi,Gi,Ai)}Pe.C=Pe.Ma=Ke}function uc(Pe,Ke,xt,qt,Ai,Hi,Gi){var Zi=Pe.$/qt,dn=Pe.$%qt,xn=Pe.m,er=Pe.s,Ar=xt+Pe.$,Er=Ar;Ai=xt+qt*Ai;var hr=xt+qt*Hi,qr=280+er.ua,Wr=Pe.Pb?Zi:16777216,Zn=0<er.ua?er.Wa:null,nr=er.wc,da=Ar<hr?Dd(er,dn,Zi):null;ue(Pe.C<Hi),ue(hr<=Ai);var ya=!1;e:for(;;){for(;ya||Ar<hr;){var Qr=0;if(Zi>=Wr){var xo=Ar-xt;ue((Wr=Pe).Pb),Wr.wd=Wr.m,Wr.xd=xo,0<Wr.s.ua&&Jr(Wr.s.Wa,Wr.s.vb),Wr=Zi+P_}if(dn&nr||(da=Dd(er,dn,Zi)),ue(null!=da),da.Qb&&(Ke[Ar]=da.qb,ya=!0),!ya)if(lr(xn),da.jc){xo=Ke;var to=Ar,Bo=da.pd[Cn(Qr=xn)&uu-1];ue(da.jc),256>Bo.g?(Jn(Qr,Qr.u+Bo.g),xo[to]=Bo.value,Qr=0):(Jn(Qr,Qr.u+Bo.g-256),ue(256<=Bo.value),Qr=Bo.value),0==Qr&&(ya=!0)}else Qr=Pc(da.G[0],da.H[0],xn);if(xn.h)break;if(ya||256>Qr){if(!ya)if(da.nd)Ke[Ar]=(da.qb|Qr<<8)>>>0;else{if(lr(xn),ya=Pc(da.G[1],da.H[1],xn),lr(xn),xo=Pc(da.G[2],da.H[2],xn),to=Pc(da.G[3],da.H[3],xn),xn.h)break;Ke[Ar]=(to<<24|ya<<16|Qr<<8|xo)>>>0}if(ya=!1,++Ar,++dn>=qt&&(dn=0,++Zi,null!=Gi&&Zi<=Hi&&!(Zi%16)&&Gi(Pe,Zi),null!=Zn))for(;Er<Ar;)Qr=Ke[Er++],Zn.X[(506832829*Qr&4294967295)>>>Zn.Mb]=Qr}else if(280>Qr){if(Qr=wd(Qr-256,xn),xo=Pc(da.G[4],da.H[4],xn),lr(xn),xo=kd(qt,xo=wd(xo,xn)),xn.h)break;if(Ar-xt<xo||Ai-Ar<Qr)break e;for(to=0;to<Qr;++to)Ke[Ar+to]=Ke[Ar+to-xo];for(Ar+=Qr,dn+=Qr;dn>=qt;)dn-=qt,++Zi,null!=Gi&&Zi<=Hi&&!(Zi%16)&&Gi(Pe,Zi);if(ue(Ar<=Ai),dn&nr&&(da=Dd(er,dn,Zi)),null!=Zn)for(;Er<Ar;)Qr=Ke[Er++],Zn.X[(506832829*Qr&4294967295)>>>Zn.Mb]=Qr}else{if(!(Qr<qr))break e;for(ya=Qr-280,ue(null!=Zn);Er<Ar;)Qr=Ke[Er++],Zn.X[(506832829*Qr&4294967295)>>>Zn.Mb]=Qr;Qr=Ar,ue(!(ya>>>(xo=Zn).Xa)),Ke[Qr]=xo.X[ya],ya=!0}ya||ue(xn.h==Ln(xn))}if(Pe.Pb&&xn.h&&Ar<Ai)ue(Pe.m.h),Pe.a=5,Pe.m=Pe.wd,Pe.$=Pe.xd,0<Pe.s.ua&&Jr(Pe.s.vb,Pe.s.Wa);else{if(xn.h)break e;Gi?.(Pe,Zi>Hi?Hi:Zi),Pe.a=0,Pe.$=Ar-xt}return 1}return Pe.a=3,0}function Dc(Pe){ue(null!=Pe),Pe.vc=null,Pe.yc=null,Pe.Ya=null;var Ke=Pe.Wa;null!=Ke&&(Ke.X=null),Pe.vb=null,ue(null!=Pe)}function od(){var Pe=new Fm;return null==Pe?null:(Pe.a=0,Pe.xb=Gm,bh("Predictor","VP8LPredictors"),bh("Predictor","VP8LPredictors_C"),bh("PredictorAdd","VP8LPredictorsAdd"),bh("PredictorAdd","VP8LPredictorsAdd_C"),Su=Cl,kp=ls,Eh=ro,Du=wc,Vu=il,Rp=xu,kf=Rl,Rn.VP8LMapColor32b=Sl,Rn.VP8LMapColor8b=If,Pe)}function Gs(Pe,Ke,xt,qt,Ai){var Hi=1,Gi=[Pe],Zi=[Ke],dn=qt.m,xn=qt.s,er=null,Ar=0;e:for(;;){if(xt)for(;Hi&&Xr(dn,1);){var Er=Gi,hr=Zi,qr=qt,Wr=1,Zn=qr.m,nr=qr.gc[qr.ab],da=Xr(Zn,2);if(qr.Oc&1<<da)Hi=0;else{switch(qr.Oc|=1<<da,nr.hc=da,nr.Ea=Er[0],nr.nc=hr[0],nr.K=[null],++qr.ab,ue(4>=qr.ab),da){case 0:case 1:nr.b=Xr(Zn,3)+2,Wr=Gs(So(nr.Ea,nr.b),So(nr.nc,nr.b),0,qr,nr.K),nr.K=nr.K[0];break;case 3:var ya,Qr=Xr(Zn,8)+1,xo=16<Qr?0:4<Qr?1:2<Qr?2:3;if(Er[0]=So(nr.Ea,xo),nr.b=xo,ya=Wr=Gs(Qr,1,0,qr,nr.K)){var to,Bo=Qr,ao=nr,Ul=1<<(8>>ao.b),Gl=De(Ul);if(null==Gl)ya=0;else{var vl=ao.K[0],ps=ao.w;for(Gl[0]=ao.K[0][0],to=1;to<1*Bo;++to)Gl[to]=Ea(vl[ps+to],Gl[to-1]);for(;to<4*Ul;++to)Gl[to]=0;ao.K[0]=null,ao.K[0]=Gl,ya=1}}Wr=ya;break;case 2:break;default:ue(0)}Hi=Wr}}if(Gi=Gi[0],Zi=Zi[0],Hi&&Xr(dn,1)&&!(Hi=1<=(Ar=Xr(dn,4))&&11>=Ar)){qt.a=3;break e}var Kl;if(Kl=Hi)t:{var ca,Co,cl,pu=qt,Yd=Gi,dh=Zi,Dl=Ar,Oc=xt,ys=pu.m,Ts=pu.s,bl=[null],Vo=1,Wu=0,op=xm[Dl];i:for(;;){if(Oc&&Xr(ys,1)){var mc=Xr(ys,3)+2,ju=So(Yd,mc),Hf=So(dh,mc),ff=ju*Hf;if(!Gs(ju,Hf,0,pu,bl))break i;for(bl=bl[0],Ts.xc=mc,ca=0;ca<ff;++ca){var zf=bl[ca]>>8&65535;bl[ca]=zf,zf>=Vo&&(Vo=zf+1)}}if(ys.h)break i;for(Co=0;5>Co;++Co){var $d=dm[Co];!Co&&0<Dl&&($d+=1<<Dl),Wu<$d&&(Wu=$d)}var xg=Le(Vo*op,hn),$m=Vo,dd=Le($m,Vn);if(null==dd)var vd=null;else ue(65536>=$m),vd=dd;var Uf=De(Wu);if(null==vd||null==Uf||null==xg){pu.a=1;break i}var Cg=xg;for(ca=cl=0;ca<Vo;++ca){var Vp=vd[ca],gc=Vp.G,Yu=Vp.H,Gg=0,Hp=1,Gf=0;for(Co=0;5>Co;++Co){$d=dm[Co],gc[Co]=Cg,Yu[Co]=cl,!Co&&0<Dl&&($d+=1<<Dl);r:{var Km,Ns=$d,mf=pu,Xm=Uf,_v=Cg,Yv=cl,h_=0,zp=mf.m,Y0=Xr(zp,1);if(Ce(Xm,0,0,Ns),Y0){var p_=Xr(zp,1)+1,V_=Xr(zp,1),is=Xr(zp,0==V_?1:8);Xm[is]=1,2==p_&&(Xm[is=Xr(zp,8)]=1);var wm=1}else{var Ph=De(19),Jm=Xr(zp,4)+4;if(19<Jm){mf.a=3;var cm=0;break r}for(Km=0;Km<Jm;++Km)Ph[Ih[Km]]=Xr(zp,3);var Up=void 0,wg=void 0,Wg=mf,vv=Ph,gf=Ns,Qm=Xm,f_=0,_f=Wg.m,bv=8,m_=Le(128,hn);n:for(;mn(m_,0,7,vv,19);){if(Xr(_f,1)){var yv=2+2*Xr(_f,3);if((Up=2+Xr(_f,yv))>gf)break n}else Up=gf;for(wg=0;wg<gf&&Up--;){lr(_f);var Zm=m_[0+(127&Cn(_f))];Jn(_f,_f.u+Zm.g);var qm=Zm.value;if(16>qm)Qm[wg++]=qm,0!=qm&&(bv=qm);else{var As=16==qm,vf=qm-16,H_=lm[vf],eg=Xr(_f,Bf[vf])+H_;if(wg+eg>gf)break n;for(var sp=As?bv:0;0<eg--;)Qm[wg++]=sp}}f_=1;break n}f_||(Wg.a=3),wm=f_}(wm=wm&&!zp.h)&&(h_=mn(_v,Yv,8,Xm,Ns)),wm&&0!=h_?cm=h_:(mf.a=3,cm=0)}if(0==cm)break i;if(Hp&&1==Hm[Co]&&(Hp=0==Cg[cl].g),Gg+=Cg[cl].g,cl+=cm,3>=Co){var Nc,z_=Uf[0];for(Nc=1;Nc<$d;++Nc)Uf[Nc]>z_&&(z_=Uf[Nc]);Gf+=z_}}if(Vp.nd=Hp,Vp.Qb=0,Hp&&(Vp.qb=(gc[3][Yu[3]+0].value<<24|gc[1][Yu[1]+0].value<<16|gc[2][Yu[2]+0].value)>>>0,0==Gg&&256>gc[0][Yu[0]+0].value&&(Vp.Qb=1,Vp.qb+=gc[0][Yu[0]+0].value<<8)),Vp.jc=!Vp.Qb&&6>Gf,Vp.jc){var y,H=Vp;for(y=0;y<uu;++y){var Z=y,Oe=H.pd[Z],Fe=H.G[0][H.H[0]+Z];256<=Fe.value?(Oe.g=Fe.g+256,Oe.value=Fe.value):(Oe.g=0,Oe.value=0,Z>>=Sd(Fe,8,Oe),Z>>=Sd(H.G[1][H.H[1]+Z],16,Oe),Z>>=Sd(H.G[2][H.H[2]+Z],0,Oe),Sd(H.G[3][H.H[3]+Z],24,Oe))}}}Ts.vc=bl,Ts.Wb=Vo,Ts.Ya=vd,Ts.yc=xg,Kl=1;break t}Kl=0}if(!(Hi=Kl)){qt.a=3;break e}if(0<Ar){if(xn.ua=1<<Ar,!as(xn.Wa,Ar)){qt.a=1,Hi=0;break e}}else xn.ua=0;var Ye=qt,bt=Gi,$t=Zi,_i=Ye.s,Ii=_i.xc;if(Ye.c=bt,Ye.i=$t,_i.md=So(bt,Ii),_i.wc=0==Ii?-1:(1<<Ii)-1,xt){qt.xb=zg;break e}if(null==(er=De(Gi*Zi))){qt.a=1,Hi=0;break e}Hi=(Hi=uc(qt,er,0,Gi,Zi,Zi,null))&&!dn.h;break e}return Hi?(null!=Ai?Ai[0]=er:(ue(null==er),ue(xt)),qt.$=0,xt||Dc(xn)):Dc(xn),Hi}function Rd(Pe,Ke){var xt=Pe.c*Pe.i,qt=xt+Ke+16*Ke;return ue(Pe.c<=Ke),Pe.V=De(qt),null==Pe.V?(Pe.Ta=null,Pe.Ua=0,Pe.a=1,0):(Pe.Ta=Pe.V,Pe.Ua=Pe.Ba+xt+Ke,1)}function $h(Pe,Ke){var xt=Pe.C,qt=Ke-xt,Ai=Pe.V,Hi=Pe.Ba+Pe.c*xt;for(ue(Ke<=Pe.l.o);0<qt;){var Gi=16<qt?16:qt,Zi=Pe.l.ma,dn=Pe.l.width,xn=dn*Gi,er=Zi.ca,Ar=Zi.tb+dn*xt,Er=Pe.Ta,hr=Pe.Ua;ec(Pe,Gi,Ai,Hi),hg(Er,hr,er,Ar,xn),Ed(Zi,xt,xt+Gi,er,Ar,dn),qt-=Gi,Ai+=Gi*Pe.c,xt+=Gi}ue(xt==Ke),Pe.C=Pe.Ma=Ke}function Kh(){this.ub=this.yd=this.td=this.Rb=0}function Fu(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function $l(){this.Fb=this.Bb=this.Cb=0,this.Zb=De(4),this.Lb=De(4)}function Xh(){var Pe;this.Yb=(function Ke(xt,qt,Ai){for(var Hi=Ai[qt],Gi=0;Gi<Hi&&(xt.push(Ai.length>qt+1?[]:0),!(Ai.length<qt+1));Gi++)Ke(xt[Gi],qt+1,Ai)}(Pe=[],0,[3,11]),Pe)}function yh(){this.jb=De(3),this.Wc=je([4,8],Xh),this.Xc=je([4,17],Xh)}function Jh(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new De(4),this.od=new De(4)}function Qh(){this.ld=this.La=this.dd=this.tc=0}function Dp(){this.Na=this.la=0}function ft(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function en(){this.ad=De(384),this.Za=0,this.Ob=De(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function ve(){this.uc=this.M=this.Nb=0,this.wa=Array(new Qh),this.Y=0,this.ya=Array(new en),this.aa=0,this.l=new ti}function ze(){this.y=De(16),this.f=De(8),this.ea=De(8)}function dt(){this.cb=this.a=0,this.sc="",this.m=new Ja,this.Od=new Kh,this.Kc=new Fu,this.ed=new Jh,this.Qa=new $l,this.Ic=this.$c=this.Aa=0,this.D=new ve,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=Le(8,Ja),this.ia=0,this.pb=Le(4,ft),this.Pa=new yh,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ze),this.Hd=0,this.rb=Array(new Dp),this.sb=0,this.wa=Array(new Qh),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new en),this.L=this.aa=0,this.gd=je([4,2],Qh),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function ti(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function pn(){var Pe=new dt;return null!=Pe&&(Pe.a=0,Pe.sc="OK",Pe.cb=0,Pe.Xb=0,zm||(zm=Bs)),Pe}function cr(Pe,Ke,xt){return 0==Pe.a&&(Pe.a=Ke,Pe.sc=xt,Pe.cb=0),0}function fo(Pe,Ke,xt){return 3<=xt&&157==Pe[Ke+0]&&1==Pe[Ke+1]&&42==Pe[Ke+2]}function fs(Pe,Ke){if(null==Pe)return 0;if(Pe.a=0,Pe.sc="OK",null==Ke)return cr(Pe,2,"null VP8Io passed to VP8GetHeaders()");var xt=Ke.data,qt=Ke.w,Ai=Ke.ha;if(4>Ai)return cr(Pe,7,"Truncated header.");var Hi=xt[qt+0]|xt[qt+1]<<8|xt[qt+2]<<16,Gi=Pe.Od;if(Gi.Rb=!(1&Hi),Gi.td=Hi>>1&7,Gi.yd=Hi>>4&1,Gi.ub=Hi>>5,3<Gi.td)return cr(Pe,3,"Incorrect keyframe parameters.");if(!Gi.yd)return cr(Pe,4,"Frame not displayable.");qt+=3,Ai-=3;var Zi=Pe.Kc;if(Gi.Rb){if(7>Ai)return cr(Pe,7,"cannot parse picture header");if(!fo(xt,qt,Ai))return cr(Pe,3,"Bad code word");Zi.c=16383&(xt[qt+4]<<8|xt[qt+3]),Zi.Td=xt[qt+4]>>6,Zi.i=16383&(xt[qt+6]<<8|xt[qt+5]),Zi.Ud=xt[qt+6]>>6,qt+=7,Ai-=7,Pe.za=Zi.c+15>>4,Pe.Ub=Zi.i+15>>4,Ke.width=Zi.c,Ke.height=Zi.i,Ke.Da=0,Ke.j=0,Ke.v=0,Ke.va=Ke.width,Ke.o=Ke.height,Ke.da=0,Ke.ib=Ke.width,Ke.hb=Ke.height,Ke.U=Ke.width,Ke.T=Ke.height,Ce((Hi=Pe.Pa).jb,0,255,Hi.jb.length),ue(null!=(Hi=Pe.Qa)),Hi.Cb=0,Hi.Bb=0,Hi.Fb=1,Ce(Hi.Zb,0,0,Hi.Zb.length),Ce(Hi.Lb,0,0,Hi.Lb)}if(Gi.ub>Ai)return cr(Pe,7,"bad partition length");Rr(Hi=Pe.m,xt,qt,Gi.ub),qt+=Gi.ub,Ai-=Gi.ub,Gi.Rb&&(Zi.Ld=Br(Hi),Zi.Kd=Br(Hi)),Zi=Pe.Qa;var dn,xn=Pe.Pa;if(ue(null!=Hi),ue(null!=Zi),Zi.Cb=Br(Hi),Zi.Cb){if(Zi.Bb=Br(Hi),Br(Hi)){for(Zi.Fb=Br(Hi),dn=0;4>dn;++dn)Zi.Zb[dn]=Br(Hi)?jr(Hi,7):0;for(dn=0;4>dn;++dn)Zi.Lb[dn]=Br(Hi)?jr(Hi,6):0}if(Zi.Bb)for(dn=0;3>dn;++dn)xn.jb[dn]=Br(Hi)?br(Hi,8):255}else Zi.Bb=0;if(Hi.Ka)return cr(Pe,3,"cannot parse segment header");if((Zi=Pe.ed).zd=Br(Hi),Zi.Tb=br(Hi,6),Zi.wb=br(Hi,3),Zi.Pc=Br(Hi),Zi.Pc&&Br(Hi)){for(xn=0;4>xn;++xn)Br(Hi)&&(Zi.vd[xn]=jr(Hi,6));for(xn=0;4>xn;++xn)Br(Hi)&&(Zi.od[xn]=jr(Hi,6))}if(Pe.L=0==Zi.Tb?0:Zi.zd?1:2,Hi.Ka)return cr(Pe,3,"cannot parse filter header");var er=Ai;if(Ai=dn=qt,qt=dn+er,Zi=er,Pe.Xb=(1<<br(Pe.m,2))-1,er<3*(xn=Pe.Xb))xt=7;else{for(dn+=3*xn,Zi-=3*xn,er=0;er<xn;++er){var Ar=xt[Ai+0]|xt[Ai+1]<<8|xt[Ai+2]<<16;Ar>Zi&&(Ar=Zi),Rr(Pe.Jc[+er],xt,dn,Ar),dn+=Ar,Zi-=Ar,Ai+=3}Rr(Pe.Jc[+xn],xt,dn,Zi),xt=dn<qt?0:5}if(0!=xt)return cr(Pe,xt,"cannot parse partitions");for(xt=br(dn=Pe.m,7),Ai=Br(dn)?jr(dn,4):0,qt=Br(dn)?jr(dn,4):0,Zi=Br(dn)?jr(dn,4):0,xn=Br(dn)?jr(dn,4):0,dn=Br(dn)?jr(dn,4):0,er=Pe.Qa,Ar=0;4>Ar;++Ar){if(er.Cb){var Er=er.Zb[Ar];er.Fb||(Er+=xt)}else{if(0<Ar){Pe.pb[Ar]=Pe.pb[0];continue}Er=xt}var hr=Pe.pb[Ar];hr.Sc[0]=Fp[tp(Er+Ai,127)],hr.Sc[1]=Hg[tp(Er+0,127)],hr.Eb[0]=2*Fp[tp(Er+qt,127)],hr.Eb[1]=101581*Hg[tp(Er+Zi,127)]>>16,8>hr.Eb[1]&&(hr.Eb[1]=8),hr.Qc[0]=Fp[tp(Er+xn,117)],hr.Qc[1]=Hg[tp(Er+dn,127)],hr.lc=Er+dn}if(!Gi.Rb)return cr(Pe,4,"Not a key frame.");for(Br(Hi),Gi=Pe.Pa,xt=0;4>xt;++xt){for(Ai=0;8>Ai;++Ai)for(qt=0;3>qt;++qt)for(Zi=0;11>Zi;++Zi)xn=Lr(Hi,hf[xt][Ai][qt][Zi])?br(Hi,8):Um[xt][Ai][qt][Zi],Gi.Wc[xt][Ai].Yb[qt][Zi]=xn;for(Ai=0;17>Ai;++Ai)Gi.Xc[xt][Ai]=Gi.Wc[xt][Wv[Ai]]}return Pe.kc=Br(Hi),Pe.kc&&(Pe.Bd=br(Hi,8)),Pe.cb=1}function Bs(Pe,Ke,xt,qt,Ai,Hi,Gi){var Zi=Ke[Ai].Yb[xt];for(xt=0;16>Ai;++Ai){if(!Lr(Pe,Zi[xt+0]))return Ai;for(;!Lr(Pe,Zi[xt+1]);)if(Zi=Ke[++Ai].Yb[0],xt=0,16==Ai)return 16;var dn=Ke[Ai+1].Yb;if(Lr(Pe,Zi[xt+2])){var xn=Pe,er=0;if(Lr(xn,(Er=Zi)[(Ar=xt)+3]))if(Lr(xn,Er[Ar+6])){for(Zi=0,Ar=2*(er=Lr(xn,Er[Ar+8]))+(Er=Lr(xn,Er[Ar+9+er])),er=0,Er=np[Ar];Er[Zi];++Zi)er+=er+Lr(xn,Er[Zi]);er+=3+(8<<Ar)}else Lr(xn,Er[Ar+7])?(er=7+2*Lr(xn,165),er+=Lr(xn,145)):er=5+Lr(xn,159);else er=Lr(xn,Er[Ar+4])?3+Lr(xn,Er[Ar+5]):2;Zi=dn[2]}else er=1,Zi=dn[1];dn=Gi+Gu[Ai],0>(xn=Pe).b&&Sr(xn);var Ar,Er=xn.b,hr=(Ar=xn.Ca>>1)-(xn.I>>Er)>>31;--xn.b,xn.Ca+=hr,xn.Ca|=1,xn.I-=(Ar+1&hr)<<Er,Hi[dn]=((er^hr)-hr)*qt[(0<Ai)+0]}return 16}function Pl(Pe){var Ke=Pe.rb[Pe.sb-1];Ke.la=0,Ke.Na=0,Ce(Pe.zc,0,0,Pe.zc.length),Pe.ja=0}function Vd(Pe,Ke,xt,qt,Ai){Pe[Ke+xt+32*qt]=-256&(Ai=Pe[Ke+xt+32*qt]+(Ai>>3))?0>Ai?0:255:Ai}function Zh(Pe,Ke,xt,qt,Ai,Hi){Vd(Pe,Ke,0,xt,qt+Ai),Vd(Pe,Ke,1,xt,qt+Hi),Vd(Pe,Ke,2,xt,qt-Hi),Vd(Pe,Ke,3,xt,qt-Ai)}function gd(Pe){return(20091*Pe>>16)+Pe}function tc(Pe,Ke,xt,qt){var Ai,Hi=0,Gi=De(16);for(Ai=0;4>Ai;++Ai){var Zi=Pe[Ke+0]+Pe[Ke+8],dn=Pe[Ke+0]-Pe[Ke+8],xn=(35468*Pe[Ke+4]>>16)-gd(Pe[Ke+12]),er=gd(Pe[Ke+4])+(35468*Pe[Ke+12]>>16);Gi[Hi+0]=Zi+er,Gi[Hi+1]=dn+xn,Gi[Hi+2]=dn-xn,Gi[Hi+3]=Zi-er,Hi+=4,Ke++}for(Ai=Hi=0;4>Ai;++Ai)Zi=(Pe=Gi[Hi+0]+4)+Gi[Hi+8],dn=Pe-Gi[Hi+8],xn=(35468*Gi[Hi+4]>>16)-gd(Gi[Hi+12]),Vd(xt,qt,0,0,Zi+(er=gd(Gi[Hi+4])+(35468*Gi[Hi+12]>>16))),Vd(xt,qt,1,0,dn+xn),Vd(xt,qt,2,0,dn-xn),Vd(xt,qt,3,0,Zi-er),Hi++,qt+=32}function Pd(Pe,Ke,xt,qt){var Ai=Pe[Ke+0]+4,Hi=35468*Pe[Ke+4]>>16,Gi=gd(Pe[Ke+4]),Zi=35468*Pe[Ke+1]>>16;Zh(xt,qt,0,Ai+Gi,Pe=gd(Pe[Ke+1]),Zi),Zh(xt,qt,1,Ai+Hi,Pe,Zi),Zh(xt,qt,2,Ai-Hi,Pe,Zi),Zh(xt,qt,3,Ai-Gi,Pe,Zi)}function r_(Pe,Ke,xt,qt,Ai){tc(Pe,Ke,xt,qt),Ai&&tc(Pe,Ke+16,xt,qt+4)}function Ep(Pe,Ke,xt,qt){Lc(Pe,Ke+0,xt,qt,1),Lc(Pe,Ke+32,xt,qt+128,1)}function Qf(Pe,Ke,xt,qt){var Ai;for(Pe=Pe[Ke+0]+4,Ai=0;4>Ai;++Ai)for(Ke=0;4>Ke;++Ke)Vd(xt,qt,Ke,Ai,Pe)}function Mp(Pe,Ke,xt,qt){Pe[Ke+0]&&bp(Pe,Ke+0,xt,qt),Pe[Ke+16]&&bp(Pe,Ke+16,xt,qt+4),Pe[Ke+32]&&bp(Pe,Ke+32,xt,qt+128),Pe[Ke+48]&&bp(Pe,Ke+48,xt,qt+128+4)}function qh(Pe,Ke,xt,qt){var Ai,Hi=De(16);for(Ai=0;4>Ai;++Ai){var Gi=Pe[Ke+0+Ai]+Pe[Ke+12+Ai],Zi=Pe[Ke+4+Ai]+Pe[Ke+8+Ai],dn=Pe[Ke+4+Ai]-Pe[Ke+8+Ai],xn=Pe[Ke+0+Ai]-Pe[Ke+12+Ai];Hi[0+Ai]=Gi+Zi,Hi[8+Ai]=Gi-Zi,Hi[4+Ai]=xn+dn,Hi[12+Ai]=xn-dn}for(Ai=0;4>Ai;++Ai)Gi=(Pe=Hi[0+4*Ai]+3)+Hi[3+4*Ai],dn=Hi[1+4*Ai]-Hi[2+4*Ai],xn=Pe-Hi[3+4*Ai],xt[qt+0]=Gi+(Zi=Hi[1+4*Ai]+Hi[2+4*Ai])>>3,xt[qt+16]=xn+dn>>3,xt[qt+32]=Gi-Zi>>3,xt[qt+48]=xn-dn>>3,qt+=64}function Zf(Pe,Ke,xt){var qt,Ai=Ke-32,Hi=fc,Gi=255-Pe[Ai-1];for(qt=0;qt<xt;++qt){var Zi,dn=Hi,xn=Gi+Pe[Ke-1];for(Zi=0;Zi<xt;++Zi)Pe[Ke+Zi]=dn[xn+Pe[Ai+Zi]];Ke+=32}}function tf(Pe,Ke){Zf(Pe,Ke,4)}function pp(Pe,Ke){Zf(Pe,Ke,8)}function Bg(Pe,Ke){Zf(Pe,Ke,16)}function fp(Pe,Ke){var xt;for(xt=0;16>xt;++xt)te(Pe,Ke+32*xt,Pe,Ke-32,16)}function vm(Pe,Ke){var xt;for(xt=16;0<xt;--xt)Ce(Pe,Ke,Pe[Ke-1],16),Ke+=32}function lg(Pe,Ke,xt){var qt;for(qt=0;16>qt;++qt)Ce(Ke,xt+32*qt,Pe,16)}function a_(Pe,Ke){var xt,qt=16;for(xt=0;16>xt;++xt)qt+=Pe[Ke-1+32*xt]+Pe[Ke+xt-32];lg(qt>>5,Pe,Ke)}function Wd(Pe,Ke){var xt,qt=8;for(xt=0;16>xt;++xt)qt+=Pe[Ke-1+32*xt];lg(qt>>4,Pe,Ke)}function dg(Pe,Ke){var xt,qt=8;for(xt=0;16>xt;++xt)qt+=Pe[Ke+xt-32];lg(qt>>4,Pe,Ke)}function nf(Pe,Ke){lg(128,Pe,Ke)}function Qo(Pe,Ke,xt){return Pe+2*Ke+xt+2>>2}function cu(Pe,Ke){var xt,qt=Ke-32;for(qt=new Uint8Array([Qo(Pe[qt-1],Pe[qt+0],Pe[qt+1]),Qo(Pe[qt+0],Pe[qt+1],Pe[qt+2]),Qo(Pe[qt+1],Pe[qt+2],Pe[qt+3]),Qo(Pe[qt+2],Pe[qt+3],Pe[qt+4])]),xt=0;4>xt;++xt)te(Pe,Ke+32*xt,qt,0,qt.length)}function rf(Pe,Ke){var xt=Pe[Ke-1],qt=Pe[Ke-1+32],Ai=Pe[Ke-1+64],Hi=Pe[Ke-1+96];za(Pe,Ke+0,16843009*Qo(Pe[Ke-1-32],xt,qt)),za(Pe,Ke+32,16843009*Qo(xt,qt,Ai)),za(Pe,Ke+64,16843009*Qo(qt,Ai,Hi)),za(Pe,Ke+96,16843009*Qo(Ai,Hi,Hi))}function xh(Pe,Ke){var xt,qt=4;for(xt=0;4>xt;++xt)qt+=Pe[Ke+xt-32]+Pe[Ke-1+32*xt];for(qt>>=3,xt=0;4>xt;++xt)Ce(Pe,Ke+32*xt,qt,4)}function cg(Pe,Ke){var xt=Pe[Ke-1+0],qt=Pe[Ke-1+32],Ai=Pe[Ke-1+64],Hi=Pe[Ke-1-32],Gi=Pe[Ke+0-32],Zi=Pe[Ke+1-32],dn=Pe[Ke+2-32],xn=Pe[Ke+3-32];Pe[Ke+0+96]=Qo(qt,Ai,Pe[Ke-1+96]),Pe[Ke+1+96]=Pe[Ke+0+64]=Qo(xt,qt,Ai),Pe[Ke+2+96]=Pe[Ke+1+64]=Pe[Ke+0+32]=Qo(Hi,xt,qt),Pe[Ke+3+96]=Pe[Ke+2+64]=Pe[Ke+1+32]=Pe[Ke+0+0]=Qo(Gi,Hi,xt),Pe[Ke+3+64]=Pe[Ke+2+32]=Pe[Ke+1+0]=Qo(Zi,Gi,Hi),Pe[Ke+3+32]=Pe[Ke+2+0]=Qo(dn,Zi,Gi),Pe[Ke+3+0]=Qo(xn,dn,Zi)}function Bu(Pe,Ke){var xt=Pe[Ke+1-32],qt=Pe[Ke+2-32],Ai=Pe[Ke+3-32],Hi=Pe[Ke+4-32],Gi=Pe[Ke+5-32],Zi=Pe[Ke+6-32],dn=Pe[Ke+7-32];Pe[Ke+0+0]=Qo(Pe[Ke+0-32],xt,qt),Pe[Ke+1+0]=Pe[Ke+0+32]=Qo(xt,qt,Ai),Pe[Ke+2+0]=Pe[Ke+1+32]=Pe[Ke+0+64]=Qo(qt,Ai,Hi),Pe[Ke+3+0]=Pe[Ke+2+32]=Pe[Ke+1+64]=Pe[Ke+0+96]=Qo(Ai,Hi,Gi),Pe[Ke+3+32]=Pe[Ke+2+64]=Pe[Ke+1+96]=Qo(Hi,Gi,Zi),Pe[Ke+3+64]=Pe[Ke+2+96]=Qo(Gi,Zi,dn),Pe[Ke+3+96]=Qo(Zi,dn,dn)}function Hl(Pe,Ke){var xt=Pe[Ke-1+0],qt=Pe[Ke-1+32],Ai=Pe[Ke-1+64],Hi=Pe[Ke-1-32],Gi=Pe[Ke+0-32],Zi=Pe[Ke+1-32],dn=Pe[Ke+2-32],xn=Pe[Ke+3-32];Pe[Ke+0+0]=Pe[Ke+1+64]=Hi+Gi+1>>1,Pe[Ke+1+0]=Pe[Ke+2+64]=Gi+Zi+1>>1,Pe[Ke+2+0]=Pe[Ke+3+64]=Zi+dn+1>>1,Pe[Ke+3+0]=dn+xn+1>>1,Pe[Ke+0+96]=Qo(Ai,qt,xt),Pe[Ke+0+64]=Qo(qt,xt,Hi),Pe[Ke+0+32]=Pe[Ke+1+96]=Qo(xt,Hi,Gi),Pe[Ke+1+32]=Pe[Ke+2+96]=Qo(Hi,Gi,Zi),Pe[Ke+2+32]=Pe[Ke+3+96]=Qo(Gi,Zi,dn),Pe[Ke+3+32]=Qo(Zi,dn,xn)}function rh(Pe,Ke){var xt=Pe[Ke+0-32],qt=Pe[Ke+1-32],Ai=Pe[Ke+2-32],Hi=Pe[Ke+3-32],Gi=Pe[Ke+4-32],Zi=Pe[Ke+5-32],dn=Pe[Ke+6-32],xn=Pe[Ke+7-32];Pe[Ke+0+0]=xt+qt+1>>1,Pe[Ke+1+0]=Pe[Ke+0+64]=qt+Ai+1>>1,Pe[Ke+2+0]=Pe[Ke+1+64]=Ai+Hi+1>>1,Pe[Ke+3+0]=Pe[Ke+2+64]=Hi+Gi+1>>1,Pe[Ke+0+32]=Qo(xt,qt,Ai),Pe[Ke+1+32]=Pe[Ke+0+96]=Qo(qt,Ai,Hi),Pe[Ke+2+32]=Pe[Ke+1+96]=Qo(Ai,Hi,Gi),Pe[Ke+3+32]=Pe[Ke+2+96]=Qo(Hi,Gi,Zi),Pe[Ke+3+64]=Qo(Gi,Zi,dn),Pe[Ke+3+96]=Qo(Zi,dn,xn)}function qf(Pe,Ke){var xt=Pe[Ke-1+0],qt=Pe[Ke-1+32],Ai=Pe[Ke-1+64],Hi=Pe[Ke-1+96];Pe[Ke+0+0]=xt+qt+1>>1,Pe[Ke+2+0]=Pe[Ke+0+32]=qt+Ai+1>>1,Pe[Ke+2+32]=Pe[Ke+0+64]=Ai+Hi+1>>1,Pe[Ke+1+0]=Qo(xt,qt,Ai),Pe[Ke+3+0]=Pe[Ke+1+32]=Qo(qt,Ai,Hi),Pe[Ke+3+32]=Pe[Ke+1+64]=Qo(Ai,Hi,Hi),Pe[Ke+3+64]=Pe[Ke+2+64]=Pe[Ke+0+96]=Pe[Ke+1+96]=Pe[Ke+2+96]=Pe[Ke+3+96]=Hi}function em(Pe,Ke){var xt=Pe[Ke-1+0],qt=Pe[Ke-1+32],Ai=Pe[Ke-1+64],Hi=Pe[Ke-1+96],Gi=Pe[Ke-1-32],Zi=Pe[Ke+0-32],dn=Pe[Ke+1-32],xn=Pe[Ke+2-32];Pe[Ke+0+0]=Pe[Ke+2+32]=xt+Gi+1>>1,Pe[Ke+0+32]=Pe[Ke+2+64]=qt+xt+1>>1,Pe[Ke+0+64]=Pe[Ke+2+96]=Ai+qt+1>>1,Pe[Ke+0+96]=Hi+Ai+1>>1,Pe[Ke+3+0]=Qo(Zi,dn,xn),Pe[Ke+2+0]=Qo(Gi,Zi,dn),Pe[Ke+1+0]=Pe[Ke+3+32]=Qo(xt,Gi,Zi),Pe[Ke+1+32]=Pe[Ke+3+64]=Qo(qt,xt,Gi),Pe[Ke+1+64]=Pe[Ke+3+96]=Qo(Ai,qt,xt),Pe[Ke+1+96]=Qo(Hi,Ai,qt)}function Ch(Pe,Ke){var xt;for(xt=0;8>xt;++xt)te(Pe,Ke+32*xt,Pe,Ke-32,8)}function mp(Pe,Ke){var xt;for(xt=0;8>xt;++xt)Ce(Pe,Ke,Pe[Ke-1],8),Ke+=32}function M(Pe,Ke,xt){var qt;for(qt=0;8>qt;++qt)Ce(Ke,xt+32*qt,Pe,8)}function Ae(Pe,Ke){var xt,qt=8;for(xt=0;8>xt;++xt)qt+=Pe[Ke+xt-32]+Pe[Ke-1+32*xt];M(qt>>4,Pe,Ke)}function i(Pe,Ke){var xt,qt=4;for(xt=0;8>xt;++xt)qt+=Pe[Ke+xt-32];M(qt>>3,Pe,Ke)}function $e(Pe,Ke){var xt,qt=4;for(xt=0;8>xt;++xt)qt+=Pe[Ke-1+32*xt];M(qt>>3,Pe,Ke)}function ua(Pe,Ke){M(128,Pe,Ke)}function mr(Pe,Ke,xt){var qt=Pe[Ke-xt],Ai=Pe[Ke+0],Hi=3*(Ai-qt)+Ng[1020+Pe[Ke-2*xt]-Pe[Ke+xt]],Gi=om[112+(Hi+4>>3)];Pe[Ke-xt]=fc[255+qt+om[112+(Hi+3>>3)]],Pe[Ke+0]=fc[255+Ai-Gi]}function Ll(Pe,Ke,xt,qt){return Hu[255+Pe[Ke-2*xt]-Pe[Ke-xt]]>qt||Hu[255+Pe[Ke+xt]-Pe[Ke+0]]>qt}function dl(Pe,Ke,xt,qt){return 4*Hu[255+Pe[Ke-xt]-Pe[Ke+0]]+Hu[255+Pe[Ke-2*xt]-Pe[Ke+xt]]<=qt}function Ec(Pe,Ke,xt,qt,Ai){var Hi=Pe[Ke-3*xt],Gi=Pe[Ke-2*xt],Zi=Pe[Ke-xt],dn=Pe[Ke+0],xn=Pe[Ke+xt],er=Pe[Ke+2*xt];return 4*Hu[255+Zi-dn]+Hu[255+Gi-xn]>qt?0:Hu[255+Pe[Ke-4*xt]-Hi]<=Ai&&Hu[255+Hi-Gi]<=Ai&&Hu[255+Gi-Zi]<=Ai&&Hu[255+Pe[Ke+3*xt]-er]<=Ai&&Hu[255+er-xn]<=Ai&&Hu[255+xn-dn]<=Ai}function Od(Pe,Ke,xt,qt){var Ai=2*qt+1;for(qt=0;16>qt;++qt)dl(Pe,Ke+qt,xt,Ai)&&mr(Pe,Ke+qt,xt)}function wh(Pe,Ke,xt,qt){var Ai=2*qt+1;for(qt=0;16>qt;++qt)dl(Pe,Ke+qt*xt,1,Ai)&&mr(Pe,Ke+qt*xt,1)}function af(Pe,Ke,xt,qt){var Ai;for(Ai=3;0<Ai;--Ai)Od(Pe,Ke+=4*xt,xt,qt)}function km(Pe,Ke,xt,qt){var Ai;for(Ai=3;0<Ai;--Ai)wh(Pe,Ke+=4,xt,qt)}function ic(Pe,Ke,xt,qt,Ai,Hi,Gi,Zi){for(Hi=2*Hi+1;0<Ai--;){if(Ec(Pe,Ke,xt,Hi,Gi))if(Ll(Pe,Ke,xt,Zi))mr(Pe,Ke,xt);else{var dn=Pe,xn=Ke,er=xt,Ar=dn[xn-2*er],Er=dn[xn-er],hr=dn[xn+0],qr=dn[xn+er],Wr=dn[xn+2*er],Zn=27*(da=Ng[1020+3*(hr-Er)+Ng[1020+Ar-qr]])+63>>7,nr=18*da+63>>7,da=9*da+63>>7;dn[xn-3*er]=fc[255+dn[xn-3*er]+da],dn[xn-2*er]=fc[255+Ar+nr],dn[xn-er]=fc[255+Er+Zn],dn[xn+0]=fc[255+hr-Zn],dn[xn+er]=fc[255+qr-nr],dn[xn+2*er]=fc[255+Wr-da]}Ke+=qt}}function ah(Pe,Ke,xt,qt,Ai,Hi,Gi,Zi){for(Hi=2*Hi+1;0<Ai--;){if(Ec(Pe,Ke,xt,Hi,Gi))if(Ll(Pe,Ke,xt,Zi))mr(Pe,Ke,xt);else{var dn=Pe,xn=Ke,er=xt,Ar=dn[xn-er],Er=dn[xn+0],hr=dn[xn+er],qr=om[112+(4+(Wr=3*(Er-Ar))>>3)],Wr=om[112+(Wr+3>>3)],Zn=qr+1>>1;dn[xn-2*er]=fc[255+dn[xn-2*er]+Zn],dn[xn-er]=fc[255+Ar+Wr],dn[xn+0]=fc[255+Er-qr],dn[xn+er]=fc[255+hr-Zn]}Ke+=qt}}function Op(Pe,Ke,xt,qt,Ai,Hi){ic(Pe,Ke,xt,1,16,qt,Ai,Hi)}function Mf(Pe,Ke,xt,qt,Ai,Hi){ic(Pe,Ke,1,xt,16,qt,Ai,Hi)}function Sh(Pe,Ke,xt,qt,Ai,Hi){var Gi;for(Gi=3;0<Gi;--Gi)ah(Pe,Ke+=4*xt,xt,1,16,qt,Ai,Hi)}function Of(Pe,Ke,xt,qt,Ai,Hi){var Gi;for(Gi=3;0<Gi;--Gi)ah(Pe,Ke+=4,1,xt,16,qt,Ai,Hi)}function sf(Pe,Ke,xt,qt,Ai,Hi,Gi,Zi){ic(Pe,Ke,Ai,1,8,Hi,Gi,Zi),ic(xt,qt,Ai,1,8,Hi,Gi,Zi)}function jc(Pe,Ke,xt,qt,Ai,Hi,Gi,Zi){ic(Pe,Ke,1,Ai,8,Hi,Gi,Zi),ic(xt,qt,1,Ai,8,Hi,Gi,Zi)}function Rm(Pe,Ke,xt,qt,Ai,Hi,Gi,Zi){ah(Pe,Ke+4*Ai,Ai,1,8,Hi,Gi,Zi),ah(xt,qt+4*Ai,Ai,1,8,Hi,Gi,Zi)}function Pm(Pe,Ke,xt,qt,Ai,Hi,Gi,Zi){ah(Pe,Ke+4,1,Ai,8,Hi,Gi,Zi),ah(xt,qt+4,1,Ai,8,Hi,Gi,Zi)}function tm(){this.ba=new nh,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ll,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function bm(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Lm(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ug(){this.ua=0,this.Wa=new Pn,this.vb=new Pn,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Vn,this.yc=new hn}function Fm(){this.xb=this.a=0,this.l=new ti,this.ca=new nh,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Vi,this.Pb=0,this.wd=new Vi,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ug,this.ab=0,this.gc=Le(4,Lm),this.Oc=0}function Tp(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ti,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function im(Pe,Ke,xt,qt,Ai,Hi,Gi){for(Pe=null==Pe?0:Pe[Ke+0],Ke=0;Ke<Gi;++Ke)Ai[Hi+Ke]=Pe+xt[qt+Ke]&255,Pe=Ai[Hi+Ke]}function ep(Pe,Ke,xt,qt,Ai,Hi,Gi){var Zi;if(null==Pe)im(null,null,xt,qt,Ai,Hi,Gi);else for(Zi=0;Zi<Gi;++Zi)Ai[Hi+Zi]=Pe[Ke+Zi]+xt[qt+Zi]&255}function lf(Pe,Ke,xt,qt,Ai,Hi,Gi){if(null==Pe)im(null,null,xt,qt,Ai,Hi,Gi);else{var Zi,dn=Pe[Ke+0],xn=dn,er=dn;for(Zi=0;Zi<Gi;++Zi)xn=er+(dn=Pe[Ke+Zi])-xn,er=xt[qt+Zi]+(-256&xn?0>xn?0:255:xn)&255,xn=dn,Ai[Hi+Zi]=er}}function ym(Pe,Ke,xt,qt){var Ai=Ke.width,Hi=Ke.o;if(ue(null!=Pe&&null!=Ke),0>xt||0>=qt||xt+qt>Hi)return null;if(!Pe.Cc){if(null==Pe.ga){var Gi;if(Pe.ga=new Tp,(Gi=null==Pe.ga)||(Gi=Ke.width*Ke.o,ue(0==Pe.Gb.length),Pe.Gb=De(Gi),Pe.Uc=0,null==Pe.Gb?Gi=0:(Pe.mb=Pe.Gb,Pe.nb=Pe.Uc,Pe.rc=null,Gi=1),Gi=!Gi),!Gi){var Zi=Pe.Fa,dn=Pe.P,xn=Pe.qc,er=Pe.mb,Ar=Pe.nb,Er=dn+1,hr=xn-1,qr=(Gi=Pe.ga).l;if(ue(null!=Zi&&null!=er&&null!=Ke),ap[0]=null,ap[1]=im,ap[2]=ep,ap[3]=lf,Gi.ca=er,Gi.tb=Ar,Gi.c=Ke.width,Gi.i=Ke.height,ue(0<Gi.c&&0<Gi.i),1>=xn)Ke=0;else if(Gi.$a=3&Zi[dn+0],Gi.Z=Zi[dn+0]>>2&3,Gi.Lc=Zi[dn+0]>>4&3,dn=Zi[dn+0]>>6&3,0>Gi.$a||1<Gi.$a||4<=Gi.Z||1<Gi.Lc||dn)Ke=0;else if(qr.put=Id,qr.ac=Sc,qr.bc=ad,qr.ma=Gi,qr.width=Ke.width,qr.height=Ke.height,qr.Da=Ke.Da,qr.v=Ke.v,qr.va=Ke.va,qr.j=Ke.j,qr.o=Ke.o,Gi.$a)e:{ue(1==Gi.$a),Ke=od();t:for(;;){if(null==Ke){Ke=0;break e}if(ue(null!=Gi),Gi.mc=Ke,Ke.c=Gi.c,Ke.i=Gi.i,Ke.l=Gi.l,Ke.l.ma=Gi,Ke.l.width=Gi.c,Ke.l.height=Gi.i,Ke.a=0,wr(Ke.m,Zi,Er,hr),!Gs(Gi.c,Gi.i,1,Ke,null)||(1==Ke.ab&&3==Ke.gc[0].hc&&Cu(Ke.s)?(Gi.ic=1,Zi=Ke.c*Ke.i,Ke.Ta=null,Ke.Ua=0,Ke.V=De(Zi),Ke.Ba=0,null==Ke.V?(Ke.a=1,Ke=0):Ke=1):(Gi.ic=0,Ke=Rd(Ke,Gi.c)),!Ke))break t;Ke=1;break e}Gi.mc=null,Ke=0}else Ke=hr>=Gi.c*Gi.i;Gi=!Ke}if(Gi)return null;1!=Pe.ga.Lc?Pe.Ga=0:qt=Hi-xt}ue(null!=Pe.ga),ue(xt+qt<=Hi);e:{if(Ke=(Zi=Pe.ga).c,Hi=Zi.l.o,0==Zi.$a){if(Er=Pe.rc,hr=Pe.Vc,qr=Pe.Fa,xn=Pe.mb,er=Pe.nb+xt*Ke,ue((dn=Pe.P+1+xt*Ke)<=Pe.P+Pe.qc),0!=Zi.Z)for(ue(null!=ap[Zi.Z]),Gi=0;Gi<qt;++Gi)ap[Zi.Z](Er,hr,qr,dn,xn,er,Ke),Er=xn,hr=er,er+=Ke,dn+=Ke;else for(Gi=0;Gi<qt;++Gi)te(xn,er,qr,dn,Ke),Er=xn,hr=er,er+=Ke,dn+=Ke;Pe.rc=Er,Pe.Vc=hr}else{if(ue(null!=Zi.mc),Ke=xt+qt,ue(null!=(Gi=Zi.mc)),ue(Ke<=Gi.i),Gi.C>=Ke)Ke=1;else if(Zi.ic||yr(),Zi.ic){Zi=Gi.V,Er=Gi.Ba;var Wr=Gi.i,Zn=(qr=1,dn=Gi.$/(hr=Gi.c),xn=Gi.$%hr,er=Gi.m,Ar=Gi.s,Gi.$),nr=hr*Wr,da=hr*Ke,ya=Ar.wc,Qr=Zn<da?Dd(Ar,xn,dn):null;ue(Zn<=nr),ue(Ke<=Wr),ue(Cu(Ar));t:for(;;){for(;!er.h&&Zn<da;){if(xn&ya||(Qr=Dd(Ar,xn,dn)),ue(null!=Qr),lr(er),256>(Wr=Pc(Qr.G[0],Qr.H[0],er)))Zi[Er+Zn]=Wr,++Zn,++xn>=hr&&(xn=0,++dn<=Ke&&!(dn%16)&&md(Gi,dn));else{if(!(280>Wr)){qr=0;break t}Wr=wd(Wr-256,er);var xo,to=Pc(Qr.G[4],Qr.H[4],er);if(lr(er),!(Zn>=(to=kd(hr,to=wd(to,er)))&&nr-Zn>=Wr)){qr=0;break t}for(xo=0;xo<Wr;++xo)Zi[Er+Zn+xo]=Zi[Er+Zn+xo-to];for(Zn+=Wr,xn+=Wr;xn>=hr;)xn-=hr,++dn<=Ke&&!(dn%16)&&md(Gi,dn);Zn<da&&xn&ya&&(Qr=Dd(Ar,xn,dn))}ue(er.h==Ln(er))}md(Gi,dn>Ke?Ke:dn);break t}!qr||er.h&&Zn<nr?(qr=0,Gi.a=er.h?5:3):Gi.$=Zn,Ke=qr}else Ke=uc(Gi,Gi.V,Gi.Ba,Gi.c,Gi.i,Ke,$h);if(!Ke){qt=0;break e}}xt+qt>=Hi&&(Pe.Cc=1),qt=1}if(!qt)return null;if(Pe.Cc&&(null!=(qt=Pe.ga)&&(qt.mc=null),Pe.ga=null,0<Pe.Ga))return alert("todo:WebPDequantizeLevels"),null}return Pe.nb+xt*Ai}function mt(Pe,Ke,xt,qt,Ai,Hi){for(;0<Ai--;){var Gi,Zi=Pe,dn=Ke+(xt?1:0),xn=Pe,er=Ke+(xt?0:3);for(Gi=0;Gi<qt;++Gi){var Ar=xn[er+4*Gi];255!=Ar&&(Zi[dn+4*Gi+0]=Zi[dn+4*Gi+0]*(Ar*=32897)>>23,Zi[dn+4*Gi+1]=Zi[dn+4*Gi+1]*Ar>>23,Zi[dn+4*Gi+2]=Zi[dn+4*Gi+2]*Ar>>23)}Ke+=Hi}}function ki(Pe,Ke,xt,qt,Ai){for(;0<qt--;){var Hi;for(Hi=0;Hi<xt;++Hi){var Gi=Pe[Ke+2*Hi+0],Zi=15&(xn=Pe[Ke+2*Hi+1]),dn=4369*Zi,xn=(240&xn|xn>>4)*dn>>16;Pe[Ke+2*Hi+0]=(240&Gi|Gi>>4)*dn>>16&240|(15&Gi|Gi<<4)*dn>>16>>4&15,Pe[Ke+2*Hi+1]=240&xn|Zi}Ke+=Ai}}function Mn(Pe,Ke,xt,qt,Ai,Hi,Gi,Zi){var dn,xn,er=255;for(xn=0;xn<Ai;++xn){for(dn=0;dn<qt;++dn){var Ar=Pe[Ke+dn];Hi[Gi+4*dn]=Ar,er&=Ar}Ke+=xt,Gi+=Zi}return 255!=er}function Xn(Pe,Ke,xt,qt,Ai){var Hi;for(Hi=0;Hi<Ai;++Hi)xt[qt+Hi]=Pe[Ke+Hi]>>8}function yr(){Mu=mt,cf=ki,Nm=Mn,hg=Xn}function $r(Pe,Ke,xt){Rn[Pe]=function(qt,Ai,Hi,Gi,Zi,dn,xn,er,Ar,Er,hr,qr,Wr,Zn,nr,da,ya){var Qr,xo=ya-1>>1,to=Zi[dn+0]|xn[er+0]<<16,Bo=Ar[Er+0]|hr[qr+0]<<16;ue(null!=qt);var ao=3*to+Bo+131074>>2;for(Ke(qt[Ai+0],255&ao,ao>>16,Wr,Zn),null!=Hi&&Ke(Hi[Gi+0],255&(ao=3*Bo+to+131074>>2),ao>>16,nr,da),Qr=1;Qr<=xo;++Qr){var Ul=Zi[dn+Qr]|xn[er+Qr]<<16,Gl=Ar[Er+Qr]|hr[qr+Qr]<<16,vl=to+Ul+Bo+Gl+524296,ps=vl+2*(Ul+Bo)>>3;ao=ps+to>>1,to=(vl=vl+2*(to+Gl)>>3)+Ul>>1,Ke(qt[Ai+2*Qr-1],255&ao,ao>>16,Wr,Zn+(2*Qr-1)*xt),Ke(qt[Ai+2*Qr-0],255&to,to>>16,Wr,Zn+(2*Qr-0)*xt),null!=Hi&&(to=ps+Gl>>1,Ke(Hi[Gi+2*Qr-1],255&(ao=vl+Bo>>1),ao>>16,nr,da+(2*Qr-1)*xt),Ke(Hi[Gi+2*Qr+0],255&to,to>>16,nr,da+(2*Qr+0)*xt)),to=Ul,Bo=Gl}1&ya||(Ke(qt[Ai+ya-1],255&(ao=3*to+Bo+131074>>2),ao>>16,Wr,Zn+(ya-1)*xt),null!=Hi&&Ke(Hi[Gi+ya-1],255&(ao=3*Bo+to+131074>>2),ao>>16,nr,da+(ya-1)*xt))}}function Ta(){kh[uf]=gg,kh[sm]=_g,kh[Lp]=L_,kh[Mc]=F_,kh[Lf]=Nf,kh[Vg]=Wm,kh[zu]=B_,kh[Ff]=_g,kh[Vm]=F_,kh[Th]=Nf,kh[Ah]=Wm}function ho(Pe){return Pe&~jm?0>Pe?0:255:Pe>>Rh}function Go(Pe,Ke){return ho((19077*Pe>>8)+(26149*Ke>>8)-14234)}function ss(Pe,Ke,xt){return ho((19077*Pe>>8)-(6419*Ke>>8)-(13320*xt>>8)+8708)}function Xs(Pe,Ke){return ho((19077*Pe>>8)+(33050*Ke>>8)-17685)}function wl(Pe,Ke,xt,qt,Ai){qt[Ai+0]=Go(Pe,xt),qt[Ai+1]=ss(Pe,Ke,xt),qt[Ai+2]=Xs(Pe,Ke)}function jd(Pe,Ke,xt,qt,Ai){qt[Ai+0]=Xs(Pe,Ke),qt[Ai+1]=ss(Pe,Ke,xt),qt[Ai+2]=Go(Pe,xt)}function sd(Pe,Ke,xt,qt,Ai){var Hi=ss(Pe,Ke,xt);Ke=Hi<<3&224|Xs(Pe,Ke)>>3,qt[Ai+0]=248&Go(Pe,xt)|Hi>>5,qt[Ai+1]=Ke}function hc(Pe,Ke,xt,qt,Ai){var Hi=240&Xs(Pe,Ke)|15;qt[Ai+0]=240&Go(Pe,xt)|ss(Pe,Ke,xt)>>4,qt[Ai+1]=Hi}function nc(Pe,Ke,xt,qt,Ai){qt[Ai+0]=255,wl(Pe,Ke,xt,qt,Ai+1)}function Hd(Pe,Ke,xt,qt,Ai){jd(Pe,Ke,xt,qt,Ai),qt[Ai+3]=255}function gp(Pe,Ke,xt,qt,Ai){wl(Pe,Ke,xt,qt,Ai),qt[Ai+3]=255}function tp(Pe,Ke){return 0>Pe?0:Pe>Ke?Ke:Pe}function ld(Pe,Ke,xt){Rn[Pe]=function(qt,Ai,Hi,Gi,Zi,dn,xn,er,Ar){for(var Er=er+(-2&Ar)*xt;er!=Er;)Ke(qt[Ai+0],Hi[Gi+0],Zi[dn+0],xn,er),Ke(qt[Ai+1],Hi[Gi+0],Zi[dn+0],xn,er+xt),Ai+=2,++Gi,++dn,er+=2*xt;1&Ar&&Ke(qt[Ai+0],Hi[Gi+0],Zi[dn+0],xn,er)}}function nm(Pe,Ke,xt){return 0==xt?0==Pe?0==Ke?6:5:0==Ke?4:0:xt}function Bm(Pe,Ke,xt,qt,Ai){switch(Pe>>>30){case 3:Lc(Ke,xt,qt,Ai,0);break;case 2:Td(Ke,xt,qt,Ai);break;case 1:bp(Ke,xt,qt,Ai)}}function Tf(Pe,Ke){var xt,qt,Ai=Ke.M,Hi=Ke.Nb,Gi=Pe.oc,Zi=Pe.pc+40,dn=Pe.oc,xn=Pe.pc+584,er=Pe.oc,Ar=Pe.pc+600;for(xt=0;16>xt;++xt)Gi[Zi+32*xt-1]=129;for(xt=0;8>xt;++xt)dn[xn+32*xt-1]=129,er[Ar+32*xt-1]=129;for(0<Ai?Gi[Zi-1-32]=dn[xn-1-32]=er[Ar-1-32]=129:(Ce(Gi,Zi-32-1,127,21),Ce(dn,xn-32-1,127,9),Ce(er,Ar-32-1,127,9)),qt=0;qt<Pe.za;++qt){var Er=Ke.ya[Ke.aa+qt];if(0<qt){for(xt=-1;16>xt;++xt)te(Gi,Zi+32*xt-4,Gi,Zi+32*xt+12,4);for(xt=-1;8>xt;++xt)te(dn,xn+32*xt-4,dn,xn+32*xt+4,4),te(er,Ar+32*xt-4,er,Ar+32*xt+4,4)}var hr=Pe.Gd,qr=Pe.Hd+qt,Wr=Er.ad,Zn=Er.Hc;if(0<Ai&&(te(Gi,Zi-32,hr[qr].y,0,16),te(dn,xn-32,hr[qr].f,0,8),te(er,Ar-32,hr[qr].ea,0,8)),Er.Za){var nr=Gi,da=Zi-32+16;for(0<Ai&&(qt>=Pe.za-1?Ce(nr,da,hr[qr].y[15],4):te(nr,da,hr[qr+1].y,0,4)),xt=0;4>xt;xt++)nr[da+128+xt]=nr[da+256+xt]=nr[da+384+xt]=nr[da+0+xt];for(xt=0;16>xt;++xt,Zn<<=2)Np[Er.Ob[xt]](nr=Gi,da=Zi+gv[xt]),Bm(Zn,Wr,16*+xt,nr,da)}else if(nr=nm(qt,Ai,Er.Ob[0]),rp[nr](Gi,Zi),0!=Zn)for(xt=0;16>xt;++xt,Zn<<=2)Bm(Zn,Wr,16*+xt,Gi,Zi+gv[xt]);for(xt=Er.Gc,nr=nm(qt,Ai,Er.Dd),pf[nr](dn,xn),pf[nr](er,Ar),Zn=Wr,nr=dn,da=xn,255&(Er=0|xt)&&(170&Er?sh(Zn,256,nr,da):Fc(Zn,256,nr,da)),Er=er,Zn=Ar,255&(xt>>=8)&&(170&xt?sh(Wr,320,Er,Zn):Fc(Wr,320,Er,Zn)),Ai<Pe.Ub-1&&(te(hr[qr].y,0,Gi,Zi+480,16),te(hr[qr].f,0,dn,xn+224,8),te(hr[qr].ea,0,er,Ar+224,8)),hr=Pe.sa,qr=Pe.ta+16*qt+16*Hi*Pe.R,Wr=Pe.qa,Er=Pe.ra+8*qt+(xt=8*Hi*Pe.B),Zn=Pe.Ha,nr=Pe.Ia+8*qt+xt,xt=0;16>xt;++xt)te(hr,qr+xt*Pe.R,Gi,Zi+32*xt,16);for(xt=0;8>xt;++xt)te(Wr,Er+xt*Pe.B,dn,xn+32*xt,8),te(Zn,nr+xt*Pe.B,er,Ar+32*xt,8)}}function df(Pe,Ke,xt,qt,Ai,Hi,Gi,Zi,dn){var xn=[0],er=[0],Ar=0,Er=null!=dn?dn.kd:0,hr=dn??new bm;if(null==Pe||12>xt)return 7;hr.data=Pe,hr.w=Ke,hr.ha=xt,Ke=[Ke],xt=[xt],hr.gb=[hr.gb];e:{var qr=Ke,Wr=xt,Zn=hr.gb;if(ue(null!=Pe),ue(null!=Wr),ue(null!=Zn),Zn[0]=0,12<=Wr[0]&&!B(Pe,qr[0],"RIFF")){if(B(Pe,qr[0]+8,"WEBP")){Zn=3;break e}var nr=Oa(Pe,qr[0]+4);if(12>nr||4294967286<nr){Zn=3;break e}if(Er&&nr>Wr[0]-8){Zn=7;break e}Zn[0]=nr,qr[0]+=12,Wr[0]-=12}Zn=0}if(0!=Zn)return Zn;for(nr=0<hr.gb[0],xt=xt[0];;){e:{var da=Pe;Wr=Ke,Zn=xt;var ya=xn,Qr=er,xo=qr=[0];if((ao=Ar=[Ar])[0]=0,8>Zn[0])Zn=7;else{if(!B(da,Wr[0],"VP8X")){if(10!=Oa(da,Wr[0]+4)){Zn=3;break e}if(18>Zn[0]){Zn=7;break e}var to=Oa(da,Wr[0]+8),Bo=1+Xa(da,Wr[0]+12);if(2147483648<=Bo*(da=1+Xa(da,Wr[0]+15))){Zn=3;break e}null!=xo&&(xo[0]=to),null!=ya&&(ya[0]=Bo),null!=Qr&&(Qr[0]=da),Wr[0]+=18,Zn[0]-=18,ao[0]=1}Zn=0}}if(Ar=Ar[0],0!=Zn)return Zn;if(Wr=!!(2&(qr=qr[0])),!nr&&Ar)return 3;if(null!=Hi&&(Hi[0]=!!(16&qr)),null!=Gi&&(Gi[0]=Wr),null!=Zi&&(Zi[0]=0),Gi=xn[0],qr=er[0],Ar&&Wr&&null==dn){Zn=0;break}if(4>xt){Zn=7;break}if(nr&&Ar||!nr&&!Ar&&!B(Pe,Ke[0],"ALPH")){xt=[xt],hr.na=[hr.na],hr.P=[hr.P],hr.Sa=[hr.Sa];e:{Zn=Ke,nr=xt;var ao=hr.gb;ya=hr.na,Qr=hr.P,xo=hr.Sa,Bo=22,ue(null!=(to=Pe)),ue(null!=nr),da=Zn[0];var Ul=nr[0];for(ue(null!=ya),ue(null!=xo),ya[0]=null,Qr[0]=null,xo[0]=0;;){if(Zn[0]=da,nr[0]=Ul,8>Ul){Zn=7;break e}var Gl=Oa(to,da+4);if(4294967286<Gl){Zn=3;break e}var vl=8+Gl+1&-2;if(Bo+=vl,0<ao&&Bo>ao){Zn=3;break e}if(!B(to,da,"VP8 ")||!B(to,da,"VP8L")){Zn=0;break e}if(Ul[0]<vl){Zn=7;break e}B(to,da,"ALPH")||(ya[0]=to,Qr[0]=da+8,xo[0]=Gl),da+=vl,Ul-=vl}}if(xt=xt[0],hr.na=hr.na[0],hr.P=hr.P[0],hr.Sa=hr.Sa[0],0!=Zn)break}xt=[xt],hr.Ja=[hr.Ja],hr.xa=[hr.xa];e:if(ao=Pe,Zn=Ke,nr=xt,ya=hr.gb[0],Qr=hr.Ja,xo=hr.xa,to=Zn[0],da=!B(ao,to,"VP8 "),Bo=!B(ao,to,"VP8L"),ue(null!=ao),ue(null!=nr),ue(null!=Qr),ue(null!=xo),8>nr[0])Zn=7;else{if(da||Bo){if(ao=Oa(ao,to+4),12<=ya&&ao>ya-12){Zn=3;break e}if(Er&&ao>nr[0]-8){Zn=7;break e}Qr[0]=ao,Zn[0]+=8,nr[0]-=8,xo[0]=Bo}else xo[0]=5<=nr[0]&&47==ao[to+0]&&!(ao[to+4]>>5),Qr[0]=nr[0];Zn=0}if(xt=xt[0],hr.Ja=hr.Ja[0],hr.xa=hr.xa[0],Ke=Ke[0],0!=Zn)break;if(4294967286<hr.Ja)return 3;if(null==Zi||Wr||(Zi[0]=hr.xa?2:1),Gi=[Gi],qr=[qr],hr.xa){if(5>xt){Zn=7;break}Zi=Gi,Er=qr,Wr=Hi,null==Pe||5>xt?Pe=0:5<=xt&&47==Pe[Ke+0]&&!(Pe[Ke+4]>>5)?(nr=[0],ao=[0],ya=[0],wr(Qr=new Vi,Pe,Ke,xt),Do(Qr,nr,ao,ya)?(null!=Zi&&(Zi[0]=nr[0]),null!=Er&&(Er[0]=ao[0]),null!=Wr&&(Wr[0]=ya[0]),Pe=1):Pe=0):Pe=0}else{if(10>xt){Zn=7;break}Zi=qr,null==Pe||10>xt||!fo(Pe,Ke+3,xt-3)?Pe=0:(Er=Pe[Ke+0]|Pe[Ke+1]<<8|Pe[Ke+2]<<16,Wr=16383&(Pe[Ke+7]<<8|Pe[Ke+6]),Pe=16383&(Pe[Ke+9]<<8|Pe[Ke+8]),1&Er||3<(Er>>1&7)||!(Er>>4&1)||Er>>5>=hr.Ja||!Wr||!Pe?Pe=0:(Gi&&(Gi[0]=Wr),Zi&&(Zi[0]=Pe),Pe=1))}if(!Pe||(Gi=Gi[0],qr=qr[0],Ar&&(xn[0]!=Gi||er[0]!=qr)))return 3;null!=dn&&(dn[0]=hr,dn.offset=Ke-dn.w,ue(4294967286>Ke-dn.w),ue(dn.offset==dn.ha-xt));break}return 0==Zn||7==Zn&&Ar&&null==dn?(null!=Hi&&(Hi[0]|=null!=hr.na&&0<hr.na.length),null!=qt&&(qt[0]=Gi),null!=Ai&&(Ai[0]=qr),0):Zn}function Dh(Pe,Ke,xt){var qt=Ke.width,Ai=Ke.height,Hi=0,Gi=0,Zi=qt,dn=Ai;if(Ke.Da=null!=Pe&&0<Pe.Da,Ke.Da&&(Zi=Pe.cd,dn=Pe.bd,Hi=Pe.v,Gi=Pe.j,11>xt||(Hi&=-2,Gi&=-2),0>Hi||0>Gi||0>=Zi||0>=dn||Hi+Zi>qt||Gi+dn>Ai))return 0;if(Ke.v=Hi,Ke.j=Gi,Ke.va=Hi+Zi,Ke.o=Gi+dn,Ke.U=Zi,Ke.T=dn,Ke.da=null!=Pe&&0<Pe.da,Ke.da){if(!cs(Zi,dn,xt=[Pe.ib],Hi=[Pe.hb]))return 0;Ke.ib=xt[0],Ke.hb=Hi[0]}return Ke.ob=null!=Pe&&Pe.ob,Ke.Kb=null==Pe||!Pe.Sd,Ke.da&&(Ke.ob=Ke.ib<3*qt/4&&Ke.hb<3*Ai/4,Ke.Kb=0),1}function ip(Pe){if(null==Pe)return 2;if(11>Pe.S){var Ke=Pe.f.RGBA;Ke.fb+=(Pe.height-1)*Ke.A,Ke.A=-Ke.A}else(Ke=Pe.f.kb).O+=((Pe=Pe.height)-1)*Ke.fa,Ke.fa=-Ke.fa,Ke.N+=(Pe-1>>1)*Ke.Ab,Ke.Ab=-Ke.Ab,Ke.W+=(Pe-1>>1)*Ke.Db,Ke.Db=-Ke.Db,null!=Ke.F&&(Ke.J+=(Pe-1)*Ke.lb,Ke.lb=-Ke.lb);return 0}function Af(Pe,Ke,xt,qt){if(null==qt||0>=Pe||0>=Ke)return 2;if(null!=xt){if(xt.Da){var Ai=xt.cd,Hi=xt.bd,Gi=-2&xt.v,Zi=-2&xt.j;if(0>Gi||0>Zi||0>=Ai||0>=Hi||Gi+Ai>Pe||Zi+Hi>Ke)return 2;Pe=Ai,Ke=Hi}if(xt.da){if(!cs(Pe,Ke,Ai=[xt.ib],Hi=[xt.hb]))return 2;Pe=Ai[0],Ke=Hi[0]}}qt.width=Pe,qt.height=Ke;e:{var dn=qt.width,xn=qt.height;if(Pe=qt.S,0>=dn||0>=xn||!(Pe>=uf&&13>Pe))Pe=2;else{if(0>=qt.Rd&&null==qt.sd){Gi=Hi=Ai=Ke=0;var er=(Zi=dn*jv[Pe])*xn;if(11>Pe||(Hi=(xn+1)/2*(Ke=(dn+1)/2),12==Pe&&(Gi=(Ai=dn)*xn)),null==(xn=De(er+2*Hi+Gi))){Pe=1;break e}qt.sd=xn,11>Pe?((dn=qt.f.RGBA).eb=xn,dn.fb=0,dn.A=Zi,dn.size=er):((dn=qt.f.kb).y=xn,dn.O=0,dn.fa=Zi,dn.Fd=er,dn.f=xn,dn.N=0+er,dn.Ab=Ke,dn.Cd=Hi,dn.ea=xn,dn.W=0+er+Hi,dn.Db=Ke,dn.Ed=Hi,12==Pe&&(dn.F=xn,dn.J=0+er+2*Hi),dn.Tc=Gi,dn.lb=Ai)}if(Ke=1,Hi=qt.width,Gi=qt.height,(Ai=qt.S)>=uf&&13>Ai)if(11>Ai)Pe=qt.f.RGBA,Ke&=(Zi=Math.abs(Pe.A))*(Gi-1)+Hi<=Pe.size,Ke&=Zi>=Hi*jv[Ai],Ke&=null!=Pe.eb;else{Pe=qt.f.kb,Zi=(Hi+1)/2,er=(Gi+1)/2,dn=Math.abs(Pe.fa),xn=Math.abs(Pe.Ab);var Ar=Math.abs(Pe.Db),Er=Math.abs(Pe.lb);Ke&=dn*(Gi-1)+Hi<=Pe.Fd,Ke&=xn*(er-1)+Zi<=Pe.Cd,Ke=(Ke&=Ar*(er-1)+Zi<=Pe.Ed)&dn>=Hi&xn>=Zi&Ar>=Zi,Ke&=null!=Pe.y,Ke&=null!=Pe.f,Ke&=null!=Pe.ea,12==Ai&&(Ke&=Er>=Hi,Ke&=Er*(Gi-1)+Hi<=Pe.Tc,Ke&=null!=Pe.F)}else Ke=0;Pe=Ke?0:2}}return 0!=Pe||null!=xt&&xt.fd&&(Pe=ip(qt)),Pe}var uu=64,Ap=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],rm=24,wu=32,oh=8,zl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];ka("Predictor0","PredictorAdd0"),Rn.Predictor0=function(){return 4278190080},Rn.Predictor1=function(Pe){return Pe},Rn.Predictor2=function(Pe,Ke,xt){return Ke[xt+0]},Rn.Predictor3=function(Pe,Ke,xt){return Ke[xt+1]},Rn.Predictor4=function(Pe,Ke,xt){return Ke[xt-1]},Rn.Predictor5=function(Pe,Ke,xt){return qa(qa(Pe,Ke[xt+1]),Ke[xt+0])},Rn.Predictor6=function(Pe,Ke,xt){return qa(Pe,Ke[xt-1])},Rn.Predictor7=function(Pe,Ke,xt){return qa(Pe,Ke[xt+0])},Rn.Predictor8=function(Pe,Ke,xt){return qa(Ke[xt-1],Ke[xt+0])},Rn.Predictor9=function(Pe,Ke,xt){return qa(Ke[xt+0],Ke[xt+1])},Rn.Predictor10=function(Pe,Ke,xt){return qa(qa(Pe,Ke[xt-1]),qa(Ke[xt+0],Ke[xt+1]))},Rn.Predictor11=function(Pe,Ke,xt){var qt=Ke[xt+0];return 0>=Ds(qt>>24&255,Pe>>24&255,(Ke=Ke[xt-1])>>24&255)+Ds(qt>>16&255,Pe>>16&255,Ke>>16&255)+Ds(qt>>8&255,Pe>>8&255,Ke>>8&255)+Ds(255&qt,255&Pe,255&Ke)?qt:Pe},Rn.Predictor12=function(Pe,Ke,xt){var qt=Ke[xt+0];return(Po((Pe>>24&255)+(qt>>24&255)-((Ke=Ke[xt-1])>>24&255))<<24|Po((Pe>>16&255)+(qt>>16&255)-(Ke>>16&255))<<16|Po((Pe>>8&255)+(qt>>8&255)-(Ke>>8&255))<<8|Po((255&Pe)+(255&qt)-(255&Ke)))>>>0},Rn.Predictor13=function(Pe,Ke,xt){var qt=Ke[xt-1];return(Jo((Pe=qa(Pe,Ke[xt+0]))>>24&255,qt>>24&255)<<24|Jo(Pe>>16&255,qt>>16&255)<<16|Jo(Pe>>8&255,qt>>8&255)<<8|Jo(255&Pe,255&qt))>>>0};var hu=Rn.PredictorAdd0;Rn.PredictorAdd1=Us,ka("Predictor2","PredictorAdd2"),ka("Predictor3","PredictorAdd3"),ka("Predictor4","PredictorAdd4"),ka("Predictor5","PredictorAdd5"),ka("Predictor6","PredictorAdd6"),ka("Predictor7","PredictorAdd7"),ka("Predictor8","PredictorAdd8"),ka("Predictor9","PredictorAdd9"),ka("Predictor10","PredictorAdd10"),ka("Predictor11","PredictorAdd11"),ka("Predictor12","PredictorAdd12"),ka("Predictor13","PredictorAdd13");var _p=Rn.PredictorAdd2;bs("ColorIndexInverseTransform","MapARGB","32b",function(Pe){return Pe>>8&255},function(Pe){return Pe}),bs("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(Pe){return Pe},function(Pe){return Pe>>8&255});var Su,Nu=Rn.ColorIndexInverseTransform,Sl=Rn.MapARGB,Ip=Rn.VP8LColorIndexInverseTransformAlpha,If=Rn.MapAlpha,vp=Rn.VP8LPredictorsAdd=[];vp.length=16,(Rn.VP8LPredictors=[]).length=16,(Rn.VP8LPredictorsAdd_C=[]).length=16,(Rn.VP8LPredictors_C=[]).length=16;var kp,Eh,Du,Vu,Rp,kf,Pp,Lc,Td,sh,bp,Fc,yp,Eu,am,Rf,o_,Bc,Mh,_l,_d,zd,pc,Oh,Mu,cf,Nm,hg,pg=De(511),fg=De(2041),s_=De(225),Pf=De(767),mv=0,Ng=fg,om=s_,fc=Pf,Hu=pg,uf=0,sm=1,Lp=2,Mc=3,Lf=4,Vg=5,zu=6,Ff=7,Vm=8,Th=9,Ah=10,Bf=[2,3,7],lm=[3,3,11],dm=[280,256,256,256,40],Hm=[0,1,1,1,0],Ih=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Uu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],xm=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],P_=8,Fp=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Hg=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],zm=null,np=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Gu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Bp=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Um=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],mg=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],hf=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Wv=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],rp=[],Np=[],pf=[],zg=1,Gm=2,ap=[],kh=[];$r("UpsampleRgbLinePair",wl,3),$r("UpsampleBgrLinePair",jd,3),$r("UpsampleRgbaLinePair",gp,4),$r("UpsampleBgraLinePair",Hd,4),$r("UpsampleArgbLinePair",nc,4),$r("UpsampleRgba4444LinePair",hc,2),$r("UpsampleRgb565LinePair",sd,2);var gg=Rn.UpsampleRgbLinePair,L_=Rn.UpsampleBgrLinePair,_g=Rn.UpsampleRgbaLinePair,F_=Rn.UpsampleBgraLinePair,Nf=Rn.UpsampleArgbLinePair,Wm=Rn.UpsampleRgba4444LinePair,B_=Rn.UpsampleRgb565LinePair,vg=16,Vf=1<<vg-1,Ou=-227,Cm=482,Rh=6,jm=(256<<Rh)-1,Ym=0,lh=De(256),Ug=De(256),N_=De(256),bg=De(256),l_=De(Cm-Ou),d_=De(Cm-Ou);ld("YuvToRgbRow",wl,3),ld("YuvToBgrRow",jd,3),ld("YuvToRgbaRow",gp,4),ld("YuvToBgraRow",Hd,4),ld("YuvToArgbRow",nc,4),ld("YuvToRgba4444Row",hc,2),ld("YuvToRgb565Row",sd,2);var gv=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],yg=[0,2,8],c_=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(Pe,Ke,xt,qt,Ai){var Hi=sm,Gi=new tm,Zi=new nh;Gi.ba=Zi,Zi.S=Hi,Zi.width=[Zi.width],Zi.height=[Zi.height];var dn=Zi.width,xn=Zi.height,er=new Lu;if(null==er||null==Pe)var Ar=2;else ue(null!=er),Ar=df(Pe,Ke,xt,er.width,er.height,er.Pd,er.Qd,er.format,null);if(0!=Ar?dn=0:(null!=dn&&(dn[0]=er.width[0]),null!=xn&&(xn[0]=er.height[0]),dn=1),dn){Zi.width=Zi.width[0],Zi.height=Zi.height[0],null!=qt&&(qt[0]=Zi.width),null!=Ai&&(Ai[0]=Zi.height);e:{if(qt=new ti,(Ai=new bm).data=Pe,Ai.w=Ke,Ai.ha=xt,Ai.kd=1,Ke=[0],ue(null!=Ai),(0==(Pe=df(Ai.data,Ai.w,Ai.ha,null,null,null,Ke,null,Ai))||7==Pe)&&Ke[0]&&(Pe=4),0==(Ke=Pe)){if(ue(null!=Gi),qt.data=Ai.data,qt.w=Ai.w+Ai.offset,qt.ha=Ai.ha-Ai.offset,qt.put=Id,qt.ac=Sc,qt.bc=ad,qt.ma=Gi,Ai.xa){if(null==(Pe=od())){Gi=1;break e}if(function(Er,hr){var qr=[0],Wr=[0],Zn=[0];t:for(;;){if(null==Er)return 0;if(null==hr)return Er.a=2,0;if(Er.l=hr,Er.a=0,wr(Er.m,hr.data,hr.w,hr.ha),!Do(Er.m,qr,Wr,Zn)){Er.a=3;break t}if(Er.xb=Gm,hr.width=qr[0],hr.height=Wr[0],!Gs(qr[0],Wr[0],1,Er,null))break t;return 1}return ue(0!=Er.a),0}(Pe,qt)){if(qt=0==(Ke=Af(qt.width,qt.height,Gi.Oa,Gi.ba))){t:{qt=Pe;i:for(;;){if(null==qt){qt=0;break t}if(ue(null!=qt.s.yc),ue(null!=qt.s.Ya),ue(0<qt.s.Wb),ue(null!=(xt=qt.l)),ue(null!=(Ai=xt.ma)),0!=qt.xb){if(qt.ca=Ai.ba,qt.tb=Ai.tb,ue(null!=qt.ca),!Dh(Ai.Oa,xt,Mc)){qt.a=2;break i}if(!Rd(qt,xt.width)||xt.da)break i;if((xt.da||nl(qt.ca.S))&&yr(),11>qt.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=qt.ca.f.kb.F&&yr()),qt.Pb&&0<qt.s.ua&&null==qt.s.vb.X&&!as(qt.s.vb,qt.s.Wa.Xa)){qt.a=1;break i}qt.xb=0}if(!uc(qt,qt.V,qt.Ba,qt.c,qt.i,xt.o,hp))break i;Ai.Dc=qt.Ma,qt=1;break t}ue(0!=qt.a),qt=0}qt=!qt}qt&&(Ke=Pe.a)}else Ke=Pe.a}else{if(null==(Pe=new pn)){Gi=1;break e}if(Pe.Fa=Ai.na,Pe.P=Ai.P,Pe.qc=Ai.Sa,fs(Pe,qt)){if(0==(Ke=Af(qt.width,qt.height,Gi.Oa,Gi.ba))){if(Pe.Aa=0,xt=Gi.Oa,ue(null!=(Ai=Pe)),null!=xt){if(0<(dn=0>(dn=xt.Md)?0:100<dn?255:255*dn/100)){for(xn=er=0;4>xn;++xn)12>(Ar=Ai.pb[xn]).lc&&(Ar.ia=dn*c_[0>Ar.lc?0:Ar.lc]>>3),er|=Ar.ia;er&&(alert("todo:VP8InitRandom"),Ai.ia=1)}Ai.Ga=xt.Id,100<Ai.Ga?Ai.Ga=100:0>Ai.Ga&&(Ai.Ga=0)}(function Md(Pe,Ke){if(null==Pe)return 0;if(null==Ke)return cr(Pe,2,"NULL VP8Io parameter in VP8Decode().");if(!Pe.cb&&!fs(Pe,Ke))return 0;if(ue(Pe.cb),null==Ke.ac||Ke.ac(Ke)){Ke.ob&&(Pe.L=0);var xt=yg[Pe.L];if(2==Pe.L?(Pe.yb=0,Pe.zb=0):(Pe.yb=Ke.v-xt>>4,Pe.zb=Ke.j-xt>>4,0>Pe.yb&&(Pe.yb=0),0>Pe.zb&&(Pe.zb=0)),Pe.Va=Ke.o+15+xt>>4,Pe.Hb=Ke.va+15+xt>>4,Pe.Hb>Pe.za&&(Pe.Hb=Pe.za),Pe.Va>Pe.Ub&&(Pe.Va=Pe.Ub),0<Pe.L){var qt=Pe.ed;for(xt=0;4>xt;++xt){var Ai;if(Pe.Qa.Cb){var Hi=Pe.Qa.Lb[xt];Pe.Qa.Fb||(Hi+=qt.Tb)}else Hi=qt.Tb;for(Ai=0;1>=Ai;++Ai){var Gi=Pe.gd[xt][Ai],Zi=Hi;if(qt.Pc&&(Zi+=qt.vd[0],Ai&&(Zi+=qt.od[0])),0<(Zi=0>Zi?0:63<Zi?63:Zi)){var dn=Zi;0<qt.wb&&(dn=4<qt.wb?dn>>2:dn>>1)>9-qt.wb&&(dn=9-qt.wb),1>dn&&(dn=1),Gi.dd=dn,Gi.tc=2*Zi+dn,Gi.ld=40<=Zi?2:15<=Zi?1:0}else Gi.tc=0;Gi.La=Ai}}}xt=0}else cr(Pe,6,"Frame setup failed"),xt=Pe.a;if(xt=0==xt){if(xt){Pe.$c=0,0<Pe.Aa||(Pe.Ic=1);e:{qt=4*(dn=Pe.za);var xn=32*dn,er=dn+1,Ar=0<Pe.L?dn*(0<Pe.Aa?2:1):0,Er=(2==Pe.Aa?2:1)*dn;if((Gi=qt+832+(Ai=3*(16*(xt=Pe.Ic)+yg[Pe.L])/2*xn)+(Hi=null!=Pe.Fa&&0<Pe.Fa.length?Pe.Kc.c*Pe.Kc.i:0))!=Gi)xt=0;else{if(Gi>Pe.Vb){if(Pe.Vb=0,Pe.Ec=De(Gi),Pe.Fc=0,null==Pe.Ec){xt=cr(Pe,1,"no memory during frame initialization.");break e}Pe.Vb=Gi}Zi=Pe.Fc,Pe.Ac=Gi=Pe.Ec,Pe.Bc=Zi,Zi+=qt,Pe.Gd=Le(xn,ze),Pe.Hd=0,Pe.rb=Le(er+1,Dp),Pe.sb=1,Pe.wa=Ar?Le(Ar,Qh):null,Pe.Y=0,Pe.D.Nb=0,Pe.D.wa=Pe.wa,Pe.D.Y=Pe.Y,0<Pe.Aa&&(Pe.D.Y+=dn),ue(!0),Pe.oc=Gi,Pe.pc=Zi,Zi+=832,Pe.ya=Le(Er,en),Pe.aa=0,Pe.D.ya=Pe.ya,Pe.D.aa=Pe.aa,2==Pe.Aa&&(Pe.D.aa+=dn),Pe.R=16*dn,Pe.B=8*dn,dn=(xn=yg[Pe.L])*Pe.R,xn=xn/2*Pe.B,Pe.sa=Gi,Pe.ta=Zi+dn,Pe.qa=Pe.sa,Pe.ra=Pe.ta+16*xt*Pe.R+xn,Pe.Ha=Pe.qa,Pe.Ia=Pe.ra+8*xt*Pe.B+xn,Pe.$c=0,Zi+=Ai,Pe.mb=Hi?Gi:null,Pe.nb=Hi?Zi:null,ue(Zi+Hi<=Pe.Fc+Pe.Vb),Pl(Pe),Ce(Pe.Ac,Pe.Bc,0,qt),xt=1}}if(xt){if(Ke.ka=0,Ke.y=Pe.sa,Ke.O=Pe.ta,Ke.f=Pe.qa,Ke.N=Pe.ra,Ke.ea=Pe.Ha,Ke.Vd=Pe.Ia,Ke.fa=Pe.R,Ke.Rc=Pe.B,Ke.F=null,Ke.J=0,!mv){for(xt=-255;255>=xt;++xt)pg[255+xt]=0>xt?-xt:xt;for(xt=-1020;1020>=xt;++xt)fg[1020+xt]=-128>xt?-128:127<xt?127:xt;for(xt=-112;112>=xt;++xt)s_[112+xt]=-16>xt?-16:15<xt?15:xt;for(xt=-255;510>=xt;++xt)Pf[255+xt]=0>xt?0:255<xt?255:xt;mv=1}Pp=qh,Lc=r_,sh=Ep,bp=Qf,Fc=Mp,Td=Pd,yp=Op,Eu=Mf,am=sf,Rf=jc,o_=Sh,Bc=Of,Mh=Rm,_l=Pm,_d=Od,zd=wh,pc=af,Oh=km,Np[0]=xh,Np[1]=tf,Np[2]=cu,Np[3]=rf,Np[4]=cg,Np[5]=Hl,Np[6]=Bu,Np[7]=rh,Np[8]=em,Np[9]=qf,rp[0]=a_,rp[1]=Bg,rp[2]=fp,rp[3]=vm,rp[4]=Wd,rp[5]=dg,rp[6]=nf,pf[0]=Ae,pf[1]=pp,pf[2]=Ch,pf[3]=mp,pf[4]=$e,pf[5]=i,pf[6]=ua,xt=1}else xt=0}xt&&(xt=function(hr,qr){for(hr.M=0;hr.M<hr.Va;++hr.M){var Wr,Zn=hr.Jc[hr.M&hr.Xb],nr=hr.m,da=hr;for(Wr=0;Wr<da.za;++Wr){var ya=nr,Qr=da,xo=Qr.Ac,to=Qr.Bc+4*Wr,Bo=Qr.zc,ao=Qr.ya[Qr.aa+Wr];if(ao.$b=Qr.Qa.Bb?Lr(ya,Qr.Pa.jb[0])?2+Lr(ya,Qr.Pa.jb[2]):Lr(ya,Qr.Pa.jb[1]):0,Qr.kc&&(ao.Ad=Lr(ya,Qr.Bd)),ao.Za=!Lr(ya,145)+0,ao.Za){var Ul=ao.Ob,Gl=0;for(Qr=0;4>Qr;++Qr){var vl,ps=Bo[0+Qr];for(vl=0;4>vl;++vl){for(var Kl=Bp[Lr(ya,(ps=mg[xo[to+vl]][ps])[0])];0<Kl;)Kl=Bp[2*Kl+Lr(ya,ps[Kl])];xo[to+vl]=ps=-Kl}te(Ul,Gl,xo,to,4),Gl+=4,Bo[0+Qr]=ps}}else ps=Lr(ya,156)?Lr(ya,128)?1:3:Lr(ya,163)?2:0,ao.Ob[0]=ps,Ce(xo,to,ps,4),Ce(Bo,0,ps,4);ao.Dd=Lr(ya,142)?Lr(ya,114)?Lr(ya,183)?1:3:2:0}if(da.m.Ka)return cr(hr,7,"Premature end-of-partition0 encountered.");for(;hr.ja<hr.za;++hr.ja){if(da=Zn,ya=(nr=hr).rb[nr.sb-1],xo=nr.rb[nr.sb+nr.ja],Wr=nr.ya[nr.aa+nr.ja],to=nr.kc?Wr.Ad:0)ya.la=xo.la=0,Wr.Za||(ya.Na=xo.Na=0),Wr.Hc=0,Wr.Gc=0,Wr.ia=0;else{var ca,Co;if(ya=xo,xo=da,to=nr.Pa.Xc,ao=nr.pb[(Bo=nr.ya[nr.aa+nr.ja]).$b],Gl=nr.rb[nr.sb-1],ps=vl=0,Ce(Qr=Bo.ad,Ul=0,0,384),Bo.Za)var cl=0,pu=to[3];else{Kl=De(16);var Yd=ya.Na+Gl.Na;if(Yd=zm(xo,to[1],Yd,ao.Eb,0,Kl,0),ya.Na=Gl.Na=(0<Yd)+0,1<Yd)Pp(Kl,0,Qr,Ul);else{var dh=Kl[0]+3>>3;for(Kl=0;256>Kl;Kl+=16)Qr[Ul+Kl]=dh}cl=1,pu=to[0]}var Dl=15&ya.la,Oc=15&Gl.la;for(Kl=0;4>Kl;++Kl){var ys=1&Oc;for(dh=Co=0;4>dh;++dh)Dl=Dl>>1|(ys=(Yd=zm(xo,pu,Yd=ys+(1&Dl),ao.Sc,cl,Qr,Ul))>cl)<<7,Co=Co<<2|(3<Yd?3:1<Yd?2:0!=Qr[Ul+0]),Ul+=16;Dl>>=4,Oc=Oc>>1|ys<<7,vl=(vl<<8|Co)>>>0}for(pu=Dl,cl=Oc>>4,ca=0;4>ca;ca+=2){for(Co=0,Dl=ya.la>>4+ca,Oc=Gl.la>>4+ca,Kl=0;2>Kl;++Kl){for(ys=1&Oc,dh=0;2>dh;++dh)Dl=Dl>>1|(ys=0<(Yd=zm(xo,to[2],Yd=ys+(1&Dl),ao.Qc,0,Qr,Ul)))<<3,Co=Co<<2|(3<Yd?3:1<Yd?2:0!=Qr[Ul+0]),Ul+=16;Dl>>=2,Oc=Oc>>1|ys<<5}ps|=Co<<4*ca,pu|=Dl<<4<<ca,cl|=(240&Oc)<<ca}ya.la=pu,Gl.la=cl,Bo.Hc=vl,Bo.Gc=ps,Bo.ia=43690&ps?0:ao.ia,to=!(vl|ps)}if(0<nr.L&&(nr.wa[nr.Y+nr.ja]=nr.gd[Wr.$b][Wr.Za],nr.wa[nr.Y+nr.ja].La|=!to),da.Ka)return cr(hr,7,"Premature end-of-file encountered.")}if(Pl(hr),nr=qr,da=1,Wr=(Zn=hr).D,ya=0<Zn.L&&Zn.M>=Zn.zb&&Zn.M<=Zn.Va,0==Zn.Aa)e:{if(Wr.M=Zn.M,Wr.uc=ya,Tf(Zn,Wr),da=1,Wr=(Co=Zn.D).Nb,ya=(ps=yg[Zn.L])*Zn.R,to=Zn.sa,Bo=Zn.ta-ya+(Kl=16*Wr*Zn.R),ao=Zn.qa,Qr=Zn.ra-(xo=ps/2*Zn.B)+(dh=8*Wr*Zn.B),Ul=Zn.Ha,Gl=Zn.Ia-xo+dh,Oc=0==(Dl=Co.M),vl=Dl>=Zn.Va-1,2==Zn.Aa&&Tf(Zn,Co),Co.uc)for(ys=(Yd=Zn).D.M,ue(Yd.D.uc),Co=Yd.yb;Co<Yd.Hb;++Co){pu=ys;var Ts=(bl=($d=Yd).D).Nb,bl=bl.wa[bl.Y+(cl=Co)],Vo=$d.sa,Wu=$d.ta+16*Ts*(ca=$d.R)+16*cl,op=bl.dd,mc=bl.tc;if(0!=mc)if(ue(3<=mc),1==$d.L)0<cl&&zd(Vo,Wu,ca,mc+4),bl.La&&Oh(Vo,Wu,ca,mc),0<pu&&_d(Vo,Wu,ca,mc+4),bl.La&&pc(Vo,Wu,ca,mc);else{var ju=$d.B,Hf=$d.qa,ff=$d.ra+8*Ts*ju+8*cl,zf=$d.Ha,$d=$d.Ia+8*Ts*ju+8*cl;Ts=bl.ld,0<cl&&(Eu(Vo,Wu,ca,mc+4,op,Ts),Rf(Hf,ff,zf,$d,ju,mc+4,op,Ts)),bl.La&&(Bc(Vo,Wu,ca,mc,op,Ts),_l(Hf,ff,zf,$d,ju,mc,op,Ts)),0<pu&&(yp(Vo,Wu,ca,mc+4,op,Ts),am(Hf,ff,zf,$d,ju,mc+4,op,Ts)),bl.La&&(o_(Vo,Wu,ca,mc,op,Ts),Mh(Hf,ff,zf,$d,ju,mc,op,Ts))}}if(Zn.ia&&alert("todo:DitherRow"),null!=nr.put){if(Co=16*Dl,Dl=16*(Dl+1),Oc?(nr.y=Zn.sa,nr.O=Zn.ta+Kl,nr.f=Zn.qa,nr.N=Zn.ra+dh,nr.ea=Zn.Ha,nr.W=Zn.Ia+dh):(Co-=ps,nr.y=to,nr.O=Bo,nr.f=ao,nr.N=Qr,nr.ea=Ul,nr.W=Gl),vl||(Dl-=ps),Dl>nr.o&&(Dl=nr.o),nr.F=null,nr.J=null,null!=Zn.Fa&&0<Zn.Fa.length&&Co<Dl&&(nr.J=ym(Zn,nr,Co,Dl-Co),nr.F=Zn.mb,null==nr.F&&0==nr.F.length)){da=cr(Zn,3,"Could not decode alpha data.");break e}Co<nr.j&&(ps=nr.j-Co,Co=nr.j,ue(!(1&ps)),nr.O+=Zn.R*ps,nr.N+=Zn.B*(ps>>1),nr.W+=Zn.B*(ps>>1),null!=nr.F&&(nr.J+=nr.width*ps)),Co<Dl&&(nr.O+=nr.v,nr.N+=nr.v>>1,nr.W+=nr.v>>1,null!=nr.F&&(nr.J+=nr.v),nr.ka=Co-nr.j,nr.U=nr.va-nr.v,nr.T=Dl-Co,da=nr.put(nr))}Wr+1!=Zn.Ic||vl||(te(Zn.sa,Zn.ta-ya,to,Bo+16*Zn.R,ya),te(Zn.qa,Zn.ra-xo,ao,Qr+8*Zn.B,xo),te(Zn.Ha,Zn.Ia-xo,Ul,Gl+8*Zn.B,xo))}if(!da)return cr(hr,6,"Output aborted.")}return 1}(Pe,Ke)),null!=Ke.bc&&Ke.bc(Ke),xt&=1}return xt?(Pe.cb=0,xt):0})(Pe,qt)||(Ke=Pe.a)}}else Ke=Pe.a}0==Ke&&null!=Gi.Oa&&Gi.Oa.fd&&(Ke=ip(Gi.ba))}Gi=Ke}Hi=0!=Gi?null:11>Hi?Zi.f.RGBA.eb:Zi.f.kb.y}else Hi=null;return Hi};var jv=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Pt(Rn,Nr){for(var kr="",mn=0;mn<4;mn++)kr+=String.fromCharCode(Rn[Nr++]);return kr}function Zt(Rn,Nr){return(Rn[Nr+0]|Rn[Nr+1]<<8|Rn[Nr+2]<<16)>>>0}function fi(Rn,Nr){return(Rn[Nr+0]|Rn[Nr+1]<<8|Rn[Nr+2]<<16|Rn[Nr+3]<<24)>>>0}new it;var Jt=[0],Rt=[0],sn=[],nn=new it,fn=Se,$i=function(Rn,Nr){var kr={},mn=0,hn=!1,Hn=0,Vn=0;if(kr.frames=[],!
|
|
/** @license
|
|
* Copyright (c) 2017 Dominik Homberger
|
|
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.
|
|
https://webpjs.appspot.com
|
|
WebPRiffParser dominikhlbg@gmail.com
|
|
*/
|
|
function(Cn,Ln,Jn,lr){for(var Sr=0;Sr<4;Sr++)if(Cn[Ln+Sr]!="RIFF".charCodeAt(Sr))return!0;return!1}(Rn,Nr)){var Rr,br;for(fi(Rn,Nr+=4),Nr+=8;Nr<Rn.length;){var jr=Pt(Rn,Nr),wr=fi(Rn,Nr+=4);Nr+=4;var Kr=wr+(1&wr);switch(jr){case"VP8 ":case"VP8L":void 0===kr.frames[mn]&&(kr.frames[mn]={}),(Vi=kr.frames[mn]).src_off=hn?Vn:Nr-8,Vi.src_size=Hn+wr+8,mn++,hn&&(hn=!1,Hn=0,Vn=0);break;case"VP8X":(Vi=kr.header={}).feature_flags=Rn[Nr];var Xr=Nr+4;Vi.canvas_width=1+Zt(Rn,Xr),Vi.canvas_height=1+Zt(Rn,Xr+=3),Xr+=3;break;case"ALPH":hn=!0,Hn=Kr+8,Vn=Nr-8;break;case"ANIM":(Vi=kr.header).bgcolor=fi(Rn,Nr),Vi.loop_count=(Rr=Rn)[(br=Xr=Nr+4)+0]|Rr[br+1]<<8,Xr+=2;break;case"ANMF":var Ja,Vi;(Vi=kr.frames[mn]={}).offset_x=2*Zt(Rn,Nr),Vi.offset_y=2*Zt(Rn,Nr+=3),Vi.width=1+Zt(Rn,Nr+=3),Vi.height=1+Zt(Rn,Nr+=3),Vi.duration=Zt(Rn,Nr+=3),Nr+=3,Ja=Rn[Nr++],Vi.dispose=1&Ja,Vi.blend=Ja>>1&1}"ANMF"!=jr&&(Nr+=Kr)}return kr}}(fn,0);$i.response=fn,$i.rgbaoutput=!0,$i.dataurl=!1;var vn=$i.header?$i.header:null,kn=$i.frames?$i.frames:null;if(vn){vn.loop_counter=vn.loop_count,Jt=[vn.canvas_height],Rt=[vn.canvas_width];for(var Fn=0;Fn<kn.length&&0!=kn[Fn].blend;Fn++);}var ur=kn[0],Vr=nn.WebPDecodeRGBA(fn,ur.src_off,ur.src_size,Rt,Jt);ur.rgba=Vr,ur.imgwidth=Rt[0],ur.imgheight=Jt[0];for(var sr=0;sr<Rt[0]*Jt[0]*4;sr++)sn[sr]=Vr[sr];return this.width=Rt,this.height=Jt,this.data=sn,this}(function(Se){var B=function(Jt,Rt,sn,nn){var fn=4,$i=Le;switch(nn){case Se.image_compression.FAST:fn=1,$i=De;break;case Se.image_compression.MEDIUM:fn=6,$i=je;break;case Se.image_compression.SLOW:fn=9,$i=it}var vn=ml(Jt=te(Jt,Rt,sn,$i),{level:fn});return Se.__addimage__.arrayBufferToBinaryString(vn)},te=function(Jt,Rt,sn,nn){for(var fn,$i,vn,kn=Jt.length/Rt,Fn=new Uint8Array(Jt.length+kn),ur=Zt(),Vr=0;Vr<kn;Vr+=1){if(fn=Jt.subarray(vn=Vr*Rt,vn+Rt),nn)Fn.set(nn(fn,sn,$i),vn+Vr);else{for(var sr,Rn=ur.length,Nr=[];sr<Rn;sr+=1)Nr[sr]=ur[sr](fn,sn,$i);var kr=fi(Nr.concat());Fn.set(Nr[kr],vn+Vr)}$i=fn}return Fn},Ce=function(Jt){var Rt=Array.apply([],Jt);return Rt.unshift(0),Rt},De=function(Jt,Rt){var nn=[],fn=Jt.length;nn[0]=1;for(var $i=0;$i<fn;$i+=1)nn[$i+1]=Jt[$i]-(Jt[$i-Rt]||0)+256&255;return nn},Le=function(Jt,Rt,sn){var fn=[],$i=Jt.length;fn[0]=2;for(var vn=0;vn<$i;vn+=1)fn[vn+1]=Jt[vn]-(sn&&sn[vn]||0)+256&255;return fn},je=function(Jt,Rt,sn){var $i=[],vn=Jt.length;$i[0]=3;for(var kn=0;kn<vn;kn+=1)$i[kn+1]=Jt[kn]+256-((Jt[kn-Rt]||0)+(sn&&sn[kn]||0)>>>1)&255;return $i},it=function(Jt,Rt,sn){var vn,kn=[],Fn=Jt.length;kn[0]=4;for(var ur=0;ur<Fn;ur+=1)vn=Pt(Jt[ur-Rt]||0,sn&&sn[ur]||0,sn&&sn[ur-Rt]||0),kn[ur+1]=Jt[ur]-vn+256&255;return kn},Pt=function(Jt,Rt,sn){if(Jt===Rt&&Rt===sn)return Jt;var nn=Math.abs(Rt-sn),fn=Math.abs(Jt-sn),$i=Math.abs(Jt+Rt-sn-sn);return nn<=fn&&nn<=$i?Jt:fn<=$i?Rt:sn},Zt=function(){return[Ce,De,Le,je,it]},fi=function(Jt){var Rt=Jt.map(function(sn){return sn.reduce(function(nn,fn){return nn+Math.abs(fn)},0)});return Rt.indexOf(Math.min.apply(null,Rt))};Se.processPNG=function(Jt,Rt,sn,nn){var fn,$i,vn,kn,Fn,ur,Vr,sr,Rn,Nr,kr,mn,hn,Hn,Vn,Rr=this.decode.FLATE_DECODE,br="";if(this.__addimage__.isArrayBuffer(Jt)&&(Jt=new Uint8Array(Jt)),this.__addimage__.isArrayBufferView(Jt)){if(Jt=(vn=new dp(Jt)).imgData,$i=vn.bits,fn=vn.colorSpace,Fn=vn.colors,-1!==[4,6].indexOf(vn.colorType)){if(8===vn.bits){Rn=(sr=32==vn.pixelBitlength?new Uint32Array(vn.decodePixels().buffer):16==vn.pixelBitlength?new Uint16Array(vn.decodePixels().buffer):new Uint8Array(vn.decodePixels().buffer)).length,kr=new Uint8Array(Rn*vn.colors),Nr=new Uint8Array(Rn);var jr,wr=vn.pixelBitlength-vn.bits;for(Hn=0,Vn=0;Hn<Rn;Hn++){for(hn=sr[Hn],jr=0;jr<wr;)kr[Vn++]=hn>>>jr&255,jr+=vn.bits;Nr[Hn]=hn>>>jr&255}}if(16===vn.bits){Rn=(sr=new Uint32Array(vn.decodePixels().buffer)).length,kr=new Uint8Array(Rn*(32/vn.pixelBitlength)*vn.colors),Nr=new Uint8Array(Rn*(32/vn.pixelBitlength)),mn=vn.colors>1,Hn=0,Vn=0;for(var Kr=0;Hn<Rn;)hn=sr[Hn++],kr[Vn++]=hn>>>0&255,mn&&(kr[Vn++]=hn>>>16&255,hn=sr[Hn++],kr[Vn++]=hn>>>0&255),Nr[Kr++]=hn>>>16&255;$i=8}nn!==Se.image_compression.NONE?(Jt=B(kr,vn.width*vn.colors,vn.colors,nn),Vr=B(Nr,vn.width,1,nn)):(Jt=kr,Vr=Nr,Rr=void 0)}if(3===vn.colorType&&(fn=this.color_spaces.INDEXED,ur=vn.palette,vn.transparency.indexed)){var Xr=vn.transparency.indexed,Ja=0;for(Hn=0,Rn=Xr.length;Hn<Rn;++Hn)Ja+=Xr[Hn];if((Ja/=255)==Rn-1&&-1!==Xr.indexOf(0))kn=[Xr.indexOf(0)];else if(Ja!==Rn){for(sr=vn.decodePixels(),Nr=new Uint8Array(sr.length),Hn=0,Rn=sr.length;Hn<Rn;Hn++)Nr[Hn]=Xr[sr[Hn]];Vr=B(Nr,vn.width,1)}}var Vi=function(Cn){var Ln;switch(Cn){case Se.image_compression.FAST:Ln=11;break;case Se.image_compression.MEDIUM:Ln=13;break;case Se.image_compression.SLOW:Ln=14;break;default:Ln=12}return Ln}(nn);return Rr===this.decode.FLATE_DECODE&&(br="/Predictor "+Vi+" "),br+="/Colors "+Fn+" /BitsPerComponent "+$i+" /Columns "+vn.width,(this.__addimage__.isArrayBuffer(Jt)||this.__addimage__.isArrayBufferView(Jt))&&(Jt=this.__addimage__.arrayBufferToBinaryString(Jt)),(Vr&&this.__addimage__.isArrayBuffer(Vr)||this.__addimage__.isArrayBufferView(Vr))&&(Vr=this.__addimage__.arrayBufferToBinaryString(Vr)),{alias:sn,data:Jt,index:Rt,filter:Rr,decodeParameters:br,transparency:kn,palette:ur,sMask:Vr,predictor:Vi,width:vn.width,height:vn.height,bitsPerComponent:$i,colorSpace:fn}}}})(wa.API),function(Se){Se.processGIF89A=function(ue,B,te,Ce){var De=new _h(ue),Le=De.width,je=De.height,it=[];De.decodeAndBlitFrameRGBA(0,it);var Pt={data:it,width:Le,height:je},Zt=new Jp(100).encode(Pt,100);return Se.processJPEG.call(this,Zt,B,te,Ce)},Se.processGIF87A=Se.processGIF89A}(wa.API),tu.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var Se=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(Se);for(var ue=0;ue<Se;ue++){var B=this.datav.getUint8(this.pos++,!0),te=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0),De=this.datav.getUint8(this.pos++,!0);this.palette[ue]={red:Ce,green:te,blue:B,quad:De}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},tu.prototype.parseBGR=function(){this.pos=this.offset;try{var Se="bit"+this.bitPP;this.data=new Uint8Array(this.width*this.height*4),this[Se]()}catch(B){$s.log("bit decode error:"+B)}},tu.prototype.bit1=function(){var Se,ue=Math.ceil(this.width/8),B=ue%4;for(Se=this.height-1;Se>=0;Se--){for(var te=this.bottom_up?Se:this.height-1-Se,Ce=0;Ce<ue;Ce++)for(var De=this.datav.getUint8(this.pos++,!0),Le=te*this.width*4+8*Ce*4,je=0;je<8&&8*Ce+je<this.width;je++){var it=this.palette[De>>7-je&1];this.data[Le+4*je]=it.blue,this.data[Le+4*je+1]=it.green,this.data[Le+4*je+2]=it.red,this.data[Le+4*je+3]=255}0!==B&&(this.pos+=4-B)}},tu.prototype.bit4=function(){for(var Se=Math.ceil(this.width/2),ue=Se%4,B=this.height-1;B>=0;B--){for(var te=this.bottom_up?B:this.height-1-B,Ce=0;Ce<Se;Ce++){var De=this.datav.getUint8(this.pos++,!0),Le=te*this.width*4+2*Ce*4,it=15&De,Pt=this.palette[De>>4];if(this.data[Le]=Pt.blue,this.data[Le+1]=Pt.green,this.data[Le+2]=Pt.red,this.data[Le+3]=255,2*Ce+1>=this.width)break;this.data[Le+4]=(Pt=this.palette[it]).blue,this.data[Le+4+1]=Pt.green,this.data[Le+4+2]=Pt.red,this.data[Le+4+3]=255}0!==ue&&(this.pos+=4-ue)}},tu.prototype.bit8=function(){for(var Se=this.width%4,ue=this.height-1;ue>=0;ue--){for(var B=this.bottom_up?ue:this.height-1-ue,te=0;te<this.width;te++){var Ce=this.datav.getUint8(this.pos++,!0),De=B*this.width*4+4*te;if(Ce<this.palette.length){var Le=this.palette[Ce];this.data[De]=Le.red,this.data[De+1]=Le.green,this.data[De+2]=Le.blue,this.data[De+3]=255}else this.data[De]=255,this.data[De+1]=255,this.data[De+2]=255,this.data[De+3]=255}0!==Se&&(this.pos+=4-Se)}},tu.prototype.bit15=function(){for(var Se=this.width%3,ue=parseInt("11111",2),B=this.height-1;B>=0;B--){for(var te=this.bottom_up?B:this.height-1-B,Ce=0;Ce<this.width;Ce++){var De=this.datav.getUint16(this.pos,!0);this.pos+=2;var Le=(De&ue)/ue*255|0,je=(De>>5&ue)/ue*255|0,Pt=De>>15?255:0,Zt=te*this.width*4+4*Ce;this.data[Zt]=(De>>10&ue)/ue*255|0,this.data[Zt+1]=je,this.data[Zt+2]=Le,this.data[Zt+3]=Pt}this.pos+=Se}},tu.prototype.bit16=function(){for(var Se=this.width%3,ue=parseInt("11111",2),B=parseInt("111111",2),te=this.height-1;te>=0;te--){for(var Ce=this.bottom_up?te:this.height-1-te,De=0;De<this.width;De++){var Le=this.datav.getUint16(this.pos,!0);this.pos+=2;var je=(Le&ue)/ue*255|0,it=(Le>>5&B)/B*255|0,Zt=Ce*this.width*4+4*De;this.data[Zt]=(Le>>11)/ue*255|0,this.data[Zt+1]=it,this.data[Zt+2]=je,this.data[Zt+3]=255}this.pos+=Se}},tu.prototype.bit24=function(){for(var Se=this.height-1;Se>=0;Se--){for(var ue=this.bottom_up?Se:this.height-1-Se,B=0;B<this.width;B++){var te=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0),De=this.datav.getUint8(this.pos++,!0),Le=ue*this.width*4+4*B;this.data[Le]=De,this.data[Le+1]=Ce,this.data[Le+2]=te,this.data[Le+3]=255}this.pos+=this.width%4}},tu.prototype.bit32=function(){for(var Se=this.height-1;Se>=0;Se--)for(var ue=this.bottom_up?Se:this.height-1-Se,B=0;B<this.width;B++){var te=this.datav.getUint8(this.pos++,!0),Ce=this.datav.getUint8(this.pos++,!0),De=this.datav.getUint8(this.pos++,!0),Le=this.datav.getUint8(this.pos++,!0),je=ue*this.width*4+4*B;this.data[je]=De,this.data[je+1]=Ce,this.data[je+2]=te,this.data[je+3]=Le}},tu.prototype.getData=function(){return this.data},
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2018 Aras Abbasi
|
|
*
|
|
* Licensed under the MIT License.
|
|
* http://opensource.org/licenses/mit-license
|
|
*/
|
|
function(Se){Se.processBMP=function(ue,B,te,Ce){var De=new tu(ue,!1),Le=De.width,je=De.height,it={data:De.getData(),width:Le,height:je},Pt=new Jp(100).encode(it,100);return Se.processJPEG.call(this,Pt,B,te,Ce)}}(wa.API),du.prototype.getData=function(){return this.data},
|
|
/**
|
|
* @license
|
|
* Copyright (c) 2019 Aras Abbasi
|
|
*
|
|
* Licensed under the MIT License.
|
|
* http://opensource.org/licenses/mit-license
|
|
*/
|
|
function(Se){Se.processWEBP=function(ue,B,te,Ce){var De=new du(ue,!1),Le=De.width,je=De.height,it={data:De.getData(),width:Le,height:je},Pt=new Jp(100).encode(it,100);return Se.processJPEG.call(this,Pt,B,te,Ce)}}(wa.API),wa.API.processRGBA=function(Se,ue,B){for(var te=Se.data,Ce=te.length,De=new Uint8Array(Ce/4*3),Le=new Uint8Array(Ce/4),je=0,it=0,Pt=0;Pt<Ce;Pt+=4){var fi=te[Pt+1],Jt=te[Pt+2],Rt=te[Pt+3];De[je++]=te[Pt],De[je++]=fi,De[je++]=Jt,Le[it++]=Rt}var sn=this.__addimage__.arrayBufferToBinaryString(De);return{alpha:this.__addimage__.arrayBufferToBinaryString(Le),data:sn,index:ue,alias:B,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Se.width,height:Se.height}},wa.API.setLanguage=function(Se){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[Se]&&(this.internal.languageSettings.languageCode=Se,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},pd=(La=wa.API).getCharWidthsArray=function(Se,ue){var B,te,Ce=(ue=ue||{}).font||this.internal.getFont(),De=ue.fontSize||this.internal.getFontSize(),Le=ue.charSpace||this.internal.getCharSpace(),je=ue.widths?ue.widths:Ce.metadata.Unicode.widths,it=je.fof?je.fof:1,Pt=ue.kerning?ue.kerning:Ce.metadata.Unicode.kerning,Zt=Pt.fof?Pt.fof:1,fi=!1!==ue.doKerning,Jt=0,Rt=Se.length,sn=0,nn=je[0]||it,fn=[];for(B=0;B<Rt;B++)te=Se.charCodeAt(B),"function"==typeof Ce.metadata.widthOfString?fn.push((Ce.metadata.widthOfGlyph(Ce.metadata.characterToGlyph(te))+Le*(1e3/De)||0)/1e3):(Jt=fi&&"object"===(0,mo.A)(Pt[te])&&!isNaN(parseInt(Pt[te][sn],10))?Pt[te][sn]/Zt:0,fn.push((je[te]||nn)/it+Jt)),sn=te;return fn},bu=La.getStringUnitWidth=function(Se,ue){var B=(ue=ue||{}).fontSize||this.internal.getFontSize(),te=ue.font||this.internal.getFont(),Ce=ue.charSpace||this.internal.getCharSpace();return La.processArabic&&(Se=La.processArabic(Se)),"function"==typeof te.metadata.widthOfString?te.metadata.widthOfString(Se,B,Ce)/B:pd.apply(this,arguments).reduce(function(De,Le){return De+Le},0)},th=function(Se,ue,B,te){for(var Ce=[],De=0,Le=Se.length,je=0;De!==Le&&je+ue[De]<B;)je+=ue[De],De++;Ce.push(Se.slice(0,De));var it=De;for(je=0;De!==Le;)je+ue[De]>te&&(Ce.push(Se.slice(it,De)),je=0,it=De),je+=ue[De],De++;return it!==De&&Ce.push(Se.slice(it,De)),Ce},gh=function(Se,ue,B){B||(B={});var te,Ce,De,Le,je,it,Zt=[],fi=[Zt],Jt=B.textIndent||0,Rt=0,sn=0,nn=Se.split(" "),fn=pd.apply(this,[" ",B])[0];if(it=-1===B.lineIndent?nn[0].length+2:B.lineIndent||0){var $i=Array(it).join(" "),vn=[];nn.map(function(Fn){(Fn=Fn.split(/\s*\n/)).length>1?vn=vn.concat(Fn.map(function(ur,Vr){return(Vr&&ur.length?"\n":"")+ur})):vn.push(Fn[0])}),nn=vn,it=bu.apply(this,[$i,B])}for(De=0,Le=nn.length;De<Le;De++){var kn=0;if(te=nn[De],it&&"\n"==te[0]&&(te=te.substr(1),kn=1),Jt+Rt+(sn=(Ce=pd.apply(this,[te,B])).reduce(function(Fn,ur){return Fn+ur},0))>ue||kn){if(sn>ue){for(je=th.apply(this,[te,Ce,ue-(Jt+Rt),ue]),Zt.push(je.shift()),Zt=[je.pop()];je.length;)fi.push([je.shift()]);sn=Ce.slice(te.length-(Zt[0]?Zt[0].length:0)).reduce(function(Fn,ur){return Fn+ur},0)}else Zt=[te];fi.push(Zt),Jt=sn+it,Rt=fn}else Zt.push(te),Jt+=Rt+sn,Rt=fn}return fi.map(it?function(Fn,ur){return(ur?$i:"")+Fn.join(" ")}:function(Fn){return Fn.join(" ")})},La.splitTextToSize=function(Se,ue,B){var te,Ce=(B=B||{}).fontSize||this.internal.getFontSize(),De=function(Zt){if(Zt.widths&&Zt.kerning)return{widths:Zt.widths,kerning:Zt.kerning};var fi=this.internal.getFont(Zt.fontName,Zt.fontStyle);return fi.metadata.Unicode?{widths:fi.metadata.Unicode.widths||{0:1},kerning:fi.metadata.Unicode.kerning||{}}:{font:fi.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,B);te=Array.isArray(Se)?Se:String(Se).split(/\r?\n/);var Le=1*this.internal.scaleFactor*ue/Ce;De.textIndent=B.textIndent?1*B.textIndent*this.internal.scaleFactor/Ce:0,De.lineIndent=B.lineIndent;var je,it,Pt=[];for(je=0,it=te.length;je<it;je++)Pt=Pt.concat(gh.apply(this,[te[je],Le,De]));return Pt},function(Se){Se.__fontmetrics__=Se.__fontmetrics__||{};for(var ue="klmnopqrstuvwxyz",B={},te={},Ce=0;Ce<16;Ce++)B[ue[Ce]]="0123456789abcdef"[Ce],te["0123456789abcdef"[Ce]]=ue[Ce];var De=function(fi){return"0x"+parseInt(fi,10).toString(16)},Le=Se.__fontmetrics__.compress=function(fi){var Jt,Rt,sn,nn,fn=["{"];for(var $i in fi){if(Jt=fi[$i],isNaN(parseInt($i,10))?Rt="'"+$i+"'":($i=parseInt($i,10),Rt=(Rt=De($i).slice(2)).slice(0,-1)+te[Rt.slice(-1)]),"number"==typeof Jt)Jt<0?(sn=De(Jt).slice(3),nn="-"):(sn=De(Jt).slice(2),nn=""),sn=nn+sn.slice(0,-1)+te[sn.slice(-1)];else{if("object"!==(0,mo.A)(Jt))throw new Error("Don't know what to do with value type "+(0,mo.A)(Jt)+".");sn=Le(Jt)}fn.push(Rt+sn)}return fn.push("}"),fn.join("")},je=Se.__fontmetrics__.uncompress=function(fi){if("string"!=typeof fi)throw new Error("Invalid argument passed to uncompress.");for(var Jt,Rt,sn,nn,fn={},$i=1,vn=fn,kn=[],Fn="",ur="",Vr=fi.length-1,sr=1;sr<Vr;sr+=1)"'"==(nn=fi[sr])?Jt?(sn=Jt.join(""),Jt=void 0):Jt=[]:Jt?Jt.push(nn):"{"==nn?(kn.push([vn,sn]),vn={},sn=void 0):"}"==nn?((Rt=kn.pop())[0][Rt[1]]=vn,sn=void 0,vn=Rt[0]):"-"==nn?$i=-1:void 0===sn?B.hasOwnProperty(nn)?(Fn+=B[nn],sn=parseInt(Fn,16)*$i,$i=1,Fn=""):Fn+=nn:B.hasOwnProperty(nn)?(ur+=B[nn],vn[sn]=parseInt(ur,16)*$i,$i=1,sn=void 0,ur=""):ur+=nn;return fn},it={codePages:["WinAnsiEncoding"],WinAnsiEncoding:je("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Pt={Unicode:{Courier:it,"Courier-Bold":it,"Courier-BoldOblique":it,"Courier-Oblique":it,Helvetica:it,"Helvetica-Bold":it,"Helvetica-BoldOblique":it,"Helvetica-Oblique":it,"Times-Roman":it,"Times-Bold":it,"Times-BoldItalic":it,"Times-Italic":it}},Zt={Unicode:{"Courier-Oblique":je("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":je("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":je("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:je("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":je("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":je("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:je("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:je("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":je("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:je("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":je("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":je("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":je("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":je("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};Se.events.push(["addFont",function(fi){var Jt=fi.font,Rt=Zt.Unicode[Jt.postScriptName];Rt&&(Jt.metadata.Unicode={},Jt.metadata.Unicode.widths=Rt.widths,Jt.metadata.Unicode.kerning=Rt.kerning);var sn=Pt.Unicode[Jt.postScriptName];sn&&(Jt.metadata.Unicode.encoding=sn,Jt.encoding=sn.codePages[0])}])}(wa.API),
|
|
/**
|
|
* @license
|
|
* Licensed under the MIT License.
|
|
* http://opensource.org/licenses/mit-license
|
|
*/
|
|
function(Se){var ue=function(B){for(var te=B.length,Ce=new Uint8Array(te),De=0;De<te;De++)Ce[De]=B.charCodeAt(De);return Ce};Se.API.events.push(["addFont",function(B){var Le,je,te=void 0,Ce=B.font,De=B.instance;if(!Ce.isStandardFont){if(void 0===De)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Ce.postScriptName+"').");if("string"!=typeof(te=!1===De.existsFileInVFS(Ce.postScriptName)?De.loadFile(Ce.postScriptName):De.getFileFromVFS(Ce.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Ce.postScriptName+"').");Le=Ce,je=/^\x00\x01\x00\x00/.test(je=te)?ue(je):ue(Ei(je)),Le.metadata=Se.API.TTFFont.open(je),Le.metadata.Unicode=Le.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Le.metadata.glyIdsUsed=[0]}}])}(wa),wa.API.addSvgAsImage=function(B,te,Ce,De,Le,je,it,Pt){if(isNaN(te)||isNaN(Ce))throw $s.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(De)||isNaN(Le))throw $s.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Zt=document.createElement("canvas");Zt.width=De,Zt.height=Le;var fi=Zt.getContext("2d");fi.fillStyle="#fff",fi.fillRect(0,0,Zt.width,Zt.height);var Jt={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Rt=this;return function ue(){return(wo.canvg?Promise.resolve(wo.canvg):D.e(147).then(D.bind(D,20147))).catch(function(B){return Promise.reject(new Error("Could not load canvg: "+B))}).then(function(B){return B.default?B.default:B})}().then(function(sn){return sn.fromString(fi,B,Jt)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(sn){return sn.render(Jt)}).then(function(){Rt.addImage(Zt.toDataURL("image/jpeg",1),te,Ce,De,Le,it,Pt)})},wa.API.putTotalPages=function(Se){var ue,B=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(ue=new RegExp(Se,"g"),B=this.internal.getNumberOfPages()):(ue=new RegExp(this.pdfEscape16(Se,this.internal.getFont()),"g"),B=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var te=1;te<=this.internal.getNumberOfPages();te++)for(var Ce=0;Ce<this.internal.pages[te].length;Ce++)this.internal.pages[te][Ce]=this.internal.pages[te][Ce].replace(ue,B);return this},wa.API.viewerPreferences=function(Se,ue){var B;Se=Se||{},ue=ue||!1;var te,Ce,De,Le={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},je=Object.keys(Le),it=[],Pt=0,Zt=0,fi=0;function Jt(sn,nn){var fn,$i=!1;for(fn=0;fn<sn.length;fn+=1)sn[fn]===nn&&($i=!0);return $i}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Le)),this.internal.viewerpreferences.isSubscribed=!1),B=this.internal.viewerpreferences.configuration,"reset"===Se||!0===ue){var Rt=je.length;for(fi=0;fi<Rt;fi+=1)B[je[fi]].value=B[je[fi]].defaultValue,B[je[fi]].explicitSet=!1}if("object"===(0,mo.A)(Se))for(Ce in Se)if(De=Se[Ce],Jt(je,Ce)&&void 0!==De){if("boolean"===B[Ce].type&&"boolean"==typeof De)B[Ce].value=De;else if("name"===B[Ce].type&&Jt(B[Ce].valueSet,De))B[Ce].value=De;else if("integer"===B[Ce].type&&Number.isInteger(De))B[Ce].value=De;else if("array"===B[Ce].type){for(Pt=0;Pt<De.length;Pt+=1)if(te=!0,1===De[Pt].length&&"number"==typeof De[Pt][0])it.push(String(De[Pt]-1));else if(De[Pt].length>1){for(Zt=0;Zt<De[Pt].length;Zt+=1)"number"!=typeof De[Pt][Zt]&&(te=!1);!0===te&&it.push([De[Pt][0]-1,De[Pt][1]-1].join(" "))}B[Ce].value="["+it.join(" ")+"]"}else B[Ce].value=B[Ce].defaultValue;B[Ce].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var sn,nn=[];for(sn in B)!0===B[sn].explicitSet&&nn.push("name"===B[sn].type?"/"+sn+" /"+B[sn].value:"/"+sn+" "+B[sn].value);0!==nn.length&&this.internal.write("/ViewerPreferences\n<<\n"+nn.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=B,this},
|
|
/** ====================================================================
|
|
* @license
|
|
* jsPDF XMP metadata plugin
|
|
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
|
|
*
|
|
* 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.
|
|
* ====================================================================
|
|
*/
|
|
function(Se){var ue=function(){var te='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',Ce=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),De=unescape(encodeURIComponent(te)),Le=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),je=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),it=unescape(encodeURIComponent("</x:xmpmeta>")),Pt=De.length+Le.length+je.length+Ce.length+it.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Pt+" >>"),this.internal.write("stream"),this.internal.write(Ce+De+Le+je+it),this.internal.write("endstream"),this.internal.write("endobj")},B=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Se.addMetadata=function(te,Ce){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:te,namespaceuri:Ce||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",B),this.internal.events.subscribe("postPutResources",ue)),this}}(wa.API),function(Se){var ue=Se.API,B=ue.pdfEscape16=function(De,Le){for(var je,it=Le.metadata.Unicode.widths,Pt=["","0","00","000","0000"],Zt=[""],fi=0,Jt=De.length;fi<Jt;++fi){if(je=Le.metadata.characterToGlyph(De.charCodeAt(fi)),Le.metadata.glyIdsUsed.push(je),Le.metadata.toUnicode[je]=De.charCodeAt(fi),-1==it.indexOf(je)&&(it.push(je),it.push([parseInt(Le.metadata.widthOfGlyph(je),10)])),"0"==je)return Zt.join("");je=je.toString(16),Zt.push(Pt[4-je.length],je)}return Zt.join("")},te=function(De){var Le,je,it,Pt,Zt,fi,Jt;for(Zt="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",it=[],fi=0,Jt=(je=Object.keys(De).sort(function(Rt,sn){return Rt-sn})).length;fi<Jt;fi++)Le=je[fi],it.length>=100&&(Zt+="\n"+it.length+" beginbfchar\n"+it.join("\n")+"\nendbfchar",it=[]),null!=De[Le]&&"function"==typeof De[Le].toString&&(Pt=("0000"+De[Le].toString(16)).slice(-4),Le=("0000"+(+Le).toString(16)).slice(-4),it.push("<"+Le+"><"+Pt+">"));return it.length&&(Zt+="\n"+it.length+" beginbfchar\n"+it.join("\n")+"\nendbfchar\n"),Zt+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};ue.events.push(["putFont",function(De){!function(Le){var je=Le.font,it=Le.out,Pt=Le.newObject,Zt=Le.putStream;if(je.metadata instanceof Se.API.TTFFont&&"Identity-H"===je.encoding){for(var fi=je.metadata.Unicode.widths,Jt=je.metadata.subset.encode(je.metadata.glyIdsUsed,1),Rt="",sn=0;sn<Jt.length;sn++)Rt+=String.fromCharCode(Jt[sn]);var nn=Pt();Zt({data:Rt,addLength1:!0,objectId:nn}),it("endobj");var fn=Pt();Zt({data:te(je.metadata.toUnicode),addLength1:!0,objectId:fn}),it("endobj");var $i=Pt();it("<<"),it("/Type /FontDescriptor"),it("/FontName /"+Da(je.fontName)),it("/FontFile2 "+nn+" 0 R"),it("/FontBBox "+Se.API.PDFObject.convert(je.metadata.bbox)),it("/Flags "+je.metadata.flags),it("/StemV "+je.metadata.stemV),it("/ItalicAngle "+je.metadata.italicAngle),it("/Ascent "+je.metadata.ascender),it("/Descent "+je.metadata.decender),it("/CapHeight "+je.metadata.capHeight),it(">>"),it("endobj");var vn=Pt();it("<<"),it("/Type /Font"),it("/BaseFont /"+Da(je.fontName)),it("/FontDescriptor "+$i+" 0 R"),it("/W "+Se.API.PDFObject.convert(fi)),it("/CIDToGIDMap /Identity"),it("/DW 1000"),it("/Subtype /CIDFontType2"),it("/CIDSystemInfo"),it("<<"),it("/Supplement 0"),it("/Registry (Adobe)"),it("/Ordering ("+je.encoding+")"),it(">>"),it(">>"),it("endobj"),je.objectNumber=Pt(),it("<<"),it("/Type /Font"),it("/Subtype /Type0"),it("/ToUnicode "+fn+" 0 R"),it("/BaseFont /"+Da(je.fontName)),it("/Encoding /"+je.encoding),it("/DescendantFonts ["+vn+" 0 R]"),it(">>"),it("endobj"),je.isAlreadyPutted=!0}}(De)}]),ue.events.push(["putFont",function(De){!function(Le){var je=Le.font,it=Le.out,Pt=Le.newObject,Zt=Le.putStream;if(je.metadata instanceof Se.API.TTFFont&&"WinAnsiEncoding"===je.encoding){for(var fi=je.metadata.rawData,Jt="",Rt=0;Rt<fi.length;Rt++)Jt+=String.fromCharCode(fi[Rt]);var sn=Pt();Zt({data:Jt,addLength1:!0,objectId:sn}),it("endobj");var nn=Pt();Zt({data:te(je.metadata.toUnicode),addLength1:!0,objectId:nn}),it("endobj");var fn=Pt();it("<<"),it("/Descent "+je.metadata.decender),it("/CapHeight "+je.metadata.capHeight),it("/StemV "+je.metadata.stemV),it("/Type /FontDescriptor"),it("/FontFile2 "+sn+" 0 R"),it("/Flags 96"),it("/FontBBox "+Se.API.PDFObject.convert(je.metadata.bbox)),it("/FontName /"+Da(je.fontName)),it("/ItalicAngle "+je.metadata.italicAngle),it("/Ascent "+je.metadata.ascender),it(">>"),it("endobj"),je.objectNumber=Pt();for(var $i=0;$i<je.metadata.hmtx.widths.length;$i++)je.metadata.hmtx.widths[$i]=parseInt(je.metadata.hmtx.widths[$i]*(1e3/je.metadata.head.unitsPerEm));it("<</Subtype/TrueType/Type/Font/ToUnicode "+nn+" 0 R/BaseFont/"+Da(je.fontName)+"/FontDescriptor "+fn+" 0 R/Encoding/"+je.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Se.API.PDFObject.convert(je.metadata.hmtx.widths)+">>"),it("endobj"),je.isAlreadyPutted=!0}}(De)}]);var Ce=function(De){var Le,je=De.text||"",it=De.x,Pt=De.y,Zt=De.options||{},fi=De.mutex||{},Jt=fi.pdfEscape,Rt=fi.activeFontKey,sn=fi.fonts,nn=Rt,fn="",$i=0,vn="",kn=sn[nn].encoding;if("Identity-H"!==sn[nn].encoding)return{text:je,x:it,y:Pt,options:Zt,mutex:fi};for(vn=je,nn=Rt,Array.isArray(je)&&(vn=je[0]),$i=0;$i<vn.length;$i+=1)sn[nn].metadata.hasOwnProperty("cmap")&&(Le=sn[nn].metadata.cmap.unicode.codeMap[vn[$i].charCodeAt(0)]),Le||vn[$i].charCodeAt(0)<256&&sn[nn].metadata.hasOwnProperty("Unicode")?fn+=vn[$i]:fn+="";var Fn="";return parseInt(nn.slice(1))<14||"WinAnsiEncoding"===kn?Fn=Jt(fn,nn).split("").map(function(ur){return ur.charCodeAt(0).toString(16)}).join(""):"Identity-H"===kn&&(Fn=B(fn,sn[nn])),fi.isHex=!0,{text:Fn,x:it,y:Pt,options:Zt,mutex:fi}};ue.events.push(["postProcessText",function(De){var Le=De.text||"",je=[],it={text:Le,x:De.x,y:De.y,options:De.options,mutex:De.mutex};if(Array.isArray(Le)){var Pt=0;for(Pt=0;Pt<Le.length;Pt+=1)Array.isArray(Le[Pt])&&3===Le[Pt].length?je.push([Ce(Object.assign({},it,{text:Le[Pt][0]})).text,Le[Pt][1],Le[Pt][2]]):je.push(Ce(Object.assign({},it,{text:Le[Pt]})).text);De.text=je}else De.text=Ce(Object.assign({},it,{text:Le})).text}])}(wa),
|
|
/**
|
|
* @license
|
|
* jsPDF virtual FileSystem functionality
|
|
*
|
|
* Licensed under the MIT License.
|
|
* http://opensource.org/licenses/mit-license
|
|
*/
|
|
function(Se){var ue=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};Se.existsFileInVFS=function(B){return ue.call(this),void 0!==this.internal.vFS[B]},Se.addFileToVFS=function(B,te){return ue.call(this),this.internal.vFS[B]=te,this},Se.getFileFromVFS=function(B){return ue.call(this),void 0!==this.internal.vFS[B]?this.internal.vFS[B]:null}}(wa.API),
|
|
/**
|
|
* @license
|
|
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
|
* MIT License
|
|
*/
|
|
function(Se){Se.__bidiEngine__=Se.prototype.__bidiEngine__=function(te){var Ce,De,Le,je,it,Pt,Zt,fi=ue,Jt=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],Rt=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],sn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},nn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},fn=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],$i=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),vn=!1,kn=0;this.__bidiEngine__={};var Fn=function(mn){var hn=mn.charCodeAt(),Hn=hn>>8,Vn=nn[Hn];return void 0!==Vn?fi[256*Vn+(255&hn)]:252===Hn||253===Hn?"AL":$i.test(Hn)?"L":8===Hn?"R":"N"},ur=function(mn){for(var hn,Hn=0;Hn<mn.length;Hn++){if("L"===(hn=Fn(mn.charAt(Hn))))return!1;if("R"===hn)return!0}return!1},Vr=function(mn,hn,Hn,Vn){var Rr,br,jr,wr,Kr=hn[Vn];switch(Kr){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":vn=!1;break;case"N":case"AN":break;case"EN":vn&&(Kr="AN");break;case"AL":vn=!0,Kr="R";break;case"WS":case"BN":Kr="N";break;case"CS":Vn<1||Vn+1>=hn.length||"EN"!==(Rr=Hn[Vn-1])&&"AN"!==Rr||"EN"!==(br=hn[Vn+1])&&"AN"!==br?Kr="N":vn&&(br="AN"),Kr=br===Rr?br:"N";break;case"ES":Kr="EN"===(Rr=Vn>0?Hn[Vn-1]:"B")&&Vn+1<hn.length&&"EN"===hn[Vn+1]?"EN":"N";break;case"ET":if(Vn>0&&"EN"===Hn[Vn-1]){Kr="EN";break}if(vn){Kr="N";break}for(jr=Vn+1,wr=hn.length;jr<wr&&"ET"===hn[jr];)jr++;Kr=jr<wr&&"EN"===hn[jr]?"EN":"N";break;case"NSM":if(Le&&!je){for(wr=hn.length,jr=Vn+1;jr<wr&&"NSM"===hn[jr];)jr++;if(jr<wr){var Xr=mn[Vn];if(Rr=hn[jr],(Xr>=1425&&Xr<=2303||64286===Xr)&&("R"===Rr||"AL"===Rr)){Kr="R";break}}}Kr=Vn<1||"B"===(Rr=hn[Vn-1])?"N":Hn[Vn-1];break;case"B":vn=!1,Ce=!0,Kr=kn;break;case"S":De=!0,Kr="N"}return Kr},sr=function(mn,hn,Hn){var Vn=mn.split("");return Hn&&Rn(Vn,Hn,{hiLevel:kn}),Vn.reverse(),hn&&hn.reverse(),Vn.join("")},Rn=function(mn,hn,Hn){var Vn,Rr,br,jr,wr,Kr=-1,Xr=mn.length,Ja=0,Vi=[],Cn=kn?Rt:Jt,Ln=[];for(vn=!1,Ce=!1,De=!1,Rr=0;Rr<Xr;Rr++)Ln[Rr]=Fn(mn[Rr]);for(br=0;br<Xr;br++){if(wr=Ja,Vi[br]=Vr(mn,Ln,Vi,br),Vn=240&(Ja=Cn[wr][sn[Vi[br]]]),hn[br]=jr=Cn[Ja&=15][5],Vn>0)if(16===Vn){for(Rr=Kr;Rr<br;Rr++)hn[Rr]=1;Kr=-1}else Kr=-1;if(Cn[Ja][6])-1===Kr&&(Kr=br);else if(Kr>-1){for(Rr=Kr;Rr<br;Rr++)hn[Rr]=jr;Kr=-1}"B"===Ln[br]&&(hn[br]=0),Hn.hiLevel|=jr}De&&function(Jn,lr,Sr){for(var Br=0;Br<Sr;Br++)if("S"===Jn[Br]){lr[Br]=kn;for(var Lr=Br-1;Lr>=0&&"WS"===Jn[Lr];Lr--)lr[Lr]=kn}}(Ln,hn,Xr)},Nr=function(mn,hn,Hn,Vn,Rr){if(!(Rr.hiLevel<mn)){if(1===mn&&1===kn&&!Ce)return hn.reverse(),void(Hn&&Hn.reverse());for(var br,jr,wr,Kr,Xr=hn.length,Ja=0;Ja<Xr;){if(Vn[Ja]>=mn){for(wr=Ja+1;wr<Xr&&Vn[wr]>=mn;)wr++;for(Kr=Ja,jr=wr-1;Kr<jr;Kr++,jr--)br=hn[Kr],hn[Kr]=hn[jr],hn[jr]=br,Hn&&(br=Hn[Kr],Hn[Kr]=Hn[jr],Hn[jr]=br);Ja=wr}Ja++}}},kr=function(mn,hn,Hn){var Vn=mn.split(""),Rr={hiLevel:kn};return Hn||(Hn=[]),Rn(Vn,Hn,Rr),function(br,jr,wr){if(0!==wr.hiLevel&&Zt)for(var Kr,Xr=0;Xr<br.length;Xr++)1===jr[Xr]&&(Kr=fn.indexOf(br[Xr]))>=0&&(br[Xr]=fn[Kr+1])}(Vn,Hn,Rr),Nr(2,Vn,hn,Hn,Rr),Nr(1,Vn,hn,Hn,Rr),Vn.join("")};return this.__bidiEngine__.doBidiReorder=function(mn,hn,Hn){if(function(Rr,br){if(br)for(var jr=0;jr<Rr.length;jr++)br[jr]=jr;void 0===je&&(je=ur(Rr)),void 0===Pt&&(Pt=ur(Rr))}(mn,hn),Le||!it||Pt)if(Le&&it&&je^Pt)kn=je?1:0,mn=sr(mn,hn,Hn);else if(!Le&&it&&Pt)kn=je?1:0,mn=kr(mn,hn,Hn),mn=sr(mn,hn);else if(!Le||je||it||Pt){if(Le&&!it&&je^Pt)mn=sr(mn,hn),je?(kn=0,mn=kr(mn,hn,Hn)):(kn=1,mn=kr(mn,hn,Hn),mn=sr(mn,hn));else if(Le&&je&&!it&&Pt)kn=1,mn=kr(mn,hn,Hn),mn=sr(mn,hn);else if(!Le&&!it&&je^Pt){var Vn=Zt;je?(kn=1,mn=kr(mn,hn,Hn),kn=0,Zt=!1,mn=kr(mn,hn,Hn),Zt=Vn):(kn=0,mn=kr(mn,hn,Hn),mn=sr(mn,hn),kn=1,Zt=!1,mn=kr(mn,hn,Hn),Zt=Vn,mn=sr(mn,hn))}}else kn=0,mn=kr(mn,hn,Hn);else kn=je?1:0,mn=kr(mn,hn,Hn);return mn},this.__bidiEngine__.setOptions=function(mn){mn&&(Le=mn.isInputVisual,it=mn.isOutputVisual,je=mn.isInputRtl,Pt=mn.isOutputRtl,Zt=mn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(te),this.__bidiEngine__};var ue=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],B=new Se.__bidiEngine__({isInputVisual:!0});Se.API.events.push(["postProcessText",function(te){var Ce=te.text,De=te.options||{},Le=[];if(De.isInputVisual="boolean"!=typeof De.isInputVisual||De.isInputVisual,B.setOptions(De),"[object Array]"===Object.prototype.toString.call(Ce)){var je=0;for(Le=[],je=0;je<Ce.length;je+=1)"[object Array]"===Object.prototype.toString.call(Ce[je])?Le.push([B.doBidiReorder(Ce[je][0]),Ce[je][1],Ce[je][2]]):Le.push([B.doBidiReorder(Ce[je])]);te.text=Le}else te.text=B.doBidiReorder(Ce);B.setOptions({isInputVisual:!0})}])}(wa),wa.API.TTFFont=function(){function Se(ue){var B;if(this.rawData=ue,B=this.contents=new iu(ue),this.contents.pos=4,"ttcf"===B.readString(4))throw new Error("TTCF not supported.");B.pos=0,this.parse(),this.subset=new sg(this),this.registerTTF()}return Se.open=function(ue){return new Se(ue)},Se.prototype.parse=function(){return this.directory=new yu(this.contents),this.head=new ih(this),this.name=new jh(this),this.cmap=new ag(this),this.toUnicode={},this.hhea=new pl(this),this.maxp=new Yh(this),this.hmtx=new up(this),this.post=new Qp(this),this.os2=new wf(this),this.loca=new Ad(this),this.glyf=new og(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},Se.prototype.registerTTF=function(){var B,te,Ce,De;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var Le,je,it,Pt;for(Pt=[],Le=0,je=(it=this.bbox).length;Le<je;Le++)Pt.push(Math.round(it[Le]*this.scaleFactor));return Pt}.call(this),this.stemV=0,this.post.exists?(te=255&(Ce=this.post.italic_angle),32768&(B=Ce>>16)&&(B=-(1+(65535^B))),this.italicAngle=+(B+"."+te)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(De=this.familyClass)||2===De||3===De||4===De||5===De||7===De,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},Se.prototype.characterToGlyph=function(ue){var B;return(null!=(B=this.cmap.unicode)?B.codeMap[ue]:void 0)||0},Se.prototype.widthOfGlyph=function(ue){var B;return B=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(ue).advance*B},Se.prototype.widthOfString=function(ue,B,te){var Ce,De,Le,je;for(Le=0,De=0,je=(ue=""+ue).length;0<=je?De<je:De>je;De=0<=je?++De:--De)Ce=ue.charCodeAt(De),Le+=this.widthOfGlyph(this.characterToGlyph(Ce))+te*(1e3/B)||0;return Le*(B/1e3)},Se.prototype.lineHeight=function(ue,B){return null==B&&(B=!1),(this.ascender+(B?this.lineGap:0)-this.decender)/1e3*ue},Se}();var Rc,iu=function(){function Se(ue){this.data=ue??[],this.pos=0,this.length=this.data.length}return Se.prototype.readByte=function(){return this.data[this.pos++]},Se.prototype.writeByte=function(ue){return this.data[this.pos++]=ue},Se.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Se.prototype.writeUInt32=function(ue){return this.writeByte(ue>>>24&255),this.writeByte(ue>>16&255),this.writeByte(ue>>8&255),this.writeByte(255&ue)},Se.prototype.readInt32=function(){var ue;return(ue=this.readUInt32())>=2147483648?ue-4294967296:ue},Se.prototype.writeInt32=function(ue){return ue<0&&(ue+=4294967296),this.writeUInt32(ue)},Se.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Se.prototype.writeUInt16=function(ue){return this.writeByte(ue>>8&255),this.writeByte(255&ue)},Se.prototype.readInt16=function(){var ue;return(ue=this.readUInt16())>=32768?ue-65536:ue},Se.prototype.writeInt16=function(ue){return ue<0&&(ue+=65536),this.writeUInt16(ue)},Se.prototype.readString=function(ue){var B,te;for(te=[],B=0;0<=ue?B<ue:B>ue;B=0<=ue?++B:--B)te[B]=String.fromCharCode(this.readByte());return te.join("")},Se.prototype.writeString=function(ue){var B,te,Ce;for(Ce=[],B=0,te=ue.length;0<=te?B<te:B>te;B=0<=te?++B:--B)Ce.push(this.writeByte(ue.charCodeAt(B)));return Ce},Se.prototype.readShort=function(){return this.readInt16()},Se.prototype.writeShort=function(ue){return this.writeInt16(ue)},Se.prototype.readLongLong=function(){var ue,B,te,Ce,De,Le,je,it;return ue=this.readByte(),B=this.readByte(),te=this.readByte(),Ce=this.readByte(),De=this.readByte(),Le=this.readByte(),je=this.readByte(),it=this.readByte(),128&ue?-1*(72057594037927940*(255^ue)+281474976710656*(255^B)+1099511627776*(255^te)+4294967296*(255^Ce)+16777216*(255^De)+65536*(255^Le)+256*(255^je)+(255^it)+1):72057594037927940*ue+281474976710656*B+1099511627776*te+4294967296*Ce+16777216*De+65536*Le+256*je+it},Se.prototype.writeLongLong=function(ue){var B,te;return B=Math.floor(ue/4294967296),te=4294967295&ue,this.writeByte(B>>24&255),this.writeByte(B>>16&255),this.writeByte(B>>8&255),this.writeByte(255&B),this.writeByte(te>>24&255),this.writeByte(te>>16&255),this.writeByte(te>>8&255),this.writeByte(255&te)},Se.prototype.readInt=function(){return this.readInt32()},Se.prototype.writeInt=function(ue){return this.writeInt32(ue)},Se.prototype.read=function(ue){var B,te;for(B=[],te=0;0<=ue?te<ue:te>ue;te=0<=ue?++te:--te)B.push(this.readByte());return B},Se.prototype.write=function(ue){var te,Ce,De;for(De=[],te=0,Ce=ue.length;te<Ce;te++)De.push(this.writeByte(ue[te]));return De},Se}(),yu=function(){var Se;function ue(B){var te,Ce,De;for(this.scalarType=B.readInt(),this.tableCount=B.readShort(),this.searchRange=B.readShort(),this.entrySelector=B.readShort(),this.rangeShift=B.readShort(),this.tables={},Ce=0,De=this.tableCount;0<=De?Ce<De:Ce>De;Ce=0<=De?++Ce:--Ce)te={tag:B.readString(4),checksum:B.readInt(),offset:B.readInt(),length:B.readInt()},this.tables[te.tag]=te}return ue.prototype.encode=function(B){var te,Ce,Le,je,it,Pt,Zt,fi,Jt,Rt,sn,nn;for(nn in Rt=Object.keys(B).length,it=Math.log(2),fi=16*Math.floor(Math.log(Rt)/it),Le=Math.floor(fi/it),Zt=16*Rt-fi,(Ce=new iu).writeInt(this.scalarType),Ce.writeShort(Rt),Ce.writeShort(fi),Ce.writeShort(Le),Ce.writeShort(Zt),Pt=Ce.pos+16*Rt,je=null,sn=[],B)for(Jt=B[nn],Ce.writeString(nn),Ce.writeInt(Se(Jt)),Ce.writeInt(Pt),Ce.writeInt(Jt.length),sn=sn.concat(Jt),"head"===nn&&(je=Pt),Pt+=Jt.length;Pt%4;)sn.push(0),Pt++;return Ce.write(sn),te=2981146554-Se(Ce.data),Ce.pos=je+8,Ce.writeUInt32(te),Ce.data},Se=function(B){var te,Ce,De,Le;for(B=Gc.call(B);B.length%4;)B.push(0);for(De=new iu(B),Ce=0,te=0,Le=B.length;te<Le;te=te+=4)Ce+=De.readUInt32();return 4294967295&Ce},ue}(),wp={}.hasOwnProperty,Pu=function(Se,ue){for(var B in ue)wp.call(ue,B)&&(Se[B]=ue[B]);function te(){this.constructor=Se}return te.prototype=ue.prototype,Se.prototype=new te,Se.__super__=ue.prototype,Se};Rc=function(){function Se(ue){var B;this.file=ue,this.exists=!!(B=this.file.directory.tables[this.tag]),B&&(this.offset=B.offset,this.length=B.length,this.parse(this.file.contents))}return Se.prototype.parse=function(){},Se.prototype.encode=function(){},Se.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Se}();var ih=function(Se){function ue(){return ue.__super__.constructor.apply(this,arguments)}return Pu(ue,Rc),ue.prototype.tag="head",ue.prototype.parse=function(B){return B.pos=this.offset,this.version=B.readInt(),this.revision=B.readInt(),this.checkSumAdjustment=B.readInt(),this.magicNumber=B.readInt(),this.flags=B.readShort(),this.unitsPerEm=B.readShort(),this.created=B.readLongLong(),this.modified=B.readLongLong(),this.xMin=B.readShort(),this.yMin=B.readShort(),this.xMax=B.readShort(),this.yMax=B.readShort(),this.macStyle=B.readShort(),this.lowestRecPPEM=B.readShort(),this.fontDirectionHint=B.readShort(),this.indexToLocFormat=B.readShort(),this.glyphDataFormat=B.readShort()},ue.prototype.encode=function(B){var te;return(te=new iu).writeInt(this.version),te.writeInt(this.revision),te.writeInt(this.checkSumAdjustment),te.writeInt(this.magicNumber),te.writeShort(this.flags),te.writeShort(this.unitsPerEm),te.writeLongLong(this.created),te.writeLongLong(this.modified),te.writeShort(this.xMin),te.writeShort(this.yMin),te.writeShort(this.xMax),te.writeShort(this.yMax),te.writeShort(this.macStyle),te.writeShort(this.lowestRecPPEM),te.writeShort(this.fontDirectionHint),te.writeShort(B),te.writeShort(this.glyphDataFormat),te.data},ue}(),cp=function(){function Se(ue,B){var te,Ce,De,Le,je,it,Pt,Zt,fi,Jt,Rt,sn,nn,fn,$i,vn,kn;switch(this.platformID=ue.readUInt16(),this.encodingID=ue.readShort(),this.offset=B+ue.readInt(),fi=ue.pos,ue.pos=this.offset,this.format=ue.readUInt16(),this.length=ue.readUInt16(),this.language=ue.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(it=0;it<256;++it)this.codeMap[it]=ue.readByte();break;case 4:for(Rt=ue.readUInt16(),Jt=Rt/2,ue.pos+=6,De=function(){var Fn,ur;for(ur=[],it=Fn=0;0<=Jt?Fn<Jt:Fn>Jt;it=0<=Jt?++Fn:--Fn)ur.push(ue.readUInt16());return ur}(),ue.pos+=2,nn=function(){var Fn,ur;for(ur=[],it=Fn=0;0<=Jt?Fn<Jt:Fn>Jt;it=0<=Jt?++Fn:--Fn)ur.push(ue.readUInt16());return ur}(),Pt=function(){var Fn,ur;for(ur=[],it=Fn=0;0<=Jt?Fn<Jt:Fn>Jt;it=0<=Jt?++Fn:--Fn)ur.push(ue.readUInt16());return ur}(),Zt=function(){var Fn,ur;for(ur=[],it=Fn=0;0<=Jt?Fn<Jt:Fn>Jt;it=0<=Jt?++Fn:--Fn)ur.push(ue.readUInt16());return ur}(),Ce=(this.length-ue.pos+this.offset)/2,je=function(){var Fn,ur;for(ur=[],it=Fn=0;0<=Ce?Fn<Ce:Fn>Ce;it=0<=Ce?++Fn:--Fn)ur.push(ue.readUInt16());return ur}(),it=$i=0,kn=De.length;$i<kn;it=++$i)for(fn=De[it],te=vn=sn=nn[it];sn<=fn?vn<=fn:vn>=fn;te=sn<=fn?++vn:--vn)0===Zt[it]?Le=te+Pt[it]:0!==(Le=je[Zt[it]/2+(te-sn)-(Jt-it)]||0)&&(Le+=Pt[it]),this.codeMap[te]=65535&Le}ue.pos=fi}return Se.encode=function(ue,B){var te,Ce,De,Le,je,it,Pt,Zt,fi,Jt,Rt,sn,nn,fn,$i,vn,kn,ur,Vr,sr,Rn,Nr,kr,mn,hn,Hn,Vn,Rr,br,jr,wr,Kr,Xr,Ja,Vi,Cn,Ln,Jn,lr,Sr,Br,Lr,za,_a,Xa;switch(Vn=new iu,Le=Object.keys(ue).sort(function(Oa,as){return Oa-as}),B){case"macroman":for(nn=0,fn=function(){var Oa=[];for(sn=0;sn<256;++sn)Oa.push(0);return Oa}(),vn={0:0},De={},Rr=0,Kr=Le.length;Rr<Kr;Rr++)null==vn[Lr=ue[Ce=Le[Rr]]]&&(vn[Lr]=++nn),De[Ce]={old:ue[Ce],new:vn[ue[Ce]]},fn[Ce]=vn[ue[Ce]];return Vn.writeUInt16(1),Vn.writeUInt16(0),Vn.writeUInt32(12),Vn.writeUInt16(0),Vn.writeUInt16(262),Vn.writeUInt16(0),Vn.write(fn),{charMap:De,subtable:Vn.data,maxGlyphID:nn+1};case"unicode":for(hn=[],fi=[],kn=0,vn={},te={},$i=Pt=null,br=0,Xr=Le.length;br<Xr;br++)null==vn[ur=ue[Ce=Le[br]]]&&(vn[ur]=++kn),te[Ce]={old:ur,new:vn[ur]},je=vn[ur]-Ce,null!=$i&&je===Pt||($i&&fi.push($i),hn.push(Ce),Pt=je),$i=Ce;for($i&&fi.push($i),fi.push(65535),hn.push(65535),kr=2*(Nr=hn.length),Rn=2*Math.pow(Math.log(Nr)/Math.LN2,2),Jt=Math.log(Rn/2)/Math.LN2,sr=2*Nr-Rn,it=[],Vr=[],Rt=[],sn=jr=0,Ja=hn.length;jr<Ja;sn=++jr){if(Zt=fi[sn],65535===(mn=hn[sn])){it.push(0),Vr.push(0);break}if(mn-(Hn=te[mn].new)>=32768)for(it.push(0),Vr.push(2*(Rt.length+Nr-sn)),Ce=wr=mn;mn<=Zt?wr<=Zt:wr>=Zt;Ce=mn<=Zt?++wr:--wr)Rt.push(te[Ce].new);else it.push(Hn-mn),Vr.push(0)}for(Vn.writeUInt16(3),Vn.writeUInt16(1),Vn.writeUInt32(12),Vn.writeUInt16(4),Vn.writeUInt16(16+8*Nr+2*Rt.length),Vn.writeUInt16(0),Vn.writeUInt16(kr),Vn.writeUInt16(Rn),Vn.writeUInt16(Jt),Vn.writeUInt16(sr),Sr=0,Vi=fi.length;Sr<Vi;Sr++)Vn.writeUInt16(Ce=fi[Sr]);for(Vn.writeUInt16(0),Br=0,Cn=hn.length;Br<Cn;Br++)Vn.writeUInt16(Ce=hn[Br]);for(za=0,Ln=it.length;za<Ln;za++)Vn.writeUInt16(je=it[za]);for(_a=0,Jn=Vr.length;_a<Jn;_a++)Vn.writeUInt16(Vr[_a]);for(Xa=0,lr=Rt.length;Xa<lr;Xa++)Vn.writeUInt16(nn=Rt[Xa]);return{charMap:te,subtable:Vn.data,maxGlyphID:kn+1}}},Se}(),ag=function(Se){function ue(){return ue.__super__.constructor.apply(this,arguments)}return Pu(ue,Rc),ue.prototype.tag="cmap",ue.prototype.parse=function(B){var te,Ce,De;for(B.pos=this.offset,this.version=B.readUInt16(),De=B.readUInt16(),this.tables=[],this.unicode=null,Ce=0;0<=De?Ce<De:Ce>De;Ce=0<=De?++Ce:--Ce)te=new cp(B,this.offset),this.tables.push(te),te.isUnicode&&null==this.unicode&&(this.unicode=te);return!0},ue.encode=function(B,te){var Ce,De;return null==te&&(te="macroman"),Ce=cp.encode(B,te),(De=new iu).writeUInt16(0),De.writeUInt16(1),Ce.table=De.data.concat(Ce.subtable),Ce},ue}(),pl=function(Se){function ue(){return ue.__super__.constructor.apply(this,arguments)}return Pu(ue,Rc),ue.prototype.tag="hhea",ue.prototype.parse=function(B){return B.pos=this.offset,this.version=B.readInt(),this.ascender=B.readShort(),this.decender=B.readShort(),this.lineGap=B.readShort(),this.advanceWidthMax=B.readShort(),this.minLeftSideBearing=B.readShort(),this.minRightSideBearing=B.readShort(),this.xMaxExtent=B.readShort(),this.caretSlopeRise=B.readShort(),this.caretSlopeRun=B.readShort(),this.caretOffset=B.readShort(),B.pos+=8,this.metricDataFormat=B.readShort(),this.numberOfMetrics=B.readUInt16()},ue}(),wf=function(Se){function ue(){return ue.__super__.constructor.apply(this,arguments)}return Pu(ue,Rc),ue.prototype.tag="OS/2",ue.prototype.parse=function(B){if(B.pos=this.offset,this.version=B.readUInt16(),this.averageCharWidth=B.readShort(),this.weightClass=B.readUInt16(),this.widthClass=B.readUInt16(),this.type=B.readShort(),this.ySubscriptXSize=B.readShort(),this.ySubscriptYSize=B.readShort(),this.ySubscriptXOffset=B.readShort(),this.ySubscriptYOffset=B.readShort(),this.ySuperscriptXSize=B.readShort(),this.ySuperscriptYSize=B.readShort(),this.ySuperscriptXOffset=B.readShort(),this.ySuperscriptYOffset=B.readShort(),this.yStrikeoutSize=B.readShort(),this.yStrikeoutPosition=B.readShort(),this.familyClass=B.readShort(),this.panose=function(){var te,Ce;for(Ce=[],te=0;te<10;++te)Ce.push(B.readByte());return Ce}(),this.charRange=function(){var te,Ce;for(Ce=[],te=0;te<4;++te)Ce.push(B.readInt());return Ce}(),this.vendorID=B.readString(4),this.selection=B.readShort(),this.firstCharIndex=B.readShort(),this.lastCharIndex=B.readShort(),this.version>0&&(this.ascent=B.readShort(),this.descent=B.readShort(),this.lineGap=B.readShort(),this.winAscent=B.readShort(),this.winDescent=B.readShort(),this.codePageRange=function(){var te,Ce;for(Ce=[],te=0;te<2;te=++te)Ce.push(B.readInt());return Ce}(),this.version>1))return this.xHeight=B.readShort(),this.capHeight=B.readShort(),this.defaultChar=B.readShort(),this.breakChar=B.readShort(),this.maxContext=B.readShort()},ue}(),Qp=function(Se){function ue(){return ue.__super__.constructor.apply(this,arguments)}return Pu(ue,Rc),ue.prototype.tag="post",ue.prototype.parse=function(B){var te,Ce,De;switch(B.pos=this.offset,this.format=B.readInt(),this.italicAngle=B.readInt(),this.underlinePosition=B.readShort(),this.underlineThickness=B.readShort(),this.isFixedPitch=B.readInt(),this.minMemType42=B.readInt(),this.maxMemType42=B.readInt(),this.minMemType1=B.readInt(),this.maxMemType1=B.readInt(),this.format){case 65536:case 196608:break;case 131072:var Le;for(Ce=B.readUInt16(),this.glyphNameIndex=[],Le=0;0<=Ce?Le<Ce:Le>Ce;Le=0<=Ce?++Le:--Le)this.glyphNameIndex.push(B.readUInt16());for(this.names=[],De=[];B.pos<this.offset+this.length;)te=B.readByte(),De.push(this.names.push(B.readString(te)));return De;case 151552:return Ce=B.readUInt16(),this.offsets=B.read(Ce);case 262144:return this.map=function(){var je,it,Pt;for(Pt=[],Le=je=0,it=this.file.maxp.numGlyphs;0<=it?je<it:je>it;Le=0<=it?++je:--je)Pt.push(B.readUInt32());return Pt}.call(this)}},ue}(),Uc=function(Se,ue){this.raw=Se,this.length=Se.length,this.platformID=ue.platformID,this.encodingID=ue.encodingID,this.languageID=ue.languageID},jh=function(Se){function ue(){return ue.__super__.constructor.apply(this,arguments)}return Pu(ue,Rc),ue.prototype.tag="name",ue.prototype.parse=function(B){var te,Ce,De,Le,je,it,Pt,Zt,fi,Jt,Rt;for(B.pos=this.offset,B.readShort(),te=B.readShort(),it=B.readShort(),Ce=[],Le=0;0<=te?Le<te:Le>te;Le=0<=te?++Le:--Le)Ce.push({platformID:B.readShort(),encodingID:B.readShort(),languageID:B.readShort(),nameID:B.readShort(),length:B.readShort(),offset:this.offset+it+B.readShort()});for(Pt={},Le=fi=0,Jt=Ce.length;fi<Jt;Le=++fi)B.pos=(De=Ce[Le]).offset,Zt=B.readString(De.length),je=new Uc(Zt,De),null==Pt[Rt=De.nameID]&&(Pt[Rt]=[]),Pt[De.nameID].push(je);this.strings=Pt,this.copyright=Pt[0],this.fontFamily=Pt[1],this.fontSubfamily=Pt[2],this.uniqueSubfamily=Pt[3],this.fontName=Pt[4],this.version=Pt[5];try{this.postscriptName=Pt[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=Pt[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Pt[7],this.manufacturer=Pt[8],this.designer=Pt[9],this.description=Pt[10],this.vendorUrl=Pt[11],this.designerUrl=Pt[12],this.license=Pt[13],this.licenseUrl=Pt[14],this.preferredFamily=Pt[15],this.preferredSubfamily=Pt[17],this.compatibleFull=Pt[18],this.sampleText=Pt[19]},ue}(),Yh=function(Se){function ue(){return ue.__super__.constructor.apply(this,arguments)}return Pu(ue,Rc),ue.prototype.tag="maxp",ue.prototype.parse=function(B){return B.pos=this.offset,this.version=B.readInt(),this.numGlyphs=B.readUInt16(),this.maxPoints=B.readUInt16(),this.maxContours=B.readUInt16(),this.maxCompositePoints=B.readUInt16(),this.maxComponentContours=B.readUInt16(),this.maxZones=B.readUInt16(),this.maxTwilightPoints=B.readUInt16(),this.maxStorage=B.readUInt16(),this.maxFunctionDefs=B.readUInt16(),this.maxInstructionDefs=B.readUInt16(),this.maxStackElements=B.readUInt16(),this.maxSizeOfInstructions=B.readUInt16(),this.maxComponentElements=B.readUInt16(),this.maxComponentDepth=B.readUInt16()},ue}(),up=function(Se){function ue(){return ue.__super__.constructor.apply(this,arguments)}return Pu(ue,Rc),ue.prototype.tag="hmtx",ue.prototype.parse=function(B){var te,Ce,De,je,it,Pt;for(B.pos=this.offset,this.metrics=[],te=0,it=this.file.hhea.numberOfMetrics;0<=it?te<it:te>it;te=0<=it?++te:--te)this.metrics.push({advance:B.readUInt16(),lsb:B.readInt16()});for(De=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Zt,fi;for(fi=[],te=Zt=0;0<=De?Zt<De:Zt>De;te=0<=De?++Zt:--Zt)fi.push(B.readInt16());return fi}(),this.widths=function(){var Zt,fi,Jt,Rt;for(Rt=[],Zt=0,fi=(Jt=this.metrics).length;Zt<fi;Zt++)Rt.push(Jt[Zt].advance);return Rt}.call(this),Ce=this.widths[this.widths.length-1],Pt=[],te=je=0;0<=De?je<De:je>De;te=0<=De?++je:--je)Pt.push(this.widths.push(Ce));return Pt},ue.prototype.forGlyph=function(B){return B in this.metrics?this.metrics[B]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[B-this.metrics.length]}},ue}(),Gc=[].slice,og=function(Se){function ue(){return ue.__super__.constructor.apply(this,arguments)}return Pu(ue,Rc),ue.prototype.tag="glyf",ue.prototype.parse=function(){return this.cache={}},ue.prototype.glyphFor=function(B){var te,Ce,De,Le,je,it,Pt,Zt,fi,Jt;return B in this.cache?this.cache[B]:(te=this.file.contents,Ce=(Le=this.file.loca).indexOf(B),0===(De=Le.lengthOf(B))?this.cache[B]=null:(te.pos=this.offset+Ce,je=(it=new iu(te.read(De))).readShort(),Zt=it.readShort(),Jt=it.readShort(),Pt=it.readShort(),fi=it.readShort(),this.cache[B]=-1===je?new _m(it,Zt,Jt,Pt,fi):new Zp(it,je,Zt,Jt,Pt,fi),this.cache[B]))},ue.prototype.encode=function(B,te,Ce){var De,Le,je,it,Pt;for(je=[],Le=[],it=0,Pt=te.length;it<Pt;it++)De=B[te[it]],Le.push(je.length),De&&(je=je.concat(De.encode(Ce)));return Le.push(je.length),{table:je,offsets:Le}},ue}(),Zp=function(){function Se(ue,B,te,Ce,De,Le){this.raw=ue,this.numberOfContours=B,this.xMin=te,this.yMin=Ce,this.xMax=De,this.yMax=Le,this.compound=!1}return Se.prototype.encode=function(){return this.raw.data},Se}(),_m=function(){function Se(ue,B,te,Ce,De){var Le,je;for(this.raw=ue,this.xMin=B,this.yMin=te,this.xMax=Ce,this.yMax=De,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Le=this.raw;je=Le.readShort(),this.glyphOffsets.push(Le.pos),this.glyphIDs.push(Le.readUInt16()),32&je;)Le.pos+=1&je?4:2,128&je?Le.pos+=8:64&je?Le.pos+=4:8&je&&(Le.pos+=2)}return Se.prototype.encode=function(){var ue,B,te;for(B=new iu(Gc.call(this.raw.data)),ue=0,te=this.glyphIDs.length;ue<te;++ue)B.pos=this.glyphOffsets[ue];return B.data},Se}(),Ad=function(Se){function ue(){return ue.__super__.constructor.apply(this,arguments)}return Pu(ue,Rc),ue.prototype.tag="loca",ue.prototype.parse=function(B){var Ce;return B.pos=this.offset,this.offsets=0===this.file.head.indexToLocFormat?function(){var De,Le;for(Le=[],Ce=0,De=this.length;Ce<De;Ce+=2)Le.push(2*B.readUInt16());return Le}.call(this):function(){var De,Le;for(Le=[],Ce=0,De=this.length;Ce<De;Ce+=4)Le.push(B.readUInt32());return Le}.call(this)},ue.prototype.indexOf=function(B){return this.offsets[B]},ue.prototype.lengthOf=function(B){return this.offsets[B+1]-this.offsets[B]},ue.prototype.encode=function(B,te){for(var Ce=new Uint32Array(this.offsets.length),De=0,Le=0,je=0;je<Ce.length;++je)if(Ce[je]=De,Le<te.length&&te[Le]==je){++Le,Ce[je]=De;var Pt=this.offsets[je+1]-this.offsets[je];Pt>0&&(De+=Pt)}for(var Zt=new Array(4*Ce.length),fi=0;fi<Ce.length;++fi)Zt[4*fi+3]=255&Ce[fi],Zt[4*fi+2]=(65280&Ce[fi])>>8,Zt[4*fi+1]=(16711680&Ce[fi])>>16,Zt[4*fi]=(4278190080&Ce[fi])>>24;return Zt},ue}(),sg=function(){function Se(ue){this.font=ue,this.subset={},this.unicodes={},this.next=33}return Se.prototype.generateCmap=function(){var ue,B,Ce,De;for(B in Ce=this.font.cmap.tables[0].codeMap,ue={},De=this.subset)ue[B]=Ce[De[B]];return ue},Se.prototype.glyphsFor=function(ue){var B,te,Ce,De,Le,je,it;for(Ce={},Le=0,je=ue.length;Le<je;Le++)Ce[De=ue[Le]]=this.font.glyf.glyphFor(De);for(De in B=[],Ce)null!=(te=Ce[De])&&te.compound&&B.push.apply(B,te.glyphIDs);if(B.length>0)for(De in it=this.glyphsFor(B))Ce[De]=te=it[De];return Ce},Se.prototype.encode=function(ue,B){var te,Ce,De,Le,it,Pt,Zt,fi,Jt,Rt,sn,nn,fn,$i;for(Ce in te=ag.encode(this.generateCmap(),"unicode"),Le=this.glyphsFor(ue),Rt={0:0},$i=te.charMap)Rt[(it=$i[Ce]).old]=it.new;for(sn in Jt=te.maxGlyphID,Le)sn in Rt||(Rt[sn]=Jt++);return Zt=function(vn){var kn,Fn;for(kn in Fn={},vn)Fn[vn[kn]]=kn;return Fn}(Rt),fi=Object.keys(Zt).sort(function(vn,kn){return vn-kn}),nn=function(){var vn,kn,Fn;for(Fn=[],vn=0,kn=fi.length;vn<kn;vn++)Fn.push(Zt[fi[vn]]);return Fn}(),De=this.font.glyf.encode(Le,nn,Rt),Pt=this.font.loca.encode(De.offsets,nn),fn={cmap:this.font.cmap.raw(),glyf:De.table,loca:Pt,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(B)},this.font.os2.exists&&(fn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(fn)},Se}();wa.API.PDFObject=function(){var Se;function ue(){}return Se=function(B,te){return(Array(te+1).join("0")+B).slice(-te)},ue.convert=function(B){var Ce,De;if(Array.isArray(B))return"["+function(){var je,it,Pt;for(Pt=[],je=0,it=B.length;je<it;je++)Pt.push(ue.convert(B[je]));return Pt}().join(" ")+"]";if("string"==typeof B)return"/"+B;if(B?.isString)return"("+B+")";if(B instanceof Date)return"(D:"+Se(B.getUTCFullYear(),4)+Se(B.getUTCMonth(),2)+Se(B.getUTCDate(),2)+Se(B.getUTCHours(),2)+Se(B.getUTCMinutes(),2)+Se(B.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(B)){for(Ce in De=["<<"],B)De.push("/"+Ce+" "+ue.convert(B[Ce]));return De.push(">>"),De.join("\n")}return""+B},ue}();var qp=D(92887),Sf=D(2578),Jf=D(83771);const Ef={caption:"core.caption.login",path:"login",loadChildren:()=>D.e(826).then(D.bind(D,74826)).then(Se=>Se.LoginModule),icon:"logout",allowRedirect:!0,hidden:!0,messageCaption:"stammdaten"},Im={caption:"core.caption.account",path:"account",loadChildren:()=>Promise.all([D.e(426),D.e(76)]).then(D.bind(D,39655)).then(Se=>Se.AccountModule),icon:"account_circle",hidden:!1,messageCaption:"My Account",showIconInNavbar:!0};var Wc=function(Se){return Se.User="WebAppUser",Se.ServerInfo="Info",Se}(Wc||{});(0,Jf.A)({licenseKey:""});let Uo=(()=>{class Se{constructor(B){this.locale=B,this.hrColorDarkBlue="#0b3a62",this.hrColorLightBlue="#78b7e5",this.hrColorLightGrey="#878787",this.hrColorDarkGrey="#3c3c3b",this.hrColorGreen="#76b82a",this.showIds=!1,this.appPages=[Ef]}isTheMainPage(B=null){return this.isThePage(this.mainPage.path,B)}isTheLoginPage(B=null){return this.isThePage(Ef.path,B)}isTheCurrentPage(B){return this.isThePage(this.appPages[B].path)}isVisiblePage(B=null){const te=this.appPages.find(Ce=>this.isThePage(Ce.path,B));return te&&!te.hidden}isThePage(B,te=null){return te?((te.startsWith("/")?"":"/")+te+"/").startsWith("/"+B+"/"):(this.currentPage+"/").startsWith(B+"/")}getPageIndex(B){return this.appPages.findIndex(te=>te.path===B)}getPage(B){const te=this.getPageIndex(B);return te>-1?this.appPages[te]:null}formatNumber(B,te){return null==B?"":d.GQ(this.locale,"object"==typeof B?+B.value:+B,te)}formatNumber_0(B){return this.formatNumber(B,0)}formatNumber_1(B){return this.formatNumber(B,1)}formatNumber_2(B){return this.formatNumber(B,2)}formatNumber_3(B){return this.formatNumber(B,3)}formatNumber_4(B){return this.formatNumber(B,4)}get localeDecimalSeparator(){return d.FI(this.locale)}get localeThousandSeparator(){return d.o7(this.locale)}get localeDateFormat(){return d.eW(this.locale)}get localeDateTimeFormat(){return d.PR(this.locale)}exportToPDF(B){const te=new wa(B.pdfOptions);te.text(B.title.text,B.title.x??te.internal.pageSize.width/B.title.divX,B.title.y??15,{align:B.title.align??"center"}),function Yo(Se){return Fa_export(function _o(Se){if(!(0,L.O9)(Se)||!(0,L.Gv)(Se))throw Error('The "exportDataGrid" method requires a configuration object.');if(!(0,L.O9)(Se.component)||!(0,L.Gv)(Se.component)||"dxDataGrid"!==Se.component.NAME)throw Error('The "component" field must contain a DataGrid instance.');if(!(0,L.O9)(Se.jsPDFDocument)||!(0,L.Gv)(Se.jsPDFDocument))throw Error('The "jsPDFDocument" field must contain a jsPDF instance.');return(0,L.O9)(Se.autoTableOptions)&&Et.A.log("W0001","Export","autoTableOptions","22.1","You can migrate from exporting to PDF with the AutoTable plugin to a new export system. See the following topic for more information: ".concat("https://supportcenter.devexpress.com/ticket/details/t1077554")),Fa_getFullOptions(Se)}(Se))}({jsPDFDocument:te,component:B.gridComponent,repeatHeaders:B.repeatHeaders??!0,margin:B.margin,customizeCell:Ce=>{B.customizeCallback&&B.customizeCallback(Ce)}}).then(()=>{te.save(B.fileName),B.finalizeCallback&&B.finalizeCallback()})}exportToExcel(B){const te=new qp.Workbook,Ce=te.addWorksheet(B.title?.tabName??d.hK(B.fileName));("dxPivotGrid"===B.gridComponent.NAME?vt:Ee)({component:B.gridComponent,worksheet:Ce,topLeftCell:B.margin?{row:B.margin.top,column:B.margin.left}:null,customizeCell:je=>{B.customizeCallback&&B.customizeCallback(je)}}).then(function(){te.xlsx.writeBuffer().then(je=>{(0,Sf.saveAs)(new Blob([je],{type:"application/octet-stream"}),B.fileName+".xlsx")}),B.finalizeCallback&&B.finalizeCallback()})}doExcelExportSimple(B,te,Ce){this.exportToExcel({fileName:te,gridComponent:B.component,customizeCallback:"dxPivotGrid"===B.component.NAME&&Ce?this.dontExportFieldnameTemplatename.bind(this,Ce):null})}dontExportFieldnameTemplatename(B,te){const{gridCell:Ce,excelCell:De}=te;B=","+B.replace(" ","").toLocaleLowerCase()+",",(Ce.column?.cellTemplate&&B.indexOf(",#"+Ce.column?.cellTemplate.toLocaleLowerCase()+",")>-1||Ce.column?.dataField&&B.indexOf(","+Ce.column?.dataField.toLocaleLowerCase()+",")>-1)&&(De.value=null,De._column.hidden=!0)}static#e=this.\u0275fac=function(te){return new(te||Se)(r.KVO(r.xe9))};static#t=this.\u0275prov=r.jDH({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})()},45197:(ei,rt,D)=>{"use strict";D.d(rt,{U:()=>R});var r=D(96354),d=D(33570),L=D(44232),j=D(54438),o=D(21626),E=D(66664);let R=(()=>{class m{constructor(v,h,s){this.httpClient=v,this.appLogService=h,this.apiUrl=s.apiUrl}deleteDataById(v,h){const s=h&&"0"!=h?"/"+h.toString():"";return this.httpClient.delete(this.apiUrl+"/"+v+s).pipe((0,r.T)(b=>b))}getDataById(v,h){const s=h&&"0"!=h&&-1!=h?"/"+h.toString():"";return this.getDataByURLFilter(v,s)}putDataById(v,h,s){return this.putData(v+"/"+h.toString(),s)}postDataById(v,h,s){let b="";return"number"!=typeof h&&Number.isNaN(Number(h))?b=h:Number(h)>0&&(b=h.toString()),this.postData(v+(b?"/"+b:""),s)}getDataByObjFilter(v,h){return this.appLogService.dlog("filter=",h),this.postData(v+(h.filterPrefix?"/"+h.filterPrefix:""),h)}getDataByURLFilter(v,h){return this.getData(v+(h&&""!==h?("/"!==h.slice(0,1)?"/":"")+h:""))}putData(v,h,s){return this.httpClient.put(this.apiUrl+"/"+v,h,{headers:s}).pipe((0,r.T)(b=>b))}postData(v,h,s){return this.httpClient.post(this.apiUrl+"/"+v,h,{headers:s}).pipe((0,r.T)(b=>b))}getData(v,h){return this.httpClient.get(this.apiUrl+"/"+v,{headers:h}).pipe((0,r.T)(s=>s))}getIPAddress(){return this.httpClient.get(d.AB)}static#e=this.\u0275fac=function(h){return new(h||m)(j.KVO(o.Qq),j.KVO(E.w),j.KVO(L.i2))};static#t=this.\u0275prov=j.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()},12748:(ei,rt,D)=>{"use strict";D.d(rt,{X:()=>L});var r=D(19664),d=D(54438);let L=(()=>{class j extends r.c${instant(E,R){return E?super.instant(E,R):""}translateString(E){let R=E?.replace(/\${(.*?)}/g,(m,_)=>this.instant(_));return R===E&&(R=this.instant(R)),R}static#e=this.\u0275fac=(()=>{let E;return function(m){return(E||(E=d.xGo(j)))(m||j)}})();static#t=this.\u0275prov=d.jDH({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})()},62855:(ei,rt,D)=>{"use strict";D.d(rt,{i:()=>w});var r=D(10467),d=D(85343),L=D(93120);D(93041);var v=D(15113),h=D(54438),s=D(18498),b=D(12748);let w=(()=>{class f{get currentCulture(){return this._currentCulture}set currentCulture(I){const x=this._currentCulture;this.setCultureWOReload(I),x!==I&&setTimeout(()=>this.reloadPages())}set currentLocale(I){this.setCultureWOReload(I),this.currentLanguage=I}get currentLanguage(){return this._currentLanguage}set currentLanguage(I){this._currentLanguage=I.split("-")[0],this.translate.use(I)}constructor(I,x,g){var C=this;if(this.router=I,this.translate=x,this.initialized=!1,this.reloadPages=(0,r.A)(function*(){const{shouldReuseRoute:F}=C.router.routeReuseStrategy;C.setRouteReuse(()=>!1),C.router.navigated=!1,yield C.router.navigateByUrl(C.router.url).catch(d.l),C.setRouteReuse(F)}),g)throw new Error("LocaleService should have only one instance.")}setCultureWOReload(I){this._currentCulture=I,this.dateFormat=(0,v.eW)(I),this.dateTimeFormat=(0,v.PR)(I),this.thousandSeparator=(0,v.o7)(I),this.decimalSeparator=(0,v.FI)(I),this.currencyCode=(0,v.VD)(I),this.currencySymbol=(0,v.Qn)(I),L.Hg(I)}setRouteReuse(I){this.router.routeReuseStrategy.shouldReuseRoute=I}subscribeToLangChange(){this.translate.onLangChange.subscribe(()=>{this.reloadPages()})}initLocaleLanguage(I,x){this.initialized||(this.setCultureWOReload(I),this.currentLanguage=x??I,this.translate.setDefaultLang(this.currentLanguage),setTimeout(()=>this.subscribeToLangChange(),1e3),this.initialized=!0,console.log("Locale is initialized !!"))}static#e=this.\u0275fac=function(x){return new(x||f)(h.KVO(s.Ix),h.KVO(b.X),h.KVO(f,12))};static#t=this.\u0275prov=h.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},89097:(ei,rt,D)=>{"use strict";D.d(rt,{w:()=>j});var r=D(70753),d=D(74854),L=D(54438);let j=(()=>{class o{constructor(R){this.dialog=R}openDialog(R,m,_=!1,v,h=!0){const s=new d.In;R instanceof r.F&&(_=!0),s.disableClose=_,s.autoFocus=h,s.data=m;const b=this.dialog.open(R,s);return b.afterClosed().subscribe(O=>{v&&v(O)}),b}static#e=this.\u0275fac=function(m){return new(m||o)(L.KVO(d.ef))};static#t=this.\u0275prov=L.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},37085:(ei,rt,D)=>{"use strict";D.d(rt,{u:()=>s});var r=D(21413),d=D(40605),L=function(b){return b[b.info=1]="info",b[b.warn=2]="warn",b}(L||{});class j{constructor(O,w,f,k){this.message=O,this.isActive=!0,this.type=w,this.createdTimestamp=new Date,this.duration=f,this.id=k}stopMessage(){this.finishedTimestamp=new Date,this.isActive=!1}durationExpired(O){return!!(this.displayedTimestamp&&this.duration>0&&O>=this.displayedTimestamp.getTime()+this.duration)}getStyleColor(){return this.type===L.info?"secondary":"primary"}}var o=D(95416),E=D(54438),R=D(66664),m=D(5194);const _=1e3;class h extends o.um{constructor(O){super(),Object.assign(this,O)}}let s=(()=>{class b{constructor(w,f){this.appLogsService=w,this.snackBar=f,this.MAX_INACTIVE_ITEMS=5,this.msbPoxPosition={horizontal:"center",vertical:"bottom"},this.isActive=!0,this.pollingItervalTimer=null,this.checkinOnTimer=()=>{if(0===this.activeItems.length)this.stopPolling();else{const k=(new Date).getTime();let I=this.activeItems[0];I.durationExpired(k)&&(this.stopMessage(I.id),this.activeItems.length>0&&(I=this.activeItems[0])),I&&!I.displayedTimestamp&&this.data$.next(I)}},this.data$=new r.B,this.data$.subscribe(k=>this.showNotification(k)),this.activeItems=[],this.inactiveItems=[],this.idCounter=1}stopPolling(){this.hide(),this.pollingItervalTimer?.unsubscribe(),this.pollingItervalTimer=null}startPolling(){this.pollingItervalTimer||(this.pollingItervalTimer=(0,d.Y)(100).subscribe(this.checkinOnTimer))}cleanUp(w){const f=this.activeItems.indexOf(w);-1!==f&&this.activeItems.splice(f,1),this.inactiveItems.splice(0,0,w),this.inactiveItems.length>this.MAX_INACTIVE_ITEMS&&this.inactiveItems.splice(this.MAX_INACTIVE_ITEMS)}clearAll(){this.activeItems=[],this.inactiveItems=[]}createNew(w,f,k){return this.idCounter++,new j(w,f,k,this.idCounter)}getActiveItems(){return this.activeItems}getInactiveItems(){return this.inactiveItems}isVisible(){return this.activeItems.length>0}getInactiveMessages(){let w="";return this.inactiveItems.forEach(f=>{w+=f.message+"; "}),w}getActiveMessages(){let w="";return this.activeItems.forEach(f=>{w+=f.message+"; "}),w}showMessage(w,f,k=_){return this.add2Queue(w,f,k,L.info)}showWarning(w,f,k=_){return this.add2Queue(w,f,k,L.warn)}add2Queue(w,f,k=_,I){if(!this.isActive)return;f&&this.stopMessage(f);const x=this.createNew(w,I,k);if(this.activeItems.length>0){const g=this.activeItems[this.activeItems.length-1];g.displayedTimestamp||(g.duration/=4)}return this.activeItems.push(x),this.startPolling(),x.id}stopMessage(w){const f=this.activeItems.find(k=>k.id===w);f&&(f.stopMessage(),this.cleanUp(f))}updateMessage(w,f){this.appLogsService.dlog("updateMessage id:"+w+" "+f);const k=this.activeItems.filter(I=>I.id===w);k&&k[0]&&(this.appLogsService.dlog("found updateMessage id:"+w+" "+f),k[0].message=f)}hide(){this.appLogsService.dlog("<-Hide Message"),this.snackBar.dismiss()}showNotification(w){this.hide(),w.displayedTimestamp=new Date,this.currentSnackBar=this.snackBar.open(w.message,void 0,new h({horizontalPosition:this.msbPoxPosition.horizontal,verticalPosition:this.msbPoxPosition.vertical,duration:w.duration,panelClass:"hensel-notifier"})),this.appLogsService.dlog("Show Message id:"+w.id+" "+w.message)}static#e=this.\u0275fac=function(f){return new(f||b)(E.KVO(R.w),E.KVO(m.nf))};static#t=this.\u0275prov=E.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()},53573:(ei,rt,D)=>{"use strict";D.d(rt,{z:()=>I});var r=D(54438),d=D(84412),L=D(40605),j=D(33570),o=D(44232),E=D(19057),R=D(57764);class m extends R.H{constructor(){super(...arguments),this.typeName=E.lp.ServerInfo}isNew(){return!1}}var _=D(15113),v=D(45197),h=D(62560),s=D(66664),b=D(12748),O=D(80357);let I=(()=>{class x{get pollingIntervalConnectedInSec(){return this._pollingIntervalConnectedInSec}set pollingIntervalConnectedInSec(C){this._pollingIntervalConnectedInSec=C,this.resetPolling(C||0)}constructor(C,F,Y,Q,se,ie){this.serverInfoDataService=C,this.authorizationService=F,this.globals=Y,this.appLogsService=Q,this.translate=se,this.updateService=ie,this.environment=(0,r.WQX)(o.i2),this.serverInfo=new m,this.serverStatus=-1,this.defaultServerInfoVisible=!0,this.pollingItervalTimer=null,this.connectionReady=new d.t(null),this.EN_LoginStatus_Password=j.ME.loginWithNameAndPassword,this.cnst_AppIcon4Live=(0,r.WQX)(o.Fz),this.cnst_AppIcon4Test=(0,r.WQX)(o.dQ),this._pollingIntervalConnectedInSec=15,this.resetPolling(3),this.createWarningTimeOutSubscriber=this.createWarningTimeOutSubscriber.bind(this),this.createWarningTimeOutSubscriber(),this.authorizationService.loginAction$.subscribe(ee=>{ee.result?void 0!==this.authorizationService.user.showFooter?this.serverInfoVisible=F.user.showFooter:void 0===this.serverInfoVisible&&(this.serverInfoVisible=F.user.isAdmin):this.serverInfoVisible=this.defaultServerInfoVisible||this.serverInfoVisible}),this.appLogsService.dlog("Server Info is initialized!")}createWarningTimeOutSubscriber(){this.warningTimeOut=setTimeout(()=>{clearTimeout(this.warningTimeOut),this.warningPopup=this.appLogsService.warningMessageBox(this.translate.instant("core.msgbox.header.connect"),this.translate.instant("core.msgbox.body.connect"),()=>this.warningTimeOut=null)},1e4)}resetPolling(C){this.pollingItervalTimer&&this.pollingItervalTimer.unsubscribe(),C>0&&(this.pollingItervalTimer=(0,L.Y)(1e3*C).subscribe(()=>{this.init()}))}init(){const C=this.serverInfo?.isLive;this.resetPolling(0),this.serverInfo.firstOnlineTime=-1===this.serverStatus?new Date:null,this.serverInfo.save(this.serverInfoDataService,F=>{this.resetPolling(this.pollingIntervalConnectedInSec),this.authorizationService.versionObsolete||this.updateService.checkForUpdate().then(Y=>this.authorizationService.versionObsolete=this.isOldVersion(this.serverInfo.clientVersion)||Y),F.attributes?(F.officeFileServerURL=F.attributes.url,F.officeFileServerVersion=F.attributes.version,F.officeFileServer=F.attributes.server,F.officeFileServerDBServer=F.attributes.databaseserver,F.officeFileServerDBName=F.attributes.databasename):(F.officeFileServerURL=null,F.officeFileServerVersion=null,F.officeFileServer=null,F.officeFileServerDBServer=null,F.officeFileServerDBName=null),C!==F.isLive&&(F.isLive?((0,_.Un)(this.cnst_AppIcon4Live),this.globals.appTitleWithVersion.startsWith("Test - ")&&(this.globals.appTitleWithVersion=this.globals.appTitleWithVersion.replace("Test - ",""))):((0,_.Un)(this.cnst_AppIcon4Test),this.globals.appTitleWithVersion.startsWith("Test - ")||(this.globals.appTitleWithVersion="Test - "+this.globals.appTitleWithVersion))),-1===this.serverStatus&&(this.warningPopup&&this.warningPopup.close(),clearTimeout(this.warningTimeOut),this.warningTimeOut=null,this.appLogsService.dlog("Server connected!"),this.serverStatus=this.isLive()?0:1,this.authorizationService.useJWT?this.authorizationService.checkJWT(null)||(this.authorizationService.loginStatus=this.EN_LoginStatus_Password):this.authorizationService.useWindowsLogin||(this.authorizationService.loginStatus=this.EN_LoginStatus_Password),this.connectionReady.next(F))},F=>{this.resetPolling(3),-1!==this.serverStatus&&(this.serverInfo.lastOfflineTime=new Date,this.serverStatus=-1),this.warningTimeOut||this.createWarningTimeOutSubscriber()},null,"")}isOldVersion(C){const Y=this.environment.appVersion?.split("."),Q=C?.split(".");for(;Q.length>Y.length;)Y.push("0");for(;Y.length>Q.length;)Q.push("0");for(let se=0;se<Y.length;se++){const ie=Y[se],ee=Q[se],re=Number(ie),ne=Number(ee);if(Number.isNaN(re)||Number.isNaN(ne)){if(ie!==ee)return ie<ee}else if(re!==ne)return re<ne}return!1}isLive(){return this.serverInfo?.isLive}static#e=this.\u0275fac=function(F){return new(F||x)(r.KVO(v.U),r.KVO(h.V),r.KVO(E.RV),r.KVO(s.w),r.KVO(b.X),r.KVO(O.EI))};static#t=this.\u0275prov=r.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},15113:(ei,rt,D)=>{"use strict";D.d(rt,{$5:()=>ie,Ec:()=>ne,FI:()=>v,GQ:()=>k,Os:()=>R,PR:()=>O,Qn:()=>b,Rh:()=>ye,TR:()=>Q,Un:()=>_e,VD:()=>s,Y8:()=>q,Z:()=>f,cP:()=>ee,eW:()=>w,hK:()=>oe,le:()=>se,n4:()=>I,o7:()=>h,or:()=>_,tB:()=>X,x8:()=>be,zH:()=>xe});var r=D(60177),d=D(21626),L=D(97586),j=D.n(L),o=D(33570);const E=j();function R(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Ie){const ce=16*Math.random()|0;return("x"===Ie?ce:3&ce|8).toString(16)})}function _(Ie,ce){return E(Ie).format(ce)}function v(Ie){return r.a(Ie,r.gz.Decimal)}function h(Ie){return r.a(Ie,r.gz.Group)}function s(Ie){return r.VD(Ie)}function b(Ie){return r.Qn(s(Ie),"narrow",Ie)}function O(Ie){return w(Ie,o.vx.DateTime)}function w(Ie,ce=o.vx.Date){let de;switch(ce){case o.vx.WebAPI:de=o.Kn.display.date4WebAPI;break;case o.vx.JSON:de=o.Kn.display.dateTime4JSON;break;case o.vx.DateTime:de=function W(Ie,...ce){return ce&&(Ie=Ie.replace(/\{([^}]+)}/g,function(de,pe){return null!=ce&&pe in ce?ce[pe]:de})),Ie}(r.P6(Ie,r.Aq.Short),r.RD(Ie,r.Aq.Short),r.gq(Ie,r.Aq.Short)).replace("yy","y");break;default:de=r.gq(Ie,r.Aq.Short).replace("yy","y")}return de}function f(Ie,ce=o.vx.WebAPI,de="en-US"){let pe="";if(Ie)if("string"==typeof Ie&&(Ie=new Date(Ie)),"object"==typeof Ie){const Be=w(de,ce),We=Be.toUpperCase().replace(":MM",":mm").replace(":SS",":ss");E.isMoment(Ie)?pe=E(Ie).format(We):E.isDate(Ie)&&(pe=r.Yq(Ie,Be,de))}else pe=Ie.toString();return pe}function k(Ie,ce,de=0,pe=""){return pe+r.ZV(ce,Ie,"1."+de+"-"+de)}function I(Ie,ce){if(ce&&Ie){for(const de in Ie)if(Ie.hasOwnProperty(de)&&ce.hasOwnProperty(de)&&ce[de]!==Ie[de])return!1;return!0}return!ce&&!Ie}function Q(Ie,ce,de){return Ie[de]||(Ie[de]=[],Ie[ce]&&Ie[ce].split(",").forEach((Be,We)=>{Be&&!Number.isNaN(Number(Be))&&Ie[de].push(+Be)})),Ie[de]}function se(Ie,ce,de,pe){Ie[de]=pe,Ie[ce]=pe.join(",")}function ie(Ie){return Ie?Ie instanceof d.yz&&Ie.status===o.zQ?o.DA:Ie.errMsg?Ie.errMsg:Ie.error?"string"==typeof Ie.error?Ie.error:Ie.error.errors&&Ie.error.errors instanceof Array&&Ie.error.errors.length>0?Ie.error.errors[0].toString():Ie.error.message?Ie.message:Ie.error.toString():Ie.message?Ie.message:Ie.statusText?Ie.statusText:Ie.toString():"unknown error"}function ee(Ie){return Ie&&Ie.ngOriginalError&&(Ie=Ie.ngOriginalError),"string"==typeof Ie||Ie instanceof Error?Ie:Ie instanceof d.yz?Ie.error instanceof Error?Ie.error:Ie.error instanceof ErrorEvent&&Ie.error.message?Ie.error.message:"string"==typeof Ie.error?`Server returned code ${Ie.status} with body "${Ie.error}"`:Ie.message:Ie.error&&Ie.error.message?Ie.error.message:Ie.message?Ie.message:null}function ne(){const Ie=new Date;return Ie.setHours(0,0,0,0),Ie}function _e(Ie,ce="#favIcon"){const de=document.querySelector(ce);de&&(de.href=Ie)}function be(Ie){const ce=document.querySelector("#appTitle");ce&&(ce.innerText=Ie)}function oe(Ie){return Ie.replace(new RegExp("/ ","g"),"_").replace(new RegExp(" /","g"),"_").replace(new RegExp(" / ","g"),"_").replace(new RegExp(" ","g"),"_").replace(new RegExp("/","g"),"_").replace(new RegExp(":","g"),"_").replace(new RegExp(">","g"),"_").replace(new RegExp("<","g"),"_").replace(new RegExp("___","g"),"_").replace(new RegExp("__","g"),"_")}function X(){return E.now()}function q(Ie){return E().isBefore(Ie)}function ye(Ie,ce,de){return(!ce||ce.indexOf(Ie)>-1)&&(!de||de.findIndex(pe=>pe.langCode===Ie)>-1)}function xe(Ie,ce,de){return(!ce||ce.indexOf(Ie)>-1)&&(!de||de.findIndex(pe=>pe.culture===Ie)>-1)}},87936:(ei,rt,D)=>{"use strict";var r={};D.r(r),D.d(r,{circular:()=>Hd,circularSpider:()=>gp,linear:()=>tp,linearSpider:()=>ld});var d=D(345),L=D(54438),j=D(44703),o=D(33570),E=D(15113),R=D(44232),m=D(19057),_=D(45197),v=D(19664),h=D(53573),s=D(62855),b=D(80357),O=D(36554),w=D(90882),f=D(18498),k=D(62560),I=D(21626),x=D(60177);function g(l,u){1&l&&(L.j41(0,"div",3)(1,"span"),L.EFF(2),L.nI1(3,"translate"),L.k0s(),L.j41(4,"span",4),L.EFF(5),L.nI1(6,"translate"),L.k0s()()),2&l&&(L.R7$(2),L.SpI("",L.bMT(3,2,"core.footer.status"),":"),L.R7$(3),L.JRh(L.bMT(6,4,"core.footer.noconnection")))}function C(l,u){if(1&l&&(L.j41(0,"a")(1,"span"),L.EFF(2,"File-Server:"),L.k0s(),L.j41(3,"span",13),L.EFF(4),L.k0s()()),2&l){const S=L.XpG(3);L.R7$(4),L.JRh(S.serverInfoService.serverInfo.fileServer)}}function F(l,u){if(1&l&&(L.j41(0,"a")(1,"span"),L.EFF(2),L.nI1(3,"translate"),L.k0s(),L.j41(4,"span",14),L.EFF(5),L.k0s()()),2&l){const S=L.XpG(3);L.R7$(2),L.SpI("",L.bMT(3,2,"core.caption.user"),"-Name:"),L.R7$(3),L.JRh(S.serverInfoService.serverInfo.userName)}}function Y(l,u){if(1&l&&(L.j41(0,"a")(1,"span"),L.EFF(2),L.nI1(3,"translate"),L.k0s(),L.j41(4,"span",15),L.EFF(5),L.nI1(6,"date"),L.k0s()()),2&l){const S=L.XpG(3);L.R7$(2),L.SpI("",L.bMT(3,2,"core.footer.lastloading"),":"),L.R7$(3),L.JRh(L.i5U(6,4,S.serverInfoService.serverInfo.lastDataLoaded,"shortDate"))}}function Q(l,u){1&l&&(L.j41(0,"span"),L.EFF(1),L.nI1(2,"translate"),L.k0s()),2&l&&(L.R7$(),L.SpI("WebApp ",L.bMT(2,1,"core.caption.role"),":"))}function se(l,u){if(1&l&&(L.j41(0,"span",19),L.EFF(1),L.k0s()),2&l){const S=L.XpG(4);L.R7$(),L.JRh(S.authService.user.webAppRoleList)}}function ie(l,u){if(1&l&&(L.j41(0,"a")(1,"span"),L.EFF(2),L.nI1(3,"translate"),L.k0s(),L.j41(4,"span",16),L.EFF(5),L.k0s(),L.j41(6,"span"),L.EFF(7),L.nI1(8,"translate"),L.k0s(),L.j41(9,"span",17),L.EFF(10),L.k0s(),L.DNE(11,Q,3,3,"span",0)(12,se,2,1,"span",18),L.k0s()),2&l){const S=L.XpG(3);L.R7$(2),L.SpI("",L.bMT(3,6,"core.caption.user"),":"),L.R7$(3),L.JRh(S.authService.user.name),L.R7$(2),L.SpI("",L.bMT(8,8,"core.caption.role"),":"),L.R7$(3),L.JRh(S.authService.user.roleList),L.R7$(),L.Y8G("ngIf",(null==S.authService.user.webAppRoleList?null:S.authService.user.webAppRoleList.length)>0),L.R7$(),L.Y8G("ngIf",(null==S.authService.user.webAppRoleList?null:S.authService.user.webAppRoleList.length)>0)}}function ee(l,u){if(1&l&&(L.j41(0,"a",20)(1,"span"),L.EFF(2,"OF-Server-Version:"),L.k0s(),L.j41(3,"span",6),L.EFF(4),L.k0s()()),2&l){const S=L.XpG(3);L.Y8G("title",(S.serverInfoService.serverInfo.officeFileServerURL?"OF-Url: "+S.serverInfoService.serverInfo.officeFileServerURL+"\n":"")+(S.serverInfoService.serverInfo.officeFileServer?"OF-Server: "+S.serverInfoService.serverInfo.officeFileServer+"\n":"")+(S.serverInfoService.serverInfo.officeFileServerDBServer?"OF-DB_Server: "+S.serverInfoService.serverInfo.officeFileServerDBServer+"\n":"")+(S.serverInfoService.serverInfo.officeFileServerDBName?"OF-DB_Name: "+S.serverInfoService.serverInfo.officeFileServerDBName+"\n":"")),L.R7$(4),L.JRh(S.serverInfoService.serverInfo.officeFileServerVersion)}}function re(l,u){if(1&l&&(L.j41(0,"a")(1,"span",22),L.EFF(2),L.k0s(),L.j41(3,"span"),L.EFF(4),L.nI1(5,"translate"),L.k0s()()),2&l){const S=L.XpG(4);L.R7$(2),L.JRh(S.days),L.R7$(2),L.JRh(L.bMT(5,2,"core.footer.days"))}}function ne(l,u){if(1&l&&(L.j41(0,"a")(1,"span",23),L.EFF(2),L.k0s(),L.j41(3,"span"),L.EFF(4),L.nI1(5,"translate"),L.k0s()()),2&l){const S=L.XpG(4);L.R7$(2),L.JRh(S.hours),L.R7$(2),L.JRh(L.bMT(5,2,"core.footer.hours"))}}function _e(l,u){if(1&l&&(L.j41(0,"a")(1,"span",24),L.EFF(2),L.k0s(),L.j41(3,"span"),L.EFF(4),L.nI1(5,"translate"),L.k0s()()),2&l){const S=L.XpG(4);L.R7$(2),L.JRh(S.mins),L.R7$(2),L.JRh(L.bMT(5,2,"core.footer.mins"))}}function be(l,u){if(1&l&&(L.j41(0,"a")(1,"span",25),L.EFF(2),L.k0s(),L.j41(3,"span"),L.EFF(4),L.nI1(5,"translate"),L.k0s()()),2&l){const S=L.XpG(4);L.R7$(2),L.JRh(S.secs),L.R7$(2),L.JRh(L.bMT(5,2,"core.footer.secs"))}}function oe(l,u){if(1&l&&(L.j41(0,"a",21)(1,"span"),L.EFF(2),L.nI1(3,"translate"),L.k0s(),L.DNE(4,re,6,4,"a",0)(5,ne,6,4,"a",0)(6,_e,6,4,"a",0)(7,be,6,4,"a",0),L.k0s()),2&l){const S=L.XpG(3);L.R7$(2),L.SpI("",L.bMT(3,5,"core.footer.loginexpires"),":"),L.R7$(2),L.Y8G("ngIf",S.days>0),L.R7$(),L.Y8G("ngIf",S.hours>0),L.R7$(),L.Y8G("ngIf",S.mins>0),L.R7$(),L.Y8G("ngIf",S.secs>0)}}function me(l,u){if(1&l&&(L.j41(0,"div",3)(1,"span"),L.EFF(2,"Server:"),L.k0s(),L.j41(3,"span",5),L.EFF(4),L.k0s(),L.j41(5,"span"),L.EFF(6,"Server-Version:"),L.k0s(),L.j41(7,"span",6),L.EFF(8),L.k0s(),L.j41(9,"span"),L.EFF(10,"Status:"),L.k0s(),L.j41(11,"span",7),L.EFF(12),L.k0s(),L.j41(13,"span"),L.EFF(14,"Client-Version:"),L.k0s(),L.j41(15,"span",6),L.EFF(16),L.k0s(),L.j41(17,"span"),L.EFF(18,"Core-Version:"),L.k0s(),L.j41(19,"span",8),L.EFF(20),L.k0s(),L.j41(21,"span"),L.EFF(22,"DB-Server:"),L.k0s(),L.j41(23,"span",9),L.EFF(24),L.k0s(),L.j41(25,"span"),L.EFF(26,"DB-Name:"),L.k0s(),L.j41(27,"span",10),L.EFF(28),L.k0s(),L.DNE(29,C,5,1,"a",0)(30,F,6,4,"a",0)(31,Y,7,7,"a",0)(32,ie,13,10,"a",0)(33,ee,5,2,"a",11)(34,oe,8,7,"a",12),L.k0s()),2&l){const S=L.XpG(2);L.R7$(4),L.JRh(S.serverInfoService.serverInfo.server),L.R7$(4),L.JRh(S.serverInfoService.serverInfo.version),L.R7$(4),L.JRh(S.serverInfoService.serverInfo.status),L.R7$(4),L.JRh(S.serverInfoService.serverInfo.clientVersion),L.R7$(3),L.Y8G("title",S.devextremeVersion?"Dev-Extreme Version: "+S.devextremeVersion:""),L.R7$(),L.SpI(" ",S.coreVersion," "),L.R7$(4),L.Lme("",S.serverInfoService.serverInfo.databaseServer," (",S.serverInfoService.serverInfo.databaseStatus,")"),L.R7$(4),L.JRh(S.serverInfoService.serverInfo.databaseName),L.R7$(),L.Y8G("ngIf",S.serverInfoService.serverInfo.fileServer),L.R7$(),L.Y8G("ngIf",S.serverInfoService.serverInfo.userName),L.R7$(),L.Y8G("ngIf",S.serverInfoService.serverInfo.lastDataLoaded),L.R7$(),L.Y8G("ngIf",S.authService.user),L.R7$(),L.Y8G("ngIf",!!S.serverInfoService.serverInfo.officeFileServerVersion),L.R7$(),L.Y8G("ngIf",S.authService.useJWT&&S.authService.HR_JWT&&(S.days>0||S.hours>0||S.mins>0||S.secs>0))}}function we(l,u){if(1&l&&(L.j41(0,"div")(1,"div",1),L.DNE(2,g,7,6,"div",2)(3,me,35,15,"div",2),L.k0s()()),2&l){const S=L.XpG();L.R7$(2),L.Y8G("ngIf",-1===(null==S.serverInfoService?null:S.serverInfoService.serverStatus)),L.R7$(),L.Y8G("ngIf",(null==S.serverInfoService?null:S.serverInfoService.serverStatus)>=0)}}const N=1e3,G=60*N,W=60*G,z=24*W;let X=(()=>{class l{constructor(S,U,ae,Me){this.globals=S,this.serverInfoService=U,this.authService=ae,this.http=Me,this.updateTimer=()=>{if(!this.authService.useJWT||!this.authService.HR_JWT)return;let Re=this.authService.HR_JWT?.expiresAt?.valueOf()-(0,E.tB)();Re<-3*N||(Re<0&&(Re=0),this.days=Math.floor(Re/z),this.hours=this.days>0?0:Math.floor(Re%z/W),this.mins=this.days>0||this.hours>1?0:Math.floor(Re%W/G),this.secs=this.days>0||this.hours>0||this.mins>1?0:Math.floor(Re%G/N))},this.counter=setInterval(()=>this.updateTimer(),1e3)}ngOnInit(){this.http.get("../../../assets/json/package.json").subscribe(S=>{this.package_json=S,this.coreVersion=this.package_json?.version,this.devextremeVersion=this.package_json?.peerDependencies&&this.package_json?.peerDependencies["devextreme-angular"]?this.package_json?.peerDependencies["devextreme-angular"]:void 0,this.devextremeVersion=this.devextremeVersion??this.package_json?.dependencies["devextreme-angular"]})}ngOnDestroy(){clearInterval(this.counter)}static#e=this.\u0275fac=function(U){return new(U||l)(L.rXU(m.RV),L.rXU(h.z),L.rXU(k.V),L.rXU(I.Qq))};static#t=this.\u0275cmp=L.VBU({type:l,selectors:[["app-footer"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"slide-top"],["class","divFooter",4,"ngIf"],[1,"divFooter"],["id","status_data",1,"data",2,"color","red!important"],["id","srv_data",1,"data"],["id","srvv_data",1,"data"],["id","st_data",1,"data"],["id","corev_data",1,"data",3,"title"],["id","dbsrv_data",1,"data"],["id","db_data",1,"data"],[3,"title",4,"ngIf"],["style","float: right",4,"ngIf"],["id","fs_data",1,"data"],["id","usr_data",1,"data"],["id","q_data",1,"data"],["id","q_usrdata",1,"data"],["id","q_usrrolle",1,"data"],["class","data","id","q_usraddrolle",4,"ngIf"],["id","q_usraddrolle",1,"data"],[3,"title"],[2,"float","right"],["id","q_daysdata",1,"data1"],["id","q_hrsdata",1,"data1"],["id","q_minsdata",1,"data1"],["id","q_secsdata",1,"data1"]],template:function(U,ae){1&U&&L.DNE(0,we,4,2,"div",0),2&U&&L.Y8G("ngIf",null==ae.serverInfoService?null:ae.serverInfoService.serverInfoVisible)},dependencies:[x.bT,x.vh,v.D9],styles:[".cell_positive_balance{color:#76b82a} .cell_negative_balance{color:#b22222}.divFooter[_ngcontent-%COMP%]{background-color:#0b3a62;flex-direction:row;box-sizing:border-box;width:100%;padding:5px;font-size:10px;font-weight:500;text-align:left;border-radius:4px}.divFooter[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], span[_ngcontent-%COMP%]{color:#fff}.data[_ngcontent-%COMP%]{padding-left:5px;padding-right:10px!important;color:#76a9cb!important}.data1[_ngcontent-%COMP%]{padding-left:5px!important;padding-right:2px!important;color:#76a9cb!important}"]})}return l})();var q=D(12748),ye=D(85956),xe=D(55911),ge=D(99213);function Ee(l,u){1&l&&(L.j41(0,"span",6),L.nI1(1,"translate"),L.EFF(2),L.nI1(3,"translate"),L.k0s()),2&l&&(L.FS9("title",L.bMT(1,2,"core.hint.update")),L.R7$(2),L.SpI(" ",L.bMT(3,4,"core.msg.update")," "))}function he(l,u){if(1&l&&(L.j41(0,"mat-icon",6),L.nI1(1,"translate"),L.EFF(2),L.k0s()),2&l){const S=L.XpG(3).$implicit;L.HbH("nav-icon"),L.FS9("title",L.bMT(1,4,S.caption)),L.R7$(2),L.JRh(S.icon)}}function Ie(l,u){if(1&l&&(L.j41(0,"span"),L.EFF(1),L.nI1(2,"translate"),L.k0s()),2&l){const S=L.XpG(3).$implicit;L.R7$(),L.JRh(L.bMT(2,1,S.caption))}}function ce(l,u){1&l&&L.nrm(0,"span")}function de(l,u){if(1&l&&(L.j41(0,"a",12),L.DNE(1,he,3,6,"mat-icon",13)(2,Ie,3,3,"span",14)(3,ce,1,0,"span",14),L.k0s()),2&l){const S=L.XpG(2).$implicit,U=L.XpG(2);L.HbH(S.disabled?"HTMLelement_disabled":""),L.R7$(),L.Y8G("ngIf",S.showIconInNavbar&&!!S.icon),L.R7$(),L.Y8G("ngIf",!S.showIconInNavbar||!S.icon),L.R7$(),L.Y8G("ngIf",S.path===U.pageAccount.path)}}function pe(l,u){if(1&l&&(L.j41(0,"a",10),L.DNE(1,de,4,5,"a",11),L.k0s()),2&l){const S=L.XpG().$implicit,U=L.XpG(2);L.HbH(S.disabled?"HTMLelement_disabled ng-star-inserted-item":"ng-star-inserted-item"),L.Y8G("routerLink","/"+S.path),L.R7$(),L.Y8G("ngIf",S.path!==U.pageLogin.path||!U.authService.isLoggedIn())}}function Be(l,u){if(1&l&&(L.j41(0,"span"),L.DNE(1,pe,2,4,"a",9),L.k0s()),2&l){const S=u.$implicit;L.R7$(),L.Y8G("ngIf",!S.hidden)}}function We(l,u){if(1&l&&(L.j41(0,"div",7),L.DNE(1,Be,2,1,"span",8),L.k0s()),2&l){const S=L.XpG();L.R7$(),L.Y8G("ngForOf",S.globals.appPages)}}let tt=(()=>{class l{get navBarIconPath(){return this.serverInfoService.isLive()?this.cnst_AppIcon4Navbar:this.cnst_AppIcon4Test}constructor(S,U,ae,Me){this.globals=S,this.authService=U,this.serverInfoService=ae,this.translate=Me,this.sidenavToggle=new L.bkB,this.pageLogin=m.m0,this.pageAccount=m.Ik,this.cnst_AppIcon4Navbar=(0,L.WQX)(R.XA),this.cnst_AppIcon4Test=(0,L.WQX)(R.dQ),this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){}refreshPage(){window.location.reload()}static#e=this.\u0275fac=function(U){return new(U||l)(L.rXU(m.RV),L.rXU(k.V),L.rXU(h.z),L.rXU(q.X))};static#t=this.\u0275cmp=L.VBU({type:l,selectors:[["app-header"]],inputs:{title:"title"},outputs:{sidenavToggle:"sidenavToggle"},decls:8,vars:8,consts:[["color","primary"],["mat-icon-button","",3,"click"],["width","32","border","0","alt","HR",1,"navigation-icon",3,"src"],["title","Klicke um die Seite neu zu laden",3,"click"],[3,"title",4,"ngIf"],["class","router-bar",4,"ngIf"],[3,"title"],[1,"router-bar"],[4,"ngFor","ngForOf"],[3,"routerLink","class",4,"ngIf"],[3,"routerLink"],["routerLinkActive","selected",3,"class",4,"ngIf"],["routerLinkActive","selected"],[3,"class","title",4,"ngIf"],[4,"ngIf"]],template:function(U,ae){1&U&&(L.j41(0,"mat-toolbar",0)(1,"button",1),L.bIt("click",function(){return ae.onToggleSidenav()}),L.nrm(2,"img",2),L.k0s(),L.j41(3,"div")(4,"a",3),L.bIt("click",function(){return ae.refreshPage()}),L.EFF(5),L.DNE(6,Ee,4,6,"span",4),L.k0s()(),L.DNE(7,We,2,1,"div",5),L.k0s()),2&U&&(L.R7$(2),L.Y8G("src",ae.navBarIconPath,L.B4B),L.R7$(2),L.HbH("navigation-items"+(ae.authService.versionObsolete?" redcolor":"")+(ae.serverInfoService.isLive()?"":" test_title")),L.xc7("cursor","pointer"),L.R7$(),L.SpI(" \xa0\xa0\xa0",ae.title," "),L.R7$(),L.Y8G("ngIf",ae.authService.versionObsolete),L.R7$(),L.Y8G("ngIf",ae.authService.isLoggedIn()))},dependencies:[x.Sq,x.bT,ye.iV,xe.KQ,ge.An,f.Wk,f.wQ,v.D9],styles:[".cell_positive_balance{color:#76b82a} .cell_negative_balance{color:#b22222}a[_ngcontent-%COMP%]{text-decoration:none;color:#fff}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:active, .selected[_ngcontent-%COMP%]{color:#78b7e5}.navigation-icon[_ngcontent-%COMP%]{margin:-3px}.navigation-items[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0} .ng-star-inserted{margin-right:0!important}.ng-star-inserted-item[_ngcontent-%COMP%]{margin-right:15px!important}.restarticon[_ngcontent-%COMP%]{color:#fff;vertical-align:middle;cursor:pointer}a[_ngcontent-%COMP%]:hover .restarticon[_ngcontent-%COMP%]{color:#78b7e5}.redcolor[_ngcontent-%COMP%]{color:red}.nav-icon[_ngcontent-%COMP%]{color:inherit;vertical-align:text-top}.router-bar[_ngcontent-%COMP%]{margin-left:auto}"]})}return l})();var vt=D(82153);function Xt(l,u){if(1&l&&(L.j41(0,"span",5),L.EFF(1),L.nI1(2,"translate"),L.k0s()),2&l){const S=L.XpG(2).$implicit;L.R7$(),L.JRh(L.bMT(2,1,S.caption))}}function Nt(l,u){if(1&l&&(L.j41(0,"span",5),L.EFF(1),L.nI1(2,"translate"),L.k0s()),2&l){const S=L.XpG(3);L.R7$(),L.Lme("",L.bMT(2,2,"core.caption.logout")," (",S.authService.userName,")")}}function Qe(l,u){if(1&l){const S=L.RV6();L.j41(0,"a",3),L.bIt("click",function(){L.eBV(S);const ae=L.XpG(2);return L.Njj(ae.onSidenavClose())}),L.j41(1,"mat-icon"),L.EFF(2),L.k0s(),L.DNE(3,Xt,3,3,"span",4)(4,Nt,3,4,"span",4),L.k0s()}if(2&l){const S=L.XpG().$implicit,U=L.XpG();L.HbH(U.globals.currentPage===S.path?"selected":""),L.Y8G("routerLink","/"+S.path),L.R7$(2),L.JRh(S.icon),L.R7$(),L.Y8G("ngIf",S.path!==U.pageLogin.path||!U.authService.isLoggedIn()),L.R7$(),L.Y8G("ngIf",S.path===U.pageLogin.path&&U.authService.isLoggedIn())}}function Et(l,u){if(1&l&&(L.j41(0,"a"),L.DNE(1,Qe,5,6,"a",2),L.k0s()),2&l){const S=u.$implicit,U=L.XpG();L.R7$(),L.Y8G("ngIf",!S.hidden||S.path===U.pageLogin.path)}}let Lt=(()=>{class l{constructor(S,U){this.authService=S,this.globals=U,this.sidenavClose=new L.bkB,this.pageLogin=m.m0,this.listPages=this.globals.appPages,this.onSidenavClose=()=>{this.sidenavClose.emit()}}ngOnInit(){}static#e=this.\u0275fac=function(U){return new(U||l)(L.rXU(k.V),L.rXU(m.RV))};static#t=this.\u0275cmp=L.VBU({type:l,selectors:[["app-sidenav-list"]],inputs:{title:"title"},outputs:{sidenavClose:"sidenavClose"},decls:5,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"click"],["mat-list-item","",3,"routerLink","class","click",4,"ngIf"],["mat-list-item","",3,"click","routerLink"],["class","nav-caption",4,"ngIf"],[1,"nav-caption"]],template:function(U,ae){1&U&&(L.j41(0,"mat-nav-list"),L.DNE(1,Et,2,1,"a",0),L.j41(2,"mat-list-item",1),L.bIt("click",function(){return ae.onSidenavClose()}),L.j41(3,"mat-icon"),L.EFF(4,"menu_open"),L.k0s()()()),2&U&&(L.R7$(),L.Y8G("ngForOf",ae.listPages))},dependencies:[x.Sq,x.bT,ge.An,vt.PM,vt.zB,f.Wk,v.D9],styles:[".cell_positive_balance{color:#76b82a} .cell_negative_balance{color:#b22222}a[_ngcontent-%COMP%]{text-decoration:none;color:#fff}a[_ngcontent-%COMP%]:hover{color:#78b7e5}a[_ngcontent-%COMP%]:hover.selected{color:#fff}.nav-caption[_ngcontent-%COMP%]{display:inline-block;padding-left:6px}.selected[_ngcontent-%COMP%]{background-color:#78b7e5!important}"]})}return l})(),wt=(()=>{class l{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(U){return new(U||l)};static#t=this.\u0275cmp=L.VBU({type:l,selectors:[["app-layout"]],inputs:{title:"title"},decls:10,vars:2,consts:[["sidenav",""],[1,"layout-wrapper"],["role","navigation"],[3,"sidenavClose","title"],[1,"HeaderMainFooterComponent"],[1,"HeaderComponent",3,"sidenavToggle","title"],[1,"MainComponent"],[1,"FooterComponent"]],template:function(U,ae){if(1&U){const Me=L.RV6();L.j41(0,"div",1)(1,"mat-sidenav-container")(2,"mat-sidenav",2,0)(4,"app-sidenav-list",3),L.bIt("sidenavClose",function(){L.eBV(Me);const He=L.sdS(3);return L.Njj(He.close())}),L.k0s()(),L.j41(5,"mat-sidenav-content",4)(6,"app-header",5),L.bIt("sidenavToggle",function(){L.eBV(Me);const He=L.sdS(3);return L.Njj(He.toggle())}),L.k0s(),L.j41(7,"main",6),L.nrm(8,"router-outlet"),L.k0s(),L.nrm(9,"app-footer",7),L.k0s()()()}2&U&&(L.R7$(4),L.Y8G("title",ae.title),L.R7$(2),L.Y8G("title",ae.title))},dependencies:[w.LG,w.US,w.El,f.n3,X,tt,Lt],styles:['mat-sidenav-container[_ngcontent-%COMP%], mat-sidenav-content[_ngcontent-%COMP%], mat-sidenav[_ngcontent-%COMP%]{height:100%}mat-sidenav[_ngcontent-%COMP%]{width:300px}main[_ngcontent-%COMP%]{padding:5px}.layout-wrapper[_ngcontent-%COMP%], .flex-wrapper[_ngcontent-%COMP%]{height:100%}.HeaderMainFooterComponent[_ngcontent-%COMP%]{padding:0;margin:0;overflow:hidden;display:grid;width:100%;height:100%;grid-template-areas:"head" "main" "foot";grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}.HeaderComponent[_ngcontent-%COMP%]{margin:0 5px;top:0;left:0;right:0;grid-area:head}.MainComponent[_ngcontent-%COMP%]{grid-area:main;overflow:hidden}.FooterComponent[_ngcontent-%COMP%]{grid-area:foot;margin:0 5px}']})}return l})(),Mt=(()=>{class l{constructor(S,U,ae,Me,Re,He){this.globals=S,this.repository=U,this.translate=ae,this.serverInfoService=Me,this.localeService=Re,this.updateService=He,this.environment=(0,L.WQX)(R.i2),this.initLangCulture(),S.appTitle=j.B_,E.x8(S.appTitle),S.appTitleWithVersion=`${j.B_} V.${this.environment.appVersion} (${this.environment.appBuild})`,S.appPages=j.$Q,S.mainPage=j.$Q[0],this.serverInfoService.defaultServerInfoVisible=!1}initLangCulture(){this.translate.addLangs(j.Fc);const S=navigator.language.split("-")[0],U=E.Rh(S,j.Fc,o.Fc)?S:j.rs,ae=E.zH(navigator.language,jb,o.j$)?navigator.language:j.FG;this.localeService.initLocaleLanguage(ae,U)}ngOnInit(){this.updateService.checkForUpdate().then(S=>{S&&(this.updateService.activateUpdate(),window.location.reload())})}static#e=this.\u0275fac=function(U){return new(U||l)(L.rXU(m.RV),L.rXU(_.U),L.rXU(v.c$),L.rXU(h.z),L.rXU(s.i),L.rXU(b.EI))};static#t=this.\u0275cmp=L.VBU({type:l,selectors:[["app-root"]],decls:2,vars:1,consts:[[3,"title"],["type","ball-clip-rotate"]],template:function(U,ae){1&U&&L.nrm(0,"app-layout",0)(1,"ngx-spinner",1),2&U&&L.Y8G("title",ae.globals.appTitleWithVersion)},dependencies:[O.et,wt]})}return l})();m.Ik.loadChildren=()=>Promise.all([D.e(426),D.e(995),D.e(76),D.e(732)]).then(D.bind(D,69732)).then(l=>l.AppAccountModule);const Ge=[...j.$Q,{path:"",redirectTo:"/"+m.m0.path,pathMatch:"full"}];let ot=(()=>{class l{static#e=this.\u0275fac=function(U){return new(U||l)};static#t=this.\u0275mod=L.$C({type:l});static#i=this.\u0275inj=L.G2t({imports:[f.iI.forRoot(Ge,{useHash:!0,preloadingStrategy:f.Kp}),f.iI]})}return l})();var Tt=D(49969);function li(l){return new L.wOt(3e3,!1)}function no(l){switch(l.length){case 0:return new Tt.sf;case 1:return l[0];default:return new Tt.ui(l)}}function ja(l,u,S=new Map,U=new Map){const ae=[],Me=[];let Re=-1,He=null;if(u.forEach(lt=>{const At=lt.get("offset"),di=At==Re,Di=di&&He||new Map;lt.forEach((Ki,Ji)=>{let rn=Ji,Tn=Ki;if("offset"!==Ji)switch(rn=l.normalizePropertyName(rn,ae),Tn){case Tt.FX:Tn=S.get(Ji);break;case Tt.kp:Tn=U.get(Ji);break;default:Tn=l.normalizeStyleValue(Ji,rn,Tn,ae)}Di.set(rn,Tn)}),di||Me.push(Di),He=Di,Re=At}),ae.length)throw function ai(l){return new L.wOt(3502,!1)}();return Me}function Na(l,u,S,U){switch(u){case"start":l.onStart(()=>U(S&&uo(S,"start",l)));break;case"done":l.onDone(()=>U(S&&uo(S,"done",l)));break;case"destroy":l.onDestroy(()=>U(S&&uo(S,"destroy",l)))}}function uo(l,u,S){const Me=Eo(l.element,l.triggerName,l.fromState,l.toState,u||l.phaseName,S.totalTime??l.totalTime,!!S.disabled),Re=l._data;return null!=Re&&(Me._data=Re),Me}function Eo(l,u,S,U,ae="",Me=0,Re){return{element:l,triggerName:u,fromState:S,toState:U,phaseName:ae,totalTime:Me,disabled:!!Re}}function To(l,u,S){let U=l.get(u);return U||l.set(u,U=S),U}function Bi(l){const u=l.indexOf(":");return[l.substring(1,u),l.slice(u+1)]}const _t=typeof document>"u"?null:document.documentElement;function si(l){const u=l.parentNode||l.host||null;return u===_t?null:u}let Pi=null,ln=!1;function ct(l,u){for(;u;){if(u===l)return!0;u=si(u)}return!1}function ri(l,u,S){if(S)return Array.from(l.querySelectorAll(u));const U=l.querySelector(u);return U?[U]:[]}let Ri=(()=>{class l{validateStyleProperty(S){return function An(l){Pi||(Pi=function Gr(){return typeof document<"u"?document.body:null}()||{},ln=!!Pi.style&&"WebkitAppearance"in Pi.style);let u=!0;return Pi.style&&!function Dt(l){return"ebkit"==l.substring(1,6)}(l)&&(u=l in Pi.style,!u&&ln&&(u="Webkit"+l.charAt(0).toUpperCase()+l.slice(1)in Pi.style)),u}(S)}matchesElement(S,U){return!1}containsElement(S,U){return ct(S,U)}getParentElement(S){return si(S)}query(S,U,ae){return ri(S,U,ae)}computeStyle(S,U,ae){return ae||""}animate(S,U,ae,Me,Re,He=[],lt){return new Tt.sf(ae,Me)}static#e=this.\u0275fac=function(U){return new(U||l)};static#t=this.\u0275prov=L.jDH({token:l,factory:l.\u0275fac})}return l})();class ji{static#e=this.NOOP=new Ri}class wn{}const En=1e3,aa="ng-enter",Fa="ng-leave",Ya="ng-trigger",_o=".ng-trigger",Yo="ng-animating",Va=".ng-animating";function ia(l){if("number"==typeof l)return l;const u=l.match(/^(-?[\.\d]+)(m?s)/);return!u||u.length<2?0:$o(parseFloat(u[1]),u[2])}function $o(l,u){return"s"===u?l*En:l}function mo(l,u,S){return l.hasOwnProperty("duration")?l:function fl(l,u,S){let ae,Me=0,Re="";if("string"==typeof l){const He=l.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===He)return u.push(li()),{duration:0,delay:0,easing:""};ae=$o(parseFloat(He[1]),He[2]);const lt=He[3];null!=lt&&(Me=$o(parseFloat(lt),He[4]));const At=He[5];At&&(Re=At)}else ae=l;if(!S){let He=!1,lt=u.length;ae<0&&(u.push(function an(){return new L.wOt(3100,!1)}()),He=!0),Me<0&&(u.push(function xi(){return new L.wOt(3101,!1)}()),He=!0),He&&u.splice(lt,0,li())}return{duration:ae,delay:Me,easing:Re}}(l,u,S)}function Ao(l,u,S){u.forEach((U,ae)=>{const Me=rs(ae);S&&!S.has(ae)&&S.set(ae,l.style[Me]),l.style[Me]=U})}function Ha(l,u){u.forEach((S,U)=>{const ae=rs(U);l.style[ae]=""})}function us(l){return Array.isArray(l)?1==l.length?l[0]:(0,Tt.K2)(l):l}const ms=new RegExp("{{\\s*(.+?)\\s*}}","g");function El(l){let u=[];if("string"==typeof l){let S;for(;S=ms.exec(l);)u.push(S[1]);ms.lastIndex=0}return u}function Wl(l,u,S){const U=`${l}`,ae=U.replace(ms,(Me,Re)=>{let He=u[Re];return null==He&&(S.push(function Ht(l){return new L.wOt(3003,!1)}()),He=""),He.toString()});return ae==U?l:ae}const Xd=/-+([a-z0-9])/g;function rs(l){return l.replace(Xd,(...u)=>u[1].toUpperCase())}function Ms(l,u,S){switch(u.type){case Tt.If.Trigger:return l.visitTrigger(u,S);case Tt.If.State:return l.visitState(u,S);case Tt.If.Transition:return l.visitTransition(u,S);case Tt.If.Sequence:return l.visitSequence(u,S);case Tt.If.Group:return l.visitGroup(u,S);case Tt.If.Animate:return l.visitAnimate(u,S);case Tt.If.Keyframes:return l.visitKeyframes(u,S);case Tt.If.Style:return l.visitStyle(u,S);case Tt.If.Reference:return l.visitReference(u,S);case Tt.If.AnimateChild:return l.visitAnimateChild(u,S);case Tt.If.AnimateRef:return l.visitAnimateRef(u,S);case Tt.If.Query:return l.visitQuery(u,S);case Tt.If.Stagger:return l.visitStagger(u,S);default:throw function gi(l){return new L.wOt(3004,!1)}()}}function Ko(l,u){return window.getComputedStyle(l)[u]}const hs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ws extends wn{normalizePropertyName(u,S){return rs(u)}normalizeStyleValue(u,S,U,ae){let Me="";const Re=U.toString().trim();if(hs.has(S)&&0!==U&&"0"!==U)if("number"==typeof U)Me="px";else{const He=U.match(/^[+-]?[\d\.]+([a-z]*)$/);He&&0==He[1].length&&ae.push(function Ti(l,u){return new L.wOt(3005,!1)}())}return Re+Me}}const Kn="*";const va=new Set(["true","1"]),Aa=new Set(["false","0"]);function Ba(l,u){const S=va.has(l)||Aa.has(l),U=va.has(u)||Aa.has(u);return(ae,Me)=>{let Re=l==Kn||l==ae,He=u==Kn||u==Me;return!Re&&S&&"boolean"==typeof ae&&(Re=ae?va.has(l):Aa.has(l)),!He&&U&&"boolean"==typeof Me&&(He=Me?va.has(u):Aa.has(u)),Re&&He}}const Lo=new RegExp("s*:selfs*,?","g");function $a(l,u,S,U){return new Mo(l).build(u,S,U)}class Mo{constructor(u){this._driver=u}build(u,S,U){const ae=new el(S);return this._resetContextStyleTimingState(ae),Ms(this,us(u),ae)}_resetContextStyleTimingState(u){u.currentQuerySelector="",u.collectedStyles=new Map,u.collectedStyles.set("",new Map),u.currentTime=0}visitTrigger(u,S){let U=S.queryCount=0,ae=S.depCount=0;const Me=[],Re=[];return"@"==u.name.charAt(0)&&S.errors.push(function ni(){return new L.wOt(3006,!1)}()),u.definitions.forEach(He=>{if(this._resetContextStyleTimingState(S),He.type==Tt.If.State){const lt=He,At=lt.name;At.toString().split(/\s*,\s*/).forEach(di=>{lt.name=di,Me.push(this.visitState(lt,S))}),lt.name=At}else if(He.type==Tt.If.Transition){const lt=this.visitTransition(He,S);U+=lt.queryCount,ae+=lt.depCount,Re.push(lt)}else S.errors.push(function wi(){return new L.wOt(3007,!1)}())}),{type:Tt.If.Trigger,name:u.name,states:Me,transitions:Re,queryCount:U,depCount:ae,options:null}}visitState(u,S){const U=this.visitStyle(u.styles,S),ae=u.options&&u.options.params||null;if(U.containsDynamicStyles){const Me=new Set,Re=ae||{};U.styles.forEach(He=>{He instanceof Map&&He.forEach(lt=>{El(lt).forEach(At=>{Re.hasOwnProperty(At)||Me.add(At)})})}),Me.size&&S.errors.push(function ui(l,u){return new L.wOt(3008,!1)}(0,Me.values()))}return{type:Tt.If.State,name:u.name,style:U,options:ae?{params:ae}:null}}visitTransition(u,S){S.queryCount=0,S.depCount=0;const U=Ms(this,us(u.animation),S),ae=function tr(l,u){const S=[];return"string"==typeof l?l.split(/\s*,\s*/).forEach(U=>function xr(l,u,S){if(":"==l[0]){const lt=function Pa(l,u){switch(l){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(S,U)=>parseFloat(U)>parseFloat(S);case":decrement":return(S,U)=>parseFloat(U)<parseFloat(S);default:return u.push(function Vt(l){return new L.wOt(3016,!1)}()),"* => *"}}(l,S);if("function"==typeof lt)return void u.push(lt);l=lt}const U=l.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==U||U.length<4)return S.push(function Wt(l){return new L.wOt(3015,!1)}()),u;const ae=U[1],Me=U[2],Re=U[3];u.push(Ba(ae,Re)),"<"==Me[0]&&(ae!=Kn||Re!=Kn)&&u.push(Ba(Re,ae))}(U,S,u)):S.push(l),S}(u.expr,S.errors);return{type:Tt.If.Transition,matchers:ae,animation:U,queryCount:S.queryCount,depCount:S.depCount,options:Hs(u.options)}}visitSequence(u,S){return{type:Tt.If.Sequence,steps:u.steps.map(U=>Ms(this,U,S)),options:Hs(u.options)}}visitGroup(u,S){const U=S.currentTime;let ae=0;const Me=u.steps.map(Re=>{S.currentTime=U;const He=Ms(this,Re,S);return ae=Math.max(ae,S.currentTime),He});return S.currentTime=ae,{type:Tt.If.Group,steps:Me,options:Hs(u.options)}}visitAnimate(u,S){const U=function yl(l,u){if(l.hasOwnProperty("duration"))return l;if("number"==typeof l)return hl(mo(l,u).duration,0,"");const S=l;if(S.split(/\s+/).some(Me=>"{"==Me.charAt(0)&&"{"==Me.charAt(1))){const Me=hl(0,0,"");return Me.dynamic=!0,Me.strValue=S,Me}const ae=mo(S,u);return hl(ae.duration,ae.delay,ae.easing)}(u.timings,S.errors);S.currentAnimateTimings=U;let ae,Me=u.styles?u.styles:(0,Tt.iF)({});if(Me.type==Tt.If.Keyframes)ae=this.visitKeyframes(Me,S);else{let Re=u.styles,He=!1;if(!Re){He=!0;const At={};U.easing&&(At.easing=U.easing),Re=(0,Tt.iF)(At)}S.currentTime+=U.duration+U.delay;const lt=this.visitStyle(Re,S);lt.isEmptyStep=He,ae=lt}return S.currentAnimateTimings=null,{type:Tt.If.Animate,timings:U,style:ae,options:null}}visitStyle(u,S){const U=this._makeStyleAst(u,S);return this._validateStyleAst(U,S),U}_makeStyleAst(u,S){const U=[],ae=Array.isArray(u.styles)?u.styles:[u.styles];for(let He of ae)"string"==typeof He?He===Tt.kp?U.push(He):S.errors.push(new L.wOt(3002,!1)):U.push(new Map(Object.entries(He)));let Me=!1,Re=null;return U.forEach(He=>{if(He instanceof Map&&(He.has("easing")&&(Re=He.get("easing"),He.delete("easing")),!Me))for(let lt of He.values())if(lt.toString().indexOf("{{")>=0){Me=!0;break}}),{type:Tt.If.Style,styles:U,easing:Re,offset:u.offset,containsDynamicStyles:Me,options:null}}_validateStyleAst(u,S){const U=S.currentAnimateTimings;let ae=S.currentTime,Me=S.currentTime;U&&Me>0&&(Me-=U.duration+U.delay),u.styles.forEach(Re=>{"string"!=typeof Re&&Re.forEach((He,lt)=>{const At=S.collectedStyles.get(S.currentQuerySelector),di=At.get(lt);let Di=!0;di&&(Me!=ae&&Me>=di.startTime&&ae<=di.endTime&&(S.errors.push(function Xi(l,u,S,U,ae){return new L.wOt(3010,!1)}()),Di=!1),Me=di.startTime),Di&&At.set(lt,{startTime:Me,endTime:ae}),S.options&&function Ql(l,u,S){const U=u.params||{},ae=El(l);ae.length&&ae.forEach(Me=>{U.hasOwnProperty(Me)||S.push(function Je(l){return new L.wOt(3001,!1)}())})}(He,S.options,S.errors)})})}visitKeyframes(u,S){const U={type:Tt.If.Keyframes,styles:[],options:null};if(!S.currentAnimateTimings)return S.errors.push(function Qi(){return new L.wOt(3011,!1)}()),U;let Me=0;const Re=[];let He=!1,lt=!1,At=0;const di=u.steps.map(Cr=>{const fr=this._makeStyleAst(Cr,S);let Fr=null!=fr.offset?fr.offset:function _s(l){if("string"==typeof l)return null;let u=null;if(Array.isArray(l))l.forEach(S=>{if(S instanceof Map&&S.has("offset")){const U=S;u=parseFloat(U.get("offset")),U.delete("offset")}});else if(l instanceof Map&&l.has("offset")){const S=l;u=parseFloat(S.get("offset")),S.delete("offset")}return u}(fr.styles),Or=0;return null!=Fr&&(Me++,Or=fr.offset=Fr),lt=lt||Or<0||Or>1,He=He||Or<At,At=Or,Re.push(Or),fr});lt&&S.errors.push(function Ut(){return new L.wOt(3012,!1)}()),He&&S.errors.push(function It(){return new L.wOt(3200,!1)}());const Di=u.steps.length;let Ki=0;Me>0&&Me<Di?S.errors.push(function yt(){return new L.wOt(3202,!1)}()):0==Me&&(Ki=1/(Di-1));const Ji=Di-1,rn=S.currentTime,Tn=S.currentAnimateTimings,Gn=Tn.duration;return di.forEach((Cr,fr)=>{const Fr=Ki>0?fr==Ji?1:Ki*fr:Re[fr],Or=Fr*Gn;S.currentTime=rn+Tn.delay+Or,Tn.duration=Or,this._validateStyleAst(Cr,S),Cr.offset=Fr,U.styles.push(Cr)}),U}visitReference(u,S){return{type:Tt.If.Reference,animation:Ms(this,us(u.animation),S),options:Hs(u.options)}}visitAnimateChild(u,S){return S.depCount++,{type:Tt.If.AnimateChild,options:Hs(u.options)}}visitAnimateRef(u,S){return{type:Tt.If.AnimateRef,animation:this.visitReference(u.animation,S),options:Hs(u.options)}}visitQuery(u,S){const U=S.currentQuerySelector,ae=u.options||{};S.queryCount++,S.currentQuery=u;const[Me,Re]=function Ml(l){const u=!!l.split(/\s*,\s*/).find(S=>":self"==S);return u&&(l=l.replace(Lo,"")),l=l.replace(/@\*/g,_o).replace(/@\w+/g,S=>_o+"-"+S.slice(1)).replace(/:animating/g,Va),[l,u]}(u.selector);S.currentQuerySelector=U.length?U+" "+Me:Me,To(S.collectedStyles,S.currentQuerySelector,new Map);const He=Ms(this,us(u.animation),S);return S.currentQuery=null,S.currentQuerySelector=U,{type:Tt.If.Query,selector:Me,limit:ae.limit||0,optional:!!ae.optional,includeSelf:Re,animation:He,originalSelector:u.selector,options:Hs(u.options)}}visitStagger(u,S){S.currentQuery||S.errors.push(function pt(){return new L.wOt(3013,!1)}());const U="full"===u.timings?{duration:0,delay:0,easing:"full"}:mo(u.timings,S.errors,!0);return{type:Tt.If.Stagger,animation:Ms(this,us(u.animation),S),timings:U,options:null}}}class el{constructor(u){this.errors=u,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Hs(l){return l?(l={...l}).params&&(l.params=function gs(l){return l?{...l}:null}(l.params)):l={},l}function hl(l,u,S){return{duration:l,delay:u,easing:S}}function Os(l,u,S,U,ae,Me,Re=null,He=!1){return{type:1,element:l,keyframes:u,preStyleProps:S,postStyleProps:U,duration:ae,delay:Me,totalTime:ae+Me,easing:Re,subTimeline:He}}class Zl{constructor(){this._map=new Map}get(u){return this._map.get(u)||[]}append(u,S){let U=this._map.get(u);U||this._map.set(u,U=[]),U.push(...S)}has(u){return this._map.has(u)}clear(){this._map.clear()}}const oc=new RegExp(":enter","g"),Ud=new RegExp(":leave","g");function ru(l,u,S,U,ae,Me=new Map,Re=new Map,He,lt,At=[]){return(new ql).buildKeyframes(l,u,S,U,ae,Me,Re,He,lt,At)}class ql{buildKeyframes(u,S,U,ae,Me,Re,He,lt,At,di=[]){At=At||new Zl;const Di=new Jd(u,S,At,ae,Me,di,[]);Di.options=lt;const Ki=lt.delay?ia(lt.delay):0;Di.currentTimeline.delayNextStep(Ki),Di.currentTimeline.setStyles([Re],null,Di.errors,lt),Ms(this,U,Di);const Ji=Di.timelines.filter(rn=>rn.containsAnimation());if(Ji.length&&He.size){let rn;for(let Tn=Ji.length-1;Tn>=0;Tn--){const Gn=Ji[Tn];if(Gn.element===S){rn=Gn;break}}rn&&!rn.allowOnlyTimelineStyles()&&rn.setStyles([He],null,Di.errors,lt)}return Ji.length?Ji.map(rn=>rn.buildKeyframes()):[Os(S,[],[],[],0,Ki,"",!1)]}visitTrigger(u,S){}visitState(u,S){}visitTransition(u,S){}visitAnimateChild(u,S){const U=S.subInstructions.get(S.element);if(U){const ae=S.createSubContext(u.options),Me=S.currentTimeline.currentTime,Re=this._visitSubInstructions(U,ae,ae.options);Me!=Re&&S.transformIntoNewTimeline(Re)}S.previousNode=u}visitAnimateRef(u,S){const U=S.createSubContext(u.options);U.transformIntoNewTimeline(),this._applyAnimationRefDelays([u.options,u.animation.options],S,U),this.visitReference(u.animation,U),S.transformIntoNewTimeline(U.currentTimeline.currentTime),S.previousNode=u}_applyAnimationRefDelays(u,S,U){for(const ae of u){const Me=ae?.delay;if(Me){const Re="number"==typeof Me?Me:ia(Wl(Me,ae?.params??{},S.errors));U.delayNextStep(Re)}}}_visitSubInstructions(u,S,U){let Me=S.currentTimeline.currentTime;const Re=null!=U.duration?ia(U.duration):null,He=null!=U.delay?ia(U.delay):null;return 0!==Re&&u.forEach(lt=>{const At=S.appendInstructionToTimeline(lt,Re,He);Me=Math.max(Me,At.duration+At.delay)}),Me}visitReference(u,S){S.updateOptions(u.options,!0),Ms(this,u.animation,S),S.previousNode=u}visitSequence(u,S){const U=S.subContextCount;let ae=S;const Me=u.options;if(Me&&(Me.params||Me.delay)&&(ae=S.createSubContext(Me),ae.transformIntoNewTimeline(),null!=Me.delay)){ae.previousNode.type==Tt.If.Style&&(ae.currentTimeline.snapshotCurrentStyles(),ae.previousNode=vs);const Re=ia(Me.delay);ae.delayNextStep(Re)}u.steps.length&&(u.steps.forEach(Re=>Ms(this,Re,ae)),ae.currentTimeline.applyStylesToKeyframe(),ae.subContextCount>U&&ae.transformIntoNewTimeline()),S.previousNode=u}visitGroup(u,S){const U=[];let ae=S.currentTimeline.currentTime;const Me=u.options&&u.options.delay?ia(u.options.delay):0;u.steps.forEach(Re=>{const He=S.createSubContext(u.options);Me&&He.delayNextStep(Me),Ms(this,Re,He),ae=Math.max(ae,He.currentTimeline.currentTime),U.push(He.currentTimeline)}),U.forEach(Re=>S.currentTimeline.mergeTimelineCollectedStyles(Re)),S.transformIntoNewTimeline(ae),S.previousNode=u}_visitTiming(u,S){if(u.dynamic){const U=u.strValue;return mo(S.params?Wl(U,S.params,S.errors):U,S.errors)}return{duration:u.duration,delay:u.delay,easing:u.easing}}visitAnimate(u,S){const U=S.currentAnimateTimings=this._visitTiming(u.timings,S),ae=S.currentTimeline;U.delay&&(S.incrementTime(U.delay),ae.snapshotCurrentStyles());const Me=u.style;Me.type==Tt.If.Keyframes?this.visitKeyframes(Me,S):(S.incrementTime(U.duration),this.visitStyle(Me,S),ae.applyStylesToKeyframe()),S.currentAnimateTimings=null,S.previousNode=u}visitStyle(u,S){const U=S.currentTimeline,ae=S.currentAnimateTimings;!ae&&U.hasCurrentStyleProperties()&&U.forwardFrame();const Me=ae&&ae.easing||u.easing;u.isEmptyStep?U.applyEmptyStep(Me):U.setStyles(u.styles,Me,S.errors,S.options),S.previousNode=u}visitKeyframes(u,S){const U=S.currentAnimateTimings,ae=S.currentTimeline.duration,Me=U.duration,He=S.createSubContext().currentTimeline;He.easing=U.easing,u.styles.forEach(lt=>{He.forwardTime((lt.offset||0)*Me),He.setStyles(lt.styles,lt.easing,S.errors,S.options),He.applyStylesToKeyframe()}),S.currentTimeline.mergeTimelineCollectedStyles(He),S.transformIntoNewTimeline(ae+Me),S.previousNode=u}visitQuery(u,S){const U=S.currentTimeline.currentTime,ae=u.options||{},Me=ae.delay?ia(ae.delay):0;Me&&(S.previousNode.type===Tt.If.Style||0==U&&S.currentTimeline.hasCurrentStyleProperties())&&(S.currentTimeline.snapshotCurrentStyles(),S.previousNode=vs);let Re=U;const He=S.invokeQuery(u.selector,u.originalSelector,u.limit,u.includeSelf,!!ae.optional,S.errors);S.currentQueryTotal=He.length;let lt=null;He.forEach((At,di)=>{S.currentQueryIndex=di;const Di=S.createSubContext(u.options,At);Me&&Di.delayNextStep(Me),At===S.element&&(lt=Di.currentTimeline),Ms(this,u.animation,Di),Di.currentTimeline.applyStylesToKeyframe(),Re=Math.max(Re,Di.currentTimeline.currentTime)}),S.currentQueryIndex=0,S.currentQueryTotal=0,S.transformIntoNewTimeline(Re),lt&&(S.currentTimeline.mergeTimelineCollectedStyles(lt),S.currentTimeline.snapshotCurrentStyles()),S.previousNode=u}visitStagger(u,S){const U=S.parentContext,ae=S.currentTimeline,Me=u.timings,Re=Math.abs(Me.duration),He=Re*(S.currentQueryTotal-1);let lt=Re*S.currentQueryIndex;switch(Me.duration<0?"reverse":Me.easing){case"reverse":lt=He-lt;break;case"full":lt=U.currentStaggerTime}const di=S.currentTimeline;lt&&di.delayNextStep(lt);const Di=di.currentTime;Ms(this,u.animation,S),S.previousNode=u,U.currentStaggerTime=ae.currentTime-Di+(ae.startTime-U.currentTimeline.startTime)}}const vs={};class Jd{constructor(u,S,U,ae,Me,Re,He,lt){this._driver=u,this.element=S,this.subInstructions=U,this._enterClassName=ae,this._leaveClassName=Me,this.errors=Re,this.timelines=He,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=vs,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=lt||new vc(this._driver,S,0),He.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(u,S){if(!u)return;const U=u;let ae=this.options;null!=U.duration&&(ae.duration=ia(U.duration)),null!=U.delay&&(ae.delay=ia(U.delay));const Me=U.params;if(Me){let Re=ae.params;Re||(Re=this.options.params={}),Object.keys(Me).forEach(He=>{(!S||!Re.hasOwnProperty(He))&&(Re[He]=Wl(Me[He],Re,this.errors))})}}_copyOptions(){const u={};if(this.options){const S=this.options.params;if(S){const U=u.params={};Object.keys(S).forEach(ae=>{U[ae]=S[ae]})}}return u}createSubContext(u=null,S,U){const ae=S||this.element,Me=new Jd(this._driver,ae,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(ae,U||0));return Me.previousNode=this.previousNode,Me.currentAnimateTimings=this.currentAnimateTimings,Me.options=this._copyOptions(),Me.updateOptions(u),Me.currentQueryIndex=this.currentQueryIndex,Me.currentQueryTotal=this.currentQueryTotal,Me.parentContext=this,this.subContextCount++,Me}transformIntoNewTimeline(u){return this.previousNode=vs,this.currentTimeline=this.currentTimeline.fork(this.element,u),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(u,S,U){const ae={duration:S??u.duration,delay:this.currentTimeline.currentTime+(U??0)+u.delay,easing:""},Me=new bc(this._driver,u.element,u.keyframes,u.preStyleProps,u.postStyleProps,ae,u.stretchStartingKeyframe);return this.timelines.push(Me),ae}incrementTime(u){this.currentTimeline.forwardTime(this.currentTimeline.duration+u)}delayNextStep(u){u>0&&this.currentTimeline.delayNextStep(u)}invokeQuery(u,S,U,ae,Me,Re){let He=[];if(ae&&He.push(this.element),u.length>0){u=(u=u.replace(oc,"."+this._enterClassName)).replace(Ud,"."+this._leaveClassName);let At=this._driver.query(this.element,u,1!=U);0!==U&&(At=U<0?At.slice(At.length+U,At.length):At.slice(0,U)),He.push(...At)}return!Me&&0==He.length&&Re.push(function st(l){return new L.wOt(3014,!1)}()),He}}class vc{constructor(u,S,U,ae){this._driver=u,this.element=S,this.startTime=U,this._elementTimelineStylesLookup=ae,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(S),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(S,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(u){const S=1===this._keyframes.size&&this._pendingStyles.size;this.duration||S?(this.forwardTime(this.currentTime+u),S&&this.snapshotCurrentStyles()):this.startTime+=u}fork(u,S){return this.applyStylesToKeyframe(),new vc(this._driver,u,S||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(u){this.applyStylesToKeyframe(),this.duration=u,this._loadKeyframe()}_updateStyle(u,S){this._localTimelineStyles.set(u,S),this._globalTimelineStyles.set(u,S),this._styleSummary.set(u,{time:this.currentTime,value:S})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(u){u&&this._previousKeyframe.set("easing",u);for(let[S,U]of this._globalTimelineStyles)this._backFill.set(S,U||Tt.kp),this._currentKeyframe.set(S,Tt.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(u,S,U,ae){S&&this._previousKeyframe.set("easing",S);const Me=ae&&ae.params||{},Re=function yc(l,u){const S=new Map;let U;return l.forEach(ae=>{if("*"===ae){U??=u.keys();for(let Me of U)S.set(Me,Tt.kp)}else for(let[Me,Re]of ae)S.set(Me,Re)}),S}(u,this._globalTimelineStyles);for(let[He,lt]of Re){const At=Wl(lt,Me,U);this._pendingStyles.set(He,At),this._localTimelineStyles.has(He)||this._backFill.set(He,this._globalTimelineStyles.get(He)??Tt.kp),this._updateStyle(He,At)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((u,S)=>{this._currentKeyframe.set(S,u)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((u,S)=>{this._currentKeyframe.has(S)||this._currentKeyframe.set(S,u)}))}snapshotCurrentStyles(){for(let[u,S]of this._localTimelineStyles)this._pendingStyles.set(u,S),this._updateStyle(u,S)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const u=[];for(let S in this._currentKeyframe)u.push(S);return u}mergeTimelineCollectedStyles(u){u._styleSummary.forEach((S,U)=>{const ae=this._styleSummary.get(U);(!ae||S.time>ae.time)&&this._updateStyle(U,S.value)})}buildKeyframes(){this.applyStylesToKeyframe();const u=new Set,S=new Set,U=1===this._keyframes.size&&0===this.duration;let ae=[];this._keyframes.forEach((He,lt)=>{const At=new Map([...this._backFill,...He]);At.forEach((di,Di)=>{di===Tt.FX?u.add(Di):di===Tt.kp&&S.add(Di)}),U||At.set("offset",lt/this.duration),ae.push(At)});const Me=[...u.values()],Re=[...S.values()];if(U){const He=ae[0],lt=new Map(He);He.set("offset",0),lt.set("offset",1),ae=[He,lt]}return Os(this.element,ae,Me,Re,this.duration,this.startTime,this.easing,!1)}}class bc extends vc{constructor(u,S,U,ae,Me,Re,He=!1){super(u,S,Re.delay),this.keyframes=U,this.preStyleProps=ae,this.postStyleProps=Me,this._stretchStartingKeyframe=He,this.timings={duration:Re.duration,delay:Re.delay,easing:Re.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let u=this.keyframes,{delay:S,duration:U,easing:ae}=this.timings;if(this._stretchStartingKeyframe&&S){const Me=[],Re=U+S,He=S/Re,lt=new Map(u[0]);lt.set("offset",0),Me.push(lt);const At=new Map(u[0]);At.set("offset",Nl(He)),Me.push(At);const di=u.length-1;for(let Di=1;Di<=di;Di++){let Ki=new Map(u[Di]);const Ji=Ki.get("offset");Ki.set("offset",Nl((S+Ji*U)/Re)),Me.push(Ki)}U=Re,S=0,ae="",u=Me}return Os(this.element,u,this.preStyleProps,this.postStyleProps,U,S,ae,!0)}}function Nl(l,u=3){const S=Math.pow(10,u-1);return Math.round(l*S)/S}function yd(l,u,S,U,ae,Me,Re,He,lt,At,di,Di,Ki){return{type:0,element:l,triggerName:u,isRemovalTransition:ae,fromState:S,fromStyles:Me,toState:U,toStyles:Re,timelines:He,queriedElements:lt,preStyleProps:At,postStyleProps:di,totalTime:Di,errors:Ki}}const Ol={};class au{constructor(u,S,U){this._triggerName=u,this.ast=S,this._stateStyles=U}match(u,S,U,ae){return function oi(l,u,S,U,ae){return l.some(Me=>Me(u,S,U,ae))}(this.ast.matchers,u,S,U,ae)}buildStyles(u,S,U){let ae=this._stateStyles.get("*");return void 0!==u&&(ae=this._stateStyles.get(u?.toString())||ae),ae?ae.buildStyles(S,U):new Map}build(u,S,U,ae,Me,Re,He,lt,At,di){const Di=[],Ki=this.ast.options&&this.ast.options.params||Ol,rn=this.buildStyles(U,He&&He.params||Ol,Di),Tn=lt&<.params||Ol,Gn=this.buildStyles(ae,Tn,Di),Cr=new Set,fr=new Map,Fr=new Map,Or="void"===ae,gr={params:yi(Tn,Ki),delay:this.ast.options?.delay},Hr=di?[]:ru(u,S,this.ast.animation,Me,Re,rn,Gn,gr,At,Di);let Ra=0;return Hr.forEach(go=>{Ra=Math.max(go.duration+go.delay,Ra)}),Di.length?yd(S,this._triggerName,U,ae,Or,rn,Gn,[],[],fr,Fr,Ra,Di):(Hr.forEach(go=>{const Ma=go.element,Zo=To(fr,Ma,new Set);go.preStyleProps.forEach(ns=>Zo.add(ns));const js=To(Fr,Ma,new Set);go.postStyleProps.forEach(ns=>js.add(ns)),Ma!==S&&Cr.add(Ma)}),yd(S,this._triggerName,U,ae,Or,rn,Gn,Hr,[...Cr.values()],fr,Fr,Ra))}}function yi(l,u){const S={...u};return Object.entries(l).forEach(([U,ae])=>{null!=ae&&(S[U]=ae)}),S}class zt{constructor(u,S,U){this.styles=u,this.defaultParams=S,this.normalizer=U}buildStyles(u,S){const U=new Map,ae=yi(u,this.defaultParams);return this.styles.styles.forEach(Me=>{"string"!=typeof Me&&Me.forEach((Re,He)=>{Re&&(Re=Wl(Re,ae,S));const lt=this.normalizer.normalizePropertyName(He,S);Re=this.normalizer.normalizeStyleValue(He,lt,Re,S),U.set(He,Re)})}),U}}class Un{constructor(u,S,U){this.name=u,this.ast=S,this._normalizer=U,this.transitionFactories=[],this.states=new Map,S.states.forEach(ae=>{this.states.set(ae.name,new zt(ae.style,ae.options&&ae.options.params||{},U))}),No(this.states,"true","1"),No(this.states,"false","0"),S.transitions.forEach(ae=>{this.transitionFactories.push(new au(u,ae,this.states))}),this.fallbackTransition=function vo(l,u,S){return new au(l,{type:Tt.If.Transition,animation:{type:Tt.If.Sequence,steps:[],options:null},matchers:[(Re,He)=>!0],options:null,queryCount:0,depCount:0},u)}(u,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(u,S,U,ae){return this.transitionFactories.find(Re=>Re.match(u,S,U,ae))||null}matchStyles(u,S,U){return this.fallbackTransition.buildStyles(u,S,U)}}function No(l,u,S){l.has(u)?l.has(S)||l.set(S,l.get(u)):l.has(S)&&l.set(u,l.get(S))}const ed=new Zl;class xd{constructor(u,S,U){this.bodyNode=u,this._driver=S,this._normalizer=U,this._animations=new Map,this._playersById=new Map,this.players=[]}register(u,S){const U=[],Me=$a(this._driver,S,U,[]);if(U.length)throw function kt(l){return new L.wOt(3503,!1)}();this._animations.set(u,Me)}_buildPlayer(u,S,U){const ae=u.element,Me=ja(this._normalizer,u.keyframes,S,U);return this._driver.animate(ae,Me,u.duration,u.delay,u.easing,[],!0)}create(u,S,U={}){const ae=[],Me=this._animations.get(u);let Re;const He=new Map;if(Me?(Re=ru(this._driver,S,Me,aa,Fa,new Map,new Map,U,ed,ae),Re.forEach(di=>{const Di=To(He,di.element,new Map);di.postStyleProps.forEach(Ki=>Di.set(Ki,null))})):(ae.push(function mi(){return new L.wOt(3300,!1)}()),Re=[]),ae.length)throw function Kt(l){return new L.wOt(3504,!1)}();He.forEach((di,Di)=>{di.forEach((Ki,Ji)=>{di.set(Ji,this._driver.computeStyle(Di,Ji,Tt.kp))})});const At=no(Re.map(di=>{const Di=He.get(di.element);return this._buildPlayer(di,new Map,Di)}));return this._playersById.set(u,At),At.onDestroy(()=>this.destroy(u)),this.players.push(At),At}destroy(u){const S=this._getPlayer(u);S.destroy(),this._playersById.delete(u);const U=this.players.indexOf(S);U>=0&&this.players.splice(U,1)}_getPlayer(u){const S=this._playersById.get(u);if(!S)throw function qi(l){return new L.wOt(3301,!1)}();return S}listen(u,S,U,ae){const Me=Eo(S,"","","");return Na(this._getPlayer(u),U,Me,ae),()=>{}}command(u,S,U,ae){if("register"==U)return void this.register(u,ae[0]);if("create"==U)return void this.create(u,S,ae[0]||{});const Me=this._getPlayer(u);switch(U){case"play":Me.play();break;case"pause":Me.pause();break;case"reset":Me.reset();break;case"restart":Me.restart();break;case"finish":Me.finish();break;case"init":Me.init();break;case"setPosition":Me.setPosition(parseFloat(ae[0]));break;case"destroy":this.destroy(u)}}}const Ls="ng-animate-queued",Cs="ng-animate-disabled",qe=[],Yt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Fi={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_n="__ng_removed";class dr{get params(){return this.options.params}constructor(u,S=""){this.namespaceId=S;const U=u&&u.hasOwnProperty("value");if(this.value=function td(l){return l??null}(U?u.value:u),U){const{value:Me,...Re}=u;this.options=Re}else this.options={};this.options.params||(this.options.params={})}absorbOptions(u){const S=u.params;if(S){const U=this.options.params;Object.keys(S).forEach(ae=>{null==U[ae]&&(U[ae]=S[ae])})}}}const ea="void",Wa=new dr(ea);class Io{constructor(u,S,U){this.id=u,this.hostElement=S,this._engine=U,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+u,id(S,this._hostClassName)}listen(u,S,U,ae){if(!this._triggers.has(S))throw function Wi(l,u){return new L.wOt(3302,!1)}();if(null==U||0==U.length)throw function yn(l){return new L.wOt(3303,!1)}();if(!function ml(l){return"start"==l||"done"==l}(U))throw function Ur(l,u){return new L.wOt(3400,!1)}();const Me=To(this._elementListeners,u,[]),Re={name:S,phase:U,callback:ae};Me.push(Re);const He=To(this._engine.statesByElement,u,new Map);return He.has(S)||(id(u,Ya),id(u,Ya+"-"+S),He.set(S,Wa)),()=>{this._engine.afterFlush(()=>{const lt=Me.indexOf(Re);lt>=0&&Me.splice(lt,1),this._triggers.has(S)||He.delete(S)})}}register(u,S){return!this._triggers.has(u)&&(this._triggers.set(u,S),!0)}_getTrigger(u){const S=this._triggers.get(u);if(!S)throw function ar(l){return new L.wOt(3401,!1)}();return S}trigger(u,S,U,ae=!0){const Me=this._getTrigger(S),Re=new Ys(this.id,S,u);let He=this._engine.statesByElement.get(u);He||(id(u,Ya),id(u,Ya+"-"+S),this._engine.statesByElement.set(u,He=new Map));let lt=He.get(S);const At=new dr(U,this.id);if(!(U&&U.hasOwnProperty("value"))&<&&At.absorbOptions(lt.options),He.set(S,At),lt||(lt=Wa),At.value!==ea&<.value===At.value){if(!function gu(l,u){const S=Object.keys(l),U=Object.keys(u);if(S.length!=U.length)return!1;for(let ae=0;ae<S.length;ae++){const Me=S[ae];if(!u.hasOwnProperty(Me)||l[Me]!==u[Me])return!1}return!0}(lt.params,At.params)){const Tn=[],Gn=Me.matchStyles(lt.value,lt.params,Tn),Cr=Me.matchStyles(At.value,At.params,Tn);Tn.length?this._engine.reportError(Tn):this._engine.afterFlush(()=>{Ha(u,Gn),Ao(u,Cr)})}return}const Ki=To(this._engine.playersByElement,u,[]);Ki.forEach(Tn=>{Tn.namespaceId==this.id&&Tn.triggerName==S&&Tn.queued&&Tn.destroy()});let Ji=Me.matchTransition(lt.value,At.value,u,At.params),rn=!1;if(!Ji){if(!ae)return;Ji=Me.fallbackTransition,rn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:S,transition:Ji,fromState:lt,toState:At,player:Re,isFallbackTransition:rn}),rn||(id(u,Ls),Re.onStart(()=>{Vc(u,Ls)})),Re.onDone(()=>{let Tn=this.players.indexOf(Re);Tn>=0&&this.players.splice(Tn,1);const Gn=this._engine.playersByElement.get(u);if(Gn){let Cr=Gn.indexOf(Re);Cr>=0&&Gn.splice(Cr,1)}}),this.players.push(Re),Ki.push(Re),Re}deregister(u){this._triggers.delete(u),this._engine.statesByElement.forEach(S=>S.delete(u)),this._elementListeners.forEach((S,U)=>{this._elementListeners.set(U,S.filter(ae=>ae.name!=u))})}clearElementCache(u){this._engine.statesByElement.delete(u),this._elementListeners.delete(u);const S=this._engine.playersByElement.get(u);S&&(S.forEach(U=>U.destroy()),this._engine.playersByElement.delete(u))}_signalRemovalForInnerTriggers(u,S){const U=this._engine.driver.query(u,_o,!0);U.forEach(ae=>{if(ae[_n])return;const Me=this._engine.fetchNamespacesByElement(ae);Me.size?Me.forEach(Re=>Re.triggerLeaveAnimation(ae,S,!1,!0)):this.clearElementCache(ae)}),this._engine.afterFlushAnimationsDone(()=>U.forEach(ae=>this.clearElementCache(ae)))}triggerLeaveAnimation(u,S,U,ae){const Me=this._engine.statesByElement.get(u),Re=new Map;if(Me){const He=[];if(Me.forEach((lt,At)=>{if(Re.set(At,lt.value),this._triggers.has(At)){const di=this.trigger(u,At,ea,ae);di&&He.push(di)}}),He.length)return this._engine.markElementAsRemoved(this.id,u,!0,S,Re),U&&no(He).onDone(()=>this._engine.processLeaveNode(u)),!0}return!1}prepareLeaveAnimationListeners(u){const S=this._elementListeners.get(u),U=this._engine.statesByElement.get(u);if(S&&U){const ae=new Set;S.forEach(Me=>{const Re=Me.name;if(ae.has(Re))return;ae.add(Re);const lt=this._triggers.get(Re).fallbackTransition,At=U.get(Re)||Wa,di=new dr(ea),Di=new Ys(this.id,Re,u);this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:Re,transition:lt,fromState:At,toState:di,player:Di,isFallbackTransition:!0})})}}removeNode(u,S){const U=this._engine;if(u.childElementCount&&this._signalRemovalForInnerTriggers(u,S),this.triggerLeaveAnimation(u,S,!0))return;let ae=!1;if(U.totalAnimations){const Me=U.players.length?U.playersByQueriedElement.get(u):[];if(Me&&Me.length)ae=!0;else{let Re=u;for(;Re=Re.parentNode;)if(U.statesByElement.get(Re)){ae=!0;break}}}if(this.prepareLeaveAnimationListeners(u),ae)U.markElementAsRemoved(this.id,u,!1,S);else{const Me=u[_n];(!Me||Me===Yt)&&(U.afterFlush(()=>this.clearElementCache(u)),U.destroyInnerAnimations(u),U._onRemovalComplete(u,S))}}insertNode(u,S){id(u,this._hostClassName)}drainQueuedTransitions(u){const S=[];return this._queue.forEach(U=>{const ae=U.player;if(ae.destroyed)return;const Me=U.element,Re=this._elementListeners.get(Me);Re&&Re.forEach(He=>{if(He.name==U.triggerName){const lt=Eo(Me,U.triggerName,U.fromState.value,U.toState.value);lt._data=u,Na(U.player,He.phase,lt,He.callback)}}),ae.markedForDestroy?this._engine.afterFlush(()=>{ae.destroy()}):S.push(U)}),this._queue=[],S.sort((U,ae)=>{const Me=U.transition.ast.depCount,Re=ae.transition.ast.depCount;return 0==Me||0==Re?Me-Re:this._engine.driver.containsElement(U.element,ae.element)?1:-1})}destroy(u){this.players.forEach(S=>S.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,u)}}class Xo{_onRemovalComplete(u,S){this.onRemovalComplete(u,S)}constructor(u,S,U,ae){this.bodyNode=u,this.driver=S,this._normalizer=U,this.scheduler=ae,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Me,Re)=>{}}get queuedPlayers(){const u=[];return this._namespaceList.forEach(S=>{S.players.forEach(U=>{U.queued&&u.push(U)})}),u}createNamespace(u,S){const U=new Io(u,S,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,S)?this._balanceNamespaceList(U,S):(this.newHostElements.set(S,U),this.collectEnterElement(S)),this._namespaceLookup[u]=U}_balanceNamespaceList(u,S){const U=this._namespaceList,ae=this.namespacesByHostElement;if(U.length-1>=0){let Re=!1,He=this.driver.getParentElement(S);for(;He;){const lt=ae.get(He);if(lt){const At=U.indexOf(lt);U.splice(At+1,0,u),Re=!0;break}He=this.driver.getParentElement(He)}Re||U.unshift(u)}else U.push(u);return ae.set(S,u),u}register(u,S){let U=this._namespaceLookup[u];return U||(U=this.createNamespace(u,S)),U}registerTrigger(u,S,U){let ae=this._namespaceLookup[u];ae&&ae.register(S,U)&&this.totalAnimations++}destroy(u,S){u&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const U=this._fetchNamespace(u);this.namespacesByHostElement.delete(U.hostElement);const ae=this._namespaceList.indexOf(U);ae>=0&&this._namespaceList.splice(ae,1),U.destroy(S),delete this._namespaceLookup[u]}))}_fetchNamespace(u){return this._namespaceLookup[u]}fetchNamespacesByElement(u){const S=new Set,U=this.statesByElement.get(u);if(U)for(let ae of U.values())if(ae.namespaceId){const Me=this._fetchNamespace(ae.namespaceId);Me&&S.add(Me)}return S}trigger(u,S,U,ae){if(es(S)){const Me=this._fetchNamespace(u);if(Me)return Me.trigger(S,U,ae),!0}return!1}insertNode(u,S,U,ae){if(!es(S))return;const Me=S[_n];if(Me&&Me.setForRemoval){Me.setForRemoval=!1,Me.setForMove=!0;const Re=this.collectedLeaveElements.indexOf(S);Re>=0&&this.collectedLeaveElements.splice(Re,1)}if(u){const Re=this._fetchNamespace(u);Re&&Re.insertNode(S,U)}ae&&this.collectEnterElement(S)}collectEnterElement(u){this.collectedEnterElements.push(u)}markElementAsDisabled(u,S){S?this.disabledNodes.has(u)||(this.disabledNodes.add(u),id(u,Cs)):this.disabledNodes.has(u)&&(this.disabledNodes.delete(u),Vc(u,Cs))}removeNode(u,S,U){if(es(S)){this.scheduler?.notify();const ae=u?this._fetchNamespace(u):null;ae?ae.removeNode(S,U):this.markElementAsRemoved(u,S,!1,U);const Me=this.namespacesByHostElement.get(S);Me&&Me.id!==u&&Me.removeNode(S,U)}else this._onRemovalComplete(S,U)}markElementAsRemoved(u,S,U,ae,Me){this.collectedLeaveElements.push(S),S[_n]={namespaceId:u,setForRemoval:ae,hasAnimation:U,removedBeforeQueried:!1,previousTriggersValues:Me}}listen(u,S,U,ae,Me){return es(S)?this._fetchNamespace(u).listen(S,U,ae,Me):()=>{}}_buildInstruction(u,S,U,ae,Me){return u.transition.build(this.driver,u.element,u.fromState.value,u.toState.value,U,ae,u.fromState.options,u.toState.options,S,Me)}destroyInnerAnimations(u){let S=this.driver.query(u,_o,!0);S.forEach(U=>this.destroyActiveAnimationsForElement(U)),0!=this.playersByQueriedElement.size&&(S=this.driver.query(u,Va,!0),S.forEach(U=>this.finishActiveQueriedAnimationOnElement(U)))}destroyActiveAnimationsForElement(u){const S=this.playersByElement.get(u);S&&S.forEach(U=>{U.queued?U.markedForDestroy=!0:U.destroy()})}finishActiveQueriedAnimationOnElement(u){const S=this.playersByQueriedElement.get(u);S&&S.forEach(U=>U.finish())}whenRenderingDone(){return new Promise(u=>{if(this.players.length)return no(this.players).onDone(()=>u());u()})}processLeaveNode(u){const S=u[_n];if(S&&S.setForRemoval){if(u[_n]=Yt,S.namespaceId){this.destroyInnerAnimations(u);const U=this._fetchNamespace(S.namespaceId);U&&U.clearElementCache(u)}this._onRemovalComplete(u,S.setForRemoval)}u.classList?.contains(Cs)&&this.markElementAsDisabled(u,!1),this.driver.query(u,".ng-animate-disabled",!0).forEach(U=>{this.markElementAsDisabled(U,!1)})}flush(u=-1){let S=[];if(this.newHostElements.size&&(this.newHostElements.forEach((U,ae)=>this._balanceNamespaceList(U,ae)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let U=0;U<this.collectedEnterElements.length;U++)id(this.collectedEnterElements[U],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const U=[];try{S=this._flushAnimations(U,u)}finally{for(let ae=0;ae<U.length;ae++)U[ae]()}}else for(let U=0;U<this.collectedLeaveElements.length;U++)this.processLeaveNode(this.collectedLeaveElements[U]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(U=>U()),this._flushFns=[],this._whenQuietFns.length){const U=this._whenQuietFns;this._whenQuietFns=[],S.length?no(S).onDone(()=>{U.forEach(ae=>ae())}):U.forEach(ae=>ae())}}reportError(u){throw function na(l){return new L.wOt(3402,!1)}()}_flushAnimations(u,S){const U=new Zl,ae=[],Me=new Map,Re=[],He=new Map,lt=new Map,At=new Map,di=new Set;this.disabledNodes.forEach(oo=>{di.add(oo);const Ro=this.driver.query(oo,".ng-animate-queued",!0);for(let jo=0;jo<Ro.length;jo++)di.add(Ro[jo])});const Di=this.bodyNode,Ki=Array.from(this.statesByElement.keys()),Ji=Gd(Ki,this.collectedEnterElements),rn=new Map;let Tn=0;Ji.forEach((oo,Ro)=>{const jo=aa+Tn++;rn.set(Ro,jo),oo.forEach(Qs=>id(Qs,jo))});const Gn=[],Cr=new Set,fr=new Set;for(let oo=0;oo<this.collectedLeaveElements.length;oo++){const Ro=this.collectedLeaveElements[oo],jo=Ro[_n];jo&&jo.setForRemoval&&(Gn.push(Ro),Cr.add(Ro),jo.hasAnimation?this.driver.query(Ro,".ng-star-inserted",!0).forEach(Qs=>Cr.add(Qs)):fr.add(Ro))}const Fr=new Map,Or=Gd(Ki,Array.from(Cr));Or.forEach((oo,Ro)=>{const jo=Fa+Tn++;Fr.set(Ro,jo),oo.forEach(Qs=>id(Qs,jo))}),u.push(()=>{Ji.forEach((oo,Ro)=>{const jo=rn.get(Ro);oo.forEach(Qs=>Vc(Qs,jo))}),Or.forEach((oo,Ro)=>{const jo=Fr.get(Ro);oo.forEach(Qs=>Vc(Qs,jo))}),Gn.forEach(oo=>{this.processLeaveNode(oo)})});const gr=[],Hr=[];for(let oo=this._namespaceList.length-1;oo>=0;oo--)this._namespaceList[oo].drainQueuedTransitions(S).forEach(jo=>{const Qs=jo.player,rc=jo.element;if(gr.push(Qs),this.collectedEnterElements.length){const ac=rc[_n];if(ac&&ac.setForMove){if(ac.previousTriggersValues&&ac.previousTriggersValues.has(jo.triggerName)){const Tm=ac.previousTriggersValues.get(jo.triggerName),jp=this.statesByElement.get(jo.element);if(jp&&jp.has(jo.triggerName)){const uv=jp.get(jo.triggerName);uv.value=Tm,jp.set(jo.triggerName,uv)}}return void Qs.destroy()}}const $c=!Di||!this.driver.containsElement(Di,rc),Xu=Fr.get(rc),ku=rn.get(rc),ud=this._buildInstruction(jo,U,ku,Xu,$c);if(ud.errors&&ud.errors.length)return void Hr.push(ud);if($c)return Qs.onStart(()=>Ha(rc,ud.fromStyles)),Qs.onDestroy(()=>Ao(rc,ud.toStyles)),void ae.push(Qs);if(jo.isFallbackTransition)return Qs.onStart(()=>Ha(rc,ud.fromStyles)),Qs.onDestroy(()=>Ao(rc,ud.toStyles)),void ae.push(Qs);const Pg=[];ud.timelines.forEach(ac=>{ac.stretchStartingKeyframe=!0,this.disabledNodes.has(ac.element)||Pg.push(ac)}),ud.timelines=Pg,U.append(rc,ud.timelines),Re.push({instruction:ud,player:Qs,element:rc}),ud.queriedElements.forEach(ac=>To(He,ac,[]).push(Qs)),ud.preStyleProps.forEach((ac,Tm)=>{if(ac.size){let jp=lt.get(Tm);jp||lt.set(Tm,jp=new Set),ac.forEach((uv,ax)=>jp.add(ax))}}),ud.postStyleProps.forEach((ac,Tm)=>{let jp=At.get(Tm);jp||At.set(Tm,jp=new Set),ac.forEach((uv,ax)=>jp.add(ax))})});if(Hr.length){const oo=[];Hr.forEach(Ro=>{oo.push(function sa(l,u){return new L.wOt(3505,!1)}())}),gr.forEach(Ro=>Ro.destroy()),this.reportError(oo)}const Ra=new Map,go=new Map;Re.forEach(oo=>{const Ro=oo.element;U.has(Ro)&&(go.set(Ro,Ro),this._beforeAnimationBuild(oo.player.namespaceId,oo.instruction,Ra))}),ae.forEach(oo=>{const Ro=oo.element;this._getPreviousPlayers(Ro,!1,oo.namespaceId,oo.triggerName,null).forEach(Qs=>{To(Ra,Ro,[]).push(Qs),Qs.destroy()})});const Ma=Gn.filter(oo=>Hc(oo,lt,At)),Zo=new Map;Cd(Zo,this.driver,fr,At,Tt.kp).forEach(oo=>{Hc(oo,lt,At)&&Ma.push(oo)});const ns=new Map;Ji.forEach((oo,Ro)=>{Cd(ns,this.driver,new Set(oo),lt,Tt.FX)}),Ma.forEach(oo=>{const Ro=Zo.get(oo),jo=ns.get(oo);Zo.set(oo,new Map([...Ro?.entries()??[],...jo?.entries()??[]]))});const Ps=[],Is=[],bd={};Re.forEach(oo=>{const{element:Ro,player:jo,instruction:Qs}=oo;if(U.has(Ro)){if(di.has(Ro))return jo.onDestroy(()=>Ao(Ro,Qs.toStyles)),jo.disabled=!0,jo.overrideTotalTime(Qs.totalTime),void ae.push(jo);let rc=bd;if(go.size>1){let Xu=Ro;const ku=[];for(;Xu=Xu.parentNode;){const ud=go.get(Xu);if(ud){rc=ud;break}ku.push(Xu)}ku.forEach(ud=>go.set(ud,rc))}const $c=this._buildAnimation(jo.namespaceId,Qs,Ra,Me,ns,Zo);if(jo.setRealPlayer($c),rc===bd)Ps.push(jo);else{const Xu=this.playersByElement.get(rc);Xu&&Xu.length&&(jo.parentPlayer=no(Xu)),ae.push(jo)}}else Ha(Ro,Qs.fromStyles),jo.onDestroy(()=>Ao(Ro,Qs.toStyles)),Is.push(jo),di.has(Ro)&&ae.push(jo)}),Is.forEach(oo=>{const Ro=Me.get(oo.element);if(Ro&&Ro.length){const jo=no(Ro);oo.setRealPlayer(jo)}}),ae.forEach(oo=>{oo.parentPlayer?oo.syncPlayerEvents(oo.parentPlayer):oo.destroy()});for(let oo=0;oo<Gn.length;oo++){const Ro=Gn[oo],jo=Ro[_n];if(Vc(Ro,Fa),jo&&jo.hasAnimation)continue;let Qs=[];if(He.size){let $c=He.get(Ro);$c&&$c.length&&Qs.push(...$c);let Xu=this.driver.query(Ro,Va,!0);for(let ku=0;ku<Xu.length;ku++){let ud=He.get(Xu[ku]);ud&&ud.length&&Qs.push(...ud)}}const rc=Qs.filter($c=>!$c.destroyed);rc.length?su(this,Ro,rc):this.processLeaveNode(Ro)}return Gn.length=0,Ps.forEach(oo=>{this.players.push(oo),oo.onDone(()=>{oo.destroy();const Ro=this.players.indexOf(oo);this.players.splice(Ro,1)}),oo.play()}),Ps}afterFlush(u){this._flushFns.push(u)}afterFlushAnimationsDone(u){this._whenQuietFns.push(u)}_getPreviousPlayers(u,S,U,ae,Me){let Re=[];if(S){const He=this.playersByQueriedElement.get(u);He&&(Re=He)}else{const He=this.playersByElement.get(u);if(He){const lt=!Me||Me==ea;He.forEach(At=>{At.queued||!lt&&At.triggerName!=ae||Re.push(At)})}}return(U||ae)&&(Re=Re.filter(He=>!(U&&U!=He.namespaceId||ae&&ae!=He.triggerName))),Re}_beforeAnimationBuild(u,S,U){const Me=S.element,Re=S.isRemovalTransition?void 0:u,He=S.isRemovalTransition?void 0:S.triggerName;for(const lt of S.timelines){const At=lt.element,di=At!==Me,Di=To(U,At,[]);this._getPreviousPlayers(At,di,Re,He,S.toState).forEach(Ji=>{const rn=Ji.getRealPlayer();rn.beforeDestroy&&rn.beforeDestroy(),Ji.destroy(),Di.push(Ji)})}Ha(Me,S.fromStyles)}_buildAnimation(u,S,U,ae,Me,Re){const He=S.triggerName,lt=S.element,At=[],di=new Set,Di=new Set,Ki=S.timelines.map(rn=>{const Tn=rn.element;di.add(Tn);const Gn=Tn[_n];if(Gn&&Gn.removedBeforeQueried)return new Tt.sf(rn.duration,rn.delay);const Cr=Tn!==lt,fr=function Ju(l){const u=[];return lp(l,u),u}((U.get(Tn)||qe).map(Ra=>Ra.getRealPlayer())).filter(Ra=>!!Ra.element&&Ra.element===Tn),Fr=Me.get(Tn),Or=Re.get(Tn),gr=ja(this._normalizer,rn.keyframes,Fr,Or),Hr=this._buildPlayer(rn,gr,fr);if(rn.subTimeline&&ae&&Di.add(Tn),Cr){const Ra=new Ys(u,He,Tn);Ra.setRealPlayer(Hr),At.push(Ra)}return Hr});At.forEach(rn=>{To(this.playersByQueriedElement,rn.element,[]).push(rn),rn.onDone(()=>function ol(l,u,S){let U=l.get(u);if(U){if(U.length){const ae=U.indexOf(S);U.splice(ae,1)}0==U.length&&l.delete(u)}return U}(this.playersByQueriedElement,rn.element,rn))}),di.forEach(rn=>id(rn,Yo));const Ji=no(Ki);return Ji.onDestroy(()=>{di.forEach(rn=>Vc(rn,Yo)),Ao(lt,S.toStyles)}),Di.forEach(rn=>{To(ae,rn,[]).push(Ji)}),Ji}_buildPlayer(u,S,U){return S.length>0?this.driver.animate(u.element,S,u.duration,u.delay,u.easing,U):new Tt.sf(u.duration,u.delay)}}class Ys{constructor(u,S,U){this.namespaceId=u,this.triggerName=S,this.element=U,this._player=new Tt.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(u){this._containsRealPlayer||(this._player=u,this._queuedCallbacks.forEach((S,U)=>{S.forEach(ae=>Na(u,U,void 0,ae))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(u.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(u){this.totalTime=u}syncPlayerEvents(u){const S=this._player;S.triggerCallback&&u.onStart(()=>S.triggerCallback("start")),u.onDone(()=>this.finish()),u.onDestroy(()=>this.destroy())}_queueEvent(u,S){To(this._queuedCallbacks,u,[]).push(S)}onDone(u){this.queued&&this._queueEvent("done",u),this._player.onDone(u)}onStart(u){this.queued&&this._queueEvent("start",u),this._player.onStart(u)}onDestroy(u){this.queued&&this._queueEvent("destroy",u),this._player.onDestroy(u)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(u){this.queued||this._player.setPosition(u)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(u){const S=this._player;S.triggerCallback&&S.triggerCallback(u)}}function es(l){return l&&1===l.nodeType}function kl(l,u){const S=l.style.display;return l.style.display=u??"none",S}function Cd(l,u,S,U,ae){const Me=[];S.forEach(lt=>Me.push(kl(lt)));const Re=[];U.forEach((lt,At)=>{const di=new Map;lt.forEach(Di=>{const Ki=u.computeStyle(At,Di,ae);di.set(Di,Ki),(!Ki||0==Ki.length)&&(At[_n]=Fi,Re.push(At))}),l.set(At,di)});let He=0;return S.forEach(lt=>kl(lt,Me[He++])),Re}function Gd(l,u){const S=new Map;if(l.forEach(He=>S.set(He,[])),0==u.length)return S;const ae=new Set(u),Me=new Map;function Re(He){if(!He)return 1;let lt=Me.get(He);if(lt)return lt;const At=He.parentNode;return lt=S.has(At)?At:ae.has(At)?1:Re(At),Me.set(He,lt),lt}return u.forEach(He=>{const lt=Re(He);1!==lt&&S.get(lt).push(He)}),S}function id(l,u){l.classList?.add(u)}function Vc(l,u){l.classList?.remove(u)}function su(l,u,S){no(S).onDone(()=>l.processLeaveNode(u))}function lp(l,u){for(let S=0;S<l.length;S++){const U=l[S];U instanceof Tt.ui?lp(U.players,u):u.push(U)}}function Hc(l,u,S){const U=S.get(l);if(!U)return!1;let ae=u.get(l);return ae?U.forEach(Me=>ae.add(Me)):u.set(l,U),S.delete(l),!0}class Qd{constructor(u,S,U,ae){this._driver=S,this._normalizer=U,this._triggerCache={},this.onRemovalComplete=(Me,Re)=>{},this._transitionEngine=new Xo(u.body,S,U,ae),this._timelineEngine=new xd(u.body,S,U),this._transitionEngine.onRemovalComplete=(Me,Re)=>this.onRemovalComplete(Me,Re)}registerTrigger(u,S,U,ae,Me){const Re=u+"-"+ae;let He=this._triggerCache[Re];if(!He){const lt=[],di=$a(this._driver,Me,lt,[]);if(lt.length)throw function gt(l,u){return new L.wOt(3404,!1)}();He=function Yi(l,u,S){return new Un(l,u,S)}(ae,di,this._normalizer),this._triggerCache[Re]=He}this._transitionEngine.registerTrigger(S,ae,He)}register(u,S){this._transitionEngine.register(u,S)}destroy(u,S){this._transitionEngine.destroy(u,S)}onInsert(u,S,U,ae){this._transitionEngine.insertNode(u,S,U,ae)}onRemove(u,S,U){this._transitionEngine.removeNode(u,S,U)}disableAnimations(u,S){this._transitionEngine.markElementAsDisabled(u,S)}process(u,S,U,ae){if("@"==U.charAt(0)){const[Me,Re]=Bi(U);this._timelineEngine.command(Me,S,Re,ae)}else this._transitionEngine.trigger(u,S,U,ae)}listen(u,S,U,ae,Me){if("@"==U.charAt(0)){const[Re,He]=Bi(U);return this._timelineEngine.listen(Re,S,He,Me)}return this._transitionEngine.listen(u,S,U,ae,Me)}flush(u=-1){this._transitionEngine.flush(u)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(u){this._transitionEngine.afterFlushAnimationsDone(u)}}class sc{static#e=this.initialStylesByElement=new WeakMap;constructor(u,S,U){this._element=u,this._startStyles=S,this._endStyles=U,this._state=0;let ae=sc.initialStylesByElement.get(u);ae||sc.initialStylesByElement.set(u,ae=new Map),this._initialStyles=ae}start(){this._state<1&&(this._startStyles&&Ao(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ao(this._element,this._initialStyles),this._endStyles&&(Ao(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(sc.initialStylesByElement.delete(this._element),this._startStyles&&(Ha(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ha(this._element,this._endStyles),this._endStyles=null),Ao(this._element,this._initialStyles),this._state=3)}}function hh(l){let u=null;return l.forEach((S,U)=>{(function zc(l){return"display"===l||"position"===l})(U)&&(u=u||new Map,u.set(U,S))}),u}class Vl{constructor(u,S,U,ae){this.element=u,this.keyframes=S,this.options=U,this._specialStyles=ae,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=U.duration,this._delay=U.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(u=>u()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const u=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,u,this.options),this._finalKeyframe=u.length?u[u.length-1]:new Map;const S=()=>this._onFinish();this.domPlayer.addEventListener("finish",S),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",S)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(u){const S=[];return u.forEach(U=>{S.push(Object.fromEntries(U))}),S}_triggerWebAnimation(u,S,U){return u.animate(this._convertKeyframesToObject(S),U)}onStart(u){this._originalOnStartFns.push(u),this._onStartFns.push(u)}onDone(u){this._originalOnDoneFns.push(u),this._onDoneFns.push(u)}onDestroy(u){this._onDestroyFns.push(u)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(u=>u()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(u=>u()),this._onDestroyFns=[])}setPosition(u){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=u*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const u=new Map;this.hasStarted()&&this._finalKeyframe.forEach((U,ae)=>{"offset"!==ae&&u.set(ae,this._finished?U:Ko(this.element,ae))}),this.currentSnapshot=u}triggerCallback(u){const S="start"===u?this._onStartFns:this._onDoneFns;S.forEach(U=>U()),S.length=0}}class Jc{validateStyleProperty(u){return!0}validateAnimatableStyleProperty(u){return!0}matchesElement(u,S){return!1}containsElement(u,S){return ct(u,S)}getParentElement(u){return si(u)}query(u,S,U){return ri(u,S,U)}computeStyle(u,S,U){return Ko(u,S)}animate(u,S,U,ae,Me,Re=[]){const lt={duration:U,delay:ae,fill:0==ae?"both":"forwards"};Me&&(lt.easing=Me);const At=new Map,di=Re.filter(Ji=>Ji instanceof Vl);(function Zs(l,u){return 0===l||0===u})(U,ae)&&di.forEach(Ji=>{Ji.currentSnapshot.forEach((rn,Tn)=>At.set(Tn,rn))});let Di=function Jl(l){return l.length?l[0]instanceof Map?l:l.map(u=>new Map(Object.entries(u))):[]}(S).map(Ji=>new Map(Ji));Di=function jl(l,u,S){if(S.size&&u.length){let U=u[0],ae=[];if(S.forEach((Me,Re)=>{U.has(Re)||ae.push(Re),U.set(Re,Me)}),ae.length)for(let Me=1;Me<u.length;Me++){let Re=u[Me];ae.forEach(He=>Re.set(He,Ko(l,He)))}}return u}(u,Di,At);const Ki=function Ic(l,u){let S=null,U=null;return Array.isArray(u)&&u.length?(S=hh(u[0]),u.length>1&&(U=hh(u[u.length-1]))):u instanceof Map&&(S=hh(u)),S||U?new sc(l,S,U):null}(u,Di);return new Vl(u,Di,lt,Ki)}}const wo="@.disabled";class lc{constructor(u,S,U,ae){this.namespaceId=u,this.delegate=S,this.engine=U,this._onDestroy=ae,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(u){this.delegate.destroyNode?.(u)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(u,S){return this.delegate.createElement(u,S)}createComment(u){return this.delegate.createComment(u)}createText(u){return this.delegate.createText(u)}appendChild(u,S){this.delegate.appendChild(u,S),this.engine.onInsert(this.namespaceId,S,u,!1)}insertBefore(u,S,U,ae=!0){this.delegate.insertBefore(u,S,U),this.engine.onInsert(this.namespaceId,S,u,ae)}removeChild(u,S,U){this.engine.onRemove(this.namespaceId,S,this.delegate)}selectRootElement(u,S){return this.delegate.selectRootElement(u,S)}parentNode(u){return this.delegate.parentNode(u)}nextSibling(u){return this.delegate.nextSibling(u)}setAttribute(u,S,U,ae){this.delegate.setAttribute(u,S,U,ae)}removeAttribute(u,S,U){this.delegate.removeAttribute(u,S,U)}addClass(u,S){this.delegate.addClass(u,S)}removeClass(u,S){this.delegate.removeClass(u,S)}setStyle(u,S,U,ae){this.delegate.setStyle(u,S,U,ae)}removeStyle(u,S,U){this.delegate.removeStyle(u,S,U)}setProperty(u,S,U){"@"==S.charAt(0)&&S==wo?this.disableAnimations(u,!!U):this.delegate.setProperty(u,S,U)}setValue(u,S){this.delegate.setValue(u,S)}listen(u,S,U){return this.delegate.listen(u,S,U)}disableAnimations(u,S){this.engine.disableAnimations(u,S)}}class $s extends lc{constructor(u,S,U,ae,Me){super(S,U,ae,Me),this.factory=u,this.namespaceId=S}setProperty(u,S,U){"@"==S.charAt(0)?"."==S.charAt(1)&&S==wo?this.disableAnimations(u,U=void 0===U||!!U):this.engine.process(this.namespaceId,u,S.slice(1),U):this.delegate.setProperty(u,S,U)}listen(u,S,U){if("@"==S.charAt(0)){const ae=function et(l){switch(l){case"body":return document.body;case"document":return document;case"window":return window;default:return l}}(u);let Me=S.slice(1),Re="";return"@"!=Me.charAt(0)&&([Me,Re]=function Ot(l){const u=l.indexOf(".");return[l.substring(0,u),l.slice(u+1)]}(Me)),this.engine.listen(this.namespaceId,ae,Me,Re,He=>{this.factory.scheduleListenerCallback(He._data||-1,U,He)})}return this.delegate.listen(u,S,U)}}class Qt{constructor(u,S,U){this.delegate=u,this.engine=S,this._zone=U,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,S.onRemovalComplete=(ae,Me)=>{const Re=Me?.parentNode(ae);Re&&Me.removeChild(Re,ae)}}createRenderer(u,S){const ae=this.delegate.createRenderer(u,S);if(!u||!S?.data?.animation){const At=this._rendererCache;let di=At.get(ae);return di||(di=new lc("",ae,this.engine,()=>At.delete(ae)),At.set(ae,di)),di}const Me=S.id,Re=S.id+"-"+this._currentId;this._currentId++,this.engine.register(Re,u);const He=At=>{Array.isArray(At)?At.forEach(He):this.engine.registerTrigger(Me,Re,u,At.name,At)};return S.data.animation.forEach(He),new $s(this,Re,ae,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(u,S,U){if(u>=0&&u<this._microtaskId)return void this._zone.run(()=>S(U));const ae=this._animationCallbacksBuffer;0==ae.length&&queueMicrotask(()=>{this._zone.run(()=>{ae.forEach(Me=>{const[Re,He]=Me;Re(He)}),this._animationCallbacksBuffer=[]})}),ae.push([S,U])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const ir=[{provide:wn,useFactory:function on(){return new ws}},{provide:Qd,useClass:(()=>{class l extends Qd{constructor(S,U,ae){super(S,U,ae,(0,L.WQX)(L.An2,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(U){return new(U||l)(L.KVO(x.qQ),L.KVO(ji),L.KVO(wn))};static#t=this.\u0275prov=L.jDH({token:l,factory:l.\u0275fac})}return l})()},{provide:L._9s,useFactory:function Bn(l,u,S){return new Qt(l,u,S)},deps:[d.B7,Qd,L.SKi]}],Yr=[{provide:ji,useFactory:()=>new Jc},{provide:L.bc$,useValue:"BrowserAnimations"},...ir],Ir=[{provide:ji,useClass:Ri},{provide:L.bc$,useValue:"NoopAnimations"},...ir];let pa=(()=>{class l{static withConfig(S){return{ngModule:l,providers:S.disableAnimations?Ir:Yr}}static#e=this.\u0275fac=function(U){return new(U||l)};static#t=this.\u0275mod=L.$C({type:l});static#i=this.\u0275inj=L.G2t({providers:Yr,imports:[d.Bb]})}return l})();var Fs=D(18406),Tl=D(89417);let Rs=(()=>{class l{static#e=this.\u0275fac=function(U){return new(U||l)};static#t=this.\u0275mod=L.$C({type:l});static#i=this.\u0275inj=L.G2t({imports:[x.MD,Fs.e,v.h.forChild(),f.iI]})}return l})();var Qc=D(18810),ut=D(88141),Mi=D(99437),Gt=D(66664),hi=D(7673),gn=D(91986);let rr=(()=>{class l{constructor(S){this.appLogsService=S}createDb(){return{}}parseMockData(S,U){}mockingInterception(S,U,ae,Me){let Re=null;switch(S.method){case"PUT":case"POST":Re=this.postMockData(S.body);break;case"GET":Re=this.getMockData(U[4],ae);break;case"DELETE":Re=this.deleteMockData(+U[5])}if(Re)return this.appLogsService.dlog(U[4]+(U.length<6?": list":""),{guid:Me},"color:"+o.W1.returnRequestColor),Re.pipe((0,gn.c)(500))}getMockData(S,U){return(0,hi.of)(new I.cS({status:200,body:this.getFilteredDataList(U)}))}postMockData(S){return(0,hi.of)(new I.cS({status:200,body:Object.assign({},S)}))}deleteMockData(S){return(0,hi.of)(new I.cS({status:200}))}getFilteredDataList(S){return null}static#e=this.\u0275fac=function(U){return new(U||l)(L.KVO(Gt.w))};static#t=this.\u0275prov=L.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Tr=(()=>{class l{constructor(S,U,ae,Me){this.appLogsservice=S,this.authorizeService=U,this.mockDataService=ae,this.environment=Me}intercept(S,U){const ae=S.clone(this.prepareOptions(S.headers)),Me=E.Os();let He;this.appLogsservice.dlog(`%c# HTTP Request ${S.method}: ${S.url}`,{guid:Me},"color:"+o.W1.startRequestColor);const lt=S.url.split(/\//g);let At="";const di=lt[4]?4:3;if("GET"===S.method)At=lt[di]+(lt.length<di+2?": list":"");else for(let Ki=di;Ki<lt.length;Ki++)At+=(Ki===di?"":"/")+lt[Ki];return this.mockDataService.parseMockData(S,Me)||U.handle(ae).pipe((0,ut.M)({next:Ki=>He=Ki instanceof I.cS?"SUCCEDED":"",error:Ki=>He="FAILED",complete:()=>{this.appLogsservice.dlog(At,{guid:Me},"color:"+o.W1.returnRequestColor)}}),(0,Mi.W)(Ki=>(this.appLogsservice.exception(Ki),Ki.status===o.zQ&&this.authorizeService.tryRenewJWTAsync(),(0,Qc.$)(()=>Ki))))}prepareOptions(S,U=!0){let ae=null;this.environment.headerData&&(ae=new I.Lr(this.environment.headerData));let Me=null;return S?Me=S:(Me=new I.Lr,Me=Me.append("Content-Type","application/json").append("Accept","application/json")),U&&this.authorizeService.useJWT&&this.authorizeService.HR_JWT&&(Me=Me.append("Authorization","Bearer "+this.authorizeService.HR_JWT.idToken)),{headers:Me,withCredentials:this.authorizeService.loginStatus===this.authorizeService.EN_LoginStatus_Windows||this.authorizeService.loginStatus===this.authorizeService.EN_LoginStatus_Unknown&&!this.authorizeService.useJWT&&!ae}}static#e=this.\u0275fac=function(U){return new(U||l)(L.KVO(Gt.w),L.KVO(k.V),L.KVO(rr),L.KVO(R.i2))};static#t=this.\u0275prov=L.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();var Da=D(86600),Ca=D(87283),zn=(D(69803),D(31837));let Ss=(()=>{class l{}return l.\u0275fac=function(S){return new(S||l)},l.\u0275mod=L.$C({type:l}),l.\u0275inj=L.G2t({imports:[[zn.k61,zn.POb,zn.uE7,zn.$lK,zn.hUd,zn.HKo,zn.Ixj,Ca.p_,Ca.xZ],zn.k61,zn.POb,zn.uE7,zn.$lK,zn.hUd,zn.HKo,zn.Ixj,Ca.xZ]}),l})();var wa=D(94753),Fo=D(64905),Ia=D(5042),vr=D(87951),ba=D(12101),oa=D(22209),zs=D(80186),Wn=D(72463),nd=D(14435),Zr=D(43458),tl=Math,hd=tl.abs,Zc=tl.min,lo=tl.max,Al=tl.floor,Ks=8,ph=4;function Zu(l){return{x:l.x-Ks,y:l.y-ph,width:l.width+2*Ks,height:l.height+2*ph}}function ko(l,u,S,U){var ae=S?["x","width","y","height",u,0]:["y","height","x","width",l,1];return function(Me,Re,He){var lt={x:He.x,y:He.y},At=Zu(Me),di=S?He.y-Me.y-Me.height/2:He.y-Me.y;return lt.y=S||!S&&"bottom"===Re?He.y+di:He.y,At[ae[0]]<0?lt[ae[0]]-=At[ae[0]]:At[ae[0]]+At[ae[1]]+di*ae[5]>U[ae[1]]&&(lt[ae[0]]-=At[ae[0]]+At[ae[1]]+di*ae[5]-U[ae[1]]),ae[4]-At[ae[3]]/2<0?lt[ae[2]]-=ae[4]-At[ae[3]]/2:ae[4]+At[ae[3]]/2>U[ae[3]]&&(lt[ae[2]]-=ae[4]+At[ae[3]]/2-U[ae[3]]),lt}}function Uh(l,u,S,U){this._renderer=l,this._crosshairGroup=U,this._options={},this.update(u,S)}Uh.prototype={constructor:Uh,update:function(l,u){var S=u.canvas;this._canvas={top:S.top,bottom:S.height-S.bottom,left:S.left,right:S.width-S.right,width:S.width,height:S.height},this._axes=u.axes,this._panes=u.panes,this._prepareOptions(l,"horizontal"),this._prepareOptions(l,"vertical")},dispose:function(){this._renderer=this._crosshairGroup=this._options=this._axes=this._canvas=this._horizontalGroup=this._verticalGroup=this._horizontal=this._vertical=this._circle=this._panes=null},_prepareOptions:function(l,u){var S=l[u+"Line"];this._options[u]={visible:S.visible,line:{stroke:S.color||l.color,"stroke-width":S.width||l.width,dashStyle:S.dashStyle||l.dashStyle,opacity:S.opacity||l.opacity,"stroke-linecap":"butt"},label:(0,vr.X)(!0,{},l.label,S.label)}},_createLines:function(l,u,S){for(var U=[],ae=this._canvas,Me=[ae.left,ae.top,ae.left,ae.top],Re=0;Re<2;Re++)U.push(this._renderer.path(Me,"line").attr(l).sharp(u).append(S));return U},render:function(){var l=this._renderer,u=this._options,S=u.vertical,U=u.horizontal,ae=U.visible?U.line:S.line,Me={stroke:ae.stroke,"stroke-width":ae["stroke-width"],dashStyle:ae.dashStyle,opacity:ae.opacity},Re=this._canvas;this._horizontal={},this._vertical={},this._circle=l.circle(Re.left,Re.top,0).attr(Me).append(this._crosshairGroup),this._horizontalGroup=l.g().append(this._crosshairGroup),this._verticalGroup=l.g().append(this._crosshairGroup),S.visible&&(this._vertical.lines=this._createLines(S.line,"h",this._verticalGroup),this._vertical.labels=this._createLabels(this._axes[0],S,!1,this._verticalGroup)),U.visible&&(this._horizontal.lines=this._createLines(U.line,"v",this._horizontalGroup),this._horizontal.labels=this._createLabels(this._axes[1],U,!0,this._horizontalGroup)),this.hide()},_createLabels:function(l,u,S,U){var Re,He,lt,di,Di,ae=this._canvas,Me=this._renderer,At=[],Ki=u.label;return Ki.visible&&l.forEach(function(Ji){var rn=Ji.getOptions().position;if(!Ji.getTranslator().getBusinessRange().isEmpty()){Di=Ji.getLabelsPosition(),S?(He=ae.top,Re=Di):(Re=ae.left,He=Di);var Tn="top"===rn||"bottom"===rn?"center":"right"===rn?"left":"right";di=Me.rect(0,0,0,0).attr({fill:Ki.backgroundColor||u.line.stroke}).append(U),lt=Me.text("0",0,0).css((0,Zr.a1)(u.label.font)).attr({align:Tn,class:Ki.cssClass}).append(U),At.push({text:lt,background:di,axis:Ji,options:Ki,pos:{coord:Di,side:rn},startXY:{x:Re,y:He}})}}),At},_updateText:function(l,u,S,U,ae){var Me=this;S.forEach(function(Re){var He=Re.axis,lt=Re.startXY,At=Re.text,di=Re.background,Di="";(!He.name||He.name===u)&&(Di=He.getFormattedValue(l,Re.options,U)),Di?(At.attr({text:Di,x:lt.x,y:lt.y}),At.attr(ae(At.getBBox(),Re.pos.side,lt)),Me._updateLinesCanvas(Re),di.attr(Zu(At.getBBox()))):(At.attr({text:""}),di.attr({x:0,y:0,width:0,height:0}))})},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(l){var u=l.pos.side,S=l.pos.coord,U=this._linesCanvas,ae=this._canvas;U[u]=U[u]!==ae[u]&&hd(U[u]-ae[u])<hd(S-ae[u])?U[u]:S},_updateLines:function(l,u,S,U,ae){for(var Me=this._linesCanvas,Re=this._canvas,He=ae?[[Zc(u-U,Me.left),Re.top,u-U,Re.top],[u+U,Re.top,lo(Me.right,u+U),Re.top]]:[[Re.left,Zc(Me.top,S-U),Re.left,S-U],[Re.left,S+U,Re.left,lo(Me.bottom,S+U)]],lt=0;lt<2;lt++)l[lt].attr({points:He[lt]}).sharp(ae?"v":"h",ae?S===Re.bottom?-1:1:u===Re.right?-1:1)},_resetLinesCanvas:function(){var l=this._canvas;this._linesCanvas={left:l.left,right:l.right,top:l.top,bottom:l.bottom}},_getClipRectForPane:function(l,u){var U,ae,S=this._panes;for(U=0;U<S.length;U++)if((ae=S[U].coords).left<=l&&ae.right>=l&&ae.top<=u&&ae.bottom>=u)return S[U].clipRect;return{id:null}},show:function(l){var u=l.point,S=u.getCrosshairData(l.x,l.y),U=u.getPointRadius(),ae=this._horizontal,Me=this._vertical,Re=U?U+3:0,He=this._canvas,lt=Al(S.x),At=Al(S.y);lt>=He.left&<<=He.right&&At>=He.top&&At<=He.bottom?(this._crosshairGroup.attr({visibility:"visible"}),this._resetLinesCanvas(),this._circle.attr({cx:lt,cy:At,r:Re,"clip-path":this._getClipRectForPane(lt,At).id}),ae.lines&&(this._updateText(S.yValue,S.axis,ae.labels,u,ko(lt,At,!0,He)),this._updateLines(ae.lines,lt,At,Re,!0),this._horizontalGroup.attr({translateY:At-He.top})),Me.lines&&(this._updateText(S.xValue,S.axis,Me.labels,u,ko(lt,At,!1,He)),this._updateLines(Me.lines,lt,At,Re,!1),this._verticalGroup.attr({translateX:lt-He.left}))):this.hide()}};var Gh=D(61067),qc=(D(85978),Math),kc=qc.floor,xl=qc.max,Wh=qc.abs,dc=l=>({transform:function(u,S){return(0,oa.Ai)((0,Zr.wS)(u,S,l.allowNegatives,l.linearThreshold))},getTicks:function(u,S,U){for(var ae=[],Me=this.transform(S[0],U);ae.length<S.length;)ae.push(Me),Me=(0,oa.Ai)(Me+u);return ae}}),Ru=l=>({transform:function(u,S){return(0,oa.Ai)((0,Zr.hq)(u,S,l.allowNegatives,l.linearThreshold))},getTicks:function(u,S,U){for(var Me,ae=[],Re=0;Re<S.length;Re+=1)Me=this.transform(S[Re],U),ae.push(Me);return ae}});function _u(l,u){if(l.isLogarithmic){var S=l.logarithmicBase,U=l.tickValues;l.minValue=u.transform(l.minValue,S),l.oldMinValue=u.transform(l.oldMinValue,S),l.maxValue=u.transform(l.maxValue,S),l.oldMaxValue=u.transform(l.oldMaxValue,S),l.tickInterval=qc.round(l.tickInterval),l.tickInterval<1&&(l.tickInterval=1);var ae=u.getTicks(l.tickInterval,U,S);ae.tickInterval=l.tickInterval,l.tickValues=ae}}function eu(l){return l.maxValue-l.minValue||1}function Qa(l){for(var u=0;u<l.length;u++)if(!l[u].stubData)return l[u];return null}const nt_synchronize=function(l){(0,ba.__)(function sl(l){var u={};return l.forEach(S=>{var U=S.pane;u[U]||(u[U]=[]),u[U].push(S)}),u}(l),function(u,S){var U,ae;if(S.length>1){if(U=function vu(l){return l.reduce(function(u,S){var lt,U=S.getTicksValues(),ae=U.majorTicksValues,Me=S.getOptions(),Re=S.getTranslator().getBusinessRange(),He=S.getVisibleArea(),At=S._tickInterval,di=Me.synchronizedValue,Di=S.getViewport().action;if(ae&&ae.length>0&&(0,Wn.kf)(ae[0])&&"discrete"!==Me.type&&!Re.isEmpty()&&(!Re.breaks||!Re.breaks.length)&&"zoom"!==Di&&"pan"!==Di){S.applyMargins();var Ki=S.getTranslator().from(He[0]),Ji=S.getTranslator().from(He[1]),rn=Ki<Ji?Ki:Ji,Tn=Ki<Ji?Ji:Ki;rn===Tn&&(0,Wn.O9)(di)&&(At=Wh(ae[0]-di)||1,rn=ae[0]-At,Tn=ae[0]+At),_u(lt={axis:S,isLogarithmic:"logarithmic"===Me.type,logarithmicBase:Re.base,tickValues:ae,minorValues:U.minorTicksValues,minorTickInterval:S._minorTickInterval,minValue:rn,oldMinValue:rn,maxValue:Tn,oldMaxValue:Tn,inverted:Re.invert,tickInterval:At,synchronizedValue:di},dc(S.getTranslator().getBusinessRange())),u.push(lt)}return u},[])}(S),U.length<2||!Qa(U))return;(function cc(l){var u=l.reduce((S,U)=>xl(S,U.tickValues.length),0);l.forEach(S=>{var U,ae,Me=0,Re=S.synchronizedValue,He=S.tickValues,lt=S.tickInterval;if((0,Wn.O9)(Re))S.baseTickValue=S.invertedBaseTickValue=Re,S.tickValues=[S.baseTickValue];else{if(He.length>1&<){for(ae=(U=kc((u+1)/He.length))>1?kc((u+1)/U):u,Me=kc((ae-He.length)/2);Me>0&&0!==He[0];)He.unshift((0,oa.Ai)(He[0]-lt)),Me--;for(;He.length<ae;)He.push((0,oa.Ai)(He[He.length-1]+lt));S.tickInterval=lt/U}S.baseTickValue=He[0],S.invertedBaseTickValue=He[He.length-1]}})})(U),function qu(l){var u=Qa(l),S=u.tickInterval;l.forEach(U=>{var ae,Me,Re,He;U!==u&&(S&&U.tickInterval&&(U.stubData&&(0,Wn.O9)(U.synchronizedValue)&&(U.oldMinValue=U.minValue=U.baseTickValue-(u.baseTickValue-u.minValue)/S*U.tickInterval,U.oldMaxValue=U.maxValue=U.baseTickValue-(u.baseTickValue-u.maxValue)/S*U.tickInterval),ae=S/eu(u)/U.tickInterval*eu(U),U.maxValue=U.minValue+eu(U)/ae),Re=u.inverted&&!U.inverted||!u.inverted&&U.inverted?u.maxValue-u.invertedBaseTickValue:u.baseTickValue-u.minValue,He=eu(U),Me=(Re/eu(u)-(U.baseTickValue-U.minValue)/He)*He,U.minValue-=Me,U.maxValue-=Me)})}(U),ae=function lu(l){var u,S,U=0,ae=0;return l.forEach(Me=>{var Re=Me.inverted;u=Me.minValue>Me.oldMinValue?(Me.minValue-Me.oldMinValue)/eu(Me):0,S=Me.maxValue<Me.oldMaxValue?(Me.oldMaxValue-Me.maxValue)/eu(Me):0,U=xl(U,Re?S:u),ae=xl(ae,Re?u:S)}),{start:U,end:ae}}(U),ae=function Sa(l,u){return function Xp(l){var u=!0,S=!0;return l.forEach(U=>{(U.oldMinValue>0||U.oldMaxValue>0)&&(S=!1),(U.oldMinValue<0||U.oldMaxValue<0)&&(u=!1)}),u||S}(l)?l.reduce((S,U)=>{var ae=U.inverted,{start:Me,end:Re}=U.axis.getCorrectedValuesToZero(U.minValue,U.maxValue);return(0,Wn.O9)(Me)||(0,Wn.O9)(Re)?ae?{start:S.start,end:Math.min(S.end,Re)}:{start:Math.min(S.start,Me),end:S.end}:S},u):u}(U,ae),function eh(l,u){l.forEach(S=>{var U=eu(S),ae=S.inverted;S.minValue=(0,oa.Ai)(S.minValue-u[ae?"end":"start"]*U),S.maxValue=(0,oa.Ai)(S.maxValue+u[ae?"start":"end"]*U)})}(U,ae),function Kf(l){var S,u=[];l.forEach(U=>{U.oldMaxValue-U.oldMinValue==0?u.push(U):!(0,Wn.O9)(S)&&!(0,Wn.O9)(U.synchronizedValue)&&(S=Wh((U.maxValue-U.minValue)/(U.tickValues[kc(U.tickValues.length/2)]-U.minValue||U.maxValue)))}),(0,Wn.O9)(S)&&u.forEach(U=>{var ae=U.tickValues[0],Me=ae*S;ae>0?(U.maxValue=Me,U.minValue=0):ae<0&&(U.minValue=Me,U.maxValue=0)})}(U),function Cc(l){var u=!1;l.forEach(S=>{u=u||(0,Wn.O9)(S.synchronizedValue)}),l.forEach(S=>{var He,U=S.tickInterval,ae=S.tickValues,Me=S.maxValue,Re=S.minValue;if(u&&U){for(;(He=(0,oa.Ai)(ae[0]-U))>=Re;)ae.unshift(He);for(He=ae[ae.length-1];(He=(0,oa.Ai)(He+U))<=Me;)ae.push(He)}for(;ae[0]+U/10<Re;)ae.shift();for(;ae[ae.length-1]-U/10>Me;)ae.pop()})}(U),function Kp(l){l.forEach(function(u){if(u.minorTickInterval){for(var S=[],U=u.minorTickInterval,ae=u.tickInterval/U-1,Me=1;Me<u.tickValues.length;Me++)for(var Re=u.tickValues[Me-1],He=0;He<ae;He++)S.push(Re+=U);u.minorValues=S}})}(U),U.forEach(Me=>{_u(Me,Ru(Me.axis.getTranslator().getBusinessRange()))}),function mh(l){l.forEach(u=>{var S=u.axis,U=S.getTranslator().getBusinessRange();U.min===U.minVisible&&(U.min=u.minValue),U.max===U.maxVisible&&(U.max=u.maxValue),U.minVisible=u.minValue,U.maxVisible=u.maxValue,U.min>U.minVisible&&(U.min=U.minVisible),U.max<U.maxVisible&&(U.max=U.maxVisible),S.getTranslator().updateBusinessRange(U),S.setTicks({majorTicks:u.tickValues,minorTicks:u.minorValues})})}(U)}})};var Ct=D(91269),at=D(49104),St=D(76946),pi=Math.round;function zi(l){return l}const In={translate:function(l,u){var S=this._canvasOptions,U=this._categoriesToPoints[l?.valueOf()],ae=this.translateSpecialCase(l),Me=S.startPointIndex||0,Re=this._options.stick?0:.5;return(0,Wn.O9)(ae)?pi(ae):U||0===U?pi(this._calculateProjection(S.interval*(U+Re-Me+.5*(u=u||0)))):null},getInterval:function(){return this._canvasOptions.interval},getEventScale:function(l){return 1-(1-(l.deltaScale||1))/(.75+this.visibleCategories.length/this._categories.length)},zoom:function(l,u){var Di,S=this._categories,U=this._canvasOptions,ae=this._options.stick,Me=U.invert,Re=U.interval*u,He=l/Re,lt=(this.visibleCategories||[]).length,At=parseInt((U.startPointIndex||0)+He+.5),di=parseInt((0,oa.Ai)(U.canvasLength/Re)+(ae?1:0))||1;Me&&(At=parseInt((U.startPointIndex||0)+lt-He+.5)-di),At<0&&(At=0),(Di=At+di)>S.length&&(At=(Di=S.length)-di)<0&&(At=0);var Ki=S.slice(parseInt(At),parseInt(Di)),Ji=this._getDiscreteInterval(Ki.length,U);return u=Ji/U.interval,l=this.translate(Me?Ki[Ki.length-1]:Ki[0])*u-(U.startPoint+(ae?0:Ji/2)),{min:Ki[0],max:Ki[Ki.length-1],translate:l,scale:u}},getMinScale:function(l){var u=this._canvasOptions,S=(this.visibleCategories||this._categories).length;return S+=(parseInt(.1*S)||1)*(l?-2:2),u.canvasLength/(Math.max(S,1)*u.interval)},getScale:function(l,u){var S=this._canvasOptions,U=this.getCanvasVisibleArea(),ae=!this._options.stick&&1,Me=(0,Wn.O9)(l)?this.translate(l,-ae):null,Re=(0,Wn.O9)(u)?this.translate(u,+ae):null;return null===Me&&(Me=S.invert?U.max:U.min),null===Re&&(Re=S.invert?U.min:U.max),this.canvasLength/Math.abs(Re-Me)},isValid:function(l){return!!(0,Wn.O9)(l)&&this._categoriesToPoints[l.valueOf()]>=0},getCorrectValue:zi,to:function(l,u){var S=this._canvasOptions,U=this._categoriesToPoints[l?.valueOf()];return pi(this._calculateProjection(S.interval*(U+(this._options.stick?0:.5)-(S.startPointIndex||0)+(this._businessRange.invert?-1:1)*u*.5)))},from:function(l){var S=this._canvasOptions,ae=this.visibleCategories||this._categories,Me=ae.length,He=pi((l-S.startPoint)/S.interval+(this._options.stick?.5:0)-.5-.5*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0));return He>=Me&&(He=Me-1),He<0&&(He=0),S.invert&&(He=Me-He-1),ae[He]},_add:function(){return NaN},toValue:zi,isValueProlonged:!0,getRangeByMinZoomValue(l,u){var S=this._categories,U=S.indexOf(u.minVisible),ae=S.indexOf(u.maxVisible),Me=U+l-1;return S[Me]?[u.minVisible,S[Me]]:[S[ae-l+1],u.maxVisible]}};var qn=D(91437),pr=Math.floor;const Za={_intervalize:function(l,u){if((0,Wn.O9)(l))return"datetime"===this._businessRange.dataType?(l=(0,Wn.kf)(l)?new Date(l):new Date(l.getTime()),l=qn.A.correctDateWithUnitBeginning(l,u,null,this._options.firstDayOfWeek)):l=(0,oa.Ai)(pr((0,oa.Ai)(l/u))*u,u),l},translate:function(l,u,S,U){var ae=this.translateSpecialCase(l);return(0,Wn.O9)(ae)?Math.round(ae):this.isValid(l,U=U||this._options.interval)?this.to(l,u,S,U):null},getInterval:function(){return Math.round(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},zoom:function(){},getMinScale:function(){},getScale:function(){},_parse:function(l){return"datetime"===this._businessRange.dataType?new Date(l):Number(l)},fromValue:function(l){return this._parse(l)},toValue:function(l){return this._parse(l)},isValid:function(l,u){var S=this._canvasOptions,U=S.rangeMin,ae=S.rangeMax;return u=u||this._options.interval,!(null===l||isNaN(l)||(l="datetime"===this._businessRange.dataType&&(0,Wn.kf)(l)?new Date(l):l,u!==this._options.interval&&(U=this._intervalize(U,u),ae=this._intervalize(ae,u)),l.valueOf()<U||l.valueOf()>=qn.A.addInterval(ae,u)))},to:function(l,u,S,U){var ae=this._intervalize(l,U=U||this._options.interval),Me=qn.A.addInterval(ae,U),Re=this._to(ae,S),He=this._to(Me,S);return u?u>0&&(Re=He):Re=pr((Re+He)/2),Re},_to:function(l,u){var S=this._canvasOptions,U=S.rangeMinVisible,ae=S.rangeMaxVisible,Me=l-U;l<U?Me=0:l>ae&&(Me=qn.A.addInterval(ae,this._options.interval)-U);var Re=this._calculateProjection(Me*this._canvasOptions.ratioOfCanvasRange);return this._conversionValue(Re,u)},from:function(l,u){var He,S=this._options.interval,U=S,ae=this._canvasOptions,Me=ae.rangeMinVisible,Re=ae.rangeMaxVisible;return"datetime"===this._businessRange.dataType&&(U=qn.A.dateToMilliseconds(S)),He=this._calculateUnProjection((l-this._canvasOptions.startPoint)/this._canvasOptions.ratioOfCanvasRange),(He=this._intervalize(qn.A.addInterval(He,U/2,u>0),S))<Me?He=Me:He>Re&&(He=Re),He},_add:function(){return NaN},isValueProlonged:!0};function ds(l){return null!==l?new Date(l):l}const La={fromValue:ds,toValue:ds,_add:qn.A.addDateInterval,convert:qn.A.dateToMilliseconds},pd={fromValue:function(l){return null!==l?(0,Zr.wS)(l,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):l},toValue:function(l){return null!==l?(0,Zr.hq)(l,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):l},getMinBarSize:function(l){var u=this.getCanvasVisibleArea(),S=this.from(u.min+l),U=this._canvasOptions,ae=this.fromValue(this.from(u.min)),Me=this.fromValue(S??this.from(u.max)),Re=Math.abs(ae-Me);return Math.pow(U.base,Re)},checkMinBarSize:function(l,u,S){var Re,He,U=this._canvasOptions,ae=S?S-l:0,Me=this.constructor.prototype.checkMinBarSize;return(0,Wn.O9)(u)&&ae>0?(Re=Me(this.fromValue(S/ae),this.fromValue(u)-U.rangeMinVisible),He=Math.pow(U.base,this.fromValue(ae)+Re)-ae):He=Me(l,u),He}};var bu=Math.abs,th=["width","height","left","top","bottom","right"],gh={to(l){var u=this._canvasOptions.startPoint+(this._options.conversionValue?l:Math.round(l));return u>this._canvasOptions.endPoint?this._canvasOptions.endPoint:u},from(l){return l-this._canvasOptions.startPoint}},dp=function(l){return(0,ba.__)(th,function(u,S){l[S]=parseInt(l[S])||0}),l};function du(l){return{isStartSide:l?function(u,S,U,ae){return u<=S[S.length-1][ae]}:function(u,S,U,ae){return u<S[0][U]},isEndSide:l?function(u,S,U,ae){return u>S[0][U]}:function(u,S,U,ae){return u>=S[S.length-1][ae]},isInBreak:l?function(u,S,U,ae){return u>S[ae]&&u<=S[U]}:function(u,S,U,ae){return u>=S[U]&&u<S[ae]},isBetweenBreaks:l?function(u,S,U,ae,Me){return u>=S[Me]&&u<U[ae]}:function(u,S,U,ae,Me){return u<S[ae]&&u>=U[Me]},getLength:l?function(u,S){return S.length-u.length}:function(u){return u.length},getBreaksSize:l?function(u,S){return S.cumulativeWidth-u.cumulativeWidth}:function(u){return u.cumulativeWidth}}}var Rc=function(l,u,S){this.update(l,u,S)};Rc.prototype={constructor:Rc,reinit:function(){var l=this,u=l._options,S=l._businessRange,U=S.categories||[],ae={},Me=l._prepareCanvasOptions(),Re=(0,Zr.jg)(U,S.minVisible,S.maxVisible).categories,He=Re.length;if(S.isEmpty())ae=gh;else switch(S.axisType){case"logarithmic":ae=pd;break;case"semidiscrete":ae=Za,Me.ratioOfCanvasRange=Me.canvasLength/(qn.A.addInterval(Me.rangeMaxVisible,u.interval)-Me.rangeMinVisible);break;case"discrete":ae=In,l._categories=U,Me.interval=l._getDiscreteInterval(u.addSpiderCategory?He+1:He,Me),l._categoriesToPoints=function(l){var u={};return l.forEach(function(S,U){u[S.valueOf()]=U}),u}(U),He&&(Me.startPointIndex=l._categoriesToPoints[Re[0].valueOf()],l.visibleCategories=Re);break;default:"datetime"===S.dataType&&(ae=La)}(l._oldMethods||[]).forEach(function(lt){delete l[lt]}),l._oldMethods=Object.keys(ae),(0,vr.X)(l,ae),l._conversionValue=u.conversionValue?lt=>lt:(lt,At)=>At?lt:Math.round(lt),l.sc={},l._checkingMethodsAboutBreaks=[du(!1),du(l.isInverted())],l._translateBreaks(),l._calculateSpecialValues()},_translateBreaks:function(){var S,U,ae,Me,l=this._breaks,u=this._options.breaksSize;if(void 0!==l)for(S=0,Me=l.length;S<Me;S++)ae=this.translate((U=l[S]).to),U.end=ae,U.start=U.gapSize?ae:this.isInverted()?ae+u:ae-u},_checkValueAboutBreaks:function(l,u,S,U,ae){var Me,Re,lt,At,He={length:0,breaksSize:void 0,inBreak:!1},di=l[l.length-1];if(ae.isStartSide(u,l,S,U))return He;if(ae.isEndSide(u,l,S,U))return{length:di.length,breaksSize:di.cumulativeWidth,inBreak:!1};for(Me=0,Re=l.length;Me<Re;Me++){if(At=l[Me-1],ae.isInBreak(u,lt=l[Me],S,U)){He.inBreak=!0,He.break=lt;break}if(At&&ae.isBetweenBreaks(u,lt,At,S,U)){He={length:ae.getLength(At,di),breaksSize:ae.getBreaksSize(At,di),inBreak:!1};break}}return He},isInverted:function(){return!(this._options.isHorizontal^this._businessRange.invert)},_getDiscreteInterval:function(l,u){var S=l-(this._options.stick?1:0);return S>0?u.canvasLength/S:u.canvasLength},_prepareCanvasOptions(){var ae,l=this._businessRange,u=this._canvasOptions=function tu(l){var u=l.min,S=l.max,U=l.minVisible,ae=l.maxVisible;return"logarithmic"===l.axisType&&(ae=(0,Zr.wS)(ae,l.base,l.allowNegatives,l.linearThreshold),U=(0,Zr.wS)(U,l.base,l.allowNegatives,l.linearThreshold),u=(0,Zr.wS)(u,l.base,l.allowNegatives,l.linearThreshold),S=(0,Zr.wS)(S,l.base,l.allowNegatives,l.linearThreshold)),{base:l.base,rangeMin:u,rangeMax:S,rangeMinVisible:U,rangeMaxVisible:ae}}(l),S=this._canvas,U=this._breaks;if(u.startPadding=S.startPadding||0,u.endPadding=S.endPadding||0,this._options.isHorizontal?(u.startPoint=S.left+u.startPadding,ae=S.width,u.endPoint=S.width-S.right-u.endPadding,u.invert=l.invert):(u.startPoint=S.top+u.startPadding,ae=S.height,u.endPoint=S.height-S.bottom-u.endPadding,u.invert=!l.invert),this.canvasLength=u.canvasLength=u.endPoint-u.startPoint,u.rangeDoubleError=Math.pow(10,(0,Zr.cP)(u.rangeMax-u.rangeMin)-(0,Zr.cP)(ae)-2),u.ratioOfCanvasRange=u.canvasLength/(u.rangeMaxVisible-u.rangeMinVisible),void 0!==U){var Me=u.rangeMaxVisible-u.rangeMinVisible-U[U.length-1].length;0!==Me&&(u.ratioOfCanvasRange=(u.canvasLength-U[U.length-1].cumulativeWidth)/Me)}return u},updateCanvas:function(l){this._canvas=dp(l),this.reinit()},updateBusinessRange:function(l){var u=l.breaks||[];this._userBreaks=l.userBreaks||[],this._businessRange=function(l){function u(S,U){!(0,Wn.O9)(l[S])&&(0,Wn.O9)(l[U])&&(l[S]=l[U])}return l instanceof St.Q||(l=new St.Q(l)),u("minVisible","min"),u("maxVisible","max"),l}(l),this._breaks=u.length?function Jp(l,u){var ae,Me,Re,He,S="logarithmic"===u.axisType?function(di){return(0,Zr.wS)(di,u.base)}:function(di){return di},U=[],lt=l.length,At=0;for(He=0;He<lt;He++)Me=S((ae=l[He]).from),Re=S(ae.to),U.push({trFrom:Me,trTo:Re,from:ae.from,to:ae.to,length:At+=Re-Me,cumulativeWidth:ae.cumulativeWidth});return U}(u,this._businessRange):void 0,this.reinit()},update:function(l,u,S){this._options=(0,vr.X)(this._options||{},S),this._canvas=dp(u),this.updateBusinessRange(l)},getBusinessRange:function(){return this._businessRange},getEventScale:function(l){return l.deltaScale||1},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var He,l=this._canvasOptions,u=l.startPoint-l.startPadding,S=l.endPoint+l.endPadding,U=this._businessRange,ae=U.minVisible,Me=U.maxVisible,Re=u+l.canvasLength/2;if(ae<0&&Me>0&&ae!==Me&&(He=this.translate(0,1)),!(0,Wn.O9)(He)){var lt=U.invert^(ae<0&&Me<=0);He=this._options.isHorizontal?lt?S:u:lt?u:S}this.sc={canvas_position_default:He,canvas_position_left:u,canvas_position_top:u,canvas_position_center:Re,canvas_position_middle:Re,canvas_position_right:S,canvas_position_bottom:S,canvas_position_start:l.invert?S:u,canvas_position_end:l.invert?u:S}},translateSpecialCase(l){return this.sc[l]},_calculateProjection:function(l){var u=this._canvasOptions;return u.invert?u.endPoint-l:u.startPoint+l},_calculateUnProjection:function(l){var u=this._canvasOptions;return"datetime"===this._businessRange.dataType&&(l=Math.round(l)),u.invert?u.rangeMaxVisible.valueOf()-l:u.rangeMinVisible.valueOf()+l},getMinBarSize:function(l){var u=this.getCanvasVisibleArea(),S=this.from(u.min+l);return bu(this.from(u.min)-((0,Wn.O9)(S)?S:this.from(u.max)))},checkMinBarSize:function(l,u){return bu(l)<u?l>=0?u:-u:l},translate(l,u,S){var U=this.translateSpecialCase(l);return(0,Wn.O9)(U)?Math.round(U):isNaN(l)?null:this.to(l,u,S)},getInterval:function(l){var u,S=this._canvasOptions;return l=null!==(u=l)&&void 0!==u?u:this._businessRange.interval,Math.round(l?S.ratioOfCanvasRange*l:S.endPoint-S.startPoint)},zoom(l,u,S){var U=this._canvasOptions;if(U.rangeMinVisible.valueOf()===U.rangeMaxVisible.valueOf()&&0!==l)return this.zoomZeroLengthRange(l,u);var ae=U.startPoint,Me=U.endPoint,Re=this.isInverted(),He=(ae+l)/u,lt=(Me+l)/u;S=S||{};var Di,Ki,At=this.to(Re?S.endValue:S.startValue),di=this.to(Re?S.startValue:S.endValue);return At>He&&(lt-=He-At,He=At,Di=Re?S.endValue:S.startValue),di<lt&&(He-=lt-di,lt=di,Ki=Re?S.startValue:S.endValue),di-At<lt-He&&(He=At,lt=di),u=(ae+(l=(Me-ae)*He/(lt-He)-ae))/He||1,Di=(0,Wn.O9)(Di)?Di:(0,oa.Ai)(this.from(He,1)),Ki=(0,Wn.O9)(Ki)?Ki:(0,oa.Ai)(this.from(lt,-1)),u<=1&&(Di=this._correctValueAboutBreaks(Di,1===u?l:-1),Ki=this._correctValueAboutBreaks(Ki,1===u?l:1)),Di>Ki?(Di=Di>S.endValue?S.endValue:Di,Ki=Ki<S.startValue?S.startValue:Ki):(Di=Di<S.startValue?S.startValue:Di,Ki=Ki>S.endValue?S.endValue:Ki),{min:Di,max:Ki,translate:(0,oa.Ai)(l),scale:(0,oa.Ai)(u)}},_correctValueAboutBreaks(l,u){var S=this._userBreaks.filter(U=>l>=U.from&&l<=U.to);return S.length?u>0?S[0].to:S[0].from:l},zoomZeroLengthRange(l,u){var S=this._canvasOptions,U=S.rangeMin,ae=S.rangeMax,Me=(ae.valueOf()!==U.valueOf()?ae.valueOf()-U.valueOf():bu(S.rangeMinVisible.valueOf()-U.valueOf()))/S.canvasLength,Re=(0,Wn.$P)(ae)||(0,Wn.$P)(U),He="logarithmic"===this._businessRange.axisType,lt=S.rangeMinVisible.valueOf()-Me,At=S.rangeMaxVisible.valueOf()+Me;return{min:lt=He?(0,oa.Ai)((0,Zr.hq)(lt,S.base)):Re?new Date(lt):lt,max:At=He?(0,oa.Ai)((0,Zr.hq)(At,S.base)):Re?new Date(At):At,translate:l,scale:u}},getMinScale:function(l){var{dataType:u,interval:S}=this._businessRange;return"datetime"===u&&1===S?this.getDateTimeMinScale(l):l?1.1:.9},getDateTimeMinScale(l){var u=this._canvasOptions,S=u.canvasLength/u.ratioOfCanvasRange;return S+=(parseInt(.1*S)||1)*(l?-2:2),u.canvasLength/(Math.max(S,1)*u.ratioOfCanvasRange)},getScale:function(l,u){var S=this._canvasOptions;return S.rangeMax===S.rangeMin?1:(l=(0,Wn.O9)(l)?this.fromValue(l):S.rangeMin,u=(0,Wn.O9)(u)?this.fromValue(u):S.rangeMax,(S.rangeMax-S.rangeMin)/Math.abs(l-u))},isValid:function(l){var u=this._canvasOptions;return null!==(l=this.fromValue(l))&&!isNaN(l)&&l.valueOf()+u.rangeDoubleError>=u.rangeMin&&l.valueOf()-u.rangeDoubleError<=u.rangeMax},getCorrectValue:function(l,u){var U,S=this._breaks;return l=this.fromValue(l),this._breaks&&!0===(U=this._checkValueAboutBreaks(S,l,"trFrom","trTo",this._checkingMethodsAboutBreaks[0])).inBreak?this.toValue(u>0?U.break.trTo:U.break.trFrom):this.toValue(l)},to:function(l,u,S){var U=this.getBusinessRange();if((0,Wn.O9)(U.maxVisible)&&(0,Wn.O9)(U.minVisible)&&U.maxVisible.valueOf()===U.minVisible.valueOf())return(0,Wn.O9)(l)&&U.maxVisible.valueOf()===l.valueOf()?this.translateSpecialCase(0===l&&this._options.shiftZeroValue?"canvas_position_default":"canvas_position_middle"):null;l=this.fromValue(l);var ae=this._canvasOptions,Me=this._breaks,Re={length:0},He=0;return void 0!==Me&&(Re=this._checkValueAboutBreaks(Me,l,"trFrom","trTo",this._checkingMethodsAboutBreaks[0]),He=(0,Wn.O9)(Re.breaksSize)?Re.breaksSize:0),!0===Re.inBreak?u>0?Re.break.start:u<0?Re.break.end:null:this._conversionValue(this._calculateProjection((l-ae.rangeMinVisible-Re.length)*ae.ratioOfCanvasRange+He),S)},from:function(l,u){var S=this._breaks,U={length:0},ae=this._canvasOptions,Me=ae.startPoint,Re=0;return void 0!==S&&(U=this._checkValueAboutBreaks(S,l,"start","end",this._checkingMethodsAboutBreaks[1]),Re=(0,Wn.O9)(U.breaksSize)?U.breaksSize:0),!0===U.inBreak?u>0?this.toValue(U.break.trTo):u<0?this.toValue(U.break.trFrom):null:this.toValue(this._calculateUnProjection((l-Me-Re)/ae.ratioOfCanvasRange+U.length))},isValueProlonged:!1,getRange:function(){return[this.toValue(this._canvasOptions.rangeMin),this.toValue(this._canvasOptions.rangeMax)]},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(l,u,S){return this._add(l,u,(this._businessRange.invert?-1:1)*S)},_add:function(l,u,S){return this.toValue(this.fromValue(l)+u*S)},fromValue:function(l){return null!==l?Number(l):null},toValue:function(l){return null!==l?Number(l):null},ratioOfCanvasRange(){return this._canvasOptions.ratioOfCanvasRange},convert:l=>l,getRangeByMinZoomValue(l,u){return u.minVisible+l<=this._businessRange.max?[u.minVisible,u.minVisible+l]:[u.maxVisible-l,u.maxVisible]}};var iu=D(99393),yu=Math.min,wp=Math.max,ih=function(l,u){this._translator=new Rc({},{},{}),this._scroll=l.rect().append(u),this._addEvents()};function cp(l,u,S,U){var ae=0;return"right"===u?ae=l.width-l.right+S:"left"===u&&(ae=l.left-S-U),ae}function ag(l,u,S,U){var ae=0;return"top"===u?ae=l.top-S:"bottom"===u&&(ae=l.height-l.bottom+U+S),ae}ih.prototype={_addEvents:function(){var l=this._scroll.element;Ct.A.on(l,iu.ni,u=>{(0,at.rC)({type:"dxc-scroll-start",originalEvent:u,target:l})}),Ct.A.on(l,iu.Cy,u=>{var S=-u.offset.x*this._scale,U=-u.offset.y*this._scale,ae=this._offset-(this._layoutOptions.vertical?U:S)/this._scale;this._applyPosition(ae,ae+this._translator.canvasLength/this._scale),(0,at.rC)({type:"dxc-scroll-move",originalEvent:u,target:l,offset:{x:S,y:U}})}),Ct.A.on(l,iu._N,u=>{(0,at.rC)({type:"dxc-scroll-end",originalEvent:u,target:l,offset:{x:-u.offset.x*this._scale,y:-u.offset.y*this._scale}})})},update:function(l){var u=l.position,S=l.rotated,U=S?"right":"top";return u!==U&&u!==(S?"left":"bottom")&&(u=U),this._scroll.attr({rotate:l.rotated?0:-90,rotateX:0,rotateY:0,fill:l.color,width:l.width,opacity:l.opacity}),this._layoutOptions={width:l.width,offset:l.offset,vertical:S,position:u},this},init:function(l,u){var S="discrete"===l.axisType;return this._translateWithOffset=S&&!u?1:0,this._translator.update((0,vr.X)({},l,{minVisible:null,maxVisible:null,visibleCategories:null},S&&{min:null,max:null}||{}),this._canvas,{isHorizontal:!this._layoutOptions.vertical,stick:u}),this},getOptions:function(){return this._layoutOptions},setPane:function(l){var u=this._layoutOptions.position;return this.pane=("left"===u||"top"===u?l[0]:l[l.length-1]).name,this},updateSize:function(l){this._canvas=(0,vr.X)({},l);var u=this._layoutOptions,S=u.position,U=u.offset,ae=u.width;this._scroll.attr({translateX:cp(l,S,U,ae),translateY:ag(l,S,U,ae)})},getMultipleAxesSpacing:function(){return 0},estimateMargins:function(){return this.getMargins()},getMargins:function(){var l=this._layoutOptions,u={left:0,top:0,right:0,bottom:0};return u[l.position]=l.width+l.offset,u},shift:function(l){var u,S,U=this._layoutOptions,ae=U.position,Me=U.vertical,Re={translateX:null!==(u=this._scroll.attr("translateX"))&&void 0!==u?u:0,translateY:null!==(S=this._scroll.attr("translateY"))&&void 0!==S?S:0};Re[Me?"translateX":"translateY"]+=("left"===ae||"top"===ae?-1:1)*l[ae],this._scroll.attr(Re)},hideTitle:Ia.lQ,hideOuterElements:Ia.lQ,setPosition:function(l,u){var S=this._translator,U=(0,Wn.O9)(l)?S.translate(l,-this._translateWithOffset):S.translate("canvas_position_start"),ae=(0,Wn.O9)(u)?S.translate(u,this._translateWithOffset):S.translate("canvas_position_end");this._offset=yu(U,ae),this._scale=S.getScale(l,u),this._applyPosition(yu(U,ae),wp(U,ae))},customPositionIsAvailable:()=>!1,dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(l,u){var S=this._translator.getCanvasVisibleArea();l=wp(l,S.min),l=yu(l,S.max),u=yu(u,S.max),u=wp(u,S.min);var U=Math.abs(u-l);this._scroll.attr({y:l,height:U<2?2:U})}};var pl=".shutter-zoom",wf=iu.ni+pl,Qp=iu.Cy+pl,Uc=iu._N+pl;function jh(l,u,S,U){var ae=Math.floor(S?U.pageY-l.top:U.pageX-l.left),Me=S?u.y1:u.x1,Re=S?u.y2:u.x2;return ae<Me?ae=Me:ae>Re&&(ae=Re),ae}const _m={name:"shutter_zoom",init:function(){var l=this.option("shutterZoom")||{};l.enabled&&(this._shutterZoom=function Zp(l){var u=l.chart,S=l.renderer,U=l.rotated,ae=S.rect(0,0,0,0).attr(l.shutterOptions),Me={rect:ae,root:S.root,rotated:U,triggerStart:function(){u._eventTrigger("zoomStart")},triggerEnd:function(){var Re=u._argumentAxes[0].getTranslator(),He=Math.min(this.startCoord,this.curCoord),lt=Math.max(this.startCoord,this.curCoord);u._eventTrigger("zoomEnd",{rangeStart:Re.from(He),rangeEnd:Re.from(lt)})},dispose:function(){S.root.off(pl),ae.dispose()},getRootOffset:function(){return S.getRootOffset()},getCanvas:function(){var Re=u._canvas,He=u.panes,lt=He[0].canvas,At=He[He.length-1].canvas;return{x1:lt.left,y1:lt.top,x2:Re.width-At.right,y2:Re.height-At.bottom,width:Re.width-lt.left-At.right,height:Re.height-lt.top-At.bottom}}};return S.root.off(pl).on(wf,{direction:U?"vertical":"horizontal",immediate:!0},function up(l){return function(u){var S=l.getRootOffset(),U=l.getCanvas();!function Yh(l,u,S){var U=S.pageX-l.left,ae=S.pageY-l.top;return U>=u.x1&&U<=u.x2&&ae>=u.y1&&ae<=u.y2}(S,U,u)?u.cancel=!0:(l.rootOffset=S,l.canvas=U,l.startCoord=jh(S,U,l.rotated,u),l.triggerStart(),l.rect.attr({x:U.x1,y:U.y1,width:U.width,height:U.height}).append(l.root))}}(Me)).on(Qp,function Gc(l){return function(u){var S=jh(l.rootOffset,l.canvas,l.rotated,u),U={};l.curCoord=S,U[l.rotated?"y":"x"]=Math.min(l.startCoord,S),U[l.rotated?"height":"width"]=Math.abs(l.startCoord-S),l.rect.attr(U)}}(Me)).on(Uc,function og(l){return function(u){l.triggerEnd(),l.rect.remove()}}(Me)),Me}({chart:this,renderer:this._renderer,rotated:this.option("rotated"),shutterOptions:l}))},dispose:function(){this._shutterZoom&&this._shutterZoom.dispose()}};var Ad=D(58168),sg=D(39544),vh=D(94469),qp=D(98642),Wc="start",Uo="",Se="end",ue=[],B=function(l,u){ue.push({name:l,args:u})};B("transform",{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),B("translate",{translation:!0,deltaTranslation:!0}),B("pinch",{scale:!0,deltaScale:!0}),B("rotate",{rotation:!0,deltaRotation:!0});var Ce=function(l){var u=l.pointers;return function(l,u){return{x:u.pageX-l.pageX,y:-u.pageY+l.pageY,centerX:.5*(u.pageX+l.pageX),centerY:.5*(u.pageY+l.pageY)}}(u[0],u[1])},De=function(l){return Math.sqrt(l.x*l.x+l.y*l.y)},Le=function(l,u){return De(l)/De(u)},je=function(l,u){var S=l.x*u.x+l.y*u.y,U=De(l)*De(u);return 0===U?0:(0,oa._S)(l.x*u.y-u.x*l.y)*Math.acos((0,oa.df)(S/U,-1,1))},it=function(l,u){return{x:l.centerX-u.centerX,y:l.centerY-u.centerY}},Pt=vh.A.inherit({validatePointers:function(l){return(0,at.Ic)(l)>1},start:function(l){this._accept(l);var u=Ce(l);this._startVector=u,this._prevVector=u,this._fireEventAliases(Wc,l)},move:function(l){var u=Ce(l),S=this._getEventArgs(u);this._fireEventAliases(Uo,l,S),this._prevVector=u},end:function(l){var u=this._getEventArgs(this._prevVector);this._fireEventAliases(Se,l,u)},_getEventArgs:function(l){return{scale:Le(l,this._startVector),deltaScale:Le(l,this._prevVector),rotation:je(l,this._startVector),deltaRotation:je(l,this._prevVector),translation:it(l,this._startVector),deltaTranslation:it(l,this._prevVector)}},_fireEventAliases:function(l,u,S){S=S||{},ba.__(ue,function(U,ae){var Me={};ba.__(ae.args,function(Re){Re in S&&(Me[Re]=S[Re])}),this._fireEvent("dx"+ae.name+l,u,Me)}.bind(this))}}),Zt=ue.reduce((l,u)=>([Wc,Uo,Se].forEach(S=>{l.push("dx"+u.name+S)}),l),[]);(0,qp.A)({emitter:Pt,events:Zt});var fi={};ba.__(Zt,function(l,u){fi[u.substring(2)]=u});var{pinchstart:ur,pinch:Vr,pinchend:sr}=fi,mn=".zoomAndPanNS",hn=iu.ni+mn,Hn=iu.Cy+mn,Vn=iu._N+mn,Rr=ur+mn,br=Vr+mn,jr=sr+mn,wr="dxc-scroll-start"+mn,Kr="dxc-scroll-move"+mn,Xr="dxc-scroll-end"+mn,Cn=Math.min,Ln=Math.max,Jn=Math.abs;function lr(l){return{x:l.left,y:l.top,width:l.width-l.left-l.right,height:l.height-l.top-l.bottom}}function Sr(l,u){var S=u.x,U=u.y;return S>=l.x&&S<=l.width+l.x&&U>=l.y&&U<=l.height+l.y}function Lr(l){return l.filter(u=>!u.getTranslator().getBusinessRange().isEmpty())}function za(l){return l.some(u=>!u.isExtremePosition(!1)||!u.isExtremePosition(!0))}function _a(l,u,S,U,ae,Me,Re){var He=u&&l!==u,lt=S(l),{stopInteraction:At,correctedRange:di}=l.checkZoomingLowerLimitOvercome(ae,Me,lt),Di=l.handleZooming(At?null:di,U(He),Re,ae);return At&&l.handleZoomEnd(),{stopInteraction:At,result:Di}}function Xa(l,u,S,U,ae,Me){u=function Br(l,u){return u&&(l=l.sort((S,U)=>S===u?-1:U===u?1:0)),l}(u,Me);var Re=!1,He=lt=>({start:!!lt,end:!!lt});return Lr(u).some(lt=>{var At=lt.getTranslator(),di=At.getMinScale(U),{stopInteraction:Di,result:Ki}=_a(lt,Me,S((0,Ad.A)({scale:di,translator:At,axis:lt},ae)),He,"zoom",di,l);return Re=!Di,Me&&Ki.isPrevented}),Re}function Oa(l){l.originalEvent&&Oa(l.originalEvent),!1!==l.cancelable&&(l.cancel=!0)}const as={name:"zoom_and_pan",init:function(){var l=this,u=this._renderer;function S(Ji,rn){var Tn=[],Gn=Ji.options,Cr=Ji.actionData;return Gn.argumentAxis[rn]&&Tn.push(l.getArgumentAxis()),Gn.valueAxis[rn]&&(Tn=Tn.concat(Cr.valueAxes)),Tn}function U(Ji,rn,Tn){Lr(S(Ji,rn)).some(Cr=>Cr.handleZooming(null,{end:!0},Tn,rn).isPrevented)&&Oa(Tn)}function ae(Ji,rn,Tn,Gn,Cr){function fr(js,ns,Ps,Is,bd){var oo={zoomed:!1};return ns&&Lr(js).forEach(Ro=>{var jo=Ro.getOptions(),Qs=Ro.visualRange(),rc=Ro.getTranslator().getEventScale(Is),$c=-Gn(Is,bd,Ps,rc);oo=(0,vr.X)(!0,oo,Ro.getTranslator().zoom($c,rc,Ro.getZoomBounds()));var Xu=Ro.adjustRange((0,Zr.Od)([oo.min,oo.max])),{stopInteraction:ku,correctedRange:ud}=Ro.checkZoomingLowerLimitOvercome(rn,rc,Xu);if((0,Wn.O9)(Qs)&&Qs.startValue.valueOf()===ud.startValue.valueOf()&&Qs.endValue.valueOf()===ud.endValue.valueOf()){if("touch"===Is.pointerType&&"discrete"===jo.type){var Pg=Ro.isExtremePosition(!1),N0=Ro.isExtremePosition(!0);oo.enabled=rc>1&&!ku||rc<1&&(!Pg||!N0)||1===rc&&!(Pg&&($c<0&&!jo.inverted||$c>0&&jo.inverted)||N0&&($c>0&&!jo.inverted||$c<0&&jo.inverted))}}else Ro.handleZooming(ku?null:ud,{start:!0,end:!0},Is,rn),ku||(oo.zoomed=!0,oo.deltaTranslate=$c-oo.translate)}),oo}function Fr(js,ns,Ps,Is){Ps.zoomed&&(ns.offset[Is]=(js.offset?js.offset[Is]:ns.offset[Is])+Ps.deltaTranslate)}function Or(js,ns,Ps,Is){Ps.zoomed&&(ns.center[Is]=js[Is]+Ps.deltaTranslate)}var gr=l.option("rotated"),Hr=Ji.actionData,Ra=Ji.options,go={},Ma={};Hr.fallback||(go=fr(l._argumentAxes,Ra.argumentAxis[rn],gr?"y":"x",Tn,Hr),Ma=fr(Hr.valueAxes,Ra.valueAxis[rn],gr?"x":"y",Tn,Hr),l._requestChange(["VISUAL_RANGE"]),Fr(Tn,Hr,go,gr?"y":"x"),Fr(Tn,Hr,Ma,gr?"x":"y"));var Zo=Cr(Tn);return Or(Zo,Hr,go,gr?"y":"x"),Or(Zo,Hr,Ma,gr?"x":"y"),!go.zoomed&&!Ma.zoomed&&(Hr.center=Zo),go.zoomed||Ma.zoomed||Hr.fallback||go.enabled||Ma.enabled}function Me(Ji,rn,Tn,Gn){function Cr(Ra,go,Ma,Zo){var js=!1,ns=Tn.scale||1,Ps=bd=>{var oo=bd.getTranslator().zoom(-Gn(Tn,Ma,go,ns),ns,bd.getZoomBounds());return{startValue:oo.min,endValue:oo.max}},Is=bd=>({start:!0,end:bd});return Lr(Ra).forEach(bd=>{js=!_a(bd,Zo,Ps,Is,rn,ns,Tn).stopInteraction}),js}var fr=l.option("rotated"),Fr=Ji.actionData,Or=Ji.options,gr=!0;if(Fr.fallback)gr&=Or.argumentAxis[rn]&&Cr(l._argumentAxes,fr?"y":"x",Fr,l.getArgumentAxis()),gr|=Or.valueAxis[rn]&&Cr(Fr.valueAxes,fr?"x":"y",Fr);else{var Hr=S(Ji,rn);Lr(Hr).forEach(Ra=>{Ra.handleZooming(null,{start:!0},Tn,rn)}),gr=Hr.length}gr&&l._requestChange(["VISUAL_RANGE"])}function Re(Ji,rn){var Tn=l._argumentAxes.filter(Gn=>Sr(lr(Gn.getCanvas()),Ji));return{fallback:l._lastRenderingTime>300,cancel:!Tn.length||!(0,Wn.O9)(rn),action:rn,curAxisRect:Tn.length&&lr(Tn[0].getCanvas()),valueAxes:Tn.length&&l._valueAxes.filter(Gn=>Sr(lr(Gn.getCanvas()),Ji)),offset:{x:0,y:0},center:Ji,startCenter:Ji}}function He(Ji,rn){var Tn=u.getRootOffset();return{x:Cn(Ln(rn.pageX-Tn.left,Ji.x),Ji.width+Ji.x),y:Cn(Ln(rn.pageY-Tn.top,Ji.y),Ji.height+Ji.y)}}function lt(Ji){var rn=u.getRootOffset(),Tn=Ji.pointers[0].pageX,Gn=Ji.pointers[1].pageX,Cr=Ji.pointers[0].pageY,fr=Ji.pointers[1].pageY;return{x:Cn(Tn,Gn)+Jn(Gn-Tn)/2-rn.left,y:Cn(Cr,fr)+Jn(fr-Cr)/2-rn.top}}function At(Ji){var rn=u.getRootOffset();return{x:Ji.pageX-rn.left,y:Ji.pageY-rn.top}}function di(Ji,rn,Tn){return Ji.offset[Tn]-rn.offset[Tn]}function Di(Ji){!1!==Ji.cancelable&&(Ji.preventDefault(),Ji.stopPropagation()),l._stopCurrentHandling()}var Ki={dragStartHandler:function(Ji){var Or,rn=Ki.options,Tn="touch"===Ji.pointerType,Gn=rn.argumentAxis.pan||rn.valueAxis.pan,Cr=rn.argumentAxis.zoom||rn.valueAxis.zoom,fr=(0,Wn.O9)(rn.panKey)&&Ji[(0,Zr.NU)(rn.panKey)+"Key"],Fr=rn.dragToZoom;Ji._cancelPreventDefault=!0,Tn?rn.allowTouchGestures&&Gn&&(Or=!Ki.panningVisualRangeEnabled()||Ki.skipEvent?null:"pan"):Fr&&Gn&&fr||!Fr&&Gn?Or="pan":Fr&&Cr&&(Or="zoom");var Hr=Re(At(Ji),Or);if(Hr.cancel)return Ki.skipEvent=!1,void(!1!==Ji.cancelable&&(Ji.cancel=!0));Ki.actionData=Hr,"zoom"===Or?(Hr.startCoords=He(Hr.curAxisRect,Ji),Hr.rect=u.rect(0,0,0,0).attr(rn.dragBoxStyle).append(u.root)):U(Ki,"pan",Ji)},dragHandler:function(Ji){var rn=l.option("rotated"),Tn=Ki.options,Gn=Ki.actionData,Cr="touch"===Ji.pointerType;if(Ji._cancelPreventDefault=!0,Gn&&(!Cr||Ki.panningVisualRangeEnabled()))if("zoom"===Gn.action){Di(Ji);var fr=Gn.curAxisRect,Fr=Gn.startCoords,Or=He(fr,Ji),gr=Tn.argumentAxis.zoom,Hr=Tn.valueAxis.zoom,Ra={x:Cn(Fr.x,Or.x),y:Cn(Fr.y,Or.y),width:Jn(Fr.x-Or.x),height:Jn(Fr.y-Or.y)};(!gr||!Hr)&&(!gr&&!rn||!Hr&&rn?(Ra.x=fr.x,Ra.width=fr.width):(Ra.y=fr.y,Ra.height=fr.height)),Gn.rect.attr(Ra)}else if("pan"===Gn.action){ae(Ki,"pan",Ji,di,Zo=>Zo.offset);var go=Math.abs(Ji.offset.y-Gn.offset.y),Ma=Math.abs(Ji.offset.x-Gn.offset.x);if(Cr&&(go>5&&go>Math.abs(Gn.offset.x)||Ma>5&&Ma>Math.abs(Gn.offset.y)))return;Di(Ji)}},dragEndHandler:function(Ji){var rn=l.option("rotated"),Tn=Ki.options,Gn=Ki.actionData,Cr="touch"===Ji.pointerType,fr=js=>{var{translator:ns,startCoord:Ps,curCoord:Is}=js;return()=>[ns.from(Ps),ns.from(Is)]},Fr=(js,ns,Ps)=>({curCoord:js[Ps],startCoord:ns[Ps]}),Or=(js,ns)=>js.zoom&&Jn(ns.curCoord-ns.startCoord)>5,gr=Gn&&"pan"===Gn.action&&!Gn.fallback&&0===Gn.offset.x&&0===Gn.offset.y;if(Gn&&(!Cr||Ki.panningVisualRangeEnabled())&&!gr){if(!Cr&&Di(Ji),"zoom"===Gn.action){var Hr=He(Gn.curAxisRect,Ji),Ra=Fr(Hr,Gn.startCoords,rn?"y":"x"),go=Fr(Hr,Gn.startCoords,rn?"x":"y"),Ma=Or(Tn.argumentAxis,Ra)&&Xa(Ji,l._argumentAxes,fr,!0,Ra,l.getArgumentAxis());(Or(Tn.valueAxis,go)&&Xa(Ji,Gn.valueAxes,fr,!0,go)||Ma)&&l._requestChange(["VISUAL_RANGE"]),Gn.rect.dispose()}else"pan"===Gn.action&&Me(Ki,"pan",Ji,di);Ki.actionData=null}},pinchStartHandler:function(Ji){var rn=Re(lt(Ji),"zoom");rn.cancel?Oa(Ji):(Ki.actionData=rn,U(Ki,"zoom",Ji))},pinchHandler:function(Ji){Ki.actionData&&(ae(Ki,"zoom",Ji,(rn,Tn,Gn,Cr)=>lt(rn)[Gn]-Tn.center[Gn]+(Tn.center[Gn]-Tn.center[Gn]*Cr),lt),Di(Ji))},pinchEndHandler:function(Ji){Ki.actionData&&(Me(Ki,"zoom",Ji,(rn,Tn,Gn,Cr)=>Tn.center[Gn]-Tn.startCenter[Gn]+(Tn.startCenter[Gn]-Tn.startCenter[Gn]*Cr)),Ki.actionData=null)},mouseWheelHandler:function(Ji){var Fr,rn=Ki.options,Tn=l.option("rotated"),Gn=Hr=>{var{translator:Ra,coord:go,scale:Ma,axis:Zo}=Hr;return()=>{var js=Ra.zoom(-(go-go*Ma),Ma,Zo.getZoomBounds());return{startValue:js.min,endValue:js.max}}},Cr=At(Ji),fr=!1;if(rn.valueAxis.zoom){if(0===(Fr=l._valueAxes.filter(Hr=>Sr(lr(Hr.getCanvas()),Cr))).length){var Or=l._valueAxes.reduce((Hr,Ra)=>(!Hr&&Ra.coordsIn(Cr.x,Cr.y)&&(Hr=Ra.getCanvas()),Hr),null);Or&&(Fr=l._valueAxes.filter(Hr=>Sr(lr(Hr.getCanvas()),{x:Or.left,y:Or.top})))}fr|=Xa(Ji,Fr,Gn,Ji.delta>0,{coord:Tn?Cr.x:Cr.y})}rn.argumentAxis.zoom&&(fr|=l._argumentAxes.some(Hr=>!(!Sr(lr(Hr.getCanvas()),Cr)&&!Hr.coordsIn(Cr.x,Cr.y)))&&Xa(Ji,l._argumentAxes,Gn,Ji.delta>0,{coord:Tn?Cr.y:Cr.x},l.getArgumentAxis())),fr&&(l._requestChange(["VISUAL_RANGE"]),(Fr&&za(Fr)||!Fr&&Ki.panningVisualRangeEnabled())&&Di(Ji))},cleanup:function(){u.root.off(mn),Ki.actionData&&Ki.actionData.rect&&Ki.actionData.rect.dispose(),Ki.actionData=null,u.root.css({"touch-action":""})},setup:function(Ji){Ki.cleanup(),Ji.argumentAxis.pan||u.root.on(wr,Oa),(!Ji.argumentAxis.none||!Ji.valueAxis.none)&&(Ki.options=Ji,(Ji.argumentAxis.zoom||Ji.valueAxis.zoom)&&Ji.allowMouseWheel&&u.root.on(sg.U+mn,Ki.mouseWheelHandler),(Ji.argumentAxis.zoom||Ji.valueAxis.zoom)&&Ji.allowTouchGestures&&u.root.on(Rr,{passive:!1},Ki.pinchStartHandler).on(br,{passive:!1},Ki.pinchHandler).on(jr,Ki.pinchEndHandler),u.root.on(hn,{immediate:!0,passive:!1},Ki.dragStartHandler).on(Hn,{immediate:!0,passive:!1},Ki.dragHandler).on(Vn,Ki.dragEndHandler),u.root.on(wr,function(rn){Ki.actionData={valueAxes:[],offset:{x:0,y:0},center:{x:0,y:0}},Di(rn),U(Ki,"pan",rn)}).on(Kr,function(rn){Di(rn),ae(Ki,"pan",rn,di,Tn=>Tn.offset)}).on(Xr,function(rn){Di(rn),Me(Ki,"pan",rn,di),Ki.actionData=null}))},panningVisualRangeEnabled:function(){return za(l._valueAxes)||za(l._argumentAxes)}};this._zoomAndPan=Ki},members:{_setupZoomAndPan:function(){this._zoomAndPan.setup(this._themeManager.getOptions("zoomAndPan"))}},dispose:function(){this._zoomAndPan.cleanup()},customize:function(l){l.addChange({code:"ZOOM_AND_PAN",handler:function(){this._setupZoomAndPan()},isThemeDependent:!0,isOptionChange:!0,option:"zoomAndPan"})}};var Jr=D(20537),Pn=D(37512),cs=D(69490),So=D(45),Ea=So.A.format,{abs:ka,floor:Ka}=Math,qa="exponential",Po=["fixedPoint","thousands","millions","billions","trillions",qa],Jo=["millisecond","second","minute","hour","day","month","year"],Ds={week:"day",quarter:"month",shorttime:"hour",longtime:"second"};function gl(l,u,S,U){var ae=Jo.indexOf(U=Ds[U]||U);if(S){var Me=qn.A.getDatesDifferences(u,S);return Me[U]&&function Us(l,u){for(var S=u;S<Jo.length-1;S++){var U=Jo[S];if(S===u){bs(l,u+(l.millisecond?2:1));break}if(l[U]&&l.count>1){ls(l,S);break}}}(Me,ae),Me}var Re=qn.A.getDatesDifferences(l,u),He=function Cl(l,u){for(var S=!1,U=Jo.length-1;U>=u;U--)if(l[Jo[U]]&&U-u>1){for(var Me=0;Me<=u;Me++)ls(l,Me),S=!0;break}return S}(Re,ae);return!He&&1===Re.count&&bs(Re,ae),Re}function ls(l,u){var S=Jo[u];l[S]&&(l[S]=!1,l.count--)}function bs(l,u){var S=Jo[u];!1===l[S]&&(l[S]=!0,l.count++)}function wc(l,u){var S,U,ae,Me=0;for(ae=ka(u-l[0]),S=1;S<l.length;S++)(U=ka(u-l[S]))<ae&&(ae=U,Me=S);return Me}function il(l){return l.toString().split(".")}function xu(l){var u;return(0,Wn.Tn)(l)&&(u=l,l=null),{type:l,formatter:u}}function bh(l,u){var S=ka(l).toString();return(0,Wn.O4)(l)?Math.max(ka((0,oa.Ke)(l)-(0,oa.Ke)(u)),ka((0,oa.XV)(l)-(0,oa.XV)(u))):ka(function ro(l){return l.length-parseInt(l).toString().length}(S.split(".")[1])-(0,oa.Ke)(u)+1)}function ll(l,u){var S=u.tickInterval,U=ka(l).toString(),ae=u.labelOptions.format,Me=u.ticks,Re="logarithmic"===u.type;if(1===Me.length&&0===Me.indexOf(l)&&!(0,Wn.O9)(S)&&(S=ka(l)>=1?1:(0,oa.Ai)(1-ka(l),l)),Object.is(l,-0)&&(l=0),!(0,Wn.O9)(ae)&&"discrete"!==u.type&&l&&(10===u.logarithmBase||!Re))if("datetime"!==u.dataType&&(0,Wn.O9)(S)){if(Me.length&&-1===Me.indexOf(l)){var He=wc(Me,l);S=(0,oa.Ai)(ka(l-Me[He]),l)}if(Re)return function Rl(l){var S,u=(0,Zr.Y$)(ka(l));if(u>0)S=Po[Ka(u/3)]||qa;else{if(!(u<-4))return Ea((0,oa.Ai)(l));S=qa}return Ea(l,{type:S,precision:0})}(l);var lt=il(S);lt<2&&(lt=il(l)),ae=lt.length>1&&!(0,Wn.O4)(S)?{type:Po[0],precision:lt[1].length}:(0,Wn.O4)(S)&&(-1!==U.indexOf(".")||(0,Wn.O4)(l))?{type:qa,precision:bh(l,S)}:function nl(l,u){var U,S=Ka((0,Zr.Y$)(u)),ae=0,Me=U=Ka((0,Zr.Y$)(ka(l)));U-S>=2&&(Me=S);var Re=Ka(Me/3),He=3*Re;Re<0&&(Re=0);var lt=Po[Re]||Po[Po.length-1];if(He>0){var At=il(u/Math.pow(10,He));At[1]&&(ae=At[1].length)}return{precision:ae,type:lt}}(l,S)}else"datetime"===u.dataType&&(ae=function fd(l,u){var Re,He,{showTransition:S,ticks:U,tickInterval:ae}=u,Me=qn.A.getDateFormatByTickInterval(ae);if(S&&U.length){var lt=U.map(Number).indexOf(+l);if(1===U.length&&0===lt)Me=So.A.getDateFormatByTicks(U);else{-1===lt?Re=wc(U,l):(Re=0===lt?U.length-1:lt-1,He=0===lt?1:-1);var At=gl(U[Re],l,U[He],Me);Me=So.A.getDateFormatByDifferences(At,Me)}}return xu(Me)}(l,u));return Ea(l,ae)}function os(l){var{startValue:u,endValue:S,tickInterval:U,argumentFormat:ae,axisOptions:{dataType:Me,type:Re,logarithmBase:He}}=l;if("discrete"===Re)return"";if("datetime"===Me)return function nh(l,u,S){var U=gl(l,u),ae=qn.A.getDateFormatByTickInterval(S),Re=xu(So.A.getDateFormatByDifferences(U,ae)),He=[];if(S in U){var lt=function rd(l,u){var S=!1;for(var U in l)S?l[U]=!1:U===u?S=!0:l[U]=!0;return xu(So.A.getDateFormatByDifferences(l))}(gl(l,u),S),At=Ea(l,lt);At&&He.push(At)}else{var di=function Sp(l){var u=!1;for(var S in l)!0===l[S]||"hour"===S||u?(l[S]=!1,u=!0):!1===l[S]&&(l[S]=!0);return xu(So.A.getDateFormatByDifferences(l))}(gl(l,u)),Di=Ea(l,di);Di&&He.push(Di),He.push("".concat(Ea(l,Re)," - ").concat(Ea(u,Re)))}return He.join(", ")}(u,S,function Lu(l){if((0,Wn.Gv)(l)){var u=Object.keys(l);if(1===u.reduce((ae,Me)=>l[Me]+ae,0)){var U=u.filter(ae=>1===l[ae])[0];return U.slice(0,U.length-1)}}return l}(U));var lt={ticks:[],type:Re,dataType:Me,tickInterval:U,logarithmBase:He,labelOptions:{format:ae}};return"".concat(ll(u,lt)," - ").concat(ll(S,lt))}const co_validateOverlappingMode=function(l){return"ignore"===l||"none"===l?l:"hide"},co_getTicksCountInRange=function(l,u,S){var U=1;if(l.length>1)for(;U<l.length&&!(Math.abs(l[U].coords[u]-l[0].coords[u])>=S);U++);return U},co_areLabelsOverlap=function(l,u,S,U){var Re=l.x,He=u.x,lt=l.width,At=u.width;return"left"===U?(Re+=lt/2,He+=At/2):"right"===U&&(Re-=lt/2,He-=At/2),(l.x>u.x?He+At+S>Re:Re+lt+S>He)&&(l.y>u.y?u.y+u.height>l.y:l.y+l.height>u.y)};var ef=D(43037),Sc=qn.A.convertDateUnitToMilliseconds,Id=qn.A.dateToMilliseconds,ad=Math,Do=ad.abs,wd=ad.floor,kd=ad.ceil,Pc=ad.pow,Sd=[1,2,2.5,5],Dd=[1,2,3,5],ec={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2],week:[1,2],month:[1,2,3,6]},hp=(0,vr.X)({},ec,{day:[1]}),Cu={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2,3,7,14],month:[1,2,3,6]},Ed=[2,4,5,8,10],md=3,Gs=l=>l,Rd=(l,u,S)=>U=>(0,Zr.wS)(U,l,u,S),$l=(l,u,S)=>(U,ae)=>(0,oa.Ai)(l(u((0,oa.Ai)(S(U)/ae))*ae));function Xh(l,u,S,U){return(0,Wn.O9)(U)?U?l:u:function(ae,Me,Re,He){var lt=l(ae,Me);return ae-lt==0||!(0,Wn.O9)(Re)||S(ae,lt,Me,Re)||He?lt:u(ae,Me)}}function yh(l,u,S,U){var ae=S-Do(u-l),Me=ad.max(kd(U.businessDelta/S),2),Re=U.screenDelta/(Me*S),He=ad.round(Re*ae),lt=(0,Zr.wS)(Re*S/U.axisDivisionFactor,2)+1,di=ad.round(md*((U.isSpacedMargin?2:1)*lt));return U.businessDelta>U.interval&&He>=di}function Jh(l){return function(u,S,U,ae){return yh((0,Zr.wS)(u,l),(0,Zr.wS)(S,l),U,ae)}}function Qh(l,u,S,U){return yh(l.valueOf(),u.valueOf(),Id(S),U)}function Dp(l,u){var S=0;return u&&(S=u.reduce((U,ae)=>U+(ae.to-ae.from),0)),Do(l.max-l.min-S)}function en(l,u,S,U){var ae=u/S-(U||0);return l/(ae<1?1:ae)}function ve(l,u){return Pc(10,wd((0,Zr.wS)(l,10))+(u||0))}function ze(l,u,S,U,ae,Me,Re,He,lt,At){var di=en(l,u,ae,He),Di=1,Ki=!1===Re;return(!U||!S)&&((di>=1||!Ki&&di>0)&&(Di=dt(di,Me,Ki)),(!S||!U&&S<Di)&&(S=Di)),!U&&At&&(At=dt(At,Me,Ki))>S&&(S=At),S}function dt(l,u,S){var U=ve(l,-1),ae=1;return u=u||Sd,l>0&&(l/=U,ae=u.concat(10*u[0]).map(Me=>10*Me).reduce((Me,Re)=>.1===U&&S&&25===Re?Me:Me<l?Re:Me,0),ae=(0,oa.Ai)(ae*U,U)),ae}function ti(l,u,S,U){var ae=en(l,u,U);return S||Ed.reduce((Me,Re)=>{var He=l/Re;return He>=ae?He:Me},0)}function cr(l){return function(u,S){var U=ve(u);return!l&&U<1&&(U=1),(S=S||Dd).concat(10*S[0]).reduce((ae,Me)=>ae<u?Me*U:ae,0)}}function fs(l,u){return function(S,U){return!S&&l<=Sc(u,U)&&((S={})[u+"s"]=U),S}}function Bs(l,u){return function(S,U){var ae=u*U;return!S&&l<=Sc("year",ae)&&2.5!==ae&&(S={years:ae}),S}}function Pl(l,u,S,U,ae,Me,Re,He,lt,At){if(!U||!S){var di=Md(en(l,u,ae),Me,0,lt);(!S||!U&&Id(S)<=Id(di))&&(S=di)}return!U&&At&&(At=Md(At,Me,0,lt),Id(At)>Id(S)&&(S=At)),S}function Md(l,u,S,U){var ae;for(var Me in u=u||function fo(l){return l&&l>2?hp:ec}(U),u)if(ae=u[Me].reduce(fs(l,Me),ae))break;if(!ae)for(var Re=1;!(ae=Sd.reduce(Bs(l,Re),ae));Re*=10);return ae}function Vd(l,u,S,U){return Pl(l,u,S,!0,U,Cu)}function Zh(l,u){return S=>S&&u(Do((0,oa.Ai)(l(S[1])-l(S[0]))))||void 0}function gd(l,u,S){return qn.A.addInterval(l,u,S)}function Pd(l,u,S){return gd(l,u,S)}function r_(l,u,S){return u=u.filter(U=>!U.gapSize),function(U,ae,Me){var Re;return U=l(U,ae,Me),u.every(He=>(U>=l(He.from,ae)&&l(U,ae)<He.to&&(Re=He.to-He.from-2*(l(He.from,ae)-He.from)),!Re))||(U=S(l(U,Re),ae)),U}}function Ep(l,u,S,U){return function(ae,Me,Re,He,lt,At,di,Di,Ki){var Fr,Ji=function qh(l,u){return function(S){var U;return u.every(ae=>(S>=ae.from&&S<ae.to&&(U=ae.gapSize),!U))||(S=l(S,U)),S}}(l,He),rn=ae.min,Tn=ae.max,Gn={screenDelta:di,businessDelta:At,axisDivisionFactor:Di,isSpacedMargin:ae.isSpacedMargin,interval:Me},Cr=u(rn,Me,Gn),fr=[];for(null!=lt&<.length&&(l=r_(l,lt,u)),Cr>Tn&&(Cr=u(rn,S(At/2),Gn))>Tn&&(Cr=u(rn,Me,Gn,Re=!0)),Cr=Ji(Cr);Cr<Tn&&Cr!==Fr||Ki&&Cr<=Tn;)fr.push(Cr),Fr=Cr,Cr=Ji(l(Cr,Me));return(Re||Cr-Tn==0||!(0,Wn.O9)(Re)&&U(Tn,Cr,Me,Gn))&&fr.push(Cr),fr}}function Qf(l,u,S,U,ae){return function(Me,Re,He,lt,At,di,Di){var Ki=At/lt,Ji=He[He.length-1],rn=He[0],Tn=Di-1;if(null!=di&&di.length&&(u=r_(u,di,S)),0===(lt=l(lt,rn,rn,Ki)))return[];var Gn=U(S(Me,At,Me),lt);lt=l(lt,rn,Gn,Ki);for(var Cr=[];Gn<rn&&(!Tn||Tn>0);)Gn>=Me&&Cr.push(Gn),Tn--,Gn=u(Gn,lt);var fr=He.reduce((gr,Hr)=>{if(Tn=Di-1,null===gr.prevTick)return gr.prevTick=Hr,gr;lt=l(lt,Hr,gr.prevTick,Ki);for(var Ra=U(gr.prevTick,lt);Ra<Hr&&(!Tn||Tn>0);)Ra!==gr.prevTick&&gr.minors.push(Ra),Tn--,Ra=u(Ra,lt);return gr.prevTick=Hr,gr},{prevTick:null,minors:[]});Cr=Cr.concat(fr.minors);var Or,Fr=ae(Re,At,Me);for(lt=l(lt,Fr,Fr,Ki),Gn=U(Ji,lt);Gn<Re&&Gn!==Or;)Cr.push(Gn),Or=Gn,Gn=u(Gn,lt);return Ji-Re!=0&&Gn-Re==0&&Cr.push(Gn),Cr}}function Mp(l,u){if(u.length){var S=u.reduce((U,ae)=>{var Re,Me=[];for(Re=U[1];Re<l.length;Re++){var He=l[Re];if(He<ae.from&&Me.push(He),He>=ae.to)break}return[U[0].concat(Me),Re]},[[],0]);return S[0].concat(l.slice(S[1]))}return l}function Zf(l,u,S,U,ae,Me,Re,He,lt,At){function di(Di,Ki,Ji){return Di&&Ki/Re(Di)>=Ji+1&&(l.incidentOccurred("W2003"),Di=void 0),Di}return function(Di,Ki,Ji,rn,Tn,Gn,Cr,fr){Tn=Tn||{};var gr,Fr=u(Di,fr),Or={tickInterval:ae((gr=Tn).majors),ticks:gr.majors||[],minorTickInterval:Me(gr.minors),minorTicks:gr.minors||[]};return isNaN(Fr)||(0!==Fr||Tn.majors?(Or=function(gr,Hr,Ra,go,Ma,Zo,js,ns){if(js.majors)return gr.breaks=ns,gr;var Is,Ps=ns.filter(bd=>bd.gapSize);return Ma=l.skipCalculationLimits?Ma:di(Ma,Ra,go),Ma=S(Ra,go,Ma,Zo,l.axisDivisionFactor,l.numberMultipliers,l.allowDecimals,ns.length,Ps[0]&&Ps[0].gapSize.days,l.minTickInterval),l.skipTickGeneration||(Is=Mp(Is=He(Hr,Ma,l.endOnTick,Ps,ns,Ra,go,l.axisDivisionFactor,l.generateExtraTick),ns=At(ns,Is,Ma)),gr.breaks=ns,gr.ticks=gr.ticks.concat(Is)),gr.tickInterval=Ma,gr}(Or,Di,Fr,Ki,Ji,rn,Tn,fr||[]),!l.skipTickGeneration&&Fr>0&&(Or=function(gr,Hr,Ra,go,Ma,Zo,js){if(!l.calculateMinors||js.minors)return gr;var ns=Re(gr.tickInterval),Ps=go*ns/Ra,Is=gr.breaks;return!Ma&&Zo?Ma=Me([ns/(Zo+1),ns/(Zo+1)*2]):Zo=void 0,Ma=di(Ma,ns,Ps),Ma=U(ns,Ps,Ma,l.minorAxisDivisionFactor),gr.minorTicks=Mp(gr.minorTicks.concat(lt(Hr.min,Hr.max,gr.ticks,Ma,gr.tickInterval,Is,Zo)),Is),gr.minorTickInterval=Ma,gr}(Or,Di,Fr,Ki,Gn,Cr,Tn))):Or.ticks=[Di.min]),Or}}function tf(l,u,S,U){var[ae,Me]=u;return(!(0,Wn.O9)(ae)||Do(U(l)-U(ae))/S>.25)&&((0,Wn.O9)(Me)&&Do(U(Me)-U(ae))/S<2?ae=Me:(0,Wn.O9)(ae)||(ae=l)),ae}function pp(l,u,S){return function(U,ae,Me){var Re=l(Me),He=.5*Re;return U.reduce((lt,At)=>{var di=ae.filter(Ji=>Ji<=At.from),Di=S(tf(At.from,[].concat(di[di.length-1],ae[di.length]),Re,u),He);di=ae.filter(Ji=>Ji>=At.to);var Ki=S(tf(At.to,[].concat(di[0],ae[ae.length-di.length-1]),Re,u),-He);return u(Ki)-u(Di)<Re&&!At.gapSize?lt:lt.concat(At.gapSize?[At]:[{from:Di,to:Ki,cumulativeWidth:At.cumulativeWidth}])},[])}}var fp=(l,u,S)=>(U,ae)=>(0,oa._S)(U)*(0,oa.Ai)(l(u(U)((0,oa.Ai)(S(U)/ae))*ae));var a_=function(l){var u;return u=l.rangeIsEmpty?function Dc(l){return function(u,S,U,ae){var Me=wd(S/l.axisDivisionFactor),Re=S/(Me=Me<1?1:Me);return{ticks:Re>0?Array.apply(null,new Array(Me+1)).map((He,lt)=>Re*lt):[],tickInterval:Re}}}(l):"discrete"===l.axisType?function od(l){return function(u,S,U,ae){var Me=(0,Zr.jg)(u.categories,u.min,u.max).categories;return{ticks:Me,tickInterval:kd(Me.length*l.axisDivisionFactor/S)}}}(l):"logarithmic"===l.axisType?function vm(l){var u=l.logBase,S=((l,u,S)=>U=>(0,Zr.hq)(U,l,u,S))(u,l.allowNegatives,l.linearThreshold),U=Rd(u,l.allowNegatives,l.linearThreshold),ae=(l=>u=>0===u?0:(0,Zr.XE)(Do(u),l))(u),Me=(l=>u=>(0,Zr.uz)(u,l))(u),Re=fp(Me,At=>At<0?kd:wd,ae),He=fp(Me,At=>At<0?wd:kd,ae),lt=$l(Gs,kd,Gs);return Zf(l,function ft(l,u,S){var U=Rd(l,u,S);return function(ae,Me){var Re=0;return Me&&(Re=Me.reduce((He,lt)=>He+Do(U(lt.to/lt.from)),0)),kd(Do(U(ae.max)-U(ae.min))-Re)}}(u,l.allowNegatives,l.linearThreshold),function pn(l){return function(u,S,U,ae,Me,Re,He,lt,At,di){var Di=en(u,S,Me),Ki=0,Ji=cr(l);return(!ae||!U)&&(Di>0&&(Ki=Ji(Di,Re)),(!U||!ae&&U<Ki)&&(U=Ki)),!ae&&di&&(di=Ji(di,Re))>U&&(U=di),U}}(l.skipCalculationLimits),ti,Zh(U,Gs),Zh(Gs,Gs),Gs,Ep(function tc(l,u){return(S,U,ae)=>u(gd(l(S),U,ae))}(U,S),Xh(Re,He,Jh(u),l.endOnTick),cr(l.skipCalculationLimits),Jh(u)),Qf((At,di,Di,Ki)=>Math.max(Math.abs(di),Math.abs(Di))/Ki,gd,Re,lt,He),pp(Gs,U,(At,di)=>S(U(At)+di)))}(l):"datetime"===l.dataType?function lg(l){function u(U,ae){var Me=$l(Gs,wd,Gs),Re=(0,Wn.Kg)(ae)?qn.A.getDateIntervalByString(ae.toLowerCase()):ae,He=Id(ae);(Re.days%7==0||ae.quarters)&&(Re=Md(He));var lt=di=>qn.A.correctDateWithUnitBeginning(di,Re,null,l.firstDayOfWeek),At=di=>new Date(wd((di.getTime()-6e4*di.getTimezoneOffset())/He)*He+6e4*di.getTimezoneOffset());return U=lt(U),"years"in Re?U.setFullYear(Me(U.getFullYear(),Re.years)):"quarters"in Re?U=lt(At(U)):"months"in Re?U.setMonth(Me(U.getMonth(),Re.months)):"weeks"in Re||"days"in Re?U=lt(At(U)):"hours"in Re?U.setHours(Me(U.getHours(),Re.hours)):"minutes"in Re?U.setMinutes(Me(U.getMinutes(),Re.minutes)):"seconds"in Re?U.setSeconds(Me(U.getSeconds(),Re.seconds)):"milliseconds"in Re&&(U=At(U)),U}var S=Zh(Gs,qn.A.convertMillisecondsToDateUnits);return Zf(l,Dp,Pl,Vd,S,S,Id,Ep(Pd,Xh(u,function(U,ae){for(var Me=u(U,ae);U-Me>0;)Me=Pd(Me,ae);return Me},Qh,l.endOnTick),Md,Qh),Qf(Gs,Pd,u,Pd,Gs),pp(Id,Gs,(U,ae)=>new Date(U.getTime()+ae)))}(l):function Bg(l){var u=$l(Gs,wd,Gs),S=$l(Gs,kd,Gs),U=Zh(Gs,Gs);return Zf(l,Dp,ze,ti,U,U,Gs,Ep(gd,Xh(u,S,yh,l.endOnTick),dt,yh),Qf(Gs,gd,u,gd,Gs),pp(Gs,Gs,(ae,Me)=>ae+Me))}(l),u},Wd=D(12984);function dg(l){return{stroke:l.color,"stroke-width":l.width,"stroke-opacity":l.opacity,opacity:1}}function nf(l,u,S,U,ae,Me,Re){var He=Re||l._tickOffset,lt=l._axisLineGroup,At=l._axisElementsGroup,di=dg(S),Di=dg(U),Ki=/^\s+$/,rn=l.getOptions().label,Tn=l._textOptions;function Gn(fr){var Fr=l._textFontStyles,Or=rn.customizeColor;return Or&&Or.call&&(Fr=(0,vr.X)({},l._textFontStyles,{fill:Or.call(fr,fr)})),Fr}function Cr(fr,Fr){var Or=l.formatHint(fr.value,rn,Fr);(0,Wn.O9)(Or)&&""!==Or&&fr.getContentContainer().setTitle(Or)}return function(fr){var Fr={value:fr,updateValue(Or){this.value=fr=Or},initCoords:function(){this.coords=l._getTranslatedValue(fr,He),this.labelCoords=l._getTranslatedValue(fr)},saveCoords(){this._lastStoredCoordinates={coords:this._storedCoords,labelCoords:this._storedLabelsCoords},this._storedCoords=this.coords,this._storedLabelsCoords=this.templateContainer?this._getTemplateCoords():this.labelCoords},resetCoordinates(){this._lastStoredCoordinates&&(this._storedCoords=this._lastStoredCoordinates.coords,this._storedLabelsCoords=this._lastStoredCoordinates.labelCoords)},drawMark(Or){!S.visible||ae===fr||l.areCoordsOutsideAxis(this.coords)||(this.mark?(this.mark.append(lt),l.sharp(this.mark,l.getSharpDirectionByCoords(this.coords)),this.updateTickPosition(Or)):(this.mark=l._createPathElement([],di,l.getSharpDirectionByCoords(this.coords)).append(lt),this.updateTickPosition(Or)))},setSkippedCategory(Or){ae=Or},_updateLine(Or,gr,Hr,Ra,go){if(Or){if(null===gr.points||null===gr.r)return void Or.remove();Ra&&Hr&&null!==Hr.points?(gr.opacity=1,Or.attr(Hr),Or.animate(gr)):(gr.opacity=Ra?0:1,Or.attr(gr),Ra&&Or.animate({opacity:1},{delay:.5,partitionDuration:.5})),this.coords.angle&&l._rotateTick(Or,this.coords,go)}},updateTickPosition:function(Or,gr){this._updateLine(this.mark,{points:l._getTickMarkPoints(Fr.coords,S.length,Or)},this._storedCoords&&{points:l._getTickMarkPoints(Fr._storedCoords,S.length,Or)},gr,!1)},drawLabel:function(Or,gr){if(this.templateContainer&&l.isRendered())this.updateLabelPosition();else if(!rn.visible||Me||l.getTranslator().getBusinessRange().isEmpty()||l.areCoordsOutsideAxis(this.labelCoords))this.label&&this.removeLabel();else{var Ra=rn.template,go=l.formatLabel(fr,rn,Or);if(this.label)return this.label.attr({text:go,rotate:0}).append(At),Cr(this,Or),void this.updateLabelPosition();Ra?(this.templateContainer=u.g().append(At),this._templateDef&&this._templateDef.reject(),this._templateDef=new Wd.cY,gr.render({model:{valueText:go,value:this.value,labelFontStyle:Gn(this),labelStyle:Tn},container:this.templateContainer.element,onRendered:()=>{this.updateLabelPosition(),this._templateDef&&this._templateDef.resolve()}})):(0,Wn.O9)(go)&&""!==go&&!Ki.test(go)&&(this.label=u.text(go).css(Gn(this)).attr(Tn).append(At),this.updateLabelPosition(),Cr(this,Or));var Ma=this.getContentContainer();Ma&&Ma.data("chart-data-argument",this.value),this.templateContainer&&Cr(this,Or)}},getTemplateDeferred(){return this._templateDef},getContentContainer(){return this.templateContainer||this.label},fadeOutElements(){var Or={opacity:1},gr={opacity:0},Hr={partitionDuration:.5};this.getContentContainer()&&this._fadeOutLabel(),this.grid&&this.grid.append(l._axisGridGroup).attr(Or).animate(gr,Hr),this.mark&&this.mark.append(l._axisLineGroup).attr(Or).animate(gr,Hr)},_fadeInLabel(){var Or=l._renderer.g().attr({opacity:0}).append(l._axisElementsGroup).animate({opacity:1},{delay:.5,partitionDuration:.5});this.getContentContainer().append(Or)},_fadeOutLabel(){var Or=l._renderer.g().attr({opacity:1}).animate({opacity:0},{partitionDuration:.5}).append(l._axisElementsGroup).toBackground();this.getContentContainer().append(Or)},_getTemplateCoords(){return l._getLabelAdjustedCoord(this,(l._constantLabelOffset||0)+(Fr.labelOffset||0))},updateLabelPosition:function(Or){var gr=this.templateContainer;if(this.getContentContainer())if(Or&&this._storedLabelsCoords)if(gr){gr.attr(this._storedLabelsCoords);var Hr=this._getTemplateCoords();gr.animate(Hr)}else this.label.attr({x:this._storedLabelsCoords.x,y:this._storedLabelsCoords.y}),this.label.animate({x:this.labelCoords.x,y:this.labelCoords.y});else{if(gr){var Ra=this._getTemplateCoords();gr.attr(Ra)}else this.label.attr({x:this.labelCoords.x,y:this.labelCoords.y});Or&&this._fadeInLabel()}},updateMultilineTextAlignment(){rn.template||!this.label||this.label.attr({textsAlignment:this.labelAlignment||l.getOptions().label.alignment})},drawGrid:function(Or){U.visible&&ae!==this.value&&(this.grid?(this.grid.append(l._axisGridGroup),l.sharp(this.grid,l.getSharpDirectionByCoords(this.coords)),this.updateGridPosition()):(this.grid=Or(this,Di),this.grid&&this.grid.append(l._axisGridGroup)))},updateGridPosition:function(Or){this._updateLine(this.grid,l._getGridPoints(Fr.coords),this._storedCoords&&l._getGridPoints(this._storedCoords),Or,!0)},removeLabel(){var Or=this.getContentContainer();Or&&Or.remove(),this._templateDef&&this._templateDef.reject(),this._templateDef=this.templateContainer=this.label=null}};return Fr}}var Qo=D(87550),cu=[0,1,2,3,4,5,6];function xh(l){return(l+1)%7}function cg(l,u){for(var S=l.start,U=l.end;S!==U;){if(S===u)return!0;S=xh(S)}return!1}function Bu(l,u){for(var S=0;l!==u;)l=xh(l),S++;return S}function M(l,u,S,U,ae){var Me=function rh(l){var u=function rf(l){return cu.filter(function(u){return!l.some(function(S){return S===u})})}(l);if(u.length<7)for(;xh(u[u.length-1])===u[0];)u.unshift(u.pop());return u}(S),Re=function qf(l,u,S){var U=l.getDate(),ae=[];return S.reduce(function(Re,He){var lt=Re[1];return void 0===lt.start?(lt={start:He,end:xh(He)},Re[0].push(lt),[Re[0],lt]):lt.end===He?(lt.end=xh(He),Re):(lt={start:He,end:xh(He)},Re[0].push(lt),[Re[0],lt])},[[],{}])[0].forEach(function(Re){var He=new Date(l);for(He=qn.A.trimTime(He);He<u;){U=He.getDay();var lt=He.getDate();if(cg(Re,U)){var At=new Date(He);He.setDate(lt+Bu(U,Re.end));var di=new Date(He);ae.push({from:At,to:di})}He.setDate(He.getDate()+1)}}),ae}(l,u,Me);return Re.push.apply(Re,function Ch(l,u,S,U){var ae,Me=function(lt){return lt===ae},Re=qn.A.trimTime(l),He=qn.A.trimTime(u);return He.setDate(u.getDate()+1),S.reduce(function(lt,At){var di,Di;return At=new Date(At),ae=At.getDay(),!U.some(Me)&&At>=Re&&At<=He&&(di=qn.A.trimTime(At),(Di=new Date(di)).setDate(di.getDate()+1),lt.push({from:di,to:Di})),lt},[])}(l,u,ae||[],Me)),function mp(l){return l.map(function(u){return{from:u.from,to:u.to,gapSize:qn.A.convertMillisecondsToDateUnits(u.to-u.from)}})}(function em(l,u){var U,S=l.slice(),ae=function(Me){if(Me=qn.A.trimTime(new Date(Me)),S[U].from<=Me&&S[U].to>Me){var Re=function Hl(l,u){var S=[],U=new Date(u);return U.setDate(u.getDate()+1),u>l.from&&S.push({from:l.from,to:u}),U<l.to&&S.push({from:U,to:l.to}),S}(S[U],Me);2===Re.length?S.splice(U,1,Re[0],Re[1]):1===Re.length?S.splice(U,1,Re[0]):S.splice(U,1)}};for(U=0;U<S.length;U++)u.forEach(ae);return S}(Re,U||[]))}var Ae=qn.A.getNextDateUnit,i=qn.A.correctDateWithUnitBeginning,$e=Math,ua=$e.max,mr="top",Ll="bottom",dl="left",Ec="right",Od="center",Mf={left:-1,top:-1,right:0,bottom:0,center:-.5};function Of(l){return l.sort(function(u,S){return u.from-S.from})}function tm(l,u,S,U){var ae=U,Me=u&&qn.A.getDatesDifferences(u,l);return u&&"year"!==S&&(function Sh(l,u){var S,U;if("week"===u&&(u="day"),"quarter"===u&&(u="month"),l[u])for(U=0;U<qn.A.dateUnitIntervals.length&&(l[S=qn.A.dateUnitIntervals[U]]&&(l[S]=!1,l.count--),S!==u);U++);}(Me,S),ae=So.A.getDateFormatByDifferences(Me)),ae}function bm(l,u){return u.reduce(function(S,U){return ua(S,l(U))},0)}function Fm(l,u,S){return l.some(function(U){return U.label.verticalAlignment===u})&&S||0}function Tp(l){return $e.abs(l.x)||0}function im(l){return $e.abs(l.width-$e.abs(l.x))||0}const ym={linear:{_getStep:function(l,u){var S=this._options.label.minSpacing,ae=bm(this._isHorizontal?function(Me){return Me.width+S}:function(Me){return Me.height},l);return u&&(ae=function Lm(l,u){var S=(u=(u=$e.abs(u))%180>=90?90-u%90:u%90)*($e.PI/180);return S>=$e.atan(l.height/l.width)?l.height/$e.abs($e.sin(S)):l.width}({width:ae,height:this._getMaxLabelHeight(l,0)},u)),co_getTicksCountInRange(this._majorTicks,this._isHorizontal?"x":"y",ae)},_getMaxLabelHeight:function(l,u){return bm(function(S){return S.height},l)+u},_validateOverlappingMode:function(l,u){return this._isHorizontal&&("rotate"===u||"stagger"===u)||!this._isHorizontal?co_validateOverlappingMode(l):l},_validateDisplayMode:function(l){return this._isHorizontal?l:"standard"},getMarkerTrackers:function(){return this._markerTrackers},_getSharpParam:function(l){return this._isHorizontal^l?"h":"v"},_createAxisElement:function(){return this._renderer.path([],"line")},_updateAxisElementPosition:function(){var l=this._axisPosition,u=this._getCanvasStartEnd();this._axisElement.attr({points:this._isHorizontal?[u.start,l,u.end,l]:[l,u.start,l,u.end]})},_getTranslatedCoord:function(l,u){return this._translator.translate(l,u)},_initAxisPositions(){this.customPositionIsAvailable()&&(this._customBoundaryPosition=this.getCustomBoundaryPosition()),this._axisPosition=!this.customPositionIsAvailable()||this.customPositionIsBoundary()?this.getPredefinedPosition(this.getResolvedBoundaryPosition()):this.getCustomPosition()},_getTickMarkPoints(l,u,S){var Re,U=this._isHorizontal,ae=this._options.tickOrientation,Me=this._options.label.position;if((0,Wn.O9)(ae))Re=Mf[ae]*u;else{var He=S.shift||0;(!U&&Me===dl||U&&Me!==Ll)&&(He=-He),Re=He+this.getTickStartPositionShift(u)}return[l.x+(U?0:Re),l.y+(U?Re:0),l.x+(U?0:Re+u),l.y+(U?Re+u:0)]},getTickStartPositionShift(l){var u=this._options.width,S=this.getResolvedBoundaryPosition();return l%2==1?(u%2!=0||S!==dl&&S!==mr)&&(u%2!=1||S!==Ec&&S!==Ll||this.hasNonBoundaryPosition())?-Math.floor(l/2):Math.floor(-l/2):-l/2+(u%2==0?0:S===Ll||S===Ec?-1:1)},_getTitleCoords:function(){var l=this._isHorizontal,u=this._axisPosition,S=this._axisPosition,U=this._options.title.alignment,ae=this._getCanvasStartEnd(),Me=l||this._options.position===dl,lt=U===dl?Me?ae.start:ae.end:U===Ec?Me?ae.end:ae.start:ae.start+(ae.end-ae.start)/2;return l?u=lt:S=lt,{x:u,y:S}},_drawTitleText:function(l,u){var S=this._options,U=S.title,ae={opacity:U.opacity,align:U.alignment,class:U.cssClass};if(U.text&&l){u=u||this._getTitleCoords(),this._isHorizontal||(ae.rotate=S.position===dl?270:90);var Me=this._renderer.text(U.text,u.x,u.y).css((0,Zr.a1)(U.font)).attr(ae).append(l);return this._checkTitleOverflow(Me),Me}},_updateTitleCoords:function(){this._title&&this._title.element.attr(this._getTitleCoords())},_drawTitle:function(){var l=this._drawTitleText(this._axisTitleGroup);l&&(this._title={element:l})},_measureTitle:function(){this._title&&(this._title.bBox&&!this._title.originalSize&&(this._title.originalSize=this._title.bBox),this._title.bBox=this._title.element.getBBox())},_drawDateMarker:function(l,u,S){var Re,U=this._options.marker,ae=this._translator.getBusinessRange().invert,Me=U.width+U.textLeftIndent;if(null!==u.x){u.withoutStick||(Re=this._renderer.path([u.x,u.y,u.x,u.y+U.separatorHeight],"line").attr({"stroke-width":U.width,stroke:U.color,"stroke-opacity":U.opacity,sharp:"h"}).append(this._axisElementsGroup));var He=String(this.formatLabel(l,u.labelOptions,S));return{date:l,x:u.x,y:u.y,cropped:u.withoutStick,label:this._renderer.text(He,u.x,u.y).css((0,Zr.a1)(U.label.font)).append(this._axisElementsGroup),line:Re,getContentContainer(){return this.label},getEnd:function(){return this.x+(ae?-1:1)*(Me+this.labelBBox.width)},setTitle:function(){this.title=He},hideLabel:function(){this.label.dispose(),this.label=null,this.title=He},hide:function(){Re&&(Re.dispose(),Re=null),this.label.dispose(),this.label=null,this.hidden=!0}}}},_drawDateMarkers:function(){var Re,l=this,u=l._options,S=l._translator,U=l._getViewportRange(),ae=U.minVisible,Me=[];function He(Ki,Ji,rn){return l._drawDateMarker(Ki,{x:S.translate(Ki),y:lt,labelOptions:l._getLabelFormatOptions(Ji),withoutStick:rn},U)}if(U.isEmpty()||!u.marker.visible||"datetime"!==u.argumentType||"discrete"===u.type||l._majorTicks.length<=1)return[];var lt=l._axisPosition+u.marker.topIndent,At=qn.A.getDateUnitInterval(this._tickInterval),di=function Pm(l){var u=Ae(l);return"quarter"===u&&(u=Ae(u)),u}(At),Di=function sf(l,u,S){var ae,U=l;return l=i(l,S),u=i(u,S),(ae=qn.A.getSequenceByInterval(l,u,S)).length&&U>ae[0]&&(ae=ae.slice(1)),ae}(ae,U.maxVisible,di);return(Di.length>1||1===Di.length&&ae<Di[0])&&(Me=Di.reduce(function(Ki,Ji,rn,Tn){var Gn=He(Ji,tm(Ji,Tn[rn-1]||ae<Ji&&ae,At,di));return Gn&&Ki.push(Gn),Ki},[]),ae<Di[0]&&(Re=He(ae,tm(ae,Di[0],At,di),!0))&&Me.unshift(Re)),Me},_adjustDateMarkers:function(l){l=l||0;var He,u=this,S=this._options.marker,U=S.width+S.textLeftIndent,ae=this._translator.getBusinessRange().invert,Me=u._getCanvasStartEnd(),Re=this._dateMarkers;return Re.length?(Re[0].cropped&&(this._checkMarkersPosition(ae,Re[1],Re[0])||Re[0].hideLabel()),Re.forEach(function(lt,At,di){lt.cropped||((ae?lt.getEnd()<Me.end:lt.getEnd()>Me.end)?lt.hideLabel():u._checkMarkersPosition(ae,lt,He)?He=lt:lt.hide())}),this._dateMarkers.forEach(function(lt){if(lt.label){var At=lt.labelBBox;lt.label.attr({translateX:ae?lt.x-U-At.x-At.width:lt.x+U-At.x,translateY:lt.y+S.textTopIndent-At.y+l})}lt.line&<.line.attr({translateY:l})}),u._initializeMarkersTrackers(l),l+S.topIndent+S.separatorHeight):l},_checkMarkersPosition:function(l,u,S){return void 0===S||(l?u.x<S.getEnd():u.x>S.getEnd())},_initializeMarkersTrackers:function(l){var u=this._options.marker.separatorHeight,S=this._renderer,U=this._translator.getBusinessRange(),ae=this._getCanvasStartEnd(),Me=this._axisElementsGroup;this._markerTrackers=this._dateMarkers.filter(function(Re){return!Re.hidden}).map(function(Re,He,lt){var At=lt[He+1]||{x:ae.end,date:U.max},di=Re.x,Di=Re.y+l,Ki=S.path([di,Di,di,Di+u,At.x,Di+u,At.x,Di,di,Di],"area").attr({"stroke-width":1,stroke:"grey",fill:"grey",opacity:1e-4}).append(Me);return Ki.data("range",{startValue:Re.date,endValue:At.date}),Re.title&&Ki.setTitle(Re.title),Ki})},_getLabelFormatOptions:function(l){var u=this._markerLabelOptions;return u||(this._markerLabelOptions=u=(0,vr.X)(!0,{},this._options.marker.label)),(0,Wn.O9)(this._options.marker.label.format)||(u.format=l),u},_adjustConstantLineLabels:function(l){var u=this,S=u._options.position,U=u.getCanvas(),ae=U.left,Me=U.width-U.right,Re=U.top,He=U.height-U.bottom,lt=Re+(He-Re)/2,At=ae+(Me-ae)/2,di=0;return l.forEach(function(Di){var Hr,Ra,Ji=Di.options,rn=Ji.paddingTopBottom,Tn=Ji.paddingLeftRight,Gn=Ji.label,Cr=Gn.verticalAlignment,fr=Gn.horizontalAlignment,Fr="inside"===Gn.position,Or=Di.label,gr=Di.labelBBox;if(null!==Or&&!gr.isEmpty){if(u._isHorizontal)if(Fr)switch(Hr=fr===dl?Di.coord-Tn-gr.x-gr.width:Di.coord+Tn-gr.x,Cr){case Od:Ra=lt-gr.y-gr.height/2;break;case Ll:Ra=He-rn-gr.y-gr.height;break;default:Ra=Re+rn-gr.y}else S===Cr&&(di=ua(di,gr.height+rn)),Hr=Di.coord-gr.x-gr.width/2,Ra=Cr===Ll?He+rn-gr.y:Re-rn-gr.y-gr.height;else if(Fr)switch(Ra=Cr===Ll?Di.coord+rn-gr.y:Di.coord-rn-gr.y-gr.height,fr){case Od:Hr=At-gr.x-gr.width/2;break;case Ec:Hr=Me-Tn-gr.x-gr.width;break;default:Hr=ae+Tn-gr.x}else S===fr&&(di=ua(di,gr.width+Tn)),Ra=Di.coord-gr.y-gr.height/2,Hr=fr===Ec?Me+Tn-gr.x:ae-Tn-gr.x-gr.width;Or.attr({translateX:Hr,translateY:Ra})}}),di},_drawConstantLinesForEstimating:function(l){var u=this,S=this._renderer,U=S.g();return l.forEach(function(ae){u._drawConstantLineLabelText(ae.label.text,0,0,ae.label,U).attr({align:"center"})}),U.append(S.root)},_estimateLabelHeight:function(l,u){var S=l.height,U=u.drawingType;if(("stagger"===this._validateDisplayMode(U)||"stagger"===this._validateOverlappingMode(u.overlappingBehavior,U))&&(S=2*S+u.staggeringSpacing),"rotate"===this._validateDisplayMode(U)||"rotate"===this._validateOverlappingMode(u.overlappingBehavior,U)){var ae=(0,Zr.lD)(u.rotationAngle);S=S*ae.cos+l.width*ae.sin}return S&&(S+u.indentFromAxis||0)||0},estimateMargins:function(l){this.updateCanvas(l);var u=this._getViewportRange(),S=this._createTicksAndLabelFormat(u),U=S.ticks,ae=S.tickInterval,Me=this._options,Re=this._outsideConstantLines.filter(gr=>gr.labelOptions.visible).map(gr=>gr.options),He=this._renderer.root,lt=Me.label.visible&&!u.isEmpty()&&U.length,At=lt&&this.formatLabel(U[U.length-1],Me.label,void 0,void 0,ae,U),di=lt&&this._renderer.text(At,0,0).css(this._textFontStyles).attr(this._textOptions).append(He),Di=this._drawTitleText(He,{x:0,y:0}),Ki=this._drawConstantLinesForEstimating(Re),Ji=!Me.label.template&&di&&di.getBBox()||{x:0,y:0,width:0,height:0},rn=Di&&Di.getBBox()||{x:0,y:0,width:0,height:0},Tn=Ki.getBBox(),Gn=rn.height?rn.height+Me.title.margin:0,Cr=this._estimateLabelHeight(Ji,Me.label),fr=Tn.height?Tn.height+function ug(l){return l.reduce(function(u,S){return ua(u,S.paddingTopBottom)},0)}(Re):0,Fr=Cr+Gn,Or={left:ua(Tp(Ji),Tp(Tn)),right:ua(im(Ji),im(Tn)),top:("top"===Me.position?Fr:0)+Fm(Re,"top",fr),bottom:("top"!==Me.position?Fr:0)+Fm(Re,"bottom",fr)};return di&&di.remove(),Di&&Di.remove(),Ki&&Ki.remove(),Or},_checkAlignmentConstantLineLabels:function(l){var u=l.position,S=(l.verticalAlignment||"").toLowerCase(),U=(l.horizontalAlignment||"").toLowerCase();this._isHorizontal?"outside"===u?(S=S===Ll?Ll:mr,U=Od):(S=S===Od?Od:S===Ll?Ll:mr,U=U===dl?dl:Ec):"outside"===u?(S=Od,U=U===dl?dl:Ec):(S=S===Ll?Ll:mr,U=U===Ec?Ec:U===Od?Od:dl),l.verticalAlignment=S,l.horizontalAlignment=U},_getConstantLineLabelsCoords:function(l,u){var S=l,U=l;return this._isHorizontal?U=this._orthogonalPositions["top"===u.verticalAlignment?"start":"end"]:S=this._orthogonalPositions["right"===u.horizontalAlignment?"end":"start"],{x:S,y:U}},_getAdjustedStripLabelCoords:function(l){var u=l.options,S=u.paddingTopBottom,U=u.paddingLeftRight,ae=u.label.horizontalAlignment,Me=u.label.verticalAlignment,Re=l.labelBBox,He=Re.height,lt=Re.width,At=l.labelCoords,di=At.y-Re.y,Di=At.x-Re.x;return Me===mr?di+=S:Me===Od?di-=He/2:Me===Ll&&(di-=S+He),ae===dl?Di+=U:ae===Od?Di-=lt/2:ae===Ec&&(Di-=U+lt),{translateX:Di,translateY:di}},_adjustTitle:function(l){if(l=l||0,this._title){var u=this._options,S=u.position,U=u.title.margin,ae=this._title,Me=ae.bBox,Re=Me.x,He=Me.y,lt=Me.width,di=this._axisPosition,Di=di-U-l,Ki=di+U+l,Ji={};this._isHorizontal?Ji.translateY=S===mr?Di-(He+Me.height):Ki-He:Ji.translateX=S===dl?Di-(Re+lt):Ki-Re,ae.element.attr(Ji)}},_checkTitleOverflow:function(l){if(this._title||l){var u=this._getScreenDelta(),S=l?{bBox:l.getBBox(),element:l}:this._title,U=this._options.title,ae=S.bBox;(this._isHorizontal?ae.width:ae.height)>u?(S.element.setMaxSize(u,void 0,{wordWrap:U.wordWrap||"none",textOverflow:U.textOverflow||"ellipsis"}),this._wrapped=U.wordWrap&&"none"!==U.wordWrap):!this._wrapped&&S.originalSize&&u>(this._isHorizontal?S.originalSize.width:S.originalSize.height)&&S.element.restoreText()}},coordsIn:function(l,u){var S=this.getCanvas(),U=this._options.isHorizontal,ae=this._options.position,Me=U?u:l;return!(U&&(l<S.left||l>S.width-S.right)||!U&&(u<S.top||u>S.height-S.bottom))&&(U&&"top"===ae||!U&&"left"===ae?Me<S[ae]:Me>S[U?"height":"width"]-S[ae])},_boundaryTicksVisibility:{min:!0,max:!0},adjust(){var l=this._seriesData,u=this._series.filter(S=>S.isVisible()).reduce((S,U)=>{var ae=U.getViewport();return S.min=(0,Wn.O9)(ae.min)?S.min<ae.min?S.min:ae.min:S.min,S.max=(0,Wn.O9)(ae.max)?S.max>ae.max?S.max:ae.max:S.max,U.showZero&&(S=new St.Q(S)).correctValueZeroLevel(),S},{});(0,Wn.O9)(u.min)&&(0,Wn.O9)(u.max)&&(l.minVisible=u.min,l.maxVisible=u.max),l.userBreaks=this._getScaleBreaks(this._options,{minVisible:l.minVisible,maxVisible:l.maxVisible},this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},hasWrap(){return this._wrapped},getAxisPosition(){return this._axisPosition},_getStick:function(){return!this._options.valueMarginsEnabled},_getStripLabelCoords:function(l,u,S){var He,lt,U=this._orthogonalPositions,Me=S.horizontalAlignment,Re=S.verticalAlignment;return this._isHorizontal?(Me===Od?He=l+(u-l)/2:Me===dl?He=l:Me===Ec&&(He=u),lt=U[function Rm(l){var u="start";return"center"===l&&(u="center"),"bottom"===l&&(u="end"),u}(Re)]):(He=U[function jc(l){var u="start";return"center"===l&&(u="center"),"right"===l&&(u="end"),u}(Me)],Re===mr?lt=l:Re===Od?lt=u+(l-u)/2:Re===Ll&&(lt=u)),{x:He,y:lt}},_getTranslatedValue:function(l,u){var S;"semidiscrete"===this._options.type&&(S=this._options.tickInterval);var U=this._translator.translate(l,u,!1,S),ae=this._axisPosition,Me=this._isHorizontal;return{x:Me?U:ae,y:Me?ae:U}},areCoordsOutsideAxis:function(l){var u=this._isHorizontal?l.x:l.y,S=this.getVisibleArea();return u<S[0]||u>S[1]},_getSkippedCategory:function(l){var u;return"discrete"===this._options.type&&this._tickOffset&&0!==l.length&&(u=l[l.length-1]),u},_filterBreaks:function(l,u,S){var U=u.minVisible,ae=u.maxVisible,Me=S?S.width:0;return l.reduce(function(Re,He){var Di,lt=He.from,At=He.to,di=Re[Re.length-1];if(!(0,Wn.O9)(lt)||!(0,Wn.O9)(At))return Re;if(lt>At&&(At=[lt,lt=At][0]),Re.length&<<di.to)At>di.to&&(di.to=At>ae?ae:At,di.gapSize&&(di.gapSize=void 0,di.cumulativeWidth+=Me));else if((lt>=U&<<ae||At<=ae&&At>U)&&(At=At<=ae?At:ae)-(lt=lt>=U?lt:U)<ae-U){var Ki,Ji;Di={from:lt,to:At,cumulativeWidth:(null!==(Ki=di?.cumulativeWidth)&&void 0!==Ki?Ki:0)+Me},He.gapSize&&(Di.gapSize=qn.A.convertMillisecondsToDateUnits(At-lt),Di.cumulativeWidth=null!==(Ji=di?.cumulativeWidth)&&void 0!==Ji?Ji:0),Re.push(Di)}return Re},[])},_getScaleBreaks:function(l,u,S,U){var ae=this,Me=(l.breaks||[]).map(function(Re){return{from:ae.parser(Re.startValue),to:ae.parser(Re.endValue)}});return"discrete"!==l.type&&"datetime"===l.dataType&&l.workdaysOnly&&(Me=Me.concat(M(u.minVisible,u.maxVisible,l.workWeek,l.singleWorkdays,l.holidays))),!U&&"discrete"!==l.type&&"datetime"!==l.dataType&&l.autoBreaksEnabled&&0!==l.maxAutoBreakCount&&(Me=Me.concat(function lf(l,u,S){for(var{logarithmBase:U,type:ae,maxAutoBreakCount:Me}=l,{minVisible:Re,maxVisible:He}=S,lt=[],At="logarithmic"===ae?(Fr,Or)=>(0,Zr.XE)(Or/Fr,U):(Fr,Or)=>Or-Fr,di=At(Re,He),Di=u.reduce((Fr,Or)=>{var gr=Or.getPointsInViewPort();return Fr[0]=Fr[0].concat(gr[0]),Fr[1]=Fr[1].concat(gr[1]),Fr},[[],[]]),rn=.3*di,Tn=function ep(l,u,S){var U,ae,He,lt,At,Me=null,Re=[];for(U=1,ae=l.length;U<ae;U++)At=S(He=l[U],lt=l[U-1]),u.indexOf(He)>=0?(!Me||At>Me.length)&&(Me={start:He,end:lt,length:At}):(Re.push(Me&&At<Me.length?Me:{start:He,end:lt,length:At}),Me=null);return Me&&Re.push(Me),Re}(Di[0].concat(Di[1]).sort((Fr,Or)=>Or-Fr),Di[1].filter(Fr=>Di[0].indexOf(Fr)<0),At).sort((Fr,Or)=>Or.length-Fr.length),Gn=$e.min.apply(null,Tn.map(Fr=>Fr.length))/1e3,Cr=(0,Wn.O9)(Me)?$e.min(Me,Tn.length):Tn.length,fr=0;fr<Cr&&Tn[fr].length>=rn&&!(di<=Tn[fr].length);fr++)((di-=Tn[fr].length)>Gn||di<-Gn)&&(lt.push({from:Tn[fr].start,to:Tn[fr].end}),rn=.3*di);return Of(lt),lt}(l,S,u))),Of(Me)},_drawBreak:function(l,u,S,U,ae,Me){var Re=l-(this._translator.isInverted()?0:U+1),He={"stroke-width":1,stroke:ae.borderColor,sharp:ae.isWaved?void 0:ae.isHorizontal?"h":"v"},lt={stroke:ae.color,"stroke-width":U},di=function mt(l,u,S,U,ae,Me,Re){var He=Re?"bezier":"line",lt=l.g().append(u);return function(At,di){l.path(S(function ki(l,u,S,U,ae){if(!ae)return[l,u+U,S,u+U];var Me,Re=(u+=U)+0,He=u+2,lt=u+4,At=[[l,He]];for(Me=l;Me<S+24;Me+=24)At.push([Me+6,Re,Me+6,Re,Me+12,He,Me+18,lt,Me+18,lt,Me+24,He]);return[].concat.apply([],At)}(U,ae,Me,At,Re)),He).attr(di).append(lt)}}(this._renderer,Me,this._isHorizontal?Mn:function(Di){return Di},u,Re,S,ae.isWaved);di(U/2,lt),di(0,He),di(U,He)},_createBreakClipRect:function(l,u){var ae,S=this._canvas,U=u-l;return ae=this._isHorizontal?this._renderer.clipRect(S.left,l,S.width,U):this._renderer.clipRect(l,S.top,U,S.height),this._breaksElements=this._breaksElements||[],this._breaksElements.push(ae),ae.id},_createBreaksGroup:function(l,u){var S=this._renderer.g().attr({class:this._axisCssPrefix+"breaks","clip-path":this._createBreakClipRect(l,u)}).append(this._scaleBreaksGroup);return this._breaksElements=this._breaksElements||[],this._breaksElements.push(S),S},_disposeBreaksGroup:function(){(this._breaksElements||[]).forEach(function(l){l.dispose()}),this._breaksElements=null},drawScaleBreaks:function(l){var Me,Re,lt,At,di,u=this,S=u._options,U=S.breakStyle,ae=S.position,He=u._translator.getBusinessRange().breaks||[];if(u._disposeBreaksGroup(),He&&He.length){var Di={color:u._options.containerColor,borderColor:U.color,isHorizontal:u._isHorizontal,isWaved:"straight"!==U.line.toLowerCase()};l?(Me=l.start,Re=l.end):(Me=u._orthogonalPositions.start-(!S.visible||u._axisShift||ae!==dl&&ae!==mr?0:3),Re=u._orthogonalPositions.end+(!S.visible||ae!==Ec&&ae!==Ll?0:3));var Ki=u._createBreaksGroup(Me,Re);u._axisShift&&S.visible&&(lt=u._createBreaksGroup(At=u._axisPosition-u._axisShift-3,di=At+6)),He.forEach(function(Ji){if(!Ji.gapSize){var rn=u._getTranslatedCoord(Ji.to);u._drawBreak(rn,Me,Re,U.width,Di,Ki),u._axisShift&&S.visible&&u._drawBreak(rn,At,di,U.width,Di,lt)}})}},_getSpiderCategoryOption:Ia.lQ,shift:function(l){var u=this._options,S=u.isHorizontal,U=this.getMultipleAxesSpacing(),ae=this._axisConstantLineGroups;function Me(Re,He){var lt={translateX:0,translateY:0},At=l[Re]?l[Re]+U:0;return lt[S?"translateY":"translateX"]=(Re===dl||Re===mr?-1:1)*At,(He[Re]||He).attr(lt),At}this._axisShift=Me(u.position,this._axisGroup),Me(u.position,this._axisElementsGroup),(S?[mr,Ll]:[dl,Ec]).forEach(Re=>{Me(Re,ae.above),Me(Re,ae.under)})},getCustomPosition(l){var He,u=this.getOrthogonalAxis(),S=l??this.getResolvedPositionOption(),U=this.getOptions().offset,ae=u.getTranslator(),Me=u.getOptions().type,Re=u.validateUnit(S);return"discrete"===Me&&(!ae._categories||ae._categories.indexOf(Re)<0)&&(Re=void 0),He=this.positionIsBoundary(S)?this.getPredefinedPosition(S):(0,Wn.O9)(Re)?ae.to(Re,-1):this.getPredefinedPosition(this.getOptions().position),isFinite(He)&&isFinite(U)&&(He+=U),He},getCustomBoundaryPosition(l){var{customPosition:u,offset:S}=this.getOptions(),U=l??this.getResolvedPositionOption(),ae=this.getOrthogonalAxis(),Me=ae.getTranslator(),Re=Me.getCanvasVisibleArea();if((0,Wn.O9)(ae._orthogonalPositions)&&0!==Me.canvasLength){var He=this.getCustomPosition(U);if(!(0,Wn.O9)(He))return this.getResolvedBoundaryPosition();if((0,Wn.O9)(u)){if(He<=Re.min)return this._isHorizontal?mr:dl;if(He>=Re.max)return this._isHorizontal?Ll:Ec}else if((0,Wn.O9)(S)){if(He<=this._orthogonalPositions.start)return this._isHorizontal?mr:dl;if(He>=this._orthogonalPositions.end)return this._isHorizontal?Ll:Ec}return He}},getResolvedPositionOption(){var l,u=this.getOptions();return null!==(l=u.customPosition)&&void 0!==l?l:u.position},customPositionIsAvailable(){var l=this.getOptions();return(0,Wn.O9)(this.getOrthogonalAxis())&&((0,Wn.O9)(l.customPosition)||isFinite(l.offset))},hasNonBoundaryPosition(){return this.customPositionIsAvailable()&&!this.customPositionIsBoundary()},getResolvedBoundaryPosition(){return this.customPositionIsBoundary()?this._customBoundaryPosition:this.getOptions().position},customPositionEqualsToPredefined(){return this.customPositionIsBoundary()&&this._customBoundaryPosition===this.getOptions().position},customPositionIsBoundary(){return this.positionIsBoundary(this._customBoundaryPosition)},positionIsBoundary:l=>[mr,dl,Ll,Ec].indexOf(l)>=0,getPredefinedPosition(l){var u;return null===(u=this._orthogonalPositions)||void 0===u?void 0:u[l===mr||l===dl?"start":"end"]},resolveOverlappingForCustomPositioning(l){var u=this;if(u.hasNonBoundaryPosition()||u.customPositionIsBoundary()||l.some(U=>U.hasNonBoundaryPosition())){var S={axes:[],ticks:[]};l.filter(U=>U.pane===u.pane).forEach(U=>{for(var ae=0;ae<u._majorTicks.length;ae++){var Me=u._majorTicks[ae],Re=Me.label;if(Re){S.axes.indexOf(U)<0&&u._detectElementsOverlapping(Re,U._axisElement)&&(S.axes.push(U),u._shiftThroughOrthogonalAxisOverlappedTick(Re,U));for(var He=0;He<U._majorTicks.length;He++){var At=U._majorTicks[He].label;if(At&&u._detectElementsOverlapping(Re,At)){S.ticks.push(Me),u._shiftThroughAxisOverlappedTick(Me),ae=u._majorTicks.length;break}}}Me.mark&&S.ticks.indexOf(Me)<0&&(u._isHorizontal&&Me.mark.attr("translateY")?Me.mark.attr({translateY:0}):!u._isHorizontal&&Me.mark.attr("translateX")&&Me.mark.attr({translateX:0}))}})}},_shiftThroughOrthogonalAxisOverlappedTick(l,u){var S=l.getBBox(),U=u.getAxisPosition(),ae=u.getOptions().label,Me=ae.position,Re=ae.indentFromAxis/2,He=this._isHorizontal?"translateX":"translateY",lt=this._isHorizontal?dl:mr,At=l.attr(He),di=(this._isHorizontal?S.x:S.y)+At,Ki=U-di,Ji=di+(this._isHorizontal?S.width:S.height)-U,rn={};rn[He]=At,Ki>0&&Ji>0&&(Ji-Ki>1?rn[He]+=Ki+Re:Ki-Ji>1?rn[He]-=Ji+Re:rn[He]+=Me===lt?Ki+Re:-(Ji+Re),l.attr(rn))},_shiftThroughAxisOverlappedTick(l){var u,S=l.label;if(S){var U=S.getBBox(),ae=null===(u=l.mark)||void 0===u?void 0:u.getBBox(),Me=this.getAxisPosition(),Re=this.getOptions().label,He=Re.indentFromAxis,lt=Re.position,At=this._isHorizontal?mr:dl,di=this._isHorizontal?"translateY":"translateX",Di=S.attr(di),Ki=(this._isHorizontal?U.y:U.x)+Di,rn={};rn[di]=Di+(lt===At?Me-Ki+He:-(Ki-Me+(this._isHorizontal?U.height:U.width)+He)),S.attr(rn),l.mark&&(rn[di]=(lt===At?1:-1)*((this._isHorizontal?ae.height:ae.width)-1),l.mark.attr(rn))}},_detectElementsOverlapping(l,u){if(!l||!u)return!1;var S=l.getBBox(),U=S.x+l.attr("translateX"),ae=S.y+l.attr("translateY"),Me=u.getBBox(),Re=Me.x+u.attr("translateX"),He=Me.y+u.attr("translateY");return(Re>=U&&Re<=U+S.width||U>=Re&&U<=Re+Me.width)&&(He>=ae&&He<=ae+S.height||ae>=He&&ae<=He+Me.height)}}};function Mn(l){var S,u=[];for(S=0;S<l.length;S+=2)u.push(l[S+1]),u.push(l[S]);return u}var Xn=Math.max,yr=function(l,u){var S=u.left,U=u.top,ae=u.width-u.right,Me=u.height-u.bottom;return l.reduce(function(Re,He){return!He||He.isEmpty?Re:{left:Xn(Re.left,S-He.x),top:Xn(Re.top,U-He.y),right:Xn(Re.right,He.x+He.width-ae),bottom:Xn(Re.bottom,He.y+He.height-Me)}},{left:0,right:0,top:0,bottom:0})},$r=function(l){l.forEach(function(u){var S=u.getContentContainer();u.labelBBox=S?S.getBBox():{x:0,y:0,width:0,height:0}})},{PI:Ta,abs:ho,atan:Go,round:ss}=Math,Xs=Math.min,wl=Math.max,jd=ym.linear;function hc(l){var u;return(l=(0,Zr.n0)(l))>=315&&l<=360||l<45&&l>=0?u=1:l>=45&&l<135?u=2:l>=135&&l<225?u=3:l>=225&&l<315&&(u=4),u}var nc={_calculateValueMargins(l){var{minVisible:u,maxVisible:S}=this._getViewportRange();return l&&l.length>1&&(S=(u=u<l[0].value?u:l[0].value)>l[l.length-1].value?S:l[l.length-1].value),{minValue:u,maxValue:S}},applyMargins(){var l=this._calculateValueMargins(this._majorTicks),u=this._translator.getBusinessRange();u.addRange({minVisible:l.minValue,maxVisible:l.maxValue,interval:this._calculateRangeInterval(u.interval)}),this._translator.updateBusinessRange(u)},_getTranslatorOptions:function(){return{isHorizontal:!0,conversionValue:!0,addSpiderCategory:this._getSpiderCategoryOption(),stick:this._getStick()}},getCenter:function(){return this._center},getRadius:function(){return this._radius},getAngles:function(){var l=this._options;return[l.startAngle,l.endAngle]},_updateRadius(l){var u=Xs(l.width-l.left-l.right,l.height-l.top-l.bottom)/2;this._radius=u<0?0:u},_updateCenter:function(l){this._center={x:l.left+(l.width-l.right-l.left)/2,y:l.top+(l.height-l.top-l.bottom)/2}},_processCanvas:function(l){return this._updateRadius(l),this._updateCenter(l),{left:0,right:0,width:this._getScreenDelta()}},_createAxisElement:function(){return this._renderer.circle()},_updateAxisElementPosition:function(){var l=this.getCenter();this._axisElement.attr({cx:l.x,cy:l.y,r:this.getRadius()})},_boundaryTicksVisibility:{min:!0},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_validateOptions(l){var u=l.originValue,S=l.wholeRange={},U=l.period;(0,Wn.O9)(u)&&(u=this.validateUnit(u)),U>0&&"numeric"===l.argumentType&&(S.endValue=(u=u||0)+U,this._viewport=(0,Zr.Od)([u,S.endValue])),(0,Wn.O9)(u)&&(S.startValue=u)},getMargins(){var l=this._options.tick,u=wl(l.visible?l.length/2+l.shift:0,0),S=this.getRadius(),{x:U,y:ae}=this._center,Me=this._majorTicks.map(lt=>lt.label&<.label.getBBox()).filter(lt=>lt),Re=(0,vr.X)({},this._canvas,{left:U-S,top:ae-S,right:this._canvas.width-(U+S),bottom:this._canvas.height-(ae+S)}),He=yr(Me,Re);return Object.keys(He).forEach(lt=>He[lt]=He[lt]<u?u:He[lt]),He},_updateLabelsPosition(){$r(this._majorTicks),this._adjustLabelsCoord(0,0,!0),this._checkBoundedLabelsOverlapping(this._majorTicks,this._majorTicks.map(l=>l.labelBBox))},_setVisualRange:Ia.lQ,applyVisualRangeSetter:Ia.lQ,_getStick:function(){return this._options.firstPointOnStartAngle||"discrete"!==this._options.type},_getTranslatedCoord:function(l,u){return this._translator.translate(l,u)-90},_getCanvasStartEnd:function(){return{start:-90,end:270}},_getStripGraphicAttributes:function(l,u){var S=this.getCenter(),U=this.getAngles()[0],ae=this.getRadius();return{x:S.x,y:S.y,innerRadius:0,outerRadius:ae,startAngle:-u-U,endAngle:-l-U}},_createStrip:function(l){return this._renderer.arc(l.x,l.y,l.innerRadius,l.outerRadius,l.startAngle,l.endAngle)},_getStripLabelCoords:function(l,u){var S=this._getStripGraphicAttributes(l,u),ae=(0,Zr.lD)(S.startAngle+(S.endAngle-S.startAngle)/2),Me=this.getRadius()/2,Re=this.getCenter();return{x:ss(Re.x+Me*ae.cos),y:ss(Re.y-Me*ae.sin),align:"center"}},_getConstantLineGraphicAttributes:function(l){var u=this.getCenter(),S=this.getRadius();return{points:[u.x,u.y,u.x+S,u.y]}},_createConstantLine:function(l,u){return this._createPathElement(this._getConstantLineGraphicAttributes(l).points,u)},_rotateConstantLine(l,u){var{x:S,y:U}=this.getCenter();l.rotate(u+this.getAngles()[0],S,U)},_getConstantLineLabelsCoords:function(l){var u=(0,Zr.lD)(-l-this.getAngles()[0]),S=this.getRadius()/2,U=this.getCenter();return{x:ss(U.x+S*u.cos),y:ss(U.y-S*u.sin)}},_checkAlignmentConstantLineLabels:Ia.lQ,_adjustDivisionFactor:function(l){return 180*l/(this.getRadius()*Ta)},_getScreenDelta:function(){var l=this.getAngles();return ho(l[0]-l[1])},_getTickMarkPoints:function(l,u,S){var{shift:U=0}=S,ae=this.getCenter(),Me=this.getRadius()+u*{inside:-1,center:-.5,outside:0}[this._options.tickOrientation||"center"];return[ae.x+Me+U,ae.y,ae.x+Me+u+U,ae.y]},_getLabelAdjustedCoord:function(l,u,S,U){var ae=l.labelCoords,Me=ae.y,Re=ae.angle,He=(0,Zr.lD)(Re),lt=He.cos,At=He.sin,di=l.labelBBox,Di=di.width/2,Ki=di.height/2,Ji=this._options.label.indentFromAxis||0,rn=ae.x+Ji*lt,Tn=Me+(Me-di.y-Ki)+Ji*At,Gn=0,Cr=0;switch(hc(Re)){case 1:Gn=Di,Cr=Ki*At;break;case 2:Gn=Di*lt,Cr=Ki;break;case 3:Gn=-Di,Cr=Ki*At;break;case 4:Gn=Di*lt,Cr=-Ki}if(U){var fr=this._canvas,Fr=rn-ae.x+Gn,Or=Tn-ae.y+Cr;di.x+Fr<fr.originalLeft&&(Gn-=di.x+Fr-fr.originalLeft),di.x+di.width+Fr>fr.width-fr.originalRight&&(Gn-=di.x+di.width+Fr-(fr.width-fr.originalRight)),di.y+Or<fr.originalTop&&(Cr-=di.y+Or-fr.originalTop),di.y+di.height+Or>fr.height-fr.originalBottom&&(Cr-=di.y+di.height+Or-(fr.height-fr.originalBottom))}return{x:rn+Gn,y:Tn+Cr}},_getGridLineDrawer:function(){var l=this;return function(u,S){var U=l.getCenter();return l._createPathElement(l._getGridPoints().points,S).rotate(u.coords.angle,U.x,U.y)}},_getGridPoints:function(){var l=this.getRadius(),u=this.getCenter();return{points:[u.x,u.y,u.x+l,u.y]}},_getTranslatedValue:function(l,u){var S=this.getAngles()[0],U=this._translator.translate(l,-u),ae=(0,Zr.Wb)(this.getCenter(),S,U,this.getRadius());return{x:ae.x,y:ae.y,angle:this.getTranslatedAngle(U)}},_getAdjustedStripLabelCoords:function(l){var u=l.labelBBox;return{translateY:l.label.attr("y")-u.y-u.height/2}},coordsIn:function(l,u){return(0,Zr.iN)(this.getCenter(),l,u).r>this.getRadius()},_rotateTick:function(l,u){var S=this.getCenter();l.rotate(u.angle,S.x,S.y)},_validateOverlappingMode:function(l){return co_validateOverlappingMode(l)},_validateDisplayMode:function(){return"standard"},_getStep:function(l){var u=this.getRadius()+(this._options.label.indentFromAxis||0),S=l.reduce(function(Me,Re){var He=Me;return Me.width<Re.width&&(He.width=Re.width),Me.height<Re.height&&(He.height=Re.height),He},{width:0,height:0}),U=ho(2*Go(S.height/(2*u-S.width))*180/Ta),ae=ho(2*Go(S.width/(2*u-S.height))*180/Ta);return co_getTicksCountInRange(this._majorTicks,"angle",wl(U,ae))},_checkBoundedLabelsOverlapping:function(l,u,S){var U=this._options.label;if("hide"===(S=S||this._validateOverlappingMode(U.overlappingBehavior))){var ae=l.reduce((Me,Re,He)=>Re.label?He:Me,null);ae&&co_areLabelsOverlap(u[0],u[ae],U.minSpacing,"center")&&("first"===U.hideFirstOrLast?l[0].removeLabel():l[ae].removeLabel())}},shift:function(l){this._axisGroup.attr({translateX:l.right,translateY:l.bottom}),this._axisElementsGroup.attr({translateX:l.right,translateY:l.bottom})},getTranslatedAngle(l){return l+this.getAngles()[0]-90}},Hd=nc,gp=(0,vr.X)({},nc,{_createAxisElement:function(){return this._renderer.path([],"area")},_updateAxisElementPosition:function(){this._axisElement.attr({points:(0,Zr.Tj)(this.getSpiderTicks(),function(l){return{x:l.coords.x,y:l.coords.y}})})},_getStick:function(){return!0},_getSpiderCategoryOption:function(){return!0},getSpiderTicks:function(){var l=this.getFullTicks();return this._spiderTicks=l.map(nf(this,this.renderer,{},{},this._getSkippedCategory(l),!0)),this._spiderTicks.forEach(function(u){u.initCoords()}),this._spiderTicks},_getStripGraphicAttributes:function(l,u){for(var ae,Me,Re,He,S=this.getCenter(),U=this.getSpiderTicks(),lt=[],At=0,di=U.length;At<di;)(He=U[At].coords).angle>=l&&He.angle<=u&&(ae||lt.push((He.x+(ae=(U[At-1]||U[U.length-1]).coords).x)/2,(He.y+ae.y)/2),lt.push(He.x,He.y),Me={x:(He.x+(Re=(U[At+1]||U[0]).coords).x)/2,y:(He.y+Re.y)/2}),At++;return lt.push(Me.x,Me.y),lt.push(S.x,S.y),{points:lt}},_createStrip:function(l){var{points:u}=l;return this._renderer.path(u,"area")},_getTranslatedCoord:function(l,u){return this._translator.translate(l,u)-90},_setTickOffset:function(){this._tickOffset=!1}}),tp={_resetMargins(){this._reinitTranslator(this._getViewportRange())},_getStick:jd._getStick,_getSpiderCategoryOption:Ia.lQ,_getTranslatorOptions:function(){return{isHorizontal:!0,stick:this._getStick()}},getRadius:nc.getRadius,getCenter:nc.getCenter,getAngles:nc.getAngles,_updateRadius:nc._updateRadius,_updateCenter:nc._updateCenter,_processCanvas(l){return this._updateRadius(l),this._updateCenter(l),{left:0,right:0,startPadding:l.startPadding,endPadding:l.endPadding,width:this.getRadius()}},_createAxisElement:jd._createAxisElement,_updateAxisElementPosition:function(){var l=this.getCenter();this._axisElement.attr({points:[l.x,l.y,l.x+this.getRadius(),l.y]}).rotate(this.getAngles()[0]-90,l.x,l.y)},_getScreenDelta:function(){return this.getRadius()},_getTickMarkPoints:function(l,u){return[l.x-u/2,l.y,l.x+u/2,l.y]},_getLabelAdjustedCoord:function(l){var u=l.labelCoords,S=u.y,U=(0,Zr.lD)(u.angle),ae=this._options.label.indentFromAxis||0,Me=l.labelBBox;return{x:u.x-ho(ae*U.sin)+ho(Me.width/2*U.cos)-Me.width/2,y:S+(S-Me.y)-ho(Me.height/2*U.sin)+ho(ae*U.cos)}},_getGridLineDrawer:function(){var l=this;return function(u,S){var U=l._getGridPoints(u.coords);return l._renderer.circle(U.cx,U.cy,U.r).attr(S).sharp()}},_getGridPoints:function(l){var u=this.getCenter(),S=(0,Zr.Yf)(u.x,u.y,l.x,l.y);return S>this.getRadius()?{cx:null,cy:null,r:null}:{cx:u.x,cy:u.y,r:S}},_getTranslatedValue:function(l,u){var S=this.getAngles()[0],U=(0,Zr.Wb)(this.getCenter(),S,0,this._translator.translate(l,u));return{x:U.x,y:U.y,angle:S-90}},_getTranslatedCoord:function(l,u){return this._translator.translate(l,u)},_getCanvasStartEnd(){var l=this.getTranslator().getBusinessRange().invert,u=[0,this.getRadius()];return l&&u.reverse(),{start:u[0],end:u[1]}},_getStripGraphicAttributes:function(l,u){var S=this.getCenter();return{x:S.x,y:S.y,innerRadius:l,outerRadius:u}},_createStrip:function(l){return this._renderer.arc(l.x,l.y,l.innerRadius,l.outerRadius,0,360)},_getAdjustedStripLabelCoords:nc._getAdjustedStripLabelCoords,_getStripLabelCoords:function(l,u){var S=l+(u-l)/2,U=this.getCenter(),ae=ss(U.y-S);return{x:U.x,y:ae,align:"center"}},_getConstantLineGraphicAttributes:function(l){var u=this.getCenter();return{cx:u.x,cy:u.y,r:l}},_createConstantLine:function(l,u){var S=this._getConstantLineGraphicAttributes(l);return this._renderer.circle(S.cx,S.cy,S.r).attr(u).sharp()},_getConstantLineLabelsCoords:function(l){var u=this.getCenter(),S=ss(u.y-l);return{x:u.x,y:S}},_checkAlignmentConstantLineLabels:Ia.lQ,_rotateTick:function(l,u,S){!S&&l.rotate(u.angle+90,u.x,u.y)},_validateOverlappingMode:nc._validateOverlappingMode,_validateDisplayMode:nc._validateDisplayMode,_getStep:function(l){var u=hc(this.getAngles()[0]),S=this._options.label.minSpacing,U=2===u||4===u?function(Me){return Me.width+S}:function(Me){return Me.height},ae=l.reduce((Me,Re)=>wl(Me,U(Re)),0);return co_getTicksCountInRange(this._majorTicks,2===u||4===u?"x":"y",ae)}},ld=(0,vr.X)({},tp,{_createPathElement:function(l,u){return this._renderer.path(l,"area").attr(u).sharp()},setSpiderTicks:function(l){this._spiderTicks=l},_getGridLineDrawer:function(){var l=this;return function(u,S){return l._createPathElement(l._getGridPoints(u.coords).points,S)}},_getGridPoints:function(l){var u=this.getCenter(),S=(0,Zr.Yf)(u.x,u.y,l.x,l.y);return this._getGridPointsByRadius(S)},_getGridPointsByRadius:function(l){var u=this.getCenter();return l>this.getRadius()?{points:null}:{points:(0,Zr.Tj)(this._spiderTicks,function(S){var U=(0,Zr.lD)(S.coords.angle);return{x:ss(u.x+l*U.cos),y:ss(u.y+l*U.sin)}})}},_getStripGraphicAttributes:function(l,u){var S=this._getGridPointsByRadius(u).points;return{points:[this._getGridPointsByRadius(l).points,S.reverse()]}},_createStrip:gp._createStrip,_getConstantLineGraphicAttributes:function(l){return this._getGridPointsByRadius(l)},_createConstantLine:function(l,u){return this._createPathElement(this._getConstantLineGraphicAttributes(l).points,u)}}),Tf=function(l){return(0,Zr.Tj)(l||[],function(u){return u.value})},df=Math,Dh=df.abs,ip=df.max,Af=df.min,uu=Array.isArray,wu="top",oh="bottom",zl="left",hu="right",_p="center",Su="keep",Nu="shift",Sl="reset",Ip="rotate";function Rp(l,u,S,U,ae,Me){var Re,{allowNegatives:He,linearThreshold:lt}=Me;return a_({axisType:l.type,dataType:l.dataType,logBase:l.logarithmBase,allowNegatives:He,linearThreshold:lt,axisDivisionFactor:ae(l.axisDivisionFactor||50),minorAxisDivisionFactor:ae(l.minorAxisDivisionFactor||15),numberMultipliers:l.numberMultipliers,calculateMinors:l.minorTick.visible||l.minorGrid.visible||l.calculateMinors,allowDecimals:l.allowDecimals,endOnTick:l.endOnTick,incidentOccurred:u,firstDayOfWeek:null===(Re=l.workWeek)||void 0===Re?void 0:Re[0],skipTickGeneration:S,skipCalculationLimits:l.skipCalculationLimits,generateExtraTick:l.generateExtraTick,minTickInterval:l.minTickInterval,rangeIsEmpty:U})}function kf(l,u,S){var U=l.getOptions();return nf(l,u,U.tick,U.grid,S,!1)}function Pp(l,u){var S=l.getOptions();return nf(l,u,S.minorTick,S.minorGrid)}function Lc(l,u,S){var U=l.getOptions();return nf(l,u,(0,vr.X)({},U.tick,{visible:U.showCustomBoundaryTicks}),U.grid,void 0,!1,S?-1:1)}function Td(l,u,S,U){(l||[]).forEach(ae=>ae[u](S,U))}function sh(l){Td(l,"initCoords")}function bp(l,u){Td(l,"drawMark",u)}function Fc(l,u){Td(l,"drawGrid",u)}function yp(l,u,S){Td(l,"updateTickPosition",u,S)}function Eu(l,u){Td(l,"updateGridPosition",u)}function am(l){for(var u=l.length-1;u>=0&&Rf(l,u);u--);for(u=0;u<l.length&&Rf(l,u);u++)u--}function Rf(l,u){return(null===l[u].coords.x||null===l[u].coords.y)&&(l.splice(u,1),!0)}function Bc(l,u){return 180*df.asin((l[0].height+u.minSpacing)/(l[1].x-l[0].x))/df.PI<45?-45:-90}function Mh(l,u,S){l.forEach(function(U,ae){U.getContentContainer()&&(ae%u!=0?U.removeLabel():S&&S(U,ae))})}function _l(l,u){return void 0===l?u:null===l?void 0:l}var Oh=function(l){this._renderer=l.renderer,this._incidentOccurred=l.incidentOccurred,this._eventTrigger=l.eventTrigger,this._stripsGroup=l.stripsGroup,this._stripLabelAxesGroup=l.stripLabelAxesGroup,this._labelsAxesGroup=l.labelsAxesGroup,this._constantLinesGroup=l.constantLinesGroup,this._scaleBreaksGroup=l.scaleBreaksGroup,this._axesContainerGroup=l.axesContainerGroup,this._gridContainerGroup=l.gridGroup,this._axisCssPrefix=l.widgetClass+"-"+(l.axisClass?l.axisClass+"-":""),this._setType(l.axisType,l.drawingType),this._createAxisGroups(),this._translator=this._createTranslator(),this.isArgumentAxis=l.isArgumentAxis,this._viewport={},this._prevDataInfo={},this._firstDrawing=!0,this._initRange={},this._getTemplate=l.getTemplate};Oh.prototype={constructor:Oh,_drawAxis(){var l=this._options;l.visible&&(this._axisElement=this._createAxisElement(),this._updateAxisElementPosition(),this._axisElement.attr({"stroke-width":l.width,stroke:l.color,"stroke-opacity":l.opacity}).sharp(this._getSharpParam(!0),this.getAxisSharpDirection()).append(this._axisLineGroup))},_createPathElement(l,u,S){return this.sharp(this._renderer.path(l,"line").attr(u),S)},sharp(l){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return l.sharp(this._getSharpParam(),u)},customPositionIsAvailable:()=>!1,getOrthogonalAxis:Ia.lQ,getCustomPosition:Ia.lQ,getCustomBoundaryPosition:Ia.lQ,resolveOverlappingForCustomPositioning:Ia.lQ,hasNonBoundaryPosition:()=>!1,customPositionIsBoundaryOrthogonalAxis:()=>!1,getResolvedBoundaryPosition(){return this.getOptions().position},getAxisSharpDirection(){var l=this.getResolvedBoundaryPosition();return this.hasNonBoundaryPosition()||l!==oh&&l!==hu?1:-1},getSharpDirectionByCoords(l){var u=this._getCanvasStartEnd(),S=Math.max(u.start,u.end);return this.getRadius?0:S!==l[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var l=this;return function(u,S){var U=l._getGridPoints(u.coords);return U.points?l._createPathElement(U.points,S,l.getSharpDirectionByCoords(u.coords)):null}},_getGridPoints:function(l){var u=this._isHorizontal,S=u?"x":"y",U=this._orthogonalPositions,ae=U.start,Me=U.end,Re=this.borderOptions,He=u?zl:wu,lt=u?hu:oh,At=this.getCanvas(),di={left:At.left,right:At.width-At.right,top:At.top,bottom:At.height-At.bottom},Ji=4+(Re.visible&&Re[He]?di[He]:void 0),rn=(Re.visible&&Re[lt]?di[lt]:void 0)-4;return this.areCoordsOutsideAxis(l)||void 0===l[S]||l[S]<Ji||l[S]>rn?{points:null}:{points:u?null!==l[S]?[l[S],ae,l[S],Me]:null:null!==l[S]?[ae,l[S],Me,l[S]]:null}},_getConstantLinePos:function(l,u,S){var U=this._getTranslatedCoord(l);if(!(!(0,Wn.O9)(U)||U<Af(u,S)||U>ip(u,S)))return U},_getConstantLineGraphicAttributes:function(l){var u=this._orthogonalPositions.start,S=this._orthogonalPositions.end;return{points:this._isHorizontal?[l,u,l,S]:[u,l,S,l]}},_createConstantLine:function(l,u){return this._createPathElement(this._getConstantLineGraphicAttributes(l).points,u,function zd(l,u){return Math.max(u.start,u.end)!==l?1:-1}(l,this._getCanvasStartEnd()))},_drawConstantLineLabelText:function(l,u,S,U,ae){var{font:Me,cssClass:Re}=U;return this._renderer.text(l,u,S).css((0,Zr.a1)((0,vr.X)({},this._options.label.font,Me))).attr({align:"center",class:Re}).append(ae)},_drawConstantLineLabels:function(l,u,S,U){var ae,Me=u.text,He=this._options.label;this._checkAlignmentConstantLineLabels(u),Me=null!==(ae=Me)&&void 0!==ae?ae:this.formatLabel(l,He);var lt=this._getConstantLineLabelsCoords(S,u);return this._drawConstantLineLabelText(Me,lt.x,lt.y,u,U)},_getStripPos:function(l,u,S,U,ae){var He,lt,At,di,Di,Me=!(!ae.minVisible&&!ae.maxVisible),Re=(ae.categories||[]).reduce(function(fr,Fr){return fr.push(Fr.valueOf()),fr},[]);if(!Me&&(0,Wn.O9)(l)&&(0,Wn.O9)(u)){var Ki,Ji,rn=this.parser(l),Tn=this.parser(u);if(di=Re.indexOf(null!==(Ki=rn?.valueOf())&&void 0!==Ki?Ki:void 0),Di=Re.indexOf(null!==(Ji=Tn?.valueOf())&&void 0!==Ji?Ji:void 0),-1===di||-1===Di)return{from:0,to:0,outOfCanvas:!0};di>Di&&(At=u,u=l,l=At)}(0,Wn.O9)(l)?(l=this.validateUnit(l,"E2105","strip"),He=this._getTranslatedCoord(l,-1)):He=S,(0,Wn.O9)(u)?(u=this.validateUnit(u,"E2105","strip"),lt=this._getTranslatedCoord(u,1)):lt=U;var Gn=He<lt?{from:He,to:lt}:{from:lt,to:He},Cr=this.getVisibleArea();return(Gn.from<=Cr[0]&&Gn.to<=Cr[0]||Gn.from>=Cr[1]&&Gn.to>=Cr[1])&&(Gn.outOfCanvas=!0),Gn},_getStripGraphicAttributes:function(l,u){var S,U,ae,Me,Re=this._orthogonalPositions,He=Re.start,lt=Re.end;return this._isHorizontal?(S=l,U=Af(He,lt),ae=u-l,Me=Dh(He-lt)):(S=Af(He,lt),U=l,ae=Dh(He-lt),Me=Dh(l-u)),{x:S,y:U,width:ae,height:Me}},_createStrip:function(l){return this._renderer.rect(l.x,l.y,l.width,l.height)},_adjustStripLabels:function(){var l=this;this._strips.forEach(function(u){u.label&&u.label.attr(l._getAdjustedStripLabelCoords(u))})},_adjustLabelsCoord(l,u,S){var U=ae=>this._getLabelAdjustedCoord(ae,l+(ae.labelOffset||0),u,S);this._majorTicks.forEach(function(ae){ae.label?(ae.updateMultilineTextAlignment(),ae.label.attr(U(ae))):ae.templateContainer&&ae.templateContainer.attr(U(ae))})},_adjustLabels:function(l){var u=this.getOptions(),S=u.position===u.label.position,U=this._majorTicks.reduce(function(Me,Re){if(!Re.getContentContainer())return Me;var He=Re.labelRotationAngle?(0,Zr.R8)(Re.labelBBox,[Re.labelCoords.x,Re.labelCoords.y],-Re.labelRotationAngle):Re.labelBBox;return{width:ip(Me.width||0,He.width),height:ip(Me.height||0,He.height),offset:ip(Me.offset||0,Re.labelOffset||0)}},{}),ae=S?this._isHorizontal?U.height:U.width:0;return this._adjustLabelsCoord(l,U.width),l+ae+(ae&&this._options.label.indentFromAxis)+(S?U.offset:0)},_getLabelAdjustedCoord:function(l,u,S){u=u||0;var rn,Tn,U=this._options,Me=l.templateContainer&&l.templateContainer.getBBox()||(0,Zr.R8)(l.labelBBox,[l.labelCoords.x,l.labelCoords.y],-l.labelRotationAngle||0),Re=l.labelAlignment||U.label.alignment,He="discrete"===this._options.type,lt=l.labelRotationAngle%90==0,At=U.label.indentFromAxis,di=U.label.position,Di=this._axisPosition,Ki=l.labelCoords,Ji=Ki.x;return this._isHorizontal?(Tn=di===oh?Di+At-Me.y+u:Di-At-(Me.y+Me.height)-u,rn=Re===hu?He&<?l.coords.x-(Me.x+Me.width):Ji-Me.x-Me.width:Re===zl?He&<?Ji-Me.x-(l.coords.x-Ji):Ji-Me.x:Ji-Me.x-Me.width/2):(Tn=Ki.y-Me.y-Me.height/2,di===zl?(rn=Re===zl?Di-At-S-Me.x:Re===_p?Di-At-S/2-Me.x-Me.width/2:Di-At-Me.x-Me.width,rn-=u):(rn=Re===hu?Di+At+S-Me.x-Me.width:Re===_p?Di+At+S/2-Me.x-Me.width/2:Di+At-Me.x,rn+=u)),{translateX:rn,translateY:Tn}},_createAxisConstantLineGroups:function(){var l=this._renderer,S=this._axisCssPrefix+"constant-lines",U=l.g().attr({class:S}),ae=l.g().attr({class:S}),Me=l.g().attr({class:S});return{inside:U,outside1:ae,left:ae,top:ae,outside2:Me,right:Me,bottom:Me,remove:function(){this.inside.remove(),this.outside1.remove(),this.outside2.remove()},clear:function(){this.inside.clear(),this.outside1.clear(),this.outside2.clear()}}},_createAxisGroups:function(){var l=this._renderer,u=this._axisCssPrefix;this._axisGroup=l.g().attr({class:u+"axis"}).enableLinks(),this._axisStripGroup=l.g().attr({class:u+"strips"}),this._axisGridGroup=l.g().attr({class:u+"grid"}),this._axisElementsGroup=l.g().attr({class:u+"elements"}),this._axisLineGroup=l.g().attr({class:u+"line"}).linkOn(this._axisGroup,"axisLine").linkAppend(),this._axisTitleGroup=l.g().attr({class:u+"title"}).append(this._axisGroup),this._axisConstantLineGroups={above:this._createAxisConstantLineGroups(),under:this._createAxisConstantLineGroups()},this._axisStripLabelGroup=l.g().attr({class:u+"axis-labels"})},_clearAxisGroups:function(){this._axisGroup.remove(),this._axisStripGroup.remove(),this._axisStripLabelGroup.remove(),this._axisConstantLineGroups.above.remove(),this._axisConstantLineGroups.under.remove(),this._axisGridGroup.remove(),this._axisTitleGroup.clear(),(!this._options.label.template||!this.isRendered())&&(this._axisElementsGroup.remove(),this._axisElementsGroup.clear()),this._axisLineGroup&&this._axisLineGroup.clear(),this._axisStripGroup&&this._axisStripGroup.clear(),this._axisGridGroup&&this._axisGridGroup.clear(),this._axisConstantLineGroups.above.clear(),this._axisConstantLineGroups.under.clear(),this._axisStripLabelGroup&&this._axisStripLabelGroup.clear()},_getLabelFormatObject:function(l,u,S,U,ae,Me){S=S||this._getViewportRange();var Re={value:l,valueText:ll(l,{labelOptions:u,ticks:Me||Tf(this._majorTicks),tickInterval:ae??this._tickInterval,dataType:this._options.dataType,logarithmBase:this._options.logarithmBase,type:this._options.type,showTransition:!this._options.marker.visible,point:U})||"",min:S.minVisible,max:S.maxVisible};return U&&(Re.point=U),Re},formatLabel:function(l,u,S,U,ae,Me){var Re=this._getLabelFormatObject(l,u,S,U,ae,Me);return(0,Wn.Tn)(u.customizeText)?u.customizeText.call(Re,Re):Re.valueText},formatHint:function(l,u,S){var U=this._getLabelFormatObject(l,u,S);return(0,Wn.Tn)(u.customizeHint)?u.customizeHint.call(U,U):void 0},formatRange(l,u,S,U){return os({startValue:l,endValue:u,tickInterval:S,argumentFormat:U,axisOptions:this.getOptions()})},_setTickOffset:function(){var u=this._options.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==u||!u)},aggregatedPointBetweenTicks(){return"crossTicks"===this._options.aggregatedPointsPosition},resetApplyingAnimation:function(l){this._resetApplyingAnimation=!0,l&&(this._firstDrawing=!0)},isFirstDrawing(){return this._firstDrawing},getMargins:function(){var gr,Hr,l=this,{position:u,offset:S,customPosition:U,placeholderSize:ae,grid:Me,tick:Re,crosshairMargin:He}=l._options,lt=(0,Wn.O9)(U),At=l.getResolvedBoundaryPosition(),di=l.getCanvas(),Di=di.left,Ki=di.top,Ji=di.width-di.right,rn=di.height-di.bottom,Tn=ip(Me.visible&&Me.width||0,Re.visible&&Re.width||0),Gn=l._axisConstantLineGroups.above,Cr=l._axisConstantLineGroups.under,fr=[l._axisElementsGroup,Gn.outside1,Gn.outside2,Cr.outside1,Cr.outside2,l._axisLineGroup].map(gr=>gr&&gr.getBBox()).concat((!(Hr=(gr=l._axisTitleGroup)&&gr.getBBox())||Hr.isEmpty||(l._isHorizontal?(Hr.x=Di,Hr.width=Ji-Di):(Hr.y=Ki,Hr.height=rn-Ki)),Hr)),Fr=yr(fr,di);if(Fr[u]+=He,l.hasNonBoundaryPosition()&<&&(Fr[At]=0),ae&&(Fr[u]=ae),Tn&&(l._isHorizontal&&di.right<Tn&&Fr.right<Tn&&(Fr.right=Tn),!l._isHorizontal&&di.bottom<Tn&&Fr.bottom<Tn&&(Fr.bottom=Tn)),!lt&&(0,Wn.O9)(S)){var Or=l.customPositionIsBoundary()&&(S>0&&(At===zl||At===wu)||S<0&&(At===hu||At===oh));Fr[At]-=Or?S:0}return Fr},validateUnit:function(l,u,S){return void 0===(l=this.parser(l))&&u&&this._incidentOccurred(u,[S]),l},_setType:function(l,u){var S;switch(l){case"xyAxes":S=ym;break;case"polarAxes":S=r}(0,vr.X)(this,S[u])},_getSharpParam:function(){return!0},_disposeBreaksGroup:Ia.lQ,dispose:function(){[this._axisElementsGroup,this._axisStripGroup,this._axisGroup].forEach(function(l){l.dispose()}),this._strips=this._title=null,this._axisStripGroup=this._axisConstantLineGroups=this._axisStripLabelGroup=this._axisBreaksGroup=null,this._axisLineGroup=this._axisElementsGroup=this._axisGridGroup=null,this._axisGroup=this._axisTitleGroup=null,this._axesContainerGroup=this._stripsGroup=this._constantLinesGroup=this._labelsAxesGroup=null,this._renderer=this._options=this._textOptions=this._textFontStyles=null,this._translator=null,this._majorTicks=this._minorTicks=null,this._disposeBreaksGroup(),this._templatesRendered&&this._templatesRendered.reject()},getOptions:function(){return this._options},setPane:function(l){this.pane=l,this._options.pane=l},setTypes:function(l,u,S){this._options.type=l||this._options.type,this._options[S]=u||this._options[S],this._updateTranslator()},resetTypes:function(l){this._options.type=this._initTypes.type,this._options[l]=this._initTypes[l]},getTranslator:function(){return this._translator},updateOptions:function(l){var u=this,S=l.label;(function o_(l){var u,S=l.label,U=l.position,ae=l.isHorizontal?oh:zl,Me=l.isHorizontal?wu:hu,Re=S.position;U!==ae&&U!==Me&&(U=ae),Re&&"outside"!==Re?"inside"===Re&&(Re={[wu]:oh,[oh]:wu,[zl]:hu,[hu]:zl}[U]):Re=U,Re!==ae&&Re!==Me&&(Re=U),S.alignment!==_p&&!S.userAlignment&&(S.alignment={[wu]:_p,[oh]:_p,[zl]:hu,[hu]:zl}[Re]),l.position=U,S.position=Re,l.hoverMode=l.hoverMode?l.hoverMode.toLowerCase():"none",S.minSpacing=null!==(u=S.minSpacing)&&void 0!==u?u:5,l.type&&(l.type=l.type.toLowerCase()),l.argumentType&&(l.argumentType=l.argumentType.toLowerCase()),l.valueType&&(l.valueType=l.valueType.toLowerCase())})(l),function pc(l,u){l&&"shift"===u.visualRangeUpdateMode&&Qo.A.log("W0016","valueAxis.visualRangeUpdateMode","shift","23.1","Specify another value")}(!u.isArgumentAxis,l),u._options=l,l.tick=l.tick||{},l.minorTick=l.minorTick||{},l.grid=l.grid||{},l.minorGrid=l.minorGrid||{},l.title=l.title||{},l.marker=l.marker||{},u._initTypes={type:l.type,argumentType:l.argumentType,valueType:l.valueType},u._setTickOffset(),u._isHorizontal=l.isHorizontal,u.pane=l.pane,u.name=l.name,u.priority=l.priority,u._hasLabelFormat=""!==S.format&&(0,Wn.O9)(S.format),u._textOptions={opacity:S.opacity,align:"center",class:S.cssClass},u._textFontStyles=(0,Zr.a1)(S.font),"logarithmic"===l.type&&l.logarithmBaseError&&(u._incidentOccurred("E2104"),delete l.logarithmBaseError),u._updateTranslator(),u._createConstantLines(),u._strips=(l.strips||[]).map(U=>function Bm(l,u){var S,U,ae=u.label||{};return{options:u,label:null,rect:null,_getCoord(){var Me=l._getCanvasStartEnd(),Re=l._translator.getBusinessRange();return l._getStripPos(u.startValue,u.endValue,Me.start,Me.end,Re)},_drawLabel:Me=>l._renderer.text(ae.text,Me.x,Me.y).css((0,Zr.a1)((0,vr.X)({},l.getOptions().label.font,ae.font))).attr({align:"center",class:ae.cssClass}).append(l._axisStripLabelGroup),draw(){if(!l._translator.getBusinessRange().isEmpty()&&((0,Wn.O9)(u.startValue)||(0,Wn.O9)(u.endValue))&&(0,Wn.O9)(u.color)){var Me=this._getCoord();if(this.labelCoords=ae.text?l._getStripLabelCoords(Me.from,Me.to,ae):null,Me.outOfCanvas||!(0,Wn.O9)(Me.to)||!(0,Wn.O9)(Me.from))return;this.rect=l._createStrip(l._getStripGraphicAttributes(Me.from,Me.to)).attr({fill:u.color}).append(l._axisStripGroup),this.label=ae.text?this._drawLabel(this.labelCoords):null}},getContentContainer(){return this.label},removeLabel(){},updatePosition(Me){var Re=this._getCoord();Me&&S?(this.label&&this.label.attr(l._getStripLabelCoords(S.from,S.to,u.label)),this.rect&&this.rect.attr(l._getStripGraphicAttributes(S.from,S.to)),this.label&&this.label.animate(l._getStripLabelCoords(Re.from,Re.to,u.label)),this.rect&&this.rect.animate(l._getStripGraphicAttributes(Re.from,Re.to))):(this.label&&this.label.attr(l._getStripLabelCoords(Re.from,Re.to,u.label)),this.rect&&this.rect.attr(l._getStripGraphicAttributes(Re.from,Re.to)))},saveCoords(){U=S,S=this._getCoord()},resetCoordinates(){S=U}}}(u,U)),u._majorTicks=u._minorTicks=null,u._firstDrawing=!0},calculateInterval:function(l,u){var S=this._options;if(!S||"logarithmic"!==S.type)return Dh(l-u);var{allowNegatives:U,linearThreshold:ae}=new St.Q(this.getTranslator().getBusinessRange());return Dh((0,Zr.wS)(l,S.logarithmBase,U,ae)-(0,Zr.wS)(u,S.logarithmBase,U,ae))},getCanvasRange(){var l=this._translator;return{startValue:l.from(l.translate("canvas_position_start")),endValue:l.from(l.translate("canvas_position_end"))}},_processCanvas:function(l){return l},updateCanvas:function(l,u){if(u)this._orthogonalPositions=null;else{var S=this._orthogonalPositions={start:this._isHorizontal?l.top:l.left,end:this._isHorizontal?l.height-l.bottom:l.width-l.right};S.center=S.start+(S.end-S.start)/2}this._canvas=l,this._translator.updateCanvas(this._processCanvas(l)),this._initAxisPositions()},getCanvas:function(){return this._canvas},getAxisShift(){return this._axisShift||0},hideTitle:function(){this._options.title.text&&(this._incidentOccurred("W2105",[this._isHorizontal?"horizontal":"vertical"]),this._axisTitleGroup.clear())},getTitle:function(){return this._title},hideOuterElements:function(){(this._options.label.visible||this._outsideConstantLines.length)&&!this._translator.getBusinessRange().isEmpty()&&(this._incidentOccurred("W2106",[this._isHorizontal?"horizontal":"vertical"]),this._axisElementsGroup.clear(),Td(this._outsideConstantLines,"removeLabel"))},_resolveLogarithmicOptionsForRange(l){var u=this._options;"logarithmic"===u.type&&(l.addRange({allowNegatives:void 0!==u.allowNegatives?u.allowNegatives:l.min<=0}),isNaN(u.linearThreshold)||(l.linearThreshold=u.linearThreshold))},adjustViewport(l){var u=this._options,S="discrete"===u.type,U=this._seriesData&&this._seriesData.categories||[],ae=this.adjustRange((0,Zr.Od)(u.wholeRange)),Me=this.getViewport()||{},Re=new St.Q(l);this._addConstantLinesToRange(Re);var He=(0,Wn.O9)(Me.startValue),lt=(0,Wn.O9)(Me.endValue);S||(He=He&&(!(0,Wn.O9)(ae.endValue)||Me.startValue<ae.endValue),lt=lt&&(!(0,Wn.O9)(ae.startValue)||Me.endValue>ae.startValue));var At=He?Me.startValue:Re.minVisible,di=lt?Me.endValue:Re.maxVisible;if(S){var Ji=(0,Zr.jg)(U,ae.startValue,ae.endValue);Re.categories=U=Ji.categories}else{var Di,Ki;Re.min=null!==(Di=ae.startValue)&&void 0!==Di?Di:Re.min,Re.max=null!==(Ki=ae.endValue)&&void 0!==Ki?Ki:Re.max}var rn=(0,Zr.ZN)({axisType:u.type,dataType:u.dataType,base:u.logarithmBase},{startValue:He?Me.startValue:void 0,endValue:lt?Me.endValue:void 0,length:Me.length},{categories:U,min:ae.startValue,max:ae.endValue},{categories:U,min:At,max:di});return Re.minVisible=rn.startValue,Re.maxVisible=rn.endValue,!(0,Wn.O9)(Re.min)&&(Re.min=Re.minVisible),!(0,Wn.O9)(Re.max)&&(Re.max=Re.maxVisible),Re.addRange({}),this._resolveLogarithmicOptionsForRange(Re),Re},adjustRange(l){l=l||{};var u="discrete"===this._options.type,U=!1===this._options.allowNegatives;if("logarithmic"===this._options.type&&(l.startValue=U&&l.startValue<=0?null:l.startValue,l.endValue=U&&l.endValue<=0?null:l.endValue),!u&&(0,Wn.O9)(l.startValue)&&(0,Wn.O9)(l.endValue)&&l.startValue>l.endValue){var ae=l.endValue;l.endValue=l.startValue,l.startValue=ae}return l},_getVisualRangeUpdateMode(l,u,S){var U=this._options.visualRangeUpdateMode,ae=this._translator,Me=this._seriesData,Re=this._prevDataInfo;if(Re.isEmpty&&!Re.containsConstantLine)return Su;if(!this.isArgumentAxis){var He=this.getViewport();if(!(0,Wn.O9)(He.startValue)&&!(0,Wn.O9)(He.endValue)&&!(0,Wn.O9)(He.length))return Sl}if(this.isArgumentAxis){if(-1===[Nu,Su,Sl].indexOf(U)){if("discrete"===Me.axisType){var lt=Me.categories,At=u.categories,di=this.visualRange();U=lt&&At&<.length&&-1!==At.map(Tn=>Tn.valueOf()).join(",").indexOf(lt.map(Tn=>Tn.valueOf()).join(","))&&(di.startValue.valueOf()!==lt[0].valueOf()||di.endValue.valueOf()!==lt[lt.length-1].valueOf())?Su:Sl}else{var Di=ae.translate(Me.min),Ki=ae.translate(l.startValue),Ji=ae.translate(Me.max),rn=ae.translate(l.endValue);U=Di===Ki&&Ji===rn?Sl:Di!==Ki&&Ji===rn?Nu:Su}U===Su&&Re.isEmpty&&Re.containsConstantLine&&(U=Sl)}}else-1===[Su,Sl].indexOf(U)&&(U=S===Su?Su:Sl);return U},_handleBusinessRangeChanged(l,u,S){var U=this.visualRange();if(!u&&!this._translator.getBusinessRange().isEmpty()){var ae=this._lastVisualRangeUpdateMode=this._getVisualRangeUpdateMode(U,S,l);ae===Su?this._setVisualRange([U.startValue,U.endValue]):ae===Sl?this._setVisualRange([null,null]):ae===Nu&&this._setVisualRange({length:this.getVisualRangeLength()})}},getVisualRangeLength(l){var u=l||this._translator.getBusinessRange(),{type:S}=this._options;return"logarithmic"===S?(0,oa.Ai)(this.calculateInterval(u.maxVisible,u.minVisible)):"discrete"===S?(0,Zr.jg)(u.categories,u.minVisible,u.maxVisible).categories.length:u.maxVisible-u.minVisible},getVisualRangeCenter(l,u){var He,S=this.getTranslator(),U=S.getBusinessRange(),ae=u?(0,vr.X)(!0,{},U,l||{}):l||U,{type:Me,logarithmBase:Re}=this._options;if((0,Wn.O9)(ae.minVisible)&&(0,Wn.O9)(ae.maxVisible)){if("logarithmic"===Me){var{allowNegatives:lt,linearThreshold:At,minVisible:di,maxVisible:Di}=ae;He=(0,Zr.hq)((0,oa.Ai)((0,Zr.wS)(Di,Re,lt,At)+(0,Zr.wS)(di,Re,lt,At))/2,Re,lt,At)}else if("discrete"===Me){var Ki=(0,Zr.jg)(ae.categories,ae.minVisible,ae.maxVisible),Ji=Math.ceil(Ki.categories.length/2)-1;He=U.categories.indexOf(Ki.categories[Ji])}else He=S.toValue((ae.maxVisible.valueOf()+ae.minVisible.valueOf())/2);return He}},setBusinessRange(l,u,S,U){var ae,Me,Re=this._options,He="discrete"===Re.type;this._handleBusinessRangeChanged(S,u,l),this._seriesData=new St.Q(l);var lt=this._seriesData.isEmpty(),At=new St.Q(this._seriesData);if(this._addConstantLinesToRange(At),this._prevDataInfo={isEmpty:lt,containsConstantLine:At.containsConstantLine},this._seriesData.addRange({categories:Re.categories,dataType:Re.dataType,axisType:Re.type,base:Re.logarithmBase,invert:Re.inverted}),this._resolveLogarithmicOptionsForRange(this._seriesData),!He){if(!(0,Wn.O9)(this._seriesData.min)&&!(0,Wn.O9)(this._seriesData.max)){var di=this.getViewport();di&&this._seriesData.addRange({min:di.startValue,max:di.endValue})}var Di=Re.synchronizedValue;(0,Wn.O9)(Di)&&this._seriesData.addRange({min:Di,max:Di})}this._seriesData.minVisible=null!==(ae=this._seriesData.minVisible)&&void 0!==ae?ae:this._seriesData.min,this._seriesData.maxVisible=null!==(Me=this._seriesData.maxVisible)&&void 0!==Me?Me:this._seriesData.max,!this.isArgumentAxis&&Re.showZero&&this._seriesData.correctValueZeroLevel(),this._seriesData.sortCategories(this.getCategoriesSorter(U)),this._seriesData.userBreaks=this._seriesData.isEmpty()?[]:this._getScaleBreaks(Re,this._seriesData,this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},_addConstantLinesToRange(l){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(u=>{if(u.options.extendAxis){var S=u.getParsedValue();l.addRange({containsConstantLine:!0,minVisible:S,maxVisible:S,min:(0,Wn.O9)(l.min)?l.min:S,max:(0,Wn.O9)(l.max)?l.max:S})}})},setGroupSeries:function(l){this._series=l},getLabelsPosition:function(){var l=this._options,u=l.position,S=l.label.indentFromAxis+(this._axisShift||0)+this._constantLabelOffset,U=this._axisPosition;return u===wu||u===zl?U-S:U+S},getFormattedValue:function(l,u,S){var U=this._options.label;return(0,Wn.O9)(l)?this.formatLabel(l,(0,vr.X)(!0,{},U,u),void 0,S):null},_getBoundaryTicks:function(l,u){var S=l.length,U=this._options,ae=U.customBoundTicks,Me=u.minVisible,Re=u.maxVisible,He=U.showCustomBoundaryTicks?this._boundaryTicksVisibility:{},lt=[];return"discrete"===U.type?this._tickOffset&&0!==l.length&&(lt=[l[0],l[l.length-1]]):ae?(He.min&&(0,Wn.O9)(ae[0])&<.push(ae[0]),He.max&&(0,Wn.O9)(ae[1])&<.push(ae[1])):(He.min&&(0===S||l[0]>Me)&<.push(Me),He.max&&(0===S||l[S-1]<Re)&<.push(Re)),lt},setPercentLabelFormat:function(){this._hasLabelFormat||(this._options.label.format="percent")},resetAutoLabelFormat:function(){this._hasLabelFormat||delete this._options.label.format},getMultipleAxesSpacing:function(){return this._options.multipleAxesSpacing||0},getTicksValues:function(){return{majorTicksValues:Tf(this._majorTicks),minorTicksValues:Tf(this._minorTicks)}},estimateTickInterval:function(l){return this.updateCanvas(l),this._tickInterval!==this._getTicks(this._getViewportRange(),Ia.lQ,!0).tickInterval},setTicks:function(l){var u=l.majorTicks||[];this._majorTicks=u.map(kf(this,this._renderer,this._getSkippedCategory(u))),this._minorTicks=(l.minorTicks||[]).map(Pp(this,this._renderer)),this._isSynchronized=!0},_adjustDivisionFactor:function(l){return l},_getTicks:function(l,u,S){var U=this._options,ae=U.customTicks,Me=U.customMinorTicks;return Rp(U,u||this._incidentOccurred,S,this._translator.getBusinessRange().isEmpty(),this._adjustDivisionFactor.bind(this),l)({min:l.minVisible,max:l.maxVisible,categories:l.categories,isSpacedMargin:l.isSpacedMargin},this._getScreenDelta(),U.tickInterval,"ignore"===U.label.overlappingBehavior||U.forceUserTickInterval,{majors:ae,minors:Me},U.minorTickInterval,U.minorTickCount,this._initialBreaks)},_createTicksAndLabelFormat:function(l,u){var S=this._options,U=this._getTicks(l,u,!1);return!l.isEmpty()&&"discrete"===S.type&&"datetime"===S.dataType&&!this._hasLabelFormat&&U.ticks.length&&(S.label.format=So.A.getDateFormatByTicks(U.ticks)),U},getAggregationInfo(l,u){var S,U,ae,Me=this._options,Re=this._marginOptions,He=new St.Q(this.getTranslator().getBusinessRange()).addRange(u),lt=this.getViewport(),At=null!==(S=lt?.startValue)&&void 0!==S?S:He.minVisible,di=null!==(U=lt?.endValue)&&void 0!==U?U:He.maxVisible,Di=[];if("discrete"===Me.type&&Me.aggregateByCategory)return{aggregateByCategory:!0};var Ki=Me.aggregationInterval,Ji=Me.aggregationGroupWidth;!Ji&&Re&&(Re.checkInterval&&(Ji=Me.axisDivisionFactor),Re.sizePointNormalState&&(Ji=Math.min(Re.sizePointNormalState,Me.axisDivisionFactor)));var rn=!Me.aggregationGroupWidth&&!Ki&&u.interval,Tn=function _d(l,u,S,U,ae){var Me=(0,vr.X)({},l,{endOnTick:!0,axisDivisionFactor:u,skipCalculationLimits:!0,generateExtraTick:!0,minTickInterval:ae});return function(Re,He,lt,At,di){return Rp(Me,Ia.lQ,He,S.isEmpty(),Di=>Di,S)({min:lt,max:At,categories:S.categories,isSpacedMargin:S.isSpacedMargin},U,Re,(0,Wn.O9)(Re),void 0,void 0,void 0,di)}}(Me,Ji,He,this._getScreenDelta(),rn),Gn=Tn(Ki,!0,At,di,null===(ae=this._seriesData)||void 0===ae?void 0:ae.breaks).tickInterval;if("discrete"!==Me.type){var Cr=l?He.min:At,fr=l?He.max:di;if((0,Wn.O9)(Cr)&&(0,Wn.O9)(fr)){var Fr=(0,Zr.CX)({base:Me.logarithmBase,axisType:Me.type,dataType:Me.dataType},!1),Or=Cr,gr=fr;if(!l&&(0,Wn.O9)(Gn)){var Hr=Math.max(this.calculateInterval(fr,Cr),"datetime"===Me.dataType?qn.A.dateToMilliseconds(Gn):Gn);Or=Fr(Cr,Hr,-1),gr=Fr(fr,Hr)}var Ra=this._getScaleBreaks(Me,{minVisible:Or=Or<He.min?He.min:Or,maxVisible:gr=gr>He.max?He.max:gr},this._series,this.isArgumentAxis);Di=Tn(Gn,!1,Or,gr,this._filterBreaks(Ra,{minVisible:Or,maxVisible:gr},Me.breakStyle)).ticks}}return this._aggregationInterval=Gn,{interval:Gn,ticks:Di}},getTickInterval(){return this._tickInterval},getAggregationInterval(){return this._aggregationInterval},createTicks:function(l){var u=this,S=u._renderer,U=u._options;if(l){u._isSynchronized=!1,u.updateCanvas(l);var ae=u._getViewportRange();u._initialBreaks=ae.breaks=this._seriesData.breaks=u._filterBreaks(this._seriesData.userBreaks,ae,U.breakStyle),u._estimatedTickInterval=u._getTicks(u.adjustViewport(this._seriesData),Ia.lQ,!0).tickInterval;var Me=this._calculateValueMargins();ae.addRange({minVisible:Me.minValue,maxVisible:Me.maxValue,isSpacedMargin:Me.isSpacedMargin});var Re=u._createTicksAndLabelFormat(ae),He=u._getBoundaryTicks(Re.ticks,u._getViewportRange());U.showCustomBoundaryTicks&&He.length?(u._boundaryTicks=[He[0]].map(Lc(u,S,!0)),He.length>1&&(u._boundaryTicks=u._boundaryTicks.concat([He[1]].map(Lc(u,S,!1))))):u._boundaryTicks=[];var lt=(Re.minorTicks||[]).filter(function(Tn){return!He.some(function(Gn){return(0,Zr.RP)(Gn)===(0,Zr.RP)(Tn)})});u._tickInterval=Re.tickInterval,u._minorTickInterval=Re.minorTickInterval;var At=u._majorTicks||[],di=At.reduce((Tn,Gn)=>(Tn[Gn.value.valueOf()]=Gn,Tn),{}),Di=(0,Wn.NW)(Re.ticks[0])===(0,Wn.NW)(At[0]&&At[0].value),Ki=u._getSkippedCategory(Re.ticks),Ji=Re.ticks.map(Tn=>{var Gn=di[Tn.valueOf()];return Gn&&Di?(delete di[Tn.valueOf()],Gn.setSkippedCategory(Ki),Gn):kf(u,S,Ki)(Tn)});u._majorTicks=Ji;var rn=u._minorTicks||[];u._minorTicks=lt.map((Tn,Gn)=>{var Cr=rn[Gn];return Cr?(Cr.updateValue(Tn),Cr):Pp(u,S)(Tn)}),u._ticksToRemove=Object.keys(di).map(Tn=>di[Tn]).concat(rn.slice(u._minorTicks.length,rn.length)),u._ticksToRemove.forEach(Tn=>{var Gn;return null===(Gn=Tn.label)||void 0===Gn?void 0:Gn.removeTitle()}),Re.breaks&&(u._seriesData.breaks=Re.breaks),u._reinitTranslator(u._getViewportRange())}},_reinitTranslator:function(l){this._isSynchronized||this._translator.updateBusinessRange(l)},_getViewportRange(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(l){this._marginOptions=l},getMarginOptions(){var l;return null!==(l=this._marginOptions)&&void 0!==l?l:{}},_calculateRangeInterval:function(l){var u="datetime"===this._options.dataType,S=[],U=function(ae){(0,Wn.O9)(ae)&&S.push(u?qn.A.dateToMilliseconds(ae):ae)};return U(this._tickInterval),U(this._estimatedTickInterval),(0,Wn.O9)(l)&&S.push(l),U(this._aggregationInterval),this._calculateWorkWeekInterval(Af.apply(this,S))},_calculateWorkWeekInterval(l){var u=this._options;if("datetime"===u.dataType&&u.workdaysOnly&&l){var S=864e5*u.workWeek.length,U=6048e5-S;S!==l&&U<l?l-=U*Math.ceil(l/6048e5):U>=l&&l>864e5&&(l=864e5)}return l},_getConvertIntervalCoefficient(l,u){var S=this._translator.ratioOfCanvasRange();return S/(S*u/(l+u))},_calculateValueMargins(l){this._resetMargins();var Tn,u=this.getMarginOptions(),S=(u.size||0)/2,U=this._options,ae=this._getViewportRange(),Me=this.getViewport(),Re=this._getScreenDelta(),He=-1!==(U.type||"").indexOf("discrete"),lt=U.valueMarginsEnabled&&!He&&!this.customPositionIsBoundaryOrthogonalAxis(),At=this._translator,di=U.minValueMargin,Di=U.maxValueMargin,Ki=0,Ji=0,rn=0;if(ae.stubData||!Re)return{startPadding:0,endPadding:0};if(this.isArgumentAxis&&u.checkInterval){Tn=this._calculateRangeInterval(ae.interval);var Gn=At.getInterval(Tn);isFinite(Gn)?rn=Math.ceil(Gn/(2*this._getConvertIntervalCoefficient(Gn,Re))):Tn=0}var Cr,fr,Fr=.8*Re/2;lt&&((0,Wn.O9)(di)?Cr=isFinite(di)?di:0:!this.isArgumentAxis&&u.checkInterval&&(0,Zr.RP)(ae.minVisible)>0&&(0,Zr.RP)(ae.minVisible)===(0,Zr.RP)(ae.min)?Ki=5:(Ki=Math.max(S,rn),Ki=Math.min(Fr,Ki)),(0,Wn.O9)(Di)?fr=isFinite(Di)?Di:0:!this.isArgumentAxis&&u.checkInterval&&(0,Zr.RP)(ae.maxVisible)<0&&(0,Zr.RP)(ae.maxVisible)===(0,Zr.RP)(ae.max)?Ji=5:(Ji=Math.max(S,rn),Ji=Math.min(Fr,Ji))),u.percentStick&&!this.isArgumentAxis&&(1===Dh(ae.max)&&(Ji=0),1===Dh(ae.min)&&(Ki=0));var go,Ma,gr=this._getCanvasStartEnd(),Ra=(Re-Ki-Ji)/(1+(Cr||0)+(fr||0))||Re;if((void 0!==Cr||void 0!==fr)&&(void 0!==Cr&&(Ki=Ra*Cr),void 0!==fr&&(Ji=Ra*fr)),"discrete"!==U.type&&l&&l.length>1&&!U.skipViewportExtending&&!Me.action&&!1!==U.endOnTick){var Zo=l.length,js=At.translate(l[0].value),ns=At.translate(l[Zo-1].value),Ps=js>ns?-1:1,Is=ip(Ps*(gr.start-js),0),bd=ip(Ps*(ns-gr.end),0);if(Is>Ki||bd>Ji){var Ro=this._getConvertIntervalCoefficient(bd+Is,Re);Is>=Ki&&(go=l[0].value),bd>=Ji&&(Ma=l[Zo-1].value),Ki=ip(Is,Ki)/Ro,Ji=ip(bd,Ji)/Ro}}if(Cr=void 0===Cr?Ki/Ra:Cr,fr=void 0===fr?Ji/Ra:fr,!He)if(this._translator.isInverted()){var jo,Qs;go=null!==(jo=go)&&void 0!==jo?jo:At.from(gr.start+Re*Cr,-1),Ma=null!==(Qs=Ma)&&void 0!==Qs?Qs:At.from(gr.end-Re*fr,1)}else{var rc,$c;go=null!==(rc=go)&&void 0!==rc?rc:At.from(gr.start-Re*Cr,-1),Ma=null!==($c=Ma)&&void 0!==$c?$c:At.from(gr.end+Re*fr,1)}var{correctedMin:Xu,correctedMax:ku,start:ud,end:Pg}=this.getCorrectedValuesToZero(go,Ma);return Ki=ud??Ki,Ji=Pg??Ji,{startPadding:At.isInverted()?Ji:Ki,endPadding:At.isInverted()?Ki:Ji,minValue:Xu??go,maxValue:ku??Ma,interval:Tn,isSpacedMargin:Ki===Ji&&0!==Ki}},getCorrectedValuesToZero(l,u){var lt,At,di,Di,S=this,U=S._translator,ae=S._getCanvasStartEnd(),Me=S._getViewportRange(),Re=S._getScreenDelta(),Ki=(Ji,rn)=>{var Tn=Dh(ae.start-Ji),Gn=Dh(ae.end-rn),Cr=S._getConvertIntervalCoefficient(Tn+Gn,Re);lt=Tn/Cr,At=Gn/Cr};return!S.isArgumentAxis&&"datetime"!==S._options.dataType&&(l*Me.min<=0&&l*Me.minVisible<=0&&(Ki(U.translate(0),U.translate(u)),di=0),u*Me.max<=0&&u*Me.maxVisible<=0&&(Ki(U.translate(l),U.translate(0)),Di=0)),{start:isFinite(lt)?lt:null,end:isFinite(At)?At:null,correctedMin:di,correctedMax:Di}},applyMargins(){if(!this._isSynchronized){var l=this._calculateValueMargins(this._majorTicks),u=(0,vr.X)({},this._canvas,{startPadding:l.startPadding,endPadding:l.endPadding});if(this._translator.updateCanvas(this._processCanvas(u)),isFinite(l.interval)){var S=this._translator.getBusinessRange();S.addRange({interval:l.interval}),this._translator.updateBusinessRange(S)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines(){var l=(this._options.constantLines||[]).map(u=>function nm(l,u){var ae,Re,He,S=u.label||{},U=S.position||"inside",Me=!1;return l._checkAlignmentConstantLineLabels(S),{options:u,labelOptions:S,labelPosition:U,label:null,line:null,getParsedValue:()=>(Me||(ae=l.validateUnit(u.value,"E2105","constantLine"),Me=!0),ae),draw(){if(!(0,Wn.O9)(u.value)||l._translator.getBusinessRange().isEmpty())return this;var lt=l._getCanvasStartEnd(),At=this.getParsedValue();this.coord=l._getConstantLinePos(At,lt.start,lt.end);var di=u.displayBehindSeries?l._axisConstantLineGroups.under:l._axisConstantLineGroups.above,Di=di[U];if(Di||(Di=di[l._isHorizontal?S.verticalAlignment:S.horizontalAlignment]),!(0,Wn.O9)(this.coord))return this;var Ji=l._createConstantLine(this.coord,{stroke:u.color,"stroke-width":u.width,dashStyle:u.dashStyle});return this.line=Ji.append(di.inside),this.label=S.visible?l._drawConstantLineLabels(At,S,this.coord,Di):null,this.updatePosition(),this},getContentContainer(){return this.label},removeLabel(){this.label&&this.label.remove()},updatePosition(lt){var At=l._getCanvasStartEnd(),di=l._getConstantLinePos(this.getParsedValue(),At.start,At.end);(0,Wn.O9)(di)&&(this.coord=di,lt&&He?(this.label&&this.label.attr(l._getConstantLineLabelsCoords(He,this.labelOptions)),this.line&&this.line.attr(l._getConstantLineGraphicAttributes(He)),this.label&&this.label.animate(l._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.animate(l._getConstantLineGraphicAttributes(this.coord))):(this.label&&this.label.attr(l._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.attr(l._getConstantLineGraphicAttributes(this.coord)),l._rotateConstantLine(this.line,this.coord)))},saveCoords(){Re=He,He=this.coord},resetCoordinates(){He=Re}}}(this,u));this._outsideConstantLines=l.filter(u=>"outside"===u.labelPosition),this._insideConstantLines=l.filter(u=>"inside"===u.labelPosition)},draw:function(l,u){var S=this,U=this._options;S.borderOptions=u||{visible:!1},S._resetMargins(),S.createTicks(l),S.applyMargins(),S._clearAxisGroups(),sh(S._majorTicks),sh(S._minorTicks),sh(S._boundaryTicks),S._axisGroup.append(S._axesContainerGroup),S._drawAxis(),S._drawTitle(),bp(S._majorTicks,U.tick),bp(S._minorTicks,U.minorTick),bp(S._boundaryTicks,U.tick);var ae=S._getGridLineDrawer();Fc(S._majorTicks,ae),Fc(S._minorTicks,ae),Td(S._majorTicks,"drawLabel",S._getViewportRange(),S._getTemplate(U.label.template)),S._templatesRendered&&S._templatesRendered.reject(),S._templatesRendered=new Wd.cY,S._majorTicks.forEach(function(Re){Re.labelRotationAngle=0,Re.labelAlignment=void 0,Re.labelOffset=0}),Td(S._outsideConstantLines.concat(S._insideConstantLines),"draw"),Td(S._strips,"draw"),S._dateMarkers=S._drawDateMarkers()||[],S._stripLabelAxesGroup&&S._axisStripLabelGroup.append(S._stripLabelAxesGroup),S._gridContainerGroup&&S._axisGridGroup.append(S._gridContainerGroup),S._stripsGroup&&S._axisStripGroup.append(S._stripsGroup),S._labelsAxesGroup&&S._axisElementsGroup.append(S._labelsAxesGroup),S._constantLinesGroup&&(S._axisConstantLineGroups.above.inside.append(S._constantLinesGroup.above),S._axisConstantLineGroups.above.outside1.append(S._constantLinesGroup.above),S._axisConstantLineGroups.above.outside2.append(S._constantLinesGroup.above),S._axisConstantLineGroups.under.inside.append(S._constantLinesGroup.under),S._axisConstantLineGroups.under.outside1.append(S._constantLinesGroup.under),S._axisConstantLineGroups.under.outside2.append(S._constantLinesGroup.under)),S._measureTitle(),$r(S._majorTicks),!U.label.template&&S._applyWordWrap(),$r(S._outsideConstantLines),$r(S._insideConstantLines),$r(S._strips),$r(S._dateMarkers),S._adjustConstantLineLabels(S._insideConstantLines),S._adjustStripLabels();var Me=S._constantLabelOffset=S._adjustConstantLineLabels(S._outsideConstantLines);S._translator.getBusinessRange().isEmpty()||(S._setLabelsPlacement(),Me=S._adjustLabels(Me)),Wd.z7.apply(this,S._majorTicks.map(Re=>Re.getTemplateDeferred())).done(()=>{S._templatesRendered.resolve()}),Me=S._adjustDateMarkers(Me),S._adjustTitle(Me)},getTemplatesDef(){return this._templatesRendered},setRenderedState(l){this._drawn=l},isRendered(){return this._drawn},_applyWordWrap(){var l,u,S,U=this._options,ae=this._tickInterval;(0,Wn.O9)(ae)&&(l=this.getTranslator().getInterval("datetime"===U.dataType?qn.A.dateToMilliseconds(ae):ae));var Me=this._validateDisplayMode(U.label.displayMode),Re=this._validateOverlappingMode(U.label.overlappingBehavior,Me);if(("none"!==(U.label.wordWrap||"none")||"none"!==(U.label.textOverflow||"none"))&&Me!==Ip&&Re!==Ip&&"auto"!==Re){var At=(0,Wn.O9)(U.placeholderSize)?U.placeholderSize-U.label.indentFromAxis:void 0;this._isHorizontal?(u=l,S=At):(u=At,S=l);var di=!1,Di=!1;u&&this._majorTicks.some(Ki=>Ki.labelBBox.width>u)&&(di=!0),S&&this._majorTicks.some(Ki=>Ki.labelBBox.height>S)&&(Di=!0),(di||Di)&&(this._majorTicks.forEach(Ki=>{Ki.label&&Ki.label.setMaxSize(u,S,U.label)}),$r(this._majorTicks))}},_measureTitle:Ia.lQ,animate(){Td(this._majorTicks,"animateLabels")},updateSize(l,u){var S=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.updateCanvas(l),S&&(this._checkTitleOverflow(),this._measureTitle(),this._updateTitleCoords()),this._reinitTranslator(this._getViewportRange()),this.applyMargins();var U=!this._firstDrawing&&u,ae=this._options;sh(this._majorTicks),sh(this._minorTicks),sh(this._boundaryTicks),this._resetApplyingAnimation&&!this._firstDrawing&&this._resetStartCoordinates(),am(this._majorTicks),am(this._minorTicks),am(this._boundaryTicks),this._axisElement&&this._updateAxisElementPosition(),yp(this._majorTicks,ae.tick,U),yp(this._minorTicks,ae.minorTick,U),yp(this._boundaryTicks,ae.tick),Td(this._majorTicks,"updateLabelPosition",U),this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(Me=>Me.updatePosition(U)),Td(this._strips,"updatePosition",U),Eu(this._majorTicks,U),Eu(this._minorTicks,U),U&&Td(this._ticksToRemove||[],"fadeOutElements"),this.prepareAnimation(),this._ticksToRemove=null,this._translator.getBusinessRange().isEmpty()||(this._firstDrawing=!1),this._resetApplyingAnimation=!1,this._updateLabelsPosition()},_updateLabelsPosition:Ia.lQ,prepareAnimation(){var l="saveCoords";Td(this._majorTicks,l),Td(this._minorTicks,l),Td(this._insideConstantLines,l),Td(this._outsideConstantLines,l),Td(this._strips,l)},_resetStartCoordinates(){var l="resetCoordinates";Td(this._majorTicks,l),Td(this._minorTicks,l),Td(this._insideConstantLines,l),Td(this._outsideConstantLines,l),Td(this._strips,l)},applyClipRects:function(l,u){this._axisGroup.attr({"clip-path":u}),this._axisStripGroup.attr({"clip-path":l}),this._axisElementsGroup.attr({"clip-path":u})},_validateVisualRange(l){var u=(0,Zr.Od)(l);return void 0!==u.startValue&&(u.startValue=this.validateUnit(u.startValue)),void 0!==u.endValue&&(u.endValue=this.validateUnit(u.endValue)),(0,Zr.uD)(u,!uu(l))},_validateOptions(l){l.wholeRange=this._validateVisualRange(l.wholeRange),l.visualRange=l._customVisualRange=this._validateVisualRange(l._customVisualRange),this._setVisualRange(l._customVisualRange)},validate(){var l=this._options,u=this.isArgumentAxis?l.argumentType:l.valueType,S=u?(0,ef.S)(u):function(U){return U};this.parser=S,l.dataType=u,this._validateOptions(l)},resetVisualRange(l){this._seriesData.minVisible=this._seriesData.min,this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!l,end:!!l})},_setVisualRange(l,u){var S=this.adjustRange((0,Zr.Od)(l));u?((0,Wn.O9)(S.startValue)&&(this._viewport.startValue=S.startValue),(0,Wn.O9)(S.endValue)&&(this._viewport.endValue=S.endValue)):this._viewport=S},_applyZooming(l,u){this._resetVisualRangeOption(),this._setVisualRange(l,u);var S=this.getViewport();this._seriesData.userBreaks=this._getScaleBreaks(this._options,{minVisible:S.startValue,maxVisible:S.endValue},this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},getZoomStartEventArg(l,u){return{axis:this,range:this.visualRange(),cancel:!1,event:l,actionType:u}},_getZoomEndEventArg(l,u,S,U,ae){var Me=this.visualRange();return{axis:this,previousRange:l,range:Me,cancel:!1,event:u,actionType:S,zoomFactor:U,shift:ae,rangeStart:Me.startValue,rangeEnd:Me.endValue}},getZoomBounds(){var l=(0,Zr.Od)(this._options.wholeRange),u=this.getTranslator().getBusinessRange(),S={startValue:_l(this._initRange.startValue,u.min),endValue:_l(this._initRange.endValue,u.max)};return{startValue:_l(l.startValue,S.startValue),endValue:_l(l.endValue,S.endValue)}},setInitRange(){this._initRange={},0===Object.keys(this._options.wholeRange||{}).length&&(this._initRange=this.getZoomBounds())},_resetVisualRangeOption(){this._options._customVisualRange={}},getTemplatesGroups(){return this._majorTicks?this._majorTicks.map(u=>u.templateContainer).filter(u=>(0,Wn.O9)(u)):[]},setCustomVisualRange(l){this._options._customVisualRange=l},visualRange(){var u,l=arguments;if(0===l.length){var Me,Re,S=this._getAdjustedBusinessRange(),U=S.minVisible,ae=S.maxVisible;return"discrete"===this._options.type?{startValue:U=null!==(Me=U)&&void 0!==Me?Me:S.categories[0],endValue:ae=null!==(Re=ae)&&void 0!==Re?Re:S.categories[S.categories.length-1],categories:(0,Zr.jg)(S.categories,U,ae).categories}:{startValue:U,endValue:ae}}u=uu(l[0])?l[0]:(0,Wn.Qd)(l[0])?(0,vr.X)({},l[0]):[l[0],l[1]];var He=this.handleZooming(u,l[1]);He.isPrevented||this._visualRange(this,He)},handleZooming(l,u,S,U){u=u||{},(0,Wn.O9)(l)&&((l=this._validateVisualRange(l)).action=U);var ae=this.getZoomStartEventArg(S,U),Me=ae.range;!u.start&&this._eventTrigger("zoomStart",ae);var Re={isPrevented:ae.cancel,skipEventRising:u.skipEventRising,range:l||ae.range};return ae.cancel||((0,Wn.O9)(l)&&this._applyZooming(l,u.allowPartialUpdate),(0,Wn.O9)(this._storedZoomEndParams)||(this._storedZoomEndParams={startRange:Me,type:this.getOptions().type}),this._storedZoomEndParams.event=S,this._storedZoomEndParams.action=U,this._storedZoomEndParams.prevent=!!u.end),Re},handleZoomEnd(){if((0,Wn.O9)(this._storedZoomEndParams)&&!this._storedZoomEndParams.prevent){var l=this._storedZoomEndParams.startRange,u=this._storedZoomEndParams.event,S=this._storedZoomEndParams.action,U={minVisible:l.startValue,maxVisible:l.endValue,categories:l.categories},ae=this.getOptions().type===this._storedZoomEndParams.type,Me=ae?(0,oa.Ai)(this.getVisualRangeCenter()-this.getVisualRangeCenter(U,!1)):NaN,Re=ae?+(Math.round(this.getVisualRangeLength(U)/(this.getVisualRangeLength()||1)+"e+2")+"e-2"):NaN,He=this._getZoomEndEventArg(l,u,S,Re,Me);He.cancel=this.checkZoomingLowerLimitOvercome(1===Re?"pan":"zoom",Re).stopInteraction,this._eventTrigger("zoomEnd",He),He.cancel&&this._restorePreviousVisualRange(l),this._storedZoomEndParams=null}},_restorePreviousVisualRange(l){this._storedZoomEndParams=null,this._applyZooming(l),this._visualRange(this,l)},checkZoomingLowerLimitOvercome(l,u,S){var He,U=this._options,ae=this._translator,Me=U.minVisualRangeLength,Re=S,lt="zoom"===l&&u>=1,At=ae.getBusinessRange();S&&(He={minVisible:(He=this.adjustRange((0,Zr.Od)(S))).startValue,maxVisible:He.endValue,categories:At.categories});var di=this.getVisualRangeLength(At),Di=this.getVisualRangeLength(He);if((0,Wn.O9)(Me)||"discrete"===U.type)Me=ae.convert(Me),He&&Me<di&&Me>=Di?(Re=(0,Zr.Od)(ae.getRangeByMinZoomValue(Me,He)),lt=!1):lt&=Me>Di;else{var Ki=this._translator.canvasLength;lt&=this.getVisualRangeLength({minVisible:At.min,maxVisible:At.max,categories:At.categories})/Ki>=Di}return{stopInteraction:!!lt,correctedRange:Re}},isExtremePosition(l){var u,S;"discrete"===this._options.type?(S=this._translator.getBusinessRange(),u=l?S.categories[S.categories.length-1]:S.categories[0]):(S=this.getZoomBounds(),u=l?S.endValue:S.startValue);var U=this.getTranslator(),ae=U.translate(u),Me=this.visualRange(),Re=U.translate(l?Me.endValue:Me.startValue);return Dh(Re-ae)<5},getViewport(){return this._viewport},getFullTicks:function(){var l=this._majorTicks||[];return"discrete"===this._options.type?Tf(l):Tf(l.concat(this._minorTicks,this._boundaryTicks)).sort(function(u,S){return(0,Zr.RP)(u)-(0,Zr.RP)(S)})},measureLabels:function(l,u){var Me,He,S=this,U=S._options,ae=U.visible?U.width:0,Re=u?U.label.indentFromAxis+.5*U.tick.length:0,lt=S._getViewportRange();if(lt.isEmpty()||!U.label.visible||!S._axisElementsGroup)return{height:ae,width:ae,x:0,y:0};S._majorTicks?Me=Tf(S._majorTicks):(S.updateCanvas(l),Me=S._createTicksAndLabelFormat(lt,Ia.lQ),He=Me.tickInterval,Me=Me.ticks);var At=Me.reduce(function(Ki,Ji,rn){var Tn=S.formatLabel(Ji,U.label,lt,void 0,He,Me);return Ki.length<Tn.length?Tn:Ki},S.formatLabel(Me[0],U.label,lt,void 0,He,Me)),di=S._renderer.text(At,0,0).css(S._textFontStyles).attr(S._textOptions).append(S._renderer.root),Di=di.getBBox();return di.remove(),{x:Di.x,y:Di.y,width:Di.width+Re,height:Di.height+Re}},_setLabelsPlacement:function(){if(this._options.label.visible){var Me,l=this._options.label,u=this._validateDisplayMode(l.displayMode),S=this._validateOverlappingMode(l.overlappingBehavior,u),U="none"===S||"ignore"===S,ae={rotationAngle:l.rotationAngle,staggeringSpacing:l.staggeringSpacing},Re=this._majorTicks.map(function(lt){return lt.labelBBox}),He=this._getStep(Re);switch(u){case Ip:U&&(Me=!0,He=1),this._applyLabelMode(u,He,Re,l,Me);break;case"stagger":U&&(He=2),this._applyLabelMode(u,ip(He,2),Re,l);break;default:this._applyLabelOverlapping(Re,S,He,ae)}}},_applyLabelOverlapping:function(l,u,S,U){var ae=this._options.label,Me=this._majorTicks;"none"===u||"ignore"===u||(S>1&&l.some(function(Re,He,lt){return 0!==He&&co_areLabelsOverlap(Re,lt[He-1],ae.minSpacing,ae.alignment)})&&this._applyLabelMode(u,S,l,U),this._checkBoundedLabelsOverlapping(Me,l,u),this._checkShiftedLabels(Me,l,ae.minSpacing,ae.alignment))},_applyLabelMode:function(l,u,S,U,ae){var lt,At,Me=this._majorTicks,Re=this._options.label,He=U.rotationAngle;switch(l){case Ip:Re.userAlignment||(At=He<0?hu:zl,He%90==0&&(At=_p)),Mh(Me,u=ae?u:this._getStep(S,He),function(Di){var Ki=Di.getContentContainer();Ki&&(Ki.rotate(He),Di.labelRotationAngle=He,At&&(Di.labelAlignment=At))});break;case"stagger":lt=this._getMaxLabelHeight(S,U.staggeringSpacing),Mh(Me,u-1,function(Di,Ki){Ki/(u-1)%2!=0&&(Di.labelOffset=lt)});break;case"auto":case"_auto":2===u?this._applyLabelMode("stagger",u,S,U):this._applyLabelMode(Ip,u,S,{rotationAngle:Bc(S,Re)});break;default:Mh(Me,u)}},getMarkerTrackers:Ia.lQ,_drawDateMarkers:Ia.lQ,_adjustDateMarkers:Ia.lQ,coordsIn:Ia.lQ,areCoordsOutsideAxis:Ia.lQ,_getSkippedCategory:Ia.lQ,_initAxisPositions:Ia.lQ,_drawTitle:Ia.lQ,_updateTitleCoords:Ia.lQ,_adjustConstantLineLabels:Ia.lQ,_createTranslator:function(){return new Rc({},{},{})},_updateTranslator:function(){var l=this._translator;l.update(l.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var l,u,S,U=this._options;return{isHorizontal:this._isHorizontal,shiftZeroValue:!this.isArgumentAxis,interval:U.semiDiscreteInterval,firstDayOfWeek:null===(l=U.workWeek)||void 0===l?void 0:l[0],stick:this._getStick(),breaksSize:null!==(u=null===(S=U.breakStyle)||void 0===S?void 0:S.width)&&void 0!==u?u:0}},getVisibleArea(){var l=this._getCanvasStartEnd();return[l.start,l.end].sort((u,S)=>u-S)},_getCanvasStartEnd:function(){var l=this._isHorizontal,u=this._canvas||{},S=this._translator.getBusinessRange().invert,U=l?[u.left,u.width-u.right]:[u.height-u.bottom,u.top];return S&&U.reverse(),{start:U[0],end:U[1]}},_getScreenDelta:function(){var l=this._getCanvasStartEnd(),u=this._seriesData&&this._seriesData.breaks||[],S=u.length;return Dh(l.start-l.end)-(S?u[S-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_filterBreaks:function(){return[]},_adjustTitle:Ia.lQ,_checkTitleOverflow:Ia.lQ,getSpiderTicks:Ia.lQ,setSpiderTicks:Ia.lQ,_checkBoundedLabelsOverlapping:Ia.lQ,_checkShiftedLabels:Ia.lQ,drawScaleBreaks:Ia.lQ,_visualRange:Ia.lQ,_rotateConstantLine:Ia.lQ,applyVisualRangeSetter(l){this._visualRange=l},getCategoriesSorter(l){return this.isArgumentAxis?l:this._options.categoriesSortingMethod??this._options.categories},_getAdjustedBusinessRange(){return this.adjustViewport(this._translator.getBusinessRange())}};var{round:Mu,abs:cf,pow:Nm,sqrt:hg}=Math,pg=Math.min,fg=.3;function om(l){return l.getStackName()||l.getBarOverlapGroup()}function fc(l,u,S){var U,ae,di,Me=[],Re=[],He={},lt=u.barGroupWidth,At=null===(U=l[0])||void 0===U?void 0:U.getArgumentAxis();if(null!==(ae=l[0])&&void 0!==ae&&ae.useAggregation()){var Di,Ki="datetime"===(null===(Di=l[0])||void 0===Di?void 0:Di.argumentType),Ji=At.getTickInterval(),rn=At.getAggregationInterval();Ji=Ki?qn.A.dateToMilliseconds(Ji):Ji,di=(rn=Ki?qn.A.dateToMilliseconds(rn):rn)<Ji?rn:Ji}di=At?.getTranslator().getInterval(di);var Tn=lt?di>lt?lt:di:di*(1-function Pf(l){return l<0||l>1?fg:l}(u.barGroupPadding));l.forEach(function(Gn,Cr){var Fr,fr=om(Gn)||Cr.toString();for(Fr in Gn.pointsByArgument)-1===Re.indexOf(Fr.valueOf())&&Re.push(Fr.valueOf());-1===Me.indexOf(fr)&&(Me.push(fr),He[fr]=[]),He[fr].push(Gn)}),Re.forEach(function(Gn){var Cr=Me.reduce((Fr,Or)=>(function mv(l,u){return l.some(function(S){return!S.getOptions().ignoreEmptyPoints||S.getPointsByArg(u,!0).some(function(U){return U.hasValue()})})}(He[Or],Gn)&&Fr.push(Or),Fr),[]),fr=Hu(Tn,Cr.length);Me.forEach(Fr=>{!function Ng(l,u,S,U,ae,Me,Re){l.forEach(function(He){var rn,lt=Re(u.indexOf(U),u.length),At=He.getPointsByArg(S,!0),di=function s_(l){return l<0||l>1?void 0:l}(He.getOptions().barPadding),Di=He.getOptions().barWidth,Ki=uf(lt,ae),Ji=ae.width;-1!==lt&&(((0,Wn.O9)(di)||(0,Wn.O9)(Di))&&(Ji=(rn=Hu(Me,u.length,1-di,Di)).width,He.getBarOverlapGroup()||(Ki=uf(lt,rn))),function sm(l,u,S){(0,ba.__)(l,function(U,ae){ae.correctCoordinates({width:u,offset:S})})}(At,Ji,Ki))})}(He[Fr],Cr,Gn,Fr,fr,Tn,S)})})}function Hu(l,u,S,U){var ae,Me;return U?(Me=pg(U,l/u),ae=u>1?Mu((l-Mu(Me)*u)/(u-1)):0):(0,Wn.O9)(S)?(Me=l*S/u,ae=u>1?Mu((l-l*S)/(u-1)):0):Me=(l-(ae=Mu(l/u*.2))*(u-1))/u,{width:Me>1?Mu(Me):1,spacing:ae,middleIndex:u/2,rawWidth:Me}}function uf(l,u){return(l-u.middleIndex+.5)*(u.rawWidth<1?u.rawWidth:u.width)-(u.middleIndex-l-.5)*u.spacing}function Mc(l){return l.series.filter(function(u){return u.isVisible()})}function Lf(l,u,S){return((l.positive[u]||{})[S]||0)+(-(l.negative[u]||{})[S]||0)}function zu(l){return l?function(u,S){return S-u-1}:function(u){return u}}function Ff(l){return l[0]&&l[0].getArgumentAxis().getTranslator().isInverted()}function Vm(){var l=Mc(this);fc(l,this._options,zu(Ff(l)))}function Ah(){var l=this._options.negativesAsZeroes,u=Mc(this),S={positive:{},negative:{}},U={left:{},right:{}},ae={},Me={};u.forEach(function(Re){var He=om(Re),lt=!1,At=function Th(l){for(var S,u=l.getPoints(),U=0;U<u.length;U++){var ae=u[U];if(S=ae.initialValue&&ae.initialValue.valueOf(),cf(S)>0)break}return(0,oa._S)(S)}(Re)<0?Me:ae;Re._prevSeries=At[He],At[He]=Re,Re.holes=(0,vr.X)(!0,{},U),Re.getPoints().forEach(function(di,Di,Ki){var Ji=di.initialValue&&di.initialValue.valueOf(),rn=di.argument.valueOf(),Tn=Ji>=0?S.positive:S.negative,Gn="bar"!==Re.type;l&&Ji<0&&(Tn=S.positive,Ji=0,di.resetValue()),Tn[He]=Tn[He]||{};var Cr=Tn[He];if(Cr[rn]?(Gn&&di.correctValue(Cr[rn]),Cr[rn]+=Ji):(Cr[rn]=Ji,Gn&&di.resetCorrection()),di.hasValue())lt&&(lt=!1,U.left[rn]=(U.left[rn]||0)+(di.value.valueOf()-(isFinite(di.minValue)?di.minValue.valueOf():0)),di._skipSetLeftHole=!0);else{var fr=Ki[Di-1];!lt&&fr&&fr.hasValue()&&(rn=fr.argument.valueOf(),fr._skipSetRightHole=!0,U.right[rn]=(U.right[rn]||0)+(fr.value.valueOf()-(isFinite(fr.minValue)?fr.minValue.valueOf():0))),lt=!0}})}),u.forEach(function(Re){var He=Re.holes;Re.getPoints().forEach(function(lt){var At=lt.argument.valueOf();lt.resetHoles(),!lt._skipSetLeftHole&<.setHole(He.left[At]||U.left[At]&&0,"left"),!lt._skipSetRightHole&<.setHole(He.right[At]||U.right[At]&&0,"right"),lt._skipSetLeftHole=null,lt._skipSetRightHole=null})}),this._stackKeepers=S,u.forEach(function(Re){Re.getPoints().forEach(function(He){var lt=He.argument.valueOf(),At=om(Re),di=Lf(S,At,lt),Di=function Vg(l,u,S){return((l.positive[u]||{})[S]||0)+((l.negative[u]||{})[S]||0)}(S,At,lt);He.setPercentValue(di,Di,U.left[lt],U.right[lt])})})}function Bf(){var l=this,u=Mc(l),S=l._stackKeepers,U={positive:{},negative:{}};(0,ba.__)(u,function(ae,Me){var Re=Me.getOptions().minBarSize,He=Me.getValueAxis().getTranslator(),lt=Re&&He.getMinBarSize(Re),At=Me.getStackName();(0,ba.__)(Me.getPoints(),function(di,Di){if(Di.hasValue()){var Ki=Di.initialValue&&Di.initialValue.valueOf(),Ji=Di.argument.valueOf();l.fullStacked&&(Ki=Ki/Lf(S,At,Ji)||0);var rn=He.checkMinBarSize(Ki,lt,Di.value),Tn=function Lp(l){return l>=0?"positive":"negative"}(rn),Gn=U[Tn][At]=U[Tn][At]||{};Gn[Ji]?(Di.minValue=Gn[Ji],Gn[Ji]+=rn):Gn[Ji]=rn,Di.value=Gn[Ji]}})}),l.fullStacked&&function lm(l,u){(0,ba.__)(l,function(S,U){var ae=U.getStackName?U.getStackName():"default";(0,ba.__)(U.getPoints(),function(Me,Re){var He=Lf(u,ae,Re.argument.valueOf());0!==He&&(Re.value=Re.value/He,(0,Wn.kf)(Re.minValue)&&(Re.minValue=Re.minValue/He))})})}(u,U)}function dm(){var l=Mc(this);(0,ba.__)(l,function(u,S){var U=S.getOptions().minBarSize,ae=S.getValueAxis().getTranslator(),Me=U&&ae.getMinBarSize(U);Me&&(0,ba.__)(S.getPoints(),function(Re,He){He.hasValue()&&He.value.valueOf()-He.minValue.valueOf()<Me&&(He.value=He.value.valueOf()+Me/2,He.minValue=He.minValue.valueOf()-Me/2)})})}function Hm(){(0,ba.__)(this.series,function(l,u){var S=u.getOptions().minBarSize,U=u.getValueAxis().getTranslator(),ae=S&&U.getMinBarSize(S);ae&&(0,ba.__)(u.getPoints(),function(Me,Re){Re.hasValue()&&(Re.value=U.checkMinBarSize(Re.initialValue,ae))})})}function Ih(){var l=Mc(this);fc(l,{barGroupPadding:.3},zu(Ff(l)))}function Uu(){var l=Mc(this);if(l.length){var di,Ki,u=this._options,S=l[0].getArgumentAxis().getVisibleArea(),U=l[0].getValueAxis().getVisibleArea(),ae=pg(S[1]-S[0],U[1]-U[0]),Me=Nm(u.minBubbleSize,2),Re=Nm(ae*u.maxBubbleSize,2),He=(ae*u.maxBubbleSize+u.minBubbleSize)/2,lt=1/0,At=-1/0;(0,ba.__)(l,function(Tn,Gn){(0,ba.__)(Gn.getPoints(),function(Cr,fr){At=At>fr.size?At:fr.size,lt=lt<fr.size?lt:fr.size})});var Ji=At-lt,rn=cf(Re-Me);(0,ba.__)(l,function(Tn,Gn){(0,ba.__)(Gn.getPoints(),function(Cr,fr){At===lt?di=Mu(He):(Ki=cf(fr.size-lt)/Ji,di=Mu(hg(rn*Ki+Me))),fr.correctCoordinates(di)})})}}function xm(l){switch(this.type=(0,Zr.NU)(l.type),this.pane=l.pane,this.series=[],this.updateOptions(l),this.type){case"bar":this.adjustSeriesDimensions=Vm,this.updateSeriesValues=Hm,this.adjustSeriesValues=Ah;break;case"rangebar":this.adjustSeriesDimensions=Vm,this.updateSeriesValues=dm;break;case"fullstackedbar":this.fullStacked=!0,this.adjustSeriesDimensions=Vm,this.adjustSeriesValues=Ah,this.updateSeriesValues=Bf;break;case"stackedbar":this.adjustSeriesDimensions=Vm,this.adjustSeriesValues=Ah,this.updateSeriesValues=Bf;break;case"fullstackedarea":case"fullstackedline":case"fullstackedspline":case"fullstackedsplinearea":this.fullStacked=!0,this.adjustSeriesValues=Ah;break;case"stackedarea":case"stackedsplinearea":case"stackedline":case"stackedspline":this.adjustSeriesValues=Ah;break;case"candlestick":case"stock":this.adjustSeriesDimensions=Ih;break;case"bubble":this.adjustSeriesDimensions=Uu}}xm.prototype={constructor:xm,adjustSeriesDimensions:Ia.lQ,adjustSeriesValues:Ia.lQ,updateSeriesValues:Ia.lQ,updateOptions:function(l){this._options=l},dispose:function(){this.series=null},add:function(l){var u=this.type;this.series=(0,Zr.Tj)(l,S=>S.type===u?S:null)}};var P_=D(99299),{isArray:Fp}=Array,np="commonAxisSettings",Gu="default",Bp="VISUAL_RANGE";function Um(l){return Fp(l)?0===l.length?[{}]:l:[l]}function Wv(l,u,S,U){var ae,Me;if(S){ae={skipEventRising:!0};var Re=Np(l.fullName,Me=l.value);Re&&(ae={allowPartialUpdate:!0},Me=Re)}else Me=((0,Wn.O9)(U)?l.value[U]:l.value).visualRange;u.visualRange(Me,ae)}function Np(l,u){var U=l.split(".").at(-1);if("endValue"===U||"startValue"===U)return{[U]:u}}var pf=P_.c.inherit({_fontFields:["".concat(np,".label.").concat("font"),"".concat(np,".title.").concat("font")],_partialOptionChangesMap:{visualRange:Bp,_customVisualRange:Bp,strips:"REFRESH_AXES",constantLines:"REFRESH_AXES"},_partialOptionChangesPath:{argumentAxis:["strips","constantLines","visualRange","_customVisualRange"],valueAxis:["strips","constantLines","visualRange","_customVisualRange"]},_initCore(){this._panesClipRects={},this.callBase()},_disposeCore(){var l=this._disposeObjectsInArray,u=this._panesClipRects;this.callBase(),l.call(u,"fixed"),l.call(u,"base"),l.call(u,"wide"),this._panesClipRects=null,this._labelsAxesGroup.linkOff(),this._labelsAxesGroup.dispose(),this._labelsAxesGroup=null},_dispose(){var l=this._disposeObjectsInArray;this.callBase(),this.panes=null,this._legend&&(this._legend.dispose(),this._legend=null),l.call(this,"panesBackground"),l.call(this,"seriesFamilies"),this._disposeAxes()},_createPanes(){this._cleanPanesClipRects("fixed"),this._cleanPanesClipRects("base"),this._cleanPanesClipRects("wide")},_cleanPanesClipRects(l){(this._panesClipRects[l]||[]).forEach(S=>{S?.dispose()}),this._panesClipRects[l]=[]},_getElementsClipRectID(l){var u=this._panesClipRects.fixed[this._getPaneIndex(l)];return u?.id},_getPaneIndex(l){var u=l||Gu;return this.panes.findIndex(S=>S.name===u)},_updateSize(l){this.callBase(),l&&(0,cs.yf)(this.__currentCanvas,this._canvas)&&(this.__currentCanvas=(0,cs.YN)(this._canvas)),(0,Zr.FG)(this._canvas)},_reinitAxes(){this.panes=this._createPanes(),this._populateAxes(),this._axesReinitialized=!0},_populateAxes(){var Me,At,{panes:l}=this,u=this._isRotated(),S=Um(this.option("argumentAxis")||{})[0],U=this.option("valueAxis"),ae=Um(U||{}),Re=[],He=[],lt=0,di=this._getCrosshairMargins();function Di(){var Ki="defaultAxisName"+String(lt);return lt+=1,Ki}At=u?"right"===S.position?l[l.length-1].name:l[0].name:"top"===S.position?l[0].name:l[l.length-1].name,Me=(0,Zr.Tj)(l,Ki=>this._populateAxesOptions("argumentAxis",S,{pane:Ki.name,name:null,optionPath:"argumentAxis",crosshairMargin:u?di.x:di.y},u,Ki.name!==At)),ae.forEach((Ki,Ji)=>{var rn,Tn=[],{name:Gn}=Ki;Gn&&He.includes(Gn)?this._incidentOccurred("E2102"):(Gn&&He.push(Gn),Ki.pane&&Tn.push(Ki.pane),!(null===(rn=Ki.panes)||void 0===rn)&&rn.length&&(Tn=Tn.concat(Ki.panes.slice(0))),(Tn=(0,Zr.Am)(Tn)).length||Tn.push(void 0),Tn.forEach(Cr=>{var fr=Fp(U)?"valueAxis[".concat(String(Ji),"]"):"valueAxis";Re.push(this._populateAxesOptions("valueAxis",Ki,{name:Gn||Di(),pane:Cr,priority:Ji,optionPath:fr,crosshairMargin:u?di.y:di.x},u))}))}),this._redesignAxes(Me,!0,At),this._redesignAxes(Re,!1)},_redesignAxes(l,u,S){var U=[],ae=u?this._argumentAxes:this._valueAxes;l.forEach(Me=>{var Re=ae?.filter(He=>He.name===Me.name&&(!(0,Wn.O9)(Me.pane)&&this.panes.some(lt=>lt.name===He.pane)||He.pane===Me.pane));Re?.length?Re.forEach(He=>{var lt=function rp(l,u,S){if(S)return{argumentAxisType:l.argumentAxisType,argumentType:l.argumentType};var{valueAxisType:U,valueType:ae}=l.groups.find(Me=>Me.valueAxis===u);return{valueAxisType:U,valueType:ae}}(this._groupsData,He,u);He.updateOptions(Me),u?He.setTypes(lt.argumentAxisType,lt.argumentType,"argumentType"):He.setTypes(lt.valueAxisType,lt.valueType,"valueType"),He.validate(),U.push({axis:He})}):U.push({options:Me})}),ae?(0,ba.iW)(ae,(Me,Re)=>{U.some(He=>He.axis&&He.axis===Re)||this._disposeAxis(Me,u)}):ae=u?this._argumentAxes=[]:this._valueAxes=[],U.forEach(Me=>{var{axis:Re}=Me;Me.axis&&u?Me.axis.isVirtual=Me.axis.pane!==S:Me.options&&(Re=this._createAxis(u,Me.options,u?Me.options.pane!==S:void 0),ae.push(Re)),Re.applyVisualRangeSetter(this._getVisualRangeSetter())})},_disposeAxis(l,u){var S=u?this._argumentAxes:this._valueAxes,U=S[l];U&&(U.dispose(),S.splice(l,1))},_disposeAxes(){var l=this._disposeObjectsInArray;l.call(this,"_argumentAxes"),l.call(this,"_valueAxes")},_appendAdditionalSeriesGroups(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets(){return(this.series||[]).map(l=>{var u=this._getLegendOptions(l);return u.legendData.series=l,l.getOptions().showInLegend||(u.legendData.visible=!1),u})},_legendItemTextField:"name",_seriesPopulatedHandlerCore(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers(){for(var l=0;l<this.series.length;l+=1)this.series[l].drawTrackers()},_specialProcessSeries(){this._processSeriesFamilies()},_processSeriesFamilies(){var l,U,u=[],S=[],ae=this._themeManager,Me=ae.getOptions("negativesAsZeroes"),Re=ae.getOptions("negativesAsZeros"),He={minBubbleSize:ae.getOptions("minBubbleSize"),maxBubbleSize:ae.getOptions("maxBubbleSize"),barGroupPadding:ae.getOptions("barGroupPadding"),barGroupWidth:ae.getOptions("barGroupWidth"),negativesAsZeroes:(0,Wn.O9)(Me)?Me:Re};null!==(l=this.seriesFamilies)&&void 0!==l&&l.length?this.seriesFamilies.forEach(lt=>{lt.updateOptions(He),lt.adjustSeriesValues()}):(this.series.forEach(lt=>{u.includes(lt.type)||u.push(lt.type)}),this._getLayoutTargets().forEach(lt=>{U=this._getSeriesForPane(lt.name),u.forEach(At=>{var di=new xm({type:At,pane:lt.name,minBubbleSize:He.minBubbleSize,maxBubbleSize:He.maxBubbleSize,barGroupPadding:He.barGroupPadding,barGroupWidth:He.barGroupWidth,negativesAsZeroes:He.negativesAsZeroes,rotated:this._isRotated()});di.add(U),di.adjustSeriesValues(),S.push(di)})}),this.seriesFamilies=S)},_updateSeriesDimensions(){for(var l=this.seriesFamilies||[],u=0;u<l.length;u+=1){var S=l[u];S.updateSeriesValues(),S.adjustSeriesDimensions()}},_getLegendCallBack(l){var u;return null===(u=this._legend)||void 0===u?void 0:u.getActionCallback(l)},_appendAxesGroups(){this._stripsGroup.linkAppend(),this._gridGroup.linkAppend(),this._axesGroup.linkAppend(),this._labelsAxesGroup.linkAppend(),this._constantLinesGroup.linkAppend(),this._stripLabelAxesGroup.linkAppend(),this._scaleBreaksGroup.linkAppend()},_populateMarginOptions(){var l=function hf(l,u,S,U){return Math.min(U?l.width/u:l.width,U?l.height:l.height/u)*S}(this.getSize(),this.panes.length,this._themeManager.getOptions("maxBubbleSize"),this._isRotated()),u={};this._valueAxes.forEach(S=>{var U=this.series.filter(Me=>Me.getValueAxis()===S),ae={};U.forEach(Me=>{if(Me.isVisible()){var Re=function mg(l,u){return l.processBubbleSize&&(l.size=u),l}(Me.getMarginOptions(),l);ae=(0,Zr.dm)(ae,Re),u=(0,Zr.dm)(u,Re)}}),S.setMarginOptions(ae)}),this._argumentAxes.forEach(S=>S.setMarginOptions(u))},_populateBusinessRange(l,u){var S=this._isRotated(),U=this._getVisibleSeries(),ae={},Me=new St.Q({rotated:!!S}),Re=lt=>lt.pane||Gu;if(this.panes.forEach(lt=>{ae[lt.name]=new St.Q({rotated:!!S})}),this._valueAxes.forEach(lt=>{var At=new St.Q({rotated:!!S,pane:lt.pane,axis:lt.name}),di=U.filter(Di=>Di.getValueAxis()===lt);di.forEach(Di=>{var Ki=Di.getRangeData();At.addRange(Ki.val),ae[Re(lt)].addRange(Ki.arg)}),(!l||l&&di.length&<===l)&&(lt.setGroupSeries(di),lt.setBusinessRange(At,this._axesReinitialized||u,this._argumentAxes[0]._lastVisualRangeUpdateMode))}),!l||l&&U.length){Object.keys(ae).forEach(lt=>Me.addRange(ae[lt]));var He=Me.interval;this._argumentAxes.forEach(lt=>{var At,di=null!==(At=ae[Re(lt)].interval)&&void 0!==At?At:He;lt.setBusinessRange(new St.Q((0,Ad.A)((0,Ad.A)({},Me),{interval:di})),this._axesReinitialized,void 0,this._groupsData.categories)})}this._populateMarginOptions()},getArgumentAxis(){return(this._argumentAxes||[]).find(l=>!l.isVirtual)},getValueAxis(l){return(this._valueAxes||[]).find((0,Wn.O9)(l)?u=>u.name===l:u=>u.pane===this.defaultPane)},_getGroupsData(){var l=[];return this._valueAxes.forEach(u=>{l.push({series:this.series.filter(S=>S.getValueAxis()===u),valueAxis:u,valueOptions:u.getOptions()})}),{groups:l,argumentAxes:this._argumentAxes,argumentOptions:this._argumentAxes[0].getOptions()}},_groupSeries(){this._correctValueAxes(!1),this._groupsData=this._getGroupsData()},_processValueAxisFormat(){var l=[];this.series.forEach(u=>{var S=u.getValueAxis();u.isFullStackedSeries()&&(S.setPercentLabelFormat(),l.push(S))}),this._valueAxes.forEach(u=>{l.includes(u)||u.resetAutoLabelFormat()})},_populateAxesOptions(l,u,S,U,ae){var Me=this._prepareStripsAndConstantLines(l,u,U),Re=(0,vr.X)(!0,{},Me,S,this._prepareAxisOptions(l,Me,U));return ae&&(Re.visible=!1,Re.tick.visible=!1,Re.minorTick.visible=!1,Re.label.visible=!1,Re.title={}),Re},_getValFilter:l=>Pn.A.getViewPortFilter(l.getValueAxis().visualRange()||{}),_createAxis(l,u,S){var ae=(0,vr.X)({renderer:this._renderer,incidentOccurred:this._incidentOccurred,eventTrigger:this._eventTrigger,axisClass:l?"arg":"val",widgetClass:"dxc",stripsGroup:this._stripsGroup,stripLabelAxesGroup:this._stripLabelAxesGroup,constantLinesGroup:this._constantLinesGroup,scaleBreaksGroup:this._scaleBreaksGroup,axesContainerGroup:this._axesGroup,labelsAxesGroup:this._labelsAxesGroup,gridGroup:this._gridGroup,isArgumentAxis:l,getTemplate:Re=>this._getTemplate(Re)},this._getAxisRenderingOptions(l?"argumentAxis":"valueAxis")),Me=new Oh(ae);return Me.updateOptions(u),Me.isVirtual=S,Me},_applyVisualRangeByVirtualAxes:()=>!1,_applyCustomVisualRangeOption(l,u){l.getOptions().optionPath&&this._parseVisualRangeOption("".concat(l.getOptions().optionPath,".visualRange"),u)},_getVisualRangeSetter(){return(l,u)=>{var{skipEventRising:S,range:U}=u;this._applyCustomVisualRangeOption(l,U),l.setCustomVisualRange(U),l.skipEventRising=S,this._applyVisualRangeByVirtualAxes(l,U)||(this._applyingChanges?this._change_VISUAL_RANGE():this._requestChange([Bp]))}},_getTrackerSettings(){return(0,vr.X)(this.callBase(),{argumentAxis:this.getArgumentAxis()})},_prepareStripsAndConstantLines(l,u,S){return(u=this._themeManager.getOptions(l,u,S)).strips&&u.strips.forEach((U,ae)=>{u.strips[ae]=(0,vr.X)(!0,{},u.stripStyle,U)}),u.constantLines&&u.constantLines.forEach((U,ae)=>{u.constantLines[ae]=(0,vr.X)(!0,{},u.constantLineStyle,U)}),u},refresh(){this._disposeAxes(),this.callBase()},_layoutAxes(l){l();var u=this.checkForMoreSpaceForPanesCanvas();if(u){var S=this._rect.slice(),U=this._layout.backward(S,S,[u.width,u.height]);u.width=Math.max(0,U[0]),u.height=Math.max(0,U[1]),this._canvas=this._createCanvasFromRect(S),l(u)}},checkForMoreSpaceForPanesCanvas(){return this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),this._isRotated())},_parseVisualRangeOption(l,u){var S,U=l.split(/[.[]/)[0],ae=l.match(/\d+/g);ae=(0,Wn.O9)(ae)?parseInt(ae[0],10):ae,l.indexOf("visualRange")>0?("object"!==(0,Wn.NW)(u)&&(u=null!==(S=Np(l,u))&&void 0!==S?S:u),this._setCustomVisualRange(U,ae,u)):("object"===(0,Wn.NW)(u)||Fp(u))&&U.indexOf("Axis")>0&&JSON.stringify(u).indexOf("visualRange")>0&&((0,Wn.O9)(u.visualRange)?this._setCustomVisualRange(U,ae,u.visualRange):Fp(u)&&u.forEach((Me,Re)=>{(0,Wn.O9)(Me.visualRange)&&this._setCustomVisualRange(U,Re,Me.visualRange)}))},_setCustomVisualRange(l,u,S){var U=this._options.silent(l);U&&((0,Wn.O9)(u)?U[u]._customVisualRange=S:U._customVisualRange=S,this._axesReinitialized=!0)},_raiseZoomEndHandlers(){this._valueAxes.forEach(l=>l.handleZoomEnd())},_setOptionsByReference(){this.callBase(),(0,vr.X)(this._optionsByReference,{"valueAxis.visualRange":!0})},_notifyOptionChanged(l,u){this.callBase.apply(this,arguments),this._optionChangedLocker||this._parseVisualRangeOption(l,u)},_notifyVisualRange(){this._valueAxes.forEach(l=>{var u=l.getOptions().optionPath;if(u){var S="".concat(u,".visualRange"),U=(0,Zr.uD)(l.visualRange(),!Fp(this.option(S)));l.skipEventRising&&(0,Zr.tW)(U,this.option(S))?l.skipEventRising=null:this.option(u)||"valueAxis"===u?this.option(S,U):this.option(u,{name:l.name,visualRange:U})}})},_notify(){this.callBase(),this._axesReinitialized=!1,!0!==this.option("disableTwoWayBinding")&&(this.skipOptionsRollBack=!0,this._notifyVisualRange(),this.skipOptionsRollBack=!1)},_getAxesForScaling(){return this._valueAxes},_getAxesByOptionPath(l,u,S){var Me,U=this._getAxesForScaling(),ae=[];return u?(l.fullName&&(Me=l.fullName.slice(0,l.fullName.indexOf("."))),ae=U.filter(Re=>Re.getOptions().optionPath===Me)):"object"===(0,Wn.NW)(l.value)?ae=U.filter(Re=>Re.getOptions().optionPath===l.name):Fp(l.value)&&l.value.forEach((Re,He)=>{var lt=U.filter(At=>At.getOptions().optionPath==="".concat(l.name,"[").concat(He,"]"))[0];(0,Wn.O9)(Re[S])&&(0,Wn.O9)(lt)&&(ae[He]=lt)}),ae},_optionChanged(l){if(!this._optionChangedLocker){var u,S=l.fullName.indexOf("visualRange")>0||!(this.getPartialChangeOptionsName(l).indexOf("visualRange")>-1)&&void 0;(0,Wn.O9)(S)&&(u=this._getAxesByOptionPath(l,S,"visualRange"))&&(u.length>1||Fp(l.value)?u.forEach((U,ae)=>Wv(l,U,S,ae)):1===u.length&&Wv(l,u[0],S))}this.callBase(l)},_change_VISUAL_RANGE(){if(this._recreateSizeDependentObjects(!1),!this._changes.has("FULL_RENDER")){var l=this.option("resizePanesOnZoom");this._doRender({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:l??(this.option("adjustAxesOnZoom")||!1),animate:!1}),this._raiseZoomEndHandlers()}},resetVisualRange(){this._valueAxes.forEach(l=>{l.resetVisualRange(!1),this._applyCustomVisualRangeOption(l)}),this._requestChange([Bp])},_getCrosshairMargins:()=>({x:0,y:0}),_legendDataField:"series",_adjustSeriesLabels:Ia.lQ,_correctValueAxes:Ia.lQ}),zg="default",ap=[{name:zg,border:{}}],kh="discrete",{isArray:gg}=Array;function _g(l,u,S){var U=l.getOptions().grid,ae=l.getOptions().minorGrid;U.visible=u,ae&&(ae.visible=S)}function Wm(l,u,S){return S.find(ae=>ae.name===u&&ae.pane===l)||(l?Wm(void 0,u,S):void 0)}function B_(l,u){return l.priority-u.priority}function vg(l,u){var S=!1;return(0,ba.__)(l,(U,ae)=>{if(ae.name===u)return S=!0,!1}),S}function Vf(l,u,S,U){var ae=u[l]||0,Me=S[l]||0;return ae+Me+(ae&&Me?U:0)}function Ou(l,u,S){return Cm(u[l],S[l])}function Cm(l,u){return Math.max(l||0,u||0)}function Rh(l){return l.getMargins()}function jm(l,u){return l.reduce((S,U)=>{var ae,Me=u(U),Re=S.panes[U.pane]=S.panes[U.pane]||{},He=U.getMultipleAxesSpacing();Re.top=Vf("top",Re,Me,He),Re.bottom=Vf("bottom",Re,Me,He),Re.left=Ou("left",Re,Me),Re.right=Ou("right",Re,Me),S.top=Ou("top",Re,S),S.bottom=Ou("bottom",Re,S),S.left=Ou("left",Re,S),S.right=Ou("right",Re,S);var lt=null===(ae=U.getOrthogonalAxis)||void 0===ae?void 0:ae.call(U);return lt?.customPositionIsAvailable()&&(!U.customPositionIsBoundaryOrthogonalAxis()||!lt.customPositionEqualsToPredefined())&&(S[lt.getResolvedBoundaryPosition()]=0),S},{panes:{}})}function Ym(l){return l.reduce((u,S)=>{var U=S.getMargins(),ae=u.panes[S.pane]=u.panes[S.pane]||{},Me=S.getMultipleAxesSpacing();return ae.top=Ou("top",ae,U),ae.bottom=Ou("bottom",ae,U),ae.left=Vf("left",ae,U,Me),ae.right=Vf("right",ae,U,Me),u.top=Ou("top",ae,u),u.bottom=Ou("bottom",ae,u),u.left=Ou("left",ae,u),u.right=Ou("right",ae,u),u},{panes:{}})}function lh(l,u,S,U,ae){l.forEach(Me=>{Me[u](S?.[Me.pane],U?.[Me.pane]||U,ae)})}function Ug(l,u,S,U,ae){function Me(di,Di,Ki){return((l?["left","right"]:["top","bottom"]).includes(di)?Di.panes[Ki]||{}:Di)[di]}function Re(di,Di,Ki,Ji){return Cm(Me(di,Di,Ji),Me(di,Ki,Ji))}var He=di=>"original".concat(di[0].toUpperCase()).concat(di.slice(1));function lt(di,Di,Ki,Ji,rn,Tn){(Di=Di.sort((Or,gr)=>di[gr][Ji]-di[Or][Ji])).forEach(Or=>{var gr=di[Or];Tn.forEach(Hr=>{gr[Hr]=gr[He(Hr)]+Re(Hr,U,ae,Or)})});var Gn=di[Di[0]],Cr=Gn[Ki]-Gn[He(rn)]-di[Di.at(-1)][He(Ji)],fr=Di.reduce((Or,gr)=>Or-Re(Ji,U,ae,gr)-Re(rn,U,ae,gr),Cr)-Zr.z7*(Di.length-1);fr-=Object.keys(S).reduce((Or,gr)=>Or+((0,Zr.aI)(S[gr])?0:S[gr].height),0);var Fr=Gn[Ki]-Gn[He(rn)]-(fr<0?fr:0);Di.reduce((Or,gr)=>{var Hr=di[gr],Ra=S[gr];return Or-=Re(rn,U,ae,gr),Hr[rn]=Gn[Ki]-Or,Or-=(0,Zr.aI)(Ra)?Math.floor(fr*Ra.height):Ra.height,Hr[Ji]=Or,Or-(Re(Ji,U,ae,gr)+Zr.z7)},Fr)}var At=Object.keys(u);return l?lt(u,At,"width","left","right",["top","bottom"]):lt(u,At,"height","top","bottom",["left","right"]),u}function N_(l,u,S,U){u&&(lh(l,"createTicks",S),nt_synchronize(l)),lh(l,"draw",!u&&S,U)}function bg(l,u){var S={};return function(U){if(!U.customPositionIsAvailable()||U.customPositionEqualsToPredefined()){var ae=S[U.pane]=S[U.pane]||{top:0,left:0,bottom:0,right:0},Me=U.getMultipleAxesSpacing(),Re=U.getMargins();U.shift(ae),ae[l]=Vf(l,ae,Re,Me),ae[u]=Vf(u,ae,Re,Me)}else U.shift({top:0,left:0,bottom:0,right:0})}}function l_(l,u){var U,S=0;return Object.keys(u.panes).forEach(ae=>{U=u.panes[ae],S+="height"===l?U.top+U.bottom:U.left+U.right}),S}function d_(l,u,S,U){var ae=0;l[u]>0&&(ae=l_(u,U(S,Rh)),lh(S,"hideTitle"),l[u]-=ae-l_(u,U(S,Rh))),l[u]>0&&lh(S,"hideOuterElements")}var c_=(l,u,S)=>u.x-S<=l.x&&u.x+S>=l.x&&u.y-S<=l.y&&u.y+S>=l.y,u_=(l,u,S)=>{for(var U=l.getOptions().size/2,ae=0;ae<u.length;ae+=1)if((S||u[ae].x!==l.x||u[ae].y!==l.y)&&c_(l,u[ae],U))return!0;return!1},Ke=pf.inherit({_themeSection:"chart",_fontFields:["crosshair.label.font"],_initCore(){this.paneAxis={},this.callBase()},_init(){this._containerInitialHeight=(0,nd.Vd)()?(0,zs.Oq)(this._$element):0,this.callBase()},_correctAxes(){this._correctValueAxes(!0)},_setDeprecatedOptions(){this.callBase(),(0,vr.X)(this._deprecatedOptions,{"argumentAxis.aggregateByCategory":{since:"23.1",message:"Use the aggregation.enabled property"}})},_getExtraOptions:Ia.lQ,_createPanes(){var S,l=this.option("panes"),u=0;return(!l||gg(l)&&!l.length)&&(l=ap),this.callBase(),S=this.option("defaultPane"),l=(0,vr.X)(!0,[],gg(l)?l:[l]),(0,ba.__)(l,(U,ae)=>{ae.name=(0,Wn.O9)(ae.name)?ae.name:zg+u++}),(0,Wn.O9)(S)?vg(l,S)||(this._incidentOccurred("W2101",[S]),S=l[l.length-1].name):S=l[l.length-1].name,this.defaultPane=S,this._isRotated()?l.reverse():l},_getAxisRenderingOptions:()=>({axisType:"xyAxes",drawingType:"linear"}),_prepareAxisOptions(l,u,S){return{isHorizontal:"argumentAxis"===l!==S,containerColor:this._themeManager.getOptions("containerBackgroundColor")}},_checkPaneName(l){var u=(0,Zr.Tj)(this.panes,S=>S.name);return l.pane=l.pane||this.defaultPane,u.includes(l.pane)},_initCustomPositioningAxes(){var l=this.getArgumentAxis(),u=l.getOptions().customPositionAxis,S=this._valueAxes.find(U=>U.pane===l.pane&&(!u||u===U.name));this._valueAxes.forEach(U=>{l!==U.getOrthogonalAxis()&&(U.getOrthogonalAxis=()=>l,U.customPositionIsBoundaryOrthogonalAxis=()=>l.customPositionIsBoundary())}),(0,Wn.O9)(S)&&S!==l.getOrthogonalAxis()?(l.getOrthogonalAxis=()=>S,l.customPositionIsBoundaryOrthogonalAxis=()=>this._valueAxes.some(U=>U.customPositionIsBoundary())):(0,Wn.O9)(l.getOrthogonalAxis())&&!(0,Wn.O9)(S)&&(l.getOrthogonalAxis=Ia.lQ)},_getAllAxes(){return this._argumentAxes.concat(this._valueAxes)},_resetAxesAnimation(l,u){((0,Wn.O9)(u)?u^this._isRotated()?this._argumentAxes:this._valueAxes:this._getAllAxes()).forEach(U=>{U.resetApplyingAnimation(l)})},_axesBoundaryPositioning(){var l=this._getAllAxes(),u=!1;return l.forEach(S=>{if(S.customPositionIsAvailable()){var U=S.customPositionIsBoundary();S._customBoundaryPosition=S.getCustomBoundaryPosition(),u=u||U!==S.customPositionIsBoundary()}}),u},_getCrosshairMargins(){var l=this._getCrosshairOptions()||{},u=l.enabled,S=function Zd(){return{x:Ks,y:ph}}(),U=(0,vr.X)(!0,{},l.label,l.horizontalLine.label),ae=(0,vr.X)(!0,{},l.label,l.verticalLine.label);return{x:u&&l.horizontalLine.visible&&U.visible?S.x:0,y:u&&l.verticalLine.visible&&ae.visible?S.y:0}},_getValueAxis(l,u){var He,lt,S=this._valueAxes,U=this.option("valueAxis")||{},ae=gg(U)?U:[U],Me=this._isRotated(),Re=this._getCrosshairMargins();return u=u||function L_(l,u,S){for(var U,ae=0;ae<l.length;ae+=1)if(l[ae].pane===u||void 0===l[ae].pane&&u===S){U=l[ae].name;break}return U||(U=l[0].name),U}(S,l,this.defaultPane),(lt=Wm(l,u,S))||(He=function Nf(l,u,S){var U,ae;for(ae=0;ae<u.length;ae+=1)if(u[ae].name===S){(U=u[ae]).priority=ae;break}if(!U)for(ae=0;ae<l.length;ae+=1)if(l[ae].name===S){(U=l[ae].getOptions()).priority=l[ae].priority;break}return U}(S,ae,u),He||(this._incidentOccurred("W2102",[u]),He={name:u,priority:S.length}),(lt=this._createAxis(!1,this._populateAxesOptions("valueAxis",He,{pane:l,name:u,optionPath:gg(U)?"valueAxis[".concat(He.priority,"]"):"valueAxis",crosshairMargin:Me?Re.y:Re.x},Me))).applyVisualRangeSetter(this._getVisualRangeSetter()),S.push(lt)),lt.setPane(l),lt},_correctValueAxes(l){var u=this._themeManager.getOptions("synchronizeMultiAxes"),S=this._valueAxes,U={};this.series.forEach(Me=>{var Re=Me.getValueAxis();U[Re.pane]=!0}),this.panes.forEach(Me=>{var Re=Me.name;U[Re]||this._getValueAxis(Re),l&&u&&function F_(l){var u=!1,S=[],U=l.some(Me=>{var Re=Me.getOptions().minorGrid;return Re?.visible}),ae=l.some(Me=>{var Re=Me.getOptions().grid;return Re?.visible});l.length>1&&(l.forEach(Me=>{var Re=Me.getOptions().grid;u?_g(Me,!1,!1):Re?.visible&&(Me.getTranslator().getBusinessRange().isEmpty()?(_g(Me,!1,!1),S.push(Me)):(u=!0,_g(Me,ae,U)))}),!u&&S.length&&_g(S[0],ae,U))}(S.filter(He=>He.pane===Re))}),this._valueAxes=S.filter(Me=>{Me.pane||Me.setPane(this.defaultPane);var Re=vg(this.panes,Me.pane);return Re||(Me.dispose(),Me=null),Re}).sort(B_);var ae=this.getValueAxis();this._valueAxes.forEach(Me=>{var{optionPath:Re}=Me.getOptions();if(Re){var He=this._valueAxes.filter(lt=>lt.getOptions().optionPath===Re);He.length>1&&(He.some(lt=>lt===ae)?He.forEach(lt=>{lt!==ae&&(lt.getOptions().optionPath=null)}):He.forEach((lt,At)=>{0!==At&&(lt.getOptions().optionPath=null)}))}})},_getSeriesForPane(l){var u=[];return(0,ba.__)(this.series,(S,U)=>{U.pane===l&&u.push(U)}),u},_createPanesBorderOptions(){var l=this._themeManager.getOptions("commonPaneSettings").border,u={};return this.panes.forEach(S=>{u[S.name]=(0,vr.X)(!0,{},l,S.border)}),u},_createScrollBar(){var l,u=this._themeManager.getOptions("scrollBar")||{},S=this._scrollBarGroup;u.visible?(u.rotated=this._isRotated(),this._scrollBar=(this._scrollBar||new ih(this._renderer,S)).update(u)):(S.linkRemove(),null===(l=this._scrollBar)||void 0===l||l.dispose(),this._scrollBar=null)},_executeAppendAfterSeries(l){l()},_prepareToRender(){var l=this._createPanesBorderOptions();return this._createPanesBackground(),this._appendAxesGroups(),this._adjustViewport(),l},_adjustViewport(){this._themeManager.getOptions("adjustOnZoom")&&this._valueAxes.forEach(u=>u.adjust())},_recreateSizeDependentObjects(l){var u=this._getVisibleSeries(),S=u.some(ae=>ae.useAggregation()),U=this._isZooming();S&&(this._argumentAxes.forEach(ae=>{ae.updateCanvas(this._canvas,!0)}),u.forEach(ae=>{ae.useAggregation()&&(l||U||!ae._useAllAggregatedPoints)&&ae.createPoints()}),this._processSeriesFamilies())},_isZooming(){var l=this.getArgumentAxis();if(!l?.getTranslator())return!1;var u=l.getTranslator().getBusinessRange(),S=l.getViewport(),U=S?S.min:0,ae=S?S.max:0;"logarithmic"===u.axisType&&(U=(0,Zr.XE)(U,u.base),ae=(0,Zr.XE)(ae,u.base));var Me=u.axisType===kh?(0,Zr.jg)(u.categories,U,ae).categories.length:Math.abs(ae-U),Re=(0,oa.XV)(Me);Re=Re>1?10**(Re-2):1;var He=Math.round((this._zoomLength-Me)*Re)/Re!=0;return this._zoomLength=Me,He},_handleSeriesDataUpdated(){var l=new St.Q;this.series.forEach(u=>{l.addRange(u.getArgumentRange())}),this._argumentAxes.forEach(u=>{u.updateCanvas(this._canvas,!0),u.setBusinessRange(l,this._axesReinitialized)}),this.callBase()},_isLegendInside(){return this._legend&&"inside"===this._legend.getPosition()},_isRotated(){return this._themeManager.getOptions("rotated")},_getLayoutTargets(){return this.panes},_applyClipRects(l){this._drawPanesBorders(l),this._createClipRectsForPanes(),this._applyClipRectsForAxes(),this._fillPanesBackground()},_updateLegendPosition(l,u){if(l.drawLegend&&this._legend&&u){var{panes:S}=this,U=(0,vr.X)({},S[0].canvas),ae=new Gh.A;U.right=S[S.length-1].canvas.right,U.bottom=S[S.length-1].canvas.bottom,ae.layoutInsideLegend(this._legend,U)}},_allowLegendInsidePosition:()=>!0,_applyExtraSettings(l){var u=this._getPaneIndex(l.pane),S=this._panesClipRects,U=S.wide[u];l.setClippingParams(S.base[u].id,U?.id,this._getPaneBorderVisibility(u))},_updatePanesCanvases(l){l.recreateCanvas&&(0,Zr.fC)(this.panes,this._canvas,this._isRotated())},_normalizePanesHeight(){(0,Zr.qM)(this.panes)},_renderScaleBreaks(){this._valueAxes.concat(this._argumentAxes).forEach(l=>{l.drawScaleBreaks()})},_getArgFilter(){return Pn.A.getViewPortFilter(this.getArgumentAxis().visualRange()||{})},_hidePointsForSingleSeriesIfNeeded(l){for(var u=l.getPoints(),S=0,U=0;U<u.length;U+=1){var ae=u[U],Me=u.slice(U+1);if((S+=Number(u_(ae,Me)))>u.length/2){l.autoHidePointMarkers=!0;break}}},_applyAutoHidePointMarkers(l){for(var u=[],S=(He,lt)=>He+u_(lt,u,!0),U=l.length-1;U>=0;U-=1){var ae=l[U];if(ae.autoHidePointMarkersEnabled()&&(ae.autoHidePointMarkers=!1,this._hidePointsForSingleSeriesIfNeeded(ae),!ae.autoHidePointMarkers)){var Me=ae.getPoints();Me.reduce(S,0)<Me.length?u=u.concat(Me):ae.autoHidePointMarkers=!0}}},_applyPointMarkersAutoHiding(){var l=this.series;this._themeManager.getOptions("autoHidePointMarkers")?this.panes.forEach(u=>{var{borderCoords:S,name:U}=u,ae=l.filter(Di=>Di.pane===U&&Di.usePointsToDefineAutoHiding());ae.forEach(Di=>{Di.prepareCoordinatesForPoints()});var Me=this.getArgumentAxis(),Re=function yg(l,u,S){var U=[],ae={},Me=S.visualRange(),Re=S.getTranslator(),He=Pn.A.getViewPortFilter(Me||{});return u.forEach(lt=>{var At=lt.getValueAxis(),di=At.getCanvasRange(),Di=At.getTranslator(),Ki=l.indexOf(lt),Ji=Pn.A.getViewPortFilter(di||{});ae[Ki]={},u.forEach(Gn=>{ae[Ki][l.indexOf(Gn)]=0});var rn=[];lt.getPoints().filter(Gn=>Gn.getOptions().visible&&He(Gn.argument)&&(Ji(Gn.getMinValue(!0))||Ji(Gn.getMaxValue(!0)))).forEach(Gn=>{var Cr={seriesIndex:Ki,argument:Gn.argument,value:Gn.getMaxValue(!0),size:Gn.bubbleSize||Gn.getOptions().size,x:void 0,y:void 0};if(Gn.getMinValue(!0)!==Gn.getMaxValue(!0)){var fr=(0,vr.X)({},Cr);fr.value=Gn.getMinValue(!0),fr.x=Re.to(fr.argument,1),fr.y=Di.to(fr.value,1),rn.push(fr)}Cr.x=Re.to(Cr.argument,1),Cr.y=Di.to(Cr.value,1),rn.push(Cr)}),ae[Ki].pointsCount=rn.length,ae[Ki].total=0,ae[Ki].continuousSeries=0,U.push({name:lt.name,index:Ki,points:rn})}),{series:U,overloadedSeries:ae}}(l,ae,Me);if(function jv(l,u,S){for(var U=l.width*l.height,ae=u.series,Me=function(He){var lt=S.filter(Ji=>Ji.name===ae[He].name)[0],{points:At}=ae[He],di=At.length?At[0].size:0,Di=di*di*At.length;if(lt.autoHidePointMarkersEnabled()&&Di>=U/ae.length){var{index:Ki}=ae[He];lt.autoHidePointMarkers=!0,ae.splice(He,1),S.splice(S.indexOf(lt),1),u.overloadedSeries[Ki]=null}},Re=ae.length-1;Re>=0;Re-=1)Me(Re)}(S,Re,ae),Re.series.length){var He=Me.visualRange(),At=Me.getOptions().type===kh?(Di,Ki)=>He.categories.indexOf(Di.argument)-He.categories.indexOf(Ki.argument):(Di,Ki)=>Di.argument-Ki.argument,di=[];Re.series.forEach(Di=>{di=di.concat(Di.points)}),di.sort(At),function Pe(l,u){for(var S=!1,U=0;U<l.length-1;U+=1){var ae=l[U],{size:Me}=ae;if((0,Wn.O9)(ae.x)&&(0,Wn.O9)(ae.y))for(var Re=U+1;Re<l.length;Re+=1){var He=l[Re],lt=He?.x,At=He?.y;if(!(0,Wn.O9)(lt)||Math.abs(ae.x-lt)>=Me){S=S&&Re!==U+1;break}var di=(0,Wn.O9)(lt)&&(0,Wn.O9)(At)&&Math.sqrt((ae.x-lt)**2+(ae.y-At)**2);di&&di<Me&&(u[ae.seriesIndex][He.seriesIndex]+=1,u[ae.seriesIndex].total+=1,S||(u[ae.seriesIndex].continuousSeries+=1,S=!0))}}}(di,Re.overloadedSeries),this._applyAutoHidePointMarkers(ae)}}):l.forEach(u=>{u.autoHidePointMarkers=!1})},_renderAxes(l,u){function S(Ma){return Ma.map(Zo=>{if(!Zo.getTitle)return 0;var js=Zo.getTitle();return js?js.bBox.width:0})}var U=this._isRotated(),ae=this._themeManager.getOptions("synchronizeMultiAxes"),Me=this._scrollBar?[this._scrollBar]:[],Re=this._isArgumentAxisBeforeScrollBar()?this._argumentAxes.concat(Me):Me.concat(this._argumentAxes),He=U?this._argumentAxes:this._valueAxes,lt=U?Re:this._valueAxes,At=U?this._valueAxes:this._argumentAxes,di=U?this._valueAxes:Re,Di=He.concat(At),Ki=Di.concat(Me),Ji=He.some(Ma=>Ma.isFirstDrawing());this._normalizePanesHeight(),this._updatePanesCanvases(l);var rn=this.panes.reduce((Ma,Zo)=>(Ma[Zo.name]=(0,vr.X)({},Zo.canvas),Ma),{}),Tn=this.panes.reduce((Ma,Zo)=>(Ma[Zo.name]={height:Zo.height,unit:Zo.unit},Ma),{}),Gn=(0,vr.X)(!0,{},rn);this._initCustomPositioningAxes();var Cr=this._axesBoundaryPositioning();if(!l.adjustAxes&&!Cr)return N_(He,!U&&ae,rn,u),N_(At,U&&ae,rn,u),lh(Di,"prepareAnimation"),this._renderScaleBreaks(),At.forEach(Ma=>Ma.resolveOverlappingForCustomPositioning(He)),He.forEach(Ma=>Ma.resolveOverlappingForCustomPositioning(At)),!1;Cr&&Di.forEach(Ma=>Ma.customPositionIsAvailable()&&Ma.shift({top:0,left:0,bottom:0,right:0})),this._scrollBar&&this._scrollBar.setPane(this.panes);var fr={panes:{},left:0,right:0},Fr=jm(di,Ma=>Ma.estimateMargins(rn[Ma.pane]));rn=Ug(U,rn,Tn,fr,Fr);var Or=Ma=>{N_(Ma?At:He,(Ma?U:!U)&&ae,rn,u),Ma?Fr=jm(di,Rh):fr=Ym(lt),rn=Ug(U,rn,Tn,fr,Fr)};Or(!1),Or(!0),!this._changesApplying&&this._estimateTickIntervals(He,rn)&&Or(!1);var gr=S(He),Hr=this._getVisibleSeries(),go=function gv(l,u){var S=u.reduce((U,ae)=>U+ae,0)/u.length;return l.animate&&S<=l.animationPointsLimit}(l,this._getPointsToAnimation(Hr));return lh(Ki,"updateSize",rn,go),di.forEach(bg("top","bottom")),lt.forEach(bg("left","right")),this._renderScaleBreaks(),this.panes.forEach(Ma=>{(0,vr.X)(Ma.canvas,rn[Ma.name])}),this._valueAxes.forEach(Ma=>{Ma.setInitRange()}),He.forEach((Ma,Zo)=>{var js;if(null!==(js=Ma.hasWrap)&&void 0!==js&&js.call(Ma)){var ns=Ma.getTitle(),Is=(ns?ns.bBox.width:0)-gr[Zo];"right"===Ma.getOptions().position?fr.right+=Is:(fr.left+=Is,this.panes.forEach(bd=>{var{name:oo}=bd;fr.panes[oo].left+=Is})),rn=Ug(U,rn,Tn,fr,Fr),lh(Ki,"updateSize",rn,!1,!1),gr=S(He)}}),He.some(Ma=>Ma.customPositionIsAvailable()&&Ma.getCustomPosition()!==Ma._axisPosition)&&(go&&this._resetAxesAnimation(Ji,!1),lh(He,"updateSize",rn,go)),At.forEach(Ma=>Ma.resolveOverlappingForCustomPositioning(He)),He.forEach(Ma=>Ma.resolveOverlappingForCustomPositioning(At)),Gn},_getExtraTemplatesItems(){var l=(this._argumentAxes||[]).concat(this._valueAxes||[]),u=this._collectTemplatesFromItems(l);return{items:u.items,groups:u.groups,launchRequest(){l.forEach(S=>{S.setRenderedState(!0)})},doneRequest(){l.forEach(S=>{S.setRenderedState(!1)})}}},_estimateTickIntervals:(l,u)=>l.some(S=>S.estimateTickInterval(u[S.pane])),checkForMoreSpaceForPanesCanvas(){var l=this._isRotated(),S=!1;if(this.panes.filter(Ji=>Ji.unit).length===this.panes.length){var U=0,ae=0;if(l){var Me=this.getArgumentAxis().getMargins().right,Re=Math.min(...this.panes.map(Ji=>Ji.canvas.right));U=this._canvas.right+Me-Re}else{var He=this.getArgumentAxis().getMargins().bottom,lt=Math.min(...this.panes.map(Ji=>Ji.canvas.bottom));ae=this._canvas.bottom+He-lt}if(S=(U>0||ae>0)&&{width:U,height:ae},0!==ae){var At=this.getSize(),di=this.option("size"),Ki=!!parseInt(this._$element[0].style.height,10)||0!==this._containerInitialHeight;!l&&!di?.height&&!Ki&&(this._forceResize(At.width,At.height+ae),S=!1)}}else S=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),l,Ji=>({width:l&&!!Ji.unit,height:!l&&!!Ji.unit}));return S},_forceResize(l,u){this._renderer.resize(l,u),this._updateSize(!0),this._setContentSize(),this._preserveOriginalCanvas(),this._updateCanvasClipRect(this._canvas)},_shrinkAxes(l,u){if(l&&u){this._renderer.stopAllAnimations(!0);var S=this._isRotated(),U=this._scrollBar?[this._scrollBar]:[],ae=this._isArgumentAxisBeforeScrollBar()?this._argumentAxes.concat(U):U.concat(this._argumentAxes),Me=S?ae:this._valueAxes,Re=S?this._valueAxes:ae,He=Me.concat(Re);if(l.width||l.height){d_(l,"height",Re,jm),d_(l,"width",Me,Ym),lh(He,"updateSize",u);var lt=this.panes.reduce((At,di)=>(At[di.name]={height:di.height,unit:di.unit},At),{});lh(He,"updateSize",u=Ug(S,u,lt,Ym(Me),jm(Re,Rh))),Re.forEach(bg("top","bottom")),Me.forEach(bg("left","right")),this.panes.forEach(At=>(0,vr.X)(At.canvas,u[At.name]))}}},_isArgumentAxisBeforeScrollBar(){var l,u=this.getArgumentAxis();if(this._scrollBar){var S=u.getResolvedBoundaryPosition(),U=null===(l=u.getOptions().label)||void 0===l?void 0:l.position,ae=this._scrollBar.getOptions().position;return u.hasNonBoundaryPosition()||ae===S&&U!==ae}return!1},_getPanesParameters(){for(var{panes:l}=this,u=[],S=0;S<l.length;S+=1)this._getPaneBorderVisibility(S)&&u.push({coords:l[S].borderCoords,clipRect:this._panesClipRects.fixed[S]});return u},_createCrosshairCursor(){var l=this._themeManager.getOptions("crosshair")||{},u=this.getArgumentAxis(),S=this._isRotated()?[this._valueAxes,[u]]:[[u],this._valueAxes],U={canvas:this._getCommonCanvas(),panes:this._getPanesParameters(),axes:S};l?.enabled&&(this._crosshair?this._crosshair.update(l,U):this._crosshair=new Uh(this._renderer,l,U,this._crosshairCursorGroup),this._crosshair.render())},_getCommonCanvas(){for(var l,{panes:u}=this,S=0;S<u.length;S+=1){var{canvas:U}=u[S];l?(l.right=U.right,l.bottom=U.bottom):l=(0,vr.X)({},U)}return l},_createPanesBackground(){var l=this._themeManager.getOptions("commonPaneSettings").backgroundColor,u=this._renderer,S=[];this._panesBackgroundGroup.clear();for(var U=0;U<this.panes.length;U+=1){var ae=this.panes[U].backgroundColor||l;if(ae&&"none"!==ae){var Me=u.rect(0,0,0,0).attr({fill:(0,Zr.Dz)(ae),"stroke-width":0}).append(this._panesBackgroundGroup);S.push(Me)}else S.push(null)}this.panesBackground=S},_fillPanesBackground(){(0,ba.__)(this.panes,(l,u)=>{var S=u.borderCoords;null!==this.panesBackground[l]&&this.panesBackground[l].attr({x:S.left,y:S.top,width:S.width,height:S.height})})},_calcPaneBorderCoords(l){var{canvas:u}=l,S=l.borderCoords=l.borderCoords||{};S.left=u.left,S.top=u.top,S.right=u.width-u.right,S.bottom=u.height-u.bottom,S.width=Math.max(S.right-S.left,0),S.height=Math.max(S.bottom-S.top,0)},_drawPanesBorders(l){var u=this._isRotated();this._panesBorderGroup.linkRemove().clear(),(0,ba.__)(this.panes,(S,U)=>{var ae=l[U.name],Me={fill:"none",stroke:ae.color,"stroke-opacity":ae.opacity,"stroke-width":ae.width,dashStyle:ae.dashStyle,"stroke-linecap":"square"};if(this._calcPaneBorderCoords(U,u),ae.visible){var Re=U.borderCoords,He=(0,cs.yg)(Re.left,Re.top,Re.width,Re.height,ae);this._renderer.path(He.points,He.pathType).attr(Me).append(this._panesBorderGroup)}}),this._panesBorderGroup.linkAppend()},_createClipRect(l,u,S,U,ae,Me){var Re=l[u];Re?Re.attr({x:S,y:U,width:ae,height:Me}):(Re=this._renderer.clipRect(S,U,ae,Me),l[u]=Re)},_createClipRectsForPanes(){var l=this._canvas;(0,ba.__)(this.panes,(u,S)=>{var U=!1,ae=S.borderCoords,{left:Me}=ae,{top:Re}=ae,{width:He}=ae,{height:lt}=ae,At=this._panesClipRects;this._createClipRect(At.fixed,u,Me,Re,He,lt),this._createClipRect(At.base,u,Me,Re,He,lt),(0,ba.__)(this.series,(di,Di)=>{Di.pane===S.name&&(Di.isFinancialSeries()||Di.areErrorBarsVisible())&&(U=!0)}),U?(this._isRotated()?(Re=0,lt=l.height):(Me=0,He=l.width),this._createClipRect(At.wide,u,Me,Re,He,lt)):At.wide[u]=null})},_applyClipRectsForAxes(){for(var l=this._getAllAxes(),u=this._getCanvasClipRectID(),S=0;S<l.length;S+=1){var U=this._getElementsClipRectID(l[S].pane);l[S].applyClipRects(U,u)}},_getPaneBorderVisibility(l){var u,S=this._themeManager.getOptions("commonPaneSettings").border.visible,U=this.panes[l],ae=null===(u=U?.border)||void 0===u?void 0:u.visible;return void 0===ae?S:ae},_getCanvasForPane(l){var u;return null===(u=this.panes.find(S=>S.name===l))||void 0===u?void 0:u.canvas},_getTrackerSettings(){return(0,vr.X)(this.callBase(),{chart:this,rotated:this._isRotated(),crosshair:this._getCrosshairOptions().enabled?this._crosshair:null,stickyHovering:this._themeManager.getOptions("stickyHovering")})},_resolveLabelOverlappingStack(){var l=this._isRotated(),u=l?(U,ae)=>({x:U.x-ae,y:U.y}):(U,ae)=>({x:U.x,y:U.y-ae}),S=(U,ae)=>{var Me=l?1:0;if(U.labels[0].getFigureCenter()[Me]-ae.labels[0].getFigureCenter()[Me]==0){var At=U.labels[0].getPoint().series.getValueAxis().getTranslator().isInverted()?-1:1;return(U.value()-ae.value())*At}return 0};(0,ba.__)(this._getStackPoints(),(U,ae)=>{(0,ba.__)(ae,(Me,Re)=>{var He=Re[0].series.getValueAxis().getOptions().inverted;P_.q.resolveLabelOverlappingInOneDirection(Re,this._getCommonCanvas(),l,He,u,S)})})},_getStackPoints(){var l={},u=this._getVisibleSeries();return(0,ba.__)(u,(S,U)=>{var ae=U.getPoints(),Me=U.getStackName()||null;(0,ba.__)(ae,(Re,He)=>{var{argument:lt}=He;l[lt]||(l[lt]={}),l[lt][Me]||(l[lt][Me]=[]),l[lt][Me].push(He)})}),l},_getCrosshairOptions(){return this._getOption("crosshair")},zoomArgument(l,u){!this._initialized||!(0,Wn.O9)(l)&&!(0,Wn.O9)(u)||this.getArgumentAxis().visualRange([l,u])},resetVisualRange(){var l=this._argumentAxes,u=this.getArgumentAxis();l.forEach(S=>{S.resetVisualRange(u!==S),this._applyCustomVisualRangeOption(S)}),this.callBase()},getVisibleArgumentBounds(){var u=this._argumentAxes[0].getTranslator().getBusinessRange(),S=u.axisType===kh,{categories:U}=u;return{minVisible:S?u.minVisible||U[0]:u.minVisible,maxVisible:S?u.maxVisible||U[U.length-1]:u.maxVisible}},_change_FULL_RENDER(){this.callBase(),this._changes.has("VISUAL_RANGE")&&this._raiseZoomEndHandlers()},_getAxesForScaling(){return[this.getArgumentAxis()].concat(this._valueAxes)},_applyVisualRangeByVirtualAxes(l,u){if(l.isArgumentAxis){if(l!==this.getArgumentAxis())return!0;this._argumentAxes.filter(S=>S!==l).forEach(S=>S.visualRange(u,{start:!0,end:!0}))}return!1},_raiseZoomEndHandlers(){this._argumentAxes.forEach(l=>l.handleZoomEnd()),this.callBase()},_setOptionsByReference(){this.callBase(),(0,vr.X)(this._optionsByReference,{"argumentAxis.visualRange":!0})},option(){var l=this.callBase(...arguments),u=this._options.silent("valueAxis");if("array"===(0,Wn.NW)(u))for(var S=0;S<u.length;S+=1){var U="valueAxis[".concat(S,"].visualRange");this._optionsByReference[U]=!0}return l},_notifyVisualRange(){var l=this._argumentAxes[0],u=(0,Zr.uD)(l.visualRange(),!gg(this.option("argumentAxis.visualRange")));l.skipEventRising&&(0,Zr.tW)(u,this.option("argumentAxis.visualRange"))?l.skipEventRising=null:this.option("argumentAxis.visualRange",u),this.callBase()}});Ke.addPlugin(_m),Ke.addPlugin(as),Ke.addPlugin(Jr.N.core),Ke.addPlugin(Jr.N.chart),(0,Fo.A)("dxChart",Ke);let Hi=(()=>{class l{}return l.\u0275fac=function(S){return new(S||l)},l.\u0275mod=L.$C({type:l}),l.\u0275inj=L.G2t({imports:[[zn.uvP,zn.YLo,zn.DlA,zn.A1g,zn.r2Z,zn.lPC,zn.cug,zn.aUY,zn.ROy,zn.HCS,zn.ur_,zn.CBY,zn.uE7,zn.Fii,zn.cCU,zn.Pxf,zn.H8O,zn.EED,zn.nE5,zn.vQM,zn.Ist,zn.B80,zn.lX9,zn.w8p,zn.sVF,zn.tXi,zn.tl,zn.gVd,zn.PXE,zn.XWi,zn.WG2,zn.NhN,zn.lWu,zn.Af1,zn.tML,zn.eeS,zn.F2g,zn.VTr,zn.iDF,zn.$jZ,zn.Fhh,zn._ql,zn.ZRW,zn.M5G,zn.RKC,zn.REv,zn.VG3,zn.tOy,zn.sAn,zn.PTP,zn.ikq,zn.y7y,zn.aqX,zn.IWb,zn.Kkw,zn.YTS,zn.nu6,zn.y1E,zn.GzL,zn.kxR,zn.ZSJ,zn.WNh,zn.hJ,zn.v5y,zn.okf,zn.Mj3,zn.AaL,zn.GYs,zn.YyV,zn.MXF,zn.uIe,zn.F1M,zn.Yh3,zn.YkV,zn.FXg,zn.w0m,zn.CGH,zn.xOT,zn.hU2,zn.hzo,zn.Vku,zn.OeI,zn.$T,zn.KNc,Ca.p_,Ca.xZ],zn.uvP,zn.YLo,zn.DlA,zn.A1g,zn.r2Z,zn.lPC,zn.cug,zn.aUY,zn.ROy,zn.HCS,zn.ur_,zn.CBY,zn.uE7,zn.Fii,zn.cCU,zn.Pxf,zn.H8O,zn.EED,zn.nE5,zn.vQM,zn.Ist,zn.B80,zn.lX9,zn.w8p,zn.sVF,zn.tXi,zn.tl,zn.gVd,zn.PXE,zn.XWi,zn.WG2,zn.NhN,zn.lWu,zn.Af1,zn.tML,zn.eeS,zn.F2g,zn.VTr,zn.iDF,zn.$jZ,zn.Fhh,zn._ql,zn.ZRW,zn.M5G,zn.RKC,zn.REv,zn.VG3,zn.tOy,zn.sAn,zn.PTP,zn.ikq,zn.y7y,zn.aqX,zn.IWb,zn.Kkw,zn.YTS,zn.nu6,zn.y1E,zn.GzL,zn.kxR,zn.ZSJ,zn.WNh,zn.hJ,zn.v5y,zn.okf,zn.Mj3,zn.AaL,zn.GYs,zn.YyV,zn.MXF,zn.uIe,zn.F1M,zn.Yh3,zn.YkV,zn.FXg,zn.w0m,zn.CGH,zn.xOT,zn.hU2,zn.hzo,zn.Vku,zn.OeI,zn.$T,zn.KNc,Ca.xZ]}),l})();var Gi=D(33514),Zi=D(99830),dn=D(74854);let xn=(()=>{class l{static#e=this.\u0275fac=function(U){return new(U||l)};static#t=this.\u0275mod=L.$C({type:l});static#i=this.\u0275inj=L.G2t({imports:[x.MD,Fs.e,dn.eB,Tl.YN,v.h.forChild()]})}return l})();var er=D(89692);const Er={provide:L.xe9,useClass:class Ar extends String{constructor(u){super(),this.localeService=u}toString(){return this.localeService.currentCulture}valueOf(){return this.toString()}},deps:[s.i]};var hr=D(93120);const qr=void 0,Zn=["de",[["AM","PM"],qr,qr],qr,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],qr,qr],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",qr,"{1} 'um' {0}",qr],[",",".",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","Euro",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[qr,"\u0440."],CUC:[qr,"Cub$"],DEM:["DM"],FKP:[qr,"Fl\xa3"],GHS:[qr,"\u20b5"],GNF:[qr,"F.G."],KMF:[qr,"FC"],PHP:[qr,"\u20b1"],RON:[qr,"L"],RUR:[qr,"\u0440."],RWF:[qr,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[qr,"K"]},"ltr",function Wr(l){const S=Math.floor(Math.abs(l)),U=l.toString().replace(/^[^.]*\.?/,"").length;return 1===S&&0===U?1:5}],nr=void 0,ya=["en",[["a","p"],["AM","PM"],nr],[["AM","PM"],nr,nr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],nr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],nr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",nr,"{1} 'at' {0}",nr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function da(l){const S=Math.floor(Math.abs(l)),U=l.toString().replace(/^[^.]*\.?/,"").length;return 1===S&&0===U?1:5}],Qr=void 0,to=["fr",[["AM","PM"],Qr,Qr],Qr,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],Qr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],Qr,[["av. J.-C.","ap. J.-C."],Qr,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1}, {0}","{1} '\xe0' {0}",Qr],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BYN:[Qr,"\u0440."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[Qr,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[Qr,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[Qr,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[Qr,"\xa5"],KMF:[Qr,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[Qr,"$C"],NZD:["$NZ","$"],PHP:[Qr,"\u20b1"],RHD:["$RH"],RON:[Qr,"L"],RWF:[Qr,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[Qr,"$T"],TTD:["$TT","$"],TWD:[Qr,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[Qr,"$"],XPF:["FCFP"],ZMW:[Qr,"Kw"]},"ltr",function xo(l){const S=Math.floor(Math.abs(l)),U=l.toString().replace(/^[^.]*\.?/,"").length,ae=parseInt(l.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return 0===S||1===S?1:0===ae&&0!==S&&S%1e6==0&&0===U||!(ae>=0&&ae<=5)?4:5}],Bo=void 0,Ul=["en-GB",[["a","p"],["am","pm"],Bo],[["am","pm"],Bo,Bo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Bo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Bo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",Bo,"{1} 'at' {0}",Bo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"GBP","\xa3","British Pound",{JPY:["JP\xa5","\xa5"],USD:["US$","$"]},"ltr",function ao(l){const S=Math.floor(Math.abs(l)),U=l.toString().replace(/^[^.]*\.?/,"").length;return 1===S&&0===U?1:5}];var Gl=D(93041),vl=D.t(Gl,2),ps=D(29643),Kl=D(61998),ca=D(85614),Co=D(72539);const cl={},pu={};function Yd(l,u){cl[l]=cl[l]||[],cl[l].push(u)}function Dl(l,u){pu[l]||(u(),pu[l]=!0)}function Oc(l,u){const S=l&&cl[l];if(S)for(const U of S)try{U(u)}catch(ae){Kl.T&&ca.vF.error(`Error while triggering instrumentation handler.\nType: ${l}\nName: ${(0,Co.qQ)(U)}\nError:`,ae)}}var ys=D(95909),Ts=D(51930),bl=D(61203);const Vo=bl.O,Wu=1e3;let op,mc,ju;function ff(){if(!Vo.document)return;const l=Oc.bind(null,"dom"),u=xg(l,!0);Vo.document.addEventListener("click",u,!1),Vo.document.addEventListener("keypress",u,!1),["EventTarget","Node"].forEach(S=>{const U=Vo[S]&&Vo[S].prototype;!U||!U.hasOwnProperty||!U.hasOwnProperty("addEventListener")||((0,ys.GS)(U,"addEventListener",function(ae){return function(Me,Re,He){if("click"===Me||"keypress"==Me)try{const lt=this,At=lt.__sentry_instrumentation_handlers__=lt.__sentry_instrumentation_handlers__||{},di=At[Me]=At[Me]||{refCount:0};if(!di.handler){const Di=xg(l);di.handler=Di,ae.call(this,Me,Di,He)}di.refCount++}catch{}return ae.call(this,Me,Re,He)}}),(0,ys.GS)(U,"removeEventListener",function(ae){return function(Me,Re,He){if("click"===Me||"keypress"==Me)try{const lt=this,At=lt.__sentry_instrumentation_handlers__||{},di=At[Me];di&&(di.refCount--,di.refCount<=0&&(ae.call(this,Me,di.handler,He),di.handler=void 0,delete At[Me]),0===Object.keys(At).length&&delete lt.__sentry_instrumentation_handlers__)}catch{}return ae.call(this,Me,Re,He)}}))})}function xg(l,u=!1){return S=>{if(!S||S._sentryCaptured)return;const U=function $m(l){try{return l.target}catch{return null}}(S);if(function $d(l,u){return!("keypress"!==l||u&&u.tagName&&("INPUT"===u.tagName||"TEXTAREA"===u.tagName||u.isContentEditable))}(S.type,U))return;(0,ys.my)(S,"_sentryCaptured",!0),U&&!U._sentryId&&(0,ys.my)(U,"_sentryId",(0,Ts.eJ)());const ae="keypress"===S.type?"input":S.type;(function zf(l){if(l.type!==mc)return!1;try{if(!l.target||l.target._sentryId!==ju)return!1}catch{}return!0})(S)||(l({event:S,name:ae,global:u}),mc=S.type,ju=U?U._sentryId:void 0),clearTimeout(op),op=Vo.setTimeout(()=>{ju=void 0,mc=void 0},Wu)}}var dd=D(51875),vd=D(52166);const Uf="__sentry_xhr_v3__";function Cg(l){Yd("xhr",l),Dl("xhr",Vp)}function Vp(){if(!Vo.XMLHttpRequest)return;const l=XMLHttpRequest.prototype;(0,ys.GS)(l,"open",function(u){return function(...S){const U=1e3*(0,dd.zf)(),ae=(0,vd.Kg)(S[0])?S[0].toUpperCase():void 0,Me=function gc(l){if((0,vd.Kg)(l))return l;try{return l.toString()}catch{}}(S[1]);if(!ae||!Me)return u.apply(this,S);this[Uf]={method:ae,url:Me,request_headers:{}},"POST"===ae&&Me.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const Re=()=>{const He=this[Uf];if(He&&4===this.readyState){try{He.status_code=this.status}catch{}Oc("xhr",{endTimestamp:1e3*(0,dd.zf)(),startTimestamp:U,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,ys.GS)(this,"onreadystatechange",function(He){return function(...lt){return Re(),He.apply(this,lt)}}):this.addEventListener("readystatechange",Re),(0,ys.GS)(this,"setRequestHeader",function(He){return function(...lt){const[At,di]=lt,Di=this[Uf];return Di&&(0,vd.Kg)(At)&&(0,vd.Kg)(di)&&(Di.request_headers[At.toLowerCase()]=di),He.apply(this,lt)}}),u.apply(this,S)}}),(0,ys.GS)(l,"send",function(u){return function(...S){const U=this[Uf];return U?(void 0!==S[0]&&(U.body=S[0]),Oc("xhr",{startTimestamp:1e3*(0,dd.zf)(),xhr:this}),u.apply(this,S)):u.apply(this,S)}})}const Yu=bl.O;let Hp;function Gf(l){const u="history";Yd(u,l),Dl(u,Km)}function Km(){if(!function Gg(){const l=Yu.chrome;return!(l&&l.app&&l.app.runtime||!("history"in Yu)||!Yu.history.pushState||!Yu.history.replaceState)}())return;const l=Vo.onpopstate;function u(S){return function(...U){const ae=U.length>2?U[2]:void 0;if(ae){const Me=Hp,Re=String(ae);Hp=Re,Oc("history",{from:Me,to:Re})}return S.apply(this,U)}}Vo.onpopstate=function(...S){const U=Vo.location.href,ae=Hp;if(Hp=U,Oc("history",{from:ae,to:U}),l)try{return l.apply(this,S)}catch{}},(0,ys.GS)(Vo.history,"pushState",u),(0,ys.GS)(Vo.history,"replaceState",u)}var Ns=D(36002);const mf=[];function _v(l){const u=l.defaultIntegrations||[],S=l.integrations;let U;u.forEach(Re=>{Re.isDefaultInstance=!0}),U=Array.isArray(S)?[...u,...S]:"function"==typeof S?(0,Ts.k9)(S(u)):u;const ae=function Xm(l){const u={};return l.forEach(S=>{const{name:U}=S,ae=u[U];ae&&!ae.isDefaultInstance&&S.isDefaultInstance||(u[U]=S)}),Object.keys(u).map(S=>u[S])}(U),Me=function p_(l,u){for(let S=0;S<l.length;S++)if(!0===u(l[S]))return S;return-1}(ae,Re=>"Debug"===Re.name);if(-1!==Me){const[Re]=ae.splice(Me,1);ae.push(Re)}return ae}function h_(l,u){for(const S of u)S&&S.afterAllSetup&&S.afterAllSetup(l)}function zp(l,u,S){if(S[u.name])Ns.T&&ca.vF.log(`Integration skipped because it was already installed: ${u.name}`);else{if(S[u.name]=u,-1===mf.indexOf(u.name)&&"function"==typeof u.setupOnce&&(u.setupOnce(),mf.push(u.name)),u.setup&&"function"==typeof u.setup&&u.setup(l),"function"==typeof u.preprocessEvent){const U=u.preprocessEvent.bind(u);l.on("preprocessEvent",(ae,Me)=>U(ae,Me,l))}if("function"==typeof u.processEvent){const U=u.processEvent.bind(u),ae=Object.assign((Me,Re)=>U(Me,Re,l),{id:u.name});l.addEventProcessor(ae)}Ns.T&&ca.vF.log(`Integration installed: ${u.name}`)}}var is=D(22912);const wm=100;function Ph(l,u){const S=(0,is.KU)(),U=(0,is.rm)();if(!S)return;const{beforeBreadcrumb:ae=null,maxBreadcrumbs:Me=wm}=S.getOptions();if(Me<=0)return;const He={timestamp:(0,dd.lu)(),...l},lt=ae?(0,ca.pq)(()=>ae(He,u)):He;null!==lt&&(S.emit&&S.emit("beforeAddBreadcrumb",lt,u),U.addBreadcrumb(lt,Me))}function cm(){"console"in bl.O&&ca.Ow.forEach(function(l){l in bl.O.console&&(0,ys.GS)(bl.O.console,l,function(u){return ca.Z9[l]=u,function(...S){Oc("console",{args:S,level:l});const ae=ca.Z9[l];ae&&ae.apply(bl.O.console,S)}})})}const Up=bl.O;function gf(){if(!("fetch"in Up))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Qm(l){return l&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(l.toString())}function m_(l){const u="fetch";Yd(u,l),Dl(u,yv)}function yv(){(function f_(){if("string"==typeof EdgeRuntime)return!0;if(!gf())return!1;if(Qm(Up.fetch))return!0;let l=!1;const u=Up.document;if(u&&"function"==typeof u.createElement)try{const S=u.createElement("iframe");S.hidden=!0,u.head.appendChild(S),S.contentWindow&&S.contentWindow.fetch&&(l=Qm(S.contentWindow.fetch)),u.head.removeChild(S)}catch(S){Kl.T&&ca.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",S)}return l})()&&(0,ys.GS)(bl.O,"fetch",function(l){return function(...u){const{method:S,url:U}=function As(l){if(0===l.length)return{method:"GET",url:""};if(2===l.length){const[S,U]=l;return{url:qm(S),method:Zm(U,"method")?String(U.method).toUpperCase():"GET"}}const u=l[0];return{url:qm(u),method:Zm(u,"method")?String(u.method).toUpperCase():"GET"}}(u),ae={args:u,fetchData:{method:S,url:U},startTimestamp:1e3*(0,dd.zf)()};return Oc("fetch",{...ae}),l.apply(bl.O,u).then(Me=>(Oc("fetch",{...ae,endTimestamp:1e3*(0,dd.zf)(),response:Me}),Me),Me=>{throw Oc("fetch",{...ae,endTimestamp:1e3*(0,dd.zf)(),error:Me}),Me})}})}function Zm(l,u){return!!l&&"object"==typeof l&&!!l[u]}function qm(l){return"string"==typeof l?l:l?Zm(l,"url")?l.url:l.toString?l.toString():"":""}var vf=D(89644);const H_=["fatal","error","warning","log","info","debug"];function eg(l){return"warn"===l?"warning":H_.includes(l)?l:"log"}var sp=D(12287);function Nc(l){if(!l)return{};const u=l.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!u)return{};const S=u[6]||"",U=u[8]||"";return{host:u[4],path:u[5],protocol:u[2],search:S,hash:U,relative:u[5]+S+U}}const Z=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Oe=bl.O;let Fe=0;function Ye(){return Fe>0}function $t(l,u={},S){if("function"!=typeof l)return l;try{const ae=l.__sentry_wrapped__;if(ae)return ae;if((0,ys.sp)(l))return l}catch{return l}const U=function(){const ae=Array.prototype.slice.call(arguments);try{S&&"function"==typeof S&&S.apply(this,arguments);const Me=ae.map(Re=>$t(Re,u));return l.apply(this,Me)}catch(Me){throw function bt(){Fe++,setTimeout(()=>{Fe--})}(),(0,is.v4)(Re=>{Re.addEventProcessor(He=>(u.mechanism&&((0,Ts.gO)(He,void 0,void 0),(0,Ts.M6)(He,u.mechanism)),He.extra={...He.extra,arguments:ae},He)),(0,ps.Cp)(Me)}),Me}};try{for(const ae in l)Object.prototype.hasOwnProperty.call(l,ae)&&(U[ae]=l[ae])}catch{}(0,ys.pO)(U,l),(0,ys.my)(l,"__sentry_wrapped__",U);try{Object.getOwnPropertyDescriptor(U,"name").configurable&&Object.defineProperty(U,"name",{get:()=>l.name})}catch{}return U}const Yn=(l={})=>{const u={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...l};return{name:"Breadcrumbs",setup(S){u.console&&function Jm(l){const u="console";Yd(u,l),Dl(u,cm)}(function io(l){return function(S){if((0,is.KU)()!==l)return;const U={category:"console",data:{arguments:S.args,logger:"console"},level:eg(S.level),message:(0,sp.gt)(S.args," ")};if("assert"===S.level){if(!1!==S.args[0])return;U.message=`Assertion failed: ${(0,sp.gt)(S.args.slice(1)," ")||"console.assert"}`,U.data.arguments=S.args.slice(1)}Ph(U,{input:S.args,level:S.level})}}(S)),u.dom&&function Hf(l){Yd("dom",l),Dl("dom",ff)}(function ma(l,u){return function(U){if((0,is.KU)()!==l)return;let ae,Me,Re="object"==typeof u?u.serializeAttribute:void 0,He="object"==typeof u&&"number"==typeof u.maxStringLength?u.maxStringLength:void 0;He&&He>1024&&(Z&&ca.vF.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${He} was configured. Sentry will use 1024 instead.`),He=1024),"string"==typeof Re&&(Re=[Re]);try{const At=U.event,di=function _c(l){return!!l&&!!l.target}(At)?At.target:At;ae=(0,vf.Hd)(di,{keyAttrs:Re,maxStringLength:He}),Me=(0,vf.xE)(di)}catch{ae="<unknown>"}if(0===ae.length)return;const lt={category:`ui.${U.name}`,message:ae};Me&&(lt.data={"ui.component_name":Me}),Ph(lt,{event:U.event,name:U.name,global:U.global})}}(S,u.dom)),u.xhr&&Cg(function Ua(l){return function(S){if((0,is.KU)()!==l)return;const{startTimestamp:U,endTimestamp:ae}=S,Me=S.xhr[Uf];if(!U||!ae||!Me)return;const{method:Re,url:He,status_code:lt,body:At}=Me;Ph({category:"xhr",data:{method:Re,url:He,status_code:lt},type:"http"},{xhr:S.xhr,input:At,startTimestamp:U,endTimestamp:ae})}}(S)),u.fetch&&m_(function Wo(l){return function(S){if((0,is.KU)()!==l)return;const{startTimestamp:U,endTimestamp:ae}=S;if(ae&&(!S.fetchData.url.match(/sentry_key/)||"POST"!==S.fetchData.method))if(S.error)Ph({category:"fetch",data:S.fetchData,level:"error",type:"http"},{data:S.error,input:S.args,startTimestamp:U,endTimestamp:ae});else{const Me=S.response;Ph({category:"fetch",data:{...S.fetchData,status_code:Me&&Me.status},type:"http"},{input:S.args,response:Me,startTimestamp:U,endTimestamp:ae})}}}(S)),u.history&&Gf(function Fl(l){return function(S){if((0,is.KU)()!==l)return;let U=S.from,ae=S.to;const Me=Nc(Oe.location.href);let Re=U?Nc(U):void 0;const He=Nc(ae);(!Re||!Re.path)&&(Re=Me),Me.protocol===He.protocol&&Me.host===He.host&&(ae=He.relative),Me.protocol===Re.protocol&&Me.host===Re.host&&(U=Re.relative),Ph({category:"navigation",data:{from:U,to:ae}})}}(S)),u.sentry&&S.on("beforeSendEvent",function Mr(l){return function(S){(0,is.KU)()===l&&Ph({category:"sentry."+("transaction"===S.type?"transaction":"event"),event_id:S.event_id,level:S.level,message:(0,Ts.$X)(S)},{event:S})}}(S))}}};let fu=null;function $u(l){const u="error";Yd(u,l),Dl(u,cd)}function cd(){fu=bl.O.onerror,bl.O.onerror=function(l,u,S,U,ae){return Oc("error",{column:U,error:ae,line:S,msg:l,url:u}),!(!fu||fu.__SENTRY_LOADER__)&&fu.apply(this,arguments)},bl.O.onerror.__SENTRY_INSTRUMENTED__=!0}let Js=null;function Bl(l){const u="unhandledrejection";Yd(u,l),Dl(u,Tc)}function Tc(){Js=bl.O.onunhandledrejection,bl.O.onunhandledrejection=function(l){return Oc("unhandledrejection",l),!(Js&&!Js.__SENTRY_LOADER__)||Js.apply(this,arguments)},bl.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Sm=D(41846),Ld=D(6952);function ch(l,u){const S=g_(l,u),U={type:u&&u.name,value:jg(u)};return S.length&&(U.stacktrace={frames:S}),void 0===U.type&&""===U.value&&(U.value="Unrecoverable error caught"),U}function U_(l,u){return{exception:{values:[ch(l,u)]}}}function g_(l,u){const S=u.stacktrace||u.stack||"",U=function v_(l){return l&&__.test(l.message)?1:0}(u),ae=function xv(l){return"number"==typeof l.framesToPop?l.framesToPop:0}(u);try{return l(S,U,ae)}catch{}return[]}const __=/Minified React error #\d+;/i;function jg(l){const u=l&&l.message;return u?u.error&&"string"==typeof u.error.message?u.error.message:u:"No error message"}function G_(l,u,S,U,ae){let Me;if((0,vd.T2)(u)&&u.error)return U_(l,u.error);if((0,vd.BD)(u)||(0,vd.W6)(u)){const Re=u;if("stack"in u)Me=U_(l,u);else{const He=Re.name||((0,vd.BD)(Re)?"DOMError":"DOMException"),lt=Re.message?`${He}: ${Re.message}`:He;Me=$0(l,lt,S,U),(0,Ts.gO)(Me,lt)}return"code"in Re&&(Me.tags={...Me.tags,"DOMException.code":`${Re.code}`}),Me}return(0,vd.bJ)(u)?U_(l,u):(0,vd.Qd)(u)||(0,vd.xH)(u)?(Me=function $v(l,u,S,U){const ae=(0,is.KU)(),Me=ae&&ae.getOptions().normalizeDepth,Re=function K0(l){for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u)){const S=l[u];if(S instanceof Error)return S}}(u),He={__serialized__:(0,Sm.cd)(u,Me)};if(Re)return{exception:{values:[ch(l,Re)]},extra:He};const lt={exception:{values:[{type:(0,vd.xH)(u)?u.constructor.name:U?"UnhandledRejection":"Error",value:QC(u,{isUnhandledRejection:U})}]},extra:He};if(S){const At=g_(l,S);At.length&&(lt.exception.values[0].stacktrace={frames:At})}return lt}(l,u,S,ae),(0,Ts.M6)(Me,{synthetic:!0}),Me):(Me=$0(l,u,S,U),(0,Ts.gO)(Me,`${u}`,void 0),(0,Ts.M6)(Me,{synthetic:!0}),Me)}function $0(l,u,S,U){const ae={};if(U&&S){const Me=g_(l,S);Me.length&&(ae.exception={values:[{value:u,stacktrace:{frames:Me}}]})}if((0,vd.NF)(u)){const{__sentry_template_string__:Me,__sentry_template_values__:Re}=u;return ae.logentry={message:Me,params:Re},ae}return ae.message=u,ae}function QC(l,{isUnhandledRejection:u}){const S=(0,ys.HF)(l),U=u?"promise rejection":"exception";return(0,vd.T2)(l)?`Event \`ErrorEvent\` captured as ${U} with message \`${l.message}\``:(0,vd.xH)(l)?`Event \`${function um(l){try{const u=Object.getPrototypeOf(l);return u?u.constructor.name:void 0}catch{}}(l)}\` (type=${l.type}) captured as ${U}`:`Object captured as ${U} with keys: ${S}`}const ey=(l={})=>{const u={onerror:!0,onunhandledrejection:!0,...l};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(S){u.onerror&&(function bx(l){$u(u=>{const{stackParser:S,attachStacktrace:U}=J0();if((0,is.KU)()!==l||Ye())return;const{msg:ae,url:Me,line:Re,column:He,error:lt}=u,At=function Yg(l,u,S,U){const ae=l.exception=l.exception||{},Me=ae.values=ae.values||[],Re=Me[0]=Me[0]||{},He=Re.stacktrace=Re.stacktrace||{},lt=He.frames=He.frames||[],At=isNaN(parseInt(U,10))?void 0:U,di=isNaN(parseInt(S,10))?void 0:S,Di=(0,vd.Kg)(u)&&u.length>0?u:(0,vf.$N)();return 0===lt.length&<.push({colno:At,filename:Di,function:Co.yF,in_app:!0,lineno:di}),l}(G_(S,lt||ae,void 0,U,!1),Me,Re,He);At.level="error",(0,ps.r)(At,{originalException:lt,mechanism:{handled:!1,type:"onerror"}})})}(S),ty("onerror")),u.onunhandledrejection&&(function X0(l){Bl(u=>{const{stackParser:S,attachStacktrace:U}=J0();if((0,is.KU)()!==l||Ye())return;const ae=function W_(l){if((0,vd.sO)(l))return l;try{if("reason"in l)return l.reason;if("detail"in l&&"reason"in l.detail)return l.detail.reason}catch{}return l}(u),Me=(0,vd.sO)(ae)?function Jv(l){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(l)}`}]}}}(ae):G_(S,ae,void 0,U,!0);Me.level="error",(0,ps.r)(Me,{originalException:ae,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(S),ty("onunhandledrejection"))}}};function ty(l){Z&&ca.vF.log(`Global Handler attached: ${l}`)}function J0(){const l=(0,is.KU)();return l&&l.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Qv(l,u,S=250,U,ae,Me,Re){if(!(Me.exception&&Me.exception.values&&Re&&(0,vd.tH)(Re.originalException,Error)))return;const He=Me.exception.values.length>0?Me.exception.values[Me.exception.values.length-1]:void 0;He&&(Me.exception.values=function yx(l,u){return l.map(S=>(S.value&&(S.value=(0,sp.xv)(S.value,u)),S))}(Q0(l,u,ae,Re.originalException,U,Me.exception.values,He,0),S))}function Q0(l,u,S,U,ae,Me,Re,He){if(Me.length>=S+1)return Me;let lt=[...Me];if((0,vd.tH)(U[ae],Error)){tg(Re,He);const At=l(u,U[ae]),di=lt.length;Z0(At,ae,di,He),lt=Q0(l,u,S,U[ae],ae,[At,...lt],At,di)}return Array.isArray(U.errors)&&U.errors.forEach((At,di)=>{if((0,vd.tH)(At,Error)){tg(Re,He);const Di=l(u,At),Ki=lt.length;Z0(Di,`errors[${di}]`,Ki,He),lt=Q0(l,u,S,At,ae,[Di,...lt],Di,Ki)}}),lt}function tg(l,u){l.mechanism=l.mechanism||{type:"generic",handled:!0},l.mechanism={...l.mechanism,..."AggregateError"===l.type&&{is_exception_group:!0},exception_id:u}}function Z0(l,u,S,U){l.mechanism=l.mechanism||{type:"generic",handled:!0},l.mechanism={...l.mechanism,type:"chained",source:u,exception_id:S,parent_id:U}}const Sg=(l={})=>{const u=l.limit||5,S=l.key||"cause";return{name:"LinkedErrors",preprocessEvent(U,ae,Me){const Re=Me.getOptions();Qv(ch,Re.stackParser,Re.maxValueLength,S,u,U,ae)}}},Cv=()=>({name:"HttpContext",preprocessEvent(l){if(!Oe.navigator&&!Oe.location&&!Oe.document)return;const u=l.request&&l.request.url||Oe.location&&Oe.location.href,{referrer:S}=Oe.document||{},{userAgent:U}=Oe.navigator||{},ae={...l.request&&l.request.headers,...S&&{Referer:S},...U&&{"User-Agent":U}},Me={...l.request,...u&&{url:u},headers:ae};l.request=Me}}),eb=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Zv=(l={})=>({name:"InboundFilters",processEvent(u,S,U){const ae=U.getOptions(),Me=function qC(l={},u={}){return{allowUrls:[...l.allowUrls||[],...u.allowUrls||[]],denyUrls:[...l.denyUrls||[],...u.denyUrls||[]],ignoreErrors:[...l.ignoreErrors||[],...u.ignoreErrors||[],...l.disableErrorDefaults?[]:eb],ignoreTransactions:[...l.ignoreTransactions||[],...u.ignoreTransactions||[]],ignoreInternal:void 0===l.ignoreInternal||l.ignoreInternal}}(l,ae);return function ew(l,u){return u.ignoreInternal&&function tb(l){try{return"SentryError"===l.exception.values[0].type}catch{}return!1}(l)?(Ns.T&&ca.vF.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,Ts.$X)(l)}`),!0):function ny(l,u){return!(l.type||!u||!u.length)&&function ry(l){const u=[];let S;l.message&&u.push(l.message);try{S=l.exception.values[l.exception.values.length-1]}catch{}return S&&S.value&&(u.push(S.value),S.type&&u.push(`${S.type}: ${S.value}`)),u}(l).some(S=>(0,sp.Xr)(S,u))}(l,u.ignoreErrors)?(Ns.T&&ca.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,Ts.$X)(l)}`),!0):function Cx(l,u){if("transaction"!==l.type||!u||!u.length)return!1;const S=l.transaction;return!!S&&(0,sp.Xr)(S,u)}(l,u.ignoreTransactions)?(Ns.T&&ca.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,Ts.$X)(l)}`),!0):function wx(l,u){if(!u||!u.length)return!1;const S=ib(l);return!!S&&(0,sp.Xr)(S,u)}(l,u.denyUrls)?(Ns.T&&ca.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,Ts.$X)(l)}.\nUrl: ${ib(l)}`),!0):!function Sv(l,u){if(!u||!u.length)return!0;const S=ib(l);return!S||(0,sp.Xr)(S,u)}(l,u.allowUrls)&&(Ns.T&&ca.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,Ts.$X)(l)}.\nUrl: ${ib(l)}`),!0)}(u,Me)?null:u}});function ib(l){try{let u;try{u=l.exception.values[0].stacktrace.frames}catch{}return u?function tw(l=[]){for(let u=l.length-1;u>=0;u--){const S=l[u];if(S&&"<anonymous>"!==S.filename&&"[native code]"!==S.filename)return S.filename||null}return null}(u):null}catch{return Ns.T&&ca.vF.error(`Cannot extract url for event ${(0,Ts.$X)(l)}`),null}}let b_;const nb=new WeakMap,hm=()=>({name:"FunctionToString",setupOnce(){b_=Function.prototype.toString;try{Function.prototype.toString=function(...l){const u=(0,ys.sp)(this),S=nb.has((0,is.KU)())&&void 0!==u?u:this;return b_.apply(S,l)}}catch{}},setup(l){nb.set(l,!0)}}),Ev=()=>{let l;return{name:"Dedupe",processEvent(u){if(u.type)return u;try{if(function qv(l,u){return!(!u||!function iw(l,u){const S=l.message,U=u.message;return!(!S&&!U||S&&!U||!S&&U||S!==U||!e0(l,u)||!Dx(l,u))}(l,u)&&!function nw(l,u){const S=rb(u),U=rb(l);return!!(S&&U&&S.type===U.type&&S.value===U.value&&e0(l,u)&&Dx(l,u))}(l,u))}(u,l))return Ns.T&&ca.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return l=u}}};function Dx(l,u){let S=Ex(l),U=Ex(u);if(!S&&!U)return!0;if(S&&!U||!S&&U||U.length!==S.length)return!1;for(let ae=0;ae<U.length;ae++){const Me=U[ae],Re=S[ae];if(Me.filename!==Re.filename||Me.lineno!==Re.lineno||Me.colno!==Re.colno||Me.function!==Re.function)return!1}return!0}function e0(l,u){let S=l.fingerprint,U=u.fingerprint;if(!S&&!U)return!0;if(S&&!U||!S&&U)return!1;try{return S.join("")===U.join("")}catch{return!1}}function rb(l){return l.exception&&l.exception.values&&l.exception.values[0]}function Ex(l){const u=l.exception;if(u)try{return u.values[0].stacktrace.frames}catch{return}}var Mx=D(16368);const rw=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function t0(l,u=!1){const{host:S,path:U,pass:ae,port:Me,projectId:Re,protocol:He,publicKey:lt}=l;return`${He}://${lt}${u&&ae?`:${ae}`:""}@${S}${Me?`:${Me}`:""}/${U&&`${U}/`}${Re}`}function ly(l){return{protocol:l.protocol,publicKey:l.publicKey||"",pass:l.pass||"",host:l.host,port:l.port||"",path:l.path||"",projectId:l.projectId}}function pm(l,u=[]){return[l,u]}function ab(l,u){const[S,U]=l;return[S,[...U,u]]}function Mv(l,u){const S=l[1];for(const U of S)if(u(U,U[0].type))return!0;return!1}function y_(l){return bl.O.__SENTRY__&&bl.O.__SENTRY__.encodePolyfill?bl.O.__SENTRY__.encodePolyfill(l):(new TextEncoder).encode(l)}function sw(l){const[u,S]=l;let U=JSON.stringify(u);function ae(Me){"string"==typeof U?U="string"==typeof Me?U+Me:[y_(U),Me]:U.push("string"==typeof Me?y_(Me):Me)}for(const Me of S){const[Re,He]=Me;if(ae(`\n${JSON.stringify(Re)}\n`),"string"==typeof He||He instanceof Uint8Array)ae(He);else{let lt;try{lt=JSON.stringify(He)}catch{lt=JSON.stringify((0,Sm.S8)(He))}ae(lt)}}return"string"==typeof U?U:function n0(l){const u=l.reduce((ae,Me)=>ae+Me.length,0),S=new Uint8Array(u);let U=0;for(const ae of l)S.set(ae,U),U+=ae.length;return S}(U)}function dw(l){return[{type:"span"},l]}function cw(l){const u="string"==typeof l.data?y_(l.data):l.data;return[(0,ys.Ce)({type:"attachment",length:u.length,filename:l.filename,content_type:l.contentType,attachment_type:l.attachmentType}),u]}const uw={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function r0(l){return uw[l]}function kx(l){if(!l||!l.sdk)return;const{name:u,version:S}=l.sdk;return{name:u,version:S}}class Dg extends Error{constructor(u,S="warn"){super(u),this.message=u,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=S}}var Wf=D(33638),yo=D(715);var py=D(8272);function Fx(l){if("boolean"==typeof l)return Number(l);const u="string"==typeof l?parseFloat(l):l;if(!("number"!=typeof u||isNaN(u)||u<0||u>1))return u;Ns.T&&ca.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(l)} of type ${JSON.stringify(typeof l)}.`)}var pw=D(40331);const fy="Not capturing exception because it's already been captured.";class fw{constructor(u){if(this._options=u,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],u.dsn?this._dsn=function dy(l){const u="string"==typeof l?function Tx(l){const u=rw.exec(l);if(!u)return void(0,ca.pq)(()=>{console.error(`Invalid Sentry Dsn: ${l}`)});const[S,U,ae="",Me,Re="",He]=u.slice(1);let lt="",At=He;const di=At.split("/");if(di.length>1&&(lt=di.slice(0,-1).join("/"),At=di.pop()),At){const Di=At.match(/^\d+/);Di&&(At=Di[0])}return ly({host:Me,pass:ae,path:lt,projectId:At,port:Re,protocol:S,publicKey:U})}(l):ly(l);if(u&&function ow(l){if(!Kl.T)return!0;const{port:u,projectId:S,protocol:U}=l;return!(["protocol","publicKey","host","projectId"].find(Re=>!l[Re]&&(ca.vF.error(`Invalid Sentry Dsn: ${Re} missing`),!0))||(S.match(/^\d+$/)?function aw(l){return"http"===l||"https"===l}(U)?u&&isNaN(parseInt(u,10))&&(ca.vF.error(`Invalid Sentry Dsn: Invalid port ${u}`),1):(ca.vF.error(`Invalid Sentry Dsn: Invalid protocol ${U}`),1):(ca.vF.error(`Invalid Sentry Dsn: Invalid projectId ${S}`),1)))}(u))return u}(u.dsn):Ns.T&&ca.vF.warn("No DSN provided, client will not send events."),this._dsn){const S=function Px(l,u,S){return u||`${function sb(l){return`${function Rx(l){return`${l.protocol?`${l.protocol}:`:""}//${l.host}${l.port?`:${l.port}`:""}${l.path?`/${l.path}`:""}/api/`}(l)}${l.projectId}/envelope/`}(l)}?${function a0(l,u){return(0,ys.u4)({sentry_key:l.publicKey,sentry_version:"7",...u&&{sentry_client:`${u.name}/${u.version}`}})}(l,S)}`}(this._dsn,u.tunnel,u._metadata?u._metadata.sdk:void 0);this._transport=u.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...u.transportOptions,url:S})}}captureException(u,S,U){const ae=(0,Ts.eJ)();if((0,Ts.GR)(u))return Ns.T&&ca.vF.log(fy),ae;const Me={event_id:ae,...S};return this._process(this.eventFromException(u,Me).then(Re=>this._captureEvent(Re,Me,U))),Me.event_id}captureMessage(u,S,U,ae){const Me={event_id:(0,Ts.eJ)(),...U},Re=(0,vd.NF)(u)?u:String(u),He=(0,vd.sO)(u)?this.eventFromMessage(Re,S,Me):this.eventFromException(u,Me);return this._process(He.then(lt=>this._captureEvent(lt,Me,ae))),Me.event_id}captureEvent(u,S,U){const ae=(0,Ts.eJ)();if(S&&S.originalException&&(0,Ts.GR)(S.originalException))return Ns.T&&ca.vF.log(fy),ae;const Me={event_id:ae,...S};return this._process(this._captureEvent(u,Me,(u.sdkProcessingMetadata||{}).capturedSpanScope||U)),Me.event_id}captureSession(u){"string"!=typeof u.release?Ns.T&&ca.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(u),(0,py.qO)(u,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(u){const S=this._transport;return S?(this.emit("flush"),this._isClientDoneProcessing(u).then(U=>S.flush(u).then(ae=>U&&ae))):(0,Ld.XW)(!0)}close(u){return this.flush(u).then(S=>(this.getOptions().enabled=!1,this.emit("close"),S))}getEventProcessors(){return this._eventProcessors}addEventProcessor(u){this._eventProcessors.push(u)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(u){return this._integrations[u]}addIntegration(u){const S=this._integrations[u.name];zp(this,u,this._integrations),S||h_(this,[u])}sendEvent(u,S={}){this.emit("beforeSendEvent",u,S);let U=function Eg(l,u,S,U){const ae=kx(S),Me=l.type&&"replay_event"!==l.type?l.type:"event";!function uy(l,u){u&&(l.sdk=l.sdk||{},l.sdk.name=l.sdk.name||u.name,l.sdk.version=l.sdk.version||u.version,l.sdk.integrations=[...l.sdk.integrations||[],...u.integrations||[]],l.sdk.packages=[...l.sdk.packages||[],...u.packages||[]])}(l,S&&S.sdk);const Re=function ob(l,u,S,U){const ae=l.sdkProcessingMetadata&&l.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:l.event_id,sent_at:(new Date).toISOString(),...u&&{sdk:u},...!!S&&U&&{dsn:t0(U)},...ae&&{trace:(0,ys.Ce)({...ae})}}}(l,ae,U,u);return delete l.sdkProcessingMetadata,pm(Re,[[{type:Me},l]])}(u,this._dsn,this._options._metadata,this._options.tunnel);for(const Me of S.attachments||[])U=ab(U,cw(Me));const ae=this.sendEnvelope(U);ae&&ae.then(Me=>this.emit("afterSendEvent",u,Me),null)}sendSession(u){const S=function Lx(l,u,S,U){const ae=kx(S);return pm({sent_at:(new Date).toISOString(),...ae&&{sdk:ae},...!!U&&u&&{dsn:t0(u)}},["aggregates"in l?[{type:"sessions"},l]:[{type:"session"},l.toJSON()]])}(u,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(S)}recordDroppedEvent(u,S,U){if(this._options.sendClientReports){const ae=`${u}:${S}`;Ns.T&&ca.vF.log(`Adding outcome: "${ae}"`),this._outcomes[ae]=this._outcomes[ae]+1||1}}on(u,S){this._hooks[u]||(this._hooks[u]=[]),this._hooks[u].push(S)}emit(u,...S){this._hooks[u]&&this._hooks[u].forEach(U=>U(...S))}sendEnvelope(u){return this.emit("beforeEnvelope",u),this._isEnabled()&&this._transport?this._transport.send(u).then(null,S=>(Ns.T&&ca.vF.error("Error while sending event:",S),S)):(Ns.T&&ca.vF.error("Transport disabled"),(0,Ld.XW)({}))}_setupIntegrations(){const{integrations:u}=this._options;this._integrations=function Yv(l,u){const S={};return u.forEach(U=>{U&&zp(l,U,S)}),S}(this,u),h_(this,u)}_updateSessionFromEvent(u,S){let U=!1,ae=!1;const Me=S.exception&&S.exception.values;if(Me){ae=!0;for(const lt of Me){const At=lt.mechanism;if(At&&!1===At.handled){U=!0;break}}}const Re="ok"===u.status;(Re&&0===u.errors||Re&&U)&&((0,py.qO)(u,{...U&&{status:"crashed"},errors:u.errors||Number(ae||U)}),this.captureSession(u))}_isClientDoneProcessing(u){return new Ld.T2(S=>{let U=0;const Me=setInterval(()=>{0==this._numProcessing?(clearInterval(Me),S(!0)):(U+=1,u&&U>=u&&(clearInterval(Me),S(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(u,S,U,ae=(0,is.rm)()){const Me=this.getOptions(),Re=Object.keys(this._integrations);return!S.integrations&&Re.length>0&&(S.integrations=Re),this.emit("preprocessEvent",u,S),u.type||ae.setLastEventId(u.event_id||S.event_id),(0,pw.mG)(Me,u,S,U,this,ae).then(He=>{if(null===He)return He;const lt={...ae.getPropagationContext(),...U?U.getPropagationContext():void 0};if((!He.contexts||!He.contexts.trace)&<){const{traceId:di,spanId:Di,parentSpanId:Ki,dsc:Ji}=lt;He.contexts={trace:(0,ys.Ce)({trace_id:di,span_id:Di,parent_span_id:Ki}),...He.contexts};const rn=Ji||(0,Wf.lF)(di,this);He.sdkProcessingMetadata={dynamicSamplingContext:rn,...He.sdkProcessingMetadata}}return He})}_captureEvent(u,S={},U){return this._processEvent(u,S,U).then(ae=>ae.event_id,ae=>{if(Ns.T){const Me=ae;"log"===Me.logLevel?ca.vF.log(Me.message):ca.vF.warn(Me)}})}_processEvent(u,S,U){const ae=this.getOptions(),{sampleRate:Me}=ae,Re=my(u),He=o0(u),lt=u.type||"error",At=`before send for type \`${lt}\``,di=typeof Me>"u"?void 0:Fx(Me);if(He&&"number"==typeof di&&Math.random()>di)return this.recordDroppedEvent("sample_rate","error",u),(0,Ld.xg)(new Dg(`Discarding event because it's not included in the random sample (sampling rate = ${Me})`,"log"));const Di="replay_event"===lt?"replay":lt;return this._prepareEvent(u,S,U,(u.sdkProcessingMetadata||{}).capturedSpanIsolationScope).then(rn=>{if(null===rn)throw this.recordDroppedEvent("event_processor",Di,u),new Dg("An event processor returned `null`, will not send event.","log");if(S.data&&!0===S.data.__sentry__)return rn;const Gn=function Y_(l,u,S){const{beforeSend:U,beforeSendTransaction:ae,beforeSendSpan:Me}=l;if(o0(u)&&U)return U(u,S);if(my(u)){if(u.spans&&Me){const Re=[];for(const He of u.spans){const lt=Me(He);lt&&Re.push(lt)}u.spans=Re}if(ae)return ae(u,S)}return u}(ae,rn,S);return function mw(l,u){const S=`${u} must return \`null\` or a valid event.`;if((0,vd.Qg)(l))return l.then(U=>{if(!(0,vd.Qd)(U)&&null!==U)throw new Dg(S);return U},U=>{throw new Dg(`${u} rejected with ${U}`)});if(!(0,vd.Qd)(l)&&null!==l)throw new Dg(S);return l}(Gn,At)}).then(rn=>{if(null===rn)throw this.recordDroppedEvent("before_send",Di,u),new Dg(`${At} returned \`null\`, will not send event.`,"log");const Tn=U&&U.getSession();!Re&&Tn&&this._updateSessionFromEvent(Tn,rn);const Gn=rn.transaction_info;if(Re&&Gn&&rn.transaction!==u.transaction){const Cr="custom";rn.transaction_info={...Gn,source:Cr}}return this.sendEvent(rn,S),rn}).then(null,rn=>{throw rn instanceof Dg?rn:(this.captureException(rn,{data:{__sentry__:!0},originalException:rn}),new Dg(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${rn}`))})}_process(u){this._numProcessing++,u.then(S=>(this._numProcessing--,S),S=>(this._numProcessing--,S))}_clearOutcomes(){const u=this._outcomes;return this._outcomes={},Object.keys(u).map(S=>{const[U,ae]=S.split(":");return{reason:U,category:ae,quantity:u[S]}})}}function o0(l){return void 0===l.type}function my(l){return"transaction"===l.type}function Bx(l,u,S=[u],U="npm"){const ae=l._metadata||{};ae.sdk||(ae.sdk={name:`sentry.javascript.${u}`,packages:S.map(Me=>({name:`${U}:@sentry/${Me}`,version:"8.5.0"})),version:"8.5.0"}),l._metadata=ae}class _w extends fw{constructor(u){const S={parentSpanIsAlwaysRootSpan:!0,...u};Bx(S,"browser",["browser"],Oe.SENTRY_SDK_SOURCE||"npm"),super(S),S.sendClientReports&&Oe.document&&Oe.document.addEventListener("visibilitychange",()=>{"hidden"===Oe.document.visibilityState&&this._flushOutcomes()})}eventFromException(u,S){return function Kv(l,u,S,U){const Me=G_(l,u,S&&S.syntheticException||void 0,U);return(0,Ts.M6)(Me),Me.level="error",S&&S.event_id&&(Me.event_id=S.event_id),(0,Ld.XW)(Me)}(this._options.stackParser,u,S,this._options.attachStacktrace)}eventFromMessage(u,S="info",U){return function Xv(l,u,S="info",U,ae){const Re=$0(l,u,U&&U.syntheticException||void 0,ae);return Re.level=S,U&&U.event_id&&(Re.event_id=U.event_id),(0,Ld.XW)(Re)}(this._options.stackParser,u,S,U,this._options.attachStacktrace)}captureUserFeedback(u){if(!this._isEnabled())return void(Z&&ca.vF.warn("SDK not enabled, will not capture user feedback."));const S=function s0(l,{metadata:u,tunnel:S,dsn:U}){const ae={event_id:l.event_id,sent_at:(new Date).toISOString(),...u&&u.sdk&&{sdk:{name:u.sdk.name,version:u.sdk.version}},...!!S&&!!U&&{dsn:t0(U)}},Me=function Nx(l){return[{type:"user_report"},l]}(l);return pm(ae,[Me])}(u,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(S)}_prepareEvent(u,S,U){return u.platform=u.platform||"javascript",super._prepareEvent(u,S,U)}_flushOutcomes(){const u=this._clearOutcomes();if(0===u.length)return void(Z&&ca.vF.log("No outcomes to send"));if(!this._dsn)return void(Z&&ca.vF.log("No dsn provided, will not send outcomes"));Z&&ca.vF.log("Sending outcomes:",u);const S=function gw(l,u,S){return pm(u?{dsn:u}:{},[[{type:"client_report"},{timestamp:S||(0,dd.lu)(),discarded_events:l}]])}(u,this._options.tunnel&&t0(this._dsn));this.sendEnvelope(S)}}const Vx=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],B1=(l={})=>{const u={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...l};return{name:"BrowserApiErrors",setupOnce(){u.setTimeout&&(0,ys.GS)(Oe,"setTimeout",lb),u.setInterval&&(0,ys.GS)(Oe,"setInterval",lb),u.requestAnimationFrame&&(0,ys.GS)(Oe,"requestAnimationFrame",Dm),u.XMLHttpRequest&&"XMLHttpRequest"in Oe&&(0,ys.GS)(XMLHttpRequest.prototype,"send",zx);const S=u.eventTarget;S&&(Array.isArray(S)?S:Vx).forEach(Kg)}}};function lb(l){return function(...u){return u[0]=$t(u[0],{mechanism:{data:{function:(0,Co.qQ)(l)},handled:!1,type:"instrument"}}),l.apply(this,u)}}function Dm(l){return function(u){return l.apply(this,[$t(u,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Co.qQ)(l)},handled:!1,type:"instrument"}})])}}function zx(l){return function(...u){const S=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(ae=>{ae in S&&"function"==typeof S[ae]&&(0,ys.GS)(S,ae,function(Me){const Re={mechanism:{data:{function:ae,handler:(0,Co.qQ)(Me)},handled:!1,type:"instrument"}},He=(0,ys.sp)(Me);return He&&(Re.mechanism.data.handler=(0,Co.qQ)(He)),$t(Me,Re)})}),l.apply(this,u)}}function Kg(l){const S=Oe[l]&&Oe[l].prototype;!S||!S.hasOwnProperty||!S.hasOwnProperty("addEventListener")||((0,ys.GS)(S,"addEventListener",function(U){return function(ae,Me,Re){try{"function"==typeof Me.handleEvent&&(Me.handleEvent=$t(Me.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Co.qQ)(Me),target:l},handled:!1,type:"instrument"}}))}catch{}return U.apply(this,[ae,$t(Me,{mechanism:{data:{function:"addEventListener",handler:(0,Co.qQ)(Me),target:l},handled:!1,type:"instrument"}}),Re])}}),(0,ys.GS)(S,"removeEventListener",function(U){return function(ae,Me,Re){const He=Me;try{const lt=He&&He.__sentry_wrapped__;lt&&U.call(this,ae,lt,Re)}catch{}return U.call(this,ae,He,Re)}}))}function db(l,u,S,U){const ae={filename:l,function:"<anonymous>"===u?Co.yF:u,in_app:!0};return void 0!==S&&(ae.lineno=S),void 0!==U&&(ae.colno=U),ae}const Ov=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,d0=/\((\S*)(?::(\d+))(?::(\d+))\)/,Gx=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,bw=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,h0=(0,Co.gd)([30,l=>{const u=Ov.exec(l);if(u){if(u[2]&&0===u[2].indexOf("eval")){const Me=d0.exec(u[2]);Me&&(u[2]=Me[1],u[3]=Me[2],u[4]=Me[3])}const[U,ae]=pb(u[1]||Co.yF,u[2]);return db(ae,U,u[3]?+u[3]:void 0,u[4]?+u[4]:void 0)}}],[50,l=>{const u=Gx.exec(l);if(u){if(u[3]&&u[3].indexOf(" > eval")>-1){const Me=bw.exec(u[3]);Me&&(u[1]=u[1]||"eval",u[3]=Me[1],u[4]=Me[2],u[5]="")}let U=u[3],ae=u[1]||Co.yF;return[ae,U]=pb(ae,U),db(U,ae,u[4]?+u[4]:void 0,u[5]?+u[5]:void 0)}}]),pb=(l,u)=>{const S=-1!==l.indexOf("safari-extension"),U=-1!==l.indexOf("safari-web-extension");return S||U?[-1!==l.indexOf("@")?l.split("@")[0]:Co.yF,S?`safari-extension:${u}`:`safari-web-extension:${u}`]:[l,u]},jf=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,X_={};function Mg(l){X_[l]=void 0}const by=6e4;const _0=64;function yy(l,u,S=function m0(l){const u=[];function U(Re){return u.splice(u.indexOf(Re),1)[0]}return{$:u,add:function ae(Re){if(!function S(){return void 0===l||u.length<l}())return(0,Ld.xg)(new Dg("Not adding Promise because buffer limit was reached."));const He=Re();return-1===u.indexOf(He)&&u.push(He),He.then(()=>U(He)).then(null,()=>U(He).then(null,()=>{})),He},drain:function Me(Re){return new Ld.T2((He,lt)=>{let At=u.length;if(!At)return He(!0);const di=setTimeout(()=>{Re&&Re>0&&He(!1)},Re);u.forEach(Di=>{(0,Ld.XW)(Di).then(()=>{--At||(clearTimeout(di),He(!0))},lt)})})}}}(l.bufferSize||_0)){let U={};return{send:function Me(Re){const He=[];if(Mv(Re,(Di,Ki)=>{const Ji=r0(Ki);if(function mb(l,u,S=Date.now()){return function jx(l,u){return l[u]||l.all||0}(l,u)>S}(U,Ji)){const rn=xy(Di,Ki);l.recordDroppedEvent("ratelimit_backoff",Ji,rn)}else He.push(Di)}),0===He.length)return(0,Ld.XW)({});const lt=pm(Re[0],He),At=Di=>{Mv(lt,(Ki,Ji)=>{const rn=xy(Ki,Ji);l.recordDroppedEvent(Di,r0(Ji),rn)})};return S.add(()=>u({body:sw(lt)}).then(Di=>(void 0!==Di.statusCode&&(Di.statusCode<200||Di.statusCode>=300)&&Ns.T&&ca.vF.warn(`Sentry responded with status code ${Di.statusCode} to sent event.`),U=function g0(l,{statusCode:u,headers:S},U=Date.now()){const ae={...l},Me=S&&S["x-sentry-rate-limits"],Re=S&&S["retry-after"];if(Me)for(const He of Me.trim().split(",")){const[lt,At,,,di]=He.split(":",5),Di=parseInt(lt,10),Ki=1e3*(isNaN(Di)?60:Di);if(At)for(const Ji of At.split(";"))"metric_bucket"===Ji?(!di||di.split(";").includes("custom"))&&(ae[Ji]=U+Ki):ae[Ji]=U+Ki;else ae.all=U+Ki}else Re?ae.all=U+function fb(l,u=Date.now()){const S=parseInt(`${l}`,10);if(!isNaN(S))return 1e3*S;const U=Date.parse(`${l}`);return isNaN(U)?by:U-u}(Re,U):429===u&&(ae.all=U+6e4);return ae}(U,Di),Di),Di=>{throw At("network_error"),Di})).then(Di=>Di,Di=>{if(Di instanceof Dg)return Ns.T&&ca.vF.error("Skipped sending event because buffer is full."),At("queue_overflow"),(0,Ld.XW)({});throw Di})},flush:Re=>S.drain(Re)}}function xy(l,u){if("event"===u||"transaction"===u)return Array.isArray(l)?l[1]:void 0}function Yx(l,u=function p0(l){const u=X_[l];if(u)return u;let S=Vo[l];if(Qm(S))return X_[l]=S.bind(Vo);const U=Vo.document;if(U&&"function"==typeof U.createElement)try{const ae=U.createElement("iframe");ae.hidden=!0,U.head.appendChild(ae);const Me=ae.contentWindow;Me&&Me[l]&&(S=Me[l]),U.head.removeChild(ae)}catch(ae){jf&&ca.vF.warn(`Could not create sandbox iframe for ${l} check, bailing to window.${l}: `,ae)}return S&&(X_[l]=S.bind(Vo))}("fetch")){let S=0,U=0;return yy(l,function ae(Me){const Re=Me.body.length;S+=Re,U++;const He={body:Me.body,method:"POST",referrerPolicy:"origin",headers:l.headers,keepalive:S<=6e4&&U<15,...l.fetchOptions};if(!u)return Mg("fetch"),(0,Ld.xg)("No fetch implementation available");try{return u(l.url,He).then(lt=>(S-=Re,U--,{statusCode:lt.status,headers:{"x-sentry-rate-limits":lt.headers.get("X-Sentry-Rate-Limits"),"retry-after":lt.headers.get("Retry-After")}}))}catch(lt){return Mg("fetch"),S-=Re,U--,(0,Ld.xg)(lt)}})}function Kx(l={}){const u=function $x(l={}){return{defaultIntegrations:[Zv(),hm(),B1(),Yn(),ey(),Sg(),Ev(),Cv()],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Oe.SENTRY_RELEASE&&Oe.SENTRY_RELEASE.id?Oe.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...l}}(l);if(function Cy(){const S=Oe[Oe.chrome?"chrome":"browser"],U=S&&S.runtime&&S.runtime.id,ae=Oe.location&&Oe.location.href||"",Re=!!U&&Oe===Oe.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some(He=>ae.startsWith(`${He}//`));return!!U&&!Re}())return void(0,ca.pq)(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});Z&&(gf()||ca.vF.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const S={...u,stackParser:(0,Co.vk)(u.stackParser||h0),integrations:_v(u),transport:u.transport||Yx};(function LD(l,u){!0===u.debug&&(Ns.T?ca.vF.enable():(0,ca.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,is.o5)().update(u.initialScope);const U=new l(u);(function sy(l){(0,is.o5)().setClient(l),function Ox(l){const u=(0,Mx.S)((0,Mx.E)());u.hub&&"function"==typeof u.hub.getStackTop&&(u.hub.getStackTop().client=l)}(l)})(U),U.init()})(_w,S),u.autoSessionTracking&&function Sy(){typeof Oe.document>"u"?Z&&ca.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported."):((0,ps.J0)({ignoreDuration:!0}),(0,ps.J5)(),Gf(({from:l,to:u})=>{void 0!==l&&l!==u&&((0,ps.J0)({ignoreDuration:!0}),(0,ps.J5)())}))}()}var Em=D(68271),Ws=D(46947);function Og(l){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const u=l||function Dy(){const l=(0,is.KU)();return l&&l.getOptions()}();return!!u&&(u.enableTracing||"tracesSampleRate"in u||"tracesSampler"in u)}var Tv=D(58861);class J_{constructor(u={}){this._traceId=u.traceId||(0,Ts.eJ)(),this._spanId=u.spanId||(0,Ts.eJ)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:yo.CC}}end(u){}setAttribute(u,S){return this}setAttributes(u){return this}setStatus(u){return this}updateName(u){return this}isRecording(){return!1}addEvent(u,S,U){return this}}var Jx=D(36985);function gb(l){if(!l||0===l.length)return;const u={};return l.forEach(S=>{const U=S.attributes||{},ae=U[Ws.Sn],Me=U[Ws.xc];"string"==typeof ae&&"number"==typeof Me&&(u[S.name]={value:Me,unit:ae})}),u}const Ty="_sentryScope",Gp="_sentryIsolationScope";function Ay(l){return{scope:l[Ty],isolationScope:l[Gp]}}class _b{constructor(u={}){this._traceId=u.traceId||(0,Ts.eJ)(),this._spanId=u.spanId||(0,Ts.eJ)().substring(16),this._startTime=u.startTimestamp||(0,dd.zf)(),this._attributes={},this.setAttributes({[Ws.JD]:"manual",[Ws.uT]:u.op,...u.attributes}),this._name=u.name,u.parentSpanId&&(this._parentSpanId=u.parentSpanId),"sampled"in u&&(this._sampled=u.sampled),u.endTimestamp&&(this._endTime=u.endTimestamp),this._events=[],this._isStandaloneSpan=u.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:u,_traceId:S,_sampled:U}=this;return{spanId:u,traceId:S,traceFlags:U?yo.aO:yo.CC}}setAttribute(u,S){void 0===S?delete this._attributes[u]:this._attributes[u]=S}setAttributes(u){Object.keys(u).forEach(S=>this.setAttribute(S,u[S]))}updateStartTime(u){this._startTime=(0,yo.cI)(u)}setStatus(u){return this._status=u,this}updateName(u){return this._name=u,this}end(u){this._endTime||(this._endTime=(0,yo.cI)(u),function My(l){if(!Ns.T)return;const{description:u="< unknown name >",op:S="< unknown op >"}=(0,yo.et)(l),{spanId:U}=l.spanContext(),Me=(0,yo.zU)(l)===l;ca.vF.log(`[Tracing] Finishing "${S}" ${Me?"root ":""}span "${u}" with ID ${U}`)}(this),this._onSpanEnded())}getSpanJSON(){return(0,ys.Ce)({data:this._attributes,description:this._name,op:this._attributes[Ws.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,yo.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ws.JD],_metrics_summary:(0,Jx.g)(this),profile_id:this._attributes[Ws.E1],exclusive_time:this._attributes[Ws.jG],measurements:gb(this._events),is_segment:this._isStandaloneSpan&&(0,yo.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,yo.zU)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(u,S,U){Ns.T&&ca.vF.log("[Tracing] Adding an event to span:",u);const ae=Qx(S)?S:U||(0,dd.zf)(),Me=Qx(S)?{}:S||{},Re={name:u,time:(0,yo.cI)(ae),attributes:Me};return this._events.push(Re),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const u=(0,is.KU)();if(u&&u.emit("spanEnd",this),!this._isStandaloneSpan&&this!==(0,yo.zU)(this))return;if(this._isStandaloneSpan)return void function bb(l){const u=(0,is.KU)();if(!u)return;const S=l[1];if(!S||0===S.length)return void u.recordDroppedEvent("before_send","span");const U=u.getTransport();U&&U.send(l).then(null,ae=>{Ns.T&&ca.vF.error("Error while sending span:",ae)})}(function hy(l,u){const U=(0,Wf.k1)(l[0]),ae=u&&u.getDsn(),Me=u&&u.getOptions().tunnel,Re={sent_at:(new Date).toISOString(),...function S(di){return!!di.trace_id&&!!di.public_key}(U)&&{trace:U},...!!Me&&ae&&{dsn:t0(ae)}},He=u&&u.getOptions().beforeSendSpan,lt=He?di=>He((0,yo.et)(di)):di=>(0,yo.et)(di),At=[];for(const di of l){const Di=lt(di);Di&&At.push(dw(Di))}return pm(Re,At)}([this],u));const U=this._convertSpanToTransaction();U&&(Ay(this).scope||(0,is.o5)()).captureEvent(U)}_convertSpanToTransaction(){if(!Zx((0,yo.et)(this)))return;this._name||(Ns.T&&ca.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:u,isolationScope:S}=Ay(this),ae=(u||(0,is.o5)()).getClient()||(0,is.KU)();if(!0!==this._sampled)return Ns.T&&ca.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(ae&&ae.recordDroppedEvent("sample_rate","transaction"));const Re=(0,yo.xO)(this).filter(Di=>Di!==this&&!function vb(l){return l instanceof _b&&l.isStandaloneSpan()}(Di)).map(Di=>(0,yo.et)(Di)).filter(Zx),He=this._attributes[Ws.i_],lt={contexts:{trace:(0,yo.Ck)(this)},spans:Re,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:u,capturedSpanIsolationScope:S,...(0,ys.Ce)({dynamicSamplingContext:(0,Wf.k1)(this)})},_metrics_summary:(0,Jx.g)(this),...He&&{transaction_info:{source:He}}},At=gb(this._events);return At&&Object.keys(At).length&&(Ns.T&&ca.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(At,void 0,2)),lt.measurements=At),lt}}function Qx(l){return l&&"number"==typeof l||l instanceof Date||Array.isArray(l)}function Zx(l){return!!(l.start_timestamp&&l.timestamp&&l.span_id&&l.trace_id)}const b0="__SENTRY_SUPPRESS_TRACING__";function Jg(l){const u=wb();if(u.startInactiveSpan)return u.startInactiveSpan(l);const S=function Cb(l){const S={isStandalone:(l.experimental||{}).standalone,...l};if(l.startTime){const U={...S};return U.startTimestamp=(0,yo.cI)(l.startTime),delete U.startTime,U}return S}(l),U=l.scope||(0,is.o5)(),ae=function x0(l){const u=(0,Tv.f)(l);if(!u)return;const S=(0,is.KU)();return(S?S.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,yo.zU)(u):u}(U);return l.onlyIfParent&&!ae?new J_:function xb({parentSpan:l,spanContext:u,forceTransaction:S,scope:U}){if(!Og())return new J_;const ae=(0,is.rm)();let Me;if(l&&!S)Me=function Sw(l,u,S){const{spanId:U,traceId:ae}=l.spanContext(),Me=!u.getScopeData().sdkProcessingMetadata[b0]&&(0,yo.pK)(l),Re=Me?new _b({...S,parentSpanId:U,traceId:ae,sampled:Me}):new J_({traceId:ae});(0,yo.Hu)(l,Re);const He=(0,is.KU)();return He&&(He.emit("spanStart",Re),S.endTimestamp&&He.emit("spanEnd",Re)),Re}(l,U,u),(0,yo.Hu)(l,Me);else if(l){const Re=(0,Wf.k1)(l),{traceId:He,spanId:lt}=l.spanContext(),At=(0,yo.pK)(l);Me=Sb({traceId:He,parentSpanId:lt,...u},U,At),(0,Wf.LZ)(Me,Re)}else{const{traceId:Re,dsc:He,parentSpanId:lt,sampled:At}={...ae.getPropagationContext(),...U.getPropagationContext()};Me=Sb({traceId:Re,parentSpanId:lt,...u},U,At),He&&(0,Wf.LZ)(Me,He)}return function Ey(l){if(!Ns.T)return;const{description:u="< unknown name >",op:S="< unknown op >",parent_span_id:U}=(0,yo.et)(l),{spanId:ae}=l.spanContext(),Me=(0,yo.pK)(l),Re=(0,yo.zU)(l),He=Re===l,lt=`[Tracing] Starting ${Me?"sampled":"unsampled"} ${He?"root ":""}span`,At=[`op: ${S}`,`name: ${u}`,`ID: ${ae}`];if(U&&At.push(`parent ID: ${U}`),!He){const{op:di,description:Di}=(0,yo.et)(Re);At.push(`root ID: ${Re.spanContext().spanId}`),di&&At.push(`root op: ${di}`),Di&&At.push(`root description: ${Di}`)}ca.vF.log(`${lt}\n ${At.join("\n ")}`)}(Me),function S_(l,u,S){l&&((0,ys.my)(l,Gp,S),(0,ys.my)(l,Ty,u))}(Me,U,ae),Me}({parentSpan:ae,spanContext:S,forceTransaction:l.forceTransaction,scope:U})}function wb(){const l=(0,Mx.E)();return(0,Em.h)(l)}function Sb(l,u,S){const U=(0,is.KU)(),ae=U&&U.getOptions()||{},{name:Me="",attributes:Re}=l,[He,lt]=u.getScopeData().sdkProcessingMetadata[b0]?[!1]:function Xx(l,u){if(!Og(l))return[!1];let S;S="function"==typeof l.tracesSampler?l.tracesSampler(u):void 0!==u.parentSampled?u.parentSampled:typeof l.tracesSampleRate<"u"?l.tracesSampleRate:1;const U=Fx(S);return void 0===U?(Ns.T&&ca.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):U?Math.random()<U?[!0,U]:(Ns.T&&ca.vF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(S)})`),[!1,U]):(Ns.T&&ca.vF.log("[Tracing] Discarding transaction because "+("function"==typeof l.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,U])}(ae,{name:Me,parentSampled:S,attributes:Re,transactionContext:{name:Me,parentSampled:S}}),At=new _b({...l,attributes:{[Ws.i_]:"custom",...l.attributes},sampled:He});return void 0!==lt&&At.setAttribute(Ws.sy,lt),U&&U.emit("spanStart",At),At}const Qg=(l,u,S,U)=>{let ae,Me;return Re=>{u.value>=0&&(Re||U)&&(Me=u.value-(ae||0),(Me||void 0===ae)&&(ae=u.value,u.delta=Me,u.rating=((l,u)=>l>u[1]?"poor":l>u[0]?"needs-improvement":"good")(u.value,S),l(u)))}},Av=()=>Vo.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],C0=()=>{const l=Av();return l&&l.activationStart||0},D_=(l,u)=>{const S=Av();let U="navigate";return S&&(Vo.document&&Vo.document.prerendering||C0()>0?U="prerender":Vo.document&&Vo.document.wasDiscarded?U="restore":S.type&&(U=S.type.replace(/_/g,"-"))),{name:l,value:typeof u>"u"?-1:u,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:U}},Q_=(l,u,S)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(l)){const U=new PerformanceObserver(ae=>{Promise.resolve().then(()=>{u(ae.getEntries())})});return U.observe(Object.assign({type:l,buffered:!0},S||{})),U}}catch{}},Eb=l=>{const u=S=>{("pagehide"===S.type||Vo.document&&"hidden"===Vo.document.visibilityState)&&l(S)};Vo.document&&(addEventListener("visibilitychange",u,!0),addEventListener("pagehide",u,!0))},Dw=l=>{let u=!1;return S=>{u||(l(S),u=!0)}};let Mb=-1;const Iy=l=>{"hidden"===Vo.document.visibilityState&&Mb>-1&&(Mb="visibilitychange"===l.type?l.timeStamp:0,removeEventListener("visibilitychange",Iy,!0),removeEventListener("prerenderingchange",Iy,!0))},Z_=()=>(Vo.document&&Mb<0&&(Mb="hidden"!==Vo.document.visibilityState||Vo.document.prerendering?1/0:0,addEventListener("visibilitychange",Iy,!0),addEventListener("prerenderingchange",Iy,!0)),{get firstHiddenTime(){return Mb}}),Ob=l=>{Vo.document&&Vo.document.prerendering?addEventListener("prerenderingchange",()=>l(),!0):l()},tC=[1800,3e3],j1=[.1,.25],Y1=(l,u={})=>{((l,u={})=>{Ob(()=>{const S=Z_(),U=D_("FCP");let ae;const Re=Q_("paint",He=>{He.forEach(lt=>{"first-contentful-paint"===lt.name&&(Re.disconnect(),lt.startTime<S.firstHiddenTime&&(U.value=Math.max(lt.startTime-C0(),0),U.entries.push(lt),ae(!0)))})});Re&&(ae=Qg(l,U,tC,u.reportAllChanges))})})(Dw(()=>{const S=D_("CLS",0);let U,ae=0,Me=[];const Re=lt=>{lt.forEach(At=>{At.hadRecentInput||(ae&&At.startTime-Me[Me.length-1].startTime<1e3&&At.startTime-Me[0].startTime<5e3?(ae+=At.value,Me.push(At)):(ae=At.value,Me=[At]))}),ae>S.value&&(S.value=ae,S.entries=Me,U())},He=Q_("layout-shift",Re);He&&(U=Qg(l,S,j1,u.reportAllChanges),Eb(()=>{Re(He.takeRecords()),U(!0)}),setTimeout(U,0))}))},$1=[100,300],K1=(l,u={})=>{Ob(()=>{const S=Z_(),U=D_("FID");let ae;const Me=lt=>{lt.startTime<S.firstHiddenTime&&(U.value=lt.processingStart-lt.startTime,U.entries.push(lt),ae(!0))},Re=lt=>{lt.forEach(Me)},He=Q_("first-input",Re);ae=Qg(l,U,$1,u.reportAllChanges),He&&Eb(Dw(()=>{Re(He.takeRecords()),He.disconnect()}))})};let Ew=0,ky=1/0,Tb=0;const X1=l=>{l.forEach(u=>{u.interactionId&&(ky=Math.min(ky,u.interactionId),Tb=Math.max(Tb,u.interactionId),Ew=Tb?(Tb-ky)/7+1:0)})};let nC;const w0=[200,500],Ow=()=>(nC?Ew:performance.interactionCount||0)-0,Zg=[],aC={},Wp=l=>{const S=aC[l.interactionId];if(S||Zg.length<10||l.duration>Zg[Zg.length-1].latency){if(S)S.entries.push(l),S.latency=Math.max(S.latency,l.duration);else{const U={id:l.interactionId,latency:l.duration,entries:[l]};aC[U.id]=U,Zg.push(U)}Zg.sort((U,ae)=>ae.latency-U.latency),Zg.splice(10).forEach(U=>{delete aC[U.id]})}},Yc=(l,u={})=>{Ob(()=>{"interactionCount"in performance||nC||(nC=Q_("event",X1,{type:"event",buffered:!0,durationThreshold:0}));const S=D_("INP");let U;const ae=Re=>{Re.forEach(lt=>{lt.interactionId&&Wp(lt),"first-input"===lt.entryType&&!Zg.some(di=>di.entries.some(Di=>lt.duration===Di.duration&<.startTime===Di.startTime))&&Wp(lt)});const He=(()=>{const l=Math.min(Zg.length-1,Math.floor(Ow()/50));return Zg[l]})();He&&He.latency!==S.value&&(S.value=He.latency,S.entries=He.entries,U())},Me=Q_("event",ae,{durationThreshold:null!=u.durationThreshold?u.durationThreshold:40});U=Qg(l,S,w0,u.reportAllChanges),Me&&("PerformanceEventTiming"in Vo&&"interactionId"in PerformanceEventTiming.prototype&&Me.observe({type:"first-input",buffered:!0}),Eb(()=>{ae(Me.takeRecords()),S.value<0&&Ow()>0&&(S.value=0,S.entries=[]),U(!0)}))})},S0=[2500,4e3],Py={},Tw=(l,u={})=>{Ob(()=>{const S=Z_(),U=D_("LCP");let ae;const Me=He=>{const lt=He[He.length-1];lt&<.startTime<S.firstHiddenTime&&(U.value=Math.max(lt.startTime-C0(),0),U.entries=[lt],ae())},Re=Q_("largest-contentful-paint",Me);if(Re){ae=Qg(l,U,S0,u.reportAllChanges);const He=Dw(()=>{Py[U.id]||(Me(Re.takeRecords()),Re.disconnect(),Py[U.id]=!0,ae(!0))});["keydown","click"].forEach(lt=>{Vo.document&&addEventListener(lt,()=>setTimeout(He,0),!0)}),Eb(He)}})},Tg=[800,1800],oC=l=>{Vo.document&&Vo.document.prerendering?Ob(()=>oC(l)):Vo.document&&"complete"!==Vo.document.readyState?addEventListener("load",()=>oC(l),!0):setTimeout(l,0)},D0=(l,u={})=>{const S=D_("TTFB"),U=Qg(l,S,Tg,u.reportAllChanges);oC(()=>{const ae=Av();if(ae){const Me=ae.responseStart;if(Me<=0||Me>performance.now())return;S.value=Math.max(Me-C0(),0),S.entries=[ae],U(!0)}})},E0={},Ab={};let Ly,Ib,sC,lC,M0;function Fy(l,u){return By(l,u),Ab[l]||(function tv(l){const u={};"event"===l&&(u.durationThreshold=0),Q_(l,S=>{ev(l,{entries:S})},u)}(l),Ab[l]=!0),hC(l,u)}function ev(l,u){const S=E0[l];if(S&&S.length)for(const U of S)try{U(u)}catch(ae){jf&&ca.vF.error(`Error while triggering instrumentation handler.\nType: ${l}\nName: ${(0,Co.qQ)(U)}\nError:`,ae)}}function cC(){return Y1(l=>{ev("cls",{metric:l}),Ly=l},{reportAllChanges:!0})}function Rw(){return K1(l=>{ev("fid",{metric:l}),Ib=l})}function Pw(){return Tw(l=>{ev("lcp",{metric:l}),sC=l})}function J1(){return D0(l=>{ev("ttfb",{metric:l}),lC=l})}function uC(){return Yc(l=>{ev("inp",{metric:l}),M0=l})}function Ag(l,u,S,U,ae=!1){let Me;return By(l,u),Ab[l]||(Me=S(),Ab[l]=!0),U&&u({metric:U}),hC(l,u,ae?Me:void 0)}function By(l,u){E0[l]=E0[l]||[],E0[l].push(u)}function hC(l,u,S){return()=>{S&&S();const U=E0[l];if(!U)return;const ae=U.indexOf(u);-1!==ae&&U.splice(ae,1)}}function O0(l){return"number"==typeof l&&isFinite(l)}function E_(l,u,S,{...U}){const ae=(0,yo.et)(l).start_timestamp;return ae&&ae>u&&"function"==typeof l.updateStartTime&&l.updateStartTime(u),function yb(l,u){const S=wb();return S.withActiveSpan?S.withActiveSpan(l,u):(0,is.v4)(U=>((0,Tv.r)(U,l||void 0),u(U)))}(l,()=>{const Me=Jg({startTime:u,...U});return Me&&Me.end(S),Me})}function T0(){return Vo&&Vo.addEventListener&&Vo.performance}function Fh(l){return l/1e3}const pC=2147483647;let Yf,Rb,kb=0,mu={};function fm(l,u,S,U,ae,Me){const Re=Me?u[Me]:u[`${S}End`],He=u[`${S}Start`];!He||!Re||E_(l,U+Fh(He),U+Fh(Re),{op:"browser",name:ae||S,attributes:{[Ws.JD]:"auto.ui.browser.metrics"}})}function bf(l,u,S,U){const ae=u[S];null!=ae&&ae<pC&&(l[U]=ae)}const O_={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};var mm=D(89871);const iv={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function Iu(l,u={}){const S=new Map;let ae,U=!1,Me="externalFinish",Re=!u.disableAutoFinish;const{idleTimeout:He=iv.idleTimeout,finalTimeout:lt=iv.finalTimeout,childSpanTimeout:At=iv.childSpanTimeout,beforeSpanEnd:di}=u,Di=(0,is.KU)();if(!Di||!Og())return new J_;const Ki=(0,is.o5)(),Ji=(0,yo.Bk)(),rn=function R0(l){const u=Jg(l);return(0,Tv.r)((0,is.o5)(),u),Ns.T&&ca.vF.log("[Tracing] Started span is an idle span"),u}(l);function Tn(Hr=(0,dd.zf)()){const Ra=(0,yo.xO)(rn).filter(Ps=>Ps!==rn);if(!Ra.length)return void rn.end(Hr);const go=Ra.map(Ps=>(0,yo.et)(Ps).timestamp).filter(Ps=>!!Ps),Ma=go.length?Math.max(...go):void 0,Zo=(0,yo.cI)(Hr),js=(0,yo.et)(rn).start_timestamp,ns=Math.min(js?js+lt/1e3:1/0,Math.max(js||-1/0,Math.min(Zo,Ma||1/0)));rn.end(ns)}function Gn(){ae&&(clearTimeout(ae),ae=void 0)}function Cr(Hr){Gn(),ae=setTimeout(()=>{!U&&0===S.size&&Re&&(Me="idleTimeout",Tn(Hr))},He)}function fr(Hr){ae=setTimeout(()=>{!U&&Re&&(Me="heartbeatFailed",Tn(Hr))},At)}return Di.on("spanStart",Hr=>{U||Hr===rn||(0,yo.et)(Hr).timestamp||(0,yo.xO)(rn).includes(Hr)&&function Fr(Hr){Gn(),S.set(Hr,!0),fr((0,dd.zf)()+At/1e3)}(Hr.spanContext().spanId)}),Di.on("spanEnd",Hr=>{U||(function Or(Hr){S.has(Hr)&&S.delete(Hr),0===S.size&&Cr((0,dd.zf)()+He/1e3)}(Hr.spanContext().spanId),Hr===rn&&function gr(){U=!0,S.clear(),di&&di(rn),(0,Tv.r)(Ki,Ji);const Hr=(0,yo.et)(rn),{timestamp:Ra,start_timestamp:go}=Hr;if(!Ra||!go)return;(Hr.data||{})[Ws.fs]||rn.setAttribute(Ws.fs,Me),ca.vF.log(`[Tracing] Idle span "${Hr.op}" finished`);const Zo=(0,yo.xO)(rn).filter(ns=>ns!==rn);let js=0;Zo.forEach(ns=>{ns.isRecording()&&(ns.setStatus({code:mm.TJ,message:"cancelled"}),ns.end(Ra),Ns.T&&ca.vF.log("[Tracing] Cancelling span since span ended early",JSON.stringify(ns,void 0,2)));const Ps=(0,yo.et)(ns),{timestamp:Is=0,start_timestamp:bd=0}=Ps,oo=bd<=Ra,jo=Is-bd<(lt+He)/1e3;if(Ns.T){const Qs=JSON.stringify(ns,void 0,2);oo?jo||ca.vF.log("[Tracing] Discarding span since it finished after idle span final timeout",Qs):ca.vF.log("[Tracing] Discarding span since it happened after idle span was finished",Qs)}(!jo||!oo)&&((0,yo.VS)(rn,ns),js++)}),js>0&&rn.setAttribute("sentry.idle_span_discarded_spans",js)}())}),Di.on("idleSpanEnableAutoFinish",Hr=>{Hr===rn&&(Re=!0,Cr(),S.size&&fr())}),u.disableAutoFinish||Cr(),setTimeout(()=>{U||(rn.setStatus({code:mm.TJ,message:"deadline_exceeded"}),Me="finalTimeout",Tn())},lt),rn}let nv=!1;function rv(){const l=(0,yo.Bk)(),u=l&&(0,yo.zU)(l);if(u){const S="internal_error";Ns.T&&ca.vF.log(`[Tracing] Root span: ${S} -> Global error occured`),u.setStatus({code:mm.TJ,message:S})}}rv.tag="sentry_tracingErrorCallback";var kv=D(11314),Lb=D(72327),Rv=D(74758);const qg={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function Nb(l){const{traceFetch:u,traceXHR:S,shouldCreateSpanForRequest:U,enableHTTPTimings:ae,tracePropagationTargets:Me}={traceFetch:qg.traceFetch,traceXHR:qg.traceXHR,...l},Re="function"==typeof U?U:At=>!0,He=At=>function yC(l,u){const S=Oe.location&&Oe.location.href;if(S){let U,ae;try{U=new URL(l,S),ae=new URL(S).origin}catch{return!1}const Me=U.origin===ae;return u?(0,sp.Xr)(U.toString(),u)||Me&&(0,sp.Xr)(U.pathname,u):Me}{const U=!!l.match(/^\/(?!\/)/);return u?(0,sp.Xr)(l,u):U}}(At,Me),lt={};u&&m_(At=>{const di=function Fb(l,u,S,U,ae="auto.http.browser"){if(!l.fetchData)return;const Me=Og()&&u(l.fetchData.url);if(l.endTimestamp&&Me){const rn=l.fetchData.__span;if(!rn)return;const Tn=U[rn];return void(Tn&&(function Bb(l,u){if(u.response){(0,mm.N8)(l,u.response.status);const S=u.response&&u.response.headers&&u.response.headers.get("content-length");if(S){const U=parseInt(S);U>0&&l.setAttribute("http.response_content_length",U)}}else u.error&&l.setStatus({code:mm.TJ,message:"internal_error"});l.end()}(Tn,l),delete U[rn]))}const Re=(0,is.o5)(),He=(0,is.KU)(),{method:lt,url:At}=l.fetchData,di=function _C(l){try{return new URL(l).href}catch{return}}(At),Di=di?Nc(di).host:void 0,Ki=!!(0,yo.Bk)(),Ji=Me&&Ki?Jg({name:`${lt} ${At}`,attributes:{url:At,type:"fetch","http.method":lt,"http.url":di,"server.address":Di,[Ws.JD]:ae,[Ws.uT]:"http.client"}}):new J_;if(l.fetchData.__span=Ji.spanContext().spanId,U[Ji.spanContext().spanId]=Ji,S(l.fetchData.url)&&He){const rn=l.args[0];l.args[1]=l.args[1]||{};const Tn=l.args[1];Tn.headers=function zy(l,u,S,U,ae){const Me=(0,is.rm)(),{traceId:Re,spanId:He,sampled:lt,dsc:At}={...Me.getPropagationContext(),...S.getPropagationContext()},di=ae?(0,yo.Qh)(ae):(0,kv.TC)(Re,He,lt),Di=(0,Rv.De)(At||(ae?(0,Wf.k1)(ae):(0,Wf.lF)(Re,u))),Ki=U.headers||(typeof Request<"u"&&(0,vd.tH)(l,Request)?l.headers:void 0);if(Ki){if(typeof Headers<"u"&&(0,vd.tH)(Ki,Headers)){const Ji=new Headers(Ki);return Ji.append("sentry-trace",di),Di&&Ji.append(Rv.hF,Di),Ji}if(Array.isArray(Ki)){const Ji=[...Ki,["sentry-trace",di]];return Di&&Ji.push([Rv.hF,Di]),Ji}{const Ji="baggage"in Ki?Ki.baggage:void 0,rn=[];return Array.isArray(Ji)?rn.push(...Ji):Ji&&rn.push(Ji),Di&&rn.push(Di),{...Ki,"sentry-trace":di,baggage:rn.length>0?rn.join(","):void 0}}}return{"sentry-trace":di,baggage:Di}}(rn,He,Re,Tn,Og()&&Ki?Ji:void 0)}return Ji}(At,Re,He,lt);if(di){const Di=L0(At.fetchData.url),Ki=Di?Nc(Di).host:void 0;di.setAttributes({"http.url":Di,"server.address":Ki})}ae&&di&&Uy(di)}),S&&Cg(At=>{const di=function Vw(l,u,S,U){const ae=l.xhr,Me=ae&&ae[Uf];if(!ae||ae.__sentry_own_request__||!Me)return;const Re=Og()&&u(Me.url);if(l.endTimestamp&&Re){const Ki=ae.__sentry_xhr_span_id__;if(!Ki)return;const Ji=U[Ki];return void(Ji&&void 0!==Me.status_code&&((0,mm.N8)(Ji,Me.status_code),Ji.end(),delete U[Ki]))}const He=L0(Me.url),lt=He?Nc(He).host:void 0,At=!!(0,yo.Bk)(),di=Re&&At?Jg({name:`${Me.method} ${Me.url}`,attributes:{type:"xhr","http.method":Me.method,"http.url":He,url:Me.url,"server.address":lt,[Ws.JD]:"auto.http.browser",[Ws.uT]:"http.client"}}):new J_;ae.__sentry_xhr_span_id__=di.spanContext().spanId,U[ae.__sentry_xhr_span_id__]=di;const Di=(0,is.KU)();return ae.setRequestHeader&&S(Me.url)&&Di&&function q1(l,u,S){const U=(0,is.o5)(),ae=(0,is.rm)(),{traceId:Me,spanId:Re,sampled:He,dsc:lt}={...ae.getPropagationContext(),...U.getPropagationContext()};!function Hw(l,u,S){try{l.setRequestHeader("sentry-trace",u),S&&l.setRequestHeader(Rv.hF,S)}catch{}}(l,S&&Og()?(0,yo.Qh)(S):(0,kv.TC)(Me,Re,He),(0,Rv.De)(lt||(S?(0,Wf.k1)(S):(0,Wf.lF)(Me,u))))}(ae,Di,Og()&&At?di:void 0),di}(At,Re,He,lt);ae&&di&&Uy(di)})}function Uy(l){const{url:u}=(0,yo.et)(l).data||{};if(!u||"string"!=typeof u)return;const S=Fy("resource",({entries:U})=>{U.forEach(ae=>{(function $f(l){return"resource"===l.entryType&&"initiatorType"in l&&"string"==typeof l.nextHopProtocol&&("fetch"===l.initiatorType||"xmlhttprequest"===l.initiatorType)})(ae)&&ae.name.endsWith(u)&&(function bC(l){const{name:u,version:S}=function vC(l){let u="unknown",S="unknown",U="";for(const ae of l){if("/"===ae){[u,S]=l.split("/");break}if(!isNaN(Number(ae))){u="h"===U?"http":U,S=l.split(U)[1];break}U+=ae}return U===l&&(u=U),{name:u,version:S}}(l.nextHopProtocol),U=[];return U.push(["network.protocol.version",S],["network.protocol.name",u]),dd.k3?[...U,["http.request.redirect_start",Mm(l.redirectStart)],["http.request.fetch_start",Mm(l.fetchStart)],["http.request.domain_lookup_start",Mm(l.domainLookupStart)],["http.request.domain_lookup_end",Mm(l.domainLookupEnd)],["http.request.connect_start",Mm(l.connectStart)],["http.request.secure_connection_start",Mm(l.secureConnectionStart)],["http.request.connection_end",Mm(l.connectEnd)],["http.request.request_start",Mm(l.requestStart)],["http.request.response_start",Mm(l.responseStart)],["http.request.response_end",Mm(l.responseEnd)]]:U}(ae).forEach(Re=>l.setAttribute(...Re)),setTimeout(S))})})}function Mm(l=0){return((dd.k3||performance.timeOrigin)+l)/1e3}function L0(l){try{return new URL(l,Oe.location.origin).href}catch{return}}const Wy={...iv,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!0,_experiments:{},...qg},Pv=(l={})=>{!function P0(){nv||(nv=!0,$u(rv),Bl(rv))}();const{enableInp:u,enableLongTask:S,_experiments:{enableInteractions:U},beforeStartSpan:ae,idleTimeout:Me,finalTimeout:Re,childSpanTimeout:He,markBackgroundSpan:lt,traceFetch:At,traceXHR:di,shouldCreateSpanForRequest:Di,enableHTTPTimings:Ki,instrumentPageLoad:Ji,instrumentNavigation:rn}={...Wy,...l},Tn=function Q1(){const l=T0();if(l&&dd.k3){l.mark&&Vo.performance.mark("sentry-tracing-init");const u=function Pb(){return function dC(l){return Ag("fid",l,Rw,Ib)}(({metric:l})=>{const u=l.entries[l.entries.length-1];if(!u)return;const S=Fh(dd.k3),U=Fh(u.startTime);jf&&ca.vF.log("[Measurements] Adding FID"),mu.fid={value:l.value,unit:"millisecond"},mu["mark.fid"]={value:S+U,unit:"second"}})}(),S=function Iv(){return function Aw(l,u=!1){return Ag("cls",l,cC,Ly,u)}(({metric:l})=>{const u=l.entries[l.entries.length-1];u&&(jf&&ca.vF.log("[Measurements] Adding CLS"),mu.cls={value:l.value,unit:""},Rb=u)},!0)}(),U=function Z1(){return function Iw(l,u=!1){return Ag("lcp",l,Pw,sC,u)}(({metric:l})=>{const u=l.entries[l.entries.length-1];u&&(jf&&ca.vF.log("[Measurements] Adding LCP"),mu.lcp={value:l.value,unit:"millisecond"},Yf=u)},!0)}(),ae=function fC(){return function kw(l){return Ag("ttfb",l,J1,lC)}(({metric:l})=>{l.entries[l.entries.length-1]&&(jf&&ca.vF.log("[Measurements] Adding TTFB"),mu.ttfb={value:l.value,unit:"millisecond"})})}();return()=>{u(),S(),U(),ae()}}return()=>{}}();u&&function Bw(){if(T0()&&dd.k3){const u=function Hy(){return function Lh(l){return Ag("inp",l,uC,M0)}(({metric:l})=>{const u=(0,is.KU)();if(!u||null==l.value)return;const S=l.entries.find(Fr=>Fr.duration===l.value&&O_[Fr.name]);if(!S)return;const U=O_[S.name],ae=u.getOptions(),Me=Fh(dd.k3+S.startTime),Re=Fh(l.value),He=(0,is.o5)(),lt=(0,yo.Bk)(),At=lt?(0,yo.zU)(lt):void 0,di=At?(0,yo.et)(At).description:void 0,Di=He.getUser(),Ki=u.getIntegrationByName("Replay"),Ji=Ki&&Ki.getReplayId(),rn=void 0!==Di?Di.email||Di.id||Di.ip_address:void 0;let Tn;try{Tn=He.getScopeData().contexts.profile.profile_id}catch{}const fr=Jg({name:(0,vf.Hd)(S.target),op:`ui.interaction.${U}`,attributes:(0,ys.Ce)({release:ae.release,environment:ae.environment,transaction:di,[Ws.jG]:l.value,user:rn||void 0,profile_id:Tn||void 0,replay_id:Ji||void 0}),startTime:Me,experimental:{standalone:!0}});fr.addEvent("inp",{[Ws.Sn]:"millisecond",[Ws.xc]:l.value}),fr.end(Me+Re)})}();return()=>{u()}}return()=>{}}(),S&&function Lw(){Fy("longtask",({entries:l})=>{for(const u of l){if(!(0,yo.Bk)())return;const S=Fh(dd.k3+u.startTime),U=Fh(u.duration),ae=Jg({name:"Main UI thread blocked",op:"ui.long-task",startTime:S,attributes:{[Ws.JD]:"auto.ui.browser.metrics"}});ae&&ae.end(S+U)}})}(),U&&function Ny(){Fy("event",({entries:l})=>{for(const u of l){if(!(0,yo.Bk)())return;if("click"===u.name){const S=Fh(dd.k3+u.startTime),U=Fh(u.duration),ae={name:(0,vf.Hd)(u.target),op:`ui.interaction.${u.name}`,startTime:S,attributes:{[Ws.JD]:"auto.ui.browser.metrics"}},Me=(0,vf.xE)(u.target);Me&&(ae.attributes["ui.component_name"]=Me);const Re=Jg(ae);Re&&Re.end(S+U)}}})}();const Gn={name:void 0,source:void 0};function Cr(fr,Fr){const Or="pageload"===Fr.op,gr=ae?ae(Fr):Fr,Hr=gr.attributes||{};Fr.name!==gr.name&&(Hr[Ws.i_]="custom",gr.attributes=Hr),Gn.name=gr.name,Gn.source=Hr[Ws.i_];const Ra=Iu(gr,{idleTimeout:Me,finalTimeout:Re,childSpanTimeout:He,disableAutoFinish:Or,beforeSpanEnd:Ma=>{Tn(),function Ig(l){const u=T0();if(!u||!Vo.performance.getEntries||!dd.k3)return;jf&&ca.vF.log("[Tracing] Adding & adjusting spans using Performance API");const S=Fh(dd.k3),U=u.getEntries(),{op:ae,start_timestamp:Me}=(0,yo.et)(l);if(U.slice(kb).forEach(Re=>{const He=Fh(Re.startTime),lt=Fh(Re.duration);if(!("navigation"===ae&&Me&&S+He<Me))switch(Re.entryType){case"navigation":!function Fw(l,u,S){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(U=>{fm(l,u,U,S)}),fm(l,u,"secureConnection",S,"TLS/SSL","connectEnd"),fm(l,u,"fetch",S,"cache","domainLookupStart"),fm(l,u,"domainLookup",S,"DNS"),function A0(l,u,S){u.responseEnd&&(E_(l,S+Fh(u.requestStart),S+Fh(u.responseEnd),{op:"browser",name:"request",attributes:{[Ws.JD]:"auto.ui.browser.metrics"}}),E_(l,S+Fh(u.responseStart),S+Fh(u.responseEnd),{op:"browser",name:"response",attributes:{[Ws.JD]:"auto.ui.browser.metrics"}}))}(l,u,S)}(l,Re,S);break;case"mark":case"paint":case"measure":{!function Vy(l,u,S,U,ae){const Me=ae+S;E_(l,Me,Me+U,{name:u.name,op:u.entryType,attributes:{[Ws.JD]:"auto.resource.browser.metrics"}})}(l,Re,He,lt,S);const At=Z_(),di=Re.startTime<At.firstHiddenTime;"first-paint"===Re.name&&di&&(jf&&ca.vF.log("[Measurements] Adding FP"),mu.fp={value:Re.startTime,unit:"millisecond"}),"first-contentful-paint"===Re.name&&di&&(jf&&ca.vF.log("[Measurements] Adding FCP"),mu.fcp={value:Re.startTime,unit:"millisecond"});break}case"resource":!function Ac(l,u,S,U,ae,Me){if("xmlhttprequest"===u.initiatorType||"fetch"===u.initiatorType)return;const Re=Nc(S),He={[Ws.JD]:"auto.resource.browser.metrics"};bf(He,u,"transferSize","http.response_transfer_size"),bf(He,u,"encodedBodySize","http.response_content_length"),bf(He,u,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in u&&(He["resource.render_blocking_status"]=u.renderBlockingStatus),Re.protocol&&(He["url.scheme"]=Re.protocol.split(":").pop()),Re.host&&(He["server.address"]=Re.host),He["url.same_origin"]=S.includes(Vo.location.origin);const lt=Me+U;E_(l,lt,lt+ae,{name:S.replace(Vo.location.origin,""),op:u.initiatorType?`resource.${u.initiatorType}`:"resource.other",attributes:He})}(l,Re,Re.name,He,lt,S)}}),kb=Math.max(U.length-1,0),function M_(l){const u=Vo.navigator;if(!u)return;const S=u.connection;S&&(S.effectiveType&&l.setAttribute("effectiveConnectionType",S.effectiveType),S.type&&l.setAttribute("connectionType",S.type),O0(S.rtt)&&(mu["connection.rtt"]={value:S.rtt,unit:"millisecond"})),O0(u.deviceMemory)&&l.setAttribute("deviceMemory",`${u.deviceMemory} GB`),O0(u.hardwareConcurrency)&&l.setAttribute("hardwareConcurrency",String(u.hardwareConcurrency))}(l),"pageload"===ae){(function k0(l){const u=Av();if(!u)return;const{responseStart:S,requestStart:U}=u;U<=S&&(jf&&ca.vF.log("[Measurements] Adding TTFB Request Time"),l["ttfb.requestTime"]={value:S-U,unit:"millisecond"})})(mu),["fcp","fp","lcp"].forEach(He=>{if(!mu[He]||!Me||S>=Me)return;const lt=mu[He].value,At=S+Fh(lt),di=Math.abs(1e3*(At-Me));jf&&ca.vF.log(`[Measurements] Normalized ${He} from ${lt} to ${di} (${di-lt})`),mu[He].value=di});const Re=mu["mark.fid"];Re&&mu.fid&&(E_(l,Re.value,Re.value+Fh(mu.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Ws.JD]:"auto.ui.browser.metrics"}}),delete mu["mark.fid"]),"fcp"in mu||delete mu.cls,Object.keys(mu).forEach(He=>{!function Oy(l,u,S){const U=(0,yo.Bk)(),ae=U&&(0,yo.zU)(U);ae&&ae.addEvent(l,{[Ws.xc]:u,[Ws.Sn]:S})}(He,mu[He].value,mu[He].unit)}),function I0(l){Yf&&(jf&&ca.vF.log("[Measurements] Adding LCP Data"),Yf.element&&l.setAttribute("lcp.element",(0,vf.Hd)(Yf.element)),Yf.id&&l.setAttribute("lcp.id",Yf.id),Yf.url&&l.setAttribute("lcp.url",Yf.url.trim().slice(0,200)),l.setAttribute("lcp.size",Yf.size)),Rb&&Rb.sources&&(jf&&ca.vF.log("[Measurements] Adding CLS Data"),Rb.sources.forEach((u,S)=>l.setAttribute(`cls.source.${S+1}`,(0,vf.Hd)(u.node))))}(l)}Yf=void 0,Rb=void 0,mu={}}(Ma)}});function go(){["interactive","complete"].includes(Oe.document.readyState)&&fr.emit("idleSpanEnableAutoFinish",Ra)}return Or&&Oe.document&&(Oe.document.addEventListener("readystatechange",()=>{go()}),go()),Ra}return{name:"BrowserTracing",afterAllSetup(fr){let Fr,Or=Oe.location&&Oe.location.href;fr.on("startNavigationSpan",gr=>{(0,is.KU)()===fr&&(Fr&&(Z&&ca.vF.log(`[Tracing] Finishing current root span with op: ${(0,yo.et)(Fr).op}`),Fr.end()),Fr=Cr(fr,{op:"navigation",...gr}))}),fr.on("startPageLoadSpan",(gr,Hr={})=>{if((0,is.KU)()!==fr)return;Fr&&(Z&&ca.vF.log(`[Tracing] Finishing current root span with op: ${(0,yo.et)(Fr).op}`),Fr.end());const Ra=Hr.sentryTrace||av("sentry-trace"),go=Hr.baggage||av("baggage"),Ma=(0,kv.kM)(Ra,go);(0,is.o5)().setPropagationContext(Ma),Fr=Cr(fr,{op:"pageload",...gr})}),fr.on("spanEnd",gr=>{const Hr=(0,yo.et)(gr).op;if(gr!==(0,yo.zU)(gr)||"navigation"!==Hr&&"pageload"!==Hr)return;const Ra=(0,is.o5)(),go=Ra.getPropagationContext();Ra.setPropagationContext({...go,sampled:void 0!==go.sampled?go.sampled:(0,yo.pK)(gr),dsc:go.dsc||(0,Wf.k1)(gr)})}),Oe.location&&(Ji&&function xC(l,u,S){l.emit("startPageLoadSpan",u,S),(0,is.o5)().setTransactionName(u.name);const U=(0,yo.Bk)();U&&(0,yo.et)(U)}(fr,{name:Oe.location.pathname,startTime:dd.k3?dd.k3/1e3:void 0,attributes:{[Ws.i_]:"url",[Ws.JD]:"auto.pageload.browser"}}),rn&&Gf(({to:gr,from:Hr})=>{void 0===Hr&&Or&&-1!==Or.indexOf(gr)?Or=void 0:Hr!==gr&&(Or=void 0,Bh(fr,{name:Oe.location.pathname,attributes:{[Ws.i_]:"url",[Ws.JD]:"auto.navigation.browser"}}))})),lt&&function gC(){Oe&&Oe.document?Oe.document.addEventListener("visibilitychange",()=>{const l=(0,yo.Bk)();if(!l)return;const u=(0,yo.zU)(l);if(Oe.document.hidden&&u){const S="cancelled",{op:U,status:ae}=(0,yo.et)(u);Z&&ca.vF.log(`[Tracing] Transaction: ${S} -> since tab moved to the background, op: ${U}`),ae||u.setStatus({code:mm.TJ,message:S}),u.setAttribute("sentry.cancellation_reason","document.hidden"),u.end()}}):Z&&ca.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")}(),U&&function jy(l,u,S,U){let ae;Oe.document&&addEventListener("click",()=>{const Re="ui.action.click",He=(0,yo.Bk)(),lt=He&&(0,yo.zU)(He);if(lt){const At=(0,yo.et)(lt).op;if(["navigation","pageload"].includes(At))return void(Z&&ca.vF.warn(`[Tracing] Did not create ${Re} span because a pageload or navigation span is in progress.`))}ae&&(ae.setAttribute(Ws.fs,"interactionInterrupted"),ae.end(),ae=void 0),U.name?ae=Iu({name:U.name,op:Re,attributes:{[Ws.i_]:U.source||"url"}},{idleTimeout:l,finalTimeout:u,childSpanTimeout:S}):Z&&ca.vF.warn(`[Tracing] Did not create ${Re} transaction because _latestRouteName is missing.`)},{once:!1,capture:!0})}(Me,Re,He,Gn),Nb({traceFetch:At,traceXHR:di,tracePropagationTargets:fr.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:Di,enableHTTPTimings:Ki})}}};function Bh(l,u){(0,is.rm)().setPropagationContext((0,Lb.J)()),(0,is.o5)().setPropagationContext((0,Lb.J)()),l.emit("startNavigationSpan",u),(0,is.o5)().setTransactionName(u.name);const S=(0,yo.Bk)();return"navigation"===(S&&(0,yo.et)(S).op)?S:void 0}function av(l){const u=(0,vf.NX)(`meta[name=${l}]`);return u?u.getAttribute("content"):void 0}var Yy=D(18359),Vb=D(5964);const $y=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Lv=typeof Zone<"u"&&Zone.root&&Zone.root.run;function Fv(l){return Lv?Zone.root.run(l):l()}let Hb,SC=(()=>{class l{constructor(S){this._router=S,this.navStart$=this._router.events.pipe((0,Vb.p)(U=>U instanceof f.Z),(0,ut.M)(U=>{if(!Hb)return void($y&&ca.vF.error("Angular integration has tracing enabled, but Tracing integration is not configured"));this._routingSpan&&(this._routingSpan.end(),this._routingSpan=null);const ae=(0,is.KU)(),Me=function z_(l){return l.split(/[\?#]/,1)[0]}(U.url);return ae?(this._isPageloadOngoing()?this._pageloadOngoing=!1:Fv(()=>{Bh(ae,{name:Me,attributes:{[Ws.JD]:"auto.navigation.angular",[Ws.i_]:"url"}})}),void(this._routingSpan=Fv(()=>Jg({name:`${U.url}`,op:"ui.angular.routing",attributes:{[Ws.JD]:"auto.ui.angular",[Ws.i_]:"url",url:Me,...U.navigationTrigger&&{navigationTrigger:U.navigationTrigger}}}))||null)):void 0})),this.resEnd$=this._router.events.pipe((0,Vb.p)(U=>U instanceof f.gx),(0,ut.M)(U=>{const ae=function Xw(l){const u=[];let S=l&&l.firstChild;for(;S;){const ae=S&&S.routeConfig&&S.routeConfig.path;if(null==ae)break;u.push(ae),S=S.firstChild}const U=u.filter(ae=>ae).join("/");return U?`/${U}/`:"/"}(U.state.root);ae&&(0,is.o5)().setTransactionName(ae);const Me=(0,yo.Bk)();!function $w(l,u){const S=u&&(0,yo.et)(u).data||{};u&&"url"===S[Ws.i_]&&(u.updateName(l),u.setAttribute(Ws.i_,"route"),u.setAttribute(Ws.JD,`auto.${(0,yo.et)(u).op}.angular`))}(ae,Me&&(0,yo.zU)(Me))})),this.navEnd$=this._router.events.pipe((0,Vb.p)(U=>U instanceof f.wF||U instanceof f.j5||U instanceof f.L6),(0,ut.M)(()=>{this._routingSpan&&(Fv(()=>{this._routingSpan.end()}),this._routingSpan=null)})),this._routingSpan=null,this._pageloadOngoing=!0,this._subscription=new Yy.yU,this._subscription.add(this.navStart$.subscribe()),this._subscription.add(this.resEnd$.subscribe()),this._subscription.add(this.navEnd$.subscribe())}ngOnDestroy(){this._subscription.unsubscribe()}_isPageloadOngoing(){if(!this._pageloadOngoing)return!1;const S=(0,yo.Bk)();if(!S)return this._pageloadOngoing=!1,!1;const U=(0,yo.zU)(S);return this._pageloadOngoing="pageload"===(0,yo.et)(U).op,this._pageloadOngoing}}return l.\u0275fac=function(S){return new(S||l)(L.KVO(f.Ix))},l.\u0275prov=L.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),l})();const T_={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function Xy(l,u){return u}function zb(l){return"object"!=typeof l||null===l?0:Array.isArray(l)?2:function Jy(l){if(!EC.has(Object.prototype.toString.call(l)))return!1;const{constructor:u}=l;if(void 0===u)return!0;const S=u.prototype;return!(null===S||"object"!=typeof S||!EC.has(Object.prototype.toString.call(S))||!S.hasOwnProperty("isPrototypeOf"))}(l)?1:l instanceof Set?3:l instanceof Map?4:5}function Om(l,u){return"object"==typeof l&&Object.prototype.propertyIsEnumerable.call(l,u)}function Ub(l){return{*[Symbol.iterator](){for(const u of l)for(const S of u)yield S}}}const EC=new Set(["[object Object]","[object Module]"]);function Gb(l){return l.at(-1)}var Wb=Object.freeze({__proto__:null,mergeArrays:function A_(l){return l.flat()},mergeMaps:function MC(l){return new Map(Ub(l))},mergeOthers:Gb,mergeRecords:function Qy(l,u,S){const U={};for(const ae of function DC(l){const u=new Set;for(const S of l)for(const U of[...Object.keys(S),...Object.getOwnPropertySymbols(S)])u.add(U);return u}(l)){const Me=[];for(const lt of l)Om(lt,ae)&&Me.push(lt[ae]);if(0===Me.length)continue;const Re=u.metaDataUpdater(S,{key:ae,parents:l}),He=xp(Me,u,Re);He!==T_.skip&&("__proto__"===ae?Object.defineProperty(U,ae,{value:He,configurable:!0,enumerable:!0,writable:!0}):U[ae]=He)}return U},mergeSets:function Zy(l){return new Set(Ub(l))}});function xp(l,u,S){if(0===l.length)return;if(1===l.length)return e_(l,u,S);const U=zb(l[0]);if(0!==U&&5!==U)for(let ae=1;ae<l.length;ae++)if(zb(l[ae])!==U)return e_(l,u,S);switch(U){case 1:return function Bv(l,u,S){const U=u.mergeFunctions.mergeRecords(l,u,S);return U===T_.defaultMerge||u.useImplicitDefaultMerging&&void 0===U&&u.mergeFunctions.mergeRecords!==u.defaultMergeFunctions.mergeRecords?u.defaultMergeFunctions.mergeRecords(l,u,S):U}(l,u,S);case 2:return function ex(l,u,S){const U=u.mergeFunctions.mergeArrays(l,u,S);return U===T_.defaultMerge||u.useImplicitDefaultMerging&&void 0===U&&u.mergeFunctions.mergeArrays!==u.defaultMergeFunctions.mergeArrays?u.defaultMergeFunctions.mergeArrays(l):U}(l,u,S);case 3:return function I_(l,u,S){const U=u.mergeFunctions.mergeSets(l,u,S);return U===T_.defaultMerge||u.useImplicitDefaultMerging&&void 0===U&&u.mergeFunctions.mergeSets!==u.defaultMergeFunctions.mergeSets?u.defaultMergeFunctions.mergeSets(l):U}(l,u,S);case 4:return function sv(l,u,S){const U=u.mergeFunctions.mergeMaps(l,u,S);return U===T_.defaultMerge||u.useImplicitDefaultMerging&&void 0===U&&u.mergeFunctions.mergeMaps!==u.defaultMergeFunctions.mergeMaps?u.defaultMergeFunctions.mergeMaps(l):U}(l,u,S);default:return e_(l,u,S)}}function e_(l,u,S){const U=u.mergeFunctions.mergeOthers(l,u,S);return U===T_.defaultMerge||u.useImplicitDefaultMerging&&void 0===U&&u.mergeFunctions.mergeOthers!==u.defaultMergeFunctions.mergeOthers?u.defaultMergeFunctions.mergeOthers(l):U}var Zw=D(27468),qw=D(96354);class nx{constructor(u,S){this._handler=u,this._resourcesPrefix=S}getTranslation(u){const S=this._resourcesPrefix.map(U=>{let ae;return ae=U.prefix?`${U.prefix}${u}${U.suffix||".json"}`:`${U}${u}.json`,new I.Qq(this._handler).get(ae).pipe((0,Mi.W)(Me=>(U.optional||(console.group(),console.error("Something went wrong for the following translation file:",ae),console.error(Me),console.groupEnd()),(0,hi.of)({}))))});return(0,Zw.p)(S).pipe((0,qw.T)(U=>function qy(...l){return function OC(l,u){const S=function F0(l,u){return{defaultMergeFunctions:Wb,mergeFunctions:{...Wb,...Object.fromEntries(Object.entries(l).filter(([S,U])=>Object.hasOwn(Wb,S)).map(([S,U])=>!1===U?[S,Gb]:[S,U]))},metaDataUpdater:l.metaDataUpdater??Xy,deepmerge:u,useImplicitDefaultMerging:l.enableImplicitDefaultMerging??!1,actions:T_}}(l,U);function U(...ae){return xp(ae,S,u)}return U}({})(...l)}(...U)))}}const e1={provide:v.Wr,useFactory:function Rg(l,u){return new nx(l,[{prefix:"./assets/translate-core/",suffix:".json"},{prefix:u.translationFolder,suffix:".json"}])},deps:[I.JV,R.i2]};var t1=D(44613);const jb=["de-DE","en-GB","en-US","fr-FR"];(0,x.EO)(Zn,"de-DE"),(0,x.EO)(ya,"en-US"),(0,x.EO)(to,"fr-FR"),(0,x.EO)(Ul,"en-GB"),(0,hr.fH)(vl);const cv={validation:!1};environment.appVersion=appVersion,environment.appBuild=appBuild;let Yb=(()=>{class l{handleError(S){ps.Cp(S.originalError||S)}static#e=this.\u0275fac=function(U){return new(U||l)};static#t=this.\u0275prov=L.jDH({token:l,factory:l.\u0275fac})}return l})(),rx=(()=>{class l{static#e=this.\u0275fac=function(U){return new(U||l)};static#t=this.\u0275mod=L.$C({type:l,bootstrap:[Mt]});static#i=this.\u0275inj=L.G2t({providers:[Ca.zF,Er,{provide:R.i2,useValue:environment},{provide:R.pj,useValue:j.Fc},{provide:R.DG,useValue:jb},{provide:R.dQ,useValue:"assets/icons/develop/dhr-icon-48x48.png"},{provide:R.Fz,useValue:"assets/icons/production/dhr-icon-48x48.png"},{provide:R.XA,useValue:"assets/icons/main_48x48.png"},{provide:v.c$,useClass:q.X},{provide:I.a7,useClass:Tr,multi:!0},{provide:t1.Kc,useValue:{floatLabel:"auto"}},{provide:Da.es,useClass:Da._H},{provide:L.zcH,useClass:Yb},{provide:SC,deps:[f.Ix]},{provide:L.hnV,useFactory:()=>()=>{},deps:[SC],multi:!0},(0,Zi.Dw)(cv)],imports:[I.q1,d.Bb,pa,Fs.e,Tl.X1,Tl.YN,Ss,Ca.xZ,wa.N,Hi,Gi.L,xn,er.FQ,O.PO,v.h.forRoot({loader:e1}),b.WJ.register("ngsw-worker.js",{enabled:!0,registrationStrategy:"registerWhenStable:30000"}),Rs,ot]})}return l})();environment.sentry_dsn&&(function zw(l){const u={defaultIntegrations:[Zv(),hm(),Yn(),ey(),Sg(),Ev(),Cv()],...l};Bx(u,"angular"),function Uw(){const u=L.xvI&&L.xvI.major?parseInt(L.xvI.major,10):void 0;u&&(u<14&&$y&&ca.vF.warn(`This Sentry SDK does not officially support Angular ${u}.`,"This SDK only supports Angular 14 and above.","If you're using lower Angular versions, check the Angular Version Compatibility table in our docs: https://docs.sentry.io/platforms/javascript/guides/angular/#angular-version-compatibility.","Otherwise, please consider upgrading your Angular version."),(0,ps.o)("angular",{version:u}))}(),Kx(u)}({dsn:environment.sentry_dsn,attachStacktrace:!0,debug:!1,release:j.B_+"_"+appVersion,integrations:[function Ky(l={}){return!1!==l.instrumentNavigation&&(Hb=!0),Pv({...l,instrumentNavigation:!1})}()],tracePropagationTargets:["localhost",environment.apiUrl],tracesSampleRate:.5,maxBreadcrumbs:50,beforeSend(l,u){if(l.exception?.values[0]?.value?.startsWith("Non-Error exception captured")){if(!l.extra.__serialized__)return null;let U=l.extra.__serialized__.error?l.extra.__serialized__.error.message:null;U=U||l.extra.__serialized__.message,l.exception.values[0].value=U,l.message=U}return l}}),ps.NA("AppName",j.B_),ps.NA("AppVersion",appVersion),ps.NA("AppBuild",appBuild)),environment.production&&(0,L.SmG)(),d.sG().bootstrapModule(rx).then(l=>{window.ngRef&&window.ngRef.destroy(),window.ngRef=l}).catch(l=>console.error(l))},87283:(ei,rt,D)=>{"use strict";D.d(rt,{l9:()=>be,ic:()=>W,p_:()=>he,eC:()=>se,zF:()=>I,xZ:()=>ie,$M:()=>ce,t$:()=>_e,fH:()=>we,jS:()=>C,ym:()=>me});var r=D(54438),d=D(60177),L=D(345),j=D(17669),o=D(91269),R=o.A.one,v=o.A.triggerHandler,s=D(5042),b=D(24292),O=D(207),w=D(72535);D(94461),D(12984);class I{setHost(Be){this.host=Be}setTemplate(Be){this.host.setTemplate(Be)}}class x{constructor(Be,We){this.instance=Be,this.zone=We,this.subscriptions={},this.events={}}hasEvent(Be){return 0!==this.getEmitter(Be).observers.length}fireEvent(Be,We){const tt=this.getEmitter(Be);tt.observers.length&&((this.subscriptions[Be]||[]).length===tt.observers.length?tt.next(We&&We[0]):this.zone.run(()=>tt.next(We&&We[0])))}on(Be,We){if("string"==typeof Be){const tt=this.subscriptions[Be]||[],vt=this.getEmitter(Be).subscribe(We?.bind(this.instance)),Xt=vt.unsubscribe.bind(vt);tt.push({handler:We,unsubscribe:Xt}),this.subscriptions[Be]=tt}else{const tt=Be;Object.keys(tt).forEach(vt=>this.on(vt,tt[vt]))}}off(Be,We){const tt=this.subscriptions[Be]||[];We?tt.some((vt,Xt)=>vt.handler===We&&(vt.unsubscribe(),tt.splice(Xt,1),!0)):(tt.forEach(vt=>{vt.unsubscribe()}),tt.splice(0,tt.length))}dispose(){}addEmitter(Be,We){this.events[Be]=We}getEmitter(Be){return this.events[Be]||(this.events[Be]=new r.bkB),this.events[Be]}}class g{constructor(Be,We){this.zone=Be,this.component=We,this.lockedValueChangeEvent=!1}fireNgEvent(Be,We){if(this.lockedValueChangeEvent&&"valueChange"===Be)return;const tt=this.component[Be];tt&&tt.observers.length&&this.zone.run(()=>{tt.next(We&&We[0])})}createEmitters(Be){Be.forEach(We=>{this.component[We.emit]=new r.bkB})}}let C=(()=>{class pe{constructor(){this._watchers=[]}getWatchMethod(){return(tt,vt,Xt)=>{let Nt=tt();(Xt=Xt||{}).skipImmediate||vt(Nt);const Qe=()=>{const Et=tt();this._isDifferentValues(Nt,Et,Xt.deep)&&(vt(Et),Nt=Et)};return this._watchers.push(Qe),()=>{const Et=this._watchers.indexOf(Qe);-1!==Et&&this._watchers.splice(Et,1)}}}_isDifferentValues(We,tt,vt){const Xt=this._toComparable(tt),Nt=this._toComparable(We);return vt&&Xt instanceof Object&&Nt instanceof Object?this._checkObjectsFields(tt,We):Xt!==Nt}_toComparable(We){return We instanceof Date?We.getTime():We}_checkObjectsFields(We,tt){for(const vt in We){const Xt=this._toComparable(We[vt]),Nt=this._toComparable(tt[vt]);let Qe=!1;if("object"==typeof Xt&&"object"==typeof Nt&&(Qe=(0,s.RL)(Xt,Nt)),Xt!==Nt&&!Qe)return!0}}checkWatchers(){for(const We of this._watchers)We()}}return pe.\u0275fac=function(We){return new(We||pe)},pe.\u0275prov=r.jDH({token:pe,factory:pe.\u0275fac}),pe})();function F(pe){return pe.get?pe.get(0):pe}const Y="dx-template-wrapper";let se=(()=>{class pe{constructor(We,tt,vt,Xt,Nt){this.templateRef=We,this.viewContainerRef=tt,this.renderer=Xt,this.zone=Nt,vt.setTemplate(this)}set dxTemplateOf(We){this.name=We}renderTemplate(We){const tt=this.viewContainerRef.createEmbeddedView(this.templateRef,{$implicit:We.model,index:We.index}),vt=F(We.container);return We.container&&tt.rootNodes.forEach(Xt=>{this.renderer.appendChild(vt,Xt)}),tt}render(We){let tt;return tt=this.zone.isStable?this.zone.run(()=>this.renderTemplate(We)):this.renderTemplate(We),tt.detectChanges(),tt.rootNodes.forEach(vt=>{1===vt.nodeType&&j.A.setClass(vt,Y,!0),R(vt,"dxremove",({},Xt)=>{(!Xt||!Xt._angularIntegration)&&tt.destroy()})}),tt.rootNodes}}return pe.\u0275fac=function(We){return new(We||pe)(r.rXU(r.C4Q),r.rXU(r.c1b),r.rXU(I),r.rXU(r.sFG),r.rXU(r.SKi))},pe.\u0275dir=r.FsC({type:pe,selectors:[["","dxTemplate",""]],inputs:{dxTemplateOf:"dxTemplateOf"}}),pe})(),ie=(()=>{class pe{}return pe.\u0275fac=function(We){return new(We||pe)},pe.\u0275mod=r.$C({type:pe}),pe.\u0275inj=r.G2t({}),pe})();const ee="dx-visibility-change-handler";let re=(()=>{class pe{constructor(){this._initialOptions={},this._collectionContainerImpl=new ne(this._setOption.bind(this),this._filterItems.bind(this))}_optionChangedHandler(We){const tt=this._fullOptionPath();if(0===We.fullName.indexOf(tt)){const Xt=this[`${We.fullName.slice(tt.length)}Change`];Xt&&Xt.next(We.value)}}_createEventEmitters(We){We.forEach(tt=>{this[tt.emit]=new r.bkB})}_getOption(We){return this.isLinked?this.instance.option(this._fullOptionPath()+We):this._initialOptions[We]}_setOption(We,tt){if(this.isLinked){const vt=this._fullOptionPath()+We;this.instance.option(vt,tt)}else this._initialOptions[We]=tt}_addRemovedOption(We){this.instance&&this.removedNestedComponents&&this.removedNestedComponents.push(We)}_deleteRemovedOptions(We){this.instance&&this.removedNestedComponents&&(this.removedNestedComponents=this.removedNestedComponents.filter(tt=>!tt.startsWith(We)))}_addRecreatedComponent(){this.instance&&this.recreatedNestedComponents&&this.recreatedNestedComponents.push({getOptionPath:()=>this._getOptionPath()})}_getOptionPath(){return this._hostOptionPath()+this._optionPath}setHost(We,tt){this._host=We,this._hostOptionPath=tt,this.optionChangedHandlers.subscribe(this._optionChangedHandler.bind(this))}setChildren(We,tt){return this.resetOptions(We),this._collectionContainerImpl.setChildren(We,tt)}_filterItems(We){return We.filter(tt=>tt!==this)}get instance(){return this._host&&this._host.instance}get resetOptions(){return this._host&&this._host.resetOptions}get isRecreated(){return this._host&&this._host.isRecreated}get removedNestedComponents(){return this._host&&this._host.removedNestedComponents}set removedNestedComponents(We){this._host.removedNestedComponents=We}get recreatedNestedComponents(){return this._host&&this._host.recreatedNestedComponents}set recreatedNestedComponents(We){this._host.recreatedNestedComponents=We}get isLinked(){return!!this.instance&&this._host.isLinked}get optionChangedHandlers(){return this._host&&this._host.optionChangedHandlers}}return pe.\u0275fac=function(We){return new(We||pe)},pe.\u0275cmp=r.VBU({type:pe,selectors:[["ng-component"]],decls:0,vars:0,template:function(We,tt){},encapsulation:2}),pe})();class ne{constructor(Be,We){this._setOption=Be,this._filterItems=We,this._activatedQueries={}}setChildren(Be,We){if(this._filterItems&&(We=this._filterItems(We)),We.length&&(this._activatedQueries[Be]=!0),this._activatedQueries[Be]){const tt=We.map((vt,Xt)=>(vt._index=Xt,vt._value));this._setOption(Be,tt)}}}let _e=(()=>{class pe extends re{setHost(We,tt){super.setHost(We,tt),this._host[this._optionPath]=this._initialOptions}_fullOptionPath(){return`${this._getOptionPath()}.`}}return pe.\u0275fac=function(){let Be;return function(tt){return(Be||(Be=r.xGo(pe)))(tt||pe)}}(),pe.\u0275cmp=r.VBU({type:pe,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(We,tt){},encapsulation:2}),pe})(),be=(()=>{class pe extends re{_fullOptionPath(){return`${this._getOptionPath()}[${this._index}].`}get _value(){return this._initialOptions}get isLinked(){return void 0!==this._index&&!!this.instance&&this._host.isLinked}}return pe.\u0275fac=function(){let Be;return function(tt){return(Be||(Be=r.xGo(pe)))(tt||pe)}}(),pe.\u0275cmp=r.VBU({type:pe,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(We,tt){},encapsulation:2}),pe})();const oe=function(pe){const Be=[];(0,b.A)(pe).hasClass(ee)||Be.push(pe),Be.push.apply(Be,pe.querySelectorAll(`.${ee}`));for(let We=0;We<Be.length;We++)v(Be[We],"dxshown")};function me(pe,Be,We,tt){void 0===!pe.template||!Be.nativeElement.hasChildNodes()||![].slice.call(Be.nativeElement.childNodes).filter(Nt=>{if(Nt.tagName){const Qe=Nt.tagName.toLowerCase().substr(0,3);return!("dxi"===Qe||"dxo"===Qe)}return"#comment"!==Nt.nodeName&&Nt.textContent.replace(/\s/g,"").length}).length||(pe.template={render:Nt=>{const Qe=Be.nativeElement;if(j.A.setClass(Qe,Y,!0),Nt.container){const Et=F(Nt.container),Lt=Et.contains(Be.nativeElement);We.appendChild(Et,Be.nativeElement),Lt||tt.body.contains(Et)&&oe(Qe)}return Qe}})}class we{getHost(){return this._host}setHost(Be,We){this._host=Be,this._optionPath=We||(()=>"")}setNestedOption(Be){Be.setHost(this._host,this._optionPath)}}let N;const G=()=>(N||(N=(0,L.zw)("DX_isPlatformServer")),N);let W=(()=>{class pe{constructor(We,tt,vt,Xt,Nt,Qe){this.element=We,this.ngZone=tt,this.watcherHelper=Xt,this.transferState=Nt,this.platformId=Qe,this._initialOptions={},this._optionsToUpdate={},this.optionChangedHandlers=new r.bkB,this.isLinked=!0,this.changedOptions={},this.removedNestedComponents=[],this.widgetUpdateLocked=!1,this.templateUpdateRequired=!1,this.templates=[],vt.setHost(this),this._collectionContainerImpl=new ne(this._setOption.bind(this)),this.eventHelper=new g(tt,this)}_updateTemplates(){if(this.templates.length&&this.templateUpdateRequired){const We={};this.templates.forEach(tt=>{We[tt.name]=tt}),this.instance.option("integrationOptions.templates",We),this.templates=Object.values(We),this.templateUpdateRequired=!1}}_initEvents(){this.instance.on("optionChanged",We=>{this.changedOptions[We.name]=We.value;const tt=We.name===We.fullName?We.value:We.component.option(We.name);this.eventHelper.fireNgEvent(`${We.name}Change`,[tt]),this.optionChangedHandlers.emit(We)})}_initOptions(){this._initialOptions.integrationOptions.watchMethod=this.watcherHelper.getWatchMethod()}_initPlatform(){this.transferState.hasKey(G())?this._initialOptions.integrationOptions.renderedOnServer=this.transferState.get(G(),null):(0,d.Vy)(this.platformId)&&this.transferState.set(G(),!0)}_createEventEmitters(We){const tt=this.ngZone;this.eventHelper.createEmitters(We),this._initialOptions.eventsStrategy=vt=>{const Xt=new x(vt,tt);return We.filter(Nt=>Nt.subscribe).forEach(Nt=>{Xt.addEmitter(Nt.subscribe,this[Nt.emit])}),Xt},this._initialOptions.nestedComponentOptions=function(vt){return{eventsStrategy:Xt=>new x(Xt,tt),nestedComponentOptions:vt.option("nestedComponentOptions")}}}_shouldOptionChange(We,tt){if(this.changedOptions.hasOwnProperty(We)){const vt=this.changedOptions[We];return delete this.changedOptions[We],tt!==vt}return!0}clearChangedOptions(){this.changedOptions={}}_getOption(We){return this.instance?this.instance.option(We):this._initialOptions[We]}lockWidgetUpdate(){!this.widgetUpdateLocked&&this.instance&&(this.instance.beginUpdate(),this.widgetUpdateLocked=!0)}unlockWidgetUpdate(){this.widgetUpdateLocked&&(this.widgetUpdateLocked=!1,this.instance.endUpdate())}_setOption(We,tt){this.lockWidgetUpdate(),this._shouldOptionChange(We,tt)&&(this.instance?this.instance.option(We,tt):this._initialOptions[We]=tt)}_createWidget(We){this._initialOptions.integrationOptions={},this._initPlatform(),this._initOptions(),this._initialOptions.onInitializing=function(){this.beginUpdate()},this.instance=this._createInstance(We,this._initialOptions),this._initEvents(),this._initialOptions={}}_destroyWidget(){if(this.removedNestedComponents=[],this.instance){const We=this.instance.element();v(We,"dxremove",{_angularIntegration:!0}),this.instance.dispose(),j.A.removeElement(We)}}ngOnChanges(We){for(const tt in We)We[tt].currentValue!==this[tt]&&(this._optionsToUpdate[tt]=We[tt].currentValue)}ngOnInit(){this._createWidget(this.element.nativeElement)}ngDoCheck(){this.applyOptions()}ngAfterContentChecked(){this.applyOptions(),this.resetOptions(),this.unlockWidgetUpdate()}ngAfterViewInit(){this._updateTemplates(),this.instance.endUpdate(),this.recreatedNestedComponents=[]}ngAfterViewChecked(){this._updateTemplates()}applyOptions(){Object.keys(this._optionsToUpdate).length&&(this.instance&&this.instance.option(this._optionsToUpdate),this._optionsToUpdate={})}resetOptions(We){this.instance&&(this.removedNestedComponents.filter(tt=>!(tt&&!this.isRecreated(tt)&&We)||tt.startsWith(We)).forEach(tt=>{this.instance.resetOption(tt)}),this.removedNestedComponents=[],this.recreatedNestedComponents=[])}isRecreated(We){return this.recreatedNestedComponents&&this.recreatedNestedComponents.some(tt=>tt.getOptionPath()===We)}setTemplate(We){this.templates.push(We),this.templateUpdateRequired=!0}setChildren(We,tt){return this.resetOptions(We),this._collectionContainerImpl.setChildren(We,tt)}}return pe.\u0275fac=function(We){return new(We||pe)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(I),r.rXU(C),r.rXU(L.pJ),r.rXU(r.Agw))},pe.\u0275cmp=r.VBU({type:pe,selectors:[["ng-component"]],features:[r.OA$],decls:0,vars:0,template:function(We,tt){},encapsulation:2}),pe})();const X=["mousemove","mouseover","mouseout"],q=["mouseup","click","mousedown","transitionend","wheel"];let ye,xe=[],ge=function(pe){ye||(ye=this.callBase.bind(this)),xe.push(pe)};w.A.inject({add(pe){return ge.call(this,pe)}});let Ee=(pe,Be,We)=>{Number(r.xvI.major)<12&&console.warn("Your version of Angular is not supported. Please update your project to version 12 or later. Please refer to the Angular Update Guide for more information: https://update.angular.io"),j.A.inject({_document:pe,listen(...vt){const Xt=vt[1];return X.includes(Xt)?Be.runOutsideAngular(()=>this.callBase.apply(this,vt)):Be.isStable&&q.includes(Xt)?Be.run(()=>this.callBase.apply(this,vt)):this.callBase.apply(this,vt)},isElementNode:vt=>vt&&1===vt.nodeType,isTextNode:vt=>vt&&3===vt.nodeType,isDocument:vt=>vt&&9===vt.nodeType}),O.A.inject({getXhr(){if(!We)return this.callBase.apply(this);const vt=We.build();return"withCredentials"in vt||(vt.withCredentials=!1),vt}});const tt=()=>{Be.run(()=>{o.A.set({}),xe.forEach(vt=>ye.call(null,vt)),xe=[],w.A.fire()})};tt(),ge=vt=>Be.run(()=>vt()),Ee=tt},he=(()=>{class pe{constructor(We,tt,vt){Ee(We,tt,vt)}}return pe.\u0275fac=function(We){return new(We||pe)(r.KVO(d.qQ),r.KVO(r.SKi),r.KVO(d.N0,8))},pe.\u0275mod=r.$C({type:pe}),pe.\u0275inj=r.G2t({}),pe})(),ce=(()=>{class pe{constructor(We){this._differs=We,this._propertyDiffers={}}setHost(We){this._host=We}setup(We,tt){We in tt&&this.setupSingle(We,tt[We].currentValue)}setupSingle(We,tt){if(tt&&Array.isArray(tt)){if(!this._propertyDiffers[We])try{return this._propertyDiffers[We]=this._differs.find(tt).create(null),!0}catch{}}else delete this._propertyDiffers[We];return!1}getChanges(We,tt){if(this._propertyDiffers[We])return this._propertyDiffers[We].diff(tt)}checkChangedOptions(We,tt){return this._host.changedOptions[We]===tt}doCheck(We){if(this._propertyDiffers[We]&&this._host.instance){const tt=this._host[We];(function Ie(pe){return pe&&"function"==typeof pe[Symbol.iterator]})(tt)&&this.getChanges(We,tt)&&!this.checkChangedOptions(We,tt)&&(this._host.lockWidgetUpdate(),this._host.instance.option(We,tt))}}}return pe.\u0275fac=function(We){return new(We||pe)(r.KVO(r._q3))},pe.\u0275prov=r.jDH({token:pe,factory:pe.\u0275fac}),pe})()},33514:(ei,rt,D)=>{"use strict";D.d(rt,{L:()=>R,e:()=>E});var r=D(345),d=D(54438),L=D(2839),j=D(87283);const o=["*"];let E=(()=>{class m extends j.ic{constructor(v,h,s,b,O,w,f){super(v,h,s,b,w,f),this._createEventEmitters([{subscribe:"click",emit:"onClick"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"iconChange"},{emit:"rtlEnabledChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"templateChange"},{emit:"textChange"},{emit:"typeChange"},{emit:"useSubmitBehaviorChange"},{emit:"validationGroupChange"},{emit:"visibleChange"},{emit:"widthChange"}]),O.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(v){this._setOption("accessKey",v)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(v){this._setOption("activeStateEnabled",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(v){this._setOption("focusStateEnabled",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get hint(){return this._getOption("hint")}set hint(v){this._setOption("hint",v)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(v){this._setOption("hoverStateEnabled",v)}get icon(){return this._getOption("icon")}set icon(v){this._setOption("icon",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(v){this._setOption("stylingMode",v)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(v){this._setOption("tabIndex",v)}get template(){return this._getOption("template")}set template(v){this._setOption("template",v)}get text(){return this._getOption("text")}set text(v){this._setOption("text",v)}get type(){return this._getOption("type")}set type(v){this._setOption("type",v)}get useSubmitBehavior(){return this._getOption("useSubmitBehavior")}set useSubmitBehavior(v){this._setOption("useSubmitBehavior",v)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(v){this._setOption("validationGroup",v)}get visible(){return this._getOption("visible")}set visible(v){this._setOption("visible",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}_createInstance(v,h){return new L.A(v,h)}ngOnDestroy(){this._destroyWidget()}}return m.\u0275fac=function(v){return new(v||m)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(j.zF),d.rXU(j.jS),d.rXU(j.fH),d.rXU(r.pJ),d.rXU(d.Agw))},m.\u0275cmp=d.VBU({type:m,selectors:[["dx-button"]],inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",icon:"icon",rtlEnabled:"rtlEnabled",stylingMode:"stylingMode",tabIndex:"tabIndex",template:"template",text:"text",type:"type",useSubmitBehavior:"useSubmitBehavior",validationGroup:"validationGroup",visible:"visible",width:"width"},outputs:{onClick:"onClick",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",iconChange:"iconChange",rtlEnabledChange:"rtlEnabledChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",templateChange:"templateChange",textChange:"textChange",typeChange:"typeChange",useSubmitBehaviorChange:"useSubmitBehaviorChange",validationGroupChange:"validationGroupChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[d.Jv_([j.zF,j.jS,j.fH]),d.Vt3],ngContentSelectors:o,decls:1,vars:0,template:function(v,h){1&v&&(d.NAR(),d.SdG(0))},encapsulation:2}),m})(),R=(()=>{class m{}return m.\u0275fac=function(v){return new(v||m)},m.\u0275mod=d.$C({type:m}),m.\u0275inj=d.G2t({imports:[[j.p_,j.xZ],j.xZ]}),m})()},94753:(ei,rt,D)=>{"use strict";D.d(rt,{s:()=>CD,N:()=>A1});var r=D(345),d=D(54438),L=D(17669),j=D(24292),o=D(87951),E=D(12101),R=D(80186),m=D(72463),_=D(91269),v=D(20736),h=D(49104),s=D(5042),b="dx-state-focused",O="dx-cell-focus-disabled",f=".dx-datagrid-rowsview .dx-row",k="".concat(f," > td"),I=".dx-treelist-rowsview .dx-row",x="".concat(I," > td"),g={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:["".concat(".dx-row-focused"),"".concat(f,"[tabindex]"),"".concat(k,"[tabindex]"),"".concat(k),"".concat(I,"[tabindex]"),"".concat(x,"[tabindex]"),"".concat(x)],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},C=!1,F=!1,Y=null;function se(V,e){var t=(0,j.A)(V),n=t.attr("aria-label"),P=ie(n,e.element()).index(t);Y=(0,o.X)({},{ariaLabel:n,index:P},{viewInstance:e})}function ie(V,e){return(0,j.A)(e).find(V?'[aria-label="'.concat(V,'"][tabindex]'):"[tabindex]")}function ee(V,e){var t=e?.getRootNode()||L.A.getDocument();for(var n in V){var p=V[n],P=(0,j.A)(t).find(p).first();if(P.length)return P}}function ne(){F="visible"===L.A.getDocument().visibilityState}function be(){_.A.off(L.A.getDocument(),"visibilitychange",ne)}function me(V,e,t,n,p,P){if(e.option("useLegacyKeyboardNavigation"))return s.lQ;var J=()=>(0,j.A)(e.element()),fe=Ze=>function Q(V,e,t,n,p,P){var J=function re(V,e,t){var n={event:e,handled:!1};return t?t(n):V._createActionByOption("onKeyDown")(n),n.handled}(e,t.originalEvent,P);if(!J){var fe=(0,h.YD)(t);"enter"===fe||"space"===fe?(se(t.target,e),n&&n({event:t})):"tab"===fe?p.addClass(b):N(V,e,t)}}(V,e,Ze,p,J(),P),ke=()=>{C=!0,J().removeClass(b)},Ue=()=>{!C&&!F&&J().addClass(b),C=!1};return _.A.on(t,"keydown",n,fe),_.A.on(t,"mousedown",n,ke),_.A.on(t,"focusin",n,Ue),()=>{_.A.off(t,"keydown",n,fe),_.A.off(t,"mousedown",n,ke),_.A.off(t,"focusin",n,Ue)}}function we(V){if(!V.option("useLegacyKeyboardNavigation")&&Y){var e=Y.viewInstance;if(e){var n=ie(Y.ariaLabel,e.element()).eq(Y.index);Y=null,_.A.trigger(n,"focus")}}}function N(V,e,t){var n=(0,h.YD)(t);if(t.ctrlKey&&("upArrow"===n||"downArrow"===n))for(var p=Object.keys(g),P=p.indexOf(V);P>=0&&P<p.length;){P="upArrow"===n?--P:++P;var ke=ee(g[p[P]],t.target);if(ke&&ke.length){ke.attr("tabindex",e.option("tabindex")||0),_.A.trigger(ke,"focus"),ke.removeClass(O);break}}}var W=function(V,e,t,n,p){var P=e.getController("keyboardNavigation");e.option("useLegacyKeyboardNavigation")||P&&!P.isKeyboardEnabled()||(e.createAction("onKeyDown"),me(V,e,t,n,p,J=>{e.executeAction("onKeyDown",J)}))},z=D(60181),X=D(98332),q=D(13992),ye=D(29263),xe=D(12984),ge=D(50448),Ee=D(5918),he=D(19900),Ie=D(14435),ce=D(18060),de=D(1707),pe=D(24159),Be=D(20675),We="dx-column-indicators",vt=V=>class extends V{_applyColumnState(e){var t,n=this.option("rtlEnabled"),p=this._getColumnAlignment(e.column.alignment,n),P=(0,o.X)(!0,{columnAlignment:p},e),J=P.rootElement.hasClass("dx-group-panel-item"),fe=this._createIndicatorContainer(P,J),ke=(0,j.A)("<span>").addClass(this._getIndicatorClassName(e.name)),Ue=null===(t=this.component)||void 0===t?void 0:t.getController("columns"),Ze=Ue?.getHeaderContentAlignment(p)||p;return P.container=fe,P.indicator=ke,this._renderIndicator(P),fe[!J&&e.showColumnLines||"left"!==Ze?"prependTo":"appendTo"](e.rootElement),ke}_getIndicatorClassName(e){}_getColumnAlignment(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:(0,ge.n)(t)}_createIndicatorContainer(e,t){var n=this._getIndicatorContainer(e.rootElement),p="left"===e.columnAlignment?"right":"left";return n.length||(n=(0,j.A)("<div>").addClass(We)),this.setAria("role","presentation",n),n.css("float",e.showColumnLines&&!t?p:null)}_getIndicatorContainer(e){return e&&e.find(".".concat(We))}_getIndicatorElements(e){var t=this._getIndicatorContainer(e);return t&&t.children()}_renderIndicator(e){var t=e.container,n=e.indicator;t&&n&&t.append(n)}_updateIndicators(e){var p,t=this.getColumns(),n=this.getColumnElements();if(n&&t.length===n.length)for(var P=0;P<t.length;P++){p=n.eq(P),this._updateIndicator(p,t[P],e);var J=p.parent().data("options");J&&J.cells&&(J.cells[p.index()].column=t[P])}}_updateIndicator(e,t,n){if(!t.command)return this._applyColumnState({name:n,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")})}},Nt=D(58168),Qe=D(34423),Et=D(87310),ot=(V,e)=>{var t,n=Object.values(V).find(p=>{var P;return null===(P=p?.element())||void 0===P?void 0:P.hasClass(e)});return null!==(t=n?.element())&&void 0!==t?t:null};class an{constructor(e){var t=this;t._updateLockCount=0,t.component=e,t._actions={},t._actionConfigs={},(0,E.__)(this.callbackNames()||[],function(n,p){var P=t.callbackFlags(p)||{};P.unique=!0,P.syncStrategy=!0,t[this]=(0,Qe.A)(P)})}_endUpdateCore(){}init(){}callbackNames(){}callbackFlags(e){}publicMethods(){return[]}beginUpdate(){this._updateLockCount++}endUpdate(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())}option(e){var{component:t}=this,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)}_silentOption(e,t){var{component:n}=this,p=n._optionCache;return p&&(p[e]=t),n._setOptionWithoutOptionChange(e,t)}localize(e){var t=this.component._optionCache;return t?(e in t||(t[e]=v.A.format(e)),t[e]):v.A.format(e)}on(e,t){return this.component.on.apply(this.component,arguments)}off(){return this.component.off.apply(this.component,arguments)}optionChanged(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)}getAction(e){return this._actions[e]}setAria(e,t,n){var p=n.get(0),P="role"!==e&&"id"!==e?"aria-":"";p.setAttribute?p.setAttribute(P+e,t):n.attr(P+e,t)}_createComponent(e,t,n){return this.component._createComponent(e,t,n)}getController(e){return this.component._controllers[e]}createAction(e,t){if((0,m.Tn)(e)){var n=this.component._createAction(e.bind(this),t);return function(p){n({event:p})}}this._actions[e]=this.component._createActionByOption(e,t),this._actionConfigs[e]=t}executeAction(e,t){var n=this._actions[e];return n&&n(t)}dispose(){var e=this;(0,E.__)(e.callbackNames()||[],function(){e[this].empty()})}addWidgetPrefix(e){return"dx-".concat(this.component.NAME.slice(2).toLowerCase()).concat(e?"-".concat(e):"")}getWidgetContainerClass(){return this.addWidgetPrefix("dxDataGrid"===this.component.NAME?null:"container")}elementIsInsideGrid(e){return e.closest(".".concat(this.getWidgetContainerClass())).parent().is(this.component.$element())}}class xi extends an{}class Ht extends an{constructor(e){super(e),this.renderCompleted=(0,Qe.A)(),this.resizeCompleted=(0,Qe.A)()}_isReady(){return this.component.isReady()}_endUpdateCore(){super._endUpdateCore(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))}_invalidate(e,t){this._requireRender=!0,this.component._requireResize=(0,Ie.Vd)()&&(this.component._requireResize||e),this._requireReady=this._requireReady||t}_renderCore(e){}_resizeCore(){}_parentElement(){return this._$parent}element(){return this._$element}getElementHeight(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0,{offsetHeight:p}=e.get(0);return p+t+n}isVisible(){return!0}getTemplate(e){return this.component._getTemplate(e)}getView(e){return this.component._views[e]}_getBorderedViews(){return{columnHeadersView:this.component._views.columnHeadersView,rowsView:this.component._views.rowsView,filterPanelView:this.component._views.filterPanelView,footerView:this.component._views.footerView}}render(e,t){var n=this._$element,p=this.isVisible();if((n||e)&&(this._requireReady=!1,n||(n=this._$element=(0,j.A)("<div>").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!p),this.component._views&&((V,e)=>{if(((V,e)=>{var t;if(!Object.keys(e).includes(V))return!1;var{rowsView:n}=e,p=function(V,e){var t={};for(var n in V)Object.prototype.hasOwnProperty.call(V,n)&&e.indexOf(n)<0&&(t[n]=V[n]);if(null!=V&&"function"==typeof Object.getOwnPropertySymbols){var p=0;for(n=Object.getOwnPropertySymbols(V);p<n.length;p++)e.indexOf(n[p])<0&&Object.prototype.propertyIsEnumerable.call(V,n[p])&&(t[n[p]]=V[n[p]])}return t}(e,["rowsView"]);return!!(0,m.O9)(null===(t=n?.element)||void 0===t?void 0:t.call(n))&&Object.values(p).filter(P=>{var J;return null===(J=P?.isVisible)||void 0===J?void 0:J.call(P)}).every(P=>(0,m.O9)(P?.element()))})(V,e)){var t=ot(e,"dx-bordered-top-view"),n=ot(e,"dx-bordered-bottom-view"),p=(V=>{var{columnHeadersView:e,rowsView:t}=V;return e?.isVisible()?e.element():t.element()})(e),P=(V=>{var{filterPanelView:e,footerView:t,rowsView:n}=V;return e?.isVisible()?e.element():t?.isVisible()?t.element():n.element()})(e);t&&!t.is(p)&&t.removeClass("dx-bordered-top-view"),n&&!n.is(P)&&n.removeClass("dx-bordered-bottom-view"),p.hasClass("dx-bordered-top-view")||p.addClass("dx-bordered-top-view"),P.hasClass("dx-bordered-bottom-view")||P.addClass("dx-bordered-bottom-view")}})(this.name,this._getBorderedViews()),p)){this.component._optionCache={};var P=this._renderCore(t);this.component._optionCache=void 0,P?P.done(()=>{this.renderCompleted.fire(t)}):this.renderCompleted.fire(t)}}resize(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1}focus(e){this.element().get(0).focus({preventScroll:e})}}function Ti(V){var t={};return Object.entries(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).forEach(n=>{var[p,P]=n,J=V[p];J&&(t[p]=(0,m.Tn)(P)?P(J):J.inherit(P))}),t}const cn={modules:[],View:Ht,ViewController:class Je extends xi{getView(e){return this.component._views[e]}getViews(){return this.component._views}},Controller:xi,registerModule(V,e){for(var{modules:t}=this,n=0;n<t.length;n++)if(t[n].name===V)return;e.name=V,t.push(e)},registerModulesOrder(V){this.modulesOrder=V},unregisterModule(V){this.modules=(0,s.VM)(this.modules,e=>e.name!==V)},processModules:function wi(V,e){var{modules:t}=e,{modulesOrder:n}=e;function p(Ze){var Ft={};return(0,E.__)(Ze,(vi,Li)=>{var tn=new Li(V);tn.name=vi,function ni(V,e,t){var n=t.publicMethods();n&&(0,E.__)(n,(p,P)=>{if(!t[P])throw Et.A.Error("E1006",e,P);if(V[P])throw Et.A.Error("E1005",P);V[P]=function(){return t[P](...arguments)}})}(V,vi,tn),Ft[vi]=tn}),Ft}n&&t.sort((Ze,Ft)=>{var vi=n.indexOf(Ze.name),Li=n.indexOf(Ft.name);return vi<0&&(vi=1e6),Li<0&&(Li=1e6),vi-Li});var P={},J={};t.forEach(Ze=>{var{name:Ft,controllers:vi={},views:Li={}}=Ze;Object.entries(vi).forEach(tn=>{var[On,Qn]=tn;if(P[On])throw Et.A.Error("E1001",Ft,On);if(!(Qn?.prototype instanceof xi))throw Et.A.Error("E1002",Ft,On);P[On]=Qn}),Object.entries(Li).forEach(tn=>{var[On,Qn]=tn;if(J[On])throw Et.A.Error("E1003",Ft,On);if(!(Qn?.prototype instanceof Ht))throw Et.A.Error("E1004",Ft,On);J[On]=Qn})});var fe=t.filter(Ze=>{var{extenders:Ft}=Ze;return!!Ft}),ke=fe.reduce((Ze,Ft)=>{var{extenders:vi}=Ft;return(0,Nt.A)((0,Nt.A)({},Ze),Ti(Ze,vi?.controllers))},P),Ue=fe.reduce((Ze,Ft)=>{var{extenders:vi}=Ft;return(0,Nt.A)((0,Nt.A)({},Ze),Ti(Ze,vi?.views))},J);V._controllers=p(ke),V._views=p(Ue)},callModuleItemsMethod:function(V,e,t){t=t||[],V._controllers&&(0,E.__)(V._controllers,function(){this[e]&&this[e].apply(this,t)}),V._views&&(0,E.__)(V._views,function(){this[e]&&this[e].apply(this,t)})}};var Ui=D(25207),Xi="scroll-container",Wt="dx-row",Vt="dx-group-row",bi="dx-master-detail-row",mi="0.0001px",Kt="dxCellHintVisible",Wi={render(V){V.container.append(V.content)}},Ur=function(V){return"auto"===V?"":(0,m.kf)(V)?"".concat(V,"px"):V},ar=function(V,e,t){V.style.width=V.style.maxWidth="auto"===e.width?"":t},po=function(V){V.resolve()},sa=V=>"number"==typeof V?"".concat(V.toFixed(3),"px"):"adaptiveHidden"===V?mi:V;class Pr extends(vt(cn.View)){init(){this._scrollLeft=-1,this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._columnChooserController=this.getController("columnChooser"),this._editorFactoryController=this.getController("editorFactory"),this._selectionController=this.getController("selection"),this._columnChooserView=this.getView("columnChooserView"),this._delayedTemplates=[],this._templateDeferreds=new Set,this._templatesCache={},this._templateTimeouts=new Set,this.createAction("onCellClick"),this.createAction("onRowClick"),this.createAction("onCellDblClick"),this.createAction("onRowDblClick"),this.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:e=>{this._afterRowPrepared(e)}}),this._columnsController.columnsChanged.add(this._columnOptionChanged.bind(this)),this._dataController&&this._dataController.changed.add(this._handleDataChanged.bind(this))}dispose(){var e,t;if((0,Ie.Vd)()){var n=(0,Ie.zk)();null===(e=this._templateTimeouts)||void 0===e||e.forEach(p=>n.clearTimeout(p)),null===(t=this._templateTimeouts)||void 0===t||t.clear()}}optionChanged(e){switch(super.optionChanged(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0;break;case"keyboardNavigation":"keyboardNavigation.enabled"===e.fullName&&this._invalidate(!0,!0),e.handled=!0}}_createScrollableOptions(){var e=this.option("scrolling"),t=this.option("scrolling.useNative"),n=(0,o.X)({},e,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===t&&(t=!0),"auto"===t?(delete n.useNative,delete n.useSimulatedScrollbar):(n.useNative=!!t,n.useSimulatedScrollbar=!t),n}_updateCell(e,t){t.rowType&&this._cellPrepared(e,t)}_createCell(e){var{column:t}=e,n=t.alignment||(0,ge.n)(this.option("rtlEnabled")),p=L.A.createElement("td");p.style.textAlign=n;var P=(0,j.A)(p);return"data"===e.rowType&&t.headerId&&!t.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",t.headerId,P),t.cssClass&&P.addClass(t.cssClass),Array.isArray(t.elementAttr)&&t.elementAttr.forEach(J=>{var{name:fe,value:ke}=J;P.attr(fe,ke)}),"expand"===t.command&&(P.addClass(t.cssClass),P.addClass(this.addWidgetPrefix("group-space"))),t.colspan>1?P.attr("colSpan",t.colspan):!t.isBand&&"auto"!==t.visibleWidth&&this.option("columnAutoWidth")&&((t.width||t.minWidth)&&(p.style.minWidth=Ur(t.minWidth||t.width)),t.width&&ar(p,t,Ur(t.width))),P}_createRow(e,t){var n=(0,j.A)("<".concat(t=t||"tr",">")).addClass(Wt);return"tr"===t&&this.setAria("role","row",n),n}_isAltRow(e){return e&&e.dataIndex%2==1}_createTable(e,t){var n=(0,j.A)("<table>").addClass(this.addWidgetPrefix("table")).addClass(this.addWidgetPrefix("table-fixed"));if(e&&!t?(n.attr("id","dx-".concat(new q.A)).append(this._createColGroup(e)),ye.A.safari&&n.append((0,j.A)("<thead>").append("<tr>")),this.setAria("role","presentation",n)):this.setAria("hidden",!0,n),this.setAria("role","presentation",(0,j.A)("<tbody>").appendTo(n)),t)return n;ye.A.mozilla&&_.A.on(n,"mousedown","td",P=>{P.ctrlKey&&P.preventDefault()}),this.option("cellHintEnabled")&&_.A.on(n,"mousemove",".dx-row > td",this.createAction(P=>{var J=P.event,fe=(0,j.A)(J.target),ke=(0,j.A)(J.currentTarget),Ue=ke.parent(),Ze=this._columnsController.getVisibleColumns(),Ft=Ue.data("options"),vi=ke.index(),Li=Ft&&Ft.cells&&Ft.cells[vi],tn=Li?Li.column:Ze[vi],On=Ue.hasClass("dx-header-row"),Qn=Ue.hasClass("dx-data-row"),zr=Ue.hasClass(bi),la=Ue.hasClass(Vt),qo=Ue.hasClass(this.addWidgetPrefix("filter-row")),Xl=Qn&&(!tn||tn.cellTemplate);zr||qo||Qn&&Li&&(Ft.isEditing||Li.isEditing||tn?.showEditorAlways)||Xl||On&&(!tn||tn.headerCellTemplate)||la&&(!tn||tn.groupIndex&&tn.groupCellTemplate)||(fe.data(Kt)&&(fe.removeAttr("title"),fe.data(Kt,!1)),fe[0].scrollWidth-fe[0].clientWidth>0&&!(0,m.O9)(fe.attr("title"))&&(fe.attr("title",fe.text()),fe.data(Kt,!0)))}));var p=P=>{var J=(0,j.A)(P.currentTarget),fe=(0,j.A)(P.target).closest(".".concat("dx-field-item-content")),ke=J.parent(),Ue=ke.data("options"),Ze=Ue&&Ue.cells&&Ue.cells[J.index()];if(J.closest("table").is(P.delegateTarget)){var Ft=(0,o.X)({},Ze,{cellElement:(0,z.c)(J),event:P,eventType:P.type});if(Ft.rowIndex=this.getRowIndex(ke),fe.length){var vi=fe.data("dx-form-item");vi.column&&(Ft.column=vi.column,Ft.columnIndex=this._columnsController.getVisibleIndex(Ft.column.index))}return Ft}};return _.A.on(n,"mouseover",".dx-row > td",P=>{var J=p(P);J&&this.executeAction("onCellHoverChanged",J)}),_.A.on(n,"mouseout",".dx-row > td",P=>{var J=p(P);J&&this.executeAction("onCellHoverChanged",J)}),_.A.on(n,ce.U,".dx-row > td",P=>{var J=p(P);J&&this.executeAction("onCellClick",J)}),_.A.on(n,de.U,".dx-row > td",P=>{var J=p(P);J&&this.executeAction("onCellDblClick",J)}),function(V,e){var t,n,p;function P(J){return setTimeout(()=>{t=n=null},J)}_.A.on(e,"touchstart touchend",".dx-row",J=>{clearTimeout(p),"touchstart"===J.type?(t=J.target,n=J.currentTarget,p=P(1e3)):p=P()}),_.A.on(e,[ce.U,de.U,pe.A.down].join(" "),".dx-row",V.createAction(J=>{var{event:fe}=J;t&&(fe.target=t,fe.currentTarget=n),(0,j.A)(fe.target).closest("a").length||(J.rowIndex=V.getRowIndex(fe.currentTarget),J.rowIndex>=0&&(J.rowElement=(0,z.c)((0,j.A)(fe.currentTarget)),J.columns=V.getColumns(),fe.type===pe.A.down?V._rowPointerDown(J):fe.type===ce.U?V._rowClick(J):V._rowDblClick(J)))}))}(this,n),n}_rowPointerDown(e){}_rowClick(){}_rowDblClick(){}_createColGroup(e){for(var t=(0,j.A)("<colgroup>"),n=0;n<e.length;n++)for(var p=e[n].colspan||1,P=0;P<p;P++)t.append(this._createCol(e[n]));return t}_createCol(e){var t=e.visibleWidth||e.width;"adaptiveHidden"===t&&(t=mi);var n=(0,j.A)("<col>");return(0,Ee.zj)(n,t),n}renderDelayedTemplates(e){var t=this._delayedTemplates,n=t.filter(P=>!P.async),p=t.filter(P=>P.async);this._delayedTemplates=[],this._renderDelayedTemplatesCore(n,!1,e),this._renderDelayedTemplatesCoreAsync(p)}_renderDelayedTemplatesCoreAsync(e){if(e.length){var t=(0,Ie.zk)().setTimeout(()=>{this._templateTimeouts.delete(t),this._renderDelayedTemplatesCore(e,!0)});this._templateTimeouts.add(t)}}_renderDelayedTemplatesCore(e,t,n){for(var p=new Date;e.length;){var P=e.shift(),{options:J}=P,fe=L.A.getRootNode((0,j.A)(J.container).get(0)),ke=this.needWaitAsyncTemplates();if((!t||(0,j.A)(J.container).closest(fe).length||ke)&&(n&&(J.change=n),P.template.render(J)),t&&new Date-p>30){this._renderDelayedTemplatesCoreAsync(e);break}}!e.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()}_processTemplate(e,t){var n;if(e&&e.render&&!(0,m.Kb)(e))n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render(P){e.render(P.container,P.model,P.change),P.deferred&&P.deferred.resolve()}};else if((0,m.Tn)(e))n={render(P){var J=e((0,z.c)(P.container),P.model,P.change);J&&(J.nodeType||(0,m.Kb)(J))&&P.container.append(J),P.deferred&&P.deferred.resolve()}};else{var p=(0,m.Kg)(e)?e:(0,j.A)(e).attr("id");p?(this._templatesCache[p]||(this._templatesCache[p]=this.getTemplate(e)),n=this._templatesCache[p]):n=this.getTemplate(e)}return n}renderTemplate(e,t,n,p,P){var J,fe=this._processTemplate(t,n),{column:ke}=n,Ue="data"===n.rowType,Ze=new xe.cY,Ft={container:e,model:n,deferred:Ze,onRendered:()=>{this.isDisposed()?Ze.reject():Ze.resolve()}};if(fe){n.component=this.component;var vi=ke&&(ke.renderAsync&&Ue||this.option("renderAsync")&&(!1!==ke.renderAsync&&(ke.command||ke.showEditorAlways)&&Ue||"filter"===n.rowType)),Li=null!==(J=n.renderAsync)&&void 0!==J?J:vi;!fe.allowRenderToDetachedContainer&&!p||Li?this._delayedTemplates.push({template:fe,options:Ft,async:Li}):fe.render(Ft),this._templateDeferreds.add(Ze),_.A.on(e,Be.N,po.bind(null,Ze))}else Ze.reject();return Ze.promise().always(()=>{this._templateDeferreds.delete(Ze)})}_getBodies(e){return(0,j.A)(e).children("tbody").not(".dx-header").not(".dx-footer")}_needWrapRow(e){var t;return!!this.option().rowTemplate&&!(null===(t=this._getBodies(e))||void 0===t||!t.filter(".".concat(Wt)).length)}_wrapRowIfNeed(e,t,n){if(this._needWrapRow(n?e||this._tableElement:this._tableElement||e)){var J=(0,j.A)("<tbody>").addClass(t.attr("class"));return this.setAria("role","presentation",J),J.append(t)}return t}_appendRow(e,t,n){(n=n||Wi).render({content:t,container:e})}_resizeCore(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))}_renderCore(e){var t=this.element().parent();(!t||t.parent().length)&&this.renderDelayedTemplates(e)}_renderTable(e){(e=e||{}).columns=this._columnsController.getVisibleColumns();var t=e.change&&e.change.changeType,n=this._createTable(e.columns,"append"===t||"prepend"===t||"update"===t);return this._renderRows(n,e),n}_renderRows(e,t){for(var n=this._getRows(t.change),p=t.change&&t.change.columnIndices||[],P=t.change&&t.change.changeTypes||[],J=0;J<n.length;J++)this._renderRow(e,(0,o.X)({row:n[J],columnIndices:p[J],changeType:P[J]},t))}_renderRow(e,t){t.columnIndices||(t.row.cells=[]);var n=this._createRow(t.row),p=this._wrapRowIfNeed(e,n);"remove"!==t.changeType&&this._renderCells(n,t),this._appendRow(e,p);var P=(0,o.X)({columns:t.columns},t.row);this._addWatchMethod(P,t.row),this._rowPrepared(p,P,t.row)}_needRenderCell(e,t){return!t||t.indexOf(e)>=0}_renderCells(e,t){for(var n=0,{row:p}=t,{columns:P}=t,J=0;J<P.length;J++)this._needRenderCell(J,t.columnIndices)&&this._renderCell(e,(0,o.X)({column:P[J],columnIndex:n,value:p.values&&p.values[n],oldValue:p.oldValues&&p.oldValues[n]},t)),P[J].colspan>1?n+=P[J].colspan:n++}_updateCells(e,t,n){var p=e.children(),P=t.children(),J=this.option("highlightChanges"),fe=this.addWidgetPrefix("cell-updated-animation");n.forEach((ke,Ue)=>{var Ze=p.eq(ke),Ft=P.eq(Ue);Ze.replaceWith(Ft),J&&!Ft.hasClass("dx-command-expand")&&Ft.addClass(fe)}),function(V,e){if(V&&e){var p,t=V.attributes,n=e.attributes;for(p=0;p<t.length;p++){var P=t[p].nodeName;e.hasAttribute(P)||V.removeAttribute(P)}for(p=0;p<n.length;p++)V.setAttribute(n[p].nodeName,n[p].nodeValue)}}(e.get(0),t.get(0))}_setCellAriaAttributes(e,t){if("freeSpace"!==t.rowType){this.setAria("role","gridcell",e);var n=this._columnsController.getColumnIndexOffset();this.setAria("colindex",t.columnIndex+n+1,e)}}_renderCell(e,t){var n=this._getCellOptions(t);if(t.columnIndices){if(t.row.cells){var p=t.row.cells.findIndex(J=>J.columnIndex===n.columnIndex);t.row.cells[p]=n}}else t.row.cells.push(n);var P=this._createCell(n);return this._setCellAriaAttributes(P,n),this._renderCellContent(P,n,t),e.get(0).appendChild(P.get(0)),P}_renderCellContent(e,t,n){var p=this._getCellTemplate(t);(0,xe.z7)(!p||this.renderTemplate(e,p,t,void 0,n.change)).done(()=>{this._updateCell(e,t)})}_getCellTemplate(e){}_getRows(e){return[]}_getCellOptions(e){var t={column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType,isAltRow:this._isAltRow(e.row)};return this._addWatchMethod(t),t}_addWatchMethod(e,t){if(this.option("repaintChangesOnly")){var n=[];return(t=t||e).watch=t.watch||function(p,P,J){var fe=p(t.data),ke=function(Ue){Ue&&J&&J(Ue);var Ze=p(t.data);JSON.stringify(fe)!==JSON.stringify(Ze)&&(Ue&&P(Ze),fe=Ze)};return n.push(ke),function(){var Ue=n.indexOf(ke);Ue>=0&&n.splice(Ue,1)}},t.update=t.update||function(p,P){p&&(this.data=e.data=p.data,this.rowIndex=e.rowIndex=p.rowIndex,this.dataIndex=e.dataIndex=p.dataIndex,this.isExpanded=e.isExpanded=p.isExpanded,e.row&&!P&&(e.row=p)),n.forEach(J=>{J(p)})},t!==e&&(e.watch=t.watch.bind(t)),e}}_cellPrepared(e,t){t.cellElement=(0,z.c)((0,j.A)(e)),this.executeAction("onCellPrepared",t)}_rowPrepared(e,t,n){(0,X.p)(e.get(0),"options",t),t.rowElement=(0,z.c)(e),this.executeAction("onRowPrepared",t)}_columnOptionChanged(e){var{optionNames:t}=e;if(Ui.A.checkChanges(t,["width","visibleWidth"])){var p=this._columnsController.getVisibleColumns().map(P=>P.visibleWidth||P.width);this.setColumnWidths({widths:p,optionNames:t})}else this._requireReady||this.render()}getCellIndex(e,t){return e.length?e[0].cellIndex:-1}getTableElements(){return this._tableElement||(0,j.A)()}getTableElement(e){return this._tableElement}setTableElement(e,t){this._tableElement=e}_afterRowPrepared(e){}_handleDataChanged(e){}callbackNames(){return["scrollChanged"]}_updateScrollLeftPosition(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))}scrollTo(e){var t=this.element(),n=t&&t.children(".".concat(this.addWidgetPrefix(Xi))).not(".".concat(this.addWidgetPrefix("content-fixed")));(0,m.O9)(e)&&(0,m.O9)(e.left)&&this._scrollLeft!==e.left&&(this._scrollLeft=e.left,n&&n.scrollLeft(e.left))}_getContent(e){var t;return null===(t=this._tableElement)||void 0===t?void 0:t.parent()}_removeContent(e){var t=this._getContent(e);t?.length&&t.remove()}_wrapTableInScrollContainer(e,t){var n=(0,j.A)("<div>"),p=this.option("scrolling.useNative");return(!1===p||"auto"===p&&!he.nativeScrolling)&&n.addClass(this.addWidgetPrefix("scrollable-simulated")),_.A.on(n,"scroll",()=>{var P=n.scrollLeft();P!==this._scrollLeft&&this.scrollChanged.fire({left:P},this.name)}),n.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix(Xi)).append(e).appendTo(this.element()),this.setAria("role","presentation",n),n}needWaitAsyncTemplates(){return this.option("templatesRenderAsynchronously")&&!1===this.option("renderAsync")}waitAsyncTemplates(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new xe.cY;if(!e&&!this.needWaitAsyncTemplates())return t.resolve();var p=()=>xe.z7.apply(this,Array.from(this._templateDeferreds)).done(()=>{this.isDisposed()?t.reject():this._templateDeferreds.size>0?p():t.resolve()}).fail(t.reject);return p(),t.promise()}_updateContent(e,t,n){return this.waitAsyncTemplates().done(()=>{this._removeContent(n),this.setTableElement(e,n),this._wrapTableInScrollContainer(e,n)})}_findContentElement(e){}_getWidths(e){if(!e)return[];var t=[];return e.toArray().forEach(p=>{var P=p.offsetWidth;if(p.getBoundingClientRect){var J=(0,ge.N)(p);J.width>p.offsetWidth-1&&(P=J.width)}t.push(P)}),t}getColumnWidths(e){if((this.option("forceApplyBindings")||s.lQ)(),e=e??this.getTableElement())for(var t=e.children("tbody:not(.dx-header)").children(),n=0;n<t.length;n++){var p=t.eq(n),P=p.hasClass(Vt),J=p.hasClass(bi),fe=p.hasClass("dx-error-row");if(!("none"===p.get(0).style.display||p.hasClass("dx-state-invisible")||P||J||fe)){var Ze=p.children("td");return this._getWidths(Ze)}}return[]}getVisibleColumnIndex(e,t){return e}setColumnWidths(e){var{widths:t}=e,p=this.getTableElement();if(p?.length&&t){var P=this.getColumns(),J=this.option("columnAutoWidth"),fe=p.children("colgroup").children("col");fe.toArray().forEach(ke=>ke.removeAttribute("style")),P.forEach((ke,Ue)=>{if(J&&ke.width&&!ke.command)for(var Ze=Ur(ke.visibleWidth||ke.width),Ft=Ur(ke.minWidth||Ze),vi=p.children().children(".dx-row").not(".".concat(bi)),Li=0;Li<vi.length;Li++){var tn=this.getVisibleColumnIndex(Ue,Li);if(tn>=0){var On=vi.eq(Li),Qn=On.hasClass(Vt)?On.find("td[aria-colindex='".concat(tn+1,"']:not(.").concat("dx-group-cell",")")):On.find("td").eq(tn);if(Qn.length){var zr=Qn.get(0);ar(zr,ke,Ze),zr.style.minWidth=Ft}}}var la=sa(t[Ue]);(0,m.O9)(la)&&(0,Ee.zj)(fe.eq(Ue),la)})}}getCellElements(e){return this._getCellElementsCore(e)}_getCellElementsCore(e){if(!(e<0))return this._getRowElements().eq(e).children()}_getCellElement(e,t){var n=this.getCellElements(e),p=this._getVisibleColumnIndex(n,e,t);if(n?.length&&!(p<0)){var P=n.eq(p);return P.length>0?P:void 0}}_getRowElement(e){var t=this,n=(0,j.A)(),p=t.getTableElements();if(E.__(p,(P,J)=>{n=n.add(t._getRowElements((0,j.A)(J)).eq(e))}),n.length)return n}getCellElement(e,t){var n=this._getCellElement(e,t);if(n)return(0,z.c)(n)}getRowElement(e){var t=this._getRowElement(e),n=[];if(t&&!(0,z.c)(t).get)for(var p=0;p<t.length;p++)n.push(t[p]);else n=t;return n}_getVisibleColumnIndex(e,t,n){if((0,m.Kg)(n)){var p=this._columnsController.columnOption(n,"index");return this._columnsController.getVisibleIndex(p)}return n}getColumnElements(){}getColumns(e,t){return this._columnsController.getVisibleColumns(e)}getCell(e,t,n){var P,p=t||this._getRowElements();if(p.length>0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&"virtual"!==this.option("scrolling.rowRenderingMode")&&(e.rowIndex=e.rowIndex<p.length?e.rowIndex:p.length-1),P=n||this.getCellElements(e.rowIndex),P?.length>0))return P.eq(P.length>e.columnIndex?e.columnIndex:P.length-1)}getRowsCount(){var e=this.getTableElement();return e&&1===e.length?e[0].rows.length:0}_getRowElementsCore(e){if(e=e||this.getTableElement()){var n=(this.option().rowTemplate||this.option("dataRowTemplate"))&&e.find("> tbody.".concat(Wt));return n&&n.length?n:e.find("> tbody > "+".".concat(Wt,", > .").concat(Wt))}return(0,j.A)()}_getRowElements(e){return this._getRowElementsCore(e)}getRowIndex(e){return this._getRowElements().index(e)}getBoundingRect(){}getName(){}setScrollerSpacing(e){var t=this.element(),n=this.option("rtlEnabled");t&&t.css({paddingLeft:n?e:"",paddingRight:n?"":e})}isScrollbarVisible(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?(0,R.Ot)(n)-(0,R.RG)(t)>0:(0,R.P$)(n)-(0,R.Oq)(t)>0)}isDisposed(){var e;return null===(e=this.component)||void 0===e?void 0:e._disposed}}var no="text-content",Eo="dx-header-row",Pi="dx-visibility-hidden",ln="dx-text-content-alignment-",Ri=function(V,e,t){var n=(0,j.A)("<div>").addClass(V.addWidgetPrefix(no));V.setAria("role","presentation",n),ji(V,e,t.column,n);var p=V.option("showColumnLines"),P=V.getController("columns").getHeaderContentAlignment(t.column.alignment);return n[p||"right"===P?"appendTo":"prependTo"](e)};function ji(V,e,t,n){var p=V._getIndicatorElements(e,!0),P=V._getIndicatorElements(e),J=p&&p.length,fe=V._getColumnAlignment(t.alignment),ke=".".concat(V._getIndicatorClassName("sort")),Ue=".".concat(V._getIndicatorClassName("sortIndex")),Ze=P.filter(ke),Ft=P.children().filter(Ue);(n=n||e.children(".".concat(V.addWidgetPrefix(no)))).toggleClass(ln+fe,J>0).toggleClass(ln+("left"===fe?"right":"left"),J>0&&"center"===t.alignment).toggleClass("dx-sort-indicator",!!Ze.length).toggleClass("dx-sort-index-indicator",!!Ft.length).toggleClass("dx-header-filter-indicator",!!P.filter(".".concat(V._getIndicatorClassName("headerFilter"))).length)}var Nn={defaultOptions:()=>({showColumnHeaders:!0,cellHintEnabled:!0}),views:{columnHeadersView:class wn extends Pr{init(){super.init(),this._headerPanelView=this.getView("headerPanel"),this._headerFilterController=this.getController("headerFilter"),this._dataController=this.getController("data")}_createTable(){var e=super._createTable.apply(this,arguments);return _.A.on(e,"mousedown selectstart",this.createAction(t=>{var{event:n}=t;n.shiftKey&&n.preventDefault()})),e}_isLegacyKeyboardNavigation(){return this.option("useLegacyKeyboardNavigation")}_getDefaultTemplate(e){var t=this;return function(n,p){var{caption:P}=e,J=!e.command||P&&"expand"!==e.command;"empty"===e.command?t._renderEmptyMessage(n,p):J?Ri(t,n,p).text(P):e.command&&n.html(" ")}}_renderEmptyMessage(e,t){var n=this._getEmptyHeaderText();if(n){var p=Ri(this,e,t);if(n.includes("{0}")){var[J,fe]=n.split("{0}"),ke=v.A.format("dxDataGrid-emptyHeaderColumnChooserText"),Ue=this._columnChooserView,Ze=(0,j.A)("<a>").text(ke).addClass("dx-link");_.A.on(Ze,"click",this.createAction(()=>Ue.showColumnChooser())),p.append(L.A.createTextNode(J)).append(Ze).append(L.A.createTextNode(fe))}else p.text(n)}else e.html(" ")}_getEmptyHeaderText(){var e=!!this._columnChooserView.hasHiddenColumns(),t=!!this._headerPanelView.hasGroupedColumns();switch(!0){case e&&t:return v.A.format("dxDataGrid-emptyHeaderWithColumnChooserAndGroupPanelText");case t:return v.A.format("dxDataGrid-emptyHeaderWithGroupPanelText");case e:return v.A.format("dxDataGrid-emptyHeaderWithColumnChooserText");default:return""}}_getHeaderTemplate(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}}_processTemplate(e,t){var n=this,{column:P}=t,J=super._processTemplate(e);return"header"===t.rowType&&J&&P.headerCellTemplate&&!P.command?{render(fe){var ke=Ri(n,fe.container,fe.model);J.render((0,o.X)({},fe,{container:ke}))}}:J}_handleDataChanged(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())}_renderCell(e,t){var n=super._renderCell(e,t);return"header"===t.row.rowType&&(n.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||t.column&&!t.column.type&&n.attr("tabindex",this.option("tabindex")||0)),n}_setCellAriaAttributes(e,t){super._setCellAriaAttributes(e,t),"header"===t.rowType&&(t.column.type||this.setAria("role","columnheader",e),t.column&&!t.column.command&&!t.column.isBand&&(e.attr("id",t.column.headerId),this.setAria("label","".concat(v.A.format("dxDataGrid-ariaColumn")," ").concat(t.column.caption),e)))}_createRow(e){var t=super._createRow.apply(this,arguments);return t.toggleClass("dx-column-lines",this.option("showColumnLines")),"header"===e.rowType&&(t.addClass(Eo),this._isLegacyKeyboardNavigation()||W("columnHeaders",this,t,"td",this._handleActionKeyDown.bind(this))),t}_processHeaderAction(e,t){}_handleActionKeyDown(e){var{event:t}=e,n=(0,j.A)(t.target);if(this._lastActionElement=t.target,n.is(".dx-header-filter")){var p=this._headerFilterController,P=n.closest("td"),J=this.getColumnIndexByElement(P);J>=0&&p.showHeaderFilterMenu(J,!1)}else{var fe=n.closest(".dx-row");this._processHeaderAction(t,fe)}t.preventDefault()}_renderCore(){var e=this.element(),t={};if(!this._tableElement||this._dataController.isLoaded()||this._hasRowElements){e.addClass(this.addWidgetPrefix("headers")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")).empty(),this.setAria("role","presentation",e);var n=this._updateContent(this._renderTable({change:t}),t);return this.getRowCount()>1&&e.addClass("dx-header-multi-row"),super._renderCore.apply(this,arguments),n}}_renderRows(){(this._dataController.isLoaded()||this._hasRowElements)&&(super._renderRows.apply(this,arguments),this._hasRowElements=!0)}_renderRow(e,t){var n=1===this.getRowCount()?null:t.row.rowIndex;t.columns=this.getColumns(n),super._renderRow(e,t)}_createCell(e){var{column:t}=e,n=super._createCell.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&n.attr("rowSpan",t.rowspan),n}_getRows(){var e=[],t=this.getRowCount();if(this.option("showColumnHeaders"))for(var n=0;n<t;n++)e.push({rowType:"header",rowIndex:n});return e}_getCellTemplate(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)}_columnOptionChanged(e){var{changeTypes:t}=e,{optionNames:n}=e;t.grouping||t.groupExpanding?t.grouping&&(this._isGroupingChanged=!0):(super._columnOptionChanged(e),(n.width||n.visible)&&this.resizeCompleted.fire())}_isElementVisible(e){return e&&e.visible}_alignCaptionByCenter(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter(".".concat(Pi)).remove(),(t=this._getIndicatorContainer(e)).clone().addClass(Pi).css("float","").insertBefore(e.children(".".concat(this.addWidgetPrefix(no)))))}_updateCell(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),super._updateCell.apply(this,arguments)}_updateIndicator(e,t,n){var p=super._updateIndicator.apply(this,arguments);return"center"===t.alignment&&this._alignCaptionByCenter(e),ji(this,e,t),p}_getIndicatorContainer(e,t){var n=super._getIndicatorContainer(e);return t?n:n.filter(":not(.".concat(Pi,")"))}_isSortableElement(e){return!0}getHeadersRowHeight(){var e=this.getTableElement(),t=e&&e.find(".".concat(Eo));return t&&t.toArray().reduce((n,p)=>n+(0,R.Oq)(p),0)||0}getHeaderElement(e){var t=this.getColumnElements();return t&&t.eq(e)}getColumnElements(e,t){var p,n=this,P=n._columnsController,J=n.getRowCount();if(n.option("showColumnHeaders")){if(J>1&&(!(0,m.O9)(e)||(0,m.O9)(t))){var fe=[],ke=(0,m.O9)(t)?P.getChildrenByBandColumn(t,!0):P.getVisibleColumns();return(0,E.__)(ke,(Ue,Ze)=>{var Ft=(0,m.O9)(e)?e:P.getRowIndex(Ze.index);(p=n._getCellElement(Ft,P.getVisibleIndex(Ze.index,Ft)))&&fe.push(p.get(0))}),(0,j.A)(fe)}if(!e||e<J)return n.getCellElements(e||0)}}getColumnIndexByElement(e){var t=this.getCellIndex(e),n=e.closest(".dx-row"),{rowIndex:p}=n[0],P=this.getColumns(p)[t];return P?P.index:-1}getVisibleColumnIndex(e,t){var n=this.getColumns()[e];return n?this._columnsController.getVisibleIndex(n.index,t):-1}getColumnWidths(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):super.getColumnWidths.apply(this,arguments)}allowDragging(e){var t,n=e&&this._columnsController.getRowIndex(e.index),p=this.getColumns(n);return(null!==(t=this.option("allowColumnReordering"))&&void 0!==t?t:this._columnsController.isColumnOptionUsed("allowReordering"))&&e.allowReordering&&p.length>1}getBoundingRect(){var e=this.getColumnElements();return e&&e.length?{top:this.getTableElement().offset().top}:null}getName(){return"headers"}getColumnCount(){var e=this.getColumnElements();return e?e.length:0}isVisible(){return this.option("showColumnHeaders")}optionChanged(e){switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:super.optionChanged(e)}}getHeight(){return this.getElementHeight()}getContextMenuItems(e){var t=this,{column:n}=e;if(e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var p=t.option("sorting");if(p&&"none"!==p.mode&&n&&n.allowSorting){var P=function(J){setTimeout(()=>{t._columnsController.changeSortOrder(n.index,J.itemData.value)})};return[{text:p.ascendingText,value:"asc",disabled:"asc"===n.sortOrder,icon:"context-menu-sort-asc",onItemClick:P},{text:p.descendingText,value:"desc",disabled:"desc"===n.sortOrder,icon:"context-menu-sort-desc",onItemClick:P},{text:p.clearText,value:"none",disabled:!n.sortOrder,icon:"context-menu-sort-none",onItemClick:P}]}}}getRowCount(){return this._columnsController&&this._columnsController.getRowCount()}setRowsOpacity(e,t,n){var p,P,J=this.getRowCount(),fe=this._columnsController.getColumns(),ke=fe&&fe[e],Ue=ke&&ke.isBand&&ke.index,Ze=(vi,Li)=>{vi.ownerBand===Ue&&(P.eq(Li).css({opacity:t}),vi.isBand&&this.setRowsOpacity(vi.index,t,p+1))};if((0,m.O9)(Ue))for(p=n=n||0;p<J;p++)(P=this.getCellElements(p))&&this.getColumns(p).forEach(Ze)}}}};const En=(0,Nt.A)((0,Nt.A)((0,Nt.A)({},cn),Ui.A),{modules:[]});En.registerModule("columnHeaders",Nn);var ha=D(83771),aa=D(39407),Fa=D(48745),Ya=D(95652),_o=D(78059),Yo=D(44168),Va=D(75333),ia=D(61076),$o=D(69259),mo=D(10438),fl=["filterValues","filterType","fixed","fixedPosition"],Jl=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","added"].concat(fl),zo={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},Ha=Number.MAX_SAFE_INTEGER||9007199254740991,us="groupExpand",ms=/columns\[(\d+)\]\.?/gi,El={visible:!0,showInColumnChooser:!0},Wl={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},Xd={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},rs="group",Ho="columnChooser",Zs=D(89518),jl=D(39504),Ms=D(15655),Ko=function(V){V.filterOperations=V.defaultFilterOperations},hs=1,ws=function(V,e,t,n){var p={};if(e){(0,m.Kg)(e)&&(e={dataField:e}),V.setName(e);var P={};if(e.command)P=(0,Ya.tm)(p,e);else{p=V.getCommonSettings(e),t&&t.name&&t.dataField&&(e=(0,o.X)({},e,{dataField:t.dataField}));var J=V._createCalculatedColumnOptions(e,n);e.type||(P={headerId:"dx-col-".concat(hs++)}),P=(0,Ya.tm)(P,El),(0,Ya.tm)(P,p),(0,Ya.tm)(P,J),(0,Ya.tm)(P,e),(0,Ya.tm)(P,{selector:null})}return e.filterOperations===e.defaultFilterOperations&&Ko(P),P}},Yl=function V(e,t,n,p){var P=[];return t&&(0,E.__)(t,(J,fe)=>{var ke=(p??0)+P.length,Ue=e._columnsUserState&&el(fe,e._columnsUserState[ke])&&e._columnsUserState[ke],Ze=ws(e,fe,Ue,n);Ze&&(n&&(Ze.ownerBand=n),P.push(Ze),Ze.columns&&(P=P.concat(V(e,Ze.columns,Ze,P.length)),delete Ze.columns,Ze.hasColumns=!0))}),P},Bt=function(V,e){for(var t=[],n=e[V];n;)t.unshift(n),n=e[V=n.index];return t},Si=function V(e,t,n){var p=[],P=t[e];if(P)for(var J=0;J<P.length;J++){var fe=P[J];(!(0,m.O9)(fe.groupIndex)||fe.showWhenGrouped)&&(p.push(fe),n&&fe.isBand&&(p=p.concat(V(fe.index,t,n))))}return p},Dn=function V(e,t){var n=0,p=e.getChildrenByBandColumn(t,!0);return(0,E.__)(p,(P,J)=>{J.isBand?(J.colspan=J.colspan||V(e,J.index),n+=J.colspan||1):n+=1}),n},tr=function(V){var e=(0,m.NW)(V);return"string"!==e&&"boolean"!==e&&"number"!==e&&"date"!==e&&"object"!==e&&(e=void 0),e},xr=function(V,e){switch(V){case"date":case"datetime":return jl.A.getDateSerializationFormat(e);case"number":if((0,m.Kg)(e))return"string";if((0,m.kf)(e))return null}},Pa=function(V,e){V.deserializeValue||(Ui.A.isDateType(e)&&(V.deserializeValue=function(t){return jl.A.deserializeDate(t)},V.serializeValue=function(t){return(0,m.Kg)(t)?t:jl.A.serializeDate(t,this.serializationFormat)}),"number"===e&&(V.deserializeValue=function(t){var n=parseFloat(t);return isNaN(n)?t:n},V.serializeValue=function(t,n){return"filter"===n?t:(0,m.O9)(t)&&"string"===this.serializationFormat?t.toString():t}))},Aa=function(V){return!0===V.value?this.trueText||"true":!1===V.value?this.falseText||"false":V.valueText||""},Ba=function(V){if("boolean"===V)return Aa},Lo=function(V){(0,E.__)(V._columns,(e,t)=>{t.index=e}),(0,E.__)(V._columns,(e,t)=>{(0,m.Gv)(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)}),(0,E.__)(V._commandColumns,(e,t)=>{t.index=-(e+1)})},$a=function(V,e){(0,Zs.Il)(V._columns,"groupIndex",e,t=>{var{grouped:n}=t;return delete t.grouped,n})},Ml=function(V,e,t){var P,n=(0,m.Gv)(e)?e.rowIndex:null,p=t===rs?V.getGroupColumns():t===Ho?V.getChooserColumns():V.getVisibleColumns(n);return e=(0,m.Gv)(e)?e.columnIndex:e,(P=p[e])&&P.type===us&&(P=V._columns.filter(J=>P.type===J.type)[0]||P),P&&(0,m.O9)(P.index)?P.index:-1};function el(V,e){return V&&e&&e.name===(V.name||V.dataField)&&(e.dataField===V.dataField||V.name)}var _s=function(V){var ke,Ue,Ze,e=V._columnsUserState,t=V._ignoreColumnOptionNames||[],n=V._columns,p={},P=[],J=!0,fe=[];function Ft(On,Qn){if(Qn)for(var zr=0;zr<Jl.length;zr++){var la=Jl[zr];t.includes(la)||("dataType"===la?On[la]=On[la]||Qn[la]:fl.includes(la)?la in Qn&&(On[la]=Qn[la]):("selectedFilterOperation"===la&&Qn[la]&&(On.defaultSelectedFilterOperation=On[la]||null),On[la]=Qn[la]))}}function vi(On,Qn){for(var zr=Qn.name||Qn.dataField,la=p[zr]||0,qo=0;qo<On.length;qo++)if(el(Qn,On[qo])){if(!la)return p[zr]=p[zr]||0,p[zr]++,qo;la--}return-1}if(e){for(Ze=0;Ze<n.length;Ze++)Ue=vi(e,n[Ze]),J=J&&Ue>=0,fe.push(Ue);for(Ze=0;Ze<n.length;Ze++)ke=n[Ze],Ue=fe[Ze],(V._hasUserState||J)&&Ft(ke,e[Ue]),Ue>=0&&(0,m.O9)(e[Ue].initialIndex)?P[Ue]=ke:P.push(ke);var Li=!1;for(Ze=0;Ze<e.length;Ze++){var tn=e[Ze];tn.added&&vi(n,tn)<0&&(Ft(ke=ws(V,tn.added),tn),P.push(ke),tn.added.columns&&(Li=!0))}Li&&(Lo(V),P=Yl(V,P)),hl(V,P)}},yl=function(V,e){Lo(V),$a(V,e),function(V,e){(0,E.__)(V._columns,(t,n)=>{(0,m.O9)(n.sortIndex)&&!Il(n.sortOrder)&&delete n.sortIndex}),(0,Zs.Il)(V._columns,"sortIndex",e,t=>!(0,m.O9)(t.groupIndex)&&Il(t.sortOrder))}(V,e),ks(V),function(V,e){for(var t,n=[],p=V.getBandColumnsCache(),P=[],J=V._columns.filter(Ue=>!Ue.command),fe=0;fe<J.length;fe++)t=J[fe],Bt(fe,p.columnParentByIndex).length?P.push(t):n.push(t);(0,Zs.Il)(P,"visibleIndex",e),(0,Zs.Il)(n,"visibleIndex",e)}(V,e)},Hs=function(V){V.resetColumnsCache()};function hl(V,e){V._previousColumns=V._columns,V._columns=e,Hs(V),V.updateColumnDataTypes()}var Os=function(V,e,t,n){var p,P=V._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:n};t=(t=t||"all").split(".")[0];var{changeTypes:J}=P;e&&!J[e]&&(J[e]=!0,J.length++);var{optionNames:fe}=P;t&&!fe[t]&&(fe[t]=!0,fe.length++),(void 0===n||n!==P.columnIndex)&&((0,m.O9)(n)&&(null!==(p=P.columnIndices)&&void 0!==p||(P.columnIndices=[]),(0,m.O9)(P.columnIndex)&&P.columnIndices.push(P.columnIndex),P.columnIndices.push(n)),delete P.columnIndex),V._columnChanges=P,Hs(V)},Zl=function(V){var p,e=V.option("onColumnsChanging"),t=V._columnChanges;V.isInitialized()&&!V._updateLockCount&&t&&(e&&(V._updateLockCount++,e((0,o.X)({component:V.component},t)),V._updateLockCount--),V._columnChanges=void 0,(p=t.optionNames)&&["dataField","lookup","dataType","columns"].some(P=>p[P])?(V._reinitAfterLookupChanges=t?.optionNames.lookup,V.reinit(),V._reinitAfterLookupChanges=void 0):V.columnsChanged.fire(t))},oc=function(V,e,t,n,p){var fe,ke,Ue,P=(0,aa.Hz)(t),J=e.index;if(3===arguments.length)return P(e,{functionsAsIs:!0});var Ze=P(e,{functionsAsIs:!0});if(!(0,s.RL)(Ze,n,{maxDepth:5})){"groupIndex"===t||"calculateGroupValue"===t?(ke="grouping",function(V,e,t,n){if(t>=0)n>=0||(e.lastSortOrder=e.sortOrder);else{var P=V.option("sorting.mode"),J=e.lastSortOrder;"single"===P&&V._columns.some(ke=>ke!==e&&(0,m.O9)(ke.sortIndex))&&(J=void 0),e.sortOrder=J}}(V,e,n,Ze)):ke="sortIndex"===t||"sortOrder"===t||"calculateSortValue"===t?"sorting":"columns";var Ft=(0,aa.vL)(t);Ft(e,n,{functionsAsIs:!0});var vi=function(V,e){var n,t=[],p=V.getBandColumnsCache(),P=function(fe){return fe.ownerBand===e.ownerBand};if(p.isPlain){var J=V._columns.indexOf(e);J>=0&&(t=["columns[".concat(J,"]")])}else for(n=V._columns.filter(P);n.length&&-1!==n.indexOf(e);)t.unshift("columns[".concat(n.indexOf(e),"]")),n=(e=p.columnParentByIndex[e.index])?V._columns.filter(P):[];return t.join(".")}(V,e);Xd[t]&&(yl(V,e),n=P(e)),("name"===t||"allowEditing"===t)&&V._checkColumns(),!(0,m.O9)(Ze)&&!(0,m.O9)(n)&&0!==t.indexOf("buffer")&&(p=!0),p?Hs(V):(!Jl.includes(t)&&"visibleWidth"!==t&&(fe=V.option("columns"),Ue=V.getColumnByPath(vi,fe),(0,m.Kg)(Ue)&&(Ue=fe[J]={dataField:Ue}),Ue&&el(Ue,e)&&Ft(Ue,n,{functionsAsIs:!0})),Os(V,ke,t,J)),vi&&function(V,e){var{value:t}=e,{optionName:n}=e,{prevValue:p}=e,{fullOptionName:P}=e,J="".concat(P,".").concat(n);!zo[n]&&V._skipProcessingColumnsChange!==J&&(V._skipProcessingColumnsChange=J,V.component._notifyOptionChanged(J,t,p),V._skipProcessingColumnsChange=!1)}(V,{fullOptionName:vi,optionName:t,value:n,prevValue:Ze})}};function Il(V){return"asc"===V||"desc"===V}var ru=function(V,e){if(this.dataField){var t=this.dataField.split("."),n=t.length-1;this.serializeValue&&(e=this.serializeValue(e));for(var p=0;p<n;p++){var P=t[p];V=V[P]=V[P]||{}}V[t[n]]=e}},ql=function V(e,t,n){var p=[];return e[t=t||0]&&(0,E.__)(e[t],(P,J)=>{(J.ownerBand===n||J.type===us)&&(J.isBand&&J.colspan?p.push.apply(p,V(e,t+1,J.index)):(!J.command||t<1)&&p.push(J))}),p},Jd=(V,e)=>!!V._columns.filter(n=>n.type===e.type).length,vc=function(V,e){var t=V.option("rtlEnabled");return e.command&&!Jd(V,e)||!e.fixedPosition?t?"right":"left":e.fixedPosition},bc=function(V,e,t,n){var p,P=this.getRowCount(),J=V[n]&&V[n].rowspan,fe=e.filter(ke=>ke.type===t);return V.forEach((ke,Ue)=>{ke.type===t&&(p=Ue,J=V[Ue+1]?V[Ue+1].rowspan:P)}),J>1&&(fe=(0,E.Tj)(fe,ke=>(0,o.X)({},ke,{rowspan:J}))),fe.unshift.apply(fe,(0,m.O9)(p)?[p,1]:[n,0]),V.splice.apply(V,fe),J||1},yc=function(V,e){for(var t=V?V.toString():"0";t.length<e;)t="0".concat(t);return t},yd=(V,e,t,n)=>{for(var p,P,J=e.slice().map(Li=>(0,o.X)({},Li)),fe=V._isColumnFixing(),ke=t.slice().map(Li=>(0,o.X)({fixed:fe},Li)),Ue=Li=>t.reduce((tn,On,Qn)=>On.type===(n&&Li.type===us?"expand":Li.type)||On.command===Li.command?Qn:tn,-1),Ze=Li=>Li.command!==t[P].command,Ft=0;Ft<e.length;Ft++)(P=(p=e[Ft])&&(p.type||p.command)?Ue(p):-1)>=0&&(n?(J[Ft]=(0,o.X)({fixed:fe},t[P],p),p.type!==us&&(ke=ke.filter(Ze))):J[Ft]=(0,o.X)({},p,t[P],p.type===us&&{visibleIndex:p.visibleIndex,index:p.index,headerId:p.headerId,allowFixing:0===p.groupIndex,allowReordering:0===p.groupIndex,groupIndex:p.groupIndex}));return e.length&&n&&ke.length&&(J=J.concat(ke)),J},Ol=(V,e)=>(0,m.O9)(e.fixed)||!e.type?e.fixed:V._isColumnFixing(),ks=V=>{V._bandColumnsCache=void 0},oi=(V,e)=>{var n,t=(0,m.Kg)(e)&&e.substr(0,e.indexOf(":"));if(void 0!==e)return t&&(e=e.substr(t.length+1)),t?n=V.filter(p=>"".concat(p[t])===e)[0]:["index","name","dataField","caption"].some(p=>!!(n=V.filter(P=>P[p]===e)[0])),n},Un={defaultOptions:()=>({commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:v.A.format("dxDataGrid-trueText"),falseText:v.A.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}),controllers:{columns:class Yi extends cn.Controller{init(e){this._dataController=this.getController("data"),this._focusController=this.getController("focus"),this._stateStoringController=this.getController("stateStoring");var t=this.option("columns");this._commandColumns=this._commandColumns||[],this._columns=this._columns||[],this._isColumnsFromOptions=!!t,this._isColumnsFromOptions?(hl(this,t?Yl(this,t):[]),_s(this)):hl(this,this._columnsUserState?Yl(this,this._columnsUserState):this._columns),function(V){var e=V._getExpandColumnOptions();V.addCommandColumn(e)}(this),this._dataSourceApplied?this.applyDataSource(this._dataSource,!0,e):yl(this),this._checkColumns()}_getExpandColumnOptions(){return{type:"expand",command:"expand",width:"auto",cssClass:"dx-command-expand",allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}}_getFirstItems(e){var t,n=[];return e&&e.items().length>0&&(t=Ui.A.normalizeSortingInfo(e.group()).length,n=function p(P,J){if(!P||!J)return P;for(var fe=0;fe<P.length;fe++){var ke=p(P[fe].items||P[fe].collapsedItems,J-1);if(ke&&ke.length)return ke}}(e.items(),t)||[]),n}_endUpdateCore(){!this._skipProcessingColumnsChange&&Zl(this)}callbackNames(){return["columnsChanged"]}getColumnByPath(e,t){var n,p=[];return e.replace(ms,(P,J)=>(p.push(parseInt(J)),"")),p.length&&(n=t?p.reduce((P,J)=>P&&P.columns&&P.columns[J],{columns:t}):function(V,e){var t,n,P=function(fe){return fe.ownerBand===(t?t.index:void 0)};if(V.getBandColumnsCache().isPlain)t=V._columns[e[0]];else{n=V._columns.filter(P);for(var J=0;J<e.length;J++)(t=n[e[J]])&&(n=V._columns.filter(P))}return t}(this,p)),n}optionChanged(e){var t;switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"dataSource":e.value!==e.previousValue&&!this.option("columns")&&(!Array.isArray(e.value)||!Array.isArray(e.previousValue))&&(this._columns=[]);break;case"columns":t=this._skipProcessingColumnsChange,e.handled=!0,this._skipProcessingColumnsChange||(e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):(this._columnOptionChanged(e),t=!0)),t&&this._updateRequireResize(e);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":e.handled=!0,this.reinit("columnWidth"===e.fullName&&["width"]);break;case"rtlEnabled":this.reinit();break;default:super.optionChanged(e)}}_columnOptionChanged(e){var t={},n=this.getColumnByPath(e.fullName),p=e.fullName.replace(ms,"");n&&(p?t[p]=e.value:t=e.value,this._skipProcessingColumnsChange=e.fullName,this.columnOption(n.index,t),this._skipProcessingColumnsChange=!1)}_updateRequireResize(e){var{component:t}=this;"width"===e.fullName.replace(ms,"")&&t._updateLockCount&&(t._requireResize=!0)}publicMethods(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns","getVisibleColumnIndex"]}applyDataSource(e,t,n){var p=e&&e.isLoaded();if(this._dataSource=e,!this._dataSourceApplied||0===this._dataSourceColumnsCount||t||this.option("regenerateColumnsByVisibleItems")){if(p){if(!this._isColumnsFromOptions){var P=function(V,e){for(var n,t=V._getFirstItems(e),p={},P=[],J=0;J<t.length;J++)if(t[J])for(n in t[J])(!(0,m.Tn)(t[J][n])||_o.A.isWrapped(t[J][n]))&&(p[n]=!0);for(n in p)if(0!==n.indexOf("__")){var fe=ws(V,n);P.push(fe)}return P}(this,e);P.length&&(hl(this,P),this._dataSourceColumnsCount=this._columns.length,_s(this))}return this.updateColumns(e,t,n)}this._dataSourceApplied=!1,yl(this)}else if(p&&!this.isAllDataTypesDefined(!0)&&this.updateColumnDataTypes(e))return Os(this,"columns"),Zl(this),(new xe.cY).reject().promise()}reset(){this._dataSource=null,this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()}resetColumnsCache(){this._visibleColumns=void 0,this._fixedColumns=void 0,this._rowCount=void 0,ks(this)}reinit(e){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=e||null,this.init(),e&&(this._ignoreColumnOptionNames=null)}isInitialized(){return!!this._columns.length||!!this.option("columns")}isDataSourceApplied(){return this._dataSourceApplied}getCommonSettings(e){var t,n,p=(!e||!e.type)&&this.option("commonColumnSettings")||{},P=null!==(t=this.option("grouping"))&&void 0!==t?t:{},J=null!==(n=this.option("groupPanel"))&&void 0!==n?n:{};return(0,o.X)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:P.autoExpandAll,allowCollapsing:P.allowCollapsing,allowGrouping:J.allowColumnDragging&&J.visible||P.contextMenuEnabled},p)}isColumnOptionUsed(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0}isAllDataTypesDefined(e){var t=this._columns;if(!t.length)return!1;for(var n=0;n<t.length;n++)if((t[n].dataField||t[n].calculateCellValue!==t[n].defaultCalculateCellValue)&&(!t[n].dataType||e&&t[n].deserializeValue&&void 0===t[n].serializationFormat))return!1;return!0}getColumns(){return this._columns}isBandColumnsUsed(){return this.getColumns().some(e=>e.isBand)}getGroupColumns(){var e=[];return(0,E.__)(this._columns,function(){(0,m.O9)(this.groupIndex)&&(e[this.groupIndex]=this)}),e}_shouldReturnVisibleColumns(){return!0}_compileVisibleColumns(e){return this._visibleColumns=this._visibleColumns||this._compileVisibleColumnsCore(),e=(0,m.O9)(e)?e:this._visibleColumns.length-1,this._visibleColumns[e]||[]}getVisibleColumns(e,t){return this._shouldReturnVisibleColumns()?this._compileVisibleColumns.apply(this,arguments):[]}getFixedColumns(e){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),e=(0,m.O9)(e)?e:this._fixedColumns.length-1,this._fixedColumns[e]||[]}getFilteringColumns(){return this.getColumns().filter(e=>(e.dataField||e.name)&&(e.allowFiltering||e.allowHeaderFiltering)).map(e=>{var t=(0,o.X)(!0,{},e);return(0,m.O9)(t.dataField)||(t.dataField=t.name),t.filterOperations=e.filterOperations!==e.defaultFilterOperations?t.filterOperations:null,t})}getColumnIndexOffset(){return 0}_getFixedColumnsCore(){var J,fe,ke,e=[],t=this.getRowCount(),p={command:"transparent"},P=0;if(this._isColumnFixing())for(var Ue=0;Ue<=t;Ue++){J=0,ke=null,fe=null;for(var Ze=this.getVisibleColumns(Ue,!0),Ft=0;Ft<Ze.length;Ft++){var vi=Ze[Ft-1],Li=Ze[Ft];Li.fixed?vi&&vi.fixed&&vc(this,vi)!==vc(this,Li)?(0,m.O9)(fe)||(fe=Ft):ke=Li.fixedPosition:(0===Ue&&(Li.isBand&&Li.colspan?P+=Li.colspan:P++),J++,(0,m.O9)(fe)||(fe=Ft))}if(0===Ue&&(0===J||J>=Ze.length))return[];(0,m.O9)(fe)||(fe="right"===ke?0:Ze.length),e[Ue]=Ze.slice(0),p.colspan||(p.colspan=P),e[Ue].splice(fe,J,p)}return e.map(tn=>tn.map(On=>{var Qn=(0,Nt.A)({},On);return Qn.headerId&&(Qn.headerId+="-fixed"),Qn}))}_isColumnFixing(){var e=this.option("columnFixing.enabled");return!e&&(0,E.__)(this._columns,(t,n)=>{if(n.fixed)return e=!0,!1}),e}_getExpandColumnsCore(){return this.getGroupColumns()}getExpandColumns(){var t,e=this._getExpandColumnsCore(),n=e.filter(fe=>0===fe.groupIndex)[0],p=n&&n.fixed,P=this._isColumnFixing(),J=this.option("rtlEnabled");return e.length&&(t=this.columnOption("command:expand")),(0,E.Tj)(e,fe=>(0,o.X)({},fe,{visibleWidth:null,minWidth:null,cellTemplate:(0,m.O9)(fe.groupIndex)?null:fe.cellTemplate,headerCellTemplate:null,fixed:!(!(0,m.O9)(fe.groupIndex)||!p)||P,fixedPosition:J?"right":"left"},t,{index:fe.index,type:fe.type||us}))}getBandColumnsCache(){if(!this._bandColumnsCache){var e=this._columns,t={},n={},p=!0;e.forEach(P=>{var{ownerBand:J}=P,fe=(0,m.Gv)(J)?J.index:J,ke=e[fe];P.hasColumns&&(p=!1),P.colspan&&(P.colspan=void 0),P.rowspan&&(P.rowspan=void 0),ke?n[P.index]=ke:fe=-1,t[fe]=t[fe]||[],t[fe].push(P)}),this._bandColumnsCache={isPlain:p,columnChildrenByIndex:t,columnParentByIndex:n}}return this._bandColumnsCache}_isColumnVisible(e){return e.visible&&this.isParentColumnVisible(e.index)}_isColumnInGroupPanel(e){return(0,m.O9)(e.groupIndex)&&!e.showWhenGrouped}hasVisibleDataColumns(){return this._columns.some(t=>{var n=this._isColumnVisible(t),p=this._isColumnInGroupPanel(t);return n&&!p&&!t.command})}_compileVisibleColumnsCore(){var e=this.getBandColumnsCache(),t=yd(this,this._columns,this._commandColumns,!0);!function(V,e,t){for(var n,p=0;p<e.length;p++){var P=e[p];(P.visible||P.command)&&(P.isBand&&(P.colspan=P.colspan||Dn(V,P.index)),(!P.isBand||!P.colspan)&&(n=V.getRowCount(),!P.command&&(!(0,m.O9)(P.groupIndex)||P.showWhenGrouped)&&(n-=Bt(P.index,t.columnParentByIndex).length),n>1&&(P.rowspan=n)))}}(this,t,e);var n=this._getIndexedColumns(t),p=this._getVisibleColumnsFromIndexed(n);return!this.hasVisibleDataColumns()&&this._columns.length&&p[p.length-1].push({command:"empty"}),p}_getIndexedColumns(e){for(var t=this.option("rtlEnabled"),n=this.getRowCount(),p=function(V){var e;for(e=0;V>1;e++)V/=10;return e}(e.length),P=this.getBandColumnsCache(),J=[],fe=[],ke=0;ke<n;ke+=1)fe[ke]=[{}],J[ke]=[{},{},{}];return e.forEach(Ue=>{var Ze,Ft,vi,Li,On,{visibleIndex:tn}=Ue,Qn=Bt(Ue.index,P.columnParentByIndex),zr=this._isColumnVisible(Ue),la=this._isColumnInGroupPanel(Ue);if(zr&&!la){var qo=Qn.length;if(tn<0)tn=-tn,On=fe[qo];else if(Ue.fixed=null!==(Ft=null===(Ze=Qn[0])||void 0===Ze?void 0:Ze.fixed)&&void 0!==Ft?Ft:Ue.fixed,Ue.fixedPosition=null!==(Li=null===(vi=Qn[0])||void 0===vi?void 0:vi.fixedPosition)&&void 0!==Li?Li:Ue.fixedPosition,Ue.fixed){var Xl=!!Ue.command&&!Jd(this,Ue),Es="right"===Ue.fixedPosition;t&&!Xl&&(Es=!Es),On=Es?J[qo][2]:J[qo][0]}else On=J[qo][1];if(Qn.length){tn=yc(tn,p);for(var ul=Qn.length-1;ul>=0;ul-=1)tn=yc(Qn[ul].visibleIndex,p)+tn}On[tn]=On[tn]||[],On[tn].push(Ue)}}),{positiveIndexedColumns:J,negativeIndexedColumns:fe}}_getVisibleColumnsFromIndexed(e){for(var t=this,{positiveIndexedColumns:n,negativeIndexedColumns:p}=e,P=[],J=this.getRowCount(),fe=yd(this,this.getExpandColumns(),this._columns),ke=0,Ue=0,Ze=function(vi){P.push([]),(0,Ya.ap)(p[vi],(On,Qn)=>{P[vi].unshift.apply(P[vi],Qn)});var Li=P[vi].length;n[vi].forEach(On=>{(0,Ya.ap)(On,(Qn,zr)=>{P[vi].push.apply(P[vi],zr)})}),Ue<=vi&&(Ue+=bc.call(t,P[vi],fe,"detailExpand",Li)),ke<=vi&&(ke+=bc.call(t,P[vi],fe,us,Li))},Ft=0;Ft<J;Ft+=1)Ze(Ft);return P.push(ql(P)),P}getInvisibleColumns(e,t){var P,n=this,p=[];return(0,E.__)(e=e||n._columns,(J,fe)=>{if(fe.ownerBand===t){if(fe.isBand)return void((P=fe.visible?n.getInvisibleColumns(n.getChildrenByBandColumn(fe.index),fe.index):n.getChildrenByBandColumn(fe.index)).length&&(p.push(fe),p=p.concat(P)));fe.visible||p.push(fe)}}),p}getChooserColumns(e){return((V,e)=>{if("asc"!==e&&"desc"!==e)return V;var t="asc"===e?1:-1;return V.sort((n,p)=>t*(n.caption||"").localeCompare(p.caption||"")),V})((e?this.getColumns():this.getInvisibleColumns()).filter(P=>P.showInColumnChooser),this.option("columnChooser.sortOrder"))}allowMoveColumn(e,t,n,p){var P=Ml(this,e,n),J=this._columns[P];return!(!J||!(J.allowReordering||J.allowGrouping||J.allowHiding))&&(n===p?n!==Ho&&(e=(0,m.Gv)(e)?e.columnIndex:e)!==(t=(0,m.Gv)(t)?t.columnIndex:t)&&e+1!==t:n===rs&&p!==Ho||p===rs?J&&J.allowGrouping:n!==Ho&&p!==Ho||J&&J.allowHiding)}moveColumn(e,t,n,p){var J,Ue,P={},fe=Ml(this,e,n),ke=Ml(this,t,p);if(fe>=0){var Ze=this._columns[fe];if(t=(0,m.Gv)(t)?t.columnIndex:t,Ue=ke>=0?this._columns[ke].groupIndex:-1,(0,m.O9)(Ze.groupIndex)&&n===rs&&(Ue>Ze.groupIndex&&Ue--,p!==rs?P.groupIndex=void 0:(J=Ze.groupIndex,delete Ze.groupIndex,$a(this))),p===rs)P.groupIndex=function(V,e,t){var p,n=V.getGroupColumns();if(t>=0)for(p=0;p<n.length;p++)n[p].groupIndex>=t&&n[p].groupIndex++;else for(t=0,p=0;p<n.length;p++)t=Math.max(t,n[p].groupIndex+1);return t}(this,0,Ue),Ze.groupIndex=J;else if(t>=0){var Ft=this._columns[ke];P.visibleIndex=!Ft||Ze.ownerBand!==Ft.ownerBand||Ol(this,Ze)^Ol(this,Ft)?Ha:Ft.visibleIndex}var vi=p!==Ho;Ze.visible!==vi&&(P.visible=vi),this.columnOption(Ze.index,P)}}changeSortOrder(e,t){var n={},p=this.option("sorting"),P=p&&p.mode,ke=this._columns[e];("single"===P||"multiple"===P)&&ke&&ke.allowSorting&&(("single"===P||!t)&&!(0,m.O9)(ke.groupIndex)&&(0,E.__)(this._columns,function(Ue){Ue!==e&&this.sortOrder&&((0,m.O9)(this.groupIndex)||delete this.sortOrder,delete this.sortIndex)}),Il(t)?ke.sortOrder!==t&&(n.sortOrder=t):"none"===t?ke.sortOrder&&(n.sortIndex=void 0,n.sortOrder=void 0):function(Ue){if("ctrl"===t){if(!("sortOrder"in Ue)||!("sortIndex"in Ue))return!1;n.sortOrder=void 0,n.sortIndex=void 0}else n.sortOrder=(0,m.O9)(Ue.groupIndex)||(0,m.O9)(Ue.sortIndex)?"desc"===Ue.sortOrder?"asc":"desc":"asc"}(ke)),this.columnOption(ke.index,n)}getSortDataSourceParameters(e){var t=[],n=[];return(0,E.__)(this._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,m.O9)(this.sortIndex)&&!(0,m.O9)(this.groupIndex)&&(t[this.sortIndex]=this)}),(0,E.__)(t,function(){if(Il(this&&this.sortOrder)){var P={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(P.compare=this.sortingMethod.bind(this)),n.push(P)}}),n.length>0?n:null}getGroupDataSourceParameters(e){var t=[];return(0,E.__)(this.getGroupColumns(),function(){var n=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue;if(n){var p={selector:n,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(p.compare=this.sortingMethod.bind(this)),t.push(p)}}),t.length>0?t:null}refresh(e){var t=[];return(0,E.__)(this._columns,function(){var{lookup:n}=this;if(n&&!this.calculateDisplayValue){if(e&&n.valueMap)return;n.update&&t.push(n.update())}}),xe.z7.apply(j.A,t).done(Hs.bind(null,this))}_updateColumnOptions(e,t){var n,p,P,J,fe=this._reinitAfterLookupChanges&&(null===(n=this._previousColumns)||void 0===n?void 0:n[t]);e.selector=null!==(p=e.selector)&&void 0!==p?p:Ze=>e.calculateCellValue(Ze),e.selector.columnIndex=t,e.selector.originalCallback=fe&&null!==(J=null===(P=this._previousColumns[t].selector)||void 0===P?void 0:P.originalCallback)&&void 0!==J?J:e.selector,(0,E.__)(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],(Ze,Ft)=>{var vi=e[Ft];if((0,m.Tn)(vi))if(vi.originalCallback)e[Ft].context.column=e;else{var Li={column:e};e[Ft]=function(tn){return vi.call(Li.column,tn)},e[Ft].originalCallback=vi,e[Ft].columnIndex=t,e[Ft].context=Li}}),(0,m.Kg)(e.calculateDisplayValue)&&(e.displayField=e.calculateDisplayValue,e.calculateDisplayValue=(0,aa.Hz)(e.displayField)),e.calculateDisplayValue&&(e.displayValueMap=e.displayValueMap||{}),Pa(e,e.dataType);var{lookup:ke}=e;ke&&Pa(ke,ke.dataType);var Ue=ke?ke.dataType:e.dataType;Ue&&(e.alignment=e.alignment||function(V,e){switch(V){case"number":return"right";case"boolean":return"center";default:return(0,ge.n)(e)}}(Ue,this.option("rtlEnabled")),e.format=e.format||Ui.A.getFormatByDataType(Ue),e.customizeText=e.customizeText||Ba(Ue),e.defaultFilterOperations=e.defaultFilterOperations||!ke&&Wl[Ue]||[],(0,m.O9)(e.filterOperations)||Ko(e),e.defaultFilterOperation=e.filterOperations&&e.filterOperations[0]||"=",e.showEditorAlways=(0,m.O9)(e.showEditorAlways)?e.showEditorAlways:"boolean"===Ue&&!e.cellTemplate&&!e.lookup)}updateColumnDataTypes(e){var t=this,n=t.option("dateSerializationFormat"),p=t._getFirstItems(e),P=!1;return(0,E.__)(t._columns,(J,fe)=>{var ke,Ue,Ze,Ft,vi,{lookup:Li}=fe;if(Ui.A.isDateType(fe.dataType)&&void 0===fe.serializationFormat&&(fe.serializationFormat=n),Li&&Ui.A.isDateType(Li.dataType)&&void 0===fe.serializationFormat&&(Li.serializationFormat=n),fe.calculateCellValue&&p.length){if(!fe.dataType||Li&&!Li.dataType){for(ke=0;ke<p.length;ke++)Ue=fe.calculateCellValue(p[ke]),fe.dataType||(vi=tr(Ue),(Ze=Ze||vi)&&vi&&Ze!==vi&&(Ze="string")),Li&&!Li.dataType&&(vi=tr(Ui.A.getDisplayValue(fe,Ue,p[ke])),(Ft=Ft||vi)&&vi&&Ft!==vi&&(Ft="string"));(Ze||Ft)&&(Ze&&(fe.dataType=Ze),Li&&Ft&&(Li.dataType=Ft),P=!0)}if(void 0===fe.serializationFormat||Li&&void 0===Li.serializationFormat)for(ke=0;ke<p.length;ke++)Ue=fe.calculateCellValue(p[ke],!0),void 0===fe.serializationFormat&&(fe.serializationFormat=xr(fe.dataType,Ue)),Li&&void 0===Li.serializationFormat&&(Li.serializationFormat=xr(Li.dataType,Li.calculateCellValue(Ue,!0)))}t._updateColumnOptions(fe,J)}),P}_customizeColumns(e){var t=this.option("customizeColumns");t&&(e.some(p=>(0,m.Gv)(p.ownerBand))&&yl(this),t(e),hl(this,Yl(this,e)))}updateColumns(e,t,n){if(t||this.updateSortingGrouping(e),!e||e.isLoaded()){var p=e?e.sort()||[]:this.getSortDataSourceParameters(),P=e?e.group()||[]:this.getGroupDataSourceParameters(),J=e?.lastLoadOptions().filter;n||this._customizeColumns(this._columns),yl(this);var fe=this._columns;return(0,xe.z7)(this.refresh(!0)).always(()=>{this._columns===fe&&(this._updateChanges(e,{sorting:p,grouping:P,filtering:J}),Zl(this))})}}_updateChanges(e,t){e&&(this.updateColumnDataTypes(e),this._dataSourceApplied=!0),Ui.A.equalSortParameters(t.sorting,this.getSortDataSourceParameters())||Os(this,"sorting"),Ui.A.equalSortParameters(t.grouping,this.getGroupDataSourceParameters())||Os(this,"grouping"),this._dataController&&!Ui.A.equalFilterParameters(t.filtering,this._dataController.getCombinedFilter())&&Os(this,"filtering"),Os(this,"columns")}updateSortingGrouping(e,t){var p,P,n=this,J=function(vi,Li,tn){(0,E.__)(vi,(On,Qn)=>{if(delete Qn[tn],Li)for(var zr=0;zr<Li.length;zr++){var{selector:la}=Li[zr],{isExpanded:qo}=Li[zr];if(la===Qn.dataField||la===Qn.name||la===Qn.selector||la===Qn.calculateCellValue||la===Qn.calculateGroupValue||la===Qn.calculateDisplayValue){Qn.sortOrder=t?"sortOrder"in Qn?Qn.sortOrder:Li[zr].desc?"desc":"asc":Qn.sortOrder||(Li[zr].desc?"desc":"asc"),void 0!==qo&&(Qn.autoExpandGroup=qo),Qn[tn]=zr;break}}})};if(e){p=Ui.A.normalizeSortingInfo(e.sort());var fe=Ui.A.normalizeSortingInfo(e.group()),ke=n.getGroupDataSourceParameters(),Ue=n.getSortDataSourceParameters(),Ze=!Ui.A.equalSortParameters(fe,ke,!0),Ft=!Ze&&!Ui.A.equalSortParameters(fe,ke);n._columns.length||((0,E.__)(fe,(vi,Li)=>{n._columns.push(Li.selector)}),(0,E.__)(p,(vi,Li)=>{(0,m.Tn)(Li.selector)||n._columns.push(Li.selector)}),hl(n,Yl(n,n._columns))),(t||!ke&&!n._hasUserState)&&(Ze||Ft)&&(J(n._columns,fe,"groupIndex"),t&&(Ze&&Os(n,"grouping"),Ft&&Os(n,"groupExpanding"),P=!0)),(t||!Ue&&!n._hasUserState)&&!Ui.A.equalSortParameters(p,Ue)&&(J(n._columns,p,"sortIndex"),t&&(Os(n,"sorting"),P=!0)),P&&Zl(n)}}updateFilter(e,t,n,p){if(!Array.isArray(e))return e;if(n=void 0!==(e=(0,o.X)([],e)).columnIndex?e.columnIndex:n,p=void 0!==e.filterValue?e.filterValue:p,(0,m.Kg)(e[0])&&"!"!==e[0]){var P=this.columnOption(e[0]);t?(0,ha.A)().forceIsoDateParsing&&P&&P.serializeValue&&e.length>1&&(e[e.length-1]=P.serializeValue(e[e.length-1],"filter")):P&&P.selector&&(e[0]=P.selector,e[0].columnIndex=P.index)}else(0,m.Tn)(e[0])&&(e[0].columnIndex=n,e[0].filterValue=p,e[0].selectedFilterOperation=e.selectedFilterOperation);for(var J=0;J<e.length;J++)e[J]=this.updateFilter(e[J],t,n,p);return e}columnCount(){return this._columns?this._columns.length:0}columnOption(e,t,n,p){var P=this,J=P._columns.concat(P._commandColumns),fe=oi(J,e);if(fe){if(1===arguments.length)return(0,o.X)({},fe);if((0,m.Kg)(t)){if(2===arguments.length)return oc(P,fe,t);oc(P,fe,t,n,p)}else(0,m.Gv)(t)&&(0,E.__)(t,(ke,Ue)=>{oc(P,fe,ke,Ue,p)});Zl(P)}}clearSorting(){var e=this.columnCount();this.beginUpdate();for(var t=0;t<e;t++)this.columnOption(t,"sortOrder",void 0),delete oi(this._columns,t).sortOrder;this.endUpdate()}clearGrouping(){var e=this.columnCount();this.beginUpdate();for(var t=0;t<e;t++)this.columnOption(t,"groupIndex",void 0);this.endUpdate()}getVisibleIndex(e,t){for(var n=this.getVisibleColumns(t),p=n.length-1;p>=0;p--)if(n[p].index===e)return p;return-1}getVisibleIndexByColumn(e,t){var n=this.getVisibleColumns(t),p=n.filter(P=>P.index===e.index&&P.command===e.command)[0];return n.indexOf(p)}getVisibleColumnIndex(e,t){var n=this.columnOption(e,"index");return this.getVisibleIndex(n,t)}addColumn(e){var t=ws(this,e),n=this._columns.length;this._columns.push(t),t.isBand&&(this._columns=Yl(this,this._columns),t=this._columns[n]),t.added=e,yl(this,t),this.updateColumns(this._dataSource),this._checkColumns()}deleteColumn(e){var V,t=this.columnOption(e);if(t&&t.index>=0){if((V=this._columns).forEach(e=>{(0,m.O9)(e.ownerBand)&&(e.ownerBand=V[e.ownerBand])}),this._columns.splice(t.index,1),t.isBand){var n=this.getChildrenByBandColumn(t.index).map(p=>p.index);this._columns=this._columns.filter(p=>n.indexOf(p.index)<0)}yl(this),this.updateColumns(this._dataSource)}}addCommandColumn(e){var t=this._commandColumns.filter(n=>n.command===e.command)[0];t||this._commandColumns.push(t=e)}getUserState(){var n,e=this._columns,t=[];function p(P,J){void 0!==e[n][J]&&(t[n][J]=e[n][J])}for(n=0;n<e.length;n++)t[n]={},(0,E.__)(Jl,p);return t}setName(e){e.name=e.name||e.dataField||e.type}setUserState(e){var t=this._dataSource,n=this.option("stateStoring.ignoreColumnOptionNames");if(e?.forEach(this.setName),!n){n=[];var p=this.getCommonSettings();this.option("columnChooser.enabled")||n.push("visible"),"none"===this.option("sorting.mode")&&n.push("sortIndex","sortOrder"),p.allowGrouping||n.push("groupIndex"),p.allowFixing||n.push("fixed","fixedPosition"),p.allowResizing||n.push("width","visibleWidth");var P=!this.option("filterPanel.visible");!this.option("filterRow.visible")&&P&&n.push("filterValue","selectedFilterOperation"),!this.option("headerFilter.visible")&&P&&n.push("filterValues","filterType")}this._columnsUserState=e,this._ignoreColumnOptionNames=n,this._hasUserState=!!e,Os(this,"filtering"),this.init(!0),t&&(t.sort(this.getSortDataSourceParameters()),t.group(this.getGroupDataSourceParameters()))}_checkColumns(){var e={},t=!1,n=[];this._columns.forEach(p=>{var P,{name:J}=p,fe=null===(P=p.columns)||void 0===P?void 0:P.length,ke=p.allowEditing&&(p.dataField||p.setCellValue)&&!fe;J?(e[J]&&n.push('"'.concat(J,'"')),e[J]=!0):ke&&(t=!0)}),n.length&&Et.A.log("E1059",n.join(", ")),t&&Et.A.log("E1060")}_createCalculatedColumnOptions(e,t){var n={},{dataField:p}=e;if((Array.isArray(e.columns)&&e.columns.length||e.isBand)&&(n.isBand=!0,p=null),p){if((0,m.Kg)(p)){var P=(0,aa.Hz)(p);n={caption:(0,Fa.Bc)(p),calculateCellValue(J,fe){var ke=P(J);return this.deserializeValue&&!fe?this.deserializeValue(ke):ke},setCellValue:ru,parseValue(J){var fe,ke;return"number"===this.dataType?(0,m.Kg)(J)&&this.format?fe=function(V,e){var t=Ms.A.parse(V);if((0,m.kf)(t)){var n=Ms.A.format(t,e),p=Ms.A.format(t,"decimal");if(n===V||p===V)return t}}(J.trim(),this.format):(0,m.O9)(J)&&(0,m.kf)(J)&&(fe=Number(J)):"boolean"===this.dataType?J===this.trueText?fe=!0:J===this.falseText&&(fe=!1):Ui.A.isDateType(this.dataType)?(ke=$o.A.parse(J,this.format))&&(fe=ke):fe=J,fe}}}n.allowFiltering=!0}else n.allowFiltering=!!e.calculateFilterExpression;return n.calculateFilterExpression=function(){return mo.A.defaultCalculateFilterExpression.apply(this,arguments)},n.defaultFilterOperation="=",n.createFilterExpression=function(J,fe){var ke;return this.calculateFilterExpression&&(ke=this.calculateFilterExpression.apply(this,arguments)),(0,m.Tn)(ke)&&(ke=[ke,"=",!0]),ke&&(ke.columnIndex=this.index,ke.filterValue=J,ke.selectedFilterOperation=fe),ke},(!p||!(0,m.Kg)(p))&&(0,o.X)(!0,n,{allowSorting:!1,allowGrouping:!1,calculateCellValue:()=>null}),t&&(n.allowFixing=!1),e.dataType&&(n.userDataType=e.dataType),e.selectedFilterOperation&&!("defaultSelectedFilterOperation"in n)&&(n.defaultSelectedFilterOperation=e.selectedFilterOperation),e.lookup&&(n.lookup={calculateCellValue(J,fe){return this.valueExpr&&(J=this.valueMap&&this.valueMap[J]),this.deserializeValue&&!fe?this.deserializeValue(J):J},updateValueMap(){if(this.valueMap={},this.items)for(var J=(0,aa.Hz)(this.valueExpr),fe=(0,aa.Hz)(this.displayExpr),ke=0;ke<this.items.length;ke++){var Ue=this.items[ke],Ze=fe(Ue);this.valueMap[J(Ue)]=Ze,this.dataType=this.dataType||tr(Ze)}},update(){var J=this,{dataSource:fe}=J;if(fe)if((0,m.Tn)(fe)&&!_o.A.isWrapped(fe)&&(fe=fe({})),(0,m.Qd)(fe)||fe instanceof Yo.A||Array.isArray(fe)){if(J.valueExpr){var ke=(0,ia.ho)(fe);return ke.paginate=!1,(fe=new Va.q(ke)).load().done(Ue=>{J.items=Ue,J.updateValueMap&&J.updateValueMap()})}}else Et.A.log("E1016");else J.updateValueMap&&J.updateValueMap()}}),n.resizedCallbacks=(0,Qe.A)(),e.resized&&n.resizedCallbacks.add(e.resized.bind(e)),(0,E.__)(n,J=>{if((0,m.Tn)(n[J])&&0!==J.indexOf("default")){var fe="default".concat(J.charAt(0).toUpperCase()).concat(J.substr(1));n[fe]=n[J]}}),n}getRowCount(){return this._rowCount=this._rowCount||function(V){var e=1,t=V.getBandColumnsCache(),{columnParentByIndex:n}=t;return V._columns.forEach(p=>{var P=Bt(p.index,n),J=P.filter(fe=>!fe.visible);p.visible&&!J.length&&(e=Math.max(e,P.length+1))}),e}(this),this._rowCount}getRowIndex(e,t){var n=this._columns[e],p=this.getBandColumnsCache();return n&&(t||n.visible&&!n.command&&!(0,m.O9)(n.groupIndex))?Bt(e,p.columnParentByIndex).length:0}getChildrenByBandColumn(e,t){var n=this.getBandColumnsCache(),p=Si(e,n.columnChildrenByIndex,!t);return t?p.filter(P=>P.visible&&!P.command).sort((P,J)=>P.visibleIndex-J.visibleIndex):p}isParentBandColumn(e,t){var n=!1,p=this._columns[e],P=this.getBandColumnsCache(),J=p&&Bt(e,P.columnParentByIndex);return J&&(0,E.__)(J,(fe,ke)=>{if(ke.index===t)return n=!0,!1}),n}isParentColumnVisible(e){var t=!0,n=this.getBandColumnsCache(),p=e>=0&&Bt(e,n.columnParentByIndex);return p&&(0,E.__)(p,(P,J)=>t=t&&J.visible),t}getColumnId(e){return e.command&&e.type===us?Jd(this,e)?"type:".concat(e.type):"command:".concat(e.command):e.index}getCustomizeTextByDataType(e){return Ba(e)}getHeaderContentAlignment(e){return this.option("rtlEnabled")?"left"===e?"right":"left":e}}}};En.registerModule("columns",{defaultOptions:()=>(0,o.X)(!0,{},Un.defaultOptions(),{commonColumnSettings:{allowExporting:!0}}),controllers:Un.controllers});var vo=D(94014),No=D(2097),ed=D(6305),xd=D(66208),Ls="_dataSourceOptions",Xc="_dataSourceChangedHandler",Cs="_dataSourceLoadErrorHandler",ou="_dataSourceLoadingChangedHandler",uh="_dataSourceFromUrlLoadMode",Ve="_getSpecificDataSourceOption",qe="_normalizeDataSource",Yt=V=>class extends V{postCtor(){this.on("disposing",()=>{this._disposeDataSource()})}_refreshDataSource(){this._initDataSource(),this._loadDataSource()}_initDataSource(){var t,n,e=Ve in this?this[Ve]():this.option("dataSource");this._disposeDataSource(),e&&(e instanceof Va.q?(this._isSharedDataSource=!0,this._dataSource=e):(t=Ls in this?this[Ls]():{},n=this._dataSourceType?this._dataSourceType():Va.q,e=(0,ia.ho)(e,{fromUrlLoadMode:uh in this&&this[uh]()}),this._dataSource=new n((0,o.X)(!0,{},t,e))),qe in this&&(this._dataSource=this[qe](this._dataSource)),this._addDataSourceHandlers(),this._initDataController())}_initDataController(){var e,t=null===(e=this.option)||void 0===e?void 0:e.call(this,"_dataController");this._dataController=t||new xd.A(this._dataSource)}_addDataSourceHandlers(){Xc in this&&this._addDataSourceChangeHandler(),Cs in this&&this._addDataSourceLoadErrorHandler(),ou in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()}_addReadyWatcher(){this.readyWatcher=function(e){this._ready&&this._ready(!e)}.bind(this),this._dataSource.on("loadingChanged",this.readyWatcher)}_addDataSourceChangeHandler(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(t){this[Xc](e.items(),t)}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)}_addDataSourceLoadErrorHandler(){this._proxiedDataSourceLoadErrorHandler=this[Cs].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)}_addDataSourceLoadingChangedHandler(){this._proxiedDataSourceLoadingChangedHandler=this[ou].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)}_loadDataSource(){var e=this._dataSource;e&&(e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load())}_loadSingle(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)}_isLastPage(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize}_isDataSourceLoading(){return this._dataSource&&this._dataSource.isLoading()}_disposeDataSource(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler),this._dataSource._eventsStrategy&&this._dataSource._eventsStrategy.off("loadingChanged",this.readyWatcher)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)}getDataSource(){return this._dataSource||null}},Fi=function(V,e,t){var n=V._dataSource;if(n){if(void 0!==t){if(V._getPagingOptionValue(e)!==t){"pageSize"===e&&n.pageIndex(0),n[e](t),V._skipProcessingPagingChange=!0,V.option("paging.".concat(e),t),V._skipProcessingPagingChange=!1;var P=n.pageIndex();return V._isPaging="pageIndex"===e,n["pageIndex"===e?"load":"reload"]().done(()=>{V._isPaging=!1,V.pageChanged.fire(P)})}return(0,xe.cY)().resolve().promise()}return n[e]()}return 0};class _n extends(Yt(cn.Controller)){init(){this._items=[],this._cachedProcessedItems=null,this._columnsController=this.getController("columns"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._editingController=this.getController("editing"),this._editorFactoryController=this.getController("editorFactory"),this._errorHandlingController=this.getController("errorHandling"),this._filterSyncController=this.getController("filterSync"),this._applyFilterController=this.getController("applyFilter"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._focusController=this.getController("focus"),this._headerFilterController=this.getController("headerFilter"),this._selectionController=this.getController("selection"),this._stateStoringController=this.getController("stateStoring"),this._validatingController=this.getController("validating"),this._adaptiveExpandedKey=void 0,this._isPaging=!1,this._currentOperationTypes=null,this._dataChangedHandler=e=>{this._currentOperationTypes=this._dataSource.operationTypes(),this._handleDataChanged(e),this._currentOperationTypes=null},this._columnsChangedHandler=this._handleColumnsChanged.bind(this),this._loadingChangedHandler=this._handleLoadingChanged.bind(this),this._loadErrorHandler=this._handleLoadError.bind(this),this._customizeStoreLoadOptionsHandler=this._handleCustomizeStoreLoadOptions.bind(this),this._changingHandler=this._handleChanging.bind(this),this._dataPushedHandler=this._handleDataPushed.bind(this),this._columnsController.columnsChanged.add(this._columnsChangedHandler),this._isLoading=!1,this._isCustomLoading=!1,this._repaintChangesOnly=void 0,this._changes=[],this.createAction("onDataErrorOccurred"),this.dataErrorOccurred.add(e=>this.executeAction("onDataErrorOccurred",{error:e})),this._refreshDataSource(),this.postCtor()}_getPagingOptionValue(e){return this._dataSource[e]()}callbackNames(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged","pushed"]}callbackFlags(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}}publicMethods(){return["_disposeDataSource","beginCustomLoading","byKey","clearFilter","endCustomLoading","filter","getCombinedFilter","getDataByKeys","getDataSource","getKeyByRowIndex","getRowIndexByKey","getVisibleRows","keyOf","pageCount","pageIndex","pageSize","refresh","repaintRows","totalCount"]}reset(){this._columnsController.reset(),this._items=[],this._refreshDataSource()}_handleDataSourceChange(e){if(e.value===e.previousValue||this.option("columns")&&Array.isArray(e.value)&&Array.isArray(e.previousValue)){if(e.value!==e.previousValue){var n=this.store();n&&(n._array=e.value)}return this.needToRefreshOnDataSourceChange(e)&&this.refresh(this.option("repaintChangesOnly")),!0}return!1}needToRefreshOnDataSourceChange(e){return!0}optionChanged(e){var n,p,t=this;function P(){e.handled=!0}if("dataSource"===e.name&&e.name===e.fullName&&this._handleDataSourceChange(e))P();else switch(e.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":P();break;case"remoteOperations":case"keyExpr":case"dataSource":case"scrolling":P(),t.reset();break;case"paging":if((n=t.dataSource())&&(p=t._setPagingOptions(n))){var J=n.pageIndex();this._isPaging=p.isPageIndexChanged,n.load().done(()=>{this._isPaging=!1,t.pageChanged.fire(J)})}P();break;case"rtlEnabled":t.reset();break;case"columns":(n=t.dataSource())&&n.isLoading()&&e.name===e.fullName&&(this._useSortingGroupingFromColumns=!0,n.load());break;default:super.optionChanged(e)}}isReady(){return!this._isLoading}getDataSource(){return this._dataSource&&this._dataSource._dataSource}getCombinedFilter(e){return this.combinedFilter(void 0,e)}combinedFilter(e,t){if(!this._dataSource)return e;var n=e??this._dataSource.filter();if(this._columnsController.isDataSourceApplied()||this._columnsController.isAllDataTypesDefined()){var P=this._calculateAdditionalFilter();n=P?Ui.A.combineFilters([P,n]):n}var J=this._dataSource.remoteOperations().filtering||t;return this._columnsController.updateFilter(n,J)}waitReady(){return this._updateLockCount?(this._readyDeferred=new xe.cY,this._readyDeferred):(0,xe.z7)()}_endUpdateCore(){var e=this._changes;if(e.length){this._changes=[];var t=e.every(n=>n.repaintChangesOnly);this.updateItems(1===e.length?e[0]:{repaintChangesOnly:t})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)}_handleCustomizeStoreLoadOptions(e){var t,n=this._columnsController,p=this._dataSource,{storeLoadOptions:P}=e;e.isCustomLoading&&!P.isLoadingAll||(P.filter=this.combinedFilter(P.filter),1===(null===(t=P.filter)||void 0===t?void 0:t.length)&&"!"===P.filter[0]&&(e.data=[],e.extra=e.extra||{},e.extra.totalCount=0),n.isDataSourceApplied()||n.updateColumnDataTypes(p),this._columnsUpdating=!0,n.updateSortingGrouping(p,!this._useSortingGroupingFromColumns),this._columnsUpdating=!1,P.sort=n.getSortDataSourceParameters(),P.group=n.getGroupDataSourceParameters(),p.sort(P.sort),p.group(P.group),P.sort=n.getSortDataSourceParameters(!p.remoteOperations().sorting),e.group=n.getGroupDataSourceParameters(!p.remoteOperations().grouping))}_handleColumnsChanged(e){var P,J,fe,t=this,{changeTypes:n}=e,{optionNames:p}=e;if(n.sorting||n.grouping)t._dataSource&&!t._columnsUpdating&&(t._dataSource.group(t._columnsController.getGroupDataSourceParameters()),t._dataSource.sort(t._columnsController.getSortDataSourceParameters()),t.reload());else if(n.columns&&(J=t._columnsController.columnOption(e.columnIndex,"filterValues"),(p.filterValues||p.filterType&&Array.isArray(J)||p.filterValue||p.selectedFilterOperation||p.allowFiltering)&&(P=t._columnsController.columnOption(e.columnIndex,"filterValue"),(Array.isArray(J)||void 0===e.columnIndex||(0,m.O9)(P)||!p.selectedFilterOperation||p.filterValue)&&(t._applyFilter(),fe=!0)),!t._needApplyFilter&&!Ui.A.checkChanges(p,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])&&t._columnsController.columnsChanged.add(function Ue(Ze){var Ft;t._columnsController.columnsChanged.remove(Ue),t.updateItems({repaintChangesOnly:!1,virtualColumnsScrolling:null===(Ft=Ze?.changeTypes)||void 0===Ft?void 0:Ft.virtualColumnsScrolling})}),(0,m.O9)(p.visible))){var ke=t._columnsController.columnOption(e.columnIndex);ke&&((0,m.O9)(ke.filterValue)||(0,m.O9)(ke.filterValues))&&(t._applyFilter(),fe=!0)}!fe&&n.filtering&&!this._needApplyFilter&&t.reload()}_handleDataChanged(e){var t=this,n=t._dataSource,p=t._columnsController,P=!1;this._useSortingGroupingFromColumns=!1,n&&!t._isDataSourceApplying&&(t._isDataSourceApplying=!0,(0,xe.z7)(t._columnsController.applyDataSource(n)).done(()=>{t._isLoading&&t._handleLoadingChanged(!1),P&&e&&e.isDelayed&&(e.isDelayed=!1),t._isDataSourceApplying=!1;var fe,J=t._needApplyFilter;t._needApplyFilter=!1,J&&!t._isAllDataTypesDefined&&(fe=t._calculateAdditionalFilter())&&fe.length?(Et.A.log("W1005",t.component.NAME),t._applyFilter()):t.updateItems(e,!0)}).fail(()=>{t._isDataSourceApplying=!1}),t._isDataSourceApplying&&(P=!0,t._handleLoadingChanged(!0)),t._needApplyFilter=!t._columnsController.isDataSourceApplied(),t._isAllDataTypesDefined=p.isAllDataTypesDefined())}_handleLoadingChanged(e){this._isLoading=e,this._fireLoadingChanged()}_handleLoadError(e){this.dataErrorOccurred.fire(e)}_handleDataPushed(e){this.pushed.fire(e)}fireError(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.dataErrorOccurred.fire(Et.A.Error.apply(Et.A,t))}_setPagingOptions(e){var t=this.option("paging.pageIndex"),n=this.option("paging.pageSize"),p=this.option("paging.enabled"),P=this.option("scrolling.mode"),J="infinite"===P,ke=p||"virtual"===P||J,Ue=!1,Ze=!1,Ft=!1;return e.requireTotalCount(!J),void 0!==p&&e.paginate()!==ke&&(e.paginate(ke),Ue=!0),void 0!==n&&e.pageSize()!==n&&(e.pageSize(n),Ze=!0),void 0!==t&&e.pageIndex()!==t&&(e.pageIndex(t),Ft=!0),!!(Ue||Ze||Ft)&&{isPaginateChanged:Ue,isPageSizeChanged:Ze,isPageIndexChanged:Ft}}_getSpecificDataSourceOption(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e}_initDataSource(){var e=this._dataSource;super._initDataSource();var t=this._dataSource;if(this._useSortingGroupingFromColumns=!0,this._cachedProcessedItems=null,t){var n=this._setPagingOptions(t);this._isPaging=n?.isPageIndexChanged,this.setDataSource(t)}else e&&this.updateItems()}_loadDataSource(){var e=this,t=e._dataSource,n=new xe.cY;return(0,xe.z7)(this._columnsController.refresh(!0)).always(()=>{t?t.load().done(function(){e._isPaging=!1,n.resolve.apply(n,arguments)}).fail(n.reject):n.resolve()}),n.promise()}_beforeProcessItems(e){return e.slice(0)}getRowIndexDelta(){return 0}getDataIndex(e){var t=this._items,n="append"===e.changeType&&t.length>0?t[t.length-1]:null;return(0,m.O9)(n?.dataIndex)?n.dataIndex+1:0}_processItems(e,t){var n=this,p=n.getRowIndexDelta(),{changeType:P}=t,ke={visibleColumns:n._columnsController.getVisibleColumns(null,"loadingAll"===P),dataIndex:this.getDataIndex(t)},Ue=[];return(0,E.__)(e,(Ze,Ft)=>{(0,m.O9)(Ft)&&(ke.rowIndex=Ze-p,Ft=n._processItem(Ft,ke),Ue.push(Ft))}),Ue}_processItem(e,t){return e=this._generateDataItem(e,t),(e=this._processDataItem(e,t)).dataIndex=t.dataIndex++,e}_generateDataItem(e,t){return{rowType:"data",data:e,key:this.keyOf(e)}}_processDataItem(e,t){return e.values=this.generateDataValues(e.data,t.visibleColumns),e}generateDataValues(e,t,n){for(var P,p=[],J=0;J<t.length;J++){var fe=t[J];P=n?void 0:null,fe.command||(fe.calculateCellValue?P=fe.calculateCellValue(e):fe.dataField&&(P=e[fe.dataField])),p.push(P)}return p}_applyChange(e){"update"===e.changeType?this._applyChangeUpdate(e):this.items().length&&e.repaintChangesOnly&&"refresh"===e.changeType?this._applyChangesOnly(e):"refresh"===e.changeType&&this._applyChangeFull(e)}_applyChangeFull(e){this._items=e.items.slice(0)}_getRowIndices(e){var t=e.rowIndices.slice(0),n=this.getRowIndexDelta();t.sort((J,fe)=>J-fe);for(var p=0;p<t.length;p++){var P=t[p];e.allowInvisibleRowIndices&&(P+=n),P<0&&(t.splice(p,1),p--)}return t}_applyChangeUpdate(e){var Ue,t=this,{items:n}=e,p=t._getRowIndices(e),P=t.getRowIndexDelta(),J=t.option("repaintChangesOnly"),fe=-1,ke=0;e.items=[],e.rowIndices=[],e.columnIndices=[],e.changeTypes=[];var Ze=function(Ft,vi,Li){var tn=Ft&&vi&&(0,s.RL)(Ft.key,vi.key);return tn&&Li&&(tn=Ft.rowType===vi.rowType&&("detail"!==vi.rowType||Ft.isEditing===vi.isEditing)),tn};(0,E.__)(p,(Ft,vi)=>{var Li;if(fe!==(vi+=ke+P)){fe=vi;var tn=t._items[vi],On=t._items[vi+1],Qn=n[vi],zr=n[vi+1],la=Ze(tn,On)||Ze(Qn,zr);if(Qn&&(Qn.rowIndex=vi,e.items.push(Qn)),tn&&Qn&&Ze(tn,Qn,la))Ue="update",t._items[vi]=Qn,tn.visible!==Qn.visible?e.items.splice(-1,1,{visible:Qn.visible}):J&&!e.isFullUpdate&&(Li=t._partialUpdateRow(tn,Qn,vi-P));else if(Qn&&!tn||zr&&Ze(tn,zr,la))Ue="insert",t._items.splice(vi,0,Qn),ke++;else if(tn&&!Qn||On&&Ze(Qn,On,la))Ue="remove",t._items.splice(vi,1),ke--,fe=-1;else{if(!Qn)return;Ue="update",t._items[vi]=Qn}e.rowIndices.push(vi-P),e.changeTypes.push(Ue),e.columnIndices.push(Li)}})}_isCellChanged(e,t,n,p,P){if(JSON.stringify(e.values[p])!==JSON.stringify(t.values[p]))return!0;function J(fe,ke){return!!fe.modifiedValues&&void 0!==fe.modifiedValues[ke]}return J(e,p)!==J(t,p)}_getChangedColumnIndices(e,t,n,p){var P;if(e.rowType===t.rowType){if("group"!==t.rowType&&"groupFooter"!==t.rowType&&(P=[],"detail"!==t.rowType))for(var J=0;J<e.values.length;J++)this._isCellChanged(e,t,n,J,p)&&P.push(J);"group"===t.rowType&&e.cells&&t.isExpanded===e.isExpanded&&t.data.isContinuation===e.data.isContinuation&&t.data.isContinuationOnNextPage===e.data.isContinuationOnNextPage&&(P=e.cells.map((ke,Ue)=>{var Ze;return"groupExpand"!==(null===(Ze=ke.column)||void 0===Ze?void 0:Ze.type)?Ue:-1}).filter(ke=>ke>=0))}return P}_partialUpdateRow(e,t,n,p){var P=this._getChangedColumnIndices(e,t,n,p);return P?.length&&this.option("dataRowTemplate")&&(P=void 0),P&&(e.cells&&e.cells.forEach((J,fe)=>{!(P.indexOf(fe)>=0)&&J&&J.update&&J.update(t)}),t.update=e.update,t.watch=e.watch,t.cells=e.cells,p&&(t.oldValues=e.values),e.update&&e.update(t)),P}_isItemEquals(e,t){var n,p,P,J;if(JSON.stringify(e.values)!==JSON.stringify(t.values)||["modified","isNewRow","removed","isEditing"].some(Ze=>e[Ze]!==t[Ze]))return!1;if("group"===e.rowType||"groupFooter"===e.rowType){var fe=e.isExpanded===t.isExpanded,ke=JSON.stringify(e.summaryCells)===JSON.stringify(t.summaryCells),Ue=(null===(n=e.data)||void 0===n?void 0:n.isContinuation)===(null===(p=t.data)||void 0===p?void 0:p.isContinuation)&&(null===(P=e.data)||void 0===P?void 0:P.isContinuationOnNextPage)===(null===(J=t.data)||void 0===J?void 0:J.isContinuationOnNextPage);if(!fe||!ke||!Ue)return!1}return!0}_applyChangesOnly(e){var t,n=[],p=[],P=[],J=[],fe={},ke=null===(t=e?.isLiveUpdate)||void 0===t||t;function Ue(Li){if(Li)return"".concat(Li.rowType,",").concat(JSON.stringify(Li.key))}var Ze=this._items,Ft=Ze.slice();e.items.forEach((Li,tn)=>{var On=Ue(Li);fe[On]=tn,Li.rowIndex=tn});var vi=(0,vo.p)(Ft,e.items,Ue,(Li,tn)=>!!this._isItemEquals(Li,tn)&&(Li.cells&&(Li.update&&Li.update(tn),Li.cells.forEach(On=>{On&&On.update&&On.update(tn,!0)})),!0));vi?(vi.forEach(Li=>{switch(Li.type){case"update":var{index:tn}=Li,On=Li.data,{oldItem:Qn}=Li,zr=this._partialUpdateRow(Qn,On,tn,ke);n.push(tn),P.push("update"),J.push(On),Ze[tn]=On,p.push(zr);break;case"insert":n.push(Li.index),P.push("insert"),J.push(Li.data),p.push(void 0),Ze.splice(Li.index,0,Li.data);break;case"remove":n.push(Li.index),P.push("remove"),Ze.splice(Li.index,1),J.push(Li.oldItem),p.push(void 0)}}),e.repaintChangesOnly=!0,e.changeType="update",e.rowIndices=n,e.columnIndices=p,e.changeTypes=P,e.items=J,Ft.length&&(e.isLiveUpdate=!0),this._correctRowIndices(Li=>{var tn=this._rowIndexOffset||0,On=this.getRowIndexOffset(),zr=Ue(Ft[Li-tn]),la=fe[zr];return la>=0?la+On-Li:0})):this._applyChangeFull(e)}_correctRowIndices(e){}_afterProcessItems(e,t){return e}_updateItemsCore(e){var t,n=this._dataSource;if(e.changeType=e.changeType||"refresh",n){var P=this._cachedProcessedItems;e.useProcessedItemsCache&&P?t=P:(t=e.items||n.items(),t=this._beforeProcessItems(t),t=this._processItems(t,e),this._cachedProcessedItems=t),t=this._afterProcessItems(t,e),e.items=t;var J=this._items.length===t.length&&this._items;this._applyChange(e);var fe=this.getRowIndexDelta();(0,E.__)(this._items,(ke,Ue)=>{var Ze;Ue.rowIndex=ke-fe,J&&(Ue.cells=null!==(Ze=J[ke].cells)&&void 0!==Ze?Ze:[]);var Ft=t[ke];Ft&&(Ue.loadIndex=Ft.loadIndex)}),this._rowIndexOffset=this.getRowIndexOffset()}else this._items=[]}_handleChanging(e){var t=this.getVisibleRows();this.dataSource()&&e.changes.forEach(p=>{if("insert"===p.type&&p.index>=0){for(var P=0,J=0;J<p.index;J++){var fe=t[J];fe&&("data"===fe.rowType||"group"===fe.rowType)&&P++}p.index=P}})}updateItems(e,t){var n;if(e=e||{},void 0!==this._repaintChangesOnly)e.repaintChangesOnly=null!==(n=e.repaintChangesOnly)&&void 0!==n?n:this._repaintChangesOnly,e.needUpdateDimensions=e.needUpdateDimensions||this._needUpdateDimensions;else if(e.changes)e.repaintChangesOnly=this.option("repaintChangesOnly");else if(t){var p=this.dataSource().operationTypes();e.repaintChangesOnly=p&&!p.grouping&&!p.filtering&&this.option("repaintChangesOnly"),e.isDataChanged=!0,p&&(p.reload||p.paging||p.groupExpanding)&&(e.needUpdateDimensions=!0)}!this._updateLockCount||e.cancel?(this._updateItemsCore(e),!e.cancel&&this._fireChanged(e)):this._changes.push(e)}loadingOperationTypes(){var e=this.dataSource();return e&&e.loadingOperationTypes()||{}}_fireChanged(e){this._currentOperationTypes&&(e.operationTypes=this._currentOperationTypes,this._currentOperationTypes=null),(0,s.zE)(()=>{this.changed.fire(e)})}isLoading(){return this._isLoading||this._isCustomLoading}_fireLoadingChanged(){this.loadingChanged.fire(this.isLoading(),this._loadingText)}_calculateAdditionalFilter(){return null}_applyFilter(){var e=this._dataSource;return e?(e.pageIndex(0),this._isFilterApplying=!0,this.reload().done(()=>{this._isFilterApplying&&this.pageChanged.fire()})):(new xe.cY).resolve()}resetFilterApplying(){this._isFilterApplying=!1}filter(e){var t=this._dataSource,n=t&&t.filter();if(0===arguments.length)return n;e=arguments.length>1?Array.prototype.slice.call(arguments,0):e,!Ui.A.equalFilterParameters(n,e)&&(t&&t.filter(e),this._applyFilter())}clearFilter(e){var t=this._columnsController,n=function(p){for(var P=t.columnCount(),J=0;J<P;J++)t.columnOption(J,p,void 0)};if(this.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":this.filter(null);break;case"search":this.searchByText("");break;case"header":n("filterValues");break;case"row":n("filterValue")}else this.filter(null),this.searchByText(""),n("filterValue"),n("bufferedFilterValue"),n("filterValues");this.component.endUpdate()}_fireDataSourceChanged(){var e=this;e.changed.add(function t(){e.changed.remove(t),e.dataSourceChanged.fire()})}_getDataSourceAdapter(){}_createDataSourceAdapterCore(e,t){var p=this._getDataSourceAdapter().create(this.component);return p.init(e,t),p}isLocalStore(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.store())instanceof No.A}isCustomStore(e){return(e=e||this.store())instanceof ed.A}_createDataSourceAdapter(e){var t=this.option("remoteOperations"),n=e.store(),p={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return(0,m.Gv)(t)&&t.groupPaging&&(t=(0,o.X)({},p,t)),"auto"===t&&(t=this.isLocalStore(n)||this.isCustomStore(n)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===t&&(t=p),this._createDataSourceAdapterCore(e,t)}setDataSource(e){var t=this._dataSource;!e&&t&&(t.cancelAll(),t.changed.remove(this._dataChangedHandler),t.loadingChanged.remove(this._loadingChangedHandler),t.loadError.remove(this._loadErrorHandler),t.customizeStoreLoadOptions.remove(this._customizeStoreLoadOptionsHandler),t.changing.remove(this._changingHandler),t.pushed.remove(this._dataPushedHandler),t.dispose(this._isSharedDataSource)),e&&(e=this._createDataSourceAdapter(e)),this._dataSource=e,e&&(this._fireDataSourceChanged(),this._isLoading=!e.isLoaded(),this._needApplyFilter=!0,this._isAllDataTypesDefined=this._columnsController.isAllDataTypesDefined(),e.changed.add(this._dataChangedHandler),e.loadingChanged.add(this._loadingChangedHandler),e.loadError.add(this._loadErrorHandler),e.customizeStoreLoadOptions.add(this._customizeStoreLoadOptionsHandler),e.changing.add(this._changingHandler),e.pushed.add(this._dataPushedHandler))}items(e){return this._items}isEmpty(){return!this.items().length}pageCount(){return this._dataSource?this._dataSource.pageCount():1}dataSource(){return this._dataSource}store(){var e=this._dataSource;return e&&e.store()}loadAll(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this,p=new xe.cY,P=n._dataSource;if(P)if(e){var J={data:e,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:t?null:n.getCombinedFilter(),group:P.group(),sort:P.sort()}};P._handleDataLoaded(J),(0,xe.z7)(J.data).done(ke=>{var Ue;ke=n._beforeProcessItems(ke),p.resolve(n._processItems(ke,{changeType:"loadingAll"}),null===(Ue=J.extra)||void 0===Ue?void 0:Ue.summary)}).fail(p.reject)}else if(P.isLoading())p.reject();else{var fe=(0,o.X)({},P.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});P.load(fe).done((ke,Ue)=>{ke=n._beforeProcessItems(ke),ke=n._processItems(ke,{changeType:"loadingAll"}),p.resolve(ke,Ue&&Ue.summary)}).fail(p.reject)}else p.resolve([]);return p}getKeyByRowIndex(e,t){var n=this.items(t)[e];if(n)return n.key}getRowIndexByKey(e,t){return Ui.A.getIndexByKey(e,this.items(t))}keyOf(e){var t=this.store();if(t)return t.keyOf(e)}byKey(e){var p,t=this.store(),n=this.getRowIndexByKey(e);if(t)return n>=0&&(p=(new xe.cY).resolve(this.items()[n].data)),p||t.byKey(e)}key(){var e=this.store();if(e)return e.key()}getRowIndexOffset(e){return 0}getDataByKeys(e){var t=this,n=new xe.cY,p=[],P=[];return(0,E.__)(e,(J,fe)=>{p.push(t.byKey(fe).done(ke=>{P[J]=ke}))}),xe.z7.apply(j.A,p).always(()=>{n.resolve(P)}),n}pageIndex(e){return Fi(this,"pageIndex",e)}pageSize(e){return Fi(this,"pageSize",e)}beginCustomLoading(e){this._isCustomLoading=!0,this._loadingText=e||"",this._fireLoadingChanged()}endCustomLoading(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()}refresh(e){!0===e?e={reload:!0,changesOnly:!0}:e||(e={lookup:!0,selection:!0,reload:!0});var t=this,n=t.getDataSource(),{changesOnly:p}=e,P=new xe.cY,J=function(){t._repaintChangesOnly=!!p};return(0,xe.z7)(!e.lookup||t._columnsController.refresh()).always(()=>{e.load||e.reload?(n&&n.on("customizeLoadResult",J),(0,xe.z7)(t.reload(e.reload,p)).always(()=>{n&&n.off("customizeLoadResult",J),t._repaintChangesOnly=void 0}).done(P.resolve).fail(P.reject)):(t.updateItems({repaintChangesOnly:e.changesOnly}),P.resolve())}),P.promise()}getVisibleRows(){return this.items()}_disposeDataSource(){this._dataSource&&this._dataSource._eventsStrategy&&this._dataSource._eventsStrategy.off("loadingChanged",this.readyWatcher),this.setDataSource(null)}dispose(){this._disposeDataSource(),super.dispose()}repaintRows(e,t){((e=Array.isArray(e)?e:[e]).length>1||(0,m.O9)(e[0]))&&this.updateItems({changeType:"update",rowIndices:e,isFullUpdate:!t})}skipProcessingPagingChange(e){return this._skipProcessingPagingChange&&("paging.pageIndex"===e||"paging.pageSize"===e)}getUserState(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}}getCachedStoreData(){return this._dataSource&&this._dataSource.getCachedStoreData()}isLastPageLoaded(){return this.pageIndex()===this.pageCount()-1}load(){var e;return null===(e=this._dataSource)||void 0===e?void 0:e.load()}reload(e,t){var n;return null===(n=this._dataSource)||void 0===n?void 0:n.reload(e,t)}push(){var e;return null===(e=this._dataSource)||void 0===e?void 0:e.push(...arguments)}itemsCount(){var e;return this._dataSource?null===(e=this._dataSource)||void 0===e?void 0:e.itemsCount():0}totalItemsCount(){var e;return this._dataSource?null===(e=this._dataSource)||void 0===e?void 0:e.totalItemsCount():0}hasKnownLastPage(){var e;return!this._dataSource||(null===(e=this._dataSource)||void 0===e?void 0:e.hasKnownLastPage())}isLoaded(){var e;return!this._dataSource||(null===(e=this._dataSource)||void 0===e?void 0:e.isLoaded())}totalCount(){var e;return this._dataSource?null===(e=this._dataSource)||void 0===e?void 0:e.totalCount():0}hasLoadOperation(){var e,t,n=null!==(t=null===(e=this._dataSource)||void 0===e?void 0:e.operationTypes())&&void 0!==t?t:{};return Object.keys(n).some(p=>n[p])}}var dr={defaultOptions:()=>({loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}),controllers:{data:_n}},ea=D(69393),Wa=function V(e,t){if(e&&(e=e.slice(0),t))for(var n=0;n<e.length;n++)e[n]=(0,o.X)({key:e[n].key},e[n]),e[n].items=V(e[n].items,t-1);return e},Io=function(V,e,t){var n={reload:!0,fullReload:!0};return e&&((n={sorting:!Ui.A.equalSortParameters(V.sort,e.sort),grouping:!Ui.A.equalSortParameters(V.group,e.group,!0),groupExpanding:!Ui.A.equalSortParameters(V.group,e.group)||e.groupExpand,filtering:!Ui.A.equalFilterParameters(V.filter,e.filter),pageIndex:V.pageIndex!==e.pageIndex,skip:V.skip!==e.skip,take:V.take!==e.take,pageSize:V.pageSize!==e.pageSize,fullReload:t,reload:!1,paging:!1}).reload=t||n.sorting||n.grouping||n.filtering,n.paging=n.pageIndex||n.pageSize||n.take),n},ol=function(V,e){var t=Ui.A.normalizeSortingInfo(V.group||V.storeLoadOptions.group||V.loadOptions.group).length,n=[];if(td(n,V,t))return n;e&&kl(n,V,t)},td=function(V,e,t,n){var p,P,J,fe,ke,{storeLoadOptions:Ue}=e,Ze=null!==(P=null!==(p=e.take)&&void 0!==p?p:Ue.take)&&void 0!==P?P:0,Ft=null===(J=e.cachedData)||void 0===J?void 0:J.items;if(Ze&&Ft){for(var vi=null!==(ke=null!==(fe=e.skip)&&void 0!==fe?fe:Ue.skip)&&void 0!==ke?ke:0,Li=0;Li<Ze;Li+=1){var tn=n?Ze-1-Li:Li,On=tn+vi,Qn=Ft[On];if(void 0===Qn&&On in Ft)return!0;var zr=es(e,Qn,t,tn,Ze);if(!zr)return!1;V.push(zr)}return!0}return!1},es=function(V,e,t,n,p){return t&&e?ml(e,t,0===n&&V.skips||[],n===p-1&&V.takes||[]):e},ml=function V(e,t,n,p){if(t&&e){var P=(0,Nt.A)({},e),J=n[0]||0,fe=p[0],{items:ke}=e;if(ke){if(void 0===fe&&!ke[J])return;P.items=[],n.length&&(P.isContinuation=!0),fe&&(P.isContinuationOnNextPage=e.count>fe);for(var Ue=0;void 0===fe?ke[Ue+J]:Ue<fe;Ue+=1){var Ft=Ue+1===fe,vi=V(ke[Ue+J],t-1,0===Ue?n.slice(1):[],Ft?p.slice(1):[]);if(void 0===vi)return;P.items.push(vi)}}return P}return e},kl=function(V,e,t){var n,p,P=V.length,{storeLoadOptions:J}=e;if(void 0!==J.skip&&J.take&&!t){var fe=[];td(fe,e,t,!0);var ke=fe.length;(P||ke)&&(e.skip=null!==(n=e.skip)&&void 0!==n?n:J.skip,e.take=null!==(p=e.take)&&void 0!==p?p:J.take),P&&(J.skip+=P,J.take-=P,e.cachedDataPartBegin=V),ke&&(J.take-=ke,e.cachedDataPartEnd=fe.reverse())}},Gd=function V(e,t,n,p){if(n&&t){var P=(0,Nt.A)({},t);delete P.isContinuation,delete P.isContinuationOnNextPage;var J=p[0]||0;return t.items&&(P.items=e?.items||{},t.items.forEach((fe,ke)=>{var Ue=ke+J,Ze=0===ke?p.slice(1):[];P.items[Ue]=V(P.items[Ue],fe,n-1,Ze)})),P}return t},Vc=class id extends cn.Controller{init(e,t){var n=this;n._dataSource=e,n._remoteOperations=t||{},n._isLastPage=!e.isLastPage(),n._hasLastPage=!1,n._currentTotalCount=0,n._cachedData={items:{}},n._lastOperationTypes={},n._eventsStrategy=e._eventsStrategy,n._totalCountCorrection=0,n._isLoadingAll=!1,n.changed=(0,Qe.A)(),n.loadingChanged=(0,Qe.A)(),n.loadError=(0,Qe.A)(),n.customizeStoreLoadOptions=(0,Qe.A)(),n.changing=(0,Qe.A)(),n.pushed=(0,Qe.A)(),n._dataChangedHandler=n._handleDataChanged.bind(n),n._customizeStoreLoadOptionsHandler=n._handleCustomizeStoreLoadOptions.bind(n),n._dataLoadedHandler=n._handleDataLoaded.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._loadErrorHandler=n._handleLoadError.bind(n),n._pushHandler=n._handlePush.bind(n),n._changingHandler=n._handleChanging.bind(n),e.on("changed",n._dataChangedHandler),e.on("customizeStoreLoadOptions",n._customizeStoreLoadOptionsHandler),e.on("customizeLoadResult",n._dataLoadedHandler),e.on("loadingChanged",n._loadingChangedHandler),e.on("loadError",n._loadErrorHandler),e.on("changing",n._changingHandler),e.store().on("beforePush",n._pushHandler),(0,E.__)(e,(p,P)=>{!n[p]&&(0,m.Tn)(P)&&(n[p]=function(){return this._dataSource[p].apply(this._dataSource,arguments)})})}dispose(e){var t=this._dataSource,n=t.store();t.off("changed",this._dataChangedHandler),t.off("customizeStoreLoadOptions",this._customizeStoreLoadOptionsHandler),t.off("customizeLoadResult",this._dataLoadedHandler),t.off("loadingChanged",this._loadingChangedHandler),t.off("loadError",this._loadErrorHandler),t.off("changing",this._changingHandler),n&&n.off("beforePush",this._pushHandler),e||t.dispose()}remoteOperations(){return this._remoteOperations}refresh(e,t){var n=this._dataSource;t.reload&&(this.resetCurrentTotalCount(),this._isLastPage=!n.paginate(),this._hasLastPage=this._isLastPage)}resetCurrentTotalCount(){this._currentTotalCount=0,this._totalCountCorrection=0}resetCache(){this._cachedStoreData=void 0,this._cachedPagingData=void 0}resetPagesCache(e){this._cachedData={items:{}}}_needClearStoreDataCache(){var e=this.remoteOperations(),t=Io(this._lastLoadOptions||{},{});return!Object.keys(e).every(p=>!t[p]||!e[p])}push(e,t){var n=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&(0,ea.VK)({keyInfo:n,data:this._cachedStoreData,changes:e}),t||this._applyBatch(e),this.pushed.fire(e)}getDataIndexGetter(){if(!this._dataIndexGetter){var e,t,n=this.store();this._dataIndexGetter=p=>{if(!e||t&&t!==this._cachedStoreData){t=this._cachedStoreData||[],e={};for(var J=0;J<t.length;J++)e[(0,s.GP)(n.keyOf(t[J]))]=J}return e[(0,s.GP)(n.keyOf(p))]}}return this._dataIndexGetter}_getKeyInfo(){return this.store()}_needToCopyDataObject(){return!0}_applyBatch(e,t){var n=this._getKeyInfo(),p=this._dataSource,P=Ui.A.normalizeSortingInfo(this.group()).length,J="reshape"===this.option("editing.refreshMode"),fe="virtual"===this.option("scrolling.mode");e=e.filter(Ft=>!p.paginate()||"insert"!==Ft.type||void 0!==Ft.index);var ke=()=>P?this.itemsCount():this.items().length,Ue=ke();(0,ea.VK)({keyInfo:n,data:this._items,changes:e,groupCount:P,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(0,ea.VK)({keyInfo:n,data:p.items(),changes:e,groupCount:P,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(this._currentTotalCount>0||(t||!J)&&fe)&&(this._totalCountCorrection+=ke()-Ue),e.splice(0,e.length)}_handlePush(e){var{changes:t}=e;this.push(t,!0)}_handleChanging(e){this.changing.fire(e),this._applyBatch(e.changes,!0)}_needCleanCacheByOperation(e,t){var n=["filtering","sorting","paging"],p=n.indexOf(e);return(p>=0?n.slice(p):[e]).some(J=>t[J])}_customizeRemoteOperations(e,t){var n=this._cachedStoreData,p=this._cachedPagingData,P=this._cachedData;(e.storeLoadOptions.filter&&!e.remoteOperations.filtering||e.storeLoadOptions.sort&&!e.remoteOperations.sorting)&&(e.remoteOperations={filtering:e.remoteOperations.filtering,summary:e.remoteOperations.summary}),t.fullReload?(n=void 0,p=void 0,P={items:{}}):(t.reload?(p=void 0,P={items:{}}):t.groupExpanding&&(P={items:{}}),(0,E.__)(t,(J,fe)=>{fe&&this._needCleanCacheByOperation(J,e.remoteOperations)&&(n=void 0,p=void 0)})),p&&(e.remoteOperations.paging=!1),e.cachedStoreData=n,e.cachedPagingData=p,e.cachedData=P,e.isCustomLoading||(this._cachedStoreData=n,this._cachedPagingData=p,this._cachedData=P)}_handleCustomizeStoreLoadOptions(e){var t;this._handleDataLoading(e),0!==(null===(t=e.data)||void 0===t?void 0:t.length)&&(e.data=ol(e,!0)||e.cachedStoreData)}_handleDataLoading(e){var t=this._dataSource,n=this._lastLoadOptions;this.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=(0,o.X)({},this.remoteOperations());var p=!this.isLoaded()&&!this._isRefreshing;this.option("integrationOptions.renderedOnServer")&&!this.isLoaded()&&(e.delay=void 0);var P=(0,o.X)({pageIndex:this.pageIndex(),pageSize:this.pageSize()},e.storeLoadOptions),J=Io(P,n,p);if(this._customizeRemoteOperations(e,J),!e.isCustomLoading){var fe=this._isRefreshing;e.pageIndex=t.pageIndex(),e.lastLoadOptions=P,e.operationTypes=J,this._loadingOperationTypes=J,this._isRefreshing=!0,(0,xe.z7)(fe||this._isRefreshed||this.refresh(e,J)).done(()=>{this._lastOperationId===e.operationId&&(this._isRefreshed=!0,this.load().always(()=>{this._isRefreshed=!1}))}).fail(()=>{t.cancel(e.operationId)}).always(()=>{this._isRefreshing=!1}),t.cancel(this._lastOperationId),this._lastOperationId=e.operationId,this._isRefreshing&&t.cancel(this._lastOperationId)}this._handleDataLoadingCore(e)}_handleDataLoadingCore(e){var{remoteOperations:t}=e;e.loadOptions={};var n=e.cachedData.extra,p={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:n&&"totalCount"in n||!t.paging,langParams:!t.filtering||!t.sorting};(0,E.__)(e.storeLoadOptions,(P,J)=>{p[P]&&(e.loadOptions[P]=J,delete e.storeLoadOptions[P])}),n&&(e.extra=n)}_handleDataLoaded(e){var t,n,{loadOptions:p}=e,P=e.remoteOperations&&!e.remoteOperations.paging,{cachedData:J}=e,{storeLoadOptions:fe}=e,ke=!1!==this.option("cacheEnabled")&&fe,Ue=ke&&!e.isCustomLoading&&J&&(!P||fe.group),Ze=ke&&P,Ft=Ze&&!e.isCustomLoading;if(p){P&&(e.skip=p.skip,e.take=p.take,delete p.skip,delete p.take),p.group&&(p.group=e.group||p.group);var vi=Ui.A.normalizeSortingInfo(e.group||fe.group||p.group).length;e.cachedDataPartBegin&&(e.data=e.cachedDataPartBegin.concat(e.data)),e.cachedDataPartEnd&&(e.data=e.data.concat(e.cachedDataPartEnd)),(!Ue||!ol(e))&&(Ze&&e.cachedPagingData?e.data=Wa(e.cachedPagingData,vi):(Ft&&(this._cachedStoreData?e.mergeStoreLoadData&&(e.data=this._cachedStoreData=this._cachedStoreData.concat(e.data)):this._cachedStoreData=Wa(e.data,Ui.A.normalizeSortingInfo(fe.group).length)),new No.A(e.data).load(p).done(Li=>{e.data=Li,Ft&&(this._cachedPagingData=Wa(e.data,vi))}).fail(Li=>{e.data=(new xe.cY).reject(Li)})),p.requireTotalCount&&P&&(e.extra=(0,m.Qd)(e.extra)?e.extra:{},e.extra.totalCount=e.data.length),e.extra&&e.extra.totalCount>=0&&(!1===fe.requireTotalCount||!1===p.requireTotalCount)&&(e.extra.totalCount=-1),!p.data&&(fe.requireTotalCount||(null!==(n=null===(t=e.extra)||void 0===t?void 0:t.totalCount)&&void 0!==n?n:-1)>=0)&&(this._totalCountCorrection=0),this._handleDataLoadedCore(e),Ue&&(J.extra=J.extra||(0,o.X)({},e.extra),(0,xe.z7)(e.data).done(Li=>{!function(V,e,t){for(var n,p,P,J,{storeLoadOptions:fe}=V,ke=null!==(p=null!==(n=V.skip)&&void 0!==n?n:fe.skip)&&void 0!==p?p:0,Ue=null!==(J=null!==(P=V.take)&&void 0!==P?P:fe.take)&&void 0!==J?J:0,Ze=0;Ze<Ue;Ze+=1){var Ft=Ze+ke,vi=V.cachedData.items;vi[Ft]=Gd(vi[Ft],e[Ze],t,0===Ze&&V.skips||[])}}(e,Li,vi)}))),(0,xe.z7)(e.data).done(()=>{e.lastLoadOptions&&(this._lastLoadOptions=e.lastLoadOptions,Object.keys(e.operationTypes).forEach(Li=>{this._lastOperationTypes[Li]=this._lastOperationTypes[Li]||e.operationTypes[Li]}))}),e.storeLoadOptions=e.originalStoreLoadOptions}else this._dataSource.cancel(e.operationId)}_handleDataLoadedCore(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),void 0!==e.take&&(e.data=e.data.slice(0,e.take)))}_handleLoadingChanged(e){this.loadingChanged.fire(e)}_handleLoadError(e){this.loadError.fire(e),this.changed.fire({changeType:"loadError",error:e})}_loadPageSize(){return this.pageSize()}_handleDataChanged(e){var t,n=this._dataSource,p=!1,P=!e||(0,m.O9)(e.changeType),J=this.itemsCount();P&&(this._isLastPage=!J||!this._loadPageSize()||J<this._loadPageSize(),this._isLastPage&&(this._hasLastPage=!0)),n.totalCount()>=0?n.pageIndex()>=this.pageCount()&&(n.pageIndex(this.pageCount()-1),this.pageIndex(n.pageIndex()),this.resetPagesCache(),n.load(),p=!0):P&&((t=n.pageIndex()*this.pageSize()+J)>this._currentTotalCount&&(this._currentTotalCount=t,(0===n.pageIndex()||!this.option("scrolling.legacyMode"))&&(this._totalCountCorrection=0)),0===J&&n.pageIndex()>=this.pageCount()&&(n.pageIndex(this.pageCount()-1),"infinite"!==this.option("scrolling.mode")&&(n.load(),p=!0))),p||(this._operationTypes=this._lastOperationTypes,this._lastOperationTypes={},this.component._optionCache={},this.changed.fire(e),this.component._optionCache=void 0)}_scheduleCustomLoadCallbacks(e){var t=this;t._isCustomLoading=!0,e.always(()=>{t._isCustomLoading=!1})}loadingOperationTypes(){return this._loadingOperationTypes}operationTypes(){return this._operationTypes}lastLoadOptions(){return this._lastLoadOptions||{}}isLastPage(){return this._isLastPage}_dataSourceTotalCount(){return this._dataSource.totalCount()}_changeRowExpandCore(e){}changeRowExpand(e){}totalCount(){return parseInt((this._currentTotalCount||this._dataSourceTotalCount())+this._totalCountCorrection)}totalCountCorrection(){return this._totalCountCorrection}items(){}itemsCount(){return this._dataSource.items().length}totalItemsCount(){return this.totalCount()}pageSize(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0}pageCount(){var e=this.totalItemsCount()-this._totalCountCorrection,t=this.pageSize();return t&&e>0?Math.max(1,Math.ceil(e/t)):1}hasKnownLastPage(){return this._hasLastPage||this._dataSource.totalCount()>=0}loadFromStore(e,t){var n=this._dataSource,p=new xe.cY;if(n)return(t=t||n.store()).load(e).done((P,J)=>{P&&!Array.isArray(P)&&Array.isArray(P.data)&&(J=P,P=P.data),p.resolve(P,J)}).fail(p.reject),p}isCustomLoading(){return!!this._isCustomLoading}load(e){var t=this,n=t._dataSource,p=new xe.cY;if(e){var P=n.store(),J=n.loadOptions(),fe={storeLoadOptions:(0,o.X)({},e,{langParams:J?.langParams}),isCustomLoading:!0};return(0,E.__)(P._customLoadOptions()||[],(ke,Ue)=>{Ue in fe.storeLoadOptions||(fe.storeLoadOptions[Ue]=J[Ue])}),this._isLoadingAll=e.isLoadingAll,t._scheduleCustomLoadCallbacks(p),n._scheduleLoadCallbacks(p),t._handleCustomizeStoreLoadOptions(fe),function(V,e){(0,m.O9)(e)?(0,s.uG)(V,e):V()}(()=>{if(!n.store())return p.reject("canceled");(0,xe.z7)(fe.data||t.loadFromStore(fe.storeLoadOptions)).done((ke,Ue)=>{fe.data=ke,fe.extra=Ue||{},t._handleDataLoaded(fe),e.requireTotalCount&&void 0===fe.extra.totalCount&&(fe.extra.totalCount=P.totalCount(fe.storeLoadOptions)),(0,xe.z7)(fe.data,fe.extra.totalCount).done((Ze,Ft)=>{fe.extra.totalCount=Ft,p.resolve(Ze,fe.extra)}).fail(p.reject)}).fail(p.reject)},t.option("loadingTimeout")),p.fail(function(){t._eventsStrategy.fireEvent("loadError",arguments)}).always(()=>{this._isLoadingAll=!1}).promise()}return n.load()}reload(e){return e?this._dataSource.reload():this._dataSource.load()}getCachedStoreData(){return this._cachedStoreData}isLoaded(){}pageIndex(e){}};const su={extend(V){Vc=V(Vc)},create:V=>new Vc(V)};En.registerModule("data",{defaultOptions:dr.defaultOptions,controllers:{data:class Ju extends _n{_getDataSourceAdapter(){return su}_getSpecificDataSourceOption(){var e=this.option("dataSource");return e&&!Array.isArray(e)&&this.option("keyExpr")&&Et.A.log("W1011"),super._getSpecificDataSourceOption()}}}});var lp="dx-sort",gu="dx-sort-none",sc="dx-sort-index-icon";const Vl=V=>class extends V{_applyColumnState(e){var t,n,p=this.option("sorting.mode"),{rootElement:P}=e,{column:J}=e,fe=this._getIndicatorContainer(P);if("sort"===e.name){P.find(".".concat(lp)).remove(),!fe.children().length&&fe.remove();var ke="none"!==p&&J.allowSorting,Ue=this.getController&&!!this.getController("columns").columnOption("sortIndex:1");return!(0,m.O9)(J.groupIndex)&&(ke||(0,m.O9)(J.sortOrder))&&(t="asc"===J.sortOrder?"ascending":"descending",n=super._applyColumnState(e).toggleClass("dx-sort-up","asc"===J.sortOrder).toggleClass("dx-sort-down","desc"===J.sortOrder),Ue&&this.option("sorting.showSortIndexes")&&J.sortIndex>=0&&((0,j.A)("<span>").addClass(sc).text(J.sortIndex+1).appendTo(n),n.addClass("dx-sort-index")),ke&&e.rootElement.addClass(this.addWidgetPrefix("action"))),this._setAriaSortAttribute(J,t,P,Ue),n}return super._applyColumnState(e)}_setAriaSortAttribute(e,t,n,p){if(n.removeAttr("aria-roledescription"),e.isGrouped){var P=this.localize("dxDataGrid-ariaNotSortedColumn");(0,m.O9)(e.sortOrder)&&(P=this.localize("asc"===e.sortOrder?"dxDataGrid-ariaSortedAscendingColumn":"dxDataGrid-ariaSortedDescendingColumn")),this.setAria("roledescription",P,n)}else if((0,m.O9)(e.sortOrder)){if(this.setAria("sort",t,n),p&&e.sortIndex>=0){var J=v.A.format("dxDataGrid-ariaColumnHeader"),fe=v.A.format("dxDataGrid-ariaSortIndex",e.sortIndex+1),ke="".concat(J,", ").concat(fe);this.setAria("roledescription",ke,n)}}else this.setAria("sort","none",n)}_getIndicatorClassName(e){return"sort"===e?lp:"sortIndex"===e?sc:super._getIndicatorClassName(e)}_renderIndicator(e){var{column:t}=e,n=e.container,p=e.indicator;if("sort"===e.name){var P=this.option("rtlEnabled");if((0,m.O9)(t.sortOrder)||p&&p.addClass(gu),n.children().length&&(!P&&"left"===e.columnAlignment||P&&"right"===e.columnAlignment))return void n.prepend(p)}super._renderIndicator(e)}_updateIndicator(e,t,n){if("sort"!==n||!(0,m.O9)(t.groupIndex))return super._updateIndicator.apply(this,arguments)}_getIndicatorElements(e,t){var n=super._getIndicatorElements(e);return t?n:n&&n.not(".".concat(gu))}};En.registerModule("sorting",{defaultOptions:()=>({sorting:{mode:"single",ascendingText:v.A.format("dxDataGrid-sortingAscendingText"),descendingText:v.A.format("dxDataGrid-sortingDescendingText"),clearText:v.A.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}),extenders:{views:{columnHeadersView:V=>class extends(Vl(V)){optionChanged(e){"sorting"===e.name?(this._invalidate(),e.handled=!0):super.optionChanged(e)}_createRow(e){var t=super._createRow(e);return"header"===e.rowType&&_.A.on(t,(0,h.b4)(ce.U,"dxDataGridColumnHeadersView"),"td",this.createAction(n=>{this._processHeaderAction(n.event,t)})),t}_processHeaderAction(e,t){if((0,j.A)(e.currentTarget).parent().get(0)===t.get(0)){var n=this,p=null,P=(0,j.A)(e.currentTarget),J=P.parent().index(),fe=-1;[].slice.call(n.getCellElements(J)).some((Li,tn)=>{if(Li===P.get(0))return fe=tn,!0});var Ue=n._columnsController.getVisibleColumns(J)[fe],Ze=n.getController("editing"),Ft=n.option("editing.mode");Ze&&Ze.isEditing()&&("batch"===Ft||"cell"===Ft)||!n._isSortableElement((0,j.A)(e.target))||Ue&&!(0,m.O9)(Ue.groupIndex)&&!Ue.command&&(e.shiftKey?p="shift":(0,h.By)(e)&&(p="ctrl"),setTimeout(()=>{n._columnsController.changeSortOrder(Ue.index,p)}))}}_renderCellContent(e,t){var{column:n}=t;!n.command&&"header"===t.rowType&&this._applyColumnState({name:"sort",rootElement:e,column:n,showColumnLines:this.option("showColumnLines")}),super._renderCellContent.apply(this,arguments)}_columnOptionChanged(e){var{changeTypes:t}=e;1===t.length&&t.sorting?this._updateIndicators("sort"):super._columnOptionChanged(e)}},headerPanel:V=>class extends(Vl(V)){optionChanged(e){"sorting"===e.name?(this._invalidate(),e.handled=!0):super.optionChanged(e)}_createGroupPanelItem(e,t){var n=this,p=super._createGroupPanelItem(...arguments);return _.A.on(p,(0,h.b4)(ce.U,"dxDataGridHeaderPanel"),n.createAction(()=>{n._processGroupItemAction(t.index)})),n._applyColumnState({name:"sort",rootElement:p,column:{alignment:n.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc",isGrouped:!0},showColumnLines:!0}),p}_processGroupItemAction(e){setTimeout(()=>this.getController("columns").changeSortOrder(e))}}}}});var wo=D(70370),lc=D(49057),$s="rowsview",Qt="dx-group-row",Ei="dx-group-cell",Bn="dx-freespace-row",Yr="dx-column-lines",Ir="dx-row-alt",pa="dx-last-row-border";function Fs(V){return V?Math.round(V.scrollWidth()-V.clientWidth()):0}function Tl(V){var{rowType:e,column:t}=V;return"group"===e&&(0,m.O9)(t.groupIndex)&&!t.showWhenGrouped&&!t.command}function Rs(V){var{element:e,watch:t,getter:n,callBack:p}=V;if(t){var P=t(n,p);_.A.on(e,Be.N,P)}}var Qc=function(V,e){var t=(0,wo.Im)(e.text)&&"data"===e.rowType,{text:n}=e,p=V.get(0);t?Ui.A.setEmptyText(V):e.column.encodeHtml?p.textContent=n:p.innerHTML=n};En.registerModule("rows",{defaultOptions:()=>({hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:v.A.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},dataRowTemplate:null,columnAutoWidth:!1,noDataText:v.A.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}),views:{rowsView:class Mi extends Pr{init(){super.init(),this._editingController=this.getController("editing"),this._resizingController=this.getController("resizing"),this._columnsResizerController=this.getController("columnsResizer"),this._focusController=this.getController("focus"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._validatingController=this.getController("validating"),this._errorHandlingController=this.getController("errorHandling"),this._columnHeadersView=this.getView("columnHeadersView"),this._rowHeight=0,this._scrollTop=0,this._scrollLeft=-1,this._scrollRight=0,this._hasHeight=void 0,this._contentChanges=[],this._dataController.loadingChanged.add((e,t)=>{this.setLoading(e,t)}),this._dataController.dataSourceChanged.add(()=>{this._scrollLeft>=0&&!this._dataController.isLoading()&&this._handleScroll({component:this.getScrollable(),forceUpdateScrollPosition:!0,scrollOffset:{top:this._scrollTop,left:this._scrollLeft}})})}_getDefaultTemplate(e){return"empty"===e.command?function(t){t.html(" ")}:Qc}_getDefaultGroupTemplate(e){var t=this.option("summary.texts");return function(n,p){var{data:P}=p,J="".concat(p.column.caption,": ").concat(p.text),fe=n.get(0);p.summaryItems&&p.summaryItems.length&&(J+=" ".concat(Ui.A.getGroupRowSummaryText(p.summaryItems,t))),P&&(p.groupContinuedMessage&&p.groupContinuesMessage?J+=" (".concat(p.groupContinuedMessage,". ").concat(p.groupContinuesMessage,")"):p.groupContinuesMessage?J+=" (".concat(p.groupContinuesMessage,")"):p.groupContinuedMessage&&(J+=" (".concat(p.groupContinuedMessage,")"))),e.encodeHtml?fe.textContent=J:fe.innerHTML=J}}_update(e){}_updateCell(e,t){Tl(t)&&e.addClass(Ei),super._updateCell.apply(this,arguments)}_getCellTemplate(e){var{column:t}=e;return Tl(e)?t.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(t)}:("data"===e.rowType||t.command)&&t.cellTemplate?t.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(t)}}_createRow(e,t){var n=super._createRow.apply(this,arguments);if(e){var p="group"===e.rowType,P="data"===e.rowType;P&&n.addClass("dx-data-row"),P&&this.option("showRowLines")&&n.addClass("dx-row-lines"),this.option("showColumnLines")&&n.addClass(Yr),!1===e.visible&&n.hide(),p&&(n.addClass(Qt),this.setAriaExpandedAttribute(n,e))}return n}_rowPrepared(e,t,n){"data"===t.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(n)&&e.addClass(Ir),Rs({element:e.get(0),watch:t.watch,getter:()=>this._isAltRow(n),callBack:p=>{e.toggleClass(Ir,p)}})),this._setAriaRowIndex(t,e),Rs({element:e.get(0),watch:t.watch,getter:()=>t.rowIndex,callBack:()=>this._setAriaRowIndex(t,e)})),super._rowPrepared.apply(this,arguments)}_setAriaRowIndex(e,t){if(t.is("tr")){var{component:n}=this,p="standard"===n.option("scrolling.mode")&&!Ui.A.isVirtualRowRendering(n),P=e.rowIndex+1;p?P=n.pageIndex()*n.pageSize()+P:P+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",P,t)}}setAriaExpandedAttribute(e,t){var n=this.localize(t.isExpanded?"dxDataGrid-ariaExpandedRow":"dxDataGrid-ariaCollapsedRow");this.setAria("roledescription",n,e)}_afterRowPrepared(e){var t=e.args[0],n=this._dataController,p=n.getVisibleRows()[t.rowIndex],P=this.option("integrationOptions.watchMethod");if(t.data&&"data"===t.rowType&&!t.isNewRow&&this.option("twoWayBindingEnabled")&&P&&p){var J=P(()=>n.generateDataValues(t.data,t.columns),()=>{n.repaintRows([p.rowIndex],this.option("repaintChangesOnly"))},{deep:!0,skipImmediate:!0});_.A.on(t.rowElement,Be.N,J)}}_renderScrollable(e){var t=this.element();if(t.children().length||t.append("<div>"),(e||!this._loadPanel)&&this._renderLoadPanel(t,t.parent(),this._dataController.isLocalStore()),(e||!this.getScrollable())&&this._dataController.isLoaded()){for(var n=this.getColumns(),p=!0,P=0;P<n.length;P++)if(!n[P].width&&!n[P].minWidth){p=!1;break}(this.option("columnAutoWidth")||this._hasHeight||p||this._columnsController._isColumnFixing())&&this._renderScrollableCore(t)}}_handleScroll(e){var t=this.option("rtlEnabled"),n=e.component.option("useNative");this._scrollTop=e.scrollOffset.top,this._scrollLeft=e.scrollOffset.left;var p=e.scrollOffset.left;t&&(this._scrollRight=Fs(e.component)-this._scrollLeft,n&&(p=-this._scrollRight),this.isScrollbarVisible(!0)||(this._scrollLeft=-1)),this.scrollChanged.fire((0,Nt.A)((0,Nt.A)({},e.scrollOffset),{left:p}),this.name)}_renderScrollableCore(e){var t=this._createScrollableOptions(),n=this._handleScroll.bind(this);t.onScroll=n,this._scrollable=this._createComponent(e,lc.A,t),this._scrollableContainer=this._scrollable&&(0,j.A)(this._scrollable.container())}_renderLoadPanel(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ui.A.renderLoadPanel.apply(this,arguments)}_renderContent(e,t,n){return e.empty().append(t),this._findContentElement()}_updateContent(e,t,n){return this._contentChanges.push({newTableElement:e,change:t,isFixedTableRendering:n}),this.waitAsyncTemplates().done(()=>{var p=this._contentChanges;this._contentChanges=[],p.forEach(P=>{var{newTableElement:J,change:fe,isFixedTableRendering:ke}=P,Ue=this.getTableElement(ke),Ze=this._findContentElement(ke),Ft=fe?.changeType,vi=[],Li=this.option("highlightChanges"),tn=this.addWidgetPrefix("row-inserted-animation");"update"===Ft?((0,E.__)(fe.rowIndices,(On,Qn)=>{var zr,la=this._getRowElements(J).eq(On),qo=null===(zr=fe.changeTypes)||void 0===zr?void 0:zr[On],Xl=fe.items&&fe.items[On];vi.push(()=>{var Es,ul=this._getRowElements(Ue),Fd=ul.eq(Qn);switch(qo){case"update":if(Xl){var Kc=null===(Es=fe.columnIndices)||void 0===Es?void 0:Es[On];(0,m.O9)(Xl.visible)&&Xl.visible!==Fd.is(":visible")?Fd.toggle(Xl.visible):Kc?this._updateCells(Fd,la,Kc):Fd.replaceWith(la)}break;case"insert":if(ul.length)Fd.length?la.insertBefore(Fd):la.insertAfter(ul.last());else if(Ue){var Bd=la.is("tbody")?Ue:Ue.children("tbody");la.prependTo(Bd)}Li&&fe.isLiveUpdate&&la.addClass(tn);break;case"remove":Fd.remove()}})}),(0,E.__)(vi,function(){this()}),J.remove()):(this.setTableElement(J,ke),Ze.addClass(this.addWidgetPrefix("content")),this._setGridRole(Ze),this._renderContent(Ze,J,ke))})}).fail(()=>{this._contentChanges=[]})}_getGridRoleName(){return"grid"}_setGridRole(e){var t,n=!(null!==(t=this._dataController)&&void 0!==t&&t.isEmpty()),p=this._getGridRoleName();e?.length&&n&&this.setAria("role",p,e)}_createEmptyRow(e,t,n){var p,P=this._createRow(),J=t?this.getFixedColumns():this.getColumns();P.addClass(e).toggleClass(Yr,this.option("showColumnLines"));for(var fe=0;fe<J.length;fe++)p=this._createCell({column:J[fe],rowType:"freeSpace",columnIndex:fe,columns:J}),(0,m.kf)(n)&&p.css("height",n),P.append(p);return this.setAria("role","presentation",P),P}getFixedColumns(){throw new Error("Method not implemented.")}_appendEmptyRow(e,t,n){var p=this._getBodies(e),P=!p.length||t.is("tbody"),J=P?e:p;if("top"===n){if(J.first().prepend(t),P){var fe=J.children("colgroup");J.prepend(fe)}}else J.last().append(t)}_renderFreeSpaceRow(e,t){var n=this._createEmptyRow(Bn);n=this._wrapRowIfNeed(e,n,"refresh"===t?.changeType),this._appendEmptyRow(e,n)}_checkRowKeys(e){var t=this,n=t._getRows(e),p=t._dataController.store()&&t._dataController.store().key();p&&n.some(P=>{if("data"===P.rowType&&void 0===P.key)return t._dataController.fireError("E1046",p),!0})}_needUpdateRowHeight(e){return e>0&&!this._rowHeight}_getRowsHeight(e){return(e=e||this._tableElement).children("tbody").children().not(".dx-virtual-row").not(".".concat(Bn)).toArray().reduce((n,p)=>n+(0,ge.N)(p).height,0)}_updateRowHeight(){var e=this.getTableElement(),t=this._dataController.items().length;if(e&&this._needUpdateRowHeight(t)){var n=this._getRowsHeight(e);this._rowHeight=n/t}}_findContentElement(e){var t=this.element(),n=this.getScrollable();if(t)return n&&(t=(0,j.A)(n.content())),t.children().first()}_getRowElements(e){var t=super._getRowElements(e);return t&&t.not(".".concat(Bn))}_getFreeSpaceRowElements(e){var t=e||this.getTableElements();return t&&t.children("tbody").children(".".concat(Bn))}_getNoDataText(){return this.option("noDataText")}_rowClick(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",(0,o.X)({evaluate:n=>(0,aa.Hz)(n)(t.data)},e,t))}_rowDblClick(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowDblClick",(0,o.X)({},e,t))}_getColumnsCountBeforeGroups(e){for(var t=0;t<e.length;t++)if("groupExpand"===e[t].type)return t;return 0}_getGroupCellOptions(e){var t=this._getColumnsCountBeforeGroups(e.columns),n=(e.row.groupIndex||0)+t;return{columnIndex:n,colspan:e.columns.length-n-1}}_needWrapRow(){return super._needWrapRow.apply(this,arguments)||!!this.option("dataRowTemplate")}_renderCells(e,t){"group"===t.row.rowType?this._renderGroupedCells(e,t):t.row.values&&super._renderCells(e,t)}_renderGroupedCells(e,t){for(var p,fe,{row:n}=t,{columns:P}=t,{rowIndex:J}=n,ke=this._getGroupCellOptions(t),Ue=0;Ue<=ke.columnIndex;Ue++)Ue===ke.columnIndex&&P[Ue].allowCollapsing&&"infinite"!==t.scrollingMode?(fe=!!n.isExpanded,p=P[Ue]):(fe=null,p={command:"expand",cssClass:P[Ue].cssClass}),this._needRenderCell(Ue,t.columnIndices)&&this._renderCell(e,{value:fe,row:n,rowIndex:J,column:p,columnIndex:Ue,columnIndices:t.columnIndices,change:t.change});var Ze=(0,ge.n)(this.option("rtlEnabled")),Ft=(0,o.X)({},P[ke.columnIndex],{command:null,type:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:Ze});ke.colspan>1&&(Ft.colspan=ke.colspan),this._needRenderCell(ke.columnIndex+1,t.columnIndices)&&this._renderCell(e,{value:n.values[n.groupIndex],row:n,rowIndex:J,column:Ft,columnIndex:ke.columnIndex+1,columnIndices:t.columnIndices,change:t.change})}_renderRows(e,t){var n=this.option("scrolling.mode");super._renderRows(e,(0,o.X)({scrollingMode:n},t)),this._checkRowKeys(t.change),this._renderFreeSpaceRow(e,t.change),this._hasHeight||this.updateFreeSpaceRowHeight(e)}_renderDataRowByTemplate(e,t,n){var{row:p}=t,P=(0,o.X)({columns:t.columns},p),J=this._createRow(p,"tbody");J.appendTo(e),this.renderTemplate(J,n,P,!0,t.change),this._rowPrepared(J,P,t.row)}_renderRow(e,t){var{row:n}=t,{rowTemplate:p}=this.option(),P=this.option("dataRowTemplate");"data"===n.rowType&&P?this._renderDataRowByTemplate(e,t,P):"data"!==n.rowType&&"group"!==n.rowType||(0,m.O9)(n.groupIndex)||!p?super._renderRow(e,t):this.renderTemplate(e,p,(0,o.X)({columns:t.columns},n),!0)}_renderTable(e){var t=this,n=super._renderTable(e);return(0,m.O9)(t.getTableElement())?t._renderScrollable():(t.setTableElement(n),t._renderScrollable(!0),t.resizeCompleted.add(function p(){var P=t.getScrollable();P&&t.element().closest((0,Ie.zk)().document).length&&(t.resizeCompleted.remove(p),P._visibilityChanged(!0))})),n}_createTable(){var e=super._createTable.apply(this,arguments);return(this.option().rowTemplate||this.option().dataRowTemplate)&&e.appendTo(this.component.$element()),e}_renderCore(e){var t=this.element();t.addClass(this.addWidgetPrefix($s)).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")),t.toggleClass("dx-empty",this._dataController.isEmpty()),this.setAria("role","presentation",t);var n=this._renderTable({change:e}),p=this._updateContent(n,e);return super._renderCore(e),this._lastColumnWidths=null,p}_getRows(e){return e&&e.items||this._dataController.items()}_getCellOptions(e){var{column:t}=e,{row:n}=e,{data:p}=n,P=n&&n.summaryCells,{value:J}=e,fe=Ui.A.getDisplayValue(t,J,p,n.rowType),ke=super._getCellOptions(e);if(ke.value=J,ke.oldValue=e.oldValue,ke.displayValue=fe,ke.row=n,ke.key=n.key,ke.data=p,ke.rowType=n.rowType,ke.values=n.values,ke.text=t.command?"":Ui.A.formatValue(fe,t),ke.rowIndex=n.rowIndex,ke.summaryItems=P&&P[e.columnIndex],ke.resized=t.resizedCallbacks,(0,m.O9)(t.groupIndex)&&!t.command){var Ue=this.option("grouping.texts"),Ze=this.option("scrolling.mode");"virtual"!==Ze&&"infinite"!==Ze&&(ke.groupContinuesMessage=p&&p.isContinuationOnNextPage&&Ue&&Ue.groupContinuesMessage,ke.groupContinuedMessage=p&&p.isContinuation&&Ue&&Ue.groupContinuedMessage)}return ke}_setRowsOpacityCore(e,t,n,p){var P=this._columnsController,J=P.getColumns(),fe=J&&J[n],ke=fe&&fe.isBand&&fe.index;(0,E.__)(e,(Ue,Ze)=>{if(!(0,j.A)(Ze).hasClass(Qt))for(var Ft=0;Ft<t.length&&(!((0,m.kf)(ke)&&P.isParentBandColumn(t[Ft].index,ke)||t[Ft].index===n)||(e.eq(Ue).children().eq(Ft).css({opacity:p}),(0,m.kf)(ke)));Ft++);})}_getDevicePixelRatio(){return(0,Ie.zk)().devicePixelRatio}renderNoDataText(){return Ui.A.renderNoDataText.apply(this,arguments)}getCellOptions(e,t){var p,P,n=this._dataController.items()[e];return n&&(P=(0,m.Kg)(t)?this._columnsController.columnOption(t):this._columnsController.getVisibleColumns()[t])&&(p=this._getCellOptions({value:P.calculateCellValue(n.data),rowIndex:n.rowIndex,row:n,column:P})),p}getRow(e){if(e>=0){var t=this._getRowElements();if(t.length>e)return(0,j.A)(t[e])}}updateFreeSpaceRowHeight(e){var t=this._dataController,n=t.items(!0).length,p=this._findContentElement(),P=this._getFreeSpaceRowElements(e);if(P&&p&&t.totalCount()>=0){var J=!1;if(n>0)if(this._hasHeight)P.hide(),(0,s.OX)(()=>{var Ue=this.getScrollbarWidth(!0),Ze=(0,R.Oq)(this.element())-Ue,vi=Ze-(0,R.P$)(p)>0,Li=this._getRowsHeight(p.children().first()),tn=e||this.getTableElements(),zr=Ze-Li-Math.ceil(parseFloat(tn.css("borderTopWidth")))-this._getHeightCorrection();vi&&(0,s.zE)(()=>{P.css("height",zr),J=!0,P.show()}),(0,s.zE)(()=>this._updateLastRowBorder(J))});else{var fe=t.pageSize()-n,ke=this.option("scrolling.mode");fe>0&&t.pageCount()>1&&"virtual"!==ke&&"infinite"!==ke&&((0,Ee.k$)(P,fe*this._rowHeight),J=!0),!J&&e?(0,Ee.k$)(P,0):P.toggle(J),this._updateLastRowBorder(J)}else P.css("height",0),P.show(),this._updateLastRowBorder(!0)}}_getHeightCorrection(){var e=ye.A.webkit&&this._getDevicePixelRatio()>=2,t=ye.A.chrome&&ye.A.version>=91,n=ye.A.mozilla&&ye.A.version>=70&&!this.option("showRowLines");return e||n||t?1:0}_columnOptionChanged(e){var{optionNames:t}=e;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(super._columnOptionChanged(e),this._fireColumnResizedCallbacks())}getScrollable(){return this._scrollable}_handleDataChanged(e){switch(e.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,e);break;default:this._update(e)}}publicMethods(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]}contentWidth(){return(0,R.RG)(this.element())-this.getScrollbarWidth()}getScrollbarWidth(e){var t=this._scrollableContainer&&this._scrollableContainer.get(0),n=0;return t&&(e?(n=t.clientHeight?t.offsetHeight-t.clientHeight:0,n+=function(V){var e=V.getScrollable();return e?Math.ceil(parseFloat((0,j.A)(e.content()).css("paddingBottom"))):0}(this)):n=t.clientWidth?t.offsetWidth-t.clientWidth:0),n>0?n:0}_fireColumnResizedCallbacks(){for(var e=this._lastColumnWidths||[],t=[],n=this.getColumns(),p=0;p<n.length;p++)t[p]=n[p].visibleWidth,n[p].resizedCallbacks&&!(0,m.O9)(n[p].groupIndex)&&e[p]!==t[p]&&n[p].resizedCallbacks.fire(t[p]);this._lastColumnWidths=t}_updateLastRowBorder(e){this.option("showBorders")&&!e?this.element().addClass(pa):this.element().removeClass(pa)}_updateScrollable(){var e=lc.A.getInstance(this.element());e&&(e.update(),(e.option("useNative")||!e?.isRenovated())&&this._updateHorizontalScrollPosition())}_updateHorizontalScrollPosition(){var e=this.getScrollable(),t=e&&e.scrollOffset().left;if(this.option("rtlEnabled")){var p=Fs(e);p-t!==this._scrollRight&&(this._scrollLeft=p-this._scrollRight)}this._scrollLeft>=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})}_resizeCore(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),(0,s.zE)(()=>{e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),(0,s.OX)(()=>{e._updateScrollable()})})}scrollTo(e){var t=this.element(),n=t&&lc.A.getInstance(t);n&&n.scrollTo(e)}height(e){var t=this.element();if(0===arguments.length)return t?(0,R.P$)(t,!0):0;(0,m.O9)(e)&&t&&(this.hasHeight("auto"!==e),(0,Ee.k$)(t,e))}hasHeight(e){if(0===arguments.length)return!!this._hasHeight;this._hasHeight=e}setLoading(e,t){var n=this._loadPanel,p=this._dataController,P=this.option("loadPanel")||{},J=p.isLoaded()?P.animation:null,fe=this.element();if((0,Ie.Vd)()&&(!n&&void 0!==t&&p.isLocalStore()&&"auto"===P.enabled&&fe&&(this._renderLoadPanel(fe,fe.parent()),n=this._loadPanel),n)){var ke={message:t||P.text,animation:J,visible:e};e&&(ke.position=Ui.A.calculateLoadPanelPosition(fe)),clearTimeout(this._hideLoadingTimeoutID),n.option("visible")&&!e?this._hideLoadingTimeoutID=setTimeout(()=>{n.option(ke)},200):n.option(ke)}}setRowsOpacity(e,t){var n=this._getRowElements().not(".".concat(Qt))||[];this._setRowsOpacityCore(n,this.getColumns(),e,t)}_getCellElementsCore(e){var t=super._getCellElementsCore.apply(this,arguments);if(t){var n=t.filter(".".concat(Ei)).index();if(n>=0&&t.length>n+1)return t.slice(0,n+1)}return t}_getBoundaryVisibleItemIndex(e,t){var n=0,p=0,P=0,J=this._scrollTop,fe=this._findContentElement(),ke=fe&&fe.offset().top,Ue=this._dataController.items(),Ze=this.getTableElement();if(Ue.length&&Ze){var Ft=this._getRowElements(Ze).filter(":visible");for(e||(J+=(0,R.P$)(this._hasHeight?this.element():(0,Ie.zk)())),n=0;n<Ue.length;n++){p=P;var Li=(0,j.A)(Ft).eq(n);if(Li.length&&(P=Li.offset(),(P=(e?P.top:P.top+(0,R.P$)(Li))-ke)>J)){n&&(t||2*J<Math.round(P+p))&&n--;break}}n&&n===Ue.length&&n--}return n}getTopVisibleItemIndex(e){return this._getBoundaryVisibleItemIndex(!0,e)}getBottomVisibleItemIndex(e){return this._getBoundaryVisibleItemIndex(!1,e)}getTopVisibleRowData(){var e=this.getTopVisibleItemIndex(),t=this._dataController.items();if(t[e])return t[e].data}_scrollToElement(e,t){var n=this.getScrollable();n&&n.scrollToElement(e,t)}optionChanged(e){switch(super.optionChanged(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"dataRowTemplate":case"twoWayBindingEnabled":this._invalidate(!0,!0),e.handled=!0;break;case"scrolling":this._rowHeight=null,this._tableElement=null,e.handled=!0;break;case"rtlEnabled":this._rowHeight=null,this._tableElement=null;break;case"loadPanel":this._tableElement=null,this._invalidate(!0,"loadPanel.enabled"!==e.fullName),e.handled=!0;break;case"noDataText":this.renderNoDataText(),e.handled=!0}}setAriaOwns(e,t,n){var p,P=this._findContentElement(),J=this.getTableElement();J?.length&&this.setAria("owns","".concat(e??""," ").concat(null!==(p=J.attr("id"))&&void 0!==p?p:""," ").concat(t??"").trim(),P)}dispose(){super.dispose(),clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()}setScrollerSpacing(e,t){}_restoreErrorRow(e){}isElementInside(e){return e.closest(".".concat(this.addWidgetPrefix($s))).is(this.element())}}}});var gn=D(64905),rr=D(7963),Tr=D(3930),Da=D(4441),Ca=D(23862),ts=D(46022),zn=D(26115),bo=D(86018),Ss=D(56221),wa=D(68257),Fo=D(2934),Ia=D(59845),vr=D(37514);const oa=Ss.A.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(V,e){var t=this;(0,E.__)(V,function(n,p){var P=(0,m.O9)(e)?e:t._getParentId(p),J=t._convertItemToNode(p,P);t._dataStructure.push(J),t._checkForDuplicateId(J.internalFields.key),t._indexByKey[J.internalFields.key]=t._dataStructure.length-1,t._itemHasChildren(p)&&t._convertItemsToNodes(t._dataAccessors.getters.items(p),J.internalFields.key)})},_checkForDuplicateId:function(V){if((0,m.O9)(this._indexByKey[V]))throw Et.A.Error("E1040",V)},_getParentId:function(V){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(V):void 0},_itemHasChildren:function(V){if("plain"!==this._dataType){var e=this._dataAccessors.getters.items(V);return e&&e.length}},_getUniqueKey:function(V){var e=this._dataAccessors.getters.key,t=e(V);return e&&(t||0===t)&&(0,m.sO)(t)?t:this.getItemsCount()},_convertItemToNode:function(V,e){this._itemsCount++,!1!==V.visible&&this._visibleItemsCount++;var t={internalFields:{disabled:this._dataAccessors.getters.disabled(V,{defaultValue:!1}),expanded:this._dataAccessors.getters.expanded(V,{defaultValue:!1}),selected:this._dataAccessors.getters.selected(V,{defaultValue:!1}),key:this._getUniqueKey(V),parentKey:(0,m.O9)(e)?e:this._rootValue,item:this._makeObjectFromPrimitive(V),childrenKeys:[]}};return(0,o.X)(t,V),delete t.items,t},setChildrenKeys:function(){var V=this;(0,E.__)(this._dataStructure,function(e,t){if(t.internalFields.parentKey!==V._rootValue){var n=V.getParentNode(t);n&&n.internalFields.childrenKeys.push(t.internalFields.key)}})},_makeObjectFromPrimitive:function(V){if((0,m.sO)(V)){var e=V;this._dataAccessors.setters.key(V={},e)}return V},_convertToPublicNode:function(V,e){if(!V)return null;var t={text:this._dataAccessors.getters.display(V),key:V.internalFields.key,selected:V.internalFields.selected,expanded:V.internalFields.expanded,disabled:V.internalFields.disabled,parent:e||null,itemData:V.internalFields.item,children:[],items:[]};return t.parent&&(t.parent.children.push(t),t.parent.items.push(t)),t},convertToPublicNodes:function(V,e){if(!V.length)return[];var t=this,n=[];return(0,E.__)(V,function(p,P){P=(0,m.sO)(P)?t._getByKey(P):P;var J=t._convertToPublicNode(P,e);J.children=t.convertToPublicNodes(P.internalFields.childrenKeys,J),n.push(J),P.internalFields.publicNode=J}),n},setDataAccessors:function(V){this._dataAccessors=V},_getByKey:function(V){return this._dataStructure[this.getIndexByKey(V)]||null},getParentNode:function(V){return this._getByKey(V.internalFields.parentKey)},getByKey:function(V,e){if(null==e)return null;var J,t=null,n=this;return J=e,(0,E.__)(V,function(fe,ke){if((ke.internalFields&&ke.internalFields.key||n._dataAccessors.getters.key(ke)).toString()===J.toString())return t=ke,!1}),t},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var V=this;this._indexByKey={},(0,E.__)(this._dataStructure,function(e,t){V._checkForDuplicateId(t.internalFields.key),V._indexByKey[t.internalFields.key]=e})},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},(0,E.__)(this._dataStructure,function(V,e){e.internalFields.childrenKeys=[]})},getIndexByKey:function(V){return this._indexByKey[V]},createPlainStructure:function(V,e,t){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=e,this._dataType=t,this._indexByKey={},this._convertItemsToNodes(V),this.setChildrenKeys(),this._dataStructure}});var zs="expanded",Wn="selected";wa.A.setEditorClass(Fo.A);const tl=Ss.A.inherit({ctor:function(V){this.options={},(0,o.X)(this.options,this._defaultOptions(),V),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(V,e){this.options[V]=e,"recursiveSelection"===V&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new oa,onNodeChanged:s.lQ,sort:null}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(Wn)},_updateExpansion:function(V){this.options.recursiveExpansion&&(V?this._updateOneBranch(V):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(zs)},_updateNodesKeysArray:function(V){var e=this,t=[];return(0,E.__)(e._getDataBySelectionMode(),function(n,p){e._isNodeVisible(p)&&p.internalFields[V]&&(V===zs||e.options.multipleSelection?t.push(p.internalFields.key):(t.length&&e.toggleSelection(t[0],!1,!0),t=[p.internalFields.key]))}),t},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(V){return!1!==V.internalFields.item.visible},_getByKey:function(V,e){return V===this._dataStructure?this.options.dataConverter._getByKey(e):this.options.dataConverter.getByKey(V,e)},_setChildrenSelection:function(){var V=this;(0,E.__)(this._dataStructure,function(e,t){if(t.internalFields.childrenKeys.length){var n=t.internalFields.selected;!0===n&&V._toggleChildrenSelection(t,n)}})},_setParentSelection:function(){var V=this;(0,E.__)(this._dataStructure,function(e,t){V.options.dataConverter.getParentNode(t)&&t.internalFields.parentKey!==V.options.rootValue&&V._iterateParents(t,function(p){var P=V._calculateSelectedState(p);V._setFieldState(p,Wn,P)})})},_setParentExpansion:function(){var V=this;(0,E.__)(this._dataStructure,function(e,t){t.internalFields.expanded&&V._updateOneBranch(t.internalFields.key)})},_updateOneBranch:function(V){var e=this,t=this.getNodeByKey(V);e._iterateParents(t,function(n){e._setFieldState(n,zs,!0)})},_iterateChildren:function(V,e,t,n){if((0,m.Tn)(t)){var p=this,P=V.internalFields.key;-1===(n=n||[]).indexOf(P)&&(n.push(P),(0,E.__)(V.internalFields.childrenKeys,function(J,fe){var ke=p.getNodeByKey(fe);t(ke),ke.internalFields.childrenKeys.length&&e&&p._iterateChildren(ke,e,t,n)}))}},_iterateParents:function(V,e,t){if(V.internalFields.parentKey!==this.options.rootValue&&(0,m.Tn)(e)){var n=V.internalFields.key;if(-1===(t=t||[]).indexOf(n)){t.push(n);var p=this.options.dataConverter.getParentNode(V);p&&(e(p),p.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(p,e,t))}}},_calculateSelectedState:function(V){for(var e=V.internalFields.childrenKeys.length,t=0,n=0,p=!1,P=0;P<=e-1;P++){var J=this.getNodeByKey(V.internalFields.childrenKeys[P]),ke=J.internalFields.selected;!1===J.internalFields.item.visible?n++:ke?t++:void 0===ke&&(t+=.5)}return t&&(p=t===e-n||void 0),p},_toggleChildrenSelection:function(V,e){var t=this;this._iterateChildren(V,!0,function(n){t._isNodeVisible(n)&&t._setFieldState(n,Wn,e)})},_setFieldState:function(V,e,t){V.internalFields[e]!==t&&(V.internalFields[e]=t,V.internalFields.publicNode&&(V.internalFields.publicNode[e]=t),this.options.dataAccessors.setters[e](V.internalFields.item,t),this.options.onNodeChanged(V))},_markChildren:function(V){var e=this;(0,E.__)(V,function(t,n){var p=e.getIndexByKey(n),P=e.getNodeByKey(n);e._dataStructure[p]=0,P.internalFields.childrenKeys.length&&e._markChildren(P.internalFields.childrenKeys)})},_removeNode:function(V){var e=this.getNodeByKey(V);this._dataStructure[this.getIndexByKey(V)]=0,this._markChildren(e.internalFields.childrenKeys);var t=this,n=0,p=(0,o.X)([],this._dataStructure);(0,E.__)(p,function(P,J){J||(t._dataStructure.splice(P-n,1),n++)})},_addNode:function(V){var e=this.options.dataConverter,t=e._convertItemToNode(V,this.options.dataAccessors.getters.parentKey(V));this._dataStructure=this._dataStructure.concat(t),this._initialDataStructure=this._initialDataStructure.concat(t),e._dataStructure=e._dataStructure.concat(t)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(V){var e=null;return(0,E.__)(this._dataStructure,function(t,n){if(n.internalFields.item===V)return e=n,!1}),e},getNodesByItems:function(V){var e=this,t=[];return(0,E.__)(V,function(n,p){var P=e.getNodeByItem(p);P&&t.push(P)}),t},getNodeByKey:function(V,e){return this._getByKey(e||this._getDataBySelectionMode(),V)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(V){return V.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(V){return(0,Ia.A)(this._dataStructure,{langParams:this.options.langParams}).filter(["internalFields.parentKey",V]).toArray()},getIndexByKey:function(V){return this.options.dataConverter.getIndexByKey(V)},addItem:function(V){this._addNode(V),this._updateFields()},removeItem:function(V){this._removeNode(V),this._updateFields()},toggleSelection:function(V,e,t){var n=this._isSingleModeUnselect(e),p=this._getByKey(t||n?this._initialDataStructure:this._dataStructure,V);this._setFieldState(p,Wn,e),this.options.recursiveSelection&&!t&&(e?this._setChildrenSelection():this._toggleChildrenSelection(p,e),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(Wn)},_isSingleModeUnselect:function(V){return!this.options.multipleSelection&&!V},toggleNodeDisabledState:function(V,e){var t=this.getNodeByKey(V);this._setFieldState(t,"disabled",e)},toggleSelectAll:function(V){if((0,m.O9)(V)){var e=this,t=e._selectedNodesKeys[e._selectedNodesKeys.length-1],n=e._isSingleModeUnselect(V)?this._initialDataStructure:this._dataStructure;(0,E.__)(n,function(p,P){e._isNodeVisible(P)&&e._setFieldState(P,Wn,V)}),e._selectedNodesKeys=e._updateNodesKeysArray(Wn),!V&&e.options.selectionRequired&&e.toggleSelection(t,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(V,e){var t=this.getNodeByKey(V);this._setFieldState(t,zs,e),e&&this._updateExpansion(V),this._expandedNodesKeys=this._updateNodesKeysArray(zs)},isFiltered:function(V){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[V]).length},_createCriteria:function(V,e,t){var n=[];return Array.isArray(V)?((0,E.__)(V,function(p,P){n.push([P,t,e],"or")}),n.pop(),n):[V,t,e]},_filterDataStructure:function(V,e){var t=this.options.searchExpr||this.options.dataAccessors.getters.display,n=wa.A.getOperationBySearchMode(this.options.searchMode),p=this._createCriteria(t,V,n);return(0,Ia.A)(e=e||this._initialDataStructure,{langParams:this.options.langParams}).filter(p).toArray()},search:function(V){var e=this,t=this._filterDataStructure(V),n=this.options.dataConverter;return function p(P,J){for(var fe=P.length;J<fe;){var ke=P[J];if(ke.internalFields.parentKey!==e.options.rootValue){var Ue=n.getParentNode(ke);Ue?(Ue.internalFields.expanded||e._setFieldState(Ue,zs,!0),P.includes(Ue)?J++:(P.splice(J,0,Ue),p(P,J))):(Et.A.log("W1007",ke.internalFields.parentKey,ke.internalFields.key),J++)}else J++}}(t,0),this.options.sort&&(t=vr.A.queryByOptions((0,Ia.A)(t),{sort:this.options.sort,langParams:this.options.langParams}).toArray()),n._indexByKey={},(0,E.__)(t,function(p,P){P.internalFields.childrenKeys=[],n._indexByKey[P.internalFields.key]=p}),n._dataStructure=t,n.setChildrenKeys(),n._dataStructure}});var hd=D(14874),Zc=D(56311);const Vh=hd.A.inherit({_getDefaultOptions:function(){return(0,o.X)(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===Ca.A.real().deviceType&&!Ca.A.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var V=this._createDataAdapterAccessors();this._dataAdapter=new tl((0,o.X)({dataAccessors:{getters:V.getters,setters:V.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:s.lQ,_getItemExtraPropNames:s.lQ,_initDynamicTemplates:function(){var V=["text","html","items","icon"].concat(this._getItemExtraPropNames());this._templateManager.addDefaultTemplates({item:new Zc.U(this._addContent.bind(this),V,this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})})},_addContent:function(V,e){V.html(e.html).append(this._getIconContainer(e)).append(this._getTextContainer(e))},_getLinkContainer:function(V,e,t){var{linkAttr:n,url:p}=t,P=(0,m.Gv)(n)?n:{};return(0,j.A)("<a>").addClass("dx-item-url").attr((0,Nt.A)({},P,{href:p})).append(V).append(e)},_getIconContainer:function(V){if(V.icon){var e=(0,bo.N)(V.icon);return e.is("img")&&e.attr("alt","".concat(this.NAME," item icon")),e}},_getTextContainer:function(V){return(0,j.A)("<span>").text(V.text)},_initAccessors:function(){var V=this;(0,E.__)(this._getAccessors(),function(e,t){V._compileAccessor(t)}),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(V){var e=this,t=[];return(0,E.__)(V.internalFields.childrenKeys,function(n,p){var P=e._dataAdapter.getNodeByKey(p);t.push(P)}),t},_hasChildren:function(V){return V&&V.internalFields.childrenKeys.length},_compileAccessor:function(V){var e="_"+V+"Getter",t="_"+V+"Setter",n=this.option(V+"Expr");return n?(0,m.Tn)(n)?(this[t]=function(p,P){p[n()]=P},void(this[e]=function(p){return p[n()]})):(this[e]=(0,aa.Hz)(n),void(this[t]=(0,aa.vL)(n))):(this[e]=s.lQ,void(this[t]=s.lQ))},_createDataAdapterAccessors:function(){var V=this,e={getters:{},setters:{}};return(0,E.__)(this._getAccessors(),function(t,n){var P="_"+n+"Setter",J="parentId"===n?"parentKey":n;e.getters[J]=V["_"+n+"Getter"],e.setters[J]=V[P]}),e.getters.display=this._displayGetter?this._displayGetter:t=>t.text,e},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:s.lQ,_renderItemFrame:function(V,e){var t=this.callBase.apply(this,arguments);return t.toggleClass("dx-state-disabled",!!this._disabledGetter(e)),t},_optionChanged:function(V){switch(V.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(V);break;default:this.callBase(V)}}});var Ks=D(14407);const Hh=class ph extends Ks.A{_getPlainItems(){return(0,E.Tj)(this._collectionWidget.option("items"),function e(t){return t.items?[t].concat((0,E.Tj)(t.items,e)):t})}_stringifyItem(e){return JSON.stringify(e,(t,n)=>"template"===t?this._getTemplateString(n):n)}_getTemplateString(e){return"object"==typeof e?(0,j.A)(e).text():e.toString()}};var fh=D(12338),zh="dx-menu",$p=zh+"-no-icons",Zd=zh+"-item",Zu=Zd+"-content",ko=Zd+"-selected",Uh=Zd+"-wrapper",Gh=zh+"-items-container",qd=Zd+"-expanded",qc=zh+"-separator",kc=zh+"-last-group-item",xl=Zd+"-has-text",Wh=Zd+"-has-icon",sl=Zd+"-has-submenu",dc=Zd+"-popout",Ru=dc+"-container",_u=Zd+"-text",cc={show:50,hide:300},eu="".concat(_u,"-with-url");const eh=(()=>{class V extends Vh{_getDefaultOptions(){return(0,o.X)(super._getDefaultOptions(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})}_itemDataKey(){return"dxMenuItemDataKey"}_itemClass(){return Zd}_setAriaSelectionAttribute(){}_selectedItemClass(){return ko}_widgetClass(){return"dx-menu-base"}_focusTarget(){return this._itemContainer()}_clean(){this.option("focusedElement",null),super._clean()}_supportedKeys(){return(0,o.X)(super._supportedKeys(),{space:()=>{var t=(0,j.A)(this.option("focusedElement"));!t.length||!this._isSelectionEnabled()||this.selectItem(t[0])},pageUp:s.lQ,pageDown:s.lQ})}_isSelectionEnabled(){return"single"===this.option("selectionMode")}_init(){this._activeStateUnit=".".concat(Zd),super._init(),this._renderSelectedItem(),this._initActions()}_getLinkContainer(t,n,p){var{linkAttr:P,url:J}=p;return t?.addClass("dx-icon-with-url"),n?.addClass(eu),super._getLinkContainer(t,n,{linkAttr:P,url:J})}_addContent(t,n){var{html:p,url:P}=n;if(P){t.html(p);var J=this._getLinkContainer(this._getIconContainer(n),this._getTextContainer(n),n);t.append(J)}else super._addContent(t,n);t.append(this._getPopoutContainer(n)),this._addContentClasses(n,t.parent())}_getTextContainer(t){var{text:n}=t;if(n){var p=(0,j.A)("<span>").addClass(_u),P=(0,m.Qd)(t)?n:String(t);return p.text(P)}}_getItemExtraPropNames(){return["url","linkAttr"]}_getPopoutContainer(t){var p,n=t.items;if(n&&n.length){var P=(0,j.A)("<div>").addClass(dc);p=(0,j.A)("<span>").addClass(Ru).append(P)}return p}_getDataAdapterOptions(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}}_selectByItem(t){if(t){var n=this._dataAdapter.getNodeByItem(t);this._dataAdapter.toggleSelection(n.internalFields.key,!0)}}_renderSelectedItem(){var t=this._dataAdapter.getSelectedNodesKeys(),n=t.length&&t[0],p=this.option("selectedItem");if(n){var P=this._dataAdapter.getNodeByKey(n);if(!1!==P.selectable){if(!p)return void this.option("selectedItem",P.internalFields.item);p!==P.internalFields.item&&(this._dataAdapter.toggleSelection(n,!1),this._selectByItem(p))}}else this._selectByItem(p)}_initActions(){}_initMarkup(){super._initMarkup(),this.option("useInkRipple")&&this._renderInkRipple()}_renderInkRipple(){this._inkRipple=(0,zn.XX)()}_toggleActiveState(t,n,p){if(super._toggleActiveState.apply(this,arguments),this._inkRipple){var P={element:t,event:p};n?this._inkRipple.showWave(P):this._inkRipple.hideWave(P)}}_getShowSubmenuMode(){var t=this.option("showSubmenuMode");return t=(0,m.Gv)(t)?t.name:t,this._isDesktopDevice()?t:"onClick"}_initSelectedItems(){}_isDesktopDevice(){return"desktop"===Ca.A.real().deviceType}_initEditStrategy(){this._editStrategy=new Hh(this)}_addCustomCssClass(t){t.addClass(this.option("cssClass"))}_itemWrapperSelector(){return".".concat(Uh)}_hoverStartHandler(t){var n=this._getItemElementByEventArgs(t);!n||this._isItemDisabled(n)||(t.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,n),this._getSubmenuDelay("show"))))}_getAvailableItems(t){return super._getAvailableItems(t).filter(function(){return"hidden"!==(0,j.A)(this).css("visibility")})}_isItemDisabled(t){return this._disabledGetter(t.data(this._itemDataKey()))}_showSubmenu(t){this._addExpandedClass(t)}_addExpandedClass(t){(0,j.A)(t).addClass(qd)}_getSubmenuDelay(t){var{delay:n}=this.option("showSubmenuMode");return(0,m.O9)(n)?(0,m.Gv)(n)?n[t]:n:cc[t]}_getItemElementByEventArgs(t){var n=(0,j.A)(t.target);if(n.hasClass(this._itemClass())||n.get(0)===t.currentTarget)return n;for(;!n.hasClass(this._itemClass());)if((n=n.parent()).hasClass("dx-submenu"))return null;return n}_hoverEndHandler(){clearTimeout(this._showSubmenusTimeout)}_hasSubmenu(t){return t&&t.internalFields.childrenKeys.length}_renderContentImpl(){this._renderItems(this._dataAdapter.getRootNodes())}_renderItems(t,n){if(t.length){this.hasIcons=!1;var p=this._renderContainer(this.$element(),n),P=-1,J=-1;(0,E.__)(t,(fe,ke)=>{var Ue=!1!==ke.visible;Ue&&P<0&&(P=fe),P<fe&&(ke.beginGroup||fe===J)&&(J=Ue?fe:fe+1),fe===J&&P<fe&&this._renderSeparator(p),this._renderItem(fe,ke,p)}),this.hasIcons||p.addClass($p)}}_renderContainer(t){var n=(0,j.A)("<ul>");return this.setAria("role","none",n),n.appendTo(t).addClass(Gh)}_createDOMElement(t){var n=(0,j.A)("<li>");return this.setAria("role","none",n),n.appendTo(t).addClass(Uh)}_renderItem(t,n,p,P){var J=this.option("items"),fe=P||this._createDOMElement(p);J[t+1]&&J[t+1].beginGroup&&fe.addClass(kc);var ke=super._renderItem(t,n.internalFields.item,fe);n.internalFields.item===this.option("selectedItem")&&ke.addClass(ko),ke.attr("tabIndex",-1),this._hasSubmenu(n)&&this.setAria("haspopup","true",ke)}_renderItemFrame(t,n,p){var P=p.children(".".concat(Zd));return P.length?P:super._renderItemFrame.apply(this,arguments)}_refreshItem(t,n){var p=this._dataAdapter.getNodeByItem(n),P=t.data(this._itemIndexKey()),J=t.closest("ul"),fe=t.closest("li");this._renderItem(P,p,J,fe)}_addContentClasses(t,n){var P=!!t.icon,J=!!t.items&&!!t.items.length;n.toggleClass(xl,!!t.text&&!!t.text.length),n.toggleClass(Wh,P),this.hasIcons||(this.hasIcons=P),n.toggleClass(sl,J)}_getItemContent(t){var n=super._getItemContent(t);return n.length||(n=t.children(".".concat(Zu))),n}_postprocessRenderItem(t){var n=(0,j.A)(t.itemElement),p=this._dataAdapter.getSelectedNodesKeys();p.length&&this._selectedGetter(t.itemData)&&this._isItemSelectable(t.itemData)&&this._dataAdapter.getNodeByItem(t.itemData).internalFields.key===p[0]?(n.addClass(this._selectedItemClass()),this._setAriaSelectionAttribute(n,"true")):this._setAriaSelectionAttribute(n,"false")}_isItemSelectable(t){return!1!==t.selectable}_renderSeparator(t){(0,j.A)("<li>").appendTo(t).addClass(qc)}_itemClickHandler(t){if(!t._skipHandling){var n=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(t,"onItemClick",{},{beforeExecute:this._itemClick,afterExecute:n.bind(this)}),t._skipHandling=!0}}_itemClick(t){var{event:n,itemData:p}=t.args[0],P=this._getItemElementByEventArgs(n),J=P&&P.find(".".concat("dx-item-url")).get(0);p.url&&J&&J.click()}_updateSubmenuVisibilityOnClick(t){this._updateSelectedItemOnClick(t),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(t.args[0].itemElement)}_updateSelectedItemOnClick(t){var n=t.args?t.args[0]:t;if(this._isItemSelectAllowed(n.itemData)){var p=this._dataAdapter.getSelectedNodesKeys(),P=p.length&&this._dataAdapter.getNodeByKey(p[0]);P&&this._toggleItemSelection(P,!1),P&&P.internalFields.item===n.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionWithoutOptionChange("selectedItem",null)):this.selectItem(n.itemData)}}_isItemSelectAllowed(t){var n=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&n&&this._isItemSelectable(t)&&!this._itemsGetter(t)}_isContainerEmpty(){return this._itemContainer().is(":empty")}_syncSelectionOptions(){return(0,s.TA)()}_optionChanged(t){switch(t.name){case"showSubmenuMode":break;case"selectedItem":var n=this._dataAdapter.getNodeByItem(t.value),p=this._dataAdapter.getSelectedNodesKeys()[0];if(n&&n.internalFields.key!==p){if(!1===n.selectable)break;p&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(p),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:super._optionChanged(t)}}_toggleItemSelection(t,n){var p=this._getElementByItem(t.internalFields.item);p&&(0,j.A)(p).toggleClass(ko),this._dataAdapter.toggleSelection(t.internalFields.key,n)}_getElementByItem(t){var n;return(0,E.__)(this._itemElements(),(p,P)=>(0,j.A)(P).data(this._itemDataKey())!==t||(n=P,!1)),n}_updateSelectedItems(t,n){(t||n)&&this._fireSelectionChangeEvent(n,t)}_fireSelectionChangeEvent(t,n){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[t],removedItems:[n]})}selectItem(t){var n=t.nodeType?this._getItemData(t):t,p=this._dataAdapter.getSelectedNodesKeys()[0],P=this.option("selectedItem"),J=this._dataAdapter.getNodeByItem(n);J.internalFields.key!==p&&(p&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(p),!1),this._toggleItemSelection(J,!0),this._updateSelectedItems(P,n),this._setOptionWithoutOptionChange("selectedItem",n))}unselectItem(t){var n=t.nodeType?this._getItemData(t):t,p=this._dataAdapter.getNodeByItem(n),P=this.option("selectedItem");p.internalFields.selected&&(this._toggleItemSelection(p,!1),this._updateSelectedItems(P,null),this._setOptionWithoutOptionChange("selectedItem",null))}}return V.ItemClass=fh.A,V})();var Cc=D(94935),mh=D(44602),Kf="dx-menu",Kp=Kf+"-item",Xp=Kp+"-expanded",Xf=Kf+"-items-container",nt=Kp+"-wrapper",Ct="dx-submenu",In="dx-state-hover",th=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],gh=["up","down","first","last"],dp="dxcontextmenu",_h=(0,Ie.zk)();class gm extends eh{getShowEvent(e){var t=null;return(0,m.Gv)(e)?null!==e.name&&(t=e.name||dp):t=e,t}getShowDelay(e){return(0,m.Gv)(e)&&e.delay}_getDefaultOptions(){return(0,o.X)(super._getDefaultOptions(),{showEvent:dp,hideOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>!(0,Ie.Vd)(),options:{animation:null}}])}_setDeprecatedOptions(){super._setDeprecatedOptions(),(0,o.X)(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.2",alias:"hideOnOutsideClick"}})}_initActions(){this._actions={},(0,E.__)(th,(e,t)=>{this._actions[t]=this._createActionByOption(t)||s.lQ})}_setOptionsByReference(){super._setOptionsByReference(),(0,o.X)(this._optionsByReference,{animation:!0,selectedItem:!0})}_focusInHandler(){}_itemContainer(){return this._overlay?this._overlay.$content():(0,j.A)()}_eventBindingTarget(){return this._itemContainer()}itemsContainer(){return this._overlay?this._overlay.$content():void 0}_supportedKeys(){return(0,o.X)(super._supportedKeys(),{space:()=>{var e=(0,j.A)(this.option("focusedElement"));this.hide(),e.length&&this._isSelectionEnabled()&&this.selectItem(e[0])},escape:this.hide})}_getActiveItem(){var e=this._getAvailableItems(),t=e.filter(".".concat("dx-state-focused")),n=e.filter(".".concat(In));return n.closest(".".concat(Xf)).find(".".concat(Kp)).index(t)>=0?t:n.length?n:super._getActiveItem()}_moveFocus(e){var fe,t=this._getItemsByLocation(e),n=this._getActiveItem(!0),p=this.itemsContainer().find(".".concat(In)),J=!(!(0,j.A)(this.option("focusedElement")).length&&!p.length);switch(e){case"up":fe=J?this._prevItem(t):n,this._setFocusedElement(fe),n.is(t.first())&&this._actions.onLeftFirstItem(n);break;case"down":fe=J?this._nextItem(t):n,this._setFocusedElement(fe),n.is(t.last())&&this._actions.onLeftLastItem(n);break;case"right":fe=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(t,e),this._setFocusedElement(fe);break;case"left":fe=this.option("rtlEnabled")?this._expandSubmenuHandler(t,e):this._hideSubmenuHandler(),this._setFocusedElement(fe);break;case"first":fe=t.first(),this._setFocusedElement(fe);break;case"last":fe=t.last(),this._setFocusedElement(fe);break;default:return super._moveFocus(e)}}_setFocusedElement(e){e&&0!==e.length&&this.option("focusedElement",(0,z.c)(e))}_getItemsByLocation(e){var n,t=this._getActiveItem(!0);return gh.includes(e)&&(n=t.closest(".".concat(Xf)).children().children()),this._getAvailableItems(n)}_getAriaTarget(){return this.$element()}_refreshActiveDescendant(){if((0,m.O9)(this._overlay)){var e=this._overlay.$content();super._refreshActiveDescendant(e)}}_hideSubmenuHandler(){var e=this._getActiveItem(!0),t=e.parents(".".concat(Xp)).first();return t.length?(this._hideSubmenusOnSameLevel(t),this._hideSubmenu(e.closest(".".concat(Ct))),t):(this._actions.onCloseRootSubmenu(e),e)}_expandSubmenuHandler(e,t){var n=this._getActiveItem(!0),p=this._getItemData(n),P=this._dataAdapter.getNodeByItem(p),J=this._hasSubmenu(P),fe=n.children(".".concat(Ct));if(J&&!n.hasClass("dx-state-disabled"))return(!fe.length||"hidden"===fe.css("visibility"))&&this._showSubmenu(n),this._nextItem(this._getItemsByLocation(t));this._actions.onExpandLastSubmenu(n)}_clean(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),super._clean()}_initMarkup(){this.$element().addClass("dx-has-context-menu"),super._initMarkup()}_render(){super._render(),this._renderVisibility(this.option("visible")),this._addWidgetClass()}_renderContentImpl(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()}_attachKeyboardEvents(){!this._keyboardListenerId&&this._focusTarget().length&&super._attachKeyboardEvents()}_renderContextMenuOverlay(){if(!this._overlay){var e=this._getOverlayOptions();this._overlay=this._createComponent((0,j.A)("<div>").appendTo(this._$element),ts.A,e);var t=this._overlay.$content();t.addClass("dx-context-menu"),this._addCustomCssClass(t),this._addPlatformDependentClass(t),this._attachContextMenuEvent()}}preventShowingDefaultContextMenuAboveOverlay(){var e=this._itemContainer(),t=(0,h.b4)(Cc.U,this.NAME);_.A.off(e,t,".".concat(Ct)),_.A.on(e,t,".".concat(Ct),(n=>{n.stopPropagation(),n.preventDefault(),_.A.off(e,t,".".concat(Ct))}).bind(this))}_itemContextMenuHandler(e){super._itemContextMenuHandler(e),e.stopPropagation()}_addPlatformDependentClass(e){Ca.A.current().phone&&e.addClass("dx-menu-phone-overlay")}_detachShowContextMenuEvents(e){var t=this.getShowEvent(this.option("showEvent"));if(t){var n=(0,h.b4)(t,this.NAME);this._showContextMenuEventHandler?_.A.off(L.A.getDocument(),n,e,this._showContextMenuEventHandler):_.A.off((0,j.A)(e),n)}}_attachShowContextMenuEvents(){var e=this._getTarget(),t=this.getShowEvent(this.option("showEvent"));if(t){var n=(0,h.b4)(t,this.NAME),p=this._createAction(J=>{var fe=this.getShowDelay(this.option("showEvent"));fe?setTimeout(()=>this._show(J.event),fe):this._show(J.event)},{validatingTargetName:"target"}),P=J=>p({event:J,target:(0,j.A)(J.currentTarget)});p=this._createAction(p),(0,m.Kb)(e)||e.nodeType||(0,m.l6)(e)?(this._showContextMenuEventHandler=void 0,_.A.on(e,n,P)):(this._showContextMenuEventHandler=P,_.A.on(L.A.getDocument(),n,e,this._showContextMenuEventHandler))}}_hoverEndHandler(e){super._hoverEndHandler(e),e.stopPropagation()}_renderDimensions(){}_renderContainer(e,t){var n=t||this._itemContainer();(e=(0,j.A)("<div>")).appendTo(n).addClass(Ct).css("visibility",t?"hidden":"visible"),e.parent().hasClass("dx-overlay-content")||this._addCustomCssClass(e);var p=super._renderContainer(e);return t?p:this.option("width")?p.css("minWidth",this.option("width")):this.option("height")?p.css("minHeight",this.option("height")):p}_renderSubmenuItems(e,t){this._renderItems(this._getChildNodes(e),t),this._actions.onSubmenuCreated({itemElement:(0,z.c)(t),itemData:e.internalFields.item,submenuElement:(0,z.c)(t.children(".".concat(Ct)))})}_getOverlayOptions(){var e=this.option("position");return{focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,hideOnOutsideClick:n=>this._hideOnOutsideClickHandler(n),propagateOutsideClick:!0,hideOnParentScroll:!0,deferRendering:!1,position:{at:e.at,my:e.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this),visualContainer:_h}}_overlayShownActionHandler(e){this._actions.onShown(e)}_overlayHidingActionHandler(e){this._actions.onHiding(e),e.cancel||(this._hideAllShownSubmenus(),this._setOptionWithoutOptionChange("visible",!1))}_overlayHiddenActionHandler(e){this._actions.onHidden(e)}_shouldHideOnOutsideClick(e){var{closeOnOutsideClick:t,hideOnOutsideClick:n}=this.option();return(0,m.Tn)(n)?n(e):(0,m.Tn)(t)?t(e):n||t}_hideOnOutsideClickHandler(e){if(!this._shouldHideOnOutsideClick(e))return!1;if(L.A.isDocument(e.target))return!0;var t=this._getActiveItemsContainer(e.target),n=this._getItemsContainers(),p=this._searchActiveItem(e.target),P=this.$element().parents(".".concat(Kp)),J=p[0]===P[0]&&p.length&&P.length;return!(this._isIncludeOverlay(t,n)&&p.length)&&!J||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(p),!1)}_getActiveItemsContainer(e){return(0,j.A)(e).closest(".".concat(Xf))}_getItemsContainers(){return this._overlay.$content().find(".".concat(Xf))}_searchActiveItem(e){return(0,j.A)(e).closest(".".concat(Kp)).eq(0)}_isIncludeOverlay(e,t){var n=!1;return(0,E.__)(t,(p,P)=>{e.is(P)&&!n&&(n=!0)}),n}_hideAllShownChildSubmenus(e){var t=e.find(".".concat(Ct)),n=(0,o.X)([],this._shownSubmenus);t.length>0&&(0,E.__)(n,(p,P)=>{var J=this._searchActiveItem(P.context).parent();J.parent().is(e.parent().parent())&&!J.is(e.parent())&&this._hideSubmenu(P)})}_showSubmenu(e){var t=this._dataAdapter.getNodeByItem(this._getItemData(e));if(this._hideSubmenusOnSameLevel(e),this._hasSubmenu(t)){var n=e.children(".".concat(Ct)),p=n.length;super._showSubmenu(e),p||this._renderSubmenuItems(t,e),this._isSubmenuVisible(n)||this._drawSubmenu(e)}}_hideSubmenusOnSameLevel(e){var t=e.parent(".".concat(nt)).siblings().find(".".concat(Xp));t.length&&(t.removeClass(Xp),this._hideSubmenu(t.find(".".concat(Ct))))}_hideSubmenuGroup(e){this._isSubmenuVisible(e)&&this._hideSubmenuCore(e)}_isSubmenuVisible(e){return"visible"===e.css("visibility")}_drawSubmenu(e){var t=this.option("animation")?this.option("animation").show:{},n=e.children(".".concat(Ct)),p=this._getSubmenuPosition(e);this._overlay&&this._overlay.option("visible")&&((0,m.O9)(this._shownSubmenus)||(this._shownSubmenus=[]),this._shownSubmenus.includes(n)||this._shownSubmenus.push(n),t&&Tr.A.stop(n),Da.A.setup(n,p),t&&((0,m.Qd)(t.to)&&(t.to.position=p),this._animate(n,t)),n.css("visibility","visible"))}_animate(e,t){Tr.A.animate(e,t)}_getSubmenuPosition(e){var t=this.option("submenuDirection").toLowerCase(),p={collision:"flip",of:e.parent(".".concat(nt)),offset:{h:0,v:-1}};switch(t){case"left":p.at="left top",p.my="right top";break;case"right":p.at="right top",p.my="left top";break;default:this.option("rtlEnabled")?(p.at="left top",p.my="right top"):(p.at="right top",p.my="left top")}return p}_updateSubmenuVisibilityOnClick(e){if(e.args.length){var t=e.args[0].itemData,n=this._dataAdapter.getNodeByItem(t);if(n){var p=(0,j.A)(e.args[0].itemElement),P=p.find(".".concat(Ct));if(this._hasSubmenu(n)&&!P.length&&(this._renderSubmenuItems(n,p),P=p.find(".".concat(Ct))),(p.context!==P.context||"visible"!==P.css("visibility"))&&(this._updateSelectedItemOnClick(e),t&&!t.disabled&&(!t||!1!==t.closeMenuOnClick)))if(0===P.length){var ke=(0,j.A)(p.parents(".".concat(Ct))[0]);this._hideSubmenu(ke),!e.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(P)&&this._hideSubmenu(P),this._showSubmenu(p)}}}_hideSubmenu(e){var t=(0,o.X)([],this._shownSubmenus);(0,E.__)(t,(n,p)=>{(e.is(p)||(0,rr.gR)(e[0],p[0]))&&(p.parent().removeClass(Xp),this._hideSubmenuCore(p))})}_hideSubmenuCore(e){var t=this._shownSubmenus.indexOf(e),n=this.option("animation")?this.option("animation").hide:null;t>=0&&this._shownSubmenus.splice(t,1),this._stopAnimate(e),n&&this._animate(e,n),e.css("visibility","hidden")}_stopAnimate(e){Tr.A.stop(e,!0)}_hideAllShownSubmenus(){var e=(0,o.X)([],this._shownSubmenus);this._overlay.$content().find(".".concat(Xp)).removeClass(Xp),(0,E.__)(e,(n,p)=>{this._hideSubmenu(p)})}_visibilityChanged(e){e&&this._renderContentImpl()}_optionChanged(e){if(th.includes(e.name))this._initActions();else switch(e.name){case"visible":this._renderVisibility(e.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":e.previousValue&&this._detachShowContextMenuEvents(e.previousValue),this._invalidate();break;case"closeOnOutsideClick":case"hideOnOutsideClick":break;default:super._optionChanged(e)}}_renderVisibility(e){return e?this._show():this._hide()}_toggleVisibility(){}_show(e){var t={jQEvent:e},n=(new xe.cY).reject().promise();if(this._actions.onShowing(t),t.cancel)return n;var P,p=this._positionContextMenu(e);return p&&(this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionWithoutOptionChange("visible",!0),this._overlay.option("position",p),n=this._overlay.show(),e&&e.stopPropagation(),this._setAriaAttributes(),(null==e||null===(P=e.originalEvent)||void 0===P?void 0:P.type)===mh.A.name&&this.preventShowingDefaultContextMenuAboveOverlay()),n}_setAriaAttributes(){this._overlayContentId="dx-".concat(new q.A),this.setAria("owns",this._overlayContentId),this.setAria({id:this._overlayContentId,role:"menu"},this._overlay.$content())}_cleanAriaAttributes(){this._overlay&&this.setAria("id",null,this._overlay.$content()),this.setAria("owns",void 0)}_getTarget(){return this.option("target")||this.option("position").of||(0,j.A)(L.A.getDocument())}_getContextMenuPosition(){return(0,o.X)({},this.option("position"),{of:this._getTarget()})}_positionContextMenu(e){var t=this._getContextMenuPosition(),n=this._isInitialOptionValue("position"),p=this._createActionByOption("onPositioning");e&&e.preventDefault&&n&&(t.of=e);var P={position:t,event:e};return p(P),P.cancel?t=null:P.event&&(P.event.cancel=!0,e.preventDefault()),t}_refresh(){if((0,Ie.Vd)())if(this._overlay){var e=this._overlay.option("position");super._refresh(),this._overlay&&this._overlay.option("position",e)}else super._refresh();else super._refresh()}_hide(){var e;return this._overlay&&(e=this._overlay.hide(),this._setOptionWithoutOptionChange("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),e||(new xe.cY).reject().promise()}toggle(e){var t=this.option("visible");return this._renderVisibility(e=void 0===e?!t:e)}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}}(0,gn.A)("dxContextMenu",gm);const tu=gm;var Rc={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},iu=["columnHeadersView","rowsView","footerView","headerPanel"];En.registerModule("contextMenu",{defaultOptions:()=>({onContextMenuPreparing:null}),controllers:{contextMenu:class yu extends cn.ViewController{init(){this.createAction("onContextMenuPreparing")}getContextMenuItems(e){if(!e)return!1;var p,P,J,fe,t=this,n=(0,j.A)(e.target);return(0,E.__)(iu,function(){var ke,Ue,Ze=t.getView(this);if((p=Ze&&Ze.element())&&(p.is(n)||p.find(n).length)){J=n.closest(".dx-row > td, .dx-row > tr"),P=J.parent();var Ft=Ze.getRowIndex(P),vi=J[0]&&J[0].cellIndex,Li=P.data("options"),tn={event:e,targetElement:(0,z.c)(n),target:Rc[this],rowIndex:Ft,row:Ze._getRows()[Ft],columnIndex:vi,column:null===(Ue=null===(ke=Li?.cells)||void 0===ke?void 0:ke[vi])||void 0===Ue?void 0:Ue.column};if(tn.items=Ze.getContextMenuItems&&Ze.getContextMenuItems(tn),t.executeAction("onContextMenuPreparing",tn),t._contextMenuPrepared(tn),fe=tn.items)return!1}}),fe}_contextMenuPrepared(e){}}},views:{contextMenuView:class wp extends cn.View{init(){super.init(),this._contextMenuController=this.getController("contextMenu")}_renderCore(){var e=this.element().addClass("dx-context-menu");this.setAria("role","presentation",e),this._createComponent(e,tu,{onPositioning:t=>{var{event:n}=t,p=t.component,P=this._contextMenuController.getContextMenuItems(n);P?(p.option("items",P),n.stopPropagation()):t.cancel=!0},onItemClick(t){var n,p;null===(p=null===(n=t.itemData)||void 0===n?void 0:n.onItemClick)||void 0===p||p.call(n,t)},cssClass:this.getWidgetContainerClass(),target:this.component.$element()})}}}});var ih="dx-error-row",cp="dx-error-message";En.registerModule("errorHandling",{defaultOptions:()=>({errorRowEnabled:!0}),controllers:{errorHandling:class wf extends cn.ViewController{init(){this._resizingController=this.getController("resizing"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView")}_createErrorRow(e,t){var n,p,P=this._renderErrorMessage(e);return t?(n=(0,j.A)("<tr>").attr("role","row").addClass(ih),p=(0,j.A)("<div>").addClass("dx-closebutton").addClass(this.addWidgetPrefix("action")),_.A.on(p,ce.U,this.createAction(J=>{var fe,ke,Ze,Ue=J.event,Ft=(0,j.A)(Ue.currentTarget).closest(".".concat(ih)).index();Ue.stopPropagation(),(0,E.__)(t,(vi,Li)=>{Ze=(0,j.A)(Li).children("tbody").children("tr").eq(Ft),this.removeErrorRow(Ze)}),null===(ke=null===(fe=this._resizingController)||void 0===fe?void 0:fe.fireContentReadyAction)||void 0===ke||ke.call(fe)})),(0,j.A)("<td>").attr({colSpan:this._columnsController.getVisibleColumns().length,role:"gridcell"}).prepend(p).append(P).appendTo(n),n):P}_renderErrorMessage(e){var t=e.url?e.message.replace(e.url,""):e.message||e,n=(0,j.A)("<div>").attr("role","alert").attr("aria-roledescription",v.A.format("dxDataGrid-ariaError")).addClass(cp).text(t);return e.url&&(0,j.A)("<a>").attr("href",e.url).text(e.url).appendTo(n),n}renderErrorRow(e,t,n){var p,P,fe,ke,J=this;if(n)return n.find(".".concat(cp)).remove(),fe=J._createErrorRow(e),n.prepend(fe),fe;var Ue=t>=0||!J._columnHeadersView.isVisible()?J._rowsView:J._columnHeadersView,Ze=Ue.getTableElements();return(0,E.__)(Ze,(Ft,vi)=>{if(fe=J._createErrorRow(e,Ze),ke=ke||fe,t>=0){var Li=Ue._getRowElements((0,j.A)(vi)).eq(t);J.removeErrorRow(Li.next()),fe.insertAfter(Li)}else{var tn=(0,j.A)(vi).children("tbody"),On=tn.children("tr");J._columnHeadersView.isVisible()?(J.removeErrorRow(On.last()),(0,j.A)(vi).append(fe)):(J.removeErrorRow(On.first()),tn.first().prepend(fe))}}),null===(P=null===(p=this._resizingController)||void 0===p?void 0:p.fireContentReadyAction)||void 0===P||P.call(p),ke}removeErrorRow(e){if(!e){var t=this._columnHeadersView&&this._columnHeadersView.element();if(!(e=t&&t.find(".".concat(ih)))||!e.length){var n=this._rowsView.element();e=n&&n.find(".".concat(ih))}}e&&e.hasClass(ih)&&e.remove()}optionChanged(e){"errorRowEnabled"===e.name?e.handled=!0:super.optionChanged(e)}}},extenders:{controllers:{data:V=>class extends V{init(){super.init(),this.dataErrorOccurred.add((e,t)=>{this.option("errorRowEnabled")&&this._errorHandlingController.renderErrorRow(e,void 0,t)}),this.changed.add(e=>{var t,n;e&&"loadError"===e.changeType||this._editingController&&!this._editingController.hasChanges()&&(null===(n=null===(t=this._errorHandlingController)||void 0===t?void 0:t.removeErrorRow)||void 0===n||n.call(t))})}}}}});var jh="borders",Gc="dx-gridbase-container",Zp="adaptiveHidden",_m=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],Ad=function(V){return(0,m.Kg)(V)&&V.endsWith("%")},vh=function(V,e){var t=V._rowsView.contentWidth();return t-V._getTotalWidth(e,t)};En.registerModule("gridView",{defaultOptions:()=>({showBorders:!1,renderAsync:!1}),controllers:{resizing:class Jf extends cn.ViewController{init(){this._prevContentMinHeight=null,this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._editorFactoryController=this.getController("editorFactory"),this._footerView=this.getView("footerView"),this._rowsView=this.getView("rowsView")}_initPostRenderHandlers(){this._refreshSizesHandler||(this._refreshSizesHandler=e=>{var t=(new xe.cY).resolve(null),n=e?.changeType,p=e?.isDelayed,P=n&&"updateSelection"!==n&&"updateFocusedRow"!==n&&"pageIndex"!==n&&!p;this._dataController.changed.remove(this._refreshSizesHandler),this._checkSize()&&(t=this._refreshSizes(e)),P&&(0,xe.z7)(t).done(()=>{this._setAriaLabel(),this.fireContentReadyAction()})},this._dataController.changed.add(()=>{this._dataController.changed.add(this._refreshSizesHandler)}))}_refreshSizes(e){var t,n=(new xe.cY).resolve(null),p=e?.changeType,P=e?.isDelayed,J=this._dataController.items();if(e&&"refresh"!==p&&"prepend"!==p&&"append"!==p){if("update"===p){if(0===(null===(t=e.changeTypes)||void 0===t?void 0:t.length))return n;!(J.length>1||"insert"!==e.changeTypes[0])||0===J.length&&"remove"===e.changeTypes[0]||e.needUpdateDimensions?n=this.resize():(n=new xe.cY,this._waitAsyncTemplates().done(()=>{(0,s.OX)(()=>(0,s.zE)(()=>(0,s.OX)(()=>{this._setScrollerSpacing(),this._rowsView.resize(),n.resolve()})))}).fail(n.reject))}}else P||(n=this.resize());return n}fireContentReadyAction(){this.component._fireContentReadyAction()}_getWidgetAriaLabel(){return"dxDataGrid-ariaDataGrid"}_setAriaLabel(){var e=Math.max(0,this._dataController.totalItemsCount());this.component.setAria("label",v.A.format(this._getWidgetAriaLabel(),e,this.component.columnCount()),this.component.$element().children(".".concat(Gc)))}_getBestFitWidths(){var e,t=this._rowsView,n=this._columnHeadersView,p=t.getColumnWidths();if(!p?.length){var P=n.getTableElement();n.setTableElement(null===(e=t.getTableElement())||void 0===e?void 0:e.children(".dx-header")),p=n.getColumnWidths(),n.setTableElement(P)}return p}_setVisibleWidths(e,t){var n=this._columnsController;n.beginUpdate(),(0,E.__)(e,(p,P)=>{var J=n.getColumnId(P);n.columnOption(J,"visibleWidth",t[p])}),n.endUpdate()}_toggleBestFitModeForView(e,t,n){if(e&&e.isVisible()){var p=this._rowsView.getTableElements(),P=e.getTableElements();(0,E.__)(p,(J,fe)=>{var ke,Ue=(0,j.A)(fe),Ze=P.eq(J);Ze&&Ze.length&&((ke=n?Ze.children("tbody").appendTo(Ue):Ue.children(".".concat(t)).appendTo(Ze)).toggleClass(t,n),ke.toggleClass(this.addWidgetPrefix("best-fit"),n))})}}_toggleBestFitMode(e){var t=this._rowsView.getTableElement(),n=this._rowsView.getTableElements().eq(1);t&&(t.css("tableLayout",e?"auto":"fixed"),t.children("colgroup").css("display",e?"none":""),(0,E.__)(n.find("tr.dx-group-row"),(p,P)=>{(0,j.A)(P).css("display",e?"none":"")}),n.toggleClass(this.addWidgetPrefix("table-fixed"),!e),this._toggleBestFitModeForView(this._columnHeadersView,"dx-header",e),this._toggleBestFitModeForView(this._footerView,"dx-footer",e),this._needStretch()&&(t.get(0).style.width=e?"auto":""))}_toggleContentMinHeight(e){var t=this._rowsView.getScrollable(),n=this._rowsView._findContentElement();!1===t?.option("useNative")&&(!0===e&&(this._prevContentMinHeight=n.get(0).style.minHeight),(0,m.O9)(this._prevContentMinHeight)&&n.css({minHeight:e?Ui.A.getContentHeightLimit(ye.A):this._prevContentMinHeight}))}_synchronizeColumns(){var ke,Ft,vi,e=this._columnsController,t=e.getVisibleColumns(),n=this.option("columnAutoWidth"),p=this.option("wordWrapEnabled"),P=t.some(tn=>!(0,m.O9)(tn.width)),J=this._needBestFit(),fe=!1,Ue=!1,Ze=[];!J&&(0,E.__)(t,(tn,On)=>{if("auto"===On.width)return J=!0,!1}),(0,E.__)(t,(tn,On)=>{if(On.minWidth)return fe=!0,!1}),this._setVisibleWidths(t,[]);var Li=this.component.$element();J&&(Ft=L.A.getActiveElement(Li.get(0)),vi=Ui.A.getSelectionRange(Ft),this._toggleBestFitMode(!0),ke=!0),this._toggleContentMinHeight(p),Li&&Li.get(0)&&this._maxWidth&&(delete this._maxWidth,Li[0].style.maxWidth=""),(0,s.OX)(()=>{var On;J?(Ze=this._getBestFitWidths(),(0,E.__)(t,(On,Qn)=>{var zr=e.getColumnId(Qn);e.columnOption(zr,"bestFitWidth",Ze[On],!0)})):fe&&(Ze=this._getBestFitWidths()),(0,E.__)(t,function(On){var V,{width:Qn}=this;"auto"!==Qn&&((0,m.O9)(Qn)?Ze[On]=(0,m.kf)(Qn)||(0,m.Kg)(V=Qn)&&V.endsWith("px")?parseFloat(Qn):Qn:n||(Ze[On]=void 0))}),ke&&(this._toggleBestFitMode(!1),ke=!1,Ft&&Ft!==L.A.getActiveElement())&&((0,ge.N)(Ft).bottom<0||function(V,e){(function oe(V,e){F=!0,V.focus({preventScroll:e}),F=!1})(V,!0),Ui.A.setSelectionRange(V,e)}(Ft,vi)),Ue=this._correctColumnWidths(Ze,t),n&&((0,E.__)(t,(Qn,zr)=>{"groupExpand"===zr.type&&(On=Ze[Qn])}),(0,E.__)(t,(Qn,zr)=>{"groupExpand"===zr.type&&On&&(Ze[Qn]=On)}),this._needStretch()&&this._processStretch(Ze,t)),(0,s.zE)(()=>{(J||Ue||P)&&this._setVisibleWidths(t,Ze),p&&this._toggleContentMinHeight(!1)})})}_needBestFit(){return this.option("columnAutoWidth")}_needStretch(){return this._columnsController.getVisibleColumns().some(e=>"auto"===e.width&&!e.command)}_getAverageColumnsWidth(e){return vh(this,e)/e.filter(p=>void 0===p).length}_correctColumnWidths(e,t){var p,n=this,P=!1,J=!1,fe=!1,ke=n.component.$element(),Ue=n._hasWidth,Ze=function(){var zr=p,la=t[zr],qo=e[zr]===Zp,Xl=e[zr],{minWidth:Es}=la;if(Es)if(void 0===Xl){var ul=n._getAverageColumnsWidth(e);Xl=ul}else if(Ad(Xl)){var Fd=function(V,e,t,n){return vh(V,n.map((p,P)=>P===e?t:p))}(n,zr,Es,e);Fd<0&&(Xl=-1)}var Kc=n._getRealColumnWidth(zr,e.map((Bd,Nh)=>zr===Nh?Xl:Bd));Es&&!qo&&Kc<Es&&(e[zr]=Es,fe=!0,p=-1),(0,m.O9)(la.width)||(J=!0),Ad(la.width)&&(P=!0)};for(p=0;p<t.length;p++)Ze();if(!J&&e.length){var Ft=n._rowsView.element(),vi=n._rowsView.contentWidth(),Li=n._rowsView.getScrollbarWidth(),tn=n._getTotalWidth(e,vi);if(tn<vi){var On=Ui.A.getLastResizableColumnIndex(t,e);if(On>=0&&(e[On]="auto",fe=!0,!1===Ue&&!P)){var Qn=n.option("showBorders")?Math.ceil((0,R.Ot)(Ft)-(0,R.hh)(Ft)):0;n._maxWidth=tn+Li+Qn,ke.css("maxWidth",n._maxWidth)}}}return fe}_processStretch(e,t){var n=this._rowsView.contentWidth(),p=this._getTotalWidth(e,n),P={length:0};if(e.length){(0,E.__)(t,function(Ze){(this.width||e[Ze]===Zp)&&(P[Ze]=!0,P.length++)});var J=n-p,fe=Math.floor(J/(e.length-P.length)),ke=J-fe*(e.length-P.length);if(J>=0)for(var Ue=0;Ue<e.length;Ue++)P[Ue]||(e[Ue]+=fe,ke>0&&(ke<1?(e[Ue]+=ke,ke=0):(e[Ue]++,ke--)))}}_getRealColumnWidth(e,t,n){var p=1,P=t[e];if(!Ad(P))return parseFloat(P);var J=t.reduce((Ze,Ft,vi)=>Ad(Ft)?Ze+parseFloat(Ft):Ze,0),fe=t.reduce((Ze,Ft)=>!Ft||Ft===Zp||Ad(Ft)?Ze:Ze+parseFloat(Ft),0),ke=(n=n||this._rowsView.contentWidth())-fe,Ue=J*n/100;return fe>0&&Ue+fe>=n&&(p=Ue>ke?ke/Ue:1),parseFloat(P)*n*p/100}_getTotalWidth(e,t){for(var n=0,p=0;p<e.length;p++){var P=e[p];P&&P!==Zp&&(n+=this._getRealColumnWidth(p,e,t))}return Math.ceil(n)}_getGroupElement(){return this.component.$element().children().get(0)}updateSize(e){var t=(0,j.A)(e),n=this.addWidgetPrefix("important-margin");if(void 0===this._hasHeight&&t&&t.is(":visible")&&(0,R.RG)(t)){var p=t.children(".".concat(this.getWidgetContainerClass()));p.length&&p.detach(),this._hasHeight=!!(0,R.Oq)(t);var P=(0,R.RG)(t);t.addClass(n),this._hasWidth=(0,R.RG)(t)===P,t.removeClass(n),p.length&&p.appendTo(t)}}publicMethods(){return["resize","updateDimensions"]}_waitAsyncTemplates(){var e,t,n;return(0,xe.z7)(null===(e=this._columnHeadersView)||void 0===e?void 0:e.waitAsyncTemplates(!0),null===(t=this._rowsView)||void 0===t?void 0:t.waitAsyncTemplates(!0),null===(n=this._footerView)||void 0===n?void 0:n.waitAsyncTemplates(!0))}resize(){if(!this.component._requireResize){var e=new xe.cY;return this._waitAsyncTemplates().done(()=>{(0,xe.z7)(this.updateDimensions()).done(e.resolve).fail(e.reject)}).fail(e.reject),e.promise()}}updateDimensions(e){var t=this;if(t._initPostRenderHandlers(),t._checkSize(e)){var n=t._resizeDeferred,p=t._resizeDeferred=new xe.cY;return(0,xe.z7)(n).always(()=>{(0,s.zE)(()=>{t._dataController.isLoaded()&&t._synchronizeColumns(),t._resetGroupElementHeight(),(0,s.OX)(()=>{(0,s.zE)(()=>{(0,s.OX)(()=>{t._updateDimensionsCore()})})})}).done(p.resolve).fail(p.reject)}),p.promise()}}_resetGroupElementHeight(){var e=this._getGroupElement(),t=this._rowsView.getScrollable();e&&e.style.height&&(!t||!t.scrollTop())&&(e.style.height="")}_checkSize(e){var t=this.component.$element(),n=t.is(":visible"),p=this._lastWidth!==(0,R.RG)(t)||this._lastHeight!==(0,R.Oq)(t)||this._devicePixelRatio!==(0,Ie.zk)().devicePixelRatio;return n&&(!e||p)}_setScrollerSpacingCore(){var e=this,t=e._rowsView.getScrollbarWidth(),n=e._rowsView.getScrollbarWidth(!0);(0,s.zE)(()=>{e._columnHeadersView&&e._columnHeadersView.setScrollerSpacing(t),e._footerView&&e._footerView.setScrollerSpacing(t),e._rowsView.setScrollerSpacing(t,n)})}_setScrollerSpacing(){var e=this._rowsView.getScrollable(),t=!0===this.option("scrolling.useNative");!e||t?(0,s.zE)(()=>{(0,s.OX)(()=>{this._setScrollerSpacingCore()})}):this._setScrollerSpacingCore()}_setAriaOwns(){var e,t,n,p=null===(e=this._columnHeadersView)||void 0===e?void 0:e.getTableElement(),P=null===(t=this._footerView)||void 0===t?void 0:t.getTableElement();null===(n=this._rowsView)||void 0===n||n.setAriaOwns(p?.attr("id"),P?.attr("id"))}_updateDimensionsCore(){var e,t=this,n=t._dataController,p=t._rowsView,P=t.component.$element(),J=this._getGroupElement(),fe=(0,R.Oq)(P),ke=null!==(e=t.option("height"))&&void 0!==e?e:P.get(0).style.height,Ue=!!ke&&"auto"!==ke,Ze=parseInt(P.css("maxHeight")),Ft=Ze&&fe>=Ze,vi=J&&J.scrollHeight===J.offsetHeight;t.updateSize(P),(0,s.zE)(()=>{p.hasHeight(t._hasHeight||!!Ze||Ue),this._setAriaOwns(),Ft&&!vi&&(0,j.A)(J).css("height",Ze),n.isLoaded()?(0,s.OX)(()=>{t._updateLastSizes(P),t._setScrollerSpacing(),(0,E.__)(_m,(tn,On)=>{var Qn=t.getView(On);Qn&&Qn.resize()}),this._editorFactoryController&&this._editorFactoryController.resize()}):p.setLoading(n.isLoading())})}_updateLastSizes(e){this._lastWidth=(0,R.RG)(e),this._lastHeight=(0,R.Oq)(e),this._devicePixelRatio=(0,Ie.zk)().devicePixelRatio}optionChanged(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"renderAsync":return void(e.handled=!0);default:super.optionChanged(e)}}},synchronizeScrolling:class Df extends cn.ViewController{_scrollChangedHandler(e,t,n){for(var p=0;p<e.length;p++)e[p]&&e[p].name!==n&&e[p].scrollTo({left:t.left,top:t.top})}init(){for(var e=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")],t=0;t<e.length;t++){var n=e[t];n&&n.scrollChanged.add(this._scrollChangedHandler.bind(this,e))}}}},views:{gridView:class Ef extends cn.View{_endUpdateCore(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())}init(){this._resizingController=this.getController("resizing"),this._dataController=this.getController("data")}getView(e){return this.component._views[e]}element(){return this._groupElement}optionChanged(e){(0,m.O9)(this._groupElement)&&"showBorders"===e.name?(this._groupElement.toggleClass(this.addWidgetPrefix(jh),!!e.value),e.handled=!0):super.optionChanged(e)}_renderViews(e){var t=this;(0,E.__)(_m,(n,p)=>{var P=t.getView(p);P&&P.render(e)})}_getTableRoleName(){return"group"}render(e){var t=!this._groupElement,n=this._groupElement||(0,j.A)("<div>").addClass(this.getWidgetContainerClass());n.addClass(Gc),n.toggleClass(this.addWidgetPrefix(jh),!!this.option("showBorders")),this.setAria("role","presentation",e),this.component.setAria("role",this._getTableRoleName(),n),this._rootElement=e||this._rootElement,t&&(this._groupElement=n,(0,Ie.Vd)()&&this._resizingController.updateSize(e),n.appendTo(e)),this._renderViews(n)}update(){this._rootElement&&this._groupElement&&(this._resizingController.resize(),this._dataController.isLoaded()&&this._resizingController.fireContentReadyAction())}}},VIEW_NAMES:_m});var Wc=D(22376),Se=["dxAutocomplete","dxButton","dxCheckBox","dxDateBox","dxMenu","dxSelectBox","dxTabs","dxTextBox","dxButtonGroup","dxDropDownButton"];function B(V,e){var t;if(V){var n=V._findItemElementByItem(e);if(n.length){var p=V._getItemData(n),P=!!(null!==(t=p.options)&&void 0!==t&&t.disabled||p.disabled||V.option("disabled")),{widget:J}=p;if(J&&-1!==Se.indexOf(J)){var fe=n.find(J.toLowerCase().replace("dx",".dx-"));if(fe.length){var ke,Ue,Ze=function(V){var e=V.data&&V.data(),t=e&&e.dxComponents,n=t&&t[0];return n&&e[n]}(fe);if(!Ze)return;var vi,Ft=null===(ke=Ze._focusTarget)||void 0===ke?void 0:ke.call(Ze);Ft="dxDropDownButton"===J?Ft&&Ft.find(".".concat("dx-buttongroup")):null!==(vi=Ft)&&void 0!==vi?vi:(0,j.A)(Ze.element());var Li=null===(Ue=p.options)||void 0===Ue?void 0:Ue.tabIndex;Ft.attr("tabIndex",P?-1:Li??0)}}}}}class Ce{constructor(e){this._toolbar=e}_initMarkup(){}_updateMenuVisibility(){}_renderMenuItems(){}_renderItem(){}_getMenuItems(){}_getToolbarItems(){var e;return null!==(e=this._toolbar.option("items"))&&void 0!==e?e:[]}_getItemsWidth(){return this._toolbar._getSummaryItemsSize("width",this._toolbar.itemElements(),!0)}_arrangeItems(){var e=this._toolbar._$toolbarItemsContainer.find(".".concat("dx-toolbar-label")).eq(0);if(e.length){var t=(0,R.RG)(this._toolbar.$element()),n=(0,R.Ot)(e)-(0,R.RG)(e);e.css("maxWidth",t-n)}}_hideOverflowItems(){}_dimensionChanged(){}_itemOptionChanged(){}_optionChanged(){}}var De=D(98041),Le=D(2839),je=D(31207),it="dx-toolbar-menu-action",Zt="dx-toolbar-hidden-button-group",fi="dx-toolbar-menu-section",Rt="dx-toolbar-menu-last-section";class nn extends je.i{_init(){super._init(),this._activeStateUnit=".".concat(it,":not(.").concat(Zt,")")}_initMarkup(){this._renderSections(),super._initMarkup(),this._setMenuRole()}_getSections(){return this._itemContainer().children()}_itemElements(){return this._getSections().children(this._itemSelector())}_renderSections(){var e=this._itemContainer();(0,E.__)(["before","center","after","menu"],(t,n)=>{var p="_$".concat(n,"Section");this[p]||(this[p]=(0,j.A)("<div>").addClass(fi)),this[p].appendTo(e)})}_renderItems(){super._renderItems.apply(this,arguments),this._updateSections()}_setMenuRole(){this.$element().find(".".concat("dx-scrollview-content")).attr("role","menu")}_updateSections(){var e=this.$element().find(".".concat(fi));e.removeClass(Rt),e.not(":empty").eq(-1).addClass(Rt)}_renderItem(e,t,n,p){var P,J=null!==(P=t.location)&&void 0!==P?P:"menu",fe=this["_$".concat(J,"Section")],ke=super._renderItem(e,t,fe,p);return this._getItemTemplateName({itemData:t})&&ke.addClass("dx-toolbar-menu-custom"),("menu"===J||"dxButton"===t.widget||"dxButtonGroup"===t.widget||t.isAction)&&ke.addClass(it),"dxButton"===t.widget&&ke.addClass("dx-toolbar-hidden-button"),"dxButtonGroup"===t.widget&&ke.addClass(Zt),ke.addClass(t.cssClass),ke}_getItemTemplateName(e){var t=super._getItemTemplateName(e),n=e.itemData;return n&&n.menuItemTemplate||t}_dataSourceOptions(){return{paginate:!1}}_itemClickHandler(e,t,n){(0,j.A)(e.target).closest(".".concat(it)).length&&super._itemClickHandler(e,t,n)}_clean(){this._getSections().empty(),super._clean()}}var fn=D(11299),$i=D(89902),vn=D(64633);let kn=(()=>{class V extends vn.A{_getDefaultOptions(){return(0,o.X)(super._getDefaultOptions(),{preventScrollEvents:!1})}_getToolbarName(){return"dxToolbar"}}return V.defaultOptions=function(e){vn.A.defaultOptions(e)},V})();(0,gn.A)("dxPopup",kn);const Fn=kn;class hn extends De.A{_supportedKeys(){var e={};return(!this.option("opened")||!this._list.option("focusedElement"))&&(e=this._button._supportedKeys()),(0,o.X)(super._supportedKeys(),e,{tab:function(){this._popup&&this._popup.hide()}})}_getDefaultOptions(){return(0,o.X)(super._getDefaultOptions(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",onButtonClick:null,activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,onItemRendered:null,closeOnClick:!0,useInkRipple:!1,container:void 0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}}})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return"desktop"===Ca.A.real().deviceType&&!Ca.A.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,fn.Nt)()},options:{useInkRipple:!0,animation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}}])}_init(){super._init(),this.$element().addClass("dx-dropdownmenu"),this._initItemClickAction(),this._initButtonClickAction()}_initItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")}_initButtonClickAction(){this._buttonClickAction=this._createActionByOption("onButtonClick")}_initTemplates(){this._templateManager.addDefaultTemplates({content:new $i.M("content")}),super._initTemplates()}_initMarkup(){this._renderButton(),super._initMarkup()}_render(){super._render(),this.setAria({haspopup:!0,expanded:this.option("opened")})}_renderContentImpl(){this.option("opened")&&this._renderPopup()}_clean(){this._cleanFocusState(),this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove(),delete this._list,delete this._popup}_renderButton(){var e=this.$element().addClass("dx-dropdownmenu-button");this._button=this._createComponent(e,Le.A,{icon:"overflow",template:"content",stylingMode:(0,fn.Ft)()?"text":"contained",useInkRipple:this.option("useInkRipple"),hoverStateEnabled:!1,focusStateEnabled:!1,onClick:t=>{this.option("opened",!this.option("opened")),this._buttonClickAction(t)}})}_toggleActiveState(e,t,n){this._button._toggleActiveState(e,t,n)}_toggleMenuVisibility(e){var t=e??!this._popup.option("visible");e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)}_renderPopup(){if(!this._$popup){this._$popup=(0,j.A)("<div>").appendTo(this.$element());var{rtlEnabled:e,container:t,animation:n}=this.option();this._popup=this._createComponent(this._$popup,"dxPopup",{onInitialized(p){var{component:P}=p;P.$wrapper().addClass("dx-dropdownmenu-popup-wrapper").addClass("dx-dropdownmenu-popup")},deferRendering:!1,contentTemplate:p=>this._renderList(p),_ignoreFunctionValueDeprecation:!0,maxHeight:()=>this._getMaxHeight(),position:{my:"top ".concat(e?"left":"right"),at:"bottom ".concat(e?"left":"right"),collision:"fit flip",offset:{v:3},of:this.$element()},animation:n,onOptionChanged:p=>{var{name:P,value:J}=p;"visible"===P&&this.option("opened",J)},container:t,autoResizeEnabled:!1,height:"auto",width:"auto",hideOnOutsideClick:p=>this._closeOutsideDropDownHandler(p),hideOnParentScroll:!0,shading:!1,dragEnabled:!1,showTitle:!1,fullScreen:!1,_fixWrapperPosition:!0})}}_getMaxHeight(){var e=this.$element(),t=e.offset().top,n=(0,R.P$)((0,Ie.zk)()),p=Math.max(t,n-t-(0,R.P$)(e));return Math.min(n,p-3-10)}_closeOutsideDropDownHandler(e){return!(0,j.A)(e.target).closest(this.$element()).length}_renderList(e){var t=(0,j.A)(e);t.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(t,nn,{dataSource:this._getListDataSource(),pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this.option("itemTemplate"),onItemClick:n=>{this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(n)},tabIndex:-1,focusStateEnabled:!1,activeStateEnabled:!0,onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}})}_itemOptionChanged(e,t,n){var p;null===(p=this._list)||void 0===p||p._itemOptionChanged(e,t,n),B(this._list,e)}_getListDataSource(){var e;return null!==(e=this.option("dataSource"))&&void 0!==e?e:this.option("items")}_setListDataSource(){var e;null===(e=this._list)||void 0===e||e.option("dataSource",this._getListDataSource()),delete this._deferRendering}_getKeyboardListeners(){return super._getKeyboardListeners().concat([this._list])}_toggleVisibility(e){super._toggleVisibility(e),this._button.option("visible",e)}_optionChanged(e){var t,n,p,{name:P,value:J}=e;switch(P){case"items":case"dataSource":this.option("opened")?this._setListDataSource():this._deferRendering=!0;break;case"itemTemplate":null===(t=this._list)||void 0===t||t.option(P,this._getTemplate(J));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"useInkRipple":this._invalidate();break;case"focusStateEnabled":null===(n=this._list)||void 0===n||n.option(P,J),super._optionChanged(e);break;case"onItemRendered":null===(p=this._list)||void 0===p||p.option(P,J);break;case"opened":this._deferRendering&&this._setListDataSource(),this._toggleMenuVisibility(J),this._updateFocusableItemsTabIndex();break;case"closeOnClick":break;case"container":this._popup&&this._popup.option(P,J);break;case"disabled":this._list&&this._updateFocusableItemsTabIndex();break;default:super._optionChanged(e)}}_updateFocusableItemsTabIndex(){this.option("items").forEach(e=>B(this._list,e))}}var Hn="dx-state-invisible",br="dx-toolbar-item-auto-hide",jr="dx-toolbar-item-invisible";class wr{constructor(e){this._toolbar=e}_initMarkup(){(0,s.zE)(()=>{this._renderOverflowMenu(),this._renderMenuItems()})}_renderOverflowMenu(){if(this._hasVisibleMenuItems()){this._renderMenuButtonContainer();var e=(0,j.A)("<div>").appendTo(this._overflowMenuContainer()),t=this._toolbar._createActionByOption("onItemClick"),n=this._toolbar._getTemplateByOption("menuItemTemplate");this._menu=this._toolbar._createComponent(e,hn,{disabled:this._toolbar.option("disabled"),itemTemplate:()=>n,onItemClick:p=>{t(p)},container:this._toolbar.option("menuContainer"),onOptionChanged:p=>{var{name:P,value:J}=p;"opened"===P&&this._toolbar.option("overflowMenuVisible",J),"items"===P&&this._updateMenuVisibility(J)}})}}renderMenuItems(){this._menu||this._renderOverflowMenu(),this._menu&&this._menu.option("items",this._getMenuItems()),this._menu&&!this._menu.option("items").length&&this._menu.option("opened",!1)}_renderMenuButtonContainer(){this._$overflowMenuContainer=(0,j.A)("<div>").appendTo(this._toolbar._$afterSection).addClass("dx-toolbar-button").addClass("dx-toolbar-menu-container")}_overflowMenuContainer(){return this._$overflowMenuContainer}_updateMenuVisibility(e){var t=e??this._getMenuItems(),n=t.length&&this._hasVisibleMenuItems(t);this._toggleMenuVisibility(n)}_toggleMenuVisibility(e){this._overflowMenuContainer()&&this._overflowMenuContainer().toggleClass(Hn,!e)}_renderMenuItems(){(0,s.zE)(()=>{this.renderMenuItems()})}_dimensionChanged(){this.renderMenuItems()}_getToolbarItems(){var e;return(0,s.VM)(null!==(e=this._toolbar.option("items"))&&void 0!==e?e:[],t=>!this._toolbar._isMenuItem(t))}_getHiddenItems(){return this._toolbar._itemContainer().children(".".concat(br,".").concat(jr)).not(".".concat(Hn))}_getMenuItems(){var e,t,n=(0,s.VM)(null!==(e=this._toolbar.option("items"))&&void 0!==e?e:[],J=>this._toolbar._isMenuItem(J)),p=this._getHiddenItems();return this._restoreItems=null!==(t=this._restoreItems)&&void 0!==t?t:[],[...[].slice.call(p).map(J=>{var fe=this._toolbar._getItemData(J),ke=(0,j.A)(J),Ue=ke.children();return(0,o.X)({menuItemTemplate:()=>(this._restoreItems.push({container:ke,item:Ue}),(0,j.A)("<div>").addClass(br).append(Ue))},fe)}),...n]}_hasVisibleMenuItems(e){var t=e??this._toolbar.option("items"),n=!1,p=(0,aa.Hz)("visible"),P=(0,aa.Hz)("locateInMenu");return(0,E.__)(t,function(J,fe){var ke=p(fe,{functionsAsIs:!0}),Ue=P(fe,{functionsAsIs:!0});(!1!==ke&&("auto"===Ue||"always"===Ue)||"menu"===fe.location)&&(n=!0)}),n}_arrangeItems(){var e;this._toolbar._$centerSection.css({margin:"0 auto",float:"none"}),(0,E.__)(null!==(e=this._restoreItems)&&void 0!==e?e:[],function(n,p){(0,j.A)(p.container).append(p.item)}),this._restoreItems=[];var t=(0,R.RG)(this._toolbar.$element());return this._hideOverflowItems(t),t}_hideOverflowItems(e){var t,n=this._toolbar.$element().find(".".concat(br));if(n.length){e=null!==(t=e)&&void 0!==t?t:(0,R.RG)(this._toolbar.$element()),(0,j.A)(n).removeClass(jr);for(var p=this._getItemsWidth();n.length&&e<p;)n.eq(-1).addClass(jr),p=this._getItemsWidth(),n.splice(-1,1)}}_getItemsWidth(){return this._toolbar._getSummaryItemsSize("width",[this._toolbar._$beforeSection,this._toolbar._$centerSection,this._toolbar._$afterSection])}_itemOptionChanged(e,t,n){var p;"disabled"!==t&&"options.disabled"!==t||!this._toolbar._isMenuItem(e)?this.renderMenuItems():null===(p=this._menu)||void 0===p||p._itemOptionChanged(e,t,n)}_renderItem(e,t){"auto"===e.locateInMenu&&t.addClass(br)}_optionChanged(e,t){var n,p,P,J,fe;switch(e){case"disabled":null===(n=this._menu)||void 0===n||n.option(e,t);break;case"overflowMenuVisible":null===(p=this._menu)||void 0===p||p.option("opened",t);break;case"onItemClick":null===(P=this._menu)||void 0===P||P.option(e,t);break;case"menuContainer":null===(J=this._menu)||void 0===J||J.option("container",t);break;case"menuItemTemplate":null===(fe=this._menu)||void 0===fe||fe.option("itemTemplate",t)}}}class Ja extends Wc.A{_getDefaultOptions(){return(0,o.X)(super._getDefaultOptions(),{menuItemTemplate:"menuItem",menuContainer:void 0,overflowMenuVisible:!1,multiline:!1})}_isMultiline(){return this.option("multiline")}_dimensionChanged(e){"height"!==e&&(super._dimensionChanged(),this._layoutStrategy._dimensionChanged())}_initMarkup(){super._initMarkup(),this._updateFocusableItemsTabIndex(),this._layoutStrategy._initMarkup()}_renderToolbar(){super._renderToolbar(),this._renderLayoutStrategy()}_itemContainer(){return this._isMultiline()?this._$toolbarItemsContainer:super._itemContainer()}_renderLayoutStrategy(){this.$element().toggleClass("dx-toolbar-multiline",this._isMultiline()),this._layoutStrategy=this._isMultiline()?new Ce(this):new wr(this)}_renderSections(){if(!this._isMultiline())return super._renderSections()}_postProcessRenderItems(){this._layoutStrategy._hideOverflowItems(),this._layoutStrategy._updateMenuVisibility(),super._postProcessRenderItems(),this._layoutStrategy._renderMenuItems()}_renderItem(e,t,n,p){var P=super._renderItem(e,t,n,p);this._layoutStrategy._renderItem(t,P);var{widget:J,showText:fe}=t;return"dxButton"===J&&"inMenu"===fe&&P.toggleClass("dx-toolbar-text-auto-hide"),P}_getItemsWidth(){return this._layoutStrategy._getItemsWidth()}_getMenuItems(){return this._layoutStrategy._getMenuItems()}_getToolbarItems(){return this._layoutStrategy._getToolbarItems()}_arrangeItems(){if(!this.$element().is(":hidden")){var e=this._layoutStrategy._arrangeItems();this._isMultiline()||super._arrangeItems(e)}}_itemOptionChanged(e,t,n){this._isMenuItem(e)||super._itemOptionChanged(e,t,n),this._layoutStrategy._itemOptionChanged(e,t,n),("disabled"===t||"options.disabled"===t)&&B(this,e),"location"===t&&this.repaint()}_updateFocusableItemsTabIndex(){this._getToolbarItems().forEach(e=>B(this,e))}_isMenuItem(e){return"menu"===e.location||"always"===e.locateInMenu}_isToolbarItem(e){return void 0===e.location||"never"===e.locateInMenu}_optionChanged(e){var{name:t,value:n}=e;switch(this._layoutStrategy._optionChanged(t,n),t){case"menuContainer":case"menuItemTemplate":case"overflowMenuVisible":break;case"multiline":this._invalidate();break;case"disabled":super._optionChanged.apply(this,arguments),this._updateFocusableItemsTabIndex();break;default:super._optionChanged.apply(this,arguments)}}updateDimensions(){this._dimensionChanged()}}(0,gn.A)("dxToolbar",Ja);const Cn=Ja;var Jn="toolbar-button",Sr=["addRowButton","applyFilterButton","columnChooserButton","exportButton","groupPanel","revertButton","saveButton","searchPanel"];En.registerModule("headerPanel",{defaultOptions:()=>({}),views:{headerPanel:class Br extends Pr{init(){super.init(),this._editingController=this.getController("editing"),this._headerFilterController=this.getController("headerFilter"),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})}_getToolbarItems(){return[]}_getButtonContainer(){return(0,j.A)("<div>").addClass(this.addWidgetPrefix(Jn))}_getToolbarButtonClass(e){var t=e?" ".concat(e):"";return this.addWidgetPrefix(Jn)+t}_getToolbarOptions(){var e=this.option("toolbar"),t={toolbarOptions:{items:this._getToolbarItems(),visible:e?.visible,disabled:e?.disabled,onItemRendered(P){var J=P.itemData.onItemRendered;J&&J(P)}}},n=e?.items;if(t.toolbarOptions.items=this._normalizeToolbarItems(t.toolbarOptions.items,n),this.executeAction("onToolbarPreparing",t),t.toolbarOptions&&!(0,m.O9)(t.toolbarOptions.visible)){var p=t.toolbarOptions.items;t.toolbarOptions.visible=!!p?.length}return t.toolbarOptions}_normalizeToolbarItems(e,t){e.forEach(fe=>{if(!Sr.includes(fe.name))throw new Error("Default toolbar item '".concat(fe.name,"' is not added to DEFAULT_TOOLBAR_ITEM_NAMES"))});var n={location:"after"},p=Array.isArray(t);if(!(0,m.O9)(t))return e;p||(t=[t]);var P={};e.forEach(fe=>{P[fe.name]=fe});var J=t.map(fe=>((0,m.Kg)(fe)&&(fe={name:fe}),(0,m.O9)(fe.name)&&((0,m.O9)(P[fe.name])?fe=(0,o.X)(!0,{},P[fe.name],fe):Sr.includes(fe.name)&&(fe=(0,Nt.A)((0,Nt.A)({},fe),{visible:!1}))),(0,o.X)(!0,{},n,fe)));return p?J:J[0]}_renderCore(){if(this._toolbar)this._toolbar.option(this._toolbarOptions);else{var e=this.element();e.addClass(this.addWidgetPrefix("header-panel"));var t=v.A.format(this.component.NAME+"-ariaToolbar"),n=(0,j.A)("<div>").attr("aria-label",t).appendTo(e);this._toolbar=this._createComponent(n,Cn,this._toolbarOptions)}}_columnOptionChanged(){}_handleDataChanged(){this._requireReady&&this.render()}_isDisabledDefinedByUser(e){var t,n=null===(t=this.option("toolbar"))||void 0===t?void 0:t.items,p=n?.find(P=>P?.name===e);return(0,m.O9)(p?.disabled)}render(){this._toolbarOptions=this._getToolbarOptions(),super.render.apply(this,arguments)}setToolbarItemDisabled(e,t){var n,p=this._toolbar,P=this._isDisabledDefinedByUser(e);if(p&&!P){var fe=(null!==(n=p.option("items"))&&void 0!==n?n:[]).findIndex(Ue=>Ue.name===e);if(!(fe<0)){var ke=p.option("items[".concat(fe,"]"));p.option("items[".concat(fe,"].disabled"),t),ke.options&&p.option("items[".concat(fe,"].options.disabled"),t)}}}updateToolbarDimensions(){var e;null===(e=this._toolbar)||void 0===e||e.updateDimensions()}getHeaderPanel(){return this.element()}getHeight(){return this.getElementHeight()}optionChanged(e){var t,n,p;if("onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),"toolbar"===e.name){var P=(0,aa.u7)(e.fullName),J=e.fullName.replace(/^toolbar\./,"");if(1===P.length)this._invalidate();else if("items"===P[1])if(2===P.length){var fe=this._getToolbarOptions();null===(t=this._toolbar)||void 0===t||t.option("items",fe.items)}else if(3===P.length){var ke=this._normalizeToolbarItems(this._getToolbarItems(),e.value);null===(n=this._toolbar)||void 0===n||n.option(J,ke)}else P.length>=4&&(null===(p=this._toolbar)||void 0===p||p.option(J,e.value));else this._invalidate();e.handled=!0}super.optionChanged(e)}isVisible(){return!(!this._toolbarOptions||!this._toolbarOptions.visible)}allowDragging(){}hasGroupedColumns(){}}},extenders:{controllers:{resizing:V=>class extends V{_updateDimensionsCore(){super._updateDimensionsCore.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}});var Xa=D(85978);En.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","editingRowBased","editingFormBased","editingCellBased","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var Jr=De.A.inherit({_activeStateUnit:".dx-row",_getDefaultOptions(){var V=this.callBase();return(0,E.__)(En.modules,function(){(0,m.Tn)(this.defaultOptions)&&(0,o.X)(!0,V,this.defaultOptions())}),V},_setDeprecatedOptions(){this.callBase(),(0,o.X)(this._deprecatedOptions,{useKeyboard:{since:"19.2",alias:"keyboardNavigation.enabled"},rowTemplate:{since:"21.2",message:'Use the "dataRowTemplate" option instead'},"columnChooser.allowSearch":{since:"23.1",message:'Use the "columnChooser.search.enabled" option instead'},"columnChooser.searchTimeout":{since:"23.1",message:'Use the "columnChooser.search.timeout" option instead'}})},_defaultOptionsRules(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:()=>(0,fn.Nt)(),options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0},selection:{showCheckBoxesMode:"always"}}},{device:()=>ye.A.webkit,options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:V=>"desktop"!==V.deviceType,options:{grouping:{expandMode:"rowClick"}}}])},_init(){this.callBase(),Ui.A.logHeaderFilterDeprecatedWarningIfNeed(this),En.processModules(this,En),En.callModuleItemsMethod(this,"init")},_clean:s.lQ,_optionChanged(V){En.callModuleItemsMethod(this,"optionChanged",[V]),V.handled||this.callBase(V)},_dimensionChanged(){this.updateDimensions(!0)},_visibilityChanged(V){V&&this.updateDimensions()},_initMarkup(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl(){this.getView("gridView").update()},_renderContent(){var V=this;(0,s.zE)(()=>{V._renderContentImpl()})},_getTemplate(V){var e=V;return(0,m.Kg)(e)&&e.startsWith("#")&&(e=(0,j.A)(V),Xa.v.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")),this.callBase(e)},_dispose(){this.callBase(),En.callModuleItemsMethod(this,"dispose")},isReady(){return this.getController("data").isReady()},beginUpdate(){this.callBase(),En.callModuleItemsMethod(this,"beginUpdate")},endUpdate(){En.callModuleItemsMethod(this,"endUpdate"),this.callBase()},getController(V){return this._controllers[V]},getView(V){return this._views[V]},focus(V){this.getController("keyboardNavigation").focus(V)}});Jr.registerModule=En.registerModule.bind(En),(0,gn.A)("dxDataGrid",Jr);const Pn=Jr;var cs=D(92378),So=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,Ea=function V(e){e&&(0,E.__)(e,(t,n)=>{if((0,m.Qd)(n)||Array.isArray(n))V(n);else if("string"==typeof n){var p=So.exec(n);p&&(e[t]=new Date(Date.UTC(+p[1],+p[2]-1,+p[3],+p[4],+p[5],+p[6])))}})},ka=function(V){var e="sessionStorage"===V.type?(0,cs.s)():(0,Ie.zk)().localStorage;if(!e)throw new Error("E1007");return e},Ka=function(V){return(0,m.O9)(V.storageKey)?V.storageKey:"storage"};En.registerModule("stateStoring",{defaultOptions:()=>({stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}),controllers:{stateStoring:class qa extends cn.ViewController{getDataController(){return this.getController("data")}getExportController(){return this.getController("export")}getColumnsController(){return this.getController("columns")}init(){return this._state={},this._isLoaded=!1,this._isLoading=!1,this._windowUnloadHandler=()=>{void 0!==this._savingTimeoutID&&this._saveState(this.state())},_.A.on((0,Ie.zk)(),"unload",this._windowUnloadHandler),this}optionChanged(e){"stateStoring"===e.name?(this.isEnabled()&&!this.isLoading()&&this.load(),e.handled=!0):super.optionChanged(e)}dispose(){clearTimeout(this._savingTimeoutID),_.A.off((0,Ie.zk)(),"unload",this._windowUnloadHandler)}_loadState(){var e=this.option("stateStoring");if("custom"===e.type)return e.customLoad&&e.customLoad();try{return JSON.parse(ka(e).getItem(Ka(e)))}catch(t){Et.A.log("W1022","State storing",t.message)}}_saveState(e){var t=this.option("stateStoring");if("custom"!==t.type)try{ka(t).setItem(Ka(t),JSON.stringify(e))}catch(n){Et.A.log(n.message)}else t.customSave&&t.customSave(e)}publicMethods(){return["state"]}isEnabled(){return this.option("stateStoring.enabled")}isLoaded(){return this._isLoaded}isLoading(){return this._isLoading}load(){this._isLoading=!0;var e=(0,xe.Sx)(this._loadState());return e.always(()=>{this._isLoaded=!0,this._isLoading=!1}).done(t=>{null!==t&&!(0,m.RI)(t)&&this.state(t)}),e}state(e){if(!arguments.length)return(0,o.X)(!0,{},this._state);this._state=(0,o.X)({},e),Ea(this._state)}save(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout(()=>{e._saveState(e.state()),e._savingTimeoutID=void 0},e.option("stateStoring.savingTimeout"))}}},extenders:{views:{rowsView:V=>class extends V{init(){super.init(),this._dataController.stateLoaded.add(()=>{if(this._dataController.isLoaded()&&!this._dataController.getDataSource()){this.setLoading(!1),this.renderNoDataText();var e=this.component.getView("columnHeadersView");e&&e.render(),this.component._fireContentReadyAction()}})}}},controllers:{stateStoring:V=>class extends V{init(){return super.init.apply(this,arguments),(V=>{var e=V.getController("columns"),t=V.getController("selection"),n=V.getController("export"),p=V.getController("data");e&&e.columnsChanged.add(()=>{V.updateState({columns:e.getUserState()})}),t&&t.selectionChanged.add(P=>{V.updateState({selectedRowKeys:P.selectedRowKeys,selectionFilter:P.selectionFilter})}),p&&(V._initialPageSize=V.option("paging.pageSize"),V._initialFilterValue=V.option("filterValue"),p.changed.add(()=>{var P=(V=>{var e=V.getView("pagerView"),t=V.getController("data"),n={allowedPageSizes:e?e.getPageSizes():void 0,filterPanel:{filterEnabled:V.option("filterPanel.filterEnabled")},filterValue:V.option("filterValue"),focusedRowKey:V.option("focusedRowEnabled")?V.option("focusedRowKey"):void 0};return(0,o.X)(n,t.getUserState())})(V);V.updateState(P)})),n&&n.selectionOnlyChanged.add(()=>{V.updateState({exportSelectionOnly:n.selectionOnly()})})})(this),this}isLoading(){return super.isLoading()||this.getDataController().isStateLoading()}state(e){var t=super.state.apply(this,arguments);return void 0!==e&&this.applyState((0,o.X)(!0,{},e)),t}updateState(e){if(this.isEnabled()){var t=this.state(),n=(0,o.X)({},t,e),p=(0,s.GP)(t),P=(0,s.GP)(n);(0,s.RL)(p,P)||(e=(0,o.X)(!0,{},e),(0,o.X)(this._state,e),this.save())}else(0,o.X)(this._state,e)}applyState(e){var t,{allowedPageSizes:n}=e,{searchText:p}=e,{selectedRowKeys:P}=e,{selectionFilter:J}=e,fe=this.option("scrolling.mode"),ke="virtual"===fe||"infinite"===fe,Ue=!0===this.option("pager.visible")&&this.option("pager.showPageSizeSelector"),Ze=null===(t=this.getView("rowsView"))||void 0===t?void 0:t.hasHeight();this.component.beginUpdate(),this.getColumnsController()&&this.getColumnsController().setUserState(e.columns),this.getExportController()&&this.getExportController().selectionOnly(e.exportSelectionOnly),this.option("selection.deferred")||this.option("selectedRowKeys",P||[]),this.option("selectionFilter",J),n&&"auto"===this.option("pager.allowedPageSizes")&&(this.option("pager").allowedPageSizes=n),this.option("focusedRowEnabled")&&(this.option("focusedRowIndex",-1),this.option("focusedRowKey",e.focusedRowKey||null)),this.component.endUpdate(),this.option("searchPanel.text",p||""),this.option("filterValue",((V,e)=>{var t=V.getController("filterSync"),n=V.getController("columns");return t?e.columns||void 0!==e.filterValue?e.filterValue||t.getFilterValueFromColumns(e.columns):V._initialFilterValue||t.getFilterValueFromColumns(n.getColumns()):null})(this,e)),this.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),this.option("paging.pageIndex",(!ke||Ze)&&e.pageIndex||0),this.option("paging.pageSize",ke&&!Ue||!(0,m.O9)(e.pageSize)?this._initialPageSize:e.pageSize),this.getDataController()&&this.getDataController().reset()}},columns:V=>class extends V{_shouldReturnVisibleColumns(){return super._shouldReturnVisibleColumns.apply(this,arguments)&&(!this._stateStoringController.isEnabled()||this._stateStoringController.isLoaded())}},data:V=>class extends V{dispose(){clearTimeout(this._restoreStateTimeoutID),super.dispose()}callbackNames(){return super.callbackNames().concat(["stateLoaded"])}_refreshDataSource(){if(this._stateStoringController.isEnabled()&&!this._stateStoringController.isLoaded()){clearTimeout(this._restoreStateTimeoutID);var e=new xe.cY;return this._restoreStateTimeoutID=setTimeout(()=>{this._stateStoringController.load().always(()=>{this._restoreStateTimeoutID=null}).done(()=>{super._refreshDataSource(),this.stateLoaded.fire(),e.resolve()}).fail(t=>{this.stateLoaded.fire(),this._handleLoadError(t||"Unknown error"),e.reject()})}),e.promise()}this.isStateLoading()||super._refreshDataSource()}isLoading(){return super.isLoading()||this._stateStoringController.isLoading()}isStateLoading(){return(0,m.O9)(this._restoreStateTimeoutID)}isLoaded(){return super.isLoaded()&&!this.isStateLoading()}},selection:V=>class extends V{_fireSelectionChanged(e){var t=this.option("selection.deferred");this._stateStoringController.isLoading()&&t||super._fireSelectionChanged.apply(this,arguments)}}}}});var xu=D(63789),Rl="dx-editor-cell",bh="dx-selection",nl="dx-select-checkbox",rd="dx-command-select",Lu="dx-data-row",ll="selection.showCheckBoxesMode",os="selection.mode",co=function(V,e){var t=V.getView("rowsView"),n=V.getController("selection"),p=(0,j.A)(e.target).closest(".".concat(Lu)),P=t.getRowIndex(p);P<0||("onLongTap"===V.option(ll)?n.isSelectionWithCheckboxes()?n.stopSelectionWithCheckboxes():n.startSelectionWithCheckboxes():("onClick"===V.option(ll)&&n.startSelectionWithCheckboxes(),"always"!==V.option(ll)&&n.changeItemSelection(P,{control:!0})))},Sc=(V,e)=>{var{component:t}=e,n=t.getView("rowsView");t.option("renderAsync")&&!t.option("selection.deferred")&&(e.value=t.isRowSelected(e.row.key)),n.renderSelectCheckBoxContainer((0,j.A)(V),e)},Id=(V,e)=>{var{column:t}=e,n=(0,j.A)(V),p=e.component.getView("columnHeadersView");n.addClass(Rl),p._renderSelectAllCheckBox(n,t),p._attachSelectAllCheckBoxClickEvent(n)};En.registerModule("selection",{defaultOptions:()=>({selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",deferred:!1,maxFilterLengthInRequest:1500,alwaysSelectByShift:!1},selectionFilter:[],selectedRowKeys:[]}),controllers:{selection:class ad extends cn.Controller{init(){var e,{deferred:t,selectAllMode:n,mode:p}=null!==(e=this.option("selection"))&&void 0!==e?e:{};"infinite"===this.option("scrolling.mode")&&!t&&"multiple"===p&&"allPages"===n&&Et.A.log("W1018"),this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._stateStoringController=this.getController("stateStoring"),this._selectionMode=p,this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]}),this._dataPushedHandler||(this._dataPushedHandler=this._handleDataPushed.bind(this),this._dataController.pushed.add(this._dataPushedHandler))}_handleDataPushed(e){this._deselectRemovedOnPush(e),this._updateSelectedOnPush(e)}_deselectRemovedOnPush(e){var t=this.option("selection.deferred"),n=e.filter(P=>"remove"===P.type).map(P=>P.key);if(t){var p=this._dataController.items().filter(P=>P.isSelected).map(P=>P.key);n=n.filter(P=>p.find(J=>(0,s.RL)(J,P)))}n.length&&this.deselectRows(n)}_updateSelectedOnPush(e){if(!this.option("selection.deferred")){var n=e.filter(P=>"update"===P.type),p=this.getSelectedRowsData();(0,ea.VK)({keyInfo:this._selection.options,data:p,changes:n})}}_getSelectionConfig(){var e,t=this._dataController,n=this._columnsController,p=null!==(e=this.option("selection"))&&void 0!==e?e:{},{deferred:P}=p,J=this.option("scrolling.mode"),fe="virtual"===J||"infinite"===J,ke=this.option("selection.allowSelectAll"),Ue=this.option("scrolling.legacyMode");return{selectedKeys:this.option("selectedRowKeys"),mode:this._selectionMode,deferred:P,alwaysSelectByShift:p.alwaysSelectByShift,maxFilterLengthInRequest:p.maxFilterLengthInRequest,selectionFilter:this.option("selectionFilter"),ignoreDisabledItems:!0,isVirtualPaging:fe,allowLoadByRange(){var Ze=n.getGroupColumns().length>0;return fe&&!Ue&&!Ze&&ke&&!P},key:()=>t?.key(),keyOf:Ze=>t?.keyOf(Ze),dataFields(){var Ze;return null===(Ze=t.dataSource())||void 0===Ze?void 0:Ze.select()},load(Ze){var Ft;return(null===(Ft=t.dataSource())||void 0===Ft?void 0:Ft.load(Ze))||(new xe.cY).resolve([])},plainItems:Ze=>t.items(!0),isItemSelected:Ze=>Ze.selected,isSelectableItem:Ze=>"data"===Ze?.rowType&&!Ze.isNewRow,getItemData:Ze=>(0,m.O9)(Ze?.rowType)?Ze?.oldData||Ze?.data:Ze,filter:()=>t.getCombinedFilter(P),totalCount:()=>t.totalCount(),getLoadOptions(Ze,Ft,vi){var Li,tn,{sort:On,filter:Qn}=null!==(tn=null===(Li=t.dataSource())||void 0===Li?void 0:Li.lastLoadOptions())&&void 0!==tn?tn:{},zr=Math.min(Ze,Ft),la=Math.max(Ze,Ft);return(0,m.O9)(vi)&&(zr=Math.min(vi,zr),la=Math.max(vi,la)),{skip:zr,take:la-zr+1,filter:Qn,sort:On}},onSelectionChanged:this._updateSelectedItems.bind(this)}}_updateSelectColumn(){var e=this._columnsController,t=this.isSelectColumnVisible();e.addCommandColumn({type:"selection",command:"select",visible:t,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:rd,width:"auto",cellTemplate:Sc,headerCellTemplate:Id}),e.columnOption("command:select","visible",t)}_createSelection(){var e=this._getSelectionConfig();return new xu.A(e)}_fireSelectionChanged(e){var t=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(t),e&&this.executeAction("onSelectionChanged",e)}_updateCheckboxesState(e){var{isDeferredMode:t}=e,{selectionFilter:n}=e,{selectedItemKeys:p}=e,{removedItemKeys:P}=e;"onClick"===this.option(ll)&&((t?n&&function(V,e){var t=0,n=V._dataController.store(),p=n&&n.key(),P=Array.isArray(p);if(!e.length)return!1;if(P&&Array.isArray(e[0])&&"and"===e[1]){for(var J=0;J<e.length;J++)if(Array.isArray(e[J])){if(e[J][0]!==p[t]||"="!==e[J][1])return!0;t++}return!1}return p!==e[0]}(this,n):p.length>1)?this.startSelectionWithCheckboxes():(t?n&&!n.length:0===p.length&&P.length)&&this.stopSelectionWithCheckboxes())}_updateSelectedItems(e){var t,n=this.option("selection.deferred"),p=this._selection.selectionFilter(),P=this._dataController,J=P.items(!0),fe=P.items();if(J){var ke=this.isSelectionWithCheckboxes(),Ue=this.getChangedItemIndexes(J),Ze=this.getChangedItemIndexes(fe);this._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:p,isDeferredMode:n}),(Ue.length||ke!==this.isSelectionWithCheckboxes())&&P.updateItems({changeType:"updateSelection",itemIndexes:Ze}),n?(this.option("selectionFilter",p),t={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(this._selectedItemsInternalChange=!0,this.option("selectedRowKeys",e.selectedItemKeys.slice(0)),this._selectedItemsInternalChange=!1,t={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),this._fireSelectionChanged(t)}}getChangedItemIndexes(e){for(var t=[],n=this.option("selection.deferred"),p=0,{length:P}=e;p<P;p++){var J=e[p],fe=this.isRowSelected(n?J.data:J.key);this._selection.isDataItem(J)&&J.isSelected!==fe&&t.push(p)}return t}callbackNames(){return["selectionChanged"]}optionChanged(e){switch(super.optionChanged(e),e.name){case"selection":var t=this._selectionMode;if(this.init(),"selection.showCheckBoxesMode"!==e.fullName){var n=this._selectionMode,p=this.option("selectedRowKeys");t!==n&&("single"===n?p.length>1&&(p=[p[0]]):"multiple"!==n&&(p=[])),this.selectRows(p).always(()=>{this._fireSelectionChanged()})}this._columnsController.updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":var P=e.value||[];Array.isArray(P)&&!this._selectedItemsInternalChange&&(this.component.getDataSource()||!P.length)&&this.selectRows(P),e.handled=!0}}publicMethods(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]}isRowSelected(e){return this._selection.isItemSelected(e)}isSelectColumnVisible(){return"multiple"===this.option(os)&&("always"===this.option(ll)||"onClick"===this.option(ll)||this._isSelectionWithCheckboxes)}_isOnePageSelectAll(){return"page"===this.option("selection.selectAllMode")}isSelectAll(){return this._selection.getSelectAllState(this._isOnePageSelectAll())}selectAll(){return"onClick"===this.option(ll)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())}deselectAll(){return this._selection.deselectAll(this._isOnePageSelectAll())}clearSelection(){return this.selectedItemKeys([])}refresh(){var e,t=null!==(e=this.option("selectedRowKeys"))&&void 0!==e?e:[];return!this.option("selection.deferred")&&t.length?this.selectedItemKeys(t):(new xe.cY).resolve().promise()}selectedItemKeys(e,t,n,p){return this._selection.selectedItemKeys(e,t,n,p)}getSelectedRowKeys(e){return this._selection.getSelectedItemKeys()}selectRows(e,t){return this.selectedItemKeys(e,t)}deselectRows(e){return this.selectedItemKeys(e,!0,!0)}selectRowsByIndexes(e){var t=this._dataController.items(),n=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),(0,E.__)(e,function(){var p=t[this];p&&"data"===p.rowType&&n.push(p.key)}),this.selectRows(n)}getSelectedRowsData(e){return this._selection.getSelectedItems()}loadSelectedItemsWithFilter(){return this._selection.loadSelectedItemsWithFilter()}changeItemSelection(e,t,n){t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0);var p=e+this._dataController.getRowIndexOffset()-this._dataController.getRowIndexOffset(!0);return this._selection.changeItemSelection(p,t,n)}focusedItemIndex(e){if(!(0,m.O9)(e))return this._selection._focusedItemIndex;this._selection._focusedItemIndex=e}isSelectionWithCheckboxes(){return"multiple"===this.option(os)&&("always"===this.option(ll)||this._isSelectionWithCheckboxes)}startSelectionWithCheckboxes(){return"multiple"===this.option(os)&&!this.isSelectionWithCheckboxes()&&(this._isSelectionWithCheckboxes=!0,this._updateSelectColumn(),!0)}stopSelectionWithCheckboxes(){return!!this._isSelectionWithCheckboxes&&(this._isSelectionWithCheckboxes=!1,this._updateSelectColumn(),!0)}}},extenders:{controllers:{data:V=>class extends V{init(){var e=this.option("selection.deferred");super.init.apply(this,arguments),e&&this._selectionController._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})}_loadDataSource(){var e=this;return super._loadDataSource().always(()=>{e._selectionController.refresh()})}_processDataItem(e,t){var n=this._selectionController.isSelectColumnVisible(),p=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,P=super._processDataItem.apply(this,arguments);if(P.isSelected=this._selectionController.isRowSelected(p?P.data:P.key),n&&P.values)for(var J=0;J<t.visibleColumns.length;J++)if("select"===t.visibleColumns[J].command){P.values[J]=P.isSelected;break}return P}refresh(e){var t=this,n=new xe.cY;return super.refresh.apply(this,arguments).done(()=>{!e||e.selection?t._selectionController.refresh().done(n.resolve).fail(n.reject):n.resolve()}).fail(n.reject),n.promise()}_handleDataChanged(e){var t=this.hasLoadOperation();super._handleDataChanged.apply(this,arguments),t&&!this._repaintChangesOnly&&this._selectionController.focusedItemIndex(-1)}_applyChange(e){if(!e||"updateSelection"!==e.changeType)return super._applyChange.apply(this,arguments);e.items.forEach((t,n)=>{var p=this._items[n];p&&(p.isSelected=t.isSelected,p.values=t.values)})}_endUpdateCore(){var e=this._changes;if(e.length>1&&e.every(p=>"updateSelection"===p.changeType)){var n=e.map(p=>p.itemIndexes||[]).reduce((p,P)=>p.concat(P));this._changes=[{changeType:"updateSelection",itemIndexes:n}]}super._endUpdateCore.apply(this,arguments)}},contextMenu:V=>class extends V{_contextMenuPrepared(e){var t=e.event;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||co(this,t)}}},views:{columnHeadersView:V=>class extends V{init(){super.init(),this._selectionController.selectionChanged.add(this._updateSelectAllValue.bind(this))}_updateSelectAllValue(){var e=this.element(),t=e&&e.find(".".concat(nl));if(e&&t.length&&"multiple"===this.option("selection.mode")){var n=this._selectionController.isSelectAll(),p=!1!==n,P=this.option("selection.allowSelectAll")?!this._dataController.isEmpty():p;t.dxCheckBox("instance").option({visible:P,value:n})}}_handleDataChanged(e){super._handleDataChanged(e),(!e||"refresh"===e.changeType||e.repaintChangesOnly&&"update"===e.changeType)&&this.waitAsyncTemplates().done(()=>{this._updateSelectAllValue()})}_renderSelectAllCheckBox(e,t){var n=this,p=n._dataController.isEmpty(),P=(0,j.A)("<div>").appendTo(e).addClass(nl);return n.setAria("label",v.A.format("dxDataGrid-ariaSelectAll"),P),n._editorFactoryController.createEditor(P,(0,o.X)({},t,{parentType:"headerRow",dataType:"boolean",value:this._selectionController.isSelectAll(),editorOptions:{visible:!p&&(n.option("selection.allowSelectAll")||!1!==this._selectionController.isSelectAll())},tabIndex:n.option("useLegacyKeyboardNavigation")?-1:n.option("tabIndex")||0,setValue:(J,fe)=>{var ke=n.option("selection.allowSelectAll");fe.component.option("visible",ke||!1!==fe.component.option("value")),fe.event&&this._selectionController.isSelectAll()!==J&&(fe.value&&!ke?fe.component.option("value",!1):fe.value?this._selectionController.selectAll():this._selectionController.deselectAll(),fe.event.preventDefault())}})),P}_attachSelectAllCheckBoxClickEvent(e){_.A.on(e,ce.U,this.createAction(t=>{var{event:n}=t;(0,j.A)(n.target).closest(".".concat(nl)).length||_.A.trigger((0,j.A)(n.currentTarget).children(".".concat(nl)),ce.U),n.preventDefault()}))}},rowsView:V=>class extends V{renderSelectCheckBoxContainer(e,t){"data"!==t.rowType||t.row.isNewRow?Ui.A.setEmptyText(e):(e.addClass(Rl),this._attachCheckBoxClickEvent(e),this._renderSelectCheckBox(e,t))}_renderSelectCheckBox(e,t){var n=(0,j.A)("<div>").addClass(nl).appendTo(e);return this.setAria("label",v.A.format("dxDataGrid-ariaSelectRow"),n),this._editorFactoryController.createEditor(n,(0,o.X)({},t.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:t.value,setValue(p,P){var J;"keydown"===(null===(J=P?.event)||void 0===J?void 0:J.type)&&_.A.trigger(P.element,ce.U,P)},row:t.row})),n}_attachCheckBoxClickEvent(e){_.A.on(e,ce.U,this.createAction(function(t){var{event:n}=t,p=this.getRowIndex((0,j.A)(n.currentTarget).closest(".".concat("dx-row")));p>=0&&(this._selectionController.startSelectionWithCheckboxes(),this._selectionController.changeItemSelection(p,{shift:n.shiftKey}),(0,j.A)(n.target).closest(".".concat(nl)).length&&this._dataController.updateItems({changeType:"updateSelection",itemIndexes:[p]}))}))}_update(e){var t=this,n=t.getTableElements();"updateSelection"===e.changeType?n.length>0&&((0,E.__)(n,(p,P)=>{(0,E.__)(e.itemIndexes||[],(J,fe)=>{var ke;if(e.items[fe]&&(ke=t._getRowElements((0,j.A)(P)).eq(fe)).length){var{isSelected:Ue}=e.items[fe];ke.toggleClass(bh,void 0!==Ue&&Ue).find(".".concat(nl)).dxCheckBox("option","value",Ue),t.setAria("selected",Ue,ke)}})}),t._updateCheckboxesClass()):super._update(e)}_createTable(){var e=this,t=e.option("selection.mode"),n=super._createTable.apply(e,arguments);return"none"!==t&&(("onLongTap"===e.option(ll)||!he.touch)&&_.A.on(n,(0,h.b4)(mh.A.name,"dxDataGridRowsView"),".".concat(Lu),e.createAction(p=>{co(e.component,p.event),p.event.stopPropagation()})),_.A.on(n,"mousedown selectstart",e.createAction(p=>{var{event:P}=p;P.shiftKey&&P.preventDefault()}))),n}_createRow(e){var t=super._createRow.apply(this,arguments);if(e){var{isSelected:n}=e;n&&t.addClass(bh),"none"!==this.option(os)&&this.setAria("selected",n,t)}return t}_rowClickForTreeList(e){super._rowClick(e)}_rowClick(e){var t=e.event,n=(0,j.A)(t.target).closest(".".concat("dx-selection-disabled")).length;this.isClickableElement((0,j.A)(t.target))||(!n&&("multiple"!==this.option(os)||"always"!==this.option(ll))&&this._selectionController.changeItemSelection(e.rowIndex,{control:(0,h.By)(t),shift:t.shiftKey})&&(t.preventDefault(),e.handled=!0),super._rowClick(e))}isClickableElement(e){return!!e.closest(".".concat(rd)).length}_renderCore(e){var t=super._renderCore(e);return this._updateCheckboxesClass(),t}_updateCheckboxesClass(){var e=this.getTableElements(),t=this._selectionController.isSelectColumnVisible()&&!this._selectionController.isSelectionWithCheckboxes();(0,E.__)(e,(n,p)=>{(0,j.A)(p).toggleClass("dx-select-checkboxes-hidden",t)})}}}}});var Dd=D(89454),ec=D(31100),hp=D(78221),Cu=D(98500),Ed="dx-treeview",md="".concat(Ed,"-node"),uc="".concat(md,"-container"),Dc="".concat(md,"-loadindicator"),od="".concat(md,"-container-opened"),Gs="".concat(md,"-is-leaf"),Rd="".concat(Ed,"-item"),$h="".concat(Rd,"-with-checkbox"),Kh="".concat(Rd,"-with-custom-expander-icon"),Fu="".concat(Ed,"-custom-expander-icon-item-container"),$l="".concat(Rd,"-without-checkbox"),Xh="".concat(Rd,"-data"),yh="".concat(Ed,"-toggle-item-visibility"),Jh="".concat(Ed,"-custom-collapse-icon"),Qh="".concat(Ed,"-custom-expand-icon"),Dp="".concat(Ed,"-loadindicator"),ft="".concat(Ed,"-loadindicator-wrapper"),en="".concat(Ed,"-toggle-item-visibility-opened"),ve="".concat(Ed,"-select-all-item"),ze="dx-state-invisible",dt="dx-state-disabled",pn="dxTreeView_expand",cr="data-item-id",fs="dx-checkbox",Pl="".concat(Ed,"-root-node"),Md="".concat(Ed,"-expander-icon-stub");const Zh=Vh.inherit({_supportedKeys:function(V){var e=p=>{var P=(0,j.A)(this.option("focusedElement"));P.length&&(p.target=P,p.currentTarget=P,this._itemClickHandler(p,P.children("."+Rd)),this._getEventNameByOption(this.option("expandEvent"))===(0,h.b4)(ce.U,pn)&&this._expandEventHandler(p))},t=p=>{p.preventDefault();var P=(0,j.A)(this.option("focusedElement")),J=this._getCheckBoxInstance(P);if(!J.option("disabled")){var fe=J.option("value");this._updateItemSelection(!fe,P.find("."+Rd).get(0),!0)}},n=function(p,P){if(this.option("expandAllEnabled")){P.preventDefault();var J=(0,j.A)(this.option("focusedElement"));if(J.length){var fe=this._getItemData(J.find(".".concat(Rd)));this._toggleExpandedNestedItems([fe],p)}}};return(0,o.X)(this.callBase(),{enter:this._showCheckboxes()?t:e,space:this._showCheckboxes()?t:e,asterisk:n.bind(this,!0),minus:n.bind(this,!1)})},_toggleExpandedNestedItems:function(V,e){if(V)for(var t=0,n=V.length;t<n;t++){var p=V[t],P=this._dataAdapter.getNodeByItem(p);this._toggleExpandedState(P,e),this._toggleExpandedNestedItems(p.items,e)}},_getNodeElement:function(V,e){var t=this._encodeString(V.internalFields.key);if(e)return e.$nodeByKey||(e.$nodeByKey={},this.$element().find(".".concat(md)).each(function(){var p=(0,j.A)(this),P=p.attr(cr);e.$nodeByKey[P]=p})),e.$nodeByKey[t]||(0,j.A)();var n=this.$element().get(0).querySelector("[".concat(cr,'="').concat(t,'"]'));return(0,j.A)(n)},_activeStateUnit:"."+Rd,_widgetClass:function(){return Ed},_getDefaultOptions:function(){var V=(0,o.X)(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",expandIcon:null,collapseIcon:null,selectAllText:v.A.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",useNativeScrolling:!0,virtualModeEnabled:!1,rootValue:0,focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null,onSelectAllValueChanged:null});return(0,o.X)(!0,V,{integrationOptions:{useDeferUpdateForTemplates:!1}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!he.nativeScrolling},options:{useNativeScrolling:!1}}])},_initSelectedItems:s.lQ,_syncSelectionOptions:s.TA,_fireSelectionChanged:function(){(0,xe.z7)(this._selectionChangePromise).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(this))},_createSelectAllValueChangedAction:function(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged:function(V){this._selectAllValueChangedAction({value:V})},_checkBoxModeChange:function(V,e){var t=this.option("searchEnabled"),n=this._selectAllEnabled(e),p=this._itemContainer(t,n);if(this._detachClickEvent(p),this._detachExpandEvent(p),"none"!==e&&"none"!==V){var P=this._$selectAllItem&&this._$selectAllItem.length;switch(V){case"selectAll":P||(this._createSelectAllValueChangedAction(),this._renderSelectAllItem());break;case"normal":P&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}}},_removeSelection:function(){var V=this;(0,E.__)(this._dataAdapter.getFullData(),function(e,t){V._hasChildren(t)&&V._dataAdapter.toggleSelection(t.internalFields.key,!1,!0)})},_optionChanged:function(V){var{name:e,value:t,previousValue:n}=V;switch(e){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",t);break;case"showCheckBoxesMode":this._checkBoxModeChange(t,n),this._invalidate();break;case"scrollDirection":this.getScrollable().option("direction",t);break;case"useNativeScrolling":this.getScrollable().option("useNative",t);break;case"items":delete this._$selectAllItem,this.callBase(V);break;case"dataSource":this.callBase(V),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._attachExpandEvent();break;case"deferRendering":case"dataStructure":case"rootValue":case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;case"selectionMode":this._initDataAdapter(),this.callBase(V);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",V.value),this.repaint();break;case"expandIcon":case"collapseIcon":this.repaint();break;default:this.callBase(V)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(V){V&&V.length&&this.option("items",V)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var V=this._filter;V.custom||(V.custom=this._dataSource.filter()),V.internal||(V.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader:function(){return(0,m.Tn)(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(V){var e=this.option("createChildren").call(this,V);return Array.isArray(e)?(new xe.cY).resolve(e).promise():e&&(0,m.Tn)(e.then)?(0,xe.Sx)(e):(new xe.cY).resolve([]).promise()},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers()},_dataSourceChangedHandler:function(V){var e=this.option("items");this._initialized&&this._isVirtualMode()&&e.length||this.option("items",V)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=(0,j.A)("<div>").addClass(Dp),this._createComponent(this._treeViewLoadIndicator,ec.A,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(V){var e;if(this._isVirtualMode()&&(e=this._combineFilter(),this._dataSource.filter(e)),V&&!this._dataSource.isLoaded()){this.option("items",[]);var t=(0,j.A)("<div>").addClass(ft);this._createTreeViewLoadIndicator().appendTo(t),this.itemsContainer().append(t),this._isVirtualMode()&&this._dataSource.filter()!==e&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",V=>{this.option().items=this.option("items").concat(V),this._dataAdapter.addItem(V),this._dataAdapter.isFiltered(V)&&this._updateLevel(this._parentIdGetter(V))}).on("removed",V=>{var e=this._dataAdapter.getNodeByKey(V);(0,m.O9)(e)&&(this.option("items")[this._dataAdapter.getIndexByKey(e.internalFields.key)]=0,this._markChildrenItemsToRemove(e),this._removeItems(),this._dataAdapter.removeItem(V),this._updateLevel(this._parentIdGetter(e)))})},_markChildrenItemsToRemove:function(V){(0,E.__)(V.internalFields.childrenKeys,(t,n)=>{this.option("items")[this._dataAdapter.getIndexByKey(n)]=0,this._markChildrenItemsToRemove(this._dataAdapter.getNodeByKey(n))})},_removeItems:function(){var V=(0,o.X)(!0,[],this.option("items")),e=0;(0,E.__)(V,(t,n)=>{n||(this.option("items").splice(t-e,1),e++)})},_updateLevel:function(V){var e=this._getContainerByParentKey(V);this._renderItems(e,this._dataAdapter.getChildrenNodes(V))},_getOldContainer:function(V){if(V.length)return V.children(".".concat(uc));var e=this.getScrollable();return e?(0,j.A)(e.content()).children():(0,j.A)()},_getContainerByParentKey:function(V){var e=this._dataAdapter.getNodeByKey(V),t=e?this._getNodeElement(e):[];this._getOldContainer(t).remove();var n=this._renderNodeContainer(t);if(this._isRootLevel(V)){var p=this.getScrollable();p||this._renderScrollableContainer(),(0,j.A)(p.content()).append(n)}return n},_isRootLevel:function(V){return V===this.option("rootValue")},_getAccessors:function(){var V=this.callBase();return V.push("hasItems"),V},_getDataAdapterOptions:function(){var V,e,t;return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort(),langParams:null===(V=this._dataSource)||void 0===V||null===(e=V.loadOptions)||void 0===e||null===(t=e.call(V))||void 0===t?void 0:t.langParams}},_initMarkup(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this._setAriaRole()},_setAriaRole(){var{items:V}=this.option();null!=V&&V.length&&this.setAria({role:"tree"})},_renderContentImpl:function(){var V=this._renderNodeContainer();(0,j.A)(this.getScrollable().content()).append(V),this.option("items")&&this.option("items").length&&(this._renderItems(V,this._dataAdapter.getRootNodes()),this._attachExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(V)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var V=this.getDataSource(),e=V&&!V.isLoaded()||this._skipContentReadyAndItemExpanded,t=this.getScrollable();t&&(0,Ie.Vd)()&&t.update(),e||this.callBase(),t&&(0,Ie.Vd)()&&t.update()},_renderScrollableContainer:function(){this._scrollable=this._createComponent((0,j.A)("<div>").appendTo(this.$element()),lc.A,{useNative:this.option("useNativeScrolling"),direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(V){var e=(0,j.A)("<ul>").addClass(uc);if(this.setAria("role","group",e),V&&V.length){var t=this._getItemData(V.children("."+Rd));this._expandedGetter(t)&&e.addClass(od),e.appendTo(V)}return e},_createDOMElement:function(V,e){var t,n,p=(0,j.A)("<li>").addClass(md).attr(cr,this._encodeString(e.internalFields.key)).prependTo(V),P={role:"treeitem",label:this._displayGetter(e.internalFields.item)||"",level:this._getLevel(V)};return!(null==e||null===(t=e.internalFields)||void 0===t||null===(n=t.childrenKeys)||void 0===n||!n.length)&&(P.expanded=e.internalFields.expanded||!1),this.setAria(P,p),p},_getLevel:function(V){var e=V.parent();return e.hasClass("dx-scrollable-content")?1:parseInt(e.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_hasCustomExpanderIcons:function(){return this.option("expandIcon")||this.option("collapseIcon")},_selectAllEnabled:function(V){return"selectAll"===(V??this.option("showCheckBoxesMode"))&&!this._isSingleSelection()},_renderItems:function(V,e){for(var n=e.length-1;n>=0;n--)this._renderItem(n,e[n],V);this._renderedItemsCount+=e.length},_renderItem:function(V,e,t){var n=this._createDOMElement(t,e),p=e.internalFields,P=this._showCheckboxes();n.addClass(P?$h:$l),n.toggleClass(ze,!1===p.item.visible),this._hasCustomExpanderIcons()&&(n.addClass(Kh),t.addClass(Fu)),this.setAria("selected",p.selected,n),this._toggleSelectedClass(n,p.selected),p.disabled&&this.setAria("disabled",p.disabled,n),this.callBase(this._renderedItemsCount+V,p.item,n),this._getNode(e.internalFields.parentKey)||n.addClass(Pl),!1!==p.item.visible&&this._renderChildren(n,e)},_setAriaSelectionAttribute:s.lQ,_renderChildren:function(V,e){if(!this._hasChildren(e))return this._addLeafClass(V),void(0,j.A)("<div>").addClass(Md).appendTo(this._getItem(V));this._hasCustomExpanderIcons()?this._renderCustomExpanderIcons(V,e):this._renderDefaultExpanderIcons(V,e),this._shouldRenderSublevel(e.internalFields.expanded)&&this._loadSublevel(e).done(t=>{this._renderSublevel(V,this._getActualNode(e),t)})},_shouldRenderSublevel:function(V){return V||!this.option("deferRendering")},_getActualNode:function(V){return this._dataAdapter.getNodeByKey(V.internalFields.key)},_hasChildren:function(V){return this._isVirtualMode()||this._useCustomChildrenLoader()?!1!==this._hasItemsGetter(V.internalFields.item):this.callBase(V)},_loadSublevel:function(V){var e=new xe.cY,t=this._getChildNodes(V);return t.length?e.resolve(t):this._loadNestedItems(V).done(n=>{e.resolve(this._dataAdapter.getNodesByItems(n))}),e.promise()},_getItemExtraPropNames:()=>["url","linkAttr"],_addContent:function(V,e){var{html:t,url:n}=e;if(n){V.html(t);var p=this._getLinkContainer(this._getIconContainer(e),this._getTextContainer(e),e);V.append(p)}else this.callBase(V,e)},_postprocessRenderItem(V){var{itemData:e,itemElement:t}=V;this._showCheckboxes()&&this._renderCheckBox(t,this._getNode(e)),this.callBase(V)},_renderSublevel:function(V,e,t){var n=this._renderNodeContainer(V,e),p=t.filter(J=>-1!==e.internalFields.childrenKeys.indexOf(J.internalFields.key));if(this._renderItems(n,p),p.length&&!e.internalFields.selected){var P=p[0];this._updateParentsState(P,this._getNodeElement(P))}this._normalizeIconState(V,p.length),e.internalFields.expanded&&n.addClass(od)},_executeItemRenderAction:function(V,e,t){var n=this._getNode(t);this._getItemRenderAction()({itemElement:t,itemIndex:V,itemData:e,node:this._dataAdapter.getPublicNode(n)})},_addLeafClass:function(V){V.addClass(Gs)},_expandEventHandler:function(V){(0,j.A)(V.currentTarget.parentNode).hasClass(Gs)||this._toggleExpandedState(V.currentTarget,void 0,V)},_attachExpandEvent:function(){var V=this._getEventNameByOption(this.option("expandEvent")),e=this._itemContainer();this._detachExpandEvent(e),_.A.on(e,V,this._itemSelector(),this._expandEventHandler.bind(this))},_detachExpandEvent(V){_.A.off(V,".".concat(pn),this._itemSelector())},_getEventNameByOption:function(V){return(0,h.b4)("click"===V?ce.U:de.U,pn)},_getNode:function(V){if(!(0,m.O9)(V))return null;if(V.internalFields)return V;if((0,m.sO)(V))return this._dataAdapter.getNodeByKey(V);var e=(0,j.A)(V).get(0);return e?L.A.isElementNode(e)?this._getNodeByElement(e):this._dataAdapter.getNodeByItem(e):null},_getNodeByElement:function(V){var e=(0,j.A)(V).closest("."+md),t=this._decodeString(e.attr(cr));return this._dataAdapter.getNodeByKey(t)},_toggleExpandedState:function(V,e,t){var n=this._getNode(V);if(!n)return(new xe.cY).reject().promise();if(n.internalFields.disabled)return(new xe.cY).reject().promise();var p=n.internalFields.expanded;if(p===e)return(new xe.cY).resolve().promise();if(this._hasChildren(n)){var P=this._getNodeElement(n);if(P.find(".".concat(Dc,":not(.").concat(ze,")")).length)return(new xe.cY).reject().promise();!p&&!this._nodeHasRenderedChildren(P)&&this._createLoadIndicator(P)}return(0,m.O9)(e)||(e=!p),this._dataAdapter.toggleExpansion(n.internalFields.key,e),this._updateExpandedItemsUI(n,e,t)},_nodeHasRenderedChildren:V=>V.children(".".concat(uc)).not(":empty").length,_getItem:function(V){return V.children(".".concat(Rd)).eq(0)},_createLoadIndicator:function(V){var e=this._getItem(V);this._createComponent((0,j.A)("<div>").addClass(Dc),ec.A,{}).$element().appendTo(e),e.children(".".concat(yh,",.").concat(Qh)).hide()},_renderExpanderIcon:function(V,e,t,n){t.appendTo(this._getItem(V)),t.addClass(n),e.internalFields.disabled&&t.addClass(dt),this._renderToggleItemVisibilityIconClick(t,e)},_renderDefaultExpanderIcons:function(V,e){var t=this._getItem(V),n=(0,j.A)("<div>").addClass(yh).appendTo(t);e.internalFields.expanded&&(n.addClass(en),V.parent().addClass(od)),e.internalFields.disabled&&n.addClass(dt),this._renderToggleItemVisibilityIconClick(n,e)},_renderCustomExpanderIcons:function(V,e){var{expandIcon:t,collapseIcon:n}=this.option(),p=(0,bo.N)(t??n),P=(0,bo.N)(n??t);this._renderExpanderIcon(V,e,p,Qh),this._renderExpanderIcon(V,e,P,Jh);var J=e.internalFields.expanded;J&&V.parent().addClass(od),this._toggleCustomExpanderIcons(p,P,J)},_renderToggleItemVisibilityIconClick:function(V,e){var t=(0,h.b4)(ce.U,this.NAME);_.A.off(V,t),_.A.on(V,t,n=>(this._toggleExpandedState(e.internalFields.key,void 0,n),!1))},_toggleCustomExpanderIcons:function(V,e,t){e.toggle(t),V.toggle(!t)},_updateExpandedItemsUI:function(V,e,t){var n=this._getNodeElement(V),p=!n.length||e&&n.is(":hidden");if(this.option("expandNodesRecursive")&&p){var P=this._getNode(V.internalFields.parentKey);P&&this._updateExpandedItemsUI(P,e,t)}if(this._hasCustomExpanderIcons()){if(this._nodeHasRenderedChildren(n)){var fe=this._getItem(n),ke=fe.children(".".concat(Qh)),Ue=fe.children(".".concat(Jh));this._toggleCustomExpanderIcons(ke,Ue,e)}}else this._getItem(n).children(".".concat(yh)).toggleClass(en,e);var Ze=n.children(".".concat(uc)),Ft=Ze.length>0,vi=new xe.cY;return!e||Ft&&!Ze.is(":empty")?(this._animateNodeContainer(V,e,t,vi),vi.promise()):0===V.internalFields.childrenKeys.length&&(this._isVirtualMode()||this._useCustomChildrenLoader())?(this._loadNestedItemsWithUpdate(V,e,t,vi),vi.promise()):(this._renderSublevel(n,V,this._getChildNodes(V)),this._fireContentReadyAction(),this._animateNodeContainer(V,e,t,vi),vi.promise())},_loadNestedItemsWithUpdate:function(V,e,t,n){var p=this._getNodeElement(V);this._loadNestedItems(V).done(P=>{var J=this._getActualNode(V);this._renderSublevel(p,J,this._dataAdapter.getNodesByItems(P)),P&&P.length?(this._fireContentReadyAction(),this._animateNodeContainer(J,e,t,n)):n.resolve()})},_loadNestedItems:function(V){if(this._useCustomChildrenLoader()){var e=this._dataAdapter.getPublicNode(V);return this._loadChildrenByCustomLoader(e).done(t=>{this._areNodesExists(t)||this._appendItems(t)})}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),V.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done(t=>{this._areNodesExists(t)||this._appendItems(t)})):(new xe.cY).resolve([]).promise()},_areNodesExists:function(V,e){var t=this.keyOf(V[0]),n=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(t,n)},_appendItems:function(V){this.option().items=this.option("items").concat(V),this._initDataAdapter()},_animateNodeContainer:function(V,e,t,n){var p=this._getNodeElement(V),P=p.children(".".concat(uc));V&&n&&0===P.length&&n.resolve(),P.addClass(od);var J=(0,R.Oq)(P);Tr.A.stop(P,!0),Tr.A.animate(P,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:e?0:J},to:{maxHeight:e?J:0},complete:function(){P.css("maxHeight","none"),P.toggleClass(od,e),this.setAria("expanded",e,p),this.getScrollable().update(),this._fireExpandedStateUpdatedEvent(e,V,t),n&&n.resolve()}.bind(this)})},_fireExpandedStateUpdatedEvent:function(V,e,t){if(this._hasChildren(e)&&!this._skipContentReadyAndItemExpanded){var n=V?"onItemExpanded":"onItemCollapsed";if((0,m.O9)(t))this._itemDXEventHandler(t,n,{node:this._dataAdapter.getPublicNode(e)});else{var p=this._getNodeElement(e);this._itemEventHandler(p,n,{event:t,node:this._dataAdapter.getPublicNode(e)})}}},_normalizeIconState:function(V,e){var n,t=V.find(".".concat(Dc));t.length&&(null===(n=ec.A.getInstance(t))||void 0===n||n.option("visible",!1));var P=this._getItem(V).children(".".concat(Jh,",.").concat(yh));e?P.show():(P.removeClass(yh),V.addClass(Gs))},_emptyMessageContainer:function(){var V=this.getScrollable();return V?(0,j.A)(V.content()):this.callBase()},_renderContent:function(){var V=this.option("items");V&&V.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(V){var{selectAllText:e,focusStateEnabled:t}=this.option();V=V||this.$element().find(".".concat(uc)).first(),this._$selectAllItem=(0,j.A)("<div>").addClass(ve);var n=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,Dd.A,{value:n,elementAttr:{"aria-label":"Select All"},text:e,focusStateEnabled:t,onValueChanged:this._onSelectAllCheckboxValueChanged.bind(this),onInitialized:p=>{var{component:P}=p;P.registerKeyHandler("enter",()=>{P.option("value",!P.option("value"))})}}),this._toggleSelectedClass(this._$selectAllItem,n),V.before(this._$selectAllItem)},_onSelectAllCheckboxValueChanged:function(V){this._toggleSelectAll(V),this._fireSelectAllValueChanged(V.value)},_toggleSelectAll:function(V){this._dataAdapter.toggleSelectAll(V.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(V,e){var t=(0,j.A)("<div>").appendTo(V);this._createComponent(t,Dd.A,{value:e.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,elementAttr:{"aria-label":"Check State"},disabled:this._disabledGetter(e)})},_toggleSelectedClass:function(V,e){V.toggleClass("dx-state-selected",!!e)},_toggleNodeDisabledState:function(V,e){var t=this._getNodeElement(V),n=t.find("."+Rd).eq(0);this._dataAdapter.toggleNodeDisabledState(V.internalFields.key,e),n.toggleClass(dt,!!e),this._showCheckboxes()&&this._getCheckBoxInstance(t).option("disabled",!!e)},_itemOptionChanged:function(V,e,t){var n=this._dataAdapter.getNodeByItem(V);e===this.option("disabledExpr")&&this._toggleNodeDisabledState(n,t)},_changeCheckboxValue:function(V){var e=(0,j.A)(V.element).closest(".".concat(md)),t=this._getItem(e),n=this._getItemData(t),p=this._getNodeByElement(t),P=V.value;p&&p.internalFields.selected===P||this._updateItemSelection(P,n,V.event)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch:function(V,e,t){var n=e.indexOf(V.key);return n>=0&&e.splice(n,1),t&&(0,E.__)(V.children,function(p,P){this._isLastSelectedBranch(P,e,!0)}.bind(this)),V.parent&&this._isLastSelectedBranch(V.parent,e),0===e.length},_isLastRequired:function(V){var e=this.option("selectionRequired"),t=this._isSingleSelection(),n=this.getSelectedNodeKeys();if(e)return t?1===n.length:this._isLastSelectedBranch(V.internalFields.publicNode,n.slice(),!0)},_updateItemSelection:function(V,e,t){var n=this._getNode(e);if(!n||!1===n.visible)return!1;if(n.internalFields.selected===V)return!0;if(!V&&this._isLastRequired(n)){if(this._showCheckboxes()){var p=this._getNodeElement(n);this._getCheckBoxInstance(p).option("value",!0)}return!1}if(V&&this._isSingleSelection()){var P=this.getSelectedNodeKeys();(0,E.__)(P,(ke,Ue)=>{this._dataAdapter.toggleSelection(Ue,!1),this._updateItemsUI(),this._fireItemSelectionChanged(this._getNode(Ue))})}this._dataAdapter.toggleSelection(n.internalFields.key,V);var J=this._dataAdapter.isAllSelected(),fe=this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value")!==J;return this._updateItemsUI(),this._fireItemSelectionChanged(n,t),this._fireSelectionChanged(),fe&&this._fireSelectAllValueChanged(J),!0},_fireItemSelectionChanged:function(V,e){var t=e||this._findItemElementByItem(V.internalFields.item);(e?this._itemDXEventHandler:this._itemEventHandler).call(this,t,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(V),itemData:V.internalFields.item})},_getCheckBoxInstance:function(V){return this._getItem(V).children(".".concat(fs)).dxCheckBox("instance")},_updateItemsUI:function(){var V={};if((0,E.__)(this._dataAdapter.getData(),(t,n)=>{var p=this._getNodeElement(n,V),P=n.internalFields.selected;p.length&&(this._toggleSelectedClass(p,P),this.setAria("selected",P,p),this._showCheckboxes()&&this._getCheckBoxInstance(p).option("value",P))}),this._selectAllEnabled()){var e=this._$selectAllItem.dxCheckBox("instance");e.option("onValueChanged",void 0),e.option("value",this._dataAdapter.isAllSelected()),e.option("onValueChanged",this._onSelectAllCheckboxValueChanged.bind(this))}},_updateParentsState:function(V,e){if(e){var t=this._dataAdapter.getNodeByKey(V.internalFields.parentKey),n=(0,j.A)(e.parents("."+md)[0]);if(this._showCheckboxes()){var p=t.internalFields.selected;this._getCheckBoxInstance(n).option("value",p),this._toggleSelectedClass(n,p)}t.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(t,n)}},_itemEventHandlerImpl:function(V,e,t){var n=(0,j.A)(V).closest("."+md).children("."+Rd);return e((0,o.X)(this._extendActionArgs(n),t))},_itemContextMenuHandler:function(V){this._createEventHandler("onItemContextMenu",V)},_itemHoldHandler:function(V){this._createEventHandler("onItemHold",V)},_createEventHandler:function(V,e){var t=this._getNodeByElement(e.currentTarget);this._itemDXEventHandler(e,V,{node:this._dataAdapter.getPublicNode(t)})},_itemClass:function(){return Rd},_itemDataKey:function(){return Xh},_attachClickEvent:function(){var V=this._itemContainer();this._detachClickEvent(V);var{clickEventNamespace:e,itemSelector:t,pointerDownEventNamespace:n,nodeSelector:p}=this._getItemClickEventData();_.A.on(V,e,t,P=>{(0,j.A)(P.target).hasClass("dx-checkbox-icon")||(0,j.A)(P.target).hasClass(fs)||this._itemClickHandler(P,(0,j.A)(P.currentTarget))}),_.A.on(V,n,p,P=>{this._itemPointerDownHandler(P)})},_detachClickEvent:function(V){var{clickEventNamespace:e,itemSelector:t,pointerDownEventNamespace:n,nodeSelector:p}=this._getItemClickEventData();_.A.off(V,e,t),_.A.off(V,n,p)},_getItemClickEventData:function(){var V=".".concat(this._itemClass()),e=".".concat(md,", .").concat(ve);return{clickEventNamespace:(0,h.b4)(ce.U,this.NAME),itemSelector:V,pointerDownEventNamespace:(0,h.b4)(pe.A.down,this.NAME),nodeSelector:e}},_itemClick:function(V){var e=V.args[0],n=(e.event.target[0]||e.event.target).getElementsByClassName("dx-item-url")[0];e.itemData.url&&n&&n.click()},_itemClickHandler:function(V,e){var t=this._getItemData(e),n=this._getNodeByElement(e);this._itemDXEventHandler(V,"onItemClick",{node:this._dataAdapter.getPublicNode(n)},{beforeExecute:this._itemClick}),this.option("selectByClick")&&!V.isDefaultPrevented()&&this._updateItemSelection(!n.internalFields.selected,t,V)},_updateSelectionToFirstItem:function(V,e){for(var t=e;t>=0;){var n=(0,j.A)(V[t]);this._updateItemSelection(!0,n.find("."+Rd).get(0)),t--}},_updateSelectionToLastItem:function(V,e){for(var t=V.length,n=e;n<t;){var p=(0,j.A)(V[n]);this._updateItemSelection(!0,p.find("."+Rd).get(0)),n++}},focus:function(){this._selectAllEnabled()?_.A.trigger(this._$selectAllItem,"focus"):this.callBase()},_focusInHandler:function(V){this._updateFocusState(V,!0);var e=(0,j.A)(V.target).hasClass(ve);if(e||this.option("focusedElement"))return clearTimeout(this._setFocusedItemTimeout),void(this._setFocusedItemTimeout=setTimeout(()=>{var n=e?(0,z.c)(this._$selectAllItem):(0,j.A)(this.option("focusedElement"));this._setFocusedItem(n)}));var t=this._getActiveItem();this.option("focusedElement",(0,z.c)(t.closest("."+md)))},_itemPointerDownHandler:function(V){if(this.option("focusStateEnabled")){var e=(0,j.A)(V.target).closest("."+md+", ."+ve);if(e.length){var t=e.hasClass(dt)?null:e;this.option("focusedElement",(0,z.c)(t))}}},_findNonDisabledNodes:function(V){return V.not(function(){return(0,j.A)(this).children("."+Rd).hasClass(dt)})},_moveFocus:function(V,e){var J=this.option("rtlEnabled")?"right":"left",fe=this.option("rtlEnabled")?"left":"right";this.$element().find(".".concat(uc)).each(function(){Tr.A.stop(this,!0)});var ke=this._nodeElements();if(ke&&ke.length)switch(V){case"up":var Ue=this._prevItem(ke);this.option("focusedElement",(0,z.c)(Ue));var Ze=this._getNodeItemElement(Ue);this.getScrollable().scrollToElement(Ze),e.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,Ze);break;case"down":var Ft=this._nextItem(ke);this.option("focusedElement",(0,z.c)(Ft));var vi=this._getNodeItemElement(Ft);this.getScrollable().scrollToElement(vi),e.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,vi);break;case"first":var Li=ke.first();e.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(ke,ke.index(this._prevItem(ke))),this.option("focusedElement",(0,z.c)(Li)),this.getScrollable().scrollToElement(this._getNodeItemElement(Li));break;case"last":var tn=ke.last();e.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(ke,ke.index(this._nextItem(ke))),this.option("focusedElement",(0,z.c)(tn)),this.getScrollable().scrollToElement(this._getNodeItemElement(tn));break;case fe:this._expandFocusedContainer();break;case J:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_getNodeItemElement:function(V){return V.find("."+Rd).get(0)},_nodeElements:function(){return this.$element().find("."+md).not(":hidden")},_expandFocusedContainer:function(){var V=(0,j.A)(this.option("focusedElement"));if(V.length&&!V.hasClass(Gs)){if(V.find(".".concat(uc)).eq(0).hasClass(od)){var t=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return this.option("focusedElement",(0,z.c)(t)),void this.getScrollable().scrollToElement(this._getNodeItemElement(t))}var n=this._getNodeByElement(this._getItem(V));this._toggleExpandedState(n,!0)}},_getClosestNonDisabledNode:function(V){do{V=V.parent().closest("."+md)}while(V.children(".dx-treeview-item.dx-state-disabled").length);return V},_collapseFocusedContainer:function(){var V=(0,j.A)(this.option("focusedElement"));if(V.length){var e=V.find(".".concat(uc)).eq(0);if(!V.hasClass(Gs)&&e.hasClass(od)){var t=this._getNodeByElement(this._getItem(V));this._toggleExpandedState(t,!1)}else{var n=this._getClosestNonDisabledNode(V);n.length&&this.option("focusedElement",(0,z.c)(n)),this.getScrollable().scrollToElement(this._getNodeItemElement(n))}}},_encodeString:function(V){return(0,m.Kg)(V)?encodeURI(V):V},_decodeString:function(V){return(0,m.Kg)(V)?decodeURI(V):V},getScrollable:function(){return this._scrollable},updateDimensions:function(){var V=new xe.cY,e=this.getScrollable();return e?e.update().done(()=>{V.resolveWith(this)}):V.resolveWith(this),V.promise()},selectItem:function(V){return this._updateItemSelection(!0,V)},unselectItem:function(V){return this._updateItemSelection(!1,V)},expandItem:function(V){return this._toggleExpandedState(V,!0)},collapseItem:function(V){return this._toggleExpandedState(V,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodes:function(){return this.getSelectedNodeKeys().map(V=>{var e=this._dataAdapter.getNodeByKey(V);return this._dataAdapter.getPublicNode(e)})},getSelectedNodeKeys:function(){return this._dataAdapter.getSelectedNodesKeys()},selectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},_allItemsExpandedHandler:function(){this._skipContentReadyAndItemExpanded=!1,this._fireContentReadyAction()},expandAll:function(){var V=this._dataAdapter.getData(),e=[];this._skipContentReadyAndItemExpanded=!0,V.forEach(t=>e.push(this._toggleExpandedState(t.internalFields.key,!0))),Promise.allSettled(e).then(()=>{var t;return null===(t=this._allItemsExpandedHandler)||void 0===t?void 0:t.call(this)})},collapseAll:function(){(0,E.__)(this._dataAdapter.getExpandedNodesKeys(),function(V,e){this._toggleExpandedState(e,!1)}.bind(this))},scrollToItem:function(V){var e=this._getNode(V);if(!e)return(new xe.cY).reject().promise();for(var t=[],n=e.internalFields.publicNode.parent;null!=n;)n.expanded||t.push(n.key),n=n.parent;var p=new xe.cY;return this._expandNodes(t.reverse()).always(()=>{var P=this._getNodeElement(e);P&&P.length?(this.scrollToElementTopLeft(P.get(0)),p.resolve()):p.reject()}),p.promise()},scrollToElementTopLeft:function(V){var e=this.getScrollable(),{scrollDirection:t,rtlEnabled:n}=this.option(),p={top:0,left:0},P=(0,hp.Y)(Cu.JU,V);if(t!==Cu.lm){var J=(0,j.A)(e.container()).get(0);p.left=n?P.left+V.offsetWidth-J.clientWidth:P.left}t!==Cu.fK&&(p.top=P.top),e.scrollTo(p)},_expandNodes:function(V){if(!V||0===V.length)return(new xe.cY).resolve().promise();var e=new xe.cY,t=V.map(n=>this.expandItem(n));return xe.z7.apply(j.A,t).done(()=>e.resolve()).fail(()=>e.reject()),e.promise()},_dispose:function(){this.callBase(),clearTimeout(this._setFocusedItemTimeout),this._allItemsExpandedHandler=null}});wa.A.setEditorClass(Fo.A);var gd="dx-treeview",tc="".concat(gd,"-node-container"),Pd=Zh.inherit(wa.A).inherit({_addWidgetPrefix:function(V){return"".concat(gd,"-").concat(V)},_optionChanged:function(V){switch(V.name){case"searchValue":this._showCheckboxes()&&this._isRecursiveSelection()&&this._removeSelection(),this._initDataAdapter(),this._updateSearch(),this._repaintContainer(),this.option("focusedElement",null);break;case"searchExpr":this._initDataAdapter(),this.repaint();break;case"searchMode":this.option("expandNodesRecursive")?this._updateDataAdapter():this._initDataAdapter(),this.repaint();break;default:this.callBase(V)}},_updateDataAdapter:function(){this._setOptionWithoutOptionChange("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionWithoutOptionChange("expandNodesRecursive",!0)},_getDataAdapterOptions:function(){return(0,o.X)(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_getNodeContainer:function(){return this.$element().find(".".concat(tc)).first()},_updateSearch:function(){if(this._searchEditor){var V=this._getSearchEditorOptions();this._searchEditor.option(V)}},_repaintContainer:function(){var e,V=this._getNodeContainer();V.length&&(V.empty(),e=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(e),this._renderItems(V,e),this._fireContentReadyAction())},_focusTarget:function(){return this._itemContainer(this.option("searchEnabled"))},_cleanItemContainer:function(){this.$element().empty()},_itemContainer:function(V,e){var t;return null!==(t=e)&&void 0!==t||(e=this._selectAllEnabled()),e?this._getNodeContainer():this._scrollable&&V?(0,j.A)(this._scrollable.content()):this.callBase()},_addWidgetClass:function(){this.$element().addClass(this._widgetClass())},_clean:function(){this.callBase(),this._removeSearchBox()}});(0,gn.A)("dxTreeView",Pd);const Ep=Pd;var Mp="column-chooser-button",qh="notouch-action",fp="column-chooser",vm="dx-column-chooser-item",lg=["showInColumnChooser","caption","allowHiding","visible","cssClass","ownerBand"];En.registerModule("columnChooser",{defaultOptions:()=>({columnChooser:{enabled:!1,search:{enabled:!1,timeout:500,editorOptions:{}},selection:{allowSelectAll:!1,selectByClick:!1,recursive:!1},position:void 0,mode:"dragAndDrop",width:250,height:260,title:v.A.format("dxDataGrid-columnChooserTitle"),emptyPanelText:v.A.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}),controllers:{columnChooser:class Wd extends cn.ViewController{init(){super.init(),this._rowsView=this.getView("rowsView")}renderShowColumnChooserButton(e){var J,t=this,n=t.addWidgetPrefix(Mp),p=t.option("columnChooser.enabled"),P=e.find(".".concat(n));p?P.length?P.show():(J=(0,j.A)("<div>").addClass(n).appendTo(e),t._createComponent(J,Le.A,{icon:fp,onClick(){t.getView("columnChooserView").showColumnChooser()},hint:t.option("columnChooser.title"),integrationOptions:{}})):P.hide()}getPosition(){var e=this.option("columnChooser.position");return(0,m.O9)(e)?e:{my:"right bottom",at:"right bottom",of:this._rowsView&&this._rowsView.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}}},views:{columnChooserView:class dg extends Pr{optionChanged(e){"columnChooser"===e.name?(this._initializePopupContainer(),this.render(null,"full")):super.optionChanged(e)}publicMethods(){return["showColumnChooser","hideColumnChooser"]}_resizeCore(){}_isWinDevice(){return!!Ca.A.real().win}_initializePopupContainer(){var e=this,t=e.addWidgetPrefix("column-chooser"),n=e.element().addClass(t),p=e.option("columnChooser"),P=this._columnChooserController.getPosition(),J=(0,fn.ss)(),fe=(0,fn.AE)(J),ke=(0,fn.gx)(J),Ue={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,wrapperAttr:{class:t},toolbarItems:[{text:p.title,toolbar:"top",location:fe||ke?"before":"center"}],position:P,width:p.width,height:p.height,rtlEnabled:e.option("rtlEnabled"),onHidden(){e._isWinDevice()&&(0,j.A)("body").removeClass(e.addWidgetPrefix(qh))},container:p.container};fe||ke?(0,o.X)(Ue,{showCloseButton:!0}):Ue.toolbarItems[Ue.toolbarItems.length]={shortcut:"cancel"},(0,m.O9)(this._popupContainer)?this._popupContainer.option(Ue):(e._popupContainer=e._createComponent(n,vn.A,Ue),e._popupContainer.on("optionChanged",Ze=>{"visible"===Ze.name&&e.renderCompleted.fire()})),this.setPopupAttributes()}setPopupAttributes(){var e=this.isSelectMode(),t=this._columnsController.isBandColumnsUsed();this._popupContainer.setAria({role:"dialog",label:v.A.format("dxDataGrid-columnChooserTitle")}),this._popupContainer.$wrapper().toggleClass(this.addWidgetPrefix("column-chooser-mode-drag"),!e).toggleClass(this.addWidgetPrefix("column-chooser-mode-select"),e),this._popupContainer.$content().addClass(this.addWidgetPrefix("column-chooser-list")),e&&!t&&this._popupContainer.$content().addClass(this.addWidgetPrefix("column-chooser-plain"))}_renderCore(e){if(this._popupContainer){var t=!this.isSelectMode();this._columnChooserList&&"full"!==e?t&&this._updateItems():this._renderTreeView()}}_renderTreeView(){var e,t,n,p=this,P=this._popupContainer.$content(),J=this.option("columnChooser"),fe=this.isSelectMode(),Ze={dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:(0,m.O9)(J.allowSearch)?J.allowSearch:null===(e=J.search)||void 0===e?void 0:e.enabled,searchTimeout:(0,m.O9)(J.searchTimeout)?J.searchTimeout:null===(t=J.search)||void 0===t?void 0:t.timeout,searchEditorOptions:null===(n=J.search)||void 0===n?void 0:n.editorOptions};if(this._isWinDevice()&&(Ze.useNativeScrolling=!1),(0,o.X)(Ze,fe?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList)Ze.searchEnabled||(Ze.searchValue=""),this._columnChooserList.option(Ze),this._updateItems();else{this._columnChooserList=this._createComponent(P,Ep,Ze),this._updateItems();var Ft=0;this._columnChooserList.on("optionChanged",vi=>{var Li=vi.component.getScrollable();Ft=Li.scrollTop()}),this._columnChooserList.on("contentReady",vi=>{(0,s.OX)(()=>{vi.component.getScrollable().scrollTo({y:Ft}),p.renderCompleted.fire()})})}}_prepareDragModeConfig(){return{noDataText:this.option("columnChooser").emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate(t,n,p){(0,j.A)(p).text(t.text).parent().addClass(t.cssClass).addClass(vm)}}}_prepareSelectModeConfig(){var e,t=this,n=null!==(e=this.option("columnChooser.selection"))&&void 0!==e?e:{},p=!1;return{selectByClick:n.selectByClick,selectNodesRecursive:n.recursive,showCheckBoxesMode:n.allowSelectAll?"selectAll":"normal",onSelectionChanged:P=>{if(!p){var J=(fe=P.component.getNodes(),(ke=(Ue,Ze)=>Ue.reduce((Ft,vi)=>(Ft.push(vi),vi.children.length&&ke(vi.children,Ft),Ft),Ze))(fe,[]));P.component.beginUpdate(),p=!0,((fe,ke)=>{ke.filter(Ue=>!1===Ue.itemData.allowHiding).forEach(Ue=>fe.component.selectItem(Ue.key))})(P,J),P.component.endUpdate(),p=!1,t.component.beginUpdate(),this._isUpdatingColumnVisibility=!0,(fe=>{fe.forEach(ke=>{t._columnsController.columnOption(ke.itemData.id,"visible",!1!==ke.selected)})})(J),t.component.endUpdate(),this._isUpdatingColumnVisibility=!1}var fe,ke}}}_updateItems(){var e=this.isSelectMode(),n=function(V,e){var t=[],n=V.isSelectMode(),p=V.option("columnChooser.selection.recursive");return e.length&&(0,E.__)(e,(P,J)=>{var fe={text:J.caption,cssClass:J.cssClass,allowHiding:J.allowHiding,expanded:!0,id:J.index,disabled:!1===J.allowHiding,parentId:(0,m.O9)(J.ownerBand)?J.ownerBand:null};n&&!(p&&J.hasColumns)&&(fe.selected=J.visible),t.push(fe)}),t}(this,this._columnsController.getChooserColumns(e));this._columnChooserList.option("items",n)}_updateItemsSelection(e){var t=e?.map(n=>this._columnsController.columnOption(n));this._columnChooserList.beginUpdate(),t?.forEach(n=>{var{visible:p,index:P}=n;p?this._columnChooserList.selectItem(P):this._columnChooserList.unselectItem(P)}),this._columnChooserList.endUpdate()}_columnOptionChanged(e){if(super._columnOptionChanged(e),this.isSelectMode()&&this._columnChooserList&&!this._isUpdatingColumnVisibility){var{optionNames:n}=e,p=n.visible&&1===n.length,P=(0,m.O9)(e.columnIndex)?[e.columnIndex]:e.columnIndices;(lg.some(fe=>n[fe])||e.changeTypes.columns&&n.all)&&(this._updateItemsSelection(P),p||this._updateItems())}}getColumnElements(){var e=[],t=this.isSelectMode(),n=this._columnsController.getChooserColumns(t),p=this._popupContainer&&this._popupContainer.$content(),P=p&&p.find(".dx-treeview-node");return P&&n.forEach(J=>{var fe=P.filter("[data-item-id = '".concat(J.index,"']")),ke=fe.length?fe.children(".".concat(vm)).get(0):null;e.push(ke)}),(0,j.A)(e)}getName(){return"columnChooser"}getColumns(){return this._columnsController.getChooserColumns()}allowDragging(e){var t=this._columnsController.isParentColumnVisible(e.index),n=!e.visible&&e.allowHiding;return this.isColumnChooserVisible()&&t&&n}allowColumnHeaderDragging(e){return!this.isSelectMode()&&this.isColumnChooserVisible()&&e.allowHiding}getBoundingRect(){var e=this._popupContainer&&this._popupContainer.$overlayContent();if(e&&e.is(":visible")){var t=e.offset();return{left:t.left,top:t.top,right:t.left+(0,R.Ot)(e),bottom:t.top+(0,R.P$)(e)}}return null}showColumnChooser(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,j.A)("body").addClass(this.addWidgetPrefix(qh))}hideColumnChooser(){this._popupContainer&&this._popupContainer.hide()}isColumnChooserVisible(){var e=this._popupContainer;return e&&e.option("visible")}isSelectMode(){return"select"===this.option("columnChooser.mode")}hasHiddenColumns(){var e=this.option("columnChooser.enabled"),t=this.getColumns().filter(n=>!n.visible);return e&&t.length}}},extenders:{views:{headerPanel:V=>class extends V{_getToolbarItems(){var e=super._getToolbarItems();return this._appendColumnChooserItem(e)}_appendColumnChooserItem(e){var t=this;if(t.option("columnChooser.enabled")){var p=t.option("columnChooser.title");e.push({widget:"dxButton",options:{icon:fp,onClick:function(){t.component.getView("columnChooserView").showColumnChooser()},hint:p,text:p,onInitialized:function(J){(0,j.A)(J.element).addClass(t._getToolbarButtonClass(t.addWidgetPrefix(Mp)))},elementAttr:{"aria-haspopup":"dialog"}},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40})}return e}optionChanged(e){"columnChooser"===e.name?(this._invalidate(),e.handled=!0):super.optionChanged(e)}isVisible(){var e=this.option("columnChooser.enabled");return super.isVisible()||e}},columnHeadersView:V=>class extends V{allowDragging(e){var t=!this._columnChooserView.isSelectMode(),n=this._columnChooserView.isColumnChooserVisible();return t&&n&&e.allowHiding||super.allowDragging(e)}}},controllers:{columns:V=>class extends V{allowMoveColumn(e,t,n,p){return!("select"===this.option("columnChooser.mode")&&"columnChooser"===p)&&super.allowMoveColumn(e,t,n,p)}}}}});var Bu=D(81591),Hl=D(25571);function rh(V,e){for(var t=(0,Hl.st)(e.group),n=[],p=0;p<V.length;p++)n.push([t[p].selector,"=",V[p]]);return e.filter&&n.push(e.filter),Ui.A.combineFilters(n)}function qf(V,e,t){for(var n=(0,Hl.st)(e.group),p=[],P=t?V.length-1:0;P<V.length;P++){for(var J=[],fe=0;fe<=P;fe++){var{selector:ke}=n[fe];if(P!==fe||null!==V[fe]&&!1!==V[fe]&&!0!==V[fe]){var Ue=[ke,P===fe?n[fe].desc?">":"<":"=",V[fe]];J.push("<"===Ue[1]?[Ue,"or",[ke,"=",null]]:Ue)}else!1===V[fe]?J.push([ke,"=",!!n[fe].desc||null]):(V[fe]?!n[fe].desc:n[fe].desc)?J.push([ke,"<>",V[fe]]):(J.push([ke,"<>",null]),J.push([ke,"=",null]))}p.push(En.combineFilters(J))}return p=En.combineFilters(p,"or"),En.combineFilters([p,e.filter])}var em=function(V,e){var{hash:t}=V;return t&&t[JSON.stringify(e)]},Ch=function(V,e){var P,t=0,n=V.length-1;if(!V.length)return 0;do{var p=n+t>>1;V[p].offset>e?n=p:t=p}while(n-t>1);for(P=t;P<=n&&!(V[P].offset>e);P++);return P},mp=function V(e,t,n){for(var p=0;p<e.length;p++)t+1>=n?e[p].children=[]:V(e[p].children,t+1,n)},M=function V(e,t,n){var p=0;if(t)if(n)for(var P=0;P<t.length;P++)e.isGroupItemCountable(t[P])&&p++,p+=V(e,t[P].items,n-1);else p=t.length;return p};class Ae{constructor(e){this._dataSource=e,this.reset()}reset(){this._groupsInfo=[],this._totalCountCorrection=0}totalCountCorrection(){return this._totalCountCorrection}updateTotalItemsCount(e){this._totalCountCorrection=e||0}isGroupItemCountable(e){return!this._isVirtualPaging()||!e.isContinuation}_isVirtualPaging(){var e=this._dataSource.option("scrolling.mode");return"virtual"===e||"infinite"===e}itemsCount(){var t=this._dataSource._dataSource,n=En.normalizeSortingInfo(t.group()||[]).length;return M(this,t.items(),n)}foreachGroups(e,t,n,p,P){var J=this;return function fe(ke,Ue,Ze,Ft){var vi=[];function Li(la,qo,Xl,Es){var ul=qo&&la(qo,Xl);return ul&&Es.push(ul),ul}for(var tn=0;tn<ke.length;tn++){if(Ft.push(ke[tn].data),!Ze&&!1===Li(Ue,ke[tn].data,Ft,vi))return!1;if(!ke[tn].data||ke[tn].data.isExpanded||n){var{children:On}=ke[tn],Qn=On.length&&fe(On,Ue,Ze,Ft);if(Qn&&vi.push(Qn),!1===Qn)return!1}if(Ze&&!1===Li(Ue,ke[tn].data,Ft,vi))return!1;(!ke[tn].data||ke[tn].data.offset!==ke[tn].offset)&&(p=!0),Ft.pop()}var zr=P&&Ft.slice(0);return p&&xe.z7.apply(j.A,vi).always(()=>{J._updateGroupInfoOffsets(ke,zr)})}(J._groupsInfo,e,t,[])}_updateGroupInfoOffsets(e,t){t=t||[];for(var n=0;n<e.length;n++){var p=e[n];if(p.data&&p.data.offset!==p.offset){p.offset=p.data.offset;for(var P=0;P<t.length;P++)t[P].offset=p.offset}}e.sort((J,fe)=>J.offset-fe.offset)}findGroupInfo(e){for(var t,n=this._groupsInfo,p=0;n&&p<e.length;p++)n=(t=em(n,e[p]))&&t.children;return t&&t.data}addGroupInfo(e){for(var t,{path:n}=e,p=this._groupsInfo,P=0;P<n.length;P++){if(!(t=em(p,n[P]))){t={key:n[P],offset:e.offset,data:{offset:e.offset,isExpanded:!0,path:n.slice(0,P+1)},children:[]};var J=Ch(p,e.offset);p.splice(J,0,t),p.hash=p.hash||{},p.hash[JSON.stringify(t.key)]=t}P===n.length-1&&(t.data=e,t.offset!==e.offset&&this._updateGroupInfoOffsets(p)),p=t.children}}allowCollapseAll(){return!0}refresh(e){var{storeLoadOptions:t}=e,n=(0,Hl.st)(t.group||[]),p="_group"in this?(0,Hl.st)(this._group||[]):n,P=Math.min(p.length,n.length);this._group=t.group;for(var J=0;J<P;J++)if(p[J].selector!==n[J].selector){P=J;break}P?mp(this._groupsInfo,0,P):this.reset()}handleDataLoading(){}handleDataLoaded(e,t){t(e)}handleDataLoadedCore(e,t){t(e)}}function i(V,e,t,n){if(n=n||0,e>1&&t>0){var p=V-Math.floor(V/e)*e||e;return(p+=t-n-2)<0&&(p+=e),Math.floor(p/(e-n-1))}return 0}var $e=function(V,e,t){return V.foreachGroups((n,p)=>{if(n.isExpanded)return e(n,p)},!0,!1,t,t)},ua=function V(e,t,n,p,P,J,fe){var ke;if(p.items=p.items||[],p.paths=p.paths||[],p.count=p.count||0,p.lastCount=p.lastCount||0,n)for(var Ue=0;Ue<t.length;Ue++){var Ze=t[Ue];if(void 0!==Ze.items){if(P.push(Ze.key),J)ke=!0;else{var Ft=e.findGroupInfo(P);ke=Ft&&Ft.isExpanded}ke?Ze.items?V(e,Ze.items,n-1,p,P,J,fe):1===n&&Ze.count&&(!J||fe)&&(p.items.push(Ze),p.paths.push(P.slice(0)),p.count+=p.lastCount,p.lastCount=Ze.count):(Ze.collapsedItems=Ze.items,Ze.items=null),P.pop()}}},mr=function(V,e,t,n,p){var J,P=V.findGroupInfo(n);P?(t?P.count=e.count>0?e.count:e.items&&e.items.length||0:e.count=P.count||e.count,P.offset=p):(t&&(J=e.count>0?e.count:e.items.length),V.addGroupInfo({isExpanded:V._isGroupExpanded(n.length-1),path:n.slice(0),offset:p,count:J||0}))},Ll=function V(e,t,n,p,P,J,fe){var Li,Ue=(t.group?t.group.length:0)===p,Ft=0,vi=0;if(P=P||0,J=J||[],t.remoteOperations.paging&&!fe&&(Ft=0===P?t.skip||0:t.skips[P-1]||0),P>=p)return n.length;for(var tn=0;tn<n.length;tn++){var On=n[tn];if(On){if(J.push(On.key),!On.count&&!On.items||void 0===On.items||(mr(e,On,Ue,J,Ft+tn),(Li=On.items?V(e,t,On.items,p,P+1,J,tn):On.count||-1)<0))return-1;vi+=Li,J.pop()}}return vi},dl=function(V,e){return V&&V.length&&V[e]&&!!V[e].isExpanded},Ec=function(V,e,t){for(var n,p=t,P=0;P<V.length;P++)n=V[P].offset+1,P>0&&(n+=V[P-1].childrenTotalCount,e&&(n+=i(p,e,n,P-1)*P)),p+=n;return p};function Od(V,e,t,n){var p=e.items[n],P=V.skips&&V.skips[t],J=V.takes&&V.takes[t],fe=n===e.items.length-1,ke=0===n,Ze=p.count>J+(ke&&P||0);ke&&void 0!==P&&(p.isContinuation=!0),fe&&void 0!==J&&Ze&&(p.isContinuationOnNextPage=!0)}function af(V){return!Array.isArray(V)}function km(V){af(V.data)||(V.data=new xe.cY)}function ic(V,e,t,n,p,P){e.isCustomLoading||(ua(V,P,t,n={},[]),function wh(V,e,t){var n=t-1,p=V.group?V.group.length:0;e.skip=V.skips&&V.skips[n],V.takes&&void 0!==V.takes[n]&&(e.take=p===t&&e.count?e.count-(e.skip||0):0,e.take+=V.takes[n])}(e,n,t)),n.paths.length&&(e.group?e.group.length:0)-t>0?(km(e),function ah(V,e,t,n,p,P){var J=e.group||[],fe=J[p+1],ke=[];(0,E.__)(t.paths,Ue=>{var Ze,Ft={requireTotalCount:!1,requireGroupCount:!0,group:[fe],groupSummary:e.storeLoadOptions.groupSummary,filter:rh(t.paths[Ue],{filter:e.storeLoadOptions.filter,group:J}),select:e.storeLoadOptions.select,langParams:null===(Ze=e.storeLoadOptions)||void 0===Ze?void 0:Ze.langParams};0===Ue&&(Ft.skip=t.skip||0),Ue===t.paths.length-1&&(Ft.take=t.take);var vi=0===Ft.take?[]:V._dataSource.loadFromStore(Ft);(0,xe.z7)(vi).done(Li=>{var tn=t.items[Ue];Od(e,t,p,Ue),tn.items=Li}),ke.push(vi)}),xe.z7.apply(null,ke).done(()=>{Ll(V,e,P,n+1),ic(V,e,n+1,t,p+1,P)})}(V,e,n,t,p,P)):n.paths.length&&e.storeLoadOptions.group?(km(e),function Op(V,e,t,n){var p=[],P=e.group||[];(0,E.__)(t.paths,(Ue,Ze)=>{p.push(rh(Ze,{group:e.isCustomLoading?e.storeLoadOptions.group:P}))});var{filter:J}=e.storeLoadOptions;e.storeLoadOptions.isLoadingAll||(J=En.combineFilters([J,En.combineFilters(p,"or")]));var fe=(0,o.X)({},e.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:P.concat(En.normalizeSortingInfo(e.storeLoadOptions.sort||[])),filter:J}),ke=V._dataSource.isLastLevelGroupItemsPagingLocal();ke||(fe.skip=t.skip,fe.take=t.take),(0,xe.z7)(0===t.take?[]:V._dataSource.loadFromStore(fe)).done(Ue=>{ke&&(Ue=V._dataSource.sortLastLevelGroupItems(Ue,P,t.paths),Ue=t.skip?Ue.slice(t.skip):Ue,Ue=t.take?Ue.slice(0,t.take):Ue),(0,E.__)(t.items,(Ze,Ft)=>{var Li=Ue.splice(0,Ft.count-(0===Ze&&t.skip||0));Od(e,t,P.length-1,Ze),Ft.items=Li}),e.data.resolve(n)}).fail(e.data.reject)}(V,e,n,P)):af(e.data)&&e.data.resolve(P)}var Mf=function(V,e){var t=new xe.cY,n=!(!e.group||!e.group.length),p=(0,o.X)({skip:0,take:1,requireGroupCount:n,requireTotalCount:!n},e,{group:n?e.group:null});return V.load(p).done((P,J)=>{var fe=J&&(n?J.groupCount:J.totalCount);isFinite(fe)?t.resolve(fe):t.reject(Bu.sO.Error(n?"E4022":"E4021"))}).fail(t.reject.bind(t)),t};class Sh extends Ae{updateTotalItemsCount(e){var t=0,n=e.extra&&e.extra.totalCount||0,p=e.extra&&e.extra.groupCount||0,P=this._dataSource.pageSize(),J=this._isVirtualPaging();$e(this,fe=>{fe.childrenTotalCount=0}),$e(this,(fe,ke)=>{var Ue=Ec(ke,J?0:P,t),Ze=fe.count+fe.childrenTotalCount;J||(Ze+=i(Ue,P,Ze,ke.length-1)),ke[ke.length-2]?ke[ke.length-2].childrenTotalCount+=Ze:t+=Ze}),super.updateTotalItemsCount(t-n+p)}_isGroupExpanded(e){var t=this._dataSource.group();return dl(t,e)}_updatePagingOptions(e,t){var n=this._isVirtualPaging(),p=this._dataSource.pageSize(),P=[],J=[],fe=0,ke=0;e.take&&($e(this,Ue=>{Ue.childrenTotalCount=0,Ue.skipChildrenTotalCount=0}),$e(this,(Ue,Ze)=>{var Ft,vi=0,Li=0,tn=Ec(Ze,n?0:p,ke),On=0,Qn=0,zr=Ue.count+Ue.childrenTotalCount,la=zr;t&&t(Ue,tn);var qo=e.skip-tn;tn<=e.skip+e.take&&zr&&(Ft=e.take,n||(zr+=(On=i(tn,p,zr,Ze.length-1))*Ze.length,la+=On,p&&qo>=0&&(vi=Ze.length,Li=Ze.length-1,Qn=Math.floor(qo/p))),qo>=0?(tn+zr>e.skip&&P.unshift(qo-Qn*vi-Ue.skipChildrenTotalCount),tn+zr>=e.skip+Ft&&J.unshift(Ft-vi-Ue.childrenTotalCount+Ue.skipChildrenTotalCount)):tn+zr>=e.skip+Ft&&J.unshift(Ft+qo-Ue.childrenTotalCount)),tn<=e.skip&&(Ze[Ze.length-2]?Ze[Ze.length-2].skipChildrenTotalCount+=Math.min(la,qo+1-Qn*Li):fe+=Math.min(la,qo+1)),tn<=e.skip+Ft&&(zr=Math.min(la,qo+Ft-(Qn+1)*Li),Ze[Ze.length-2]?Ze[Ze.length-2].childrenTotalCount+=zr:ke+=zr)}),e.skip-=fe,e.take-=ke-fe),e.skips=P,e.takes=J}changeRowExpand(e){var t=this.findGroupInfo(e),n=this._dataSource,p=n.remoteOperations().groupPaging,P=En.normalizeSortingInfo(n.group());return t?(t.isExpanded=!t.isExpanded,p&&t.isExpanded&&e.length<P.length?Mf(n,{filter:rh(e,{filter:n.lastLoadOptions().filter,group:n.group()}),group:[P[e.length]],select:n.select()}).done(J=>{t.count=J}):(new xe.cY).resolve()):(new xe.cY).reject()}handleDataLoading(e){var{storeLoadOptions:t}=e,n=En.normalizeSortingInfo(t.group||e.loadOptions.group);if(!e.isCustomLoading&&n.length){if(e.remoteOperations.grouping){var p=this._dataSource.remoteOperations().paging;t.group=En.normalizeSortingInfo(t.group),t.group.forEach((P,J)=>{P.isExpanded=!(p&&J===t.group.length-1)})}e.group=e.group||n,e.remoteOperations.paging?(e.skip=t.skip,e.take=t.take,t.requireGroupCount=!0,t.group=n.slice(0,1),this._updatePagingOptions(e),t.skip=e.skip,t.take=e.take):(e.skip=e.loadOptions.skip,e.take=e.loadOptions.take,this._updatePagingOptions(e))}}handleDataLoadedCore(e,t){var P,n=En.normalizeSortingInfo(e.storeLoadOptions.group||e.loadOptions.group).length,p=e.group?e.group.length:0,J={};if(e.isCustomLoading)t(e),ua(this,e.data,n,J,[],e.isCustomLoading,e.storeLoadOptions.isLoadingAll);else{if(e.remoteOperations.paging||this.foreachGroups(fe=>{fe.count=0}),(P=Ll(this,e,e.data,n))<0)return void(e.data=(new xe.cY).reject(Et.A.Error("E1037")));if(e.remoteOperations.paging||n&&e.extra&&e.loadOptions.requireTotalCount&&(e.extra.totalCount=P,e.extra.groupCount=e.data.length),p&&e.storeLoadOptions.requireGroupCount&&!isFinite(e.extra.groupCount))return void(e.data=(new xe.cY).reject(Bu.sO.Error("E4022")));this.updateTotalItemsCount(e),e.remoteOperations.paging||(this._updatePagingOptions(e),e.lastLoadOptions.skips=e.skips,e.lastLoadOptions.takes=e.takes),t(e),e.remoteOperations.paging||this._processPaging(e,n)}ic(this,e,n,J,0,e.data)}_processSkips(e,t,n){if(n){var p=e[0],P=t[0],J=p&&p.items;void 0!==P&&(p.isContinuation=!0,J&&(p.items=J.slice(P),this._processSkips(p.items,t.slice(1),n-1)))}}_processTakes(e,t,n,p,P){if(p&&e){P=P||[];var J=e[e.length-1],fe=J&&J.items,ke=n[0];J&&(void 0!==ke&&(J.count-(J.isContinuation&&t[0]||0)||fe.length)>ke&&(J.isContinuationOnNextPage=!0,P.forEach(Ft=>{Ft.isContinuationOnNextPage=!0}),fe&&(fe=fe.slice(0,ke),J.items=fe)),P.push(J),this._processTakes(fe,t.slice(1),n.slice(1),p-1,P))}}_processPaging(e,t){this._processSkips(e.data,e.skips,t),this._processTakes(e.data,e.skips,e.takes,t)}isLastLevelGroupItemsPagingLocal(){return!1}sortLastLevelGroupItems(e){return e}refresh(e,t){var ke,Ue,n=this,p=n._dataSource,{storeLoadOptions:P}=e,J=e.group||e.storeLoadOptions.group,fe=En.normalizeSortingInfo(n._group);function Ze(Ft,vi){vi.length===Ue+1&&(Ft.isExpanded=ke)}for(Ue=0;Ue<fe.length;Ue++)ke=dl(J,Ue),dl(n._group,Ue)!==ke&&n.foreachGroups(Ze);if(super.refresh.apply(this,arguments),J&&e.remoteOperations.paging&&t.reload)return $e(n,Ft=>{var vi=Mf(p,{filter:rh(Ft.path,{filter:P.filter,group:J}),group:J.slice(Ft.path.length),select:P.select}),Li=Mf(p,{filter:qf(Ft.path,{filter:P.filter,group:J},!0),group:J.slice(Ft.path.length-1,Ft.path.length),select:P.select});return(0,xe.z7)(Li,vi).done((tn,On)=>{tn=parseInt(tn.length?tn[0]:tn),On=parseInt(On.length?On[0]:On),Ft.offset=tn,Ft.count!==On&&(Ft.count=On,n.updateTotalItemsCount(e))})},!0)}}var Of=function(V,e){var t=new xe.cY,n=(0,o.X)({skip:0,take:1,requireTotalCount:!0},e);return V.load(n).done((p,P)=>{t.resolve(P&&P.totalCount)}).fail(t.reject.bind(t)),t},sf=function(V,e,t){return V.foreachGroups(n=>{if(!n.isExpanded)return e(n)},!1,!1,t,!0)},jc=function(V,e){var t=0,n=e||0;return e&&(sf(V,p=>{if(p.offset-t>=e)return!1;t+=p.count-1}),n+=t),n},Rm=function V(e,t,n,p,P,J){for(var fe=0,ke=!1,Ue=0;Ue<t.length;Ue++){var Ze=t[Ue];if(void 0!==Ze.items){n.push(Ze.key);var Ft=e.findGroupInfo(n);if(Ft&&!Ft.isExpanded)Ze.collapsedItems=Ze.items,Ze.items=null,p+=Ft.count,--J<0&&fe++,P&&(ke=!0);else if(Ze.items){var vi=V(e,Ze.items,n,p,P,J);P&&(vi.offset-p>1?Ze.isContinuation=!0:ke=!0),p=vi.offset,(J=vi.take)<0&&(Ze.items.length?Ze.isContinuationOnNextPage=!0:fe++)}n.pop()}else P&&(ke=!0),p++,--J<0&&fe++;P=!1}return ke&&t.splice(0,1),fe&&t.splice(-fe,fe),{offset:p,take:J}},Pm=function(V,e){if(V.length!==e.length)return!1;for(var t=0;t<V.length;t++)if(!(0,Hl.t7)(null,V[t],e[t]))return!1;return!0},tm=function V(e,t,n,p,P){if(t){for(var J=0;J<t.length;J++){var fe=t[J];if("key"in fe&&void 0!==fe.items){n.push(fe.key),P&&Pm(P.path,n)&&!fe.isContinuation&&(P.offset=p);var ke=e.findGroupInfo(n);ke&&!fe.isContinuation&&(ke.offset=p),ke&&!ke.isExpanded?p+=ke.count:p=V(e,fe.items,n,p,P),n.pop()}else p++}return p}},ug=function V(e,t){var n=e.count||e.items.length;if(!e.count&&t>1){n=0;for(var p=0;p<e.items.length;p++)n+=V(e.items[p],t-1)}return n};class Fm extends Ae{handleDataLoading(e){var J,{storeLoadOptions:t}=e,n=[],p=0,P=!1,{group:fe}=e.loadOptions,ke=0;if(function(V,e){if(e.group){var t=En.normalizeSortingInfo(e.group),n=En.normalizeSortingInfo(V.sort);V.sort=vr.A.arrangeSortingInfo(t,n),delete e.group}}(t,e.loadOptions),e.group=e.group||fe,!e.isCustomLoading){var Ue=(0,o.X)({},t);Ue.skip=jc(this,t.skip),Ue.skip&&Ue.take&&fe&&(Ue.skip--,Ue.take++,P=!0),Ue.take&&fe&&(J=Ue.take,Ue.take++),sf(this,Ze=>{if(Ze.offset>=Ue.skip+Ue.take+ke)return!1;Ze.offset>=Ue.skip+ke&&Ze.count&&(ke+=Ze.count-1,n.push(Ze),p+=Ze.count)}),(0,E.__)(n,function(){Ue.filter=function(V,e,t){for(var n=En.normalizeSortingInfo(t||e.group),p=[],P=0;P<V.length;P++){for(var J=[],fe=0;fe<=P;fe++)J.push([n[fe].selector,P===fe?"<>":"=",V[fe]]);p.push(En.combineFilters(J))}return p=En.combineFilters(p,"or"),En.combineFilters([p,e.filter])}(this.path,Ue,fe)}),e.storeLoadOptions=Ue,e.collapsedGroups=n,e.collapsedItemsCount=p,e.skip=Ue.skip||0,e.skipFirstItem=P,e.take=J}}handleDataLoaded(e,t){var{collapsedGroups:n}=e,p=En.normalizeSortingInfo(e.group),P=p.length;function J(Ze,Ft,vi,Li,tn){if(Ze&&Ft.length&&vi.length){var On,Qn,zr=(0,aa.ao)(Ft[0],!0);for(Qn=0;Qn<Ze.length&&(On=(0,aa.ao)(Ze[Qn].key,!0),!(tn>=Li.offset||zr===On));Qn++)tn+=ug(Ze[Qn],vi.length);(!Ze.length||zr!==On)&&Ze.splice(Qn,0,{key:Ft[0],items:[],count:1===Ft.length?Li.count:void 0}),J(Ze[Qn].items,Ft.slice(1),vi.slice(1),Li,tn)}}if(e.collapsedItemsCount&&e.extra&&e.extra.totalCount>=0&&(e.extra._totalCountWasIncreasedByCollapsedItems||(e.extra.totalCount+=e.collapsedItemsCount,e.extra._totalCountWasIncreasedByCollapsedItems=!0)),t(e),P){var{data:fe}=e,ke=(0,Ia.A)(fe);if(vr.A.multiLevelGroup(ke,p).enumerate().done(Ze=>{fe=Ze}),n)for(var Ue=0;Ue<n.length;Ue++)J(fe,n[Ue].path,p,n[Ue],e.skip);e.isCustomLoading||Rm(this,fe,[],e.skip,e.skipFirstItem,e.take),e.data=fe}}isGroupItemCountable(e){return null===e.items}updateTotalItemsCount(){var e=0;sf(this,t=>{t.count&&(e-=t.count-1)}),super.updateTotalItemsCount(e)}changeRowExpand(e){var ke,t=this,n=t._dataSource,p=n.beginPageIndex?n.beginPageIndex():n.pageIndex(),P=n.items(),J=jc(t,p*n.pageSize()),fe=t.findGroupInfo(e);return ke=fe&&!fe.isExpanded?(new xe.cY).resolve(fe.count):Of(n,{filter:rh(e,{filter:n.filter(),group:n.group()})}),(0,xe.z7)(ke).done(Ue=>{Ue=parseInt(Ue.length?Ue[0]:Ue),fe?(tm(t,P,[],J),fe.isExpanded=!fe.isExpanded,fe.count=Ue):(tm(t,P,[],J,fe={offset:-1,count:Ue,path:e,isExpanded:!1}),fe.offset>=0&&t.addGroupInfo(fe)),t.updateTotalItemsCount()}).fail(function(){n._eventsStrategy.fireEvent("loadError",arguments)})}allowCollapseAll(){return!1}refresh(e,t){var n=this,{storeLoadOptions:p}=e,P=n._dataSource;if(super.refresh.apply(this,arguments),t.reload)return sf(n,J=>{var fe=Of(P,{filter:rh(J.path,p)}),ke=Of(P,{filter:qf(J.path,p)});return(0,xe.z7)(ke,fe).done((Ue,Ze)=>{Ue=parseInt(Ue.length?Ue[0]:Ue),Ze=parseInt(Ze.length?Ze[0]:Ze),J.offset=Ue,J.count!==Ze&&(J.count=Ze,n.updateTotalItemsCount())})},!0)}}var Tp="dx-datagrid-group-panel",ep="dx-group-panel-item",lf="dx-toolbar-label";su.extend(V=>class extends V{init(){super.init.apply(this,arguments),this._initGroupingHelper()}_initGroupingHelper(e){var t=this._grouping,n=this.option("grouping.autoExpandAll"),p=this.option("focusedRowEnabled"),P=e?e.remoteOperations:this.remoteOperations();!(P.filtering&&P.sorting&&P.paging)||P.grouping||!n&&p?(!t||t instanceof Fm)&&(this._grouping=new Sh(this)):(!t||t instanceof Sh)&&(this._grouping=new Fm(this))}totalItemsCount(){var e=super.totalItemsCount();return e>0&&this._dataSource.group()&&this._dataSource.requireTotalCount()?e+this._grouping.totalCountCorrection():e}itemsCount(){return this._dataSource.group()?this._grouping.itemsCount()||0:super.itemsCount.apply(this,arguments)}allowCollapseAll(){return this._grouping.allowCollapseAll()}isGroupItemCountable(e){return this._grouping.isGroupItemCountable(e)}isRowExpanded(e){var t=this._grouping.findGroupInfo(e);return t?t.isExpanded:!this._grouping.allowCollapseAll()}collapseAll(e){return this._collapseExpandAll(e,!1)}expandAll(e){return this._collapseExpandAll(e,!0)}_collapseExpandAll(e,t){var n=this._dataSource,p=n.group(),P=En.normalizeSortingInfo(p||[]);if(P.length){for(var J=0;J<P.length;J++)void 0===e||e===J?P[J].isExpanded=t:p&&p[J]&&(P[J].isExpanded=p[J].isExpanded);n.group(P),this._grouping.foreachGroups((fe,ke)=>{(void 0===e||e===ke.length-1)&&(fe.isExpanded=t)},!1,!0),this.resetPagesCache()}return!0}refresh(){return super.refresh.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)}changeRowExpand(e){var t=this._dataSource;if(t.group())return t.beginLoading(),this._lastLoadOptions&&(this._lastLoadOptions.groupExpand=!0),this._changeRowExpandCore(e).always(()=>{t.endLoading()})}_changeRowExpandCore(e){return this._grouping.changeRowExpand(e)}_hasGroupLevelsExpandState(e,t){if(e&&Array.isArray(e))for(var n=0;n<e.length;n++)if(e[n].isExpanded===t)return!0}_customizeRemoteOperations(e,t){var{remoteOperations:n}=e;e.storeLoadOptions.group?(n.grouping&&!e.isCustomLoading&&(!n.groupPaging||this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!0))&&(n.paging=!1),!n.grouping&&(!n.sorting||!n.filtering||e.isCustomLoading||this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!1))&&(n.paging=!1)):!e.isCustomLoading&&n.paging&&t.grouping&&this.resetCache(),super._customizeRemoteOperations.apply(this,arguments)}_handleDataLoading(e){return super._handleDataLoading(e),this._initGroupingHelper(e),this._grouping.handleDataLoading(e)}_handleDataLoaded(e){return this._grouping.handleDataLoaded(e,super._handleDataLoaded.bind(this))}_handleDataLoadedCore(e){return this._grouping.handleDataLoadedCore(e,super._handleDataLoadedCore.bind(this))}});var $r=function(V,e){var t=this._columnsController;switch(e.itemData.value){case"group":var n=t._dataSource.group()||[];t.columnOption(V.dataField,"groupIndex",n.length);break;case"ungroup":t.columnOption(V.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},Ta=V=>{var e=V?.visible;return"auto"===e?"desktop"===Ca.A.current().deviceType:!!e},ho=(V,e)=>Ta(V)&&!(!V?.allowColumnDragging||!e.allowGrouping);En.registerModule("grouping",{defaultOptions:()=>({grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:v.A.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:v.A.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:v.A.format("dxDataGrid-groupHeaderText"),ungroup:v.A.format("dxDataGrid-ungroupHeaderText"),ungroupAll:v.A.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:v.A.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}),extenders:{controllers:{data:V=>class extends V{init(){super.init(),this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed")}_beforeProcessItems(e){var t=this._columnsController.getGroupColumns();return(e=super._beforeProcessItems(e)).length&&t.length&&(e=this._processGroupItems(e,t.length)),e}_processItem(e,t){return(0,m.O9)(e.groupIndex)&&(0,m.Kg)(e.rowType)&&0===e.rowType.indexOf("group")?(e=this._processGroupItem(e,t),t.dataIndex=0):e=super._processItem.apply(this,arguments),e}_processGroupItem(e,t){return e}_processGroupItems(e,t,n){var p=this._columnsController.getGroupColumns(),P=p[p.length-t];if(!n){var J=this.option("scrolling.mode");n={collectContinuationItems:"virtual"!==J&&"infinite"!==J,resultItems:[],path:[],values:[]}}var{resultItems:fe}=n;if(n.data&&(n.collectContinuationItems||!n.data.isContinuation)&&fe.push({rowType:"group",data:n.data,groupIndex:n.path.length-1,isExpanded:!!n.data.items,key:n.path.slice(0),values:n.values.slice(0)}),e)if(0===t)fe.push.apply(fe,e);else for(var ke=0;ke<e.length;ke++){var Ue=e[ke];Ue&&"items"in Ue?(n.data=Ue,n.path.push(Ue.key),n.values.push(P&&P.deserializeValue&&!P.calculateDisplayValue?P.deserializeValue(Ue.key):Ue.key),this._processGroupItems(Ue.items,t-1,n),n.data=void 0,n.path.pop(),n.values.pop()):fe.push(Ue)}return fe}publicMethods(){return super.publicMethods().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])}collapseAll(e){var t=this._dataSource;t&&t.collapseAll(e)&&(t.pageIndex(0),t.reload())}expandAll(e){var t=this._dataSource;t&&t.expandAll(e)&&(t.pageIndex(0),t.reload())}changeRowExpand(e){var t=this,n=t.isRowExpanded(e),p={key:e,expanded:n};return t.executeAction(n?"onRowCollapsing":"onRowExpanding",p),p.cancel?(new xe.cY).resolve():(0,xe.z7)(t._changeRowExpandCore(e)).done(()=>{p.expanded=!n,t.executeAction(n?"onRowCollapsed":"onRowExpanded",p)})}_changeRowExpandCore(e){var t=this,n=this._dataSource,p=new xe.cY;return n?(0,xe.z7)(n.changeRowExpand(e)).done(()=>{t.load().done(p.resolve).fail(p.reject)}).fail(p.reject):p.resolve(),p}isRowExpanded(e){var t=this._dataSource;return t&&t.isRowExpanded(e)}expandRow(e){return this.isRowExpanded(e)?(new xe.cY).resolve():this.changeRowExpand(e)}collapseRow(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new xe.cY).resolve()}optionChanged(e){"grouping"===e.name&&(e.name="dataSource"),super.optionChanged(e)}},columns:V=>class extends V{_getExpandColumnOptions(){var e=super._getExpandColumnOptions.apply(this,arguments);return e.cellTemplate=En.getExpandCellTemplate(),e}},editing:V=>class extends V{_isProcessedItem(e){return(0,m.O9)(e.groupIndex)&&(0,m.Kg)(e.rowType)&&0===e.rowType.indexOf("group")}}},views:{headerPanel:V=>class extends V{_getToolbarItems(){var e=super._getToolbarItems();return this._appendGroupingItem(e)}_appendGroupingItem(e){if(this._isGroupPanelVisible()){var t=!1;e.push({template:()=>{var p=(0,j.A)("<div>").addClass(Tp);return this._updateGroupPanelContent(p),W("groupPanel",this,p,void 0,this._handleActionKeyDown.bind(this)),p},name:"groupPanel",onItemRendered:()=>{t&&this.renderCompleted.fire(),t=!0},location:"before",locateInMenu:"never",sortIndex:1}),this.updateToolbarDimensions()}return e}_handleActionKeyDown(e){var{event:t}=e,n=(0,j.A)(t.target),p=n.closest(".".concat(ep)).index(),P=this._columnsController.getGroupColumns()[p],J=P&&P.index;n.is(".dx-header-filter")?this._headerFilterController.showHeaderFilterMenu(J,!0):this._processGroupItemAction(J),t.preventDefault()}_isGroupPanelVisible(){return Ta(this.option("groupPanel"))}_renderGroupPanelItems(e,t){var n=this;e.empty(),(0,E.__)(t,(p,P)=>{n._createGroupPanelItem(e,P)}),we(this)}_createGroupPanelItem(e,t){var n=(0,j.A)("<div>").addClass(t.cssClass).addClass(ep).data("columnData",t).appendTo(e).text(t.caption);return function G(V,e){V.option("useLegacyKeyboardnavigation")||e.attr("tabindex",V.option("tabindex")||0)}(this,n),n}_columnOptionChanged(e){if(!this._requireReady&&!En.checkChanges(e.optionNames,["width","visibleWidth"])){var t=this.element(),n=t&&t.find(".".concat(Tp));n&&n.length&&(this._updateGroupPanelContent(n),this.updateToolbarDimensions(),this.renderCompleted.fire())}super._columnOptionChanged()}_updateGroupPanelContent(e){var t=this.getColumns(),n=this.option("groupPanel");this._renderGroupPanelItems(e,t),n.allowColumnDragging&&!t.length&&((0,j.A)("<div>").addClass("dx-group-panel-message").text(n.emptyPanelText).appendTo(e),e.closest(".".concat("dx-toolbar-item")).addClass(lf),e.closest(".".concat(lf)).css("maxWidth","none"))}allowDragging(e){var t=this.option("groupPanel");return ho(t,e)}getColumnElements(){var e=this.element();return e&&e.find(".".concat(ep))}getColumns(){return this._columnsController.getGroupColumns()}getBoundingRect(){var e=this.element();if(e&&e.find(".".concat(Tp)).length){var t=e.offset();return{top:t.top,bottom:t.top+(0,R.Oq)(e)}}return null}getName(){return"group"}getContextMenuItems(e){var p,t=this.option("grouping.contextMenuEnabled"),n=(0,j.A)(e.targetElement).closest(".".concat(ep));if(n.length&&(e.column=n.data("columnData")),t&&e.column){var{column:P}=e;if(!(0,m.O9)(P.allowGrouping)||P.allowGrouping){var fe=(0,m.O9)(P.groupIndex)&&P.groupIndex>-1,ke=this.option("grouping.texts"),Ue=$r.bind(this,P);p=[{text:ke.ungroup,value:"ungroup",disabled:!fe,onItemClick:Ue},{text:ke.ungroupAll,value:"ungroupAll",onItemClick:Ue}]}}return p}isVisible(){return super.isVisible()||this._isGroupPanelVisible()}hasGroupedColumns(){return this._isGroupPanelVisible()&&!!this.getColumns().length}optionChanged(e){"groupPanel"===e.name?(this._invalidate(),e.handled=!0):super.optionChanged(e)}},rowsView:V=>class extends V{getContextMenuItems(e){var n;if(this.option("grouping.contextMenuEnabled")&&e.row&&"group"===e.row.rowType){var P=this._columnsController.columnOption("groupIndex:".concat(e.row.groupIndex));if(P&&P.allowGrouping){var J=this.option("grouping.texts"),fe=$r.bind(this,P);(n=[]).push({text:J.ungroup,value:"ungroup",onItemClick:fe},{text:J.ungroupAll,value:"ungroupAll",onItemClick:fe})}}return n}_rowClick(e){var t=this.option("grouping.expandMode"),p="infinite"!==this.option("scrolling.mode")&&"rowClick"===t&&(0,j.A)(e.event.target).closest(".".concat("dx-group-row")).length,P=(0,j.A)(e.event.target).closest(".".concat("dx-datagrid-expand")).length;(p||P)&&this._changeGroupRowState(e),super._rowClick(e)}_changeGroupRowState(e){var t=this._dataController.items()[e.rowIndex],n=this._columnsController.columnOption("groupIndex:".concat(t.groupIndex),"allowCollapsing");("data"===t.rowType||"group"===t.rowType&&!1!==n)&&(this._dataController.changeRowExpand(t.key,!0),e.event.preventDefault(),e.handled=!0)}},columnHeadersView:V=>class extends V{getContextMenuItems(e){var t=this.option("grouping.contextMenuEnabled"),n=super.getContextMenuItems(e);if(t&&e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var{column:p}=e;if(!p.command&&(!(0,m.O9)(p.allowGrouping)||p.allowGrouping)){var P=this.option("grouping.texts"),J=(0,m.O9)(p.groupIndex)&&p.groupIndex>-1,fe=$r.bind(this,p);(n=n||[]).push({text:P.groupByThisColumn,value:"group",beginGroup:!0,disabled:J,onItemClick:fe}),p.showWhenGrouped&&n.push({text:P.ungroup,value:"ungroup",disabled:!J,onItemClick:fe}),n.push({text:P.ungroupAll,value:"ungroupAll",onItemClick:fe})}}return n}allowDragging(e){var t=this.option("groupPanel");return ho(t,e)||super.allowDragging(e)}}}}});var jd="dx-master-detail-row",Hd=function(V){V._expandedItems=[],V._isExpandAll=V.option("masterDetail.autoExpandAll")};En.registerModule("masterDetail",{defaultOptions:()=>({masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}),extenders:{controllers:{columns:V=>class extends V{_getExpandColumnsCore(){var e=super._getExpandColumnsCore();return this.option("masterDetail.enabled")&&e.push({type:"detailExpand",cellTemplate:Ui.A.getExpandCellTemplate()}),e}},data:V=>class extends V{init(){Hd(this),super.init()}expandAll(e){e<0?(this._isExpandAll=!0,this._expandedItems=[],this.updateItems()):super.expandAll.apply(this,arguments)}collapseAll(e){e<0?(this._isExpandAll=!1,this._expandedItems=[],this.updateItems()):super.collapseAll.apply(this,arguments)}isRowExpandedHack(){return super.isRowExpanded.apply(this,arguments)}isRowExpanded(e){var t=Ui.A.getIndexByKey(e,this._expandedItems);return Array.isArray(e)?super.isRowExpanded.apply(this,arguments):!!(this._isExpandAll^(t>=0&&this._expandedItems[t].visible))}_getRowIndicesForExpand(e){var t=this.getRowIndexByKey(e);return[t,t+1]}_changeRowExpandCore(e){var t;if(Array.isArray(e))t=super._changeRowExpandCore.apply(this,arguments);else{var n=Ui.A.getIndexByKey(e,this._expandedItems);if(n>=0){var{visible:p}=this._expandedItems[n];this._expandedItems[n].visible=!p}else this._expandedItems.push({key:e,visible:!0});this.updateItems({changeType:"update",rowIndices:this._getRowIndicesForExpand(e)}),t=(new xe.cY).resolve()}return t}_processDataItemHack(){return super._processDataItem.apply(this,arguments)}_processDataItem(e,t){var n=super._processDataItem.apply(this,arguments);return n.isExpanded=this.isRowExpanded(n.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,(0,E.__)(t.visibleColumns,(p,P)=>{if("expand"===P.command&&!(0,m.O9)(P.groupIndex))return t.detailColumnIndex=p,!1})),t.detailColumnIndex>=0&&(n.values[t.detailColumnIndex]=n.isExpanded),n}_processItemsHack(){return super._processItems.apply(this,arguments)}_processItems(e,t){var n=this,{changeType:p}=t,P=[];return e=super._processItems.apply(n,arguments),"loadingAll"===p?e:("refresh"===p&&(n._expandedItems=(0,s.VM)(n._expandedItems,J=>J.visible)),(0,E.__)(e,(J,fe)=>{P.push(fe);var ke=Ui.A.getIndexByKey(fe.key,n._expandedItems);"data"===fe.rowType&&(fe.isExpanded||ke>=0)&&!fe.isNewRow&&P.push({visible:fe.isExpanded,rowType:"detail",key:fe.key,data:fe.data,values:[]})}),P)}optionChanged(e){var t,n;if("masterDetail"===e.name){switch(e.name="dataSource",e.fullName){case"masterDetail":var p=e.value||{},P=e.previousValue||{};t=p.enabled!==P.enabled,n=p.autoExpandAll!==P.autoExpandAll;break;case"masterDetail.template":Hd(this);break;case"masterDetail.enabled":t=!0;break;case"masterDetail.autoExpandAll":n=!0}(t||n)&&Hd(this)}super.optionChanged(e)}},resizing:V=>class extends V{fireContentReadyAction(){super.fireContentReadyAction.apply(this,arguments),this._updateParentDataGrids(this.component.$element())}_updateParentDataGrids(e){var t=e.closest(".".concat(jd));t.length&&(0,xe.z7)(this._updateMasterDataGrid(t,e)).done(()=>{this._updateParentDataGrids(t.parent())})}_updateMasterDataGrid(e,t){var n=(0,j.A)(e).data("options"),p=(0,j.A)(e).closest(".".concat(this.getWidgetContainerClass())).parent().data("dxDataGrid");if(n&&p)return this._updateMasterDataGridCore(p,n)}_updateMasterDataGridCore(e,t){var n=(0,xe.cY)();if(e.getView("rowsView").isFixedColumns())this._updateFixedMasterDetailGrids(e,t.rowIndex,(0,j.A)(t.rowElement)).done(n.resolve);else{if(!0===e.option("scrolling.useNative"))return void e.updateDimensions().done(()=>n.resolve(!0));var p=e.getScrollable();p?p?.update().done(()=>n.resolve()):n.resolve()}return n.promise()}_updateFixedMasterDetailGrids(e,t,n){var p=(0,xe.cY)(),P=(0,j.A)(e.getRowElement(t)),J=(0,j.A)(e.getView("rowsView").getTableElements()),fe=2===P?.length&&(0,R.Oq)(P.eq(0))!==(0,R.Oq)(P.eq(1)),ke=2===J?.length&&(0,R.Oq)(J.eq(0))!==(0,R.Oq)(J.eq(1));if(fe||ke){var Ue=(0,R.RG)(n);return e.updateDimensions().done(()=>{var Ze=this.option("columnAutoWidth")&&!0===e.option("scrolling.useNative"),Ft=Ze&&Ue!==(0,R.RG)(n);Ze&&Ft?this.updateDimensions().done(()=>p.resolve(!0)):p.resolve(!0)}),p.promise()}return(0,xe.cY)().resolve()}_toggleBestFitMode(e){if(super._toggleBestFitMode.apply(this,arguments),this.option("masterDetail.template")){var t=this._rowsView.getTableElement();t&&t.find(".dx-master-detail-cell").css("maxWidth",e?0:"")}}}},views:{rowsView:V=>class extends V{_getCellTemplate(e){var{column:t}=e,n=this._editingController,p=n&&n.isEditRow(e.rowIndex);return"detail"!==t.command||p?super._getCellTemplate.apply(this,arguments):this.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:this._getDefaultTemplate(t)}}_isDetailRow(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")}_createRow(e){var t=super._createRow.apply(this,arguments);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass("dx-row-lines"),t.addClass(jd),(0,m.O9)(e.visible)&&t.toggle(e.visible)),t}_renderCells(e,t){var{row:n}=t,P=this._columnsController.getVisibleColumns();n.rowType&&this._isDetailRow(n)?this._needRenderCell(0,t.columnIndices)&&this._renderCell(e,{value:null,row:n,rowIndex:n.rowIndex,column:{command:"detail"},columnIndex:0,change:t.change}).addClass("dx-cell-focus-disabled").addClass("dx-master-detail-cell").attr("colSpan",P.length):super._renderCells.apply(this,arguments)}}}}});var Bm=D(78709),Tf=D(34885),{isWrapped:Dh}=(D(61214),_o.A),uu=function(V,e){return(0,o.X)(V,{readOnly:e.readOnly,placeholder:e.placeholder,inputAttr:{id:e.id,"aria-labelledby":e["aria-labelledby"]},tabIndex:e.tabIndex},e.editorOptions)},Ap=function(){return ye.A.mozilla||Ca.A.real().ios},rm=function(V){var e={},t=Ap(),n=V.sharedData||e;return uu({placeholder:V.placeholder,width:V.width,value:V.value,onValueChanged:function(p){var P="filterRow"===V.parentType||"searchPanel"===V.parentType,J=p.event&&("input"===p.event.type||"keyup"===p.event.type),fe=function(ke,Ue){V&&V.setValue(ke.value,Ue)};clearTimeout(e.valueChangeTimeout),J&&P?n.valueChangeTimeout=e.valueChangeTimeout=setTimeout(function(){fe(p,e.valueChangeTimeout!==n.valueChangeTimeout)},(0,m.O9)(V.updateValueTimeout)?V.updateValueTimeout:0):fe(p)},onKeyDown:function(p){t&&"enter"===(0,h.YD)(p.event)&&_.A.trigger((0,j.A)(p.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===V.parentType?" keyup input":"")},V)},wu=function(V){V.editorName="dxDateBox",V.editorOptions=uu({value:V.value,onValueChanged:function(e){V.setValue(e.value)},onKeyDown:function(e){var{component:t,event:n}=e,p=t.option("useMaskBehavior");(Ap()||p)&&"enter"===(0,h.YD)(n)&&(t.blur(),t.focus())},displayFormat:V.format,type:V.dataType,dateSerializationFormat:null,width:"filterBuilder"===V.parentType?void 0:"auto"},V)},oh=function(V){var n,e=rm(V),t="searchPanel"===V.parentType;e.value=V.editorType&&"dxTextBox"!==V.editorType?V.value:(0,m.O9)(n=V.value)?n.toString():"",e.valueChangeEvent+=t?" keyup input search":"",e.mode=e.mode||(t?"search":"text"),V.editorName="dxTextBox",V.editorOptions=e},zl=function(V){var e=rm(V);e.value=(0,m.O9)(V.value)?V.value:null,V.editorName="dxNumberBox",V.editorOptions=e};function Su(V){var t,n,p,e=V.lookup,P="filterRow"===V.parentType;if(e){var J;t=(0,aa.Hz)(e.displayExpr),(0,m.Tn)(n=e.dataSource)&&!Dh(n)&&(n=n(V.row||{}),function _p(V){if(V.row&&V.row.watch&&"dataRow"===V.parentType){var e=V.editorOptions||{};V.editorOptions=e;var t,n=e.onInitialized;e.onInitialized=function(J){n&&n.apply(this,arguments),(t=J.component).on("disposing",P)};var p,P=V.row.watch(()=>(p=V.lookup.dataSource(V.row))&&p.filter,()=>{t.option("dataSource",p)},J=>{V.row=J})}}(V)),((0,m.Gv)(n)||Array.isArray(n))&&(n=(0,ia.ho)(n),P&&(p=n.postProcess,n.postProcess=function(ke){return 0===this.pageIndex()&&(ke=ke.slice(0)).unshift(null),p?p.call(this,ke):ke}));var fe=!(!e.allowClearing||P);V.editorName=null!==(J=V.editorType)&&void 0!==J?J:"dxSelectBox",V.editorOptions=uu({searchEnabled:!0,value:V.value,valueExpr:V.lookup.valueExpr,searchExpr:V.lookup.searchExpr||V.lookup.displayExpr,allowClearing:fe,showClearButton:fe,displayExpr:function(ke){return null===ke?V.showAllText:t(ke)},dataSource:n,onValueChanged:function(ke){var Ue=[ke.value];!P&&Ue.push(ke.component.option("text")),V.setValue.apply(this,Ue)}},V)}}function Nu(V){V.editorName="dxCheckBox",V.editorOptions=uu({elementAttr:{id:V.id},value:(0,m.O9)(V.value)?V.value:void 0,hoverStateEnabled:!V.readOnly,focusStateEnabled:!V.readOnly,activeStateEnabled:!1,onValueChanged:function(e){V.setValue&&V.setValue(e.value,e)}},V)}var Ip=V=>{V.editorName=V.editorType,V.editorOptions=uu({value:V.value,onValueChanged:function(e){V.setValue(e.value)}},V)},If=V=>{var e={dxDateBox:wu,dxCheckBox:Nu,dxNumberBox:zl,dxTextBox:oh};if(V.lookup)Su(V);else if(V.editorType){var t;(null!==(t=e[V.editorType])&&void 0!==t?t:Ip)(V)}else switch(V.dataType){case"date":case"datetime":wu(V);break;case"boolean":!function(V){"filterRow"===V.parentType||"filterBuilder"===V.parentType?Su((0,o.X)(V,{lookup:{displayExpr:function(e){return!0===e?V.trueText||"true":!1===e?V.falseText||"false":void 0},dataSource:[!0,!1]}})):Nu(V)}(V);break;case"number":zl(V);break;default:oh(V)}};const kp=V=>class extends V{createEditor(e,t){t.cancel=!1,t.editorElement=(0,z.c)(e),(0,m.O9)(t.tabIndex)||(t.tabIndex=this.option("tabIndex")),If(t),this.executeAction("onEditorPreparing",t),!t.cancel&&("dataRow"===t.parentType&&!t.isOnForm&&!(0,m.O9)(t.editorOptions.showValidationMark)&&(t.editorOptions.showValidationMark=!1),function(V,e){var t=(0,j.A)(e.editorElement);if(e.editorName&&e.editorOptions&&t[e.editorName]){if(("dxCheckBox"===e.editorName||"dxSwitch"===e.editorName)&&(e.isOnForm||(t.addClass(V.addWidgetPrefix("checkbox-size")),t.parent().addClass("dx-editor-inline-block"))),V._createComponent(t,e.editorName,e.editorOptions),"dxDateBox"===e.editorName){var n=t.dxDateBox("instance"),p=n._supportedKeys().enter;n.registerKeyHandler("enter",P=>(n.option("opened")&&p(P),!0))}"dxTextArea"===e.editorName&&t.dxTextArea("instance").registerKeyHandler("enter",function(P){"enter"===(0,h.YD)(P)&&!P.ctrlKey&&!P.shiftKey&&P.stopPropagation()})}}(this,t),this.executeAction("onEditorPrepared",t))}};var Du="dx-cell-focus-disabled",Lc="focus-overlay",sh="dx-focused",Fc="dxDataGridEditorFactory",yp=(0,h.b4)([pe.A.down,"focusin",ce.U].join(" "),Fc),Eu="dx-hidden",am=kp(cn.ViewController);En.registerModule("editorFactory",{defaultOptions:()=>({}),controllers:{editorFactory:class Rf extends am{init(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._columnsResizerController=this.getController("columnsResizer"),this._editingController=this.getController("editing"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._columnsController=this.getController("columns"),this._validatingController=this.getController("validating"),this._rowsView=this.getView("rowsView"),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),this._subscribedContainerRoot=this._getContainerRoot(),_.A.on(this._subscribedContainerRoot,yp,this._updateFocusHandler),this._attachContainerEventHandlers()}dispose(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),_.A.off(this._subscribedContainerRoot,yp,this._updateFocusHandler)}_getFocusedElement(e){var t=this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus",n=["td[tabindex]:focus","".concat(t),"input:focus","button:focus","textarea:focus","div[tabindex]:focus",".dx-lookup-field:focus",".dx-checkbox:focus",".dx-switch:focus",".dx-dropdownbutton .dx-buttongroup:focus",".dx-adaptive-item-text:focus"].join(","),p=e.find(n);return this.elementIsInsideGrid(p)&&p}_getFocusCellSelector(){return".dx-row > td"}_updateFocusCore(){var e=this.component&&this.component.$element();if(e){var t=this._getFocusedElement(e);if(t&&t.length){var n;if(!t.hasClass(Du)&&!t.hasClass("dx-row")){var p=t.closest("".concat(this._getFocusCellSelector(),", .").concat(Du));p.get(0)!==t.get(0)&&(n=this._needHideBorder(p),t=p)}if(t.length&&!t.hasClass(Du))return void this.focus(t,n)}}this.loseFocus()}_needHideBorder(e){var t=this._rowsView.element(),n=e.closest(t).length>0,p=this._editingController.isEditing();return e.hasClass("dx-editor-inline-block")||n&&!p}_updateFocus(e){var t=this,n=e&&e.event&&(0,j.A)(e.event.target).hasClass(t.addWidgetPrefix(Lc));t._isFocusOverlay=t._isFocusOverlay||n,clearTimeout(t._updateFocusTimeoutID),t._updateFocusTimeoutID=setTimeout(()=>{delete t._updateFocusTimeoutID,t._isFocusOverlay||t._updateFocusCore(),t._isFocusOverlay=!1})}_updateFocusOverlaySize(e,t){e.hide();var n=Da.A.calculate(e,(0,o.X)({collision:"fit"},t));n.h.oversize>0&&(0,R.iT)(e,(0,R.Ot)(e)-n.h.oversize),n.v.oversize>0&&(0,R.NG)(e,(0,R.P$)(e)-n.v.oversize),e.show()}callbackNames(){return["focused"]}focus(e,t){var n=this;if(void 0===e)return n._$focusedElement;e&&(e.is(n._$focusedElement)||n._$focusedElement&&n._$focusedElement.removeClass(sh),n._$focusedElement=e,clearTimeout(n._focusTimeoutID),n._focusTimeoutID=setTimeout(()=>{delete n._focusTimeoutID,n.renderFocusOverlay(e,t),e.addClass(sh),n.focused.fire(e)}))}refocus(){var e=this.focus();this.focus(e)}renderFocusOverlay(e,t){if(Ui.A.isElementInCurrentGrid(this,e))if(this._$focusOverlay||(this._$focusOverlay=(0,j.A)("<div>").addClass(this.addWidgetPrefix(Lc))),t)this._$focusOverlay.addClass(Eu);else if(e.length){var n=ye.A.mozilla?"right bottom":"left top",p=e.closest(".".concat(this.addWidgetPrefix("content"))),P=(0,ge.N)(e.get(0)),J=e.hasClass(this.addWidgetPrefix("invalid")),fe=e.hasClass("dx-cell-modified")&&!J;this._$focusOverlay.removeClass(Eu).toggleClass("dx-focused-cell-invalid",J).toggleClass("dx-focused-cell-modified",fe).appendTo(p),(0,R.NG)(this._$focusOverlay,P.bottom-P.top+1),(0,R.iT)(this._$focusOverlay,P.right-P.left+1);var ke={precise:!0,my:n,at:n,of:e,boundary:p.length&&p};this._updateFocusOverlaySize(this._$focusOverlay,ke),Da.A.setup(this._$focusOverlay,ke),this._$focusOverlay.css("visibility","visible")}}resize(){var e=this._$focusedElement;e&&this.focus(e)}loseFocus(e){this._$focusedElement&&this._$focusedElement.removeClass(sh),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(Eu)}_getContainerRoot(){var e,t=null===(e=this.component)||void 0===e?void 0:e.$element(),n=L.A.getRootNode(t?.get(0));return n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||n.host?n:L.A.getDocument()}_attachContainerEventHandlers(){var e=this,t=e.component&&e.component.$element();t&&_.A.on(t,(0,h.b4)("keydown",Fc),n=>{"tab"===(0,h.YD)(n)&&e._updateFocusHandler(n)})}}}});var Bc=D(75135),Mh=D(3558),_l=(0,Ie.zk)(),_d={text:"OK",onClick:function(){return!0}},zd="dx-dialog",pc="".concat(zd,"-wrapper"),Oh="".concat(zd,"-root"),Mu="".concat(zd,"-content"),cf="".concat(zd,"-message"),Nm="".concat(zd,"-buttons"),hg="".concat(zd,"-button"),pg="dx-button",om="dx-editor-cell",fc="dx-row",uf="dx-selection",sm="edit-form",Lp="insert",Mc="remove",Lf="editing.popup",Vg="editing.form",zu="editing.editRowKey",Ff="editing.editColumnName",Vm="targetComponent",Th="input:not([type='hidden'])",Ah="[tabindex]:not([disabled]), ".concat(Th,":not([disabled])"),Bf="batch",lm="row",dm="cell",Hm="form",Ih="popup",xm="last",P_="pageBottom",Fp="pageTop",Hg="viewportBottom",zm="viewportTop",np=[Bf,lm,dm,Hm,Ih],Gu=[lm,Hm,Ih],Bp=[Bf,dm],Um=[Bf,lm,dm],mg=[lm,Hm],zg="dx-command-edit",Gm="".concat(zg,"-with-icons"),ap="__DX_INSERT_INDEX__",L_="dx-cell-modified",Nf="update",B_={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete",delete:"dx-link-delete",add:"dx-link-add"},vg={save:"save",cancel:"revert",edit:"edit",undelete:"revert",delete:"trash",add:"add"},Vf={edit:"editRow",delete:"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},Ou={add:"allowAdding",edit:"allowUpdating",delete:"allowDeleting"},Cm=["edit","save","cancel","delete","undelete"],Rh="editing.changes",l_="edit-form-item",yg=lc.A.IS_RENOVATED_WIDGET?"dx-scrollable":"dx-scrollable-container",jv="dx-edit-row",Pe="_DX_KEY_",xt=function(V){return function(e){var t=e instanceof Error?e:new Error(e&&String(e)||"Unknown error");V.reject(t)}},qt=function(V,e){return e.isEditing||V&&e.column.allowEditing},Ai=function(V,e){var t=!!e.column.command,n=qt(V,e);return"data"===e.rowType&&!t&&(n||e.column.showEditorAlways)},dn=(V,e)=>{var t=-1;return V.some((n,p)=>{if(xn(n)===e)return t=p,!0}),t};function xn(V){return(0,m.Gv)(V)?V.name:V}var Er=(V,e)=>{V.forEach(t=>{t.items||t.tabs?Er(t.items||t.tabs,e):e(t)})},qr=V=>class extends V{reload(e,t){return!t&&this._editingController.refresh(),super.reload.apply(this,arguments)}repaintRows(){if(!this._editingController.isSaving())return super.repaintRows.apply(this,arguments)}_updateEditRow(e){var t,n=this.option(zu),P=e[Ui.A.getIndexByKey(n,e)];P&&(P.isEditing=!0,null===(t=this._updateEditItem)||void 0===t||t.call(this,P))}_updateItemsCore(e){super._updateItemsCore(e),this._updateEditRow(this.items(!0))}_applyChangeUpdate(e){this._updateEditRow(e.items),super._applyChangeUpdate(e)}_applyChangesOnly(e){this._updateEditRow(e.items),super._applyChangesOnly(e)}_processItems(e,t){return e=this._editingController.processItems(e,t),super._processItems(e,t)}_processDataItem(e,t){return this._editingController.processDataItem(e,t,this.generateDataValues),super._processDataItem(e,t)}_processItem(e,t){return(e=super._processItem(e,t)).isNewRow&&(t.dataIndex--,delete e.dataIndex),e}_getChangedColumnIndices(e,t,n,p){if(e.isNewRow===t.isNewRow&&e.removed===t.removed)return super._getChangedColumnIndices.apply(this,arguments)}_isCellChanged(e,t,n,p,P){var J=e.cells&&e.cells[p],fe=this._editingController&&this._editingController.isEditCell(n,p);return(!P||!fe)&&(!(!J||!J.column||J.column.showEditorAlways||J.isEditing===fe)||super._isCellChanged.apply(this,arguments))}needToRefreshOnDataSourceChange(e){return!(Array.isArray(e.value)&&e.value===e.previousValue&&this._editingController.isSaving())}_handleDataSourceChange(e){var t=super._handleDataSourceChange(e),n=this.option("editing.changes"),p=e.value;if(Array.isArray(p)&&n.length){var P=p.map(Ue=>this.keyOf(Ue)),J=n.filter(Ue=>"insert"===Ue.type||P.some(Ze=>(0,s.RL)(Ue.key,Ze)));J.length!==n.length&&this.option("editing.changes",J);var fe=this.option("editing.editRowKey");!J.some(Ue=>"insert"===Ue.type&&(0,s.RL)(fe,Ue.key))&&P.every(Ue=>!(0,s.RL)(fe,Ue))&&this.option("editing.editRowKey",null)}return t}},nr={defaultOptions:()=>({editing:{mode:"row",refreshMode:"full",newRowPosition:zm,allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,confirmDelete:!0,texts:{editRow:v.A.format("dxDataGrid-editingEditRow"),saveAllChanges:v.A.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:v.A.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:v.A.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:v.A.format("dxDataGrid-editingCancelRowChanges"),addRow:v.A.format("dxDataGrid-editingAddRow"),deleteRow:v.A.format("dxDataGrid-editingDeleteRow"),undeleteRow:v.A.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:v.A.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click",editRowKey:null,editColumnName:null,changes:[]},useLegacyColumnButtonTemplate:!1}),controllers:{editing:class hr extends cn.ViewController{init(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._validatingController=this.getController("validating"),this._editorFactoryController=this.getController("editorFactory"),this._focusController=this.getController("focus"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._columnsResizerController=this.getController("columnsResizer"),this._errorHandlingController=this.getController("errorHandling"),this._rowsView=this.getView("rowsView"),this._headerPanelView=this.getView("headerPanel"),this._lastOperation=null,this._changes=[],this._deferreds&&this._deferreds.forEach(e=>{e.reject("cancel")}),this._deferreds=[],this._dataChangedHandler||(this._dataChangedHandler=this._handleDataChanged.bind(this),this._dataController.changed.add(this._dataChangedHandler)),this._saveEditorHandler||(this.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceling",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceled",{excludeValidators:["disabled","readOnly"]})),this._updateEditColumn(),this._updateEditButtons(),this._internalState||(this._internalState=[]),this.component._optionsByReference[zu]=!0,this.component._optionsByReference[Rh]=!0}getEditMode(){var e,t=null!==(e=this.option("editing.mode"))&&void 0!==e?e:lm;return np.includes(t)?t:lm}isCellBasedEditMode(){var e=this.getEditMode();return Bp.includes(e)}_getDefaultEditorTemplate(){return(e,t)=>{var n=(0,j.A)("<div>").appendTo(e),p=(0,o.X)({},t.column,{value:t.value,setValue:t.setValue,row:t.row,parentType:"dataRow",width:null,readOnly:!t.setValue,isOnForm:t.isOnForm,id:t.id});Um.includes(this.getEditMode())&&(p["aria-labelledby"]=t.column.headerId),this._editorFactoryController.createEditor(n,p)}}_getNewRowPosition(){var e=this.option("editing.newRowPosition");if("virtual"===this.option("scrolling.mode"))switch(e){case Fp:return zm;case P_:return Hg;default:return e}return e}getChanges(){return this.option(Rh)}getInsertRowCount(){return this.option(Rh).filter(t=>"insert"===t.type).length}resetChanges(){var e=this.getChanges(),t=e?.length;t&&this._silentOption(Rh,[])}_getInternalData(e){return this._internalState.filter(t=>(0,s.RL)(t.key,e))[0]}_addInternalData(e){var t=this._getInternalData(e.key);return t?(0,o.X)(t,e):(this._internalState.push(e),e)}_getOldData(e){var t;return null===(t=this._getInternalData(e))||void 0===t?void 0:t.oldData}getUpdatedData(e){var t=this._dataController.keyOf(e),n=this.getChanges(),p=Ui.A.getIndexByKey(t,n);return n[p]?(0,ea.lj)(e,n[p].data):e}getInsertedData(){return this.getChanges().filter(e=>e.data&&e.type===Lp).map(e=>e.data)}getRemovedData(){return this.getChanges().filter(e=>this._getOldData(e.key)&&e.type===Mc).map(e=>this._getOldData(e.key))}_fireDataErrorOccurred(e){if("cancel"!==e){var t=this.getPopupContent();this._dataController.dataErrorOccurred.fire(e,t)}}_needToCloseEditableCell(e){}_closeEditItem(e){}_handleDataChanged(e){}_isDefaultButtonVisible(e,t){var n=!0;switch(e.name){case"delete":n=this.allowDeleting(t);break;case"undelete":n=!1}return n}_isButtonVisible(e,t){var{visible:n}=e;return(0,m.O9)(n)?(0,m.Tn)(n)?n.call(e,{component:t.component,row:t.row,column:t.column}):n:this._isDefaultButtonVisible(e,t)}_isButtonDisabled(e,t){var{disabled:n}=e;return(0,m.Tn)(n)?n.call(e,{component:t.component,row:t.row,column:t.column}):!!n}_getButtonConfig(e,t){var n=(0,m.Gv)(e)?e:{},p=xn(e),P=(V=>{var e=V.component.option("editing.texts")||{};return{save:e.saveRowChanges,cancel:e.cancelRowChanges,edit:e.editRow,undelete:e.undeleteRow,delete:e.deleteRow,add:e.addRowToNode}})(t),J=Vf[p],fe=this.option("editing"),ke=Ou[p],Ue=!ke||fe[ke];return(0,o.X)({name:p,text:P[p],cssClass:B_[p]},{onClick:J&&(Ze=>{var{event:Ft}=Ze;Ft.stopPropagation(),Ft.preventDefault(),setTimeout(()=>{t.row&&Ue&&this[J]&&this[J](t.row.rowIndex)})})},n)}_getEditingButtons(e){var t,n=!!e.column.buttons,p=(e.column.buttons||[]).slice();return n?((t=dn(p,"edit"))>=0&&(dn(p,"save")<0&&p.splice(t+1,0,"save"),dn(p,"cancel")<0&&p.splice(dn(p,"save")+1,0,"cancel")),(t=dn(p,"delete"))>=0&&dn(p,"undelete")<0&&p.splice(t+1,0,"undelete")):p=Cm.slice(),p.map(P=>this._getButtonConfig(P,e))}_renderEditingButtons(e,t,n,p){t.forEach(P=>{this._isButtonVisible(P,n)&&this._createButton(e,P,n,p)})}_getEditCommandCellTemplate(){return(e,t,n)=>{var p=(0,j.A)(e);if("data"===t.rowType){var P=this._getEditingButtons(t);if(this._renderEditingButtons(p,P,t,n),t.watch){var J=t.watch(()=>P.map(fe=>({visible:this._isButtonVisible(fe,t),disabled:this._isButtonDisabled(fe,t)})),()=>{p.empty(),this._renderEditingButtons(p,P,t)});_.A.on(p,Be.N,J)}}else Ui.A.setEmptyText(p)}}isRowBasedEditMode(){var e=this.getEditMode();return Gu.includes(e)}getFirstEditableColumnIndex(){var e,t=this._columnsController.getVisibleColumns();return(0,E.__)(t,(n,p)=>{if(p.allowEditing)return e=n,!1}),e}getFirstEditableCellInRow(e){var t,n=this.getFirstEditableColumnIndex();return null===(t=this._rowsView)||void 0===t?void 0:t._getCellElement(e||0,n)}getFocusedCellInRow(e){return this.getFirstEditableCellInRow(e)}getIndexByKey(e,t){return Ui.A.getIndexByKey(e,t)}hasChanges(e){for(var t=this.getChanges(),n=!1,p=0;p<t?.length;p++)if(t[p].type&&(!(0,m.O9)(e)||this._dataController.getRowIndexByKey(t[p].key)===e)){n=!0;break}return n}dispose(){super.dispose(),clearTimeout(this._inputFocusTimeoutID),_.A.off(L.A.getDocument(),pe.A.up,this._pointerUpEditorHandler),_.A.off(L.A.getDocument(),pe.A.down,this._pointerDownEditorHandler),_.A.off(L.A.getDocument(),ce.U,this._saveEditorHandler)}_silentOption(e,t){"editing.changes"===e&&(this._changes=(0,Ya.tm)([],t)),super._silentOption(e,t)}optionChanged(e){if("editing"===e.name){var{fullName:t}=e;t===zu?this._handleEditRowKeyChange(e):t===Rh?(0,s.RL)(e.value,this._changes,{maxDepth:4})||(this._changes=(0,Ya.tm)([],e.value),this._handleChangesChange(e)):e.handled||(this._columnsController.reinit(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey()),e.handled=!0}else super.optionChanged(e)}_handleEditRowKeyChange(e){var t=this._dataController.getRowIndexByKey(e.value),n=this._getEditRowIndexCorrection(),p=this._dataController.getRowIndexByKey(e.previousValue)+n;(0,m.O9)(e.value)?e.value!==e.previousValue&&this._editRowFromOptionChanged(t,p):this.cancelEditData()}_handleChangesChange(e){var t=this._dataController;!e.value.length&&!e.previousValue.length||(e.value.forEach(p=>{var P;if("insert"===p.type)this._addInsertInfo(p);else{var J=t.getCachedStoreData()||(null===(P=t.items())||void 0===P?void 0:P.map(ke=>ke.data)),fe=Ui.A.getIndexByKey(p.key,J,t.key());this._addInternalData({key:p.key,oldData:J[fe]})}}),t.updateItems({repaintChangesOnly:!0,isLiveUpdate:!1,isOptionChanged:!0}))}publicMethods(){return["addRow","deleteRow","undeleteRow","editRow","saveEditData","cancelEditData","hasEditData"]}refresh(){(0,m.O9)(this._pageIndex)&&this._refreshCore.apply(this,arguments)}_refreshCore(e){}isEditing(){return(0,m.O9)(this.option(zu))}isEditRow(e){return!1}_setEditRowKey(e,t){t?this._silentOption(zu,e):this.option(zu,e),this._refocusEditCell&&(this._refocusEditCell=!1,this._focusEditingCell())}_setEditRowKeyByIndex(e,t){var n=this._dataController.getKeyByRowIndex(e);void 0!==n?this._setEditRowKey(n,t):this._dataController.fireError("E1043")}getEditRowIndex(){return this._getVisibleEditRowIndex()}getEditFormRowIndex(){return-1}isEditRowByIndex(e){var t=this._dataController.getKeyByRowIndex(e);return(0,m.O9)(t)&&(0,s.RL)(this.option(zu),t)&&this._getVisibleEditRowIndex()===e}isEditCell(e,t){return this.isEditRowByIndex(e)&&this._getVisibleEditColumnIndex()===t}getPopupContent(){}_isProcessedItem(e){return!1}_getInsertRowIndex(e,t,n){var p=-1,P=this._dataController,J=this._getInsertAfterOrBeforeKey(t);return(0,m.O9)(J)||0!==e.length?(0,m.O9)(J)&&e.some((fe,ke)=>{var Ue=n||this._isProcessedItem(fe);if((0,m.Gv)(fe)&&(Ue||(0,m.O9)(fe[ap])?(0,s.RL)(fe.key,J)&&(p=ke):(0,s.RL)(P.keyOf(fe),J)&&(p=ke)),p>=0){var Ze=e[p+1];return Ze&&("detail"===Ze.rowType||"detailAdaptive"===Ze.rowType)&&(0,m.O9)(t.insertAfterKey)?void 0:((0,m.O9)(t.insertAfterKey)&&(p+=1),!0)}}):p=0,p}_generateNewItem(e){var t,n={key:e},p=null===(t=this._getInternalData(e))||void 0===t?void 0:t.insertInfo;return p?.[ap]&&(n[ap]=p[ap]),n}_getLoadedRowIndex(e,t,n){var p=this._getInsertRowIndex(e,t,n),P=this._dataController;if(p<0){var J=this._getNewRowPosition(),fe=P.pageIndex(),ke=this._getInsertAfterOrBeforeKey(t);J===xm||0!==fe||(0,m.O9)(ke)?J===xm&&P.isLastPageLoaded()&&(p=e.length):p=0}return p}processItems(e,t){var{changeType:n}=t;return this.update(n),this.getChanges().forEach(P=>{var J;if(P.type===Lp){var{key:ke}=P,Ue=null===(J=this._getInternalData(ke))||void 0===J?void 0:J.insertInfo;(!(0,m.O9)(ke)||!(0,m.O9)(Ue))&&(ke=(Ue=this._addInsertInfo(P)).key);var Ze=this._getLoadedRowIndex(e,P),Ft=this._generateNewItem(ke);Ze>=0&&e.splice(Ze,0,Ft)}}),e}processDataItem(e,t,n){var p=t.visibleColumns,P=e.data[ap]?e.data.key:e.key,J=this.getChanges(),fe=Ui.A.getIndexByKey(P,J);e.isEditing=!1,fe>=0&&this._processDataItemCore(e,J[fe],P,p,n)}_processDataItemCore(e,t,n,p,P){var{data:J,type:fe}=t;switch(fe){case Lp:e.isNewRow=!0,e.key=n,e.data=J;break;case Nf:e.modified=!0,e.oldData=e.data,e.data=(0,ea.lj)(e.data,J),e.modifiedValues=P(J,p,!0);break;case Mc:e.removed=!0}}_initNewRow(e){if(this.executeAction("onInitNewRow",e),e.promise){var t=new xe.cY;return(0,xe.z7)((0,xe.Sx)(e.promise)).done(t.resolve).fail(xt(t)).fail(n=>this._fireDataErrorOccurred(n)),t}}_createInsertInfo(){var e={};return e[ap]=this._getInsertIndex(),e}_addInsertInfo(e,t){var n,p;e.key=this.getChangeKeyValue(e);var{key:P}=e;if(p=null===(n=this._getInternalData(P))||void 0===n?void 0:n.insertInfo,!(0,m.O9)(p)){var J=this._getInsertAfterOrBeforeKey(e);p=this._createInsertInfo(),(0,m.O9)(J)||this._setInsertAfterOrBeforeKey(e,t)}return this._addInternalData({insertInfo:p,key:P}),{insertInfo:p,key:P}}getChangeKeyValue(e){if((0,m.O9)(e.key))return e.key;var n,t=this._dataController.key();return e.data&&t&&!Array.isArray(t)&&(n=e.data[t]),(0,m.O9)(n)||(n="".concat(Pe).concat(new q.A)),n}_setInsertAfterOrBeforeKey(e,t){var n=this.getView("rowsView"),p=this._dataController,P=p.items(!0),J=this._getNewRowPosition();switch(J){case"first":case xm:break;case Fp:case P_:if(P.length){var fe=J===Fp?0:P.length-1;e[0===fe?"insertBeforeKey":"insertAfterKey"]=P[fe].key}break;default:var Ue=J===Hg?n?.getBottomVisibleItemIndex():n?.getTopVisibleItemIndex(),Ze=p.getVisibleRows()[Ue];Ze&&(!Ze.isEditing&&"detail"===Ze.rowType||"detailAdaptive"===Ze.rowType)&&Ue++;var Ft=p.getKeyByRowIndex(Ue);(0,m.O9)(Ft)&&(e.insertBeforeKey=Ft)}}_getInsertIndex(){var e=0;return this.getChanges().forEach(t=>{var n,p=null===(n=this._getInternalData(t.key))||void 0===n?void 0:n.insertInfo;(0,m.O9)(p)&&t.type===Lp&&p[ap]>e&&(e=p[ap])}),e+1}_getInsertAfterOrBeforeKey(e){var t;return null!==(t=e.insertAfterKey)&&void 0!==t?t:e.insertBeforeKey}_getPageIndexToInsertRow(){var e=this._getNewRowPosition(),t=this._dataController,n=t.pageIndex(),p=t.pageCount()-1;return"first"===e&&0!==n?0:e===xm&&n!==p?p:-1}addRow(e){var t=this._dataController;return t.store()?this._addRow(e):(t.fireError("E1052",this.component.NAME),(new xe.cY).reject())}_addRow(e){var n=this._dataController.store(),p=n&&n.key(),P={data:{}},J=this._getVisibleEditRowIndex(),fe=new xe.cY;return this.refresh({allowCancelEditing:!0}),this._allowRowAdding()?(p||(P.data.__KEY__=String(new q.A)),(0,xe.z7)(this._initNewRow(P,e)).done(()=>{this._allowRowAdding()?(0,xe.z7)(this._addRowCore(P.data,e,J)).done(fe.resolve).fail(fe.reject):fe.reject("cancel")}).fail(fe.reject),fe.promise()):((0,xe.z7)(this._navigateToNewRow(J)).done(fe.resolve).fail(fe.reject),fe.promise())}_allowRowAdding(e){return!(this._getInsertIndex()>1)}_addRowCore(e,t,n){var p={data:e,type:Lp},P=this._getVisibleEditRowIndex(),J=this._addInsertInfo(p,t),{key:fe}=J;return this._setEditRowKey(fe,!0),this._addChange(p),this._navigateToNewRow(n,p,P)}_navigateToNewRow(e,t,n){var p=new xe.cY,P=this._dataController;if(n=n??-1,!(t=t??this.getChanges().filter(Ze=>Ze.type===Lp)[0]))return p.reject("cancel").promise();var J=this._getPageIndexToInsertRow(),fe=this._getLoadedRowIndex(P.items(),t,!0),ke=Ze=>{var Ft;(0,xe.z7)(null===(Ft=this._focusController)||void 0===Ft?void 0:Ft.navigateToRow(Ze)).done(()=>{fe=P.getRowIndexByKey(t.key),p.resolve()})},Ue=this._getInsertAfterOrBeforeKey(t);return J>=0?P.pageIndex(J).done(()=>{ke(t.key)}).fail(p.reject):fe<0&&(0,m.O9)(Ue)?ke(Ue):(P.updateItems({changeType:"update",rowIndices:[e,n,fe]}),(fe=P.getRowIndexByKey(t.key))<0?ke(t.key):p.resolve()),p.done(()=>{var Ze;null===(Ze=this._rowsView)||void 0===Ze||Ze.waitAsyncTemplates(!0).done(()=>{this._showAddedRow(fe),this._afterInsertRow(t.key)})}),p.promise()}_showAddedRow(e){this._focusFirstEditableCellInRow(e)}_beforeFocusElementInRow(e){}_focusFirstEditableCellInRow(e){var t,n=this._dataController,p=n.getKeyByRowIndex(e),P=this.getFirstEditableCellInRow(e);null===(t=this._keyboardNavigationController)||void 0===t||t.focus(P),this.option("focusedRowKey",p),this._editCellInProgress=!0,this._delayedInputFocus(P,()=>{e=n.getRowIndexByKey(p),this._editCellInProgress=!1,this._beforeFocusElementInRow(e)})}_isEditingStart(e){return this.executeAction("onEditingStart",e),e.cancel}_beforeUpdateItems(e,t){}_getVisibleEditColumnIndex(){var e=this.option(Ff);return(0,m.O9)(e)?this._columnsController.getVisibleColumnIndex(e):-1}_setEditColumnNameByIndex(e,t){var n,p=this._columnsController.getVisibleColumns();this._setEditColumnName(null===(n=p[e])||void 0===n?void 0:n.name,t)}_setEditColumnName(e,t){t?this._silentOption(Ff,e):this.option(Ff,e)}_resetEditColumnName(){this._setEditColumnName(null,!0)}_getEditColumn(){var e=this.option(Ff);return this._getColumnByName(e)}_getColumnByName(e){var n,t=this._columnsController.getVisibleColumns();return(0,m.O9)(e)&&t.some(p=>{if(p.name===e)return n=p,!0}),n}_getVisibleEditRowIndex(e){var t=this._dataController,n=this.option(zu),p=t.getRowIndexByKey(n);return-1===p?p:p+this._getEditRowIndexCorrection(e)}_getEditRowIndexCorrection(e){var t=e?this._getColumnByName(e):this._getEditColumn();return"adaptiveHidden"===t?.visibleWidth?1:0}_resetEditRowKey(){this._refocusEditCell=!1,this._setEditRowKey(null,!0)}_resetEditIndices(){this._resetEditColumnName(),this._resetEditRowKey()}editRow(e){var t,n=this._dataController,P=n.items()[e],J={data:P&&P.data,cancel:!1},fe=this._getVisibleEditRowIndex();if(P){if(e===fe)return!0;if(void 0===P.key)return void this._dataController.fireError("E1043");P.isNewRow||(J.key=P.key),!this._isEditingStart(J)&&(this.resetChanges(),this.init(),this._resetEditColumnName(),this._pageIndex=n.pageIndex(),this._addInternalData({key:P.key,oldData:null!==(t=P.oldData)&&void 0!==t?t:P.data}),this._setEditRowKey(P.key))}}_editRowFromOptionChanged(e,t){var n=[t,e];this._beforeUpdateItems(n,e,t),this._editRowFromOptionChangedCore(n,e)}_editRowFromOptionChangedCore(e,t,n){this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:e,cancel:n})}_focusEditorIfNeed(){}_showEditPopup(e,t){}_repaintEditPopup(){}_getEditPopupHiddenHandler(){return e=>{this.isEditing()&&this.cancelEditData()}}_getPopupEditFormTemplate(e){}_getSaveButtonConfig(){var e={text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)};return(0,fn.Ft)((0,fn.ss)())&&(e.stylingMode="contained",e.type="default"),e}_getCancelButtonConfig(){var e={text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)};return(0,fn.Ft)((0,fn.ss)())&&(e.stylingMode="outlined"),e}_removeInternalData(e){var t=this._getInternalData(e),n=this._internalState.indexOf(t);n>-1&&this._internalState.splice(n,1)}_updateInsertAfterOrBeforeKeys(e,t){var n=e[t];e.forEach(p=>{var P=this._getInsertAfterOrBeforeKey(p);(0,s.RL)(P,n.key)&&(p[(0,m.O9)(p.insertAfterKey)?"insertAfterKey":"insertBeforeKey"]=this._getInsertAfterOrBeforeKey(n))})}_removeChange(e){if(e>=0){var t=[...this.getChanges()],{key:n}=t[e];this._removeInternalData(n),this._updateInsertAfterOrBeforeKeys(t,e),t.splice(e,1),this._silentOption(Rh,t),(0,s.RL)(this.option(zu),n)&&this._resetEditIndices()}}executeOperation(e,t){this._lastOperation&&this._lastOperation.reject(),this._lastOperation=e,this.waitForDeferredOperations().done(()=>{"rejected"!==e.state()&&(t(),this._lastOperation=null)}).fail(()=>{e.reject(),this._lastOperation=null})}waitForDeferredOperations(){return(0,xe.z7)(...this._deferreds)}_processCanceledEditingCell(){}_repaintEditCell(e,t,n){!e||!e.showEditorAlways||t&&!t.showEditorAlways?(this._editCellInProgress=!0,this._needFocusEditor=!0,this._editorFactoryController.loseFocus(),this._dataController.updateItems({changeType:"update",rowIndices:[n,this._getVisibleEditRowIndex()]})):e!==t&&(this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:[]}))}_delayedInputFocus(e,t,n){var p=()=>{if(t&&t(),e){var P=e.find(Ah).first();Ui.A.focusAndSelectElement(this,P)}this._beforeFocusCallback=null};Ca.A.real().ios||Ca.A.real().android?p():(this._beforeFocusCallback&&this._beforeFocusCallback(),clearTimeout(this._inputFocusTimeoutID),n&&(this._beforeFocusCallback=t),this._inputFocusTimeoutID=setTimeout(p))}_focusEditingCell(e,t,n){var p=this._getVisibleEditColumnIndex();(t=t||this._rowsView&&this._rowsView._getCellElement(this._getVisibleEditRowIndex(),p))&&this._delayedInputFocus(t,e,n)}deleteRow(e){this._checkAndDeleteRow(e)}_checkAndDeleteRow(e){var t=this.option("editing"),n=t?.texts,p=t?.confirmDelete,P=n?.confirmDeleteMessage,J=this._dataController.items()[e],fe=!this.isEditing()||J.isNewRow;if(J&&fe)if(p&&P){var ke=n&&n.confirmDeleteTitle;(function(V){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2?arguments[2]:void 0;return function(V){var e,t=new xe.cY;V=V||{};var n=(0,j.A)("<div>").addClass(zd).appendTo((0,Mh.Uq)()),P="messageHtml"in V;"message"in V&&Et.A.log("W1013");var J=String(P?V.messageHtml:V.message),fe=V.title?null:new q.A,ke=(0,j.A)("<div>").addClass(cf).html(J).attr("id",fe),Ue=[],Ze=new vn.A(n,(0,o.X)({title:null!==(e=V.title)&&void 0!==e?e:"",showTitle:(0,s.YD)(V.showTitle,!0),dragEnabled:(0,s.YD)(V.dragEnabled,!0),height:"auto",width:V.width,showCloseButton:V.showCloseButton||!1,ignoreChildEvents:!1,container:n,visualContainer:_l,dragAndResizeArea:_l,onContentReady:function(Li){Li.component.$content().addClass(Mu).append(ke),fe&&Li.component.$overlayContent().attr("aria-labelledby",fe)},onShowing:function(Li){Li.component.bottomToolbar().addClass(Nm).find(".".concat(pg)).addClass(hg),(0,rr.GX)()},onShown:function(Li){var tn=Li.component.bottomToolbar().find(".".concat(pg)).first();_.A.trigger(tn,"focus")},onHiding:function(){t.reject()},onHidden:function(Li){var{element:tn}=Li;(0,j.A)(tn).remove()},animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,ha.A)().rtlEnabled,position:{boundaryOffset:{h:10,v:0}}},V.popupOptions));function vi(Li){t.resolve(Li),Ze.hide()}return(V.buttons||[_d]).forEach(Li=>{var tn=new Bc.A(Li.onClick,{context:Ze});Ue.push({toolbar:"bottom",location:Ca.A.current().android?"after":"center",widget:"dxButton",options:(0,Nt.A)({},Li,{onClick:function(){vi(tn.execute(...arguments))}})})}),Ze.option("toolbarItems",Ue),Ze.$wrapper().addClass(pc),V.position&&Ze.option("position",V.position),Ze.$wrapper().addClass(Oh),{show:function(){if("phone"===Ca.A.real().deviceType){var Li=(0,R.Oq)(_l)>(0,R.RG)(_l);Ze.option({width:Li?"90%":"60%"})}return Ze.show(),t.promise()},hide:vi}}((0,m.Qd)(V)?V:{title:e,messageHtml:V,showTitle:t,buttons:[(0,Nt.A)({text:v.A.format("Yes"),onClick:function(){return!0}},(0,fn.Ft)()?{stylingMode:"contained",type:"default"}:{}),(0,Nt.A)({text:v.A.format("No"),onClick:function(){return!1}},(0,fn.Ft)()?{stylingMode:"outlined",type:"default"}:{})],dragEnabled:t}).show()})(P,ke,(0,m.O9)(ke)&&ke.length>0).done(Ze=>{Ze&&this._deleteRowCore(e)})}else this._deleteRowCore(e)}_deleteRowCore(e){var n=this._dataController.items()[e],p=n&&n.key,P=this._getVisibleEditRowIndex();this.refresh();var J=this.getChanges(),fe=Ui.A.getIndexByKey(p,J);return fe>=0?J[fe].type===Lp?this._removeChange(fe):this._addChange({key:p,type:Mc}):this._addChange({key:p,oldData:n.data,type:Mc}),this._afterDeleteRow(e,P)}_afterDeleteRow(e,t){return this.saveEditData()}undeleteRow(e){var t=this._dataController,n=t.items()[e],p=this._getVisibleEditRowIndex(),P=n&&n.key,J=this.getChanges();if(n){var fe=Ui.A.getIndexByKey(P,J);if(fe>=0){var{data:ke}=J[fe];(0,m.RI)(ke)?this._removeChange(fe):this._addChange({key:P,type:Nf}),t.updateItems({changeType:"update",rowIndices:[p,e]})}}}_fireOnSaving(){var e={cancel:!1,promise:null,changes:[...this.getChanges()]};this.executeAction("onSaving",e);var t=new xe.cY;return(0,xe.z7)((0,xe.Sx)(e.promise)).done(()=>{t.resolve(e)}).fail(n=>{xt(t),this._fireDataErrorOccurred(n),t.resolve({cancel:!0})}),t}_executeEditingAction(e,t,n){if(this.component._disposed)return null;var p=new xe.cY;return this.executeAction(e,t),(0,xe.z7)((0,xe.Sx)(t.cancel)).done(P=>{P?setTimeout(()=>{p.resolve("cancel")}):n(t).done(p.resolve).fail(xt(p))}).fail(xt(p)),p}_processChanges(e,t,n,p){var P=this._dataController.store();(0,E.__)(p,(J,fe)=>{var vi,Li,ke=this._getOldData(fe.key),{data:Ue,type:Ze}=fe,Ft=(0,Nt.A)({},fe);if(!this._beforeSaveEditData(fe,J)){switch(Ze){case Mc:vi=this._executeEditingAction("onRowRemoving",Li={data:ke,key:fe.key,cancel:!1},()=>P.remove(fe.key).done(On=>{n.push({type:"remove",key:On})}));break;case Lp:vi=this._executeEditingAction("onRowInserting",Li={data:Ue,cancel:!1},()=>P.insert(Li.data).done((On,Qn)=>{(0,m.O9)(Qn)&&(Ft.key=Qn),On&&(0,m.Gv)(On)&&On!==Li.data&&(Ft.data=On),n.push({type:"insert",data:On,index:0})}));break;case Nf:vi=this._executeEditingAction("onRowUpdating",Li={newData:Ue,oldData:ke,key:fe.key,cancel:!1},()=>P.update(fe.key,Li.newData).done((On,Qn)=>{On&&(0,m.Gv)(On)&&On!==Li.newData&&(Ft.data=On),n.push({type:"update",key:Qn,data:On})}))}if(p[J]=Ft,vi){var tn=new xe.cY;vi.always(On=>{t.push({key:fe.key,result:On})}).always(tn.resolve),e.push(tn.promise())}}})}_processRemoveIfError(e,t){var n=e[t];return n?.type===Mc&&t>=0&&e.splice(t,1),!0}_processRemove(e,t,n){var p=e[t];if(!n||!p||p.type===Mc)return this._processRemoveCore(e,t,!n||!p)}_processRemoveCore(e,t,n){return t>=0&&e.splice(t,1),!0}_processSaveEditDataResult(e){for(var t=!1,n=[...this.getChanges()],p=n.length,P=0;P<e.length;P++){var J=e[P].result,fe="cancel"===J,ke=Ui.A.getIndexByKey(e[P].key,n),Ue=n[ke];if(J&&J instanceof Error){if(Ue&&this._addInternalData({key:Ue.key,error:J}),this._fireDataErrorOccurred(J),this._processRemoveIfError(n,ke))break}else this._processRemove(n,ke,fe)&&(t=!fe)}return n.length<p&&this._silentOption(Rh,n),t}_fireSaveEditDataEvents(e){(0,E.__)(e,(t,n)=>{var{data:p,key:P,type:J}=n,fe=this._addInternalData({key:P}),ke={key:P,data:p};switch(fe.error&&(ke.error=fe.error),J){case Mc:this.executeAction("onRowRemoved",(0,o.X)({},ke,{data:fe.oldData}));break;case Lp:this.executeAction("onRowInserted",ke);break;case Nf:this.executeAction("onRowUpdated",ke)}}),this.executeAction("onSaved",{changes:e})}saveEditData(){var e=new xe.cY;return this.waitForDeferredOperations().done(()=>{this.isSaving()?this._resolveAfterSave(e):(0,xe.z7)(this._beforeSaveEditData()).done(t=>{t?this._resolveAfterSave(e,{cancel:t}):(this._saving=!0,this._saveEditDataInner().always(()=>{this._saving=!1,this._refocusEditCell&&this._focusEditingCell()}).done(e.resolve).fail(e.reject))}).fail(e.reject)}).fail(e.reject),e.promise()}_resolveAfterSave(e){var{cancel:t,error:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,xe.z7)(this._afterSaveEditData(t)).done(()=>{e.resolve(n)}).fail(e.reject)}_saveEditDataInner(){var e=new xe.cY,t=[],n=[],p=[],P=this._dataController.dataSource();return(0,xe.z7)(this._fireOnSaving()).done(J=>{var{cancel:fe,changes:ke}=J;return fe?e.resolve().promise():(this._processChanges(n,t,p,ke),n.length?(this._refocusEditCell=!0,P?.beginLoading(),(0,xe.z7)(...n).done(()=>{this._processSaveEditDataResult(t)?this._endSaving(p,ke,e):(P?.endLoading(),e.resolve())}).fail(Ue=>{P?.endLoading(),e.resolve(Ue)}),e.always(()=>{this._refocusEditCell=!0}).promise()):void this._cancelSaving(e))}).fail(e.reject),e.promise()}_beforeEndSaving(e){this._resetEditIndices()}_endSaving(e,t,n){var p=this._dataController.dataSource();this._beforeEndSaving(t),p?.endLoading(),this._refreshDataAfterSave(e,t,n)}_cancelSaving(e){this.executeAction("onSaved",{changes:[]}),this._resolveAfterSave(e)}_refreshDataAfterSave(e,t,n){var p=this._dataController,P=this.option("editing.refreshMode"),J="reshape"!==P&&"repaint"!==P;J||p.push(e),(0,xe.z7)(p.refresh({selection:J,reload:J,load:"reshape"===P,changesOnly:this.option("repaintChangesOnly")})).always(()=>{this._fireSaveEditDataEvents(t)}).done(()=>{this._resolveAfterSave(n)}).fail(fe=>{this._resolveAfterSave(n,{error:fe})})}isSaving(){return this._saving}_updateEditColumn(){var e=this._isEditColumnVisible(),t=this.option("editing.useIcons"),n=zg+(t?" ".concat(Gm):"");this._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:e,cssClass:n,width:"auto",alignment:"center",cellTemplate:this._getEditCommandCellTemplate(),fixedPosition:"right"}),this._columnsController.columnOption("command:edit",{visible:e,cssClass:n})}_isEditColumnVisible(){return this.option("editing").allowDeleting}_isEditButtonDisabled(){var e=this.hasChanges();return!((0,m.O9)(this.option("editing.editRowKey"))||e)}_updateEditButtons(){var e=this._isEditButtonDisabled();this._headerPanelView&&(this._headerPanelView.setToolbarItemDisabled("saveButton",e),this._headerPanelView.setToolbarItemDisabled("revertButton",e))}_applyModified(e,t){e&&e.addClass(L_)}_beforeCloseEditCellInBatchMode(e){}cancelEditData(){var e=this.getChanges(),t={cancel:!1,changes:e};this.executeAction("onEditCanceling",t),t.cancel||(this._cancelEditDataCore(),this.executeAction("onEditCanceled",{changes:e}))}_cancelEditDataCore(){var e=this._getVisibleEditRowIndex();this._beforeCancelEditData(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey(),this._afterCancelEditData(e)}_afterCancelEditData(e){this._dataController.updateItems({repaintChangesOnly:this.option("repaintChangesOnly")})}_hideEditPopup(){}hasEditData(){return this.hasChanges()}update(e){var t=this._dataController;t&&this._pageIndex!==t.pageIndex()&&("refresh"===e&&this.refresh({isPageChanged:!0}),this._pageIndex=t.pageIndex()),this._updateEditButtons()}_getRowIndicesForCascadeUpdating(e,t){return t?[]:[e.rowIndex]}addDeferred(e){this._deferreds.includes(e)||(this._deferreds.push(e),e.always(()=>{var t=this._deferreds.indexOf(e);t>=0&&this._deferreds.splice(t,1)}))}_prepareChange(e,t,n){var p,P={},J=null===(p=e.row)||void 0===p?void 0:p.data,fe=e.key,ke=new xe.cY;return void 0!==fe&&(e.value=t,(0,xe.Sx)(e.column.setCellValue(P,t,(0,o.X)(!0,{},J),n)).done(()=>{ke.resolve({data:P,key:fe,oldData:J,type:Nf})}).fail(xt(ke)).fail(Ze=>this._fireDataErrorOccurred(Ze)),(0,m.O9)(n)&&e.column.displayValueMap&&(e.column.displayValueMap[t]=n),this._updateRowValues(e),this.addDeferred(ke)),ke}_updateRowValues(e){if(e.values){var t=this._dataController,n=t.getRowIndexByKey(e.key),p=t.getVisibleRows()[n];p&&(e.row.values=p.values,e.values=p.values),e.values[e.columnIndex]=e.value}}updateFieldValue(e,t,n,p){var P=e.key,J=new xe.cY;return void 0===P&&this._dataController.fireError("E1043"),e.column.setCellValue?this._prepareChange(e,t,n).done(fe=>{(0,xe.z7)(this._applyChange(e,fe,p)).always(()=>{J.resolve()})}):J.resolve(),J.promise()}_focusPreviousEditingCellIfNeed(e){if(this.hasEditData()&&!this.isEditCell(e.rowIndex,e.columnIndex))return this._focusEditingCell(),this._updateEditRow(e.row,!0),!0}_needUpdateRow(e){var t=this._columnsController.getVisibleColumns();e||(e=this._getEditColumn());var n=e&&e.setCellValue!==e.defaultSetCellValue,p=t.some(P=>P.calculateCellValue!==P.defaultCalculateCellValue);return n||p}_applyChange(e,t,n){var p=(0,Nt.A)((0,Nt.A)({},e),{forceUpdateRow:n});return this._addChange(t,p),this._updateEditButtons(),this._applyChangeCore(e,p.forceUpdateRow)}_applyChangeCore(e,t){var n=e.column.setCellValue!==e.column.defaultSetCellValue,{row:p}=e;p&&(t||n?this._updateEditRow(p,t,n):p.update&&p.update())}_updateEditRowCore(e,t,n){this._dataController.updateItems({changeType:"update",rowIndices:this._getRowIndicesForCascadeUpdating(e,t)})}_updateEditRow(e,t,n){t?this._updateRowImmediately(e,t,n):this._updateRowWithDelay(e,n)}_updateRowImmediately(e,t,n){this._updateEditRowCore(e,!t,n),this._validateEditFormAfterUpdate(e,n),t||this._focusEditingCell()}_updateRowWithDelay(e,t){var n=new xe.cY;this.addDeferred(n),setTimeout(()=>{var p,P=(null===(p=this._editForm)||void 0===p?void 0:p.element())||this.component.$element().get(0),J=(0,j.A)(L.A.getActiveElement(P)),fe=this._rowsView.getCellIndex(J,e.rowIndex),ke=J.get(0),Ue=Ui.A.getSelectionRange(ke);if(this._updateEditRowCore(e,!1,t),this._validateEditFormAfterUpdate(e,t),fe>=0){var Ze=this._rowsView._getCellElement(e.rowIndex,fe);this._delayedInputFocus(Ze,()=>{setTimeout(()=>{var Ft;ke=L.A.getActiveElement(null===(Ft=this.component.$element())||void 0===Ft?void 0:Ft.get(0)),Ue.selectionStart>=0&&Ui.A.setSelectionRange(ke,Ue)})})}n.resolve()})}_validateEditFormAfterUpdate(){}_addChange(e,t){var n,p=t?.row,P=[...this.getChanges()],J=Ui.A.getIndexByKey(e.key,P);J<0&&(J=P.length,this._addInternalData({key:e.key,oldData:e.oldData}),delete e.oldData,P.push(e));var fe=(0,Nt.A)({},P[J]);return fe&&(e.data&&(fe.data=(0,ea.lj)(fe.data,e.data)),(!fe.type||!e.data)&&e.type&&(fe.type=e.type),p&&(p.oldData=this._getOldData(p.key),p.data=(0,ea.lj)(p.data,e.data))),P[J]=fe,this._silentOption(Rh,P),t&&fe!==(null===(n=this.getChanges())||void 0===n?void 0:n[J])&&(t.forceUpdateRow=!0),fe}_getFormEditItemTemplate(e,t){return t.editCellTemplate||this._getDefaultEditorTemplate()}getColumnTemplate(e){var p,ke,{column:t}=e,n=e.row&&e.row.rowIndex,P=this.isRowBasedEditMode(),J=this.isEditRow(n),fe=this.isEditCell(n,e.columnIndex);return!(t.showEditorAlways||t.setCellValue&&(J&&t.allowEditing||fe))||"data"!==e.rowType&&"detailAdaptive"!==e.rowType||t.command?"detail"===t.command&&"detail"===e.rowType&&J&&(p=null==this?void 0:this.getEditFormTemplate(e)):(((this.allowUpdating(e)||J)&&t.allowEditing||fe)&&(J||!P)&&(t.showEditorAlways&&!P&&this._isEditingStart(ke={cancel:!1,key:e.row.isNewRow?void 0:e.row.key,data:e.row.data,column:t}),(!ke||!ke.cancel)&&(e.setValue=(Ze,Ft)=>{this.updateFieldValue(e,Ze,Ft)})),p=t.editCellTemplate||this._getDefaultEditorTemplate()),p}_createButton(e,t,n,p){var P=vg[t.name],J=this.option("editing.useIcons"),fe=this.option("useLegacyColumnButtonTemplate"),ke=(0,j.A)("<a>").attr("href","#").addClass("dx-link").addClass(t.cssClass);if(t.template&&fe)this._rowsView.renderTemplate(e,t.template,n,!0);else{if(t.template)ke=(0,j.A)("<span>").addClass(t.cssClass);else if(J&&P||t.icon){var Ue=bo.F(P=t.icon||P);"image"===Ue||"svg"===Ue?ke=bo.N(P).addClass(t.cssClass):ke.addClass("dx-icon".concat("dxIcon"===Ue?"-":" ").concat(P)).attr("title",t.text),ke.addClass("dx-link-icon"),e.addClass(Gm);var Ze=this.getButtonLocalizationNames()[t.name];Ze&&ke.attr("aria-label",v.A.format(Ze))}else ke.text(t.text);(0,m.O9)(t.hint)&&ke.attr("title",t.hint),this._isButtonDisabled(t,n)?ke.addClass("dx-state-disabled"):(!t.template||t.onClick)&&_.A.on(ke,(0,h.b4)("click","dxDataGridEditing"),this.createAction(Ft=>{var vi;null===(vi=t.onClick)||void 0===vi||vi.call(t,(0,o.X)({},Ft,{row:n.row,column:n.column})),Ft.event.preventDefault(),Ft.event.stopPropagation()})),e.append(ke," "),t.template&&(n.renderAsync=!1,this._rowsView.renderTemplate(ke,t.template,n,!0,p))}}getButtonLocalizationNames(){return{edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges",delete:"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}}prepareButtonItem(e,t,n,p){var P,J=null!==(P=this.option("editing.texts"))&&void 0!==P?P:{},ke={revert:"cancel",save:"save",addRow:"addrow"}[t],Ue={revert:J.cancelAllChanges,save:J.saveAllChanges,addRow:J.addRow}[t],Ze=("save"===ke||"cancel"===ke)&&this._isEditButtonDisabled();return{widget:"dxButton",options:{onInitialized:Ft=>{(0,j.A)(Ft.element).addClass(e._getToolbarButtonClass("".concat("dx-edit-button"," ").concat(this.addWidgetPrefix(ke),"-button")))},icon:"edit-button-".concat(ke),disabled:Ze,onClick:()=>{setTimeout(()=>{this[n]()})},text:Ue,hint:Ue},showText:"inMenu",name:"".concat(t,"Button"),location:"after",locateInMenu:"auto",sortIndex:p}}prepareEditButtons(e){var t,p=[];return(null!==(t=this.option("editing"))&&void 0!==t?t:{}).allowAdding&&p.push(this.prepareButtonItem(e,"addRow","addRow",20)),p}highlightDataCell(e,t){this.shouldHighlightCell(t)&&e.addClass(L_)}_afterInsertRow(e){}_beforeSaveEditData(e){if(e&&!(0,m.O9)(e.key)&&(0,m.O9)(e.type))return!0}_afterSaveEditData(){}_beforeCancelEditData(){}_allowEditAction(e,t){var n=this.option("editing.".concat(e));return(0,m.Tn)(n)&&(n=n({component:this.component,row:t.row})),n}allowUpdating(e,t){var n,p=null!==(n=this.option("editing.startEditAction"))&&void 0!==n?n:"click";return(!(arguments.length>1)||p===t||"down"===t)&&this._allowEditAction("allowUpdating",e)}allowDeleting(e){return this._allowEditAction("allowDeleting",e)}isCellModified(e){var t,n,p,{columnIndex:P}=e,J=null===(n=null===(t=e?.row)||void 0===t?void 0:t.modifiedValues)||void 0===n?void 0:n[P];return!(null===(p=e?.row)||void 0===p)&&p.isNewRow&&(J=e.value),void 0!==J}isNewRowInEditMode(){var e=this._getVisibleEditRowIndex(),t=this._dataController.items();return e>=0&&t[e].isNewRow}_isRowDeleteAllowed(){}shouldHighlightCell(e){return this.isCellModified(e)&&e.column.setCellValue&&(this.getEditMode()!==lm||!e.row.isEditing)}}},extenders:{controllers:{data:qr},views:{rowsView:V=>class extends V{getCellIndex(e,t){if(!e.is("td")&&t>=0){var n=this.getCellElements(t),p=-1;return(0,E.__)(n,(P,J)=>{(0,j.A)(J).find(e).length&&(p=P)}),p}return super.getCellIndex.apply(this,arguments)}publicMethods(){return super.publicMethods().concat(["cellValue"])}_getCellTemplate(e){return this._editingController.getColumnTemplate(e)||super._getCellTemplate(e)}_createRow(e){var t=super._createRow.apply(this,arguments);if(e){var n=!!e.removed,p=!!e.isNewRow,P=!!e.modified;p&&t.addClass("dx-row-inserted"),P&&t.addClass("dx-row-modified"),(p||n)&&t.removeClass("dx-selection")}return t}_getColumnIndexByElement(e){for(var t=e.closest("table"),n=this.getTableElements();t.length&&!n.filter(t).length;)e=t.closest("td"),t=e.closest("table");return this._getColumnIndexByElementCore(e)}_getColumnIndexByElementCore(e){var t=e.closest(".".concat(fc,"> td:not(.dx-master-detail-cell)"));return this.getCellIndex(t)}_editCellByClick(e,t){var n=this._editingController,p=(0,j.A)(e.event.target),P=this._getColumnIndexByElement(p),J=this._dataController.items()[e.rowIndex],fe=n.allowUpdating({row:J},t)||J&&J.isNewRow,ke=this._columnsController.getVisibleColumns()[P],Ue=n.isEditCell(e.rowIndex,P),Ze=fe&&ke&&(ke.allowEditing||Ue),Ft=this.option("editing.startEditAction")||"click",vi=ke&&ke.showEditorAlways;if(Ue)return!0;if("down"===t)return(Ca.A.real().ios||Ca.A.real().android)&&(0,rr.GX)(),vi&&Ze&&n.editCell(e.rowIndex,P);if("click"===t&&"dblClick"===Ft&&this._pointerDownTarget===p.get(0)){var Li=J?.isNewRow;n.closeEditCell(!1,Li)}return Ze&&t===Ft?n.editCell(e.rowIndex,P)||n.isEditRow(e.rowIndex):void 0}_rowPointerDown(e){this._pointerDownTarget=e.event.target,this._pointerDownTimeout=setTimeout(()=>{this._editCellByClick(e,"down")})}_rowClickTreeListHack(e){super._rowClick.apply(this,arguments)}_rowClick(e){var t=(0,j.A)(e.rowElement).hasClass(this.addWidgetPrefix(sm));e.event[Vm]=this.component,!this._editCellByClick(e,"click")&&!t&&super._rowClick.apply(this,arguments)}_rowDblClickTreeListHack(e){super._rowDblClick.apply(this,arguments)}_rowDblClick(e){this._editCellByClick(e,"dblClick")||super._rowDblClick.apply(this,arguments)}_cellPrepared(e,t){var n,p=this._editingController,P=!!t.column.command,J=t.setValue,fe=p.isEditRow(t.rowIndex),ke=qt(fe,t);if(Ai(fe,t)){var{alignment:Ue}=t.column;e.toggleClass(this.addWidgetPrefix("readonly"),!J).toggleClass("dx-cell-focus-disabled",!J),Ue&&e.find(Th).first().css("textAlign",Ue)}ke&&this._editCellPrepared(e);var Ze=!(null===(n=t.column)||void 0===n||!n.cellTemplate);t.column&&!P&&(!Ze||p.shouldHighlightCell(t))&&p.highlightDataCell(e,t),super._cellPrepared.apply(this,arguments)}_getCellOptions(e){var t=super._getCellOptions(e),{columnIndex:n,row:p}=e;return t.isEditing=this._editingController.isEditCell(t.rowIndex,t.columnIndex),t.removed=p.removed,p.modified&&(t.modified=void 0!==p.modifiedValues[n]),t}_setCellAriaAttributes(e,t){super._setCellAriaAttributes(e,t),t.removed&&this.setAria("roledescription",v.A.format("dxDataGrid-ariaDeletedCell"),e),t.modified&&this.setAria("roledescription",v.A.format("dxDataGrid-ariaModifiedCell"),e),t.column.allowEditing&&!t.removed&&!t.modified&&"data"===t.rowType&&t.column.calculateCellValue===t.column.defaultCalculateCellValue&&this._editingController.isCellBasedEditMode()&&this.setAria("roledescription",v.A.format("dxDataGrid-ariaEditableCell"),e)}_createCell(e){var t=super._createCell(e),n=this._editingController.isEditRow(e.rowIndex);return Ai(n,e)&&t.addClass(om),t}cellValue(e,t,n,p){var P=this.getCellOptions(e,t);if(P){if(void 0===n)return P.value;this._editingController.updateFieldValue(P,n,p,!0)}}dispose(){super.dispose.apply(this,arguments),clearTimeout(this._pointerDownTimeout)}_renderCore(){return super._renderCore.apply(this,arguments),this.waitAsyncTemplates(!0).done(()=>{this._editingController._focusEditorIfNeed()})}_editCellPrepared(){}_formItemPrepared(){}},headerPanel:V=>class extends V{optionChanged(e){var{fullName:t}=e;switch(e.name){case"editing":t&&![Lf,Rh,Ff,zu].some(P=>P===t)&&this._invalidate(),super.optionChanged(e);break;case"useLegacyColumnButtonTemplate":e.handled=!0;break;default:super.optionChanged(e)}}_getToolbarItems(){var e=super._getToolbarItems();return this._editingController.prepareEditButtons(this).concat(e)}isVisible(){var e=this._editingController.option("editing");return super.isVisible()||e?.allowAdding}}}}};En.registerModule("editing",(0,Nt.A)((0,Nt.A)({},nr),{extenders:(0,Nt.A)((0,Nt.A)({},nr.extenders),{controllers:(0,Nt.A)((0,Nt.A)({},nr.extenders.controllers),{data:V=>class extends(qr(V)){_changeRowExpandCore(e){var t=this._editingController;return Array.isArray(e)&&t&&t.refresh(),super._changeRowExpandCore.apply(this,arguments)}}})})})),En.registerModule("editingRowBased",{extenders:{controllers:{editing:V=>class extends V{isRowEditMode(){return this.getEditMode()===lm}_afterCancelEditData(e){var t=this._dataController;this.isRowBasedEditMode()&&e>=0?t.updateItems({changeType:"update",rowIndices:[e,e+1]}):super._afterCancelEditData(e)}_isDefaultButtonVisible(e,t){var n=this.isRowBasedEditMode(),p=t.row&&(0,s.RL)(t.row.key,this.option(zu));if(n)switch(e.name){case"edit":return!p&&this.allowUpdating(t);case"delete":return super._isDefaultButtonVisible(e,t)&&!p;case"save":case"cancel":return p;default:return super._isDefaultButtonVisible(e,t)}return super._isDefaultButtonVisible(e,t)}isEditRow(e){return this.isRowBasedEditMode()&&this.isEditRowByIndex(e)}_cancelSaving(e){this.isRowBasedEditMode()&&(this.hasChanges()||this._cancelEditDataCore()),super._cancelSaving(e)}_refreshCore(e){var{allowCancelEditing:t}=e??{};if(this.isRowBasedEditMode()){var n=this.getChanges().filter(p=>"update"===p.type).length>0;this.init(),t&&n&&this._cancelEditDataCore()}super._refreshCore(e)}_isEditColumnVisible(){var e=super._isEditColumnVisible(),t=this.option("editing"),n=this.isRowEditMode();return e||n&&(t.allowUpdating||t.allowAdding)}_focusEditorIfNeed(){var e=this.getEditMode();if(this._needFocusEditor){if(mg.includes(e)){var t=this.getFocusedCellInRow(this._getVisibleEditRowIndex());this._delayedInputFocus(t,()=>{t&&this.component.focus(t)})}this._needFocusEditor=!1}}},data:V=>class extends V{_getChangedColumnIndices(e,t,n,p){if(!this._editingController.isRowBasedEditMode()||e.isEditing===t.isEditing)return super._getChangedColumnIndices.apply(this,arguments)}}},views:{rowsView:V=>class extends V{_createRow(e){var t=super._createRow.apply(this,arguments);return e&&this._editingController.isEditRow(e.rowIndex)&&(t.addClass(jv),t.removeClass(uf),"detail"===e.rowType&&t.addClass(this.addWidgetPrefix(sm))),t}_update(e){super._update(e),"updateSelection"===e.changeType&&this.getTableElements().children("tbody").children(".".concat(jv)).removeClass(uf)}}}}});var Bo=D(69803);En.registerModule("editingFormBased",{extenders:{controllers:{editing:V=>class extends V{init(){this._editForm=null,this._updateEditFormDeferred=null,super.init()}isFormOrPopupEditMode(){return this.isPopupEditMode()||this.isFormEditMode()}isPopupEditMode(){return this.option("editing.mode")===Ih}isFormEditMode(){return this.option("editing.mode")===Hm}getFirstEditableColumnIndex(){var e=this._firstFormItem;if(this.isFormEditMode()&&e){var t=this.option(zu),n=this._dataController.getRowIndexByKey(t),p=this._rowsView.getCellElements(n);return this._rowsView._getEditFormEditorVisibleIndex(p,e.column)}return super.getFirstEditableColumnIndex()}getEditFormRowIndex(){return this.isFormOrPopupEditMode()?this._getVisibleEditRowIndex():super.getEditFormRowIndex()}_isEditColumnVisible(){var e=super._isEditColumnVisible(),t=this.option("editing");return this.isFormOrPopupEditMode()&&t.allowUpdating||e}_handleDataChanged(e){var t,n;if(this.isPopupEditMode()){var p=this.option("editing.editRowKey"),P=null===(t=e?.items)||void 0===t?void 0:t.some(fe=>(0,s.RL)(fe.key,p)),J=(null===(n=e.changeTypes)||void 0===n?void 0:n.length)&&e.changeTypes.every(fe=>"insert"===fe);("refresh"===e.changeType||P&&e.isOptionChanged)&&!J&&this._repaintEditPopup()}super._handleDataChanged(e)}getPopupContent(){var e,t=null===(e=this._editPopup)||void 0===e?void 0:e.option("visible");if(this.isPopupEditMode()&&t)return this._$popupContent}_showAddedRow(e){this.isPopupEditMode()?this._showEditPopup(e):super._showAddedRow(e)}_cancelEditDataCore(){super._cancelEditDataCore(),this.isPopupEditMode()&&this._hideEditPopup()}_updateEditRowCore(e,t,n){var p,P=this._editForm;this.isPopupEditMode()?this.option("repaintChangesOnly")?(null===(p=e.update)||void 0===p||p.call(e,e),this._rowsView.renderDelayedTemplates()):P&&(this._updateEditFormDeferred=(new xe.cY).done(()=>P.repaint()),this._updateLockCount||this._updateEditFormDeferred.resolve()):super._updateEditRowCore(e,t,n)}_showEditPopup(e,t){var n="desktop"!==Ca.A.current().deviceType,p=this.addWidgetPrefix("edit-popup"),P=(0,o.X)({showTitle:!1,fullScreen:n,wrapperAttr:{class:p},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getCancelButtonConfig()}],contentTemplate:this._getPopupEditFormTemplate(e)},this.option(Lf));if(!this._editPopup){var J=(0,j.A)("<div>").appendTo(this.component.$element()).addClass(p);this._editPopup=this._createComponent(J,vn.A),this._editPopup.on("hiding",this._getEditPopupHiddenHandler()),this._editPopup.on("shown",fe=>{var ke;_.A.trigger(fe.component.$content().find(Ah).not(".".concat(yg)).first(),"focus"),t&&(null===(ke=this._editForm)||void 0===ke||ke.repaint())})}this._editPopup.option(P),this._editPopup.show(),super._showEditPopup(e,t)}_getPopupEditFormTemplate(e){var t=this.component.getVisibleRows()[e],n={row:t,values:t.values,rowType:t.rowType,key:t.key,rowIndex:e};return this._rowsView._addWatchMethod(n,t),p=>{var P=this.getEditFormTemplate(),J=this._createComponent((0,j.A)("<div>").appendTo(p),lc.A);this._$popupContent=(0,j.A)(J.content()),P(this._$popupContent,n,{isPopupForm:!0}),this._rowsView.renderDelayedTemplates(),(0,j.A)(p).parent().attr("aria-label",this.localize("dxDataGrid-ariaEditForm"))}}_repaintEditPopup(){var e,t,n=this._getVisibleEditRowIndex();if(n>=0){var p=null===(e=this._editPopup)||void 0===e?void 0:e.option("animation");null===(t=this._editPopup)||void 0===t||t.option("animation",null),this._showEditPopup(n,!0),void 0!==p&&this._editPopup.option("animation",p)}}_hideEditPopup(){var e;null===(e=this._editPopup)||void 0===e||e.option("visible",!1)}optionChanged(e){if("editing"===e.name&&this.isFormOrPopupEditMode()){var{fullName:t}=e;0===t.indexOf(Vg)?(this._handleFormOptionChange(e),e.handled=!0):0===t.indexOf(Lf)&&(this._handlePopupOptionChange(e),e.handled=!0)}super.optionChanged(e)}_handleFormOptionChange(e){var t;if(this.isFormEditMode()){var n=this._getVisibleEditRowIndex();n>=0&&this._dataController.updateItems({changeType:"update",rowIndices:[n]})}else null!==(t=this._editPopup)&&void 0!==t&&t.option("visible")&&0===e.fullName.indexOf(Vg)&&this._repaintEditPopup()}_handlePopupOptionChange(e){var t=this._editPopup;if(t){var n=e.fullName.slice(14);n?t.option(n,e.value):t.option(e.value)}}renderFormEditorTemplate(e,t,n,p,P){var J=this,fe=(0,j.A)(p),{column:ke}=t,Ue=(V=>{var e,{column:t}=V;return V.isCustomEditorType?V.editorType:null===(e=t.formItem)||void 0===e?void 0:e.editorType})(t),Ze=e?.row,Ft=Ze?.data,vi=n.component,Li=ke.calculateCellValue(Ft),tn=Ui.A.getDisplayValue(ke,Li,Ft,Ze?.rowType),{label:On,labelMark:Qn,labelMode:zr}=n.editorOptions||{},la=(0,o.X)({},e,{data:Ft,cellElement:null,isOnForm:!0,item:t,id:vi.getItemID(t.name||t.dataField),column:(0,o.X)({},ke,{editorType:Ue,editorOptions:(0,o.X)({label:On,labelMark:Qn,labelMode:zr},ke.editorOptions,t.editorOptions)}),columnIndex:ke.index,setValue:!P&&ke.allowEditing&&function(Xl,Es){J.updateFieldValue(la,Xl,Es)}});la.value=Li,la.displayValue=tn,la.text=ke.command?"":Ui.A.formatValue(tn,ke);var qo=this._getFormEditItemTemplate.bind(this)(la,ke);return this._rowsView.renderTemplate(fe,qo,la,!!(0,rr.A1)(fe)).done(()=>{this._rowsView._updateCell(fe,la)}),la}getFormEditorTemplate(e,t){var n=this.component.columnOption(t.name||t.dataField);return(p,P)=>{var J=(0,j.A)(P),{row:fe}=e;if(fe?.watch){var ke=fe.watch(()=>n.selector(fe.data),()=>{var Ue=J.find(".dx-widget").first(),Ze=Ue.data("dxValidator"),Ft=Ze?.option();J.contents().remove(),e=this.renderFormEditorTemplate.bind(this)(e,t,p,J),Ze=(Ue=J.find(".dx-widget").first()).data("dxValidator"),Ft&&!Ze&&Ue.dxValidator({validationRules:Ft.validationRules,validationGroup:Ft.validationGroup,dataGetter:Ft.dataGetter})});_.A.on(J,Be.N,ke)}e=this.renderFormEditorTemplate.bind(this)(e,t,p,J)}}getEditFormOptions(e){var t,n=null===(t=this._getValidationGroupsInForm)||void 0===t?void 0:t.call(this,e),p=this.option("editing.form.customizeItem"),P=this.addWidgetPrefix(l_),J=this.option("editing.form.items"),fe={};if(J)Er(J,Ue=>{var Ze=Ue?.name||Ue?.dataField;Ze&&(fe[Ze]=!!Ue.editorType)});else{var ke=this._columnsController.getColumns();J=[],(0,E.__)(ke,(Ue,Ze)=>{!Ze.isBand&&!Ze.type&&J.push({column:Ze,name:Ze.name,dataField:Ze.dataField})})}return(0,o.X)({},n,{items:J,formID:"dx-".concat(new q.A),customizeItem:Ue=>{var Ze,Ft=Ue.name||Ue.dataField;if((Ue.column||Ft)&&(Ze=Ue.column||this._columnsController.columnOption(Ue.name?"name:".concat(Ue.name):"dataField:".concat(Ue.dataField))),Ze){if(Ue.label=Ue.label||{},Ue.label.text=Ue.label.text||Ze.caption,"boolean"===Ze.dataType&&void 0===Ue.label.visible){var vi=this.option("editing.form.labelMode");("floating"===vi||"static"===vi)&&(Ue.label.visible=!0)}Ue.template=Ue.template||this.getFormEditorTemplate(e,Ue),Ue.column=Ze,Ue.isCustomEditorType=fe[Ft],Ze.formItem&&(0,o.X)(Ue,Ze.formItem),void 0===Ue.isRequired&&Ze.validationRules&&(Ue.isRequired=Ze.validationRules.some(tn=>"required"===tn.type),Ue.validationRules=[]);var Li=!(0,m.O9)(Ue.visible)||Ue.visible;!this._firstFormItem&&Li&&(this._firstFormItem=Ue)}p?.call(this,Ue),Ue.cssClass=(0,m.Kg)(Ue.cssClass)?"".concat(Ue.cssClass," ").concat(P):P}})}getEditFormTemplate(){return(e,t,n)=>{var p=this.option(Vg),P=this.getEditFormOptions(t),J=(0,j.A)("<div>").appendTo(e),fe=n?.isPopupForm;if(this._firstFormItem=void 0,fe&&J.addClass(this.addWidgetPrefix("edit-popup-form")),this._editForm=this._createComponent(J,Bo.A,(0,o.X)({},p,P)),!fe){var ke=(0,j.A)("<div>").addClass(this.addWidgetPrefix("form-buttons-container")).appendTo(e);this._createComponent((0,j.A)("<div>").appendTo(ke),Le.A,this._getSaveButtonConfig()),this._createComponent((0,j.A)("<div>").appendTo(ke),Le.A,this._getCancelButtonConfig())}this._editForm.on("contentReady",()=>{var Ue;this._rowsView.renderDelayedTemplates(),null===(Ue=this._editPopup)||void 0===Ue||Ue.repaint()})}}getEditForm(){return this._editForm}_endUpdateCore(){var e;null===(e=this._updateEditFormDeferred)||void 0===e||e.resolve()}_beforeEndSaving(e){var t;super._beforeEndSaving(e),this.isPopupEditMode()&&(null===(t=this._editPopup)||void 0===t||t.hide())}_processDataItemCore(e,t,n,p,P){var{type:J}=t;this.isPopupEditMode()&&J===Lp&&(e.visible=!1),super._processDataItemCore(e,t,n,p,P)}_editRowFromOptionChangedCore(e,t){var n=this.isPopupEditMode();super._editRowFromOptionChangedCore(e,t,n),n&&this._showEditPopup(t)}},data:V=>class extends V{_updateEditItem(e){this._editingController.isFormEditMode()&&(e.rowType="detail")}_getChangedColumnIndices(e,t,n,p){if(!1!==p||!t.isEditing||!this._editingController.isFormEditMode())return super._getChangedColumnIndices.apply(this,arguments)}}},views:{rowsView:V=>class extends V{_renderCellContent(e,t){"data"===t.rowType&&this._editingController.isPopupEditMode()&&!1===t.row.visible||super._renderCellContent.apply(this,arguments)}getCellElements(e){var t=super.getCellElements(e),n=this._editingController,p=n.getEditForm();return n.getEditFormRowIndex()===e&&t&&p?p.$element().find(".".concat(this.addWidgetPrefix(l_),", .").concat("dx-button")):t}_getVisibleColumnIndex(e,t,n){if(this._editingController.getEditFormRowIndex()===t&&(0,m.Kg)(n)){var P=this._columnsController.columnOption(n);return this._getEditFormEditorVisibleIndex(e,P)}return super._getVisibleColumnIndex.apply(this,arguments)}_getEditFormEditorVisibleIndex(e,t){var n=-1;return(0,E.__)(e,(p,P)=>{var J=(0,j.A)(P).find(".dx-field-item-content").data("dx-form-item");if(J?.column&&t&&J.column.index===t.index)return n=p,!1}),n}_isFormItem(e){var t="detail"===e.rowType||"detailAdaptive"===e.rowType,n="data"===e.rowType&&this._editingController.isPopupEditMode();return(t||n)&&e.item}_updateCell(e,t){this._isFormItem(t)?this._formItemPrepared(t,e):super._updateCell(e,t)}_updateContent(){var e=this._editingController,t=e.getEditForm(),n=t?.option("validationGroup");return super._updateContent.apply(this,arguments).done(()=>{var P=e.getEditForm();n&&P&&P!==t&&P.option("validationGroup",n)})}}}}}),En.registerModule("editingCellBased",{extenders:{controllers:{editing:V=>class extends V{init(){var t,n,e=!this._saveEditorHandler;super.init(),e&&(this._pointerUpEditorHandler=()=>{var p;n=null===(p=this._columnsResizerController)||void 0===p?void 0:p.isResizing()},this._pointerDownEditorHandler=p=>t=(0,j.A)(p.target),this._saveEditorHandler=this.createAction(function(p){var{event:P}=p,J=(0,j.A)(P.target),fe=P[Vm],{component:ke}=this;if((!function er(V){return V&&(V.is("input")||V.is("textarea"))}(t)||t.is(J))&&this.isCellOrBatchEditMode()&&!this._editCellInProgress){var Ze=Ue(J)||Ue(fe?.$element()),Ft=fe&&!fe._disposed&&fe!==this.component,vi=!!J.closest(".".concat(this.addWidgetPrefix("addrow-button"))).length,Li=J.hasClass(this.addWidgetPrefix("focus-overlay")),tn=this.isCellEditMode();!n&&!Ze&&!Li&&!(vi&&tn&&this.isEditing())&&((0,rr.A1)(J)||Ft)&&this._closeEditItem.bind(this)(J)}function Ue(On){if(!On)return!1;var Qn=On.closest(".".concat("dx-dropdowneditor-overlay")),zr=ke.$element();return Qn.length>0&&0===zr.closest(Qn).length}}),_.A.on(L.A.getDocument(),pe.A.up,this._pointerUpEditorHandler),_.A.on(L.A.getDocument(),pe.A.down,this._pointerDownEditorHandler),_.A.on(L.A.getDocument(),ce.U,this._saveEditorHandler))}isCellEditMode(){return this.option("editing.mode")===dm}isBatchEditMode(){return this.option("editing.mode")===Bf}isCellOrBatchEditMode(){return this.isCellEditMode()||this.isBatchEditMode()}_needToCloseEditableCell(e){var t,n=this.component.$element(),p=this.isEditing();if((!n||e.closest(n).length)&&e.closest(".".concat("dx-data-row")).length){var fe=e.closest(".".concat(fc,"> td")),ke=this._rowsView.getRowIndex(fe.parent()),Ue=this._rowsView.getCellElements(ke);if(Ue?.length){var Ze=Ue.index(fe),vi=null===(t=this._columnsController.getVisibleColumns()[Ze])||void 0===t?void 0:t.allowEditing,Li=this.isEditCell(ke,Ze);p=p&&!vi&&!Li}}return p||super._needToCloseEditableCell(e)}_closeEditItem(e){this._needToCloseEditableCell(e)&&this.closeEditCell()}_focusEditorIfNeed(){var e;if(this._needFocusEditor&&this.isCellOrBatchEditMode()){var t=this._getVisibleEditColumnIndex(),n=null===(e=this._rowsView)||void 0===e?void 0:e._getCellElement(this._getVisibleEditRowIndex(),t);n&&!n.find(":focus").length?this._focusEditingCell(()=>{this._editCellInProgress=!1},n,!0):this._editCellInProgress=!1,this._needFocusEditor=!1}else super._focusEditorIfNeed()}isEditing(){if(this.isCellOrBatchEditMode()){var e=(0,m.O9)(this.option(zu)),t=(0,m.O9)(this.option(Ff));return e&&t}return super.isEditing()}_handleEditColumnNameChange(e){var t=this._getVisibleEditRowIndex(e.previousValue);if(this.isCellOrBatchEditMode()&&-1!==t&&(0,m.O9)(e.value)&&e.value!==e.previousValue){var n=this._columnsController.getVisibleColumnIndex(e.value),p=this._columnsController.getVisibleColumnIndex(e.previousValue);this._editCellFromOptionChanged(n,p,t)}}_addRow(e){if(this.isCellEditMode()&&this.hasChanges()){var t=new xe.cY;return this.saveEditData().done(()=>{this.hasChanges()?t.reject("cancel"):this.addRow(e).done(t.resolve).fail(t.reject)}),t.promise()}return super._addRow(e)}editCell(e,t){return this._editCell({rowIndex:e,columnIndex:t})}_editCell(e){var n,t=new xe.cY;return this.executeOperation(t,()=>{n=this._editCellCore(e),(0,xe.z7)(n).done(t.resolve).fail(t.reject)}),void 0!==n?n:t.promise()}_editCellCore(e){var t=this._dataController,n=(0,m.O9)(e.oldColumnIndex)||(0,m.O9)(e.oldRowIndex),{columnIndex:p,rowIndex:P,column:J,item:fe}=this._getNormalizedEditCellOptions(e),ke={data:fe?.data,cancel:!1,column:J};if(void 0!==fe.key){if(J&&("data"===fe.rowType||"detailAdaptive"===fe.rowType)&&!fe.removed&&this.isCellOrBatchEditMode()){if(!n&&this.isEditCell(P,p))return!0;var Ue=P+t.getRowIndexOffset();return(0,xe.z7)(this._beforeEditCell(P,p,fe)).done(Ze=>{Ze||this._prepareEditCell(ke,fe,p,Ue)||this._processCanceledEditingCell()})}return!1}this._dataController.fireError("E1043")}_beforeEditCell(e,t,n){if(this.isCellEditMode()&&!n.isNewRow&&this.hasChanges()){var p=new xe.cY;return this.saveEditData().always(()=>{p.resolve(this.hasChanges())}),this.addDeferred(p),p}return!1}publicMethods(){return super.publicMethods().concat(["editCell","closeEditCell"])}_getNormalizedEditCellOptions(e){var Ze,{oldColumnIndex:t,oldRowIndex:n,columnIndex:p,rowIndex:P}=e,J=this._columnsController,fe=J.getVisibleColumns(),Ue=this._dataController.items()[P];return Ze=(0,m.O9)(t)?fe[t]:this._getEditColumn(),(0,m.O9)(n)||(n=this._getVisibleEditRowIndex()),(0,m.Kg)(p)&&(p=J.columnOption(p,"index"),p=J.getVisibleIndex(p)),{oldColumn:Ze,columnIndex:p,oldRowIndex:n,rowIndex:P,column:fe[p],item:Ue}}_prepareEditCell(e,t,n,p){var P;return t.isNewRow||(e.key=t.key),!this._isEditingStart(e)&&(this._pageIndex=this._dataController.pageIndex(),this._setEditRowKey(t.key),this._setEditColumnNameByIndex(n),e.column.showEditorAlways||this._addInternalData({key:t.key,oldData:null!==(P=t.oldData)&&void 0!==P?P:t.data}),!0)}closeEditCell(e,t){var n=(0,xe.z7)(),p=this._getVisibleEditRowIndex();if(this.isCellOrBatchEditMode()){var P=new xe.cY;n=new xe.cY,this.executeOperation(P,()=>{this._closeEditCellCore(e,p,t).always(n.resolve)})}return n.promise()}_closeEditCellCore(e,t,n){var p=this._dataController,P=new xe.cY,J=P.promise();if(this.isCellEditMode()&&this.hasChanges()){if(!n)return this.saveEditData().done(ke=>{this.hasChanges()?P.resolve():this.closeEditCell(!!ke).always(P.resolve)}),J}else if(this._resetEditRowKey(),this._resetEditColumnName(),t>=0){var fe=[t];this._beforeCloseEditCellInBatchMode(fe),e||p.updateItems({changeType:"update",rowIndices:fe})}return P.resolve(),J}_resetModifiedClassCells(e){if(this.isBatchEditMode()){var t=this._columnsController.getVisibleColumns().length;e.forEach(n=>{for(var{key:p}=n,P=this._dataController.getRowIndexByKey(p),J=0;J<t;J++){var fe=this._rowsView._getCellElement(P,J);fe?.removeClass("dx-cell-modified")}})}}_prepareChange(e,t,n){var p=(0,j.A)(e.cellElement);return this.isBatchEditMode()&&void 0!==e.key&&this._applyModified(p,e),super._prepareChange(e,t,n)}_cancelSaving(e){var t=this._dataController;this.isCellOrBatchEditMode()&&(this.isBatchEditMode()&&this._resetEditIndices(),t.updateItems()),super._cancelSaving(e)}optionChanged(e){var{fullName:t}=e;"editing"===e.name&&t===Ff?(this._handleEditColumnNameChange(e),e.handled=!0):super.optionChanged(e)}_editCellFromOptionChanged(e,t,n){var p=this._columnsController.getVisibleColumns();e>-1&&(0,s.zE)(()=>{this._repaintEditCell(p[e],p[t],n)})}_handleEditRowKeyChange(e){var t;if(this.isCellOrBatchEditMode()){var n=this._getVisibleEditColumnIndex(),p=this._getEditRowIndexCorrection(),P=this._dataController.getRowIndexByKey(e.previousValue)+p;(0,m.O9)(e.value)&&e.value!==e.previousValue&&(null===(t=this._editCellFromOptionChanged)||void 0===t||t.call(this,n,n,P))}else super._handleEditRowKeyChange(e)}deleteRow(e){if(this.isCellEditMode()&&this.isEditing()){var{isNewRow:t}=this._dataController.items()[e],n=this._dataController.getKeyByRowIndex(e);this.closeEditCell(null,t).always(()=>{e=this._dataController.getRowIndexByKey(n),this._checkAndDeleteRow(e)})}else super.deleteRow(e)}_checkAndDeleteRow(e){this.isBatchEditMode()?this._deleteRowCore(e):super._checkAndDeleteRow(e)}_refreshCore(e){var{isPageChanged:t}=e??{},n=this.isBatchEditMode()||t&&"virtual"!==this.option("scrolling.mode");this.isCellOrBatchEditMode()?n&&(this._resetEditColumnName(),this._resetEditRowKey()):super._refreshCore(e)}_allowRowAdding(e){return!!this.isBatchEditMode()||super._allowRowAdding(e)}_afterDeleteRow(e,t){var n=this._dataController;return this.isBatchEditMode()?(n.updateItems({changeType:"update",rowIndices:[t,e]}),(new xe.cY).resolve()):super._afterDeleteRow(e,t)}_updateEditRow(e,t,n){this.isCellOrBatchEditMode()?this._updateRowImmediately(e,t,n):super._updateEditRow(e,t,n)}_isDefaultButtonVisible(e,t){if(this.isCellOrBatchEditMode()){var n=this.isBatchEditMode();switch(e.name){case"save":case"cancel":case"edit":return!1;case"delete":return super._isDefaultButtonVisible(e,t)&&(!n||!t.row.removed);case"undelete":return n&&this.allowDeleting(t)&&t.row.removed;default:return super._isDefaultButtonVisible(e,t)}}return super._isDefaultButtonVisible(e,t)}_isRowDeleteAllowed(){return super._isRowDeleteAllowed()||this.isBatchEditMode()}_beforeEndSaving(e){var t;this.isCellEditMode()?"update"!==(null===(t=e[0])||void 0===t?void 0:t.type)&&super._beforeEndSaving(e):(this.isBatchEditMode()&&this._resetModifiedClassCells(e),super._beforeEndSaving(e))}prepareEditButtons(e){var t,n=null!==(t=this.option("editing"))&&void 0!==t?t:{},p=super.prepareEditButtons(e);return(n.allowUpdating||n.allowAdding||n.allowDeleting)&&this.isBatchEditMode()&&(p.push(this.prepareButtonItem(e,"save","saveEditData",21)),p.push(this.prepareButtonItem(e,"revert","cancelEditData",22))),p}_saveEditDataInner(){var P,e=this._dataController.getVisibleRows()[this.getEditRowIndex()],t=this._getEditColumn(),n=t?.showEditorAlways;return this.isCellEditMode()&&!e?.isNewRow&&n&&(P=new xe.cY,this.addDeferred(P)),super._saveEditDataInner().always(P?.resolve)}_applyChange(e,t,n){var p=this.isCellEditMode()&&e.row&&!e.row.isNewRow,{showEditorAlways:P}=e.column,J=e.column.setCellValue!==e.column.defaultSetCellValue;return P&&!n&&p&&this.hasEditData()&&!this.isEditCell(e.rowIndex,e.columnIndex)?(this._focusEditingCell(),void this._updateEditRow(e.row,!0,J)):super._applyChange(e,t,n)}_applyChangeCore(e,t){var{showEditorAlways:n}=e.column,p=this.isCellEditMode()&&e.row&&!e.row.isNewRow;if(n&&!t){if(p)return this._setEditRowKey(e.row.key,!0),this._setEditColumnNameByIndex(e.columnIndex,!0),this.saveEditData();if(this.isBatchEditMode())return t=this._needUpdateRow(e.column),super._applyChangeCore(e,t)}return super._applyChangeCore(e,t)}_processDataItemCore(e,t,n,p,P){var{data:J,type:fe}=t;this.isBatchEditMode()&&fe===Mc&&(e.data=(0,ea.lj)(e.data,J)),super._processDataItemCore(e,t,n,p,P)}_processRemoveCore(e,t,n){if(!this.isBatchEditMode()||n)return super._processRemoveCore(e,t,n)}_processRemoveIfError(e,t){if(!this.isBatchEditMode())return super._processRemoveIfError(e,t)}_beforeFocusElementInRow(e){super._beforeFocusElementInRow(e);var t=e>=0?e:0,n=this.getFirstEditableColumnIndex();n>=0&&this.editCell(t,n)}}},views:{rowsView:V=>class extends V{_createTable(){var e=super._createTable.apply(this,arguments),t=this._editingController;return t.isCellOrBatchEditMode()&&this.option("editing.allowUpdating")&&_.A.on(e,(0,h.b4)(mh.A.name,"dxDataGridRowsView"),"td:not(.".concat(om,")"),this.createAction(()=>{t.isEditing()&&t.closeEditCell()})),e}_createRow(e){var t=super._createRow.apply(this,arguments);if(e){var p=!!e.removed;this._editingController.isBatchEditMode()&&p&&t.addClass("dx-row-removed")}return t}},headerPanel:V=>class extends V{isVisible(){var e=this._editingController.option("editing");return super.isVisible()||e&&(e.allowUpdating||e.allowDeleting)&&e.mode===Bf}}}}});var cl=D(79130),pu=D(15966),Yd=D(31063),dh="invalid",Dl="revert-tooltip",Oc="dx-invalid-message",ys="dxInvalidMessage",Ts="invalid-message",bl="dx-invalid-message-always",Wu="dxRevertButton",op="validator",mc="dx-pending-indicator",ju="dx-validation-pending",Hf="content",ff="__DX_INSERT_INDEX__",$d="row",$m="batch",dd="cell",Cg=["popup","form"],Yu="insert",Hp="cancel",Gf=function(V){return(0,m.O9)(V)&&V!==Hp},Km=function(V,e){return void 0!==V||void 0===V&&e&&!e.isNewRow};En.registerModule("validating",{defaultOptions:()=>({editing:{texts:{validationCancelChanges:v.A.format("dxDataGrid-validationCancelChanges")}}}),controllers:{validating:class Ns extends cn.Controller{constructor(){super(...arguments),this._isValidationInProgress=!1,this._disableApplyValidationResults=!1}init(){this._editingController=this.getController("editing"),this._editorFactoryController=this.getController("editorFactory"),this._columnsController=this.getController("columns"),this.createAction("onRowValidating"),this._validationState||this.initValidationState()}initValidationState(){this._validationState=[],this._validationStateCache={}}_rowIsValidated(e){var t=this._getValidationData(e?.key);return!!t&&!!t.validated}_getValidationData(e,t){var P,n=(0,s.GP)(e),p=(0,m.Gv)(n);return!(P=p?this._validationState.filter(J=>(0,s.RL)(J.key,e))[0]:this._validationStateCache[n])&&t&&(this._validationState.push(P={key:e,isValid:!0}),p||(this._validationStateCache[n]=P)),P}_getBrokenRules(e,t){return t?t.brokenRules||t.brokenRule&&[t.brokenRule]:e.brokenRules||[]}_rowValidating(e,t){var n=new xe.cY,p=this._editingController.getChangeByKey(e?.key),P=this._getBrokenRules(e,t),fe={brokenRules:P,isValid:t?t.isValid:e.isValid,key:p.key,newData:p.data,oldData:this._editingController._getOldData(p.key),promise:null,errorText:this.getHiddenValidatorsErrorText(P)};return this.executeAction("onRowValidating",fe),(0,xe.z7)((0,xe.Sx)(fe.promise)).always(()=>{e.isValid=fe.isValid,e.errorText=fe.errorText,n.resolve(fe)}),n.promise()}getHiddenValidatorsErrorText(e){var t=[];return(0,E.__)(e,(n,p)=>{var{column:P}=p,J=P&&void 0!==P.groupIndex&&!P.showWhenGrouped,fe=P&&P.visible;!p.validator.$element().parent().length&&(!fe||J)&&t.push(p.message)}),t.join(", ")}validate(e){var t=!0,n=this._editingController,p=new xe.cY,P=[],J=n.getEditMode();if(e=e||J===$d,this._isValidationInProgress)return p.resolve(!1).promise();if(this._isValidationInProgress=!0,e){n.addDeferred(p);var fe=n.getChanges();(0,E.__)(fe,(Ue,Ze)=>{var{type:Ft,key:vi}=Ze;if("remove"!==Ft){var Li=this._getValidationData(vi,!0),tn=this.validateGroup(Li);P.push(tn),tn.done(On=>{Li.validated=!0,t=t&&On.isValid})}})}else if(this._currentCellValidator){var ke=this.validateGroup(this._currentCellValidator._findGroup());P.push(ke),ke.done(Ue=>{t=Ue.isValid})}return(0,xe.z7)(...P).done(()=>{this._isValidationInProgress=!1,p.resolve(t)}),p.promise()}validateGroup(e){var p,t=new xe.cY,n=e&&cl.A.getGroupConfig(e);return n?.validators.length&&(this.resetRowValidationResults(e),p=cl.A.validateGroup(e)),(0,xe.z7)(p?.complete||p).done(P=>{(0,xe.z7)(this._rowValidating(e,P)).done(t.resolve)}),t.promise()}isRowDataModified(e){return!(0,m.RI)(e.data)}updateValidationState(e){var t=this._editingController.getEditMode(),{key:n}=e,p=this._getValidationData(n,!0);if(Cg.includes(t))p.isValid=!0;else{if(e.type===Yu&&!this.isRowDataModified(e))return void(p.isValid=!0);if(this.setDisableApplyValidationResults(!0),cl.A.getGroupConfig(p)){var J=cl.A.validateGroup(p);(0,xe.z7)(J.complete||J).done(fe=>{p.isValid=fe.isValid,p.brokenRules=fe.brokenRules})}else(!p.brokenRules||!p.brokenRules.length)&&(p.isValid=!0);this.setDisableApplyValidationResults(!1)}}setValidator(e){this._currentCellValidator=e}renderCellPendingIndicator(e){var t=e.find(".".concat(mc));if(!t.length){var n=e;t=(0,j.A)("<div>").appendTo(n).addClass(mc),this._createComponent(t,ec.A),e.addClass(ju)}}disposeCellPendingIndicator(e){var t=e.find(".".concat(mc));if(t.length){var n=ec.A.getInstance(t);n&&(n.dispose(),n.$element().remove()),e.removeClass(ju)}}validationStatusChanged(e){var{validator:t}=e,n=t.option("validationGroup"),{column:p}=t.option("dataGetter")();this.updateCellValidationResult({rowKey:n.key,columnIndex:p.index,validationResult:e})}validatorInitialized(e){e.component.on("validating",this.validationStatusChanged.bind(this)),e.component.on("validated",this.validationStatusChanged.bind(this))}validatorDisposing(e){var t=e.component,n=t.option("validationGroup"),{column:p}=t.option("dataGetter")(),P=this.getCellValidationResult({rowKey:n?.key,columnIndex:p.index});Gf(P)&&"pending"===P.status&&this.cancelCellValidationResult({change:n,columnIndex:p.index})}applyValidationResult(e,t){var{validator:n}=t,p=n.option("validationGroup"),{column:P}=n.option("dataGetter")();if(t.brokenRules&&t.brokenRules.forEach(Ze=>{Ze.columnIndex=P.index,Ze.column=P}),e){var J=this.getCellValidationResult({rowKey:p.key,columnIndex:P.index}),fe=Gf(J)&&J.disabledPendingId===t.id;if(this._disableApplyValidationResults||fe)return;if("invalid"===t.status){var ke=e.find(":focus");(0,Yd.in)(ke)||(_.A.trigger(ke,"focus"),_.A.trigger(ke,pe.A.down))}var Ue=!P.editCellTemplate&&this._editorFactoryController.getEditorInstance(e);"pending"===t.status?Ue?Ue.option("validationStatus","pending"):this.renderCellPendingIndicator(e):Ue?Ue.option("validationStatus","valid"):this.disposeCellPendingIndicator(e),e.toggleClass(this.addWidgetPrefix(dh),"invalid"===t.status)}}_syncInternalEditingData(e){var t,n=this._editingController,p=n.getChangeByKey(e.key),P=n._getOldData(e.key),J=null===(t=e.row)||void 0===t?void 0:t.oldData;p&&J&&!P&&n._addInternalData({key:e.key,oldData:J})}createValidator(e,t){var n,p,P,J=this._editingController,{column:fe}=e,{showEditorAlways:ke}=fe;if(!(0,m.O9)(fe.command)&&fe.validationRules&&Array.isArray(fe.validationRules)&&fe.validationRules.length){var Ze=J.getIndexByKey(e.key,J.getChanges())>-1;if(!Ze){ke||(ke=((null===(n=this._columnsController)||void 0===n?void 0:n.getVisibleColumns())||[]).some(Es=>Es.showEditorAlways));var vi=(0,s.RL)(this.option("editing.editRowKey"),e.key),Li=J.isCellOrBatchEditMode()&&J.allowUpdating({row:e.row});Ze=vi||Li&&ke,Li&&ke&&J._addInternalData({key:e.key,oldData:null!==(P=null===(p=e.row)||void 0===p?void 0:p.oldData)&&void 0!==P?P:e.data})}if(Ze){if(t&&!t.length)return void Et.A.log("E1050");this._syncInternalEditingData(e);var tn=this._getValidationData(e.key,!0),On=()=>{var Es=J.getChangeByKey(tn?.key),ul=fe.calculateCellValue(Es?.data||{});return void 0!==ul?ul:e.value},Qn=t&&t.hasClass("dx-widget");t&&t.addClass(this.addWidgetPrefix(op));var zr=new pu.A(t||(0,j.A)("<div>"),{name:fe.caption,validationRules:(0,o.X)(!0,[],fe.validationRules),validationGroup:tn,adapter:Qn?null:{getValue:On,applyValidationResults:Es=>{this.applyValidationResult(t,Es)}},dataGetter(){var Es=tn?.key,ul=J.getChangeByKey(Es),Fd=J._getOldData(Es);return{data:(0,ea.lj)(Fd,ul?.data),column:fe}},onInitialized:this.validatorInitialized.bind(this),onDisposing:this.validatorDisposing.bind(this)});if(Qn){var la=zr.option("adapter");if(la){var qo=la.bypass,Xl=()=>e.row.isNewRow&&!this._isValidationInProgress&&!J.isCellModified(e);la.getValue=On,la.validationRequestsCallbacks=[],la.bypass=()=>qo.call(la)||Xl()}}return zr}}}setDisableApplyValidationResults(e){this._disableApplyValidationResults=e}getDisableApplyValidationResults(){return this._disableApplyValidationResults}isCurrentValidatorProcessing(e){var{rowKey:t,columnIndex:n}=e;return this._currentCellValidator&&(0,s.RL)(this._currentCellValidator.option("validationGroup").key,t)&&this._currentCellValidator.option("dataGetter")().column.index===n}validateCell(e){var t={rowKey:e.option("validationGroup").key,columnIndex:e.option("dataGetter")().column.index,validationResult:null},n=this.getCellValidationResult(t),p=Gf(n),P=e.option("adapter");if(p){var J=P.getValue();(0,s.RL)(J,n.value)||(n=e.validate())}else n=e.validate();var fe=new xe.cY;return p&&"pending"===n.status&&(this.updateCellValidationResult(t),P.applyValidationResults(n)),(0,xe.z7)(n.complete||n).done(ke=>{p&&P.applyValidationResults(ke),fe.resolve(ke)}),fe.promise()}updateCellValidationResult(e){var{rowKey:t,columnIndex:n,validationResult:p}=e,P=this._getValidationData(t);if(P){var J;if(P.validationResults||(P.validationResults={}),p){if(J=(0,o.X)({},p),P.validationResults[n]=J,"pending"===p.status&&(this._editingController.getEditMode()===dd&&(J.deferred=new xe.cY,J.complete.always(()=>{J.deferred.resolve()}),this._editingController.addDeferred(J.deferred)),this._disableApplyValidationResults))return void(J.disabledPendingId=p.id)}else J=P.validationResults[n];J&&J.disabledPendingId&&delete J.disabledPendingId}}getCellValidationResult(e){var p,{rowKey:t,columnIndex:n}=e,P=this._getValidationData(t,!0);return null===(p=P?.validationResults)||void 0===p?void 0:p[n]}removeCellValidationResult(e){var{change:t,columnIndex:n}=e,p=this._getValidationData(t?.key);p&&p.validationResults&&(this.cancelCellValidationResult({change:t,columnIndex:n}),delete p.validationResults[n])}cancelCellValidationResult(e){var{change:t,columnIndex:n}=e,p=this._getValidationData(t.key);if(t&&p.validationResults){var P=p.validationResults[n];P&&(P.deferred&&P.deferred.reject(Hp),p.validationResults[n]=Hp)}}resetRowValidationResults(e){e&&(e.validationResults&&delete e.validationResults,delete e.validated)}isInvalidCell(e){var{rowKey:t,columnIndex:n}=e,p=this.getCellValidationResult({rowKey:t,columnIndex:n});return Gf(p)&&"invalid"===p.status}getCellValidator(e){var{rowKey:t,columnIndex:n}=e,p=this._getValidationData(t),P=p&&cl.A.getGroupConfig(p),J=P&&P.validators;return J&&J.filter(fe=>{var{column:ke}=fe.option("dataGetter")();return!!ke&&ke.index===n})[0]}setCellValidationStatus(e){var t=this.getCellValidationResult({rowKey:e.key,columnIndex:e.column.index});(0,m.O9)(t)?e.validationStatus=t!==Hp?t.status:Hp:delete e.validationStatus}}},extenders:{controllers:{editing:V=>class extends V{processDataItemTreeListHack(e){super.processDataItem.apply(this,arguments)}processItemsTreeListHack(e,t){return super.processItems.apply(this,arguments)}_addChange(e){var t=super._addChange.apply(this,arguments);return t&&"remove"!==e.type&&this._validatingController.updateValidationState(t),t}_handleChangesChange(e){super._handleChangesChange.apply(this,arguments),e.value.forEach(t=>{void 0===this._validatingController._getValidationData(t.key)&&this._validatingController.updateValidationState(t)})}_updateRowAndPageIndices(){var e=this,t=e.getView("rowsView").getTopVisibleItemIndex(),n=t;(0,E.__)(e.getChanges(),(p,P)=>{var{key:J,type:fe}=P,ke=this._validatingController._getValidationData(J);ke&&!ke.isValid&&ke.pageIndex!==e._pageIndex&&(ke.pageIndex=e._pageIndex,ke.rowIndex=fe===Yu?t:n,n++)})}_getValidationGroupsInForm(e){return{validationGroup:this._validatingController._getValidationData(e.key,!0)}}_validateEditFormAfterUpdate(e,t){t&&this._editForm&&this._editForm.validate(),super._validateEditFormAfterUpdate.apply(this,arguments)}_prepareEditCell(e){var t=super._prepareEditCell.apply(this,arguments);return t&&e.column.showEditorAlways&&this._validatingController.updateValidationState({key:e.key}),t}processItems(e,t){var n=this.getChanges(),p=(J,fe)=>{var ke=-1,Ue=J.type===Yu,{key:Ze}=J;return(0,E.__)(fe,(Ft,vi)=>{if((0,s.RL)(Ze,Ue?vi.key:this._dataController.keyOf(vi)))return ke=Ft,!1}),ke},P=(e=super.processItems(e,t)).length;return this.getEditMode()===$m&&"prepend"!==t&&"append"!==t&&n.forEach(J=>{var{key:fe}=J,ke=this._validatingController._getValidationData(fe);ke&&J.type&&ke.pageIndex===this._pageIndex&&J?.pageIndex!==this._pageIndex&&function(Ue,Ze){var Ft={key:Ue.key};if(!(p(Ue,e)>=0)){Ze.rowIndex=Ze.rowIndex>P?Ze.rowIndex%P:Ze.rowIndex;var{rowIndex:Li}=Ze;Ft[ff]=1,e.splice(Li,0,Ft)}}(J,ke)}),e}processDataItem(e){var t=e.data[ff],n=t?e.data.key:e.key;if(this.getEditMode()===$m&&t&&n){var P=this.getChanges(),J=Ui.A.getIndexByKey(n,P);if(J>=0){var fe=P[J];if(fe.type!==Yu){var ke=this._getOldData(fe.key);e.data=(0,o.X)(!0,{},ke,fe.data),e.key=n}}}super.processDataItem.apply(this,arguments)}_createInvisibleColumnValidators(e){var t=this,n=this._columnsController.getColumns(),p=this._columnsController.getInvisibleColumns().filter(ke=>!ke.isBand),P=this._columnsController.getGroupColumns().filter(ke=>!ke.showWhenGrouped&&-1===p.indexOf(ke)),J=[],fe=(ke,Ue)=>this._dataController.getRowIndexByKey(Ue)>=0&&p.indexOf(ke)<0;return p.push(...P),Cg.includes(this.getEditMode())||(0,E.__)(n,(ke,Ue)=>{e.forEach(Ze=>{var Ft;if(!fe(Ue,Ze.key)){if(Ze.type===Yu)Ft=Ze.data;else if("update"===Ze.type){var vi=t._getOldData(Ze.key);if(!(0,m.O9)(vi))return;Ft=(0,ea.lj)(vi,Ze.data)}if(Ft){var Li=this._validatingController.createValidator({column:Ue,key:Ze.key,value:Ue.calculateCellValue(Ft)});Li&&J.push(Li)}}})}),function(){J.forEach(ke=>{ke.dispose()})}}_beforeSaveEditData(e,t){var n=super._beforeSaveEditData.apply(this,arguments),p=this._validatingController._getValidationData(e?.key);if(e)n=n||!("remove"===e.type||p.isValid);else{var J=this._createInvisibleColumnValidators(this.getChanges());n=new xe.cY,this.executeOperation(n,()=>{this._validatingController.validate(!0).done(fe=>{switch(J(),this._updateRowAndPageIndices(),this.getEditMode()){case dd:fe||this._focusEditingCell();break;case $m:fe||(this._resetEditRowKey(),this._resetEditColumnName(),this._dataController.updateItems())}n.resolve(!fe)})})}return n.promise?n.promise():n}_beforeEditCell(e,t,n){var p=super._beforeEditCell(e,t,n);if(this.getEditMode()===dd){var P=this._rowsView._getCellElement(e,t),J=P&&P.data("dxValidator"),fe=P&&P.closest(".dx-row").data("options"),ke=J&&J.option("adapter").getValue();if(J&&Km(ke,fe)){var Ue=new xe.cY;return(0,xe.z7)(this._validatingController.validateCell(J),p).done((Ze,Ft)=>{Ue.resolve("valid"===Ze.status&&Ft)}),Ue.promise()}if(!J)return p}return!1}_afterSaveEditData(e){var t,n=this.getEditMode()===dd;if((0,E.__)(this.getChanges(),(Ue,Ze)=>{var Ft=this._showErrorRow(Ze);t=t||Ft}),t){var p=this._rowsView.getScrollable();p&&(p.update(),p.scrollToElement(t))}if(e&&n&&this._needUpdateRow()){var P=this.getEditRowIndex();this._dataController.updateItems({changeType:"update",rowIndices:[P]}),this._focusEditingCell()}else if(!e){var J=!0;n&&(J=!(this._columnsController.getColumns().filter(Ue=>{var Ze;return Ue.showEditorAlways&&(null===(Ze=Ue.validationRules)||void 0===Ze?void 0:Ze.length)>0}).length>0)),J&&this._validatingController.initValidationState()}}_handleDataChanged(e){var t=this._validatingController._validationState;"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===e.changeType&&(0,E.__)(t,(n,p)=>{p.rowIndex+=e.items.length}),super._handleDataChanged(e)}resetRowAndPageIndices(){(0,E.__)(this._validatingController._validationState,(t,n)=>{n.pageIndex!==this._pageIndex&&(delete n.pageIndex,delete n.rowIndex)})}_beforeCancelEditData(){this._validatingController.initValidationState(),super._beforeCancelEditData()}_showErrorRow(e){var t,n=this._dataController.items(),p=this.getIndexByKey(e.key,n),P=this._validatingController._getValidationData(e.key);if(!P?.isValid&&P?.errorText&&p>=0)return t=this.getPopupContent(),this._errorHandlingController&&this._errorHandlingController.renderErrorRow(P?.errorText,p,t)}updateFieldValue(e){var t=new xe.cY;return this._validatingController.removeCellValidationResult({change:this.getChangeByKey(e.key),columnIndex:e.column.index}),super.updateFieldValue.apply(this,arguments).done(()=>{var n=this._validatingController.getCellValidator({rowKey:e.key,columnIndex:e.column.index});(0,xe.z7)(n&&this._validatingController.validateCell(n)).done(p=>{this._editorFactoryController.refocus(),t.resolve(p)})}),t.promise()}highlightDataCell(e,t){super.highlightDataCell.apply(this,arguments),this._validatingController.setCellValidationStatus(t);var n=!!t.setValue,p=this.isCellModified(t),P=(0,m.O9)(t.validationStatus);if(p&&t.column.setCellValue||n&&!p&&!t.row.isNewRow&&P){var fe=e.data("dxValidator");fe&&(0,xe.z7)(this._validatingController.validateCell(fe)).done(()=>{this._validatingController.setCellValidationStatus(t)})}}getChangeByKey(e){var t=this.getChanges();return t[Ui.A.getIndexByKey(e,t)]}isCellModified(e){var t=super.isCellModified(e),n=this.getChangeByKey(e.key),p=!!e.row&&this._validatingController.isInvalidCell({rowKey:e.key,columnIndex:e.column.index});return t||this._validatingController._rowIsValidated(n)&&p}},editorFactory:V=>class extends V{_showRevertButton(e){var t,n=null===(t=this._revertTooltip)||void 0===t?void 0:t.$element();if(!e||!e.length)return n?.remove(),void(this._revertTooltip=void 0);if(!e.find(n).length){var p=e.closest(".".concat(this.addWidgetPrefix(Hf))).parent(),P=this.addWidgetPrefix(Dl);n?.remove(),n=(0,j.A)("<div>").addClass(P).appendTo(e);var J={animation:null,visible:!0,width:"auto",height:"auto",shading:!1,container:p,propagateOutsideClick:!0,hideOnOutsideClick:!1,wrapperAttr:{class:P},contentTemplate:()=>{var fe=(0,j.A)("<div>").addClass("dx-revert-button"),ke={icon:"revert",hint:this.option("editing.texts.validationCancelChanges"),elementAttr:{id:Wu,"aria-label":v.A.format("dxDataGrid-ariaRevertButton")},onClick:()=>{this._editingController.cancelEditData()}};return new Le.A(fe,ke).$element()},position:{my:"left top",at:"right top",offset:"1 0",collision:"flip",boundaryOffset:"0 0",boundary:this._rowsView.element(),of:e},onPositioned:this._positionedHandler.bind(this)};this._revertTooltip=new ts.A(n,J)}}_hideFixedGroupCell(e,t){var n,p,P=this._rowsView.isFixedColumns(),J=this._editingController.isFormOrPopupEditMode();if(P&&!J){var fe=e.closest(".dx-row").next().data("options");fe&&"group"===fe.rowType&&(n=(0,j.A)(this._rowsView.getRowElement(fe.rowIndex)).last(),(p=n.find(".".concat("dx-group-cell"))).length&&"hidden"!==p.get(0).style.visibility&&(p.css("visibility","hidden"),t.onDisposing=function(){p.css("visibility","")}))}}_positionedHandler(e,t){if(!e.component.__skipPositionProcessing){var n=(0,j.A)(e.element).hasClass(this.addWidgetPrefix(Dl)),p=!n&&this._rowsView.updateFreeSpaceRowHeight(),P=this._normalizeValidationMessagePositionAndMaxWidth(e,n,t);e.component.__skipPositionProcessing=!(!p&&!P),P?e.component.option(P):p&&e.component.repaint()}}_showValidationMessage(e,t,n){var p,P=e.find(".dx-dropdowneditor-overlay").data("dxPopup"),J=P&&P.option("visible"),fe=J?"top right":"top ".concat(n),ke=J?"top left":"bottom ".concat(n),Ze=(null===(p=this._columnsController.getFixedColumns())||void 0===p?void 0:p.length)>0?this.getView("rowsView").element():e.closest(".".concat(this.addWidgetPrefix(Hf))),Ft="";t&&t.forEach(On=>{Ft+=(Ft.length?"<br/>":"")+(0,wo.o4)(On)});var vi=this.addWidgetPrefix(Ts);this._rowsView.element().find(".".concat(vi)).remove();var Li=(0,j.A)("<div>").addClass(Oc).addClass(bl).addClass(vi).html(Ft).appendTo(e),tn={container:Ze,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,hideOnOutsideClick:!1,wrapperAttr:{id:ys,class:"".concat(Oc," ").concat(bl," ").concat(vi)},position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",offset:{x:0,y:!J&&ye.A.mozilla?-1:0},my:fe,at:ke,of:e},onPositioned:On=>{this._positionedHandler(On,J),this._shiftValidationMessageIfNeed(On.component.$content(),e)}};this._hideFixedGroupCell(e,tn),new ts.A(Li,tn)}_hideValidationMessage(){var e,t=null===(e=this._rowsView.element())||void 0===e?void 0:e.find(this._getValidationMessagesSelector());t?.remove()}_normalizeValidationMessagePositionAndMaxWidth(e,t,n){var p=this._columnsController.getFixedColumns();if(p&&p.length){var P,J=!t&&function(V,e){var t=(0,j.A)(e).closest("tr").index(),n=(0,j.A)(V._rowsView.getRowElement(t)).first().children().filter(":not(.dx-hidden-cell)");return V._rowsView._getWidths(n).reduce((p,P)=>p+P,0)}(this,e.element),fe=e.component.$content(),ke=(0,R.Ot)(fe,!0),Ue=!t&&ke>J,Ze=this._rowsView.getCellIndex((0,j.A)(e.element).closest("td")),Ft=function(V){var e,t;return V.some((n,p)=>{if("transparent"===n.command)return e=0===p?-1:p,t=p===V.length-1?-1:p+n.colspan-1,!0}),{startColumnIndex:e,endColumnIndex:t}}(p);return t||Ze!==Ft.startColumnIndex&&!Ue?Ze===Ft.endColumnIndex&&(P={collision:"none flip",my:"top right",at:t||n?"top left":"bottom right"},t&&(P.offset="-1 0")):P={collision:"none flip",my:"top left",at:n?"top right":"bottom left"},P&&{position:P,maxWidth:Ue?J-2:void 0}}}_shiftValidationMessageIfNeed(e,t){var n=this._revertTooltip&&this._revertTooltip.$content();if(n){var p=e.offset(),P=n.offset();if(p.top===P.top&&p.left+(0,R.RG)(e)>P.left){var J=(0,R.RG)(n)+2;e.css("left",P.left<t.offset().left?-J:J)}}}_getRevertTooltipsSelector(){var e=this.addWidgetPrefix(Dl);return".dx-editor-cell .".concat(e)}_getValidationMessagesSelector(){var e=this.addWidgetPrefix(Ts);return".dx-editor-cell .".concat(e,", .dx-cell-modified .").concat(e)}loseFocus(e){e||this._validatingController.setValidator(null),super.loseFocus()}updateCellState(e,t,n){var p,P=e?.closest(this._getFocusCellSelector()),J=P?.is("td")?P:null,fe=P?.closest(".dx-row").data("options"),ke=fe?this._editingController.getChangeByKey(fe.key):null,Ue=J&&this._columnsController.getVisibleColumns()[J.index()],Ze=void 0!==(null===(p=ke?.data)||void 0===p?void 0:p[Ue?.name])&&!this._editingController.isSaving(),Ft=[];if(this._editingController.getEditMode()===dd&&("invalid"===t?.status||Ze?(this._showRevertButton(P),Ft.push(Wu)):this._revertTooltip&&this._revertTooltip.$element().remove()),t&&"invalid"===t.status&&J&&Ue&&t&&t.brokenRules){var Li=[];t.brokenRules.forEach(tn=>{tn.message&&Li.push(tn.message)}),Li.length&&(this._showValidationMessage(P,Li,Ue.alignment||"left"),Ft.push(ys))}this._updateAriaValidationAttributes(P,Ft),!n&&this._rowsView.element()&&this._rowsView.updateFreeSpaceRowHeight()}_updateAriaValidationAttributes(e,t){if(0!==t.length){var n=this._editingController.getEditMode();if([dd,$m,$d].includes(n)){var P=this._getCurrentFocusElement(e);P.attr("aria-labelledby",t.join(" ")),P.attr("aria-invalid",!0)}}}_getCurrentFocusElement(e){return this._editingController.isEditing()?e.find(Th).first():e}focus(e,t){if(!arguments.length)return super.focus();if(this._hideValidationMessage(),e?.hasClass("dx-row")||e?.hasClass("dx-master-detail-cell"))return super.focus(e,t);var fe,n=e?.closest(this._getFocusCellSelector()),p=n&&(n.data("dxValidator")||e.find(".".concat(this.addWidgetPrefix(op))).eq(0).data("dxValidator")),P=n&&n.closest(".dx-row").data("options"),J=P?this._editingController.getChangeByKey(P.key):null;if(p){this._validatingController.setValidator(p);var ke=p.option("adapter").getValue();if(Km(ke,P)||this._validatingController._rowIsValidated(J))return this._editingController.waitForDeferredOperations().done(()=>{!this._rowsView.isElementInside(e)||(0,xe.z7)(this._validatingController.validateCell(p)).done(Ze=>{fe=Ze;var{column:Ft}=fe.validator.option("dataGetter")();J&&Ft&&!this._validatingController.isCurrentValidatorProcessing({rowKey:J.key,columnIndex:Ft.index})||(!(0,fn.Ft)((0,fn.ss)())&&"invalid"===fe.status&&(t=!0),this.updateCellState(e,fe,t),super.focus.call(this,e,t))})}),super.focus(e,t)}return this.updateCellState(e,fe,t),super.focus(e,t)}getEditorInstance(e){var t=e.find(".dx-texteditor").eq(0);return Ui.A.getWidgetInstance(t)}},data:V=>class extends V{_getValidationStatus(e){return(Gf(e)?e.status:e)||"valid"}_isCellChanged(e,t,n,p,P){var J,fe,ke=null===(J=e.cells)||void 0===J?void 0:J[p],Ue=this._getValidationStatus({status:ke?.validationStatus}),Ze=this._validatingController.getCellValidationResult({rowKey:e.key,columnIndex:p}),Ft=this._validatingController._getValidationData(e.key),vi=this._getValidationStatus(Ze),Li=JSON.stringify(t.modifiedValues)!==JSON.stringify(e.modifiedValues),tn=Ue!==vi&&Li,On=(0,j.A)(ke?.cellElement).hasClass(this.addWidgetPrefix(dh)),Qn=null===(fe=ke?.column.validationRules)||void 0===fe?void 0:fe.length;return!!(e.isEditing!==t.isEditing&&Qn||tn||Ft.isValid&&On)||super._isCellChanged.apply(this,arguments)}}},views:{rowsView:V=>class extends V{updateFreeSpaceRowHeight(e){var t,n,p,P=this.element(),J=P&&P.find(".".concat(this.addWidgetPrefix(Ts)," .dx-overlay-content"));if(super.updateFreeSpaceRowHeight(e),J&&J.length&&(t=this._getRowElements(),(n=(p=this._getFreeSpaceRowElements(e)).first())&&1===t.length&&(!n.is(":visible")||(0,R.P$)(J)>(0,R.P$)(n))))return p.show(),(0,R.k$)(p,(0,R.P$)(J)),!0}_formItemPrepared(e,t){super._formItemPrepared.apply(this,arguments),(0,s.OX)(()=>{var n=t.find(".dx-widget").first();n.length&&!n.children().length||this._validatingController.createValidator(e,n)})}_cellPrepared(e,t){this._editingController.isFormOrPopupEditMode()||this._validatingController.createValidator(t,e),super._cellPrepared.apply(this,arguments)}_restoreErrorRow(e){this._editingController&&this._editingController.hasChanges()&&this._getRowElements(e).each((t,n)=>{var p=(0,j.A)(n).data("options");if(p){var P=this._editingController.getChangeByKey(p.key);P&&this._editingController._showErrorRow(P)}})}}}}});var p_="scrolling.legacyMode",V_=V=>V.option("scrolling.loadTwoPagesOnStart")||V._controller.isVirtual()||V._controller.getViewportItemIndex()>0,is=V=>V._cache.length?V._cache[0].pageIndex:-1,wm=V=>V._cache.length?V._cache[V._cache.length-1].pageIndex:-1,Ph=(V,e,t)=>{V._isChangedFiring=!0,e(t),V._isChangedFiring=!1},Jm=(V,e,t)=>{if(V._isDelayChanged)return V._isDelayChanged=!1,Ph(V,e,t),!0},Up=(V,e)=>{var t=V.option("scrolling.preloadEnabled"),n=(V=>{var e=V._dataOptions.pageSize();if(V.option("scrolling.preventPreload"))return 0;var n=V._controller.viewportSize();if(V._controller.isVirtualMode()&&V.option("scrolling.removeInvisiblePages")){n=0;for(var p=V._controller.viewportSize()*V._controller.viewportItemSize(),P=V._controller.getContentOffset(),J=V._controller.getViewportPosition(),fe=V._controller.virtualItemsCount(),ke=V._dataOptions.totalItemsCount(),Ue=fe.begin;Ue<ke&&!(P>=J+p);Ue++)(P+=V._controller.getItemSizes()[Ue]||V._controller.viewportItemSize())>=J&&n++}return e&&n>0?Math.ceil(n/e):1})(V),p=V._controller.isAppendMode();return n&&(e?n=t?1:0:(t&&n++,(p||!V_(V))&&n--)),n},vv=(V,e,t,n,p)=>{var P=V._dataOptions,J=P.items().slice(),fe=(0,m.Gv)(t)?t:void 0,ke="prepend"===t,Ue=P.viewportItems();t&&(0,m.Kg)(t)&&!V._isDelayChanged&&(fe={changeType:t,items:J},p&&(fe.removeCount=p.itemsCount,fe.removeCount&&P.correctCount&&(fe.removeCount=P.correctCount(Ue,fe.removeCount,ke))));var Ze=p?p.itemsLength:0;Ze&&P.correctCount&&(Ze=P.correctCount(Ue,Ze,ke)),"append"===t?(Ue.push.apply(Ue,J),p&&Ue.splice(0,Ze)):ke?(Ue.unshift.apply(Ue,J),p&&Ue.splice(-Ze)):V._dataOptions.viewportItems(J),P.updateLoading(),V._lastPageIndex=V.pageIndex(),V._isDelayChanged=n,n||Ph(V,e,fe)};class gf{constructor(e,t){this._dataOptions=t,this._controller=e,this._pageIndex=this._lastPageIndex=t.pageIndex(),this._cache=[],this._loadingPageIndexes={}}option(){return this._controller.option.apply(this._controller,arguments)}viewportItemIndexChanged(e){var fe,t=this._dataOptions.pageSize(),n=this._dataOptions.pageCount(),p=this._controller.isVirtualMode(),P=this._controller.isAppendMode(),J=this._dataOptions.totalItemsCount();if(t&&(p||P)&&J>=0){var ke=this._controller.viewportSize();if(ke&&e+ke>=J&&!this._controller.isVirtual())if(this._dataOptions.hasKnownLastPage()){var Ue=J%t;(fe=n-1)>0&&Ue>0&&Ue<ke&&fe--}else fe=n;else{fe=Math.floor(e/t);var Ze=n-1;fe=Math.max(fe,0),fe=Math.min(fe,Ze)}return this.pageIndex(fe),this.load()}}pageIndex(e){var t=this._controller.isVirtualMode(),n=this._controller.isAppendMode();return!1!==this.option(p_)&&(t||n)?(void 0!==e&&(this._pageIndex=e),this._pageIndex):this._dataOptions.pageIndex(e)}beginPageIndex(e){var t=is(this);return t<0&&(t=void 0!==e?e:this.pageIndex()),t}endPageIndex(){var e=wm(this);return e>0?e:this._lastPageIndex}pageSize(){return this._dataOptions.pageSize()}load(){var t,e=this._dataOptions,n=this._controller.isVirtualMode(),p=this._controller.isAppendMode();if(!1!==this.option(p_)&&(n||p)){var P=(V=>{var e=-1,t=is(V),n=V._dataOptions;return t<0?e=V._pageIndex:V._cache[V._pageIndex-t]?t>=0&&V._controller.viewportSize()>=0&&(t>0&&(wm(V)+1===n.pageCount()&&V._cache.length<Up(V)+1||V._pageIndex===t&&Up(V,!0))&&(e=t-1),e<0&&t+V._cache.length<=V._pageIndex+Up(V)&&(e=t+V._cache.length)):e=V._pageIndex,V._loadingPageIndexes[e]&&(e=-1),e})(this);if(P>=0){var J=((V,e)=>{var t=V._dataOptions;if(e===V.pageIndex()||!t.isLoading()&&e<t.pageCount()||!t.hasKnownLastPage()&&e===t.pageCount())return t.pageIndex(e),V._loadingPageIndexes[e]=!0,(0,xe.z7)(t.load()).always(()=>{V._loadingPageIndexes[e]=!1})})(this,P);J&&(t=new xe.cY,J.done(()=>{var fe=this._delayDeferred;fe?fe.done(t.resolve).fail(t.reject):t.resolve()}).fail(t.reject),e.updateLoading())}}else t=e.load();return!t&&this._lastPageIndex!==this.pageIndex()&&this._dataOptions.onChanged({changeType:"pageIndex"}),t||(new xe.cY).resolve()}loadIfNeed(){var e=this._controller.isVirtualMode(),t=this._controller.isAppendMode();if((e||t)&&!this._dataOptions.isLoading()&&(!this._isChangedFiring||this._controller.isVirtual())){var n=this._controller.getViewportPosition();n>0?this._controller._setViewportPositionCore(n):this.load()}}handleDataChanged(e,t){var P,J,n=this._dataOptions,p=this._cache.length,fe=this._controller.isVirtualMode(),ke=this._controller.isAppendMode();if(t&&t.changes)Ph(this,e,t);else if(!1!==this.option(p_)&&(fe||ke)){var Ue=is(this);if(Ue>=0&&(fe&&Ue+this._cache.length!==n.pageIndex()&&Ue-1!==n.pageIndex()&&(p=0,this._cache=[]),ke))if(0===n.pageIndex())this._cache=[];else if(n.pageIndex()<wm(this))return void Ph(this,e,{changeType:"append",items:[]});var Ft,Ze={pageIndex:n.pageIndex(),itemsLength:n.items(!0).length,itemsCount:this.itemsCount(!0)};this.option("scrolling.removeInvisiblePages")&&fe?J=this._cache.length>Math.max(Up(this)+(this.option("scrolling.preloadEnabled")?1:0),2):Jm(this,e,{isDelayed:!0}),Ue===n.pageIndex()+1?(J&&(Ft=this._cache.pop()),P="prepend",this._cache.unshift(Ze)):(J&&(Ft=this._cache.shift()),P="append",this._cache.push(Ze));var vi=fe&&0===p&&V_(this);vv(this,e,this._cache.length>1?P:void 0,vi,Ft),this._delayDeferred=this.load().done(()=>{Jm(this,e)&&this.load()})}else vv(this,e,t)}getDelayDeferred(){return this._delayDeferred}itemsCount(e){var t=0,n=this._controller.isVirtualMode();return!e&&n?this._cache.forEach(p=>{t+=p.itemsCount}):t=this._dataOptions.itemsCount(),t}virtualItemsCount(){var e=is(this);e<0&&(e=this._dataOptions.pageIndex());var t=e*this._dataOptions.pageSize(),n=this._cache.length*this._dataOptions.pageSize();return{begin:t,end:Math.max(0,this._dataOptions.totalItemsCount()-n-t)}}reset(){this._loadingPageIndexes={},this._cache=[]}}var f_="virtual",_f="scrolling.legacyMode",bv=V=>V.option("scrolling.mode")===f_||V._isVirtual;function yv(V,e,t){var n,p=[],P=[],J=[];function fe(Ft){var vi=Ft.element?Ft.$element():Ft,Li=Da.A.offset(vi);return Li?Ft.scrollTop()-(Li.top-V.offset().top):V.offset().top}var Ft,vi,ke={on(Ft,vi,Li){Ft.on("scroll",Li)},off(Ft,vi,Li){Ft.off("scroll",Li)}};function Ue(Ft){var vi="#document"===Ft.get(0).nodeName,Li=Ft.get(0).nodeType===(0,Ie.zk)().Node.ELEMENT_NODE,tn=Ft.data("dxScrollable"),On=ke;if(tn||(tn=vi&&(0,j.A)((0,Ie.zk)())||Li&&"auto"===Ft.css("overflowY")&&Ft,On=_.A,tn)){var Qn=function(zr){return function(){var la=zr.scrollTop()-fe(zr);e(la=la>0?la:0)}}(tn);On.on(tn,"scroll",Qn),P.push(zr=>{var la=fe(tn);zr-la>=0&&tn[tn.scrollTo?"scrollTo":"scrollTop"](zr+la)}),p.push(tn),J.push(()=>{On.off(tn,"scroll",Qn)})}}for(n=(t=t||V).parent();n.length;void 0,n=(0,j.A)(null!==(vi=(Ft=n).get(0).parentNode)&&void 0!==vi?vi:Ft.get(0).host))Ue(n);return{scrollTo(Ft){(0,E.__)(P,(vi,Li)=>{Li(Ft)})},dispose(){(0,E.__)(J,(Ft,vi)=>{vi()})}}}class Zm{constructor(e,t,n){this._dataOptions=t,this.component=e,this._viewportSize=!1===e.option(_f)?15:0,this._viewportItemSize=20,this._viewportItemIndex=0,this._position=0,this._isScrollingBack=!1,this._contentSize=0,this._itemSizes={},this._sizeRatio=1,this._isVirtual=n,this.positionChanged=(0,Qe.A)(),this._dataLoader=new gf(this,this._dataOptions)}getItemSizes(){return this._itemSizes}option(e,t){return this.component.option.apply(this.component,arguments)}isVirtual(){return this._isVirtual}virtualItemsCount(){if(bv(this)){var e=this._dataOptions,t=e.totalItemsCount();if(!1===this.option(_f)&&-1!==t){var n=this.getViewportParams(),p=e.loadedOffset(),P=e.loadedItemCount(),J=Math.max(n.skip,p),fe=Math.min(n.take,P);return{begin:J,end:Math.max(t-(J+fe),0)}}return this._dataLoader.virtualItemsCount.apply(this._dataLoader,arguments)}}getScrollingTimeout(){var e,t=this.option("scrolling.renderAsync"),n=0;return(0,m.O9)(t)?t&&(n=null!==(e=this.option("scrolling.timeout"))&&void 0!==e?e:0):(n=Math.min(this.option("scrolling.timeout")||0,this._dataOptions.changingDuration()))<this.option("scrolling.renderingThreshold")&&(n=this.option("scrolling.minTimeout")||0),n}setViewportPosition(e){var t=new xe.cY,n=this.getScrollingTimeout();return clearTimeout(this._scrollTimeoutID),n>0?this._scrollTimeoutID=setTimeout(()=>{this._setViewportPositionCore(e),t.resolve()},n):(this._setViewportPositionCore(e),t.resolve()),t.promise()}getViewportPosition(){return this._position}getItemIndexByPosition(e,t,n){e=e??this._position;for(var p=this.getItemSize(),P=0,J=0,fe=Object.keys(this._itemSizes).concat(-1),ke=0;ke<fe.length&&P<e;ke++){var Ue=parseInt(fe[ke]),Ze=(e-P)/p;if(Ue<0||J+Ze<Ue){J+=Ze,this._sizeRatio<1&&(0,m.O9)(t)&&(J=t+n/this._viewportItemSize);break}P+=(Ze=Ue-J)*p,J+=Ze;var Ft=this._itemSizes[Ue];J+=(P+=Ft)<e?1:(e-P+Ft)/Ft}return Math.round(50*J)/50}isScrollingBack(){return this._isScrollingBack}_setViewportPositionCore(e){var t=this._position||0;this._position=e,t!==this._position&&(this._isScrollingBack=this._position<t);var n=this.getItemIndexByPosition(),p=this.setViewportItemIndex(n);return this.positionChanged.fire(),p}setContentItemSizes(e){var t=this.virtualItemsCount();if(this._contentSize=e.reduce((P,J)=>P+J,0),t){e.forEach((P,J)=>{this._itemSizes[t.begin+J]=P});var n=(t.begin+t.end+this.itemsCount())*this._viewportItemSize,p=Ui.A.getContentHeightLimit(ye.A);this._sizeRatio=n>p?p/n:1}}getItemSize(){return this._viewportItemSize*this._sizeRatio}getItemOffset(e,t){var n=this.virtualItemsCount(),p=e;if(!n)return 0;var P=0,J=this._dataOptions.totalItemsCount();return Object.keys(this._itemSizes).forEach(fe=>{p&&(t?fe>=J-e:fe<e)&&(P+=this._itemSizes[fe],p--)}),Math.floor(P+p*this._viewportItemSize*this._sizeRatio)}getContentOffset(e){var t="end"===e,n=this.virtualItemsCount();return n?this.getItemOffset(t?n.end:n.begin,t):0}getVirtualContentSize(){return this.virtualItemsCount()?this.getContentOffset("begin")+this.getContentOffset("end")+this._contentSize:0}getViewportItemIndex(){return this._viewportItemIndex}setViewportItemIndex(e){if(this._viewportItemIndex=e,!1!==this.option(_f))return this._dataLoader.viewportItemIndexChanged.apply(this._dataLoader,arguments)}viewportItemSize(e){return void 0!==e&&(this._viewportItemSize=e),this._viewportItemSize}viewportSize(e){return void 0!==e&&(this._viewportSize=e),this._viewportSize}viewportHeight(e,t){var n=t??this._position,p=this.getItemIndexByPosition(n),P=this.getItemIndexByPosition(n+e,p,e);this.viewportSize(Math.ceil(P-p)),!(0,m.O9)(t)&&this._viewportItemIndex!==p&&this._setViewportPositionCore(n)}reset(e){this._dataLoader.reset(),e||(this._itemSizes={})}subscribeToWindowScrollEvents(e){this._windowScroll=this._windowScroll||yv(e,t=>{this.viewportItemSize()&&this.setViewportPosition(t)})}dispose(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null}scrollTo(e){this._windowScroll&&this._windowScroll.scrollTo(e)}isVirtualMode(){return bv(this)}isAppendMode(){return"infinite"===(V=this).option("scrolling.mode")&&!V._isVirtual;var V}getViewportParams(){var e,t=this.option("scrolling.mode")===f_,n=this._dataOptions.totalItemsCount(),P=this._dataOptions.hasKnownLastPage()&&this._viewportItemIndex>n?n:this._viewportItemIndex,J=this._viewportSize+P,fe=this.option("scrolling.prerenderedRowChunkSize")||1,ke=this.isScrollingBack(),Ue=null!==(e=this.option("scrolling.prerenderedRowCount"))&&void 0!==e?e:1,Ft=ke?0:Ue,vi=Math.floor(Math.max(0,P-(ke?Ue:0))/fe)*fe,Li=Math.ceil((J+Ft-vi)/fe)*fe;if(t){var tn=Math.max(0,n-vi);Li=Math.min(Li,tn)}return{skip:vi,take:Li}}itemsCount(){return this.option(_f)?this._dataLoader.itemsCount.apply(this._dataLoader,arguments):this._dataOptions.itemsCount()}pageIndex(){return this._dataLoader.pageIndex(...arguments)}beginPageIndex(){return this._dataLoader.beginPageIndex(...arguments)}endPageIndex(){return this._dataLoader.endPageIndex(...arguments)}pageSize(){return this._dataLoader.pageSize(...arguments)}load(){return this._dataLoader.load(...arguments)}loadIfNeed(){return this._dataLoader.loadIfNeed(...arguments)}handleDataChanged(){return this._dataLoader.handleDataChanged(...arguments)}getDelayDeferred(){return this._dataLoader.getDelayDeferred()}}var As="bottom-load-panel",H_="dx-freespace-row",sp="dx-virtual-row",Z="scrolling.legacyMode",Oe="paging.pageIndex",Fe=["beginPageIndex","endPageIndex","pageIndex"],Ye=function(V){return"virtual"===V.option("scrolling.mode")},bt=function(V){return"infinite"===V.option("scrolling.mode")},$t=function(V){return Ye(V)||bt(V)},_i=function(V,e,t,n){for(var p=0;p<e+1;p++){var P=V[t?V.length-1-p:p];P&&!n(P,p===e,t)&&e++}return e},Ii=function(V,e){return"data"===V.rowType&&!V.isNewRow||"group"===V.rowType&&e.isGroupItemCountable(V.data)},Yn=function(V){var e=V._virtualScrollController.beginPageIndex(-1);Ye(V)&&(e<0||V.viewportSize()>=0&&V.getViewportItemIndex()>=0&&(e*V.pageSize()>V.getViewportItemIndex()||e*V.pageSize()+V.itemsCount()<V.getViewportItemIndex()+V.viewportSize())&&V._dataSource.isLoading()?V._isLoading||(V._isLoading=!0,V.loadingChanged.fire(!0)):V._isLoading&&(V._isLoading=!1,V.loadingChanged.fire(!1)))},Mr=function(V,e,t){if(!1===V.option(Z)&&Fe.includes(e)){var n=V._dataSource;return n.pageIndex.apply(n,t)}var p=V._virtualScrollController;return p[e].apply(p,t)},ma=function(V,e){var t=V.toArray().map(P=>(0,j.A)(P).parent(".".concat(e)).get(0)).filter(P=>P);t.length&&(V=(0,j.A)(t));for(var n=e===H_?V.length-1:V.length,p=0;p<n;p++)V.eq(p).remove()};En.registerModule("virtualScrolling",{defaultOptions:()=>({scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,prerenderedRowChunkSize:1,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard",loadTwoPagesOnStart:!1,legacyMode:!1,prerenderedRowCount:1}}),extenders:{controllers:{data:V=>class extends V{dispose(){var e=this._rowsScrollController;e&&e.dispose(),super.dispose.apply(this,arguments)}_refreshDataSource(){var e=super._refreshDataSource.apply(this,arguments)||(new xe.cY).resolve().promise();return e.done(this.initVirtualRows.bind(this)),e}_loadDataSource(){var e;if(this._rowsScrollController&&$t(this)){var{loadPageCount:t}=(0,m.O9)(this._loadViewportParams)?this.getLoadPageParams():{loadPageCount:0};t>=1&&(null===(e=this._dataSource)||void 0===e||e.loadPageCount(t))}return super._loadDataSource.apply(this,arguments)}getRowPageSize(){var e=this.option("scrolling.rowPageSize"),t=this.pageSize();return t&&t<e?t:e}reload(){var e=this._rowsScrollController||this._dataSource,t=e&&e.getItemIndexByPosition(),n=super.reload.apply(this,arguments);return n&&n.done(()=>{var p,P;if(Ye(this)||Ui.A.isVirtualRowRendering(this)){var J=this.getRowIndexOffset(),fe=Math.floor(t)-J,{component:ke}=this,Ue=ke.getScrollable&&ke.getScrollable(),Ze=this.dataSource().operationTypes().sorting;if(Ue&&!Ze&&fe>=0){var Ft=ke.getRowElement(fe),vi=Ft&&Ft[0]&&(0,j.A)(Ft[0]),Li=vi&&(null===(p=vi.position())||void 0===p?void 0:p.top),tn=ye.A.chrome&&Number(null!==(P=ye.A.version)&&void 0!==P?P:0)>=91;Li&&Li>(ye.A.mozilla||tn?1:0)&&(Li=Math.round(Li+(0,R.P$)(vi)*(t%1)),Ue.scrollTo({y:Li}))}}})}initVirtualRows(){var e=Ui.A.isVirtualRowRendering(this);if(this._allItems=null,this._loadViewportParams=null,"virtual"!==this.option("scrolling.mode")&&!e||!e||!1!==this.option(Z)&&!this.option("scrolling.rowPageSize"))return this._visibleItems=null,void(this._rowsScrollController=null);var t=!Ye(this)&&this.pageIndex()>=this.pageCount()?this.pageCount()-1:this.pageIndex();this._rowPageIndex=Math.ceil(t*this.pageSize()/this.getRowPageSize()),this._visibleItems=!1===this.option(Z)?null:[],this._viewportChanging=!1,this._needUpdateViewportAfterLoading=!1,this._rowsScrollController||(this._rowsScrollController=new Zm(this.component,this._getRowsScrollDataOptions(),!0),this._rowsScrollController.positionChanged.add(()=>{var n;if(!1===this.option(Z))return this._viewportChanging=!0,this.loadViewport(),void(this._viewportChanging=!1);null===(n=this._dataSource)||void 0===n||n.setViewportItemIndex(this._rowsScrollController.getViewportItemIndex())})),!1===this.option(Z)&&this._updateLoadViewportParams(),this.isLoaded()&&!1!==this.option(Z)&&this._rowsScrollController.load()}isViewportChanging(){return this._viewportChanging}_getRowsScrollDataOptions(){var e=this,t=function(n){return Ii(n,e._dataSource)};return{pageSize:()=>e.getRowPageSize(),loadedOffset(){var n;return Ye(e)&&(null===(n=e._dataSource)||void 0===n?void 0:n.lastLoadOptions().skip)||0},loadedItemCount:()=>e._itemCount,totalItemsCount:()=>$t(e)?e.totalItemsCount():!1===e.option(Z)?e._itemCount:e._items.filter(t).length,hasKnownLastPage:()=>!1!==e.option(Z)||e.hasKnownLastPage(),pageIndex:n=>(void 0!==n&&(e._rowPageIndex=n),e._rowPageIndex),isLoading:()=>e.isLoading(),pageCount(){return Math.ceil(this.totalItemsCount()/this.pageSize())||1},load(){e._rowsScrollController.pageIndex()>=this.pageCount()&&(e._rowPageIndex=this.pageCount()-1,e._rowsScrollController.pageIndex(e._rowPageIndex)),(this.items().length||!this.totalItemsCount())&&e._rowsScrollController.handleDataChanged(n=>{(n=n||{}).changeType=n.changeType||"refresh",n.items=n.items||e._visibleItems,e._visibleItems.forEach((p,P)=>{p.rowIndex=P}),e._fireChanged(n)})},updateLoading(){},itemsCount(){return this.items(!0).length},correctCount:(n,p,P)=>_i(n,p,P,(J,fe,ke)=>J.isNewRow?fe&&!ke:fe&&ke?!J.isNewRow:t(J)),items(n){var p=e._items;if(e.option(Z)){var P=e.dataSource(),J=P?.virtualItemsCount(),fe=J?J.begin:0,ke=e.getRowPageSize(),Ue=e._rowPageIndex*ke-fe,Ze=ke;if(Ue<0)return[];Ue&&(Ue=this.correctCount(p,Ue),p=p.slice(Ue)),Ze&&(Ze=this.correctCount(p,Ze),p=p.slice(0,Ze))}return n?p.filter(t):p},viewportItems:n=>(n&&!1!==e.option(Z)&&(e._visibleItems=n),e._visibleItems),onChanged(){},changingDuration(){var n=e.dataSource();return n?.isLoading()&&!1!==e.option(Z)?300:n?._renderTime||0}}}_updateItemsCore(e){var t=this.getRowIndexDelta();if(super._updateItemsCore.apply(this,arguments),!1===this.option(Z)&&Ui.A.isVirtualRowRendering(this))"update"===e.changeType&&0===e.rowIndices.length&&e.cancelEmptyChanges&&(e.cancel=!0);else{var n=this._rowsScrollController;if(n){var p=this._visibleItems,P="refresh"===e.changeType||e.isLiveUpdate;if("append"===e.changeType&&e.items&&!e.items.length)return;P||"append"===e.changeType||"prepend"===e.changeType?(e.cancel=!0,P&&n.reset(!0),n.load()):("update"===e.changeType?e.rowIndices.forEach((J,fe)=>{var ke=e.changeTypes[fe],Ue=e.items[fe];"update"===ke?p[J]=Ue:"insert"===ke?p.splice(J,0,Ue):"remove"===ke&&p.splice(J,1)}):(p.forEach((J,fe)=>{p[fe]=this._items[fe+t]||p[fe]}),e.items=p),function(V){V.forEach((e,t)=>{e.rowIndex=t})}(p))}}}_updateLoadViewportParams(){var e=this._rowsScrollController.getViewportParams(),t=this.pageSize();if(e&&!$t(this)&&t>0){var n=this.pageIndex()*t;e.skip+=n}this._loadViewportParams=e}_processItems(){var e,t=super._processItems.apply(this,arguments);if(!1===this.option(Z)){var P,J,fe,n=this._dataSource,p=null!==(e=n?.lastLoadOptions().skip)&&void 0!==e?e:0,ke=!1,Ue=[];t.forEach(Ze=>{var{rowType:Ft}=Ze,vi=Ii(Ze,n),Li="group"===Ft&&(P||vi||"group"!==J&&p>0),tn="data"===Ft&&vi&&(P||"group"!==J);!Ze.isNewRow&&(0,m.O9)(P)&&(Li||tn)&&(!fe||ke)&&p++,(Li||tn)&&(ke=!0),Ze.isNewRow?Ue.push(Ze):(Ue.forEach(Qn=>{Qn.loadIndex=p}),Ue=[]),Ze.loadIndex=p,P=vi,J=Ft,fe=Ze.isNewRow}),Ue.forEach(Ze=>{Ze.loadIndex=p})}return t}_afterProcessItems(e){if(this._itemCount=e.filter(J=>Ii(J,this._dataSource)).length,(0,m.O9)(this._loadViewportParams)){this._updateLoadViewportParams();var t=e;if(this._allItems=e,e.length){var{skipForCurrentPage:n}=this.getLoadPageParams(!0),p=e[0].loadIndex+n,{take:P}=this._loadViewportParams;t=e.filter(J=>J.loadIndex>=p&&(J.loadIndex<p+P||J.isNewRow&&J.loadIndex===p&&0===P))}return t}return super._afterProcessItems.apply(this,arguments)}_applyChange(e){var t=this,{items:n}=e,{changeType:p}=e,{removeCount:P}=e;switch(P&&(P=_i(t._items,P,"prepend"===p,(fe,ke)=>"data"===fe.rowType&&!fe.isNewRow||"group"===fe.rowType&&(t._dataSource.isGroupItemCountable(fe.data)||ke)),e.removeCount=P),p){case"prepend":t._items.unshift.apply(t._items,n),P&&t._items.splice(-P);break;case"append":t._items.push.apply(t._items,n),P&&t._items.splice(0,P);break;default:super._applyChange(e)}}items(e){return e?this._allItems||this._items:this._visibleItems||this._items}getRowIndexDelta(){var e=0;if(this.option(Z)){var t=this._visibleItems;t&&t[0]&&(e=this._items.indexOf(t[0]))}return e<0?0:e}getRowIndexOffset(e,t){var n,p,P=0,J=this.dataSource(),fe=this._rowsScrollController,ke=!1===this.option(Z),Ue=$t(this);if(fe&&!e)if(ke&&(0,m.O9)(this._loadViewportParams)){var{skipForCurrentPage:Ze,pageIndex:Ft}=this.getLoadPageParams(!0),vi=this.items(!0);if(P=Ue?Ft*this.pageSize():0,vi.length){var Li=vi[0].loadIndex;P+=vi.filter(On=>On.loadIndex<Li+Ze).length}}else P=fe.beginPageIndex()*fe.pageSize();else if(Ue&&ke&&J){var tn=J.lastLoadOptions();P=t&&null!==(n=tn.skips)&&void 0!==n&&n.length?tn.skips.reduce((On,Qn)=>On+Qn,0):null!==(p=tn.skip)&&void 0!==p?p:0}else Ye(this)&&J&&(P=J.beginPageIndex()*J.pageSize());return P}getDataIndex(){return!1===this.option(Z)?this.getRowIndexOffset(!0,!0):super.getDataIndex.apply(this,arguments)}viewportSize(){var e=this._rowsScrollController,t=this._dataSource,n=e?.viewportSize.apply(e,arguments);return!1===this.option(Z)?n:t?.viewportSize.apply(t,arguments)}viewportHeight(e,t){var n;null===(n=this._rowsScrollController)||void 0===n||n.viewportHeight(e,t)}viewportItemSize(){var e=this._rowsScrollController,t=this._dataSource,n=e?.viewportItemSize.apply(e,arguments);return!1===this.option(Z)?n:t?.viewportItemSize.apply(t,arguments)}setViewportPosition(){var e=this._rowsScrollController,t=this._dataSource;this._isPaging=!1,e?e.setViewportPosition.apply(e,arguments):t?.setViewportPosition.apply(t,arguments)}setContentItemSizes(e){var t=this._rowsScrollController,n=this._dataSource,p=t?.setContentItemSizes(e);return!1===this.option(Z)?p:n?.setContentItemSizes(e)}getPreloadedRowCount(){var e=this.option("scrolling.preloadedRowCount"),t=this.option("scrolling.preloadEnabled");if((0,m.O9)(e))return e;var n=this.viewportSize();return t?2*n:n}getLoadPageParams(e){var t,n,p=this.pageSize(),P=this._loadViewportParams,J=null===(t=this._dataSource)||void 0===t?void 0:t.lastLoadOptions(),fe=J?.pageIndex||0,ke=J?.take||0,Ue=this._rowsScrollController.isScrollingBack(),Ze=Ue?this.getPreloadedRowCount():0,Ft=Ue?0:this.getPreloadedRowCount(),vi=(null===(n=this._dataSource)||void 0===n?void 0:n.totalCountCorrection())||0,Li=Math.max(0,P.skip-Ze),tn=e?fe:Math.floor(p?Li/p:0),Qn=P.skip-tn*p,qo=Math.ceil(p?(e?ke:P.take+Qn+Ft-vi)/p:0);return{pageIndex:tn,loadPageCount:Math.max(1,qo),skipForCurrentPage:Math.max(0,Qn)}}_updateVisiblePageIndex(e){if(this._rowsScrollController){if((0,m.O9)(e))return this._silentOption(Oe,e),void this.pageChanged.fire();var t=this._rowsScrollController.getViewportItemIndex(),n=Math.floor(t/this.pageSize());this.pageIndex()!==n&&(this._silentOption(Oe,n),this.updateItems({changeType:"pageIndex"}))}}_getChangedLoadParams(){var e=this.getLoadPageParams(!0),{pageIndex:t,loadPageCount:n}=this.getLoadPageParams(),p=this._pageIndexIsValid(t),P=null;return!this._isLoading&&p&&(t!==e.pageIndex||n!==e.loadPageCount)&&(P={pageIndex:t,loadPageCount:n}),P}_pageIndexIsValid(e){var t=!0;return(bt(this)&&this.hasKnownLastPage()||Ye(this))&&(t=e*this.pageSize()<this.totalItemsCount()),t}_loadItems(e,t){var n,p,P=$t(this),J=this._dataSource,fe=this._getChangedLoadParams(),ke=null!==(n=J?.loadPageCount())&&void 0!==n?n:0,Ue=this.pageSize()*ke,Ze=null!==(p=J?.pageIndex())&&void 0!==p?p:0,Ft=fe?.pageIndex===Ze,vi=bt(this)&&this.totalItemsCount()<Ue,Li="repaint"===this.option("editing.refreshMode"),On=!1;if(!J||P&&e&&(Li&&t||fe?.pageIndex>Ze||Ft&&vi))return On;if(P&&this._isLoading&&(this._needUpdateViewportAfterLoading=!0),P&&fe){On=!0,J.pageIndex(fe.pageIndex),J.loadPageCount(fe.loadPageCount),this._repaintChangesOnly=!0,this._needUpdateDimensions=!0;var Qn=this._viewportChanging;this.load().always(()=>{this._repaintChangesOnly=void 0,this._needUpdateDimensions=void 0}).done(()=>{var zr=this.pageCount()>0&&this.pageIndex()===this.pageCount()-1;(Qn||zr)&&this._updateVisiblePageIndex(),this._needUpdateViewportAfterLoading&&(this._needUpdateViewportAfterLoading=!1,this.loadViewport({checkLoadedParamsOnly:!0}))})}return On}loadViewport(e){var t,n,p,{checkLoadedParamsOnly:P,checkLoading:J,viewportIsNotFilled:fe}=e??{};if($t(this)||Ui.A.isVirtualRowRendering(this)){this._updateLoadViewportParams();var Ue=this._loadItems(J,!fe),Ze=null===(t=this._dataSource)||void 0===t?void 0:t.isCustomLoading();if(!(Ue||J&&!Ze&&this._isLoading||P)){var Li=!(null!==(p=null===(n=this._editingController)||void 0===n?void 0:n.getChanges())&&void 0!==p&&p.length);this.updateItems({repaintChangesOnly:!0,needUpdateDimensions:!0,useProcessedItemsCache:Li,cancelEmptyChanges:!0})}}}updateViewport(){var e,t,n=this.viewportSize(),p=this.items().length,P=n>p,J=null!==(t=null===(e=this._loadViewportParams)||void 0===e?void 0:e.take)&&void 0!==t?t:0,fe=this._rowsScrollController,ke=fe?.getViewportParams().take;(P||J<ke)&&!this._isPaging&&p&&this.loadViewport({checkLoading:!0,viewportIsNotFilled:P})}loadIfNeed(){if(!1!==this.option(Z)){var e=this._rowsScrollController;e&&e.loadIfNeed();var t=this._dataSource;return t&&t.loadIfNeed()}}getItemSize(){var e=this._rowsScrollController;if(e)return e.getItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSize.apply(t,arguments)}getItemSizes(){var e=this._rowsScrollController;if(e)return e.getItemSizes.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSizes.apply(t,arguments)}getContentOffset(){var e=this._rowsScrollController;if(e)return e.getContentOffset.apply(e,arguments);var t=this._dataSource;return t&&t.getContentOffset.apply(t,arguments)}refresh(e){var t=this._dataSource;return t&&e&&e.load&&bt(this)&&t.resetCurrentTotalCount(),super.refresh.apply(this,arguments)}topItemIndex(){var e;return null===(e=this._loadViewportParams)||void 0===e?void 0:e.skip}bottomItemIndex(){var e=this._loadViewportParams;return e&&e.skip+e.take}virtualItemsCount(){var e=this._rowsScrollController;if(e)return e.virtualItemsCount.apply(e,arguments);var t=this._dataSource;return t?.virtualItemsCount.apply(t,arguments)}pageIndex(e){var t,n=$t(this),p=this._rowsScrollController;return!1===this.option(Z)&&n&&p&&void 0===e?null!==(t=this.option(Oe))&&void 0!==t?t:0:super.pageIndex.apply(this,arguments)}_fireChanged(e){super._fireChanged.apply(this,arguments);var{operationTypes:t}=e;if(!1===this.option(Z)&&$t(this)&&t){var{fullReload:n,pageIndex:p}=t;e.isDataChanged&&!n&&p&&this._updateVisiblePageIndex(this._dataSource.pageIndex())}}_getPagingOptionValue(e){var t=super._getPagingOptionValue.apply(this,arguments);return!1===this.option(Z)&&$t(this)&&(t=this[e]()),t}isEmpty(){return!1===this.option(Z)?!this.items(!0).length:super.isEmpty.apply(this,arguments)}isLastPageLoaded(){var e=!1;if(!1===this.option(Z)&&$t(this)){var{pageIndex:t,loadPageCount:n}=this.getLoadPageParams(!0);e=t+n>=this.pageCount()}else e=super.isLastPageLoaded.apply(this,arguments);return e}reset(){this._itemCount=0,this._allItems=null,super.reset.apply(this,arguments)}_applyFilter(){var e;return null===(e=this._dataSource)||void 0===e||e.loadPageCount(1),super._applyFilter.apply(this,arguments)}getVirtualContentSize(){var e;return null===(e=this._dataSource)||void 0===e?void 0:e.getVirtualContentSize.apply(this._dataSource,arguments)}setViewportItemIndex(){var e;return null===(e=this._dataSource)||void 0===e?void 0:e.setViewportItemIndex.apply(this._dataSource,arguments)}},resizing:V=>class extends V{dispose(){super.dispose.apply(this,arguments),clearTimeout(this._resizeTimeout)}_updateMasterDataGridCore(e){return(0,xe.z7)(super._updateMasterDataGridCore.apply(this,arguments)).done(t=>{var n=Ye(e)&&!1===e.option(Z);!t&&n&&e.getScrollable()&&e.updateDimensions()})}hasResizeTimeout(){return!!this._resizeTimeout}resize(){var e;if(Ye(this)||Ui.A.isVirtualRowRendering(this)){clearTimeout(this._resizeTimeout),this._resizeTimeout=null;var t=new Date-this._lastTime,n=this.option("scrolling.updateTimeout");this._lastTime&&t<n?(e=new xe.cY,this._resizeTimeout=setTimeout(()=>{this._resizeTimeout=null,super.resize.apply(this).done(e.resolve).fail(e.reject),this._lastTime=new Date},n),this._lastTime=new Date):(e=super.resize.apply(this),this._dataController.isLoaded()&&(this._lastTime=new Date))}else e=super.resize.apply(this);return e}}},views:{rowsView:V=>class extends V{init(){var e;super.init(),this._dataController.pageChanged.add(t=>{var n=this._scrollTop;this.scrollToPage(t??this._dataController.pageIndex()),!1===this.option(Z)&&this._scrollTop===n&&this._dataController.updateViewport()}),this._dataController.dataSourceChanged.add(()=>{!this._scrollTop&&this._scrollToCurrentPageOnResize()}),null===(e=this._dataController.stateLoaded)||void 0===e||e.add(()=>{this._scrollToCurrentPageOnResize()}),this._scrollToCurrentPageOnResize()}dispose(){clearTimeout(this._scrollTimeoutID),super.dispose()}_scrollToCurrentPageOnResize(){if(this._dataController.pageIndex()>0){var e=()=>{this.resizeCompleted.remove(e),this.scrollToPage(this._dataController.pageIndex())};this.resizeCompleted.add(e)}}scrollToPage(e){var n,t=this._dataController?this._dataController.pageSize():0;if(Ye(this)||bt(this)){var p=this._dataController.getItemSize(),P=this._dataController.getItemSizes(),J=e*t;for(var fe in n=J*p,P)parseInt(fe)<J&&(n+=P[fe]-p)}else n=0;this.scrollTo({y:n,x:this._scrollLeft})}renderDelayedTemplates(){this.waitAsyncTemplates().done(()=>{this._updateContentPosition(!0)}),super.renderDelayedTemplates.apply(this,arguments)}_renderCore(e){var t=new Date,n=super._renderCore.apply(this,arguments),p=this._dataController._dataSource;if(p&&e){var P=e.items?e.items.length:20,J=this._dataController.viewportSize()||20;p._renderTime=Ui.A.isVirtualRowRendering(this)&&P>0&&!1!==this.option(Z)?(new Date-t)*J/P:new Date-t}return n}_getRowElements(e){var t=super._getRowElements(e);return t&&t.not(".".concat(sp))}_removeRowsElements(e,t,n){var p=this._getRowElements(e).toArray();(p="append"===n?p.slice(0,t):p.slice(-t)).map(P=>{var J=(0,j.A)(P);this._errorHandlingController&&this._errorHandlingController.removeErrorRow(J.next()),J.remove()})}_updateContent(e,t){var n,p=this._findContentElement(),P=t&&t.changeType,J=(0,xe.cY)(),fe=p.children().first();return"append"===P||"prepend"===P?this.waitAsyncTemplates().done(()=>{var ke=this._getBodies(e);1===ke.length?this._getBodies(fe)["append"===P?"append":"prepend"](ke.children()):ke["append"===P?"appendTo":"prependTo"](fe),e.remove(),n=this._getFreeSpaceRowElements(fe),ma(n,H_),t.removeCount&&this._removeRowsElements(fe,t.removeCount,P),this._restoreErrorRow(fe),J.resolve()}).fail(J.reject):super._updateContent.apply(this,arguments).done(()=>{"update"===P&&this._restoreErrorRow(fe),J.resolve()}).fail(J.reject),J.promise().done(()=>{this._updateBottomLoading()})}_addVirtualRow(e,t,n,p){if(p){var P=this._createEmptyRow(sp,t,p);P=this._wrapRowIfNeed(e,P),this._appendEmptyRow(e,P,n)}}_updateContentItemSizes(){var e=this._getRowHeights(),t=this._correctRowHeights(e);this._dataController.setContentItemSizes(t)}_updateViewportSize(e,t){(0,m.O9)(e)||(e=(0,R.P$)(this._hasHeight?this.element():(0,Ie.zk)())),this._dataController.viewportHeight(e,t)}_getRowHeights(){var e,t,n=null===(t=null===(e=this._editingController)||void 0===e?void 0:e.isPopupEditMode)||void 0===t?void 0:t.call(e),p=this._getRowElements(this._tableElement).toArray();return n&&(p=p.filter(P=>!(0,j.A)(P).hasClass("dx-row-inserted"))),p.map(P=>(0,ge.N)(P).height)}_correctRowHeights(e){for(var t=this._dataController,n=t._dataSource,p=[],P=t.getVisibleRows(),J=0,fe=!0,ke=-1,Ue=0;Ue<e.length;Ue++){var Ze=P[Ue];(0,m.O9)(Ze)&&(!1===this.option(Z)?(ke>=0&&ke!==Ze.loadIndex&&(p.push(J),J=0),ke=Ze.loadIndex):Ii(Ze,n)&&(fe?fe=!1:(p.push(J),J=0)),J+=e[Ue])}return J>0&&p.push(J),p}_updateContentPosition(e){if(this._dataController.viewportItemSize(this._rowHeight||20),Ye(this)||Ui.A.isVirtualRowRendering(this)){e||this._updateContentItemSizes();var n=this._dataController.getContentOffset("begin"),p=this._dataController.getContentOffset("end"),P=this.getTableElements(),J=P.children("tbody").children(".".concat(sp));ma(J,sp),P.each((fe,ke)=>{var Ue=fe>0,Ze=this._isFixedTableRendering;this._isFixedTableRendering=Ue,this._addVirtualRow((0,j.A)(ke),Ue,"top",n),this._addVirtualRow((0,j.A)(ke),Ue,"bottom",p),this._isFixedTableRendering=Ze})}}_isTableLinesDisplaysCorrect(e){return e.find(".".concat("dx-column-lines")).length>0===this.option("showColumnLines")}_isColumnElementsEqual(e,t){var n=e.length===t.length;return n&&(0,E.__)(e,(p,P)=>{if(P.style.width!==t[p].style.width)return n=!1}),n}_getCellClasses(e){var t=[],{cssClass:n}=e,p="expand"===e.command;return n&&t.push(n),p&&t.push(this.addWidgetPrefix("group-space")),t}_findBottomLoadPanel(e){var t=e||this.element(),n=t&&t.find(".".concat(this.addWidgetPrefix(As)));if(n&&n.length)return n}_updateBottomLoading(){var e=Ye(this),t=bt(this),n=!this._dataController.hasKnownLastPage()&&this._dataController.isLoaded()&&(e||t),p=this._findContentElement(),P=this._findBottomLoadPanel(p);n?P||(0,j.A)("<div>").addClass(this.addWidgetPrefix(As)).append(this._createComponent((0,j.A)("<div>"),ec.A).$element()).appendTo(p):P&&P.remove()}_handleScroll(e){var t=!0===this.option(Z);(this._scrollTop!==e.scrollOffset.top||e.forceUpdateScrollPosition)&&(this._hasHeight||!t&&0===e.scrollOffset.top)&&this._rowHeight&&(this._scrollTop=e.scrollOffset.top,(Ye(this)||"standard"!==this.option("scrolling.rowRenderingMode"))&&!1===this.option(Z)&&(this._updateContentItemSizes(),this._updateViewportSize(null,this._scrollTop)),this._dataController.setViewportPosition(e.scrollOffset.top)),super._handleScroll.apply(this,arguments)}_needUpdateRowHeight(e){return super._needUpdateRowHeight.apply(this,arguments)||e>0&&bt(this)&&!Ui.A.isVirtualRowRendering(this)}_updateRowHeight(){if(super._updateRowHeight.apply(this,arguments),this._rowHeight){this._updateContentPosition();var e=(0,R.P$)(this._hasHeight?this.element():(0,Ie.zk)());!1===this.option(Z)?(this._updateViewportSize(e),this._dataController.updateViewport()):this._dataController.viewportSize(Math.ceil(e/this._rowHeight))}}updateFreeSpaceRowHeight(){var e=super.updateFreeSpaceRowHeight.apply(this,arguments);return e&&this._updateContentPosition(),e}setLoading(e,t){var n=this._dataController,p=n.pageIndex()>0&&n.isLoaded()&&!!this._findBottomLoadPanel();!1===this.option(Z)&&e&&n.isViewportChanging()||(p&&(e=!1),super.setLoading.call(this,e,t))}throwHeightWarningIfNeed(){void 0!==this._hasHeight&&!this._hasHeight&&$t(this)&&!this._heightWarningIsThrown&&(this._heightWarningIsThrown=!0,Et.A.log("W1025"))}_resizeCore(){var e=this,t=e.element();super._resizeCore(),this.throwHeightWarningIfNeed(),e.component.$element()&&!e._windowScroll&&(0,rr.A1)(t)&&(e._windowScroll=yv(t,n=>{!e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(n)},e.component.$element()),e.on("disposing",()=>{e._windowScroll.dispose()})),!1!==this.option(Z)&&e.loadIfNeed()}loadIfNeed(){var e,t;null===(t=null===(e=this._dataController)||void 0===e?void 0:e.loadIfNeed)||void 0===t||t.call(e)}_restoreErrorRow(e){var t;!1===this.option(Z)&&(null===(t=this._errorHandlingController)||void 0===t||t.removeErrorRow()),super._restoreErrorRow.apply(this,arguments)}}}}}),su.extend(V=>class extends V{init(){super.init.apply(this,arguments),this._items=[],this._totalCount=-1,this._isLoaded=!0,this._loadPageCount=1,this._virtualScrollController=new Zm(this.component,this._getVirtualScrollDataOptions())}dispose(){this._virtualScrollController.dispose(),super.dispose.apply(this,arguments)}_getVirtualScrollDataOptions(){var e=this;return{pageSize:()=>e.pageSize(),totalItemsCount:()=>e.totalItemsCount(),hasKnownLastPage:()=>e.hasKnownLastPage(),pageIndex:t=>e._dataSource.pageIndex(t),isLoading:()=>e._dataSource.isLoading()&&!e.isCustomLoading(),pageCount:()=>e.pageCount(),load:()=>e._dataSource.load(),updateLoading(){Yn(e)},itemsCount:()=>e.itemsCount(!0),items:()=>e._dataSource.items(),viewportItems:t=>(t&&(e._items=t),e._items),onChanged(t){e.changed.fire(t)},changingDuration:()=>e.isLoading()?300:e._renderTime||0}}_handleLoadingChanged(e){!1!==this.option(Z)?((!Ye(this)||this._isLoadingAll)&&(this._isLoading=e,super._handleLoadingChanged.apply(this,arguments)),this._startLoadTime=e?new Date:void 0):super._handleLoadingChanged.apply(this,arguments)}_handleLoadError(){!1!==this.option(Z)&&(this._isLoading=!1,this.loadingChanged.fire(!1)),super._handleLoadError.apply(this,arguments)}_handleDataChanged(e){if(!1===this.option(Z))return this._items=this._dataSource.items().slice(),this._totalCount=this._dataSourceTotalCount(!0),void super._handleDataChanged.apply(this,arguments);var t=super._handleDataChanged.bind(this);this._virtualScrollController.handleDataChanged(t,e)}_customizeRemoteOperations(e,t){var n=!1===this.option(Z),p=this.option("scrolling.renderAsync");(0,m.O9)(p)||(p=this._renderTime>=this.option("scrolling.renderingThreshold")),(Ye(this)||bt(this)&&n)&&!t.reload&&(t.skip||n)&&!p&&(e.delay=void 0),super._customizeRemoteOperations.apply(this,arguments)}items(){return this._items}_dataSourceTotalCount(e){return!1===this.option(Z)&&Ye(this)&&!e?this._totalCount:super._dataSourceTotalCount()}itemsCount(e){return e||!1===this.option(Z)?super.itemsCount():this._virtualScrollController.itemsCount()}load(e){return!1===this.option(Z)||e?super.load(e):this._virtualScrollController.load()}isLoading(){return!1===this.option(Z)?this._dataSource.isLoading():this._isLoading}isLoaded(){return this._dataSource.isLoaded()&&this._isLoaded}resetPagesCache(e){e||this._virtualScrollController.reset(!0),super.resetPagesCache.apply(this,arguments)}_changeRowExpandCore(){var e=super._changeRowExpandCore.apply(this,arguments);return!1===this.option(Z)||(this.resetPagesCache(),Yn(this)),e}reload(){this._dataSource.pageIndex(this.pageIndex());var e=this._virtualScrollController;if(!1!==this.option(Z)&&e){var t=new xe.cY;return super.reload.apply(this,arguments).done(n=>{var p=e.getDelayDeferred();p?p.done(t.resolve).fail(t.reject):t.resolve(n)}).fail(t.reject),t}return super.reload.apply(this,arguments)}refresh(e,t){if(!1!==this.option(Z)){var{storeLoadOptions:n}=e,p=this._dataSource;t.reload?(this._virtualScrollController.reset(),p.items().length=0,this._isLoaded=!1,Yn(this),this._isLoaded=!0,bt(this)?(this.pageIndex(0),p.pageIndex(0),n.pageIndex=0,e.pageIndex=0,n.skip=0):(p.pageIndex(this.pageIndex()),p.paginate()&&(e.pageIndex=this.pageIndex(),n.skip=this.pageIndex()*this.pageSize()))):bt(this)&&n.skip&&this._totalCountCorrection<0&&(n.skip+=this._totalCountCorrection)}return super.refresh.apply(this,arguments)}loadPageCount(e){if(!(0,m.O9)(e))return this._loadPageCount;this._loadPageCount=e}_handleDataLoading(e){var t=this.loadPageCount(),n=this.pageSize(),p=!1===this.option(Z),{storeLoadOptions:P}=e,J=(0,m.O9)(P.take);e.loadPageCount=t,!e.isCustomLoading&&p&&J&&t>1&&n>0&&(P.take=t*n),super._handleDataLoading.apply(this,arguments)}_loadPageSize(){return super._loadPageSize.apply(this,arguments)*this.loadPageCount()}beginPageIndex(){return Mr(this,"beginPageIndex",[...arguments])}endPageIndex(){return Mr(this,"endPageIndex",[...arguments])}pageIndex(e){return Mr(this,"pageIndex",[...arguments])}virtualItemsCount(){return Mr(this,"virtualItemsCount",[...arguments])}getContentOffset(){return Mr(this,"getContentOffset",[...arguments])}getVirtualContentSize(){return Mr(this,"getVirtualContentSize",[...arguments])}setContentItemSizes(){return Mr(this,"setContentItemSizes",[...arguments])}setViewportPosition(){return Mr(this,"setViewportPosition",[...arguments])}getViewportItemIndex(){return Mr(this,"getViewportItemIndex",[...arguments])}setViewportItemIndex(e){return Mr(this,"setViewportItemIndex",[...arguments])}getItemIndexByPosition(){return Mr(this,"getItemIndexByPosition",[...arguments])}viewportSize(){return Mr(this,"viewportSize",[...arguments])}viewportItemSize(){return Mr(this,"viewportItemSize",[...arguments])}getItemSize(){return Mr(this,"getItemSize",[...arguments])}getItemSizes(){return Mr(this,"getItemSizes",[...arguments])}loadIfNeed(){return Mr(this,"loadIfNeed",[...arguments])}});var fu=D(44831),cd=(V,e)=>{var p,t=(0,j.A)((0,Ie.zk)()),{top:n}=V.offset();if((0,m.kf)(e)){if(e<n)return n-e;p=(0,R.yV)(t)-e+t.scrollTop()}else{var P=n-t.scrollTop(),J=(0,R.yV)(t)-P-(0,R.P$)(V);p=Math.max(P,J)}return.9*p},Js=D(14017);const Ld=class Sm extends tu{_getDefaultOptions(){return(0,o.X)(super._getDefaultOptions(),{orientation:"horizontal",tabIndex:null,onHoverStart:s.lQ})}_initDataAdapter(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||super._initDataAdapter()}_renderContentImpl(){this._renderContextMenuOverlay(),super._renderContentImpl();var e=this._dataAdapter.getNodeByKey(this.option("_parentKey"));e&&this._renderItems(this._getChildNodes(e)),this._renderDelimiter()}_renderDelimiter(){this.$contentDelimiter=(0,j.A)("<div>").appendTo(this._itemContainer()).addClass("dx-context-menu-content-delimiter")}_getOverlayOptions(){return(0,o.X)(!0,super._getOverlayOptions(),{onPositioned:this._overlayPositionedActionHandler.bind(this),position:{precise:!0}})}_overlayPositionedActionHandler(e){this._showDelimiter(e)}_hoverEndHandler(e){super._hoverEndHandler(e),this._toggleFocusClass(!1,e.currentTarget)}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_hoverStartHandler(e){this.option("onHoverStart")(e),super._hoverStartHandler(e),this._toggleFocusClass(!0,e.currentTarget)}_drawSubmenu(e){this._actions.onShowing({rootItem:(0,z.c)(e),submenu:this}),super._drawSubmenu(e),this._actions.onShown({rootItem:(0,z.c)(e),submenu:this})}_hideSubmenu(e){this._actions.onHiding({cancel:!0,rootItem:(0,z.c)(e),submenu:this}),super._hideSubmenu(e),this._actions.onHidden({rootItem:(0,z.c)(e),submenu:this})}_showDelimiter(e){if(this.$contentDelimiter){var t=this._itemContainer().children(".".concat("dx-submenu")).eq(0),n=this.option("position").of.find(".dx-context-menu-container-border"),p={of:t,precise:!0},P=e.position,J=P.v.location,fe=P.h.location,ke=n.offset(),Ue=Math.round(ke.left),Ze=Math.round(ke.top),Ft=(0,R.RG)(n),vi=(0,R.Oq)(n),Li=(0,R.RG)(t),tn=(0,R.Oq)(t);this.$contentDelimiter.css("display","block"),(0,R.zj)(this.$contentDelimiter,this._isMenuHorizontal()?Ft<Li?Ft:Li:3),(0,R.k$)(this.$contentDelimiter,this._isMenuHorizontal()?3:vi<tn?vi:tn),this._isMenuHorizontal()?J>Ze?Math.round(fe)===Ue?(p.offset="0 -2.5",p.at=p.my="left top"):(p.offset="0 -2.5",p.at=p.my="right top"):((0,R.k$)(this.$contentDelimiter,5),Math.round(fe)===Ue?(p.offset="0 5",p.at=p.my="left bottom"):(p.offset="0 5",p.at=p.my="right bottom")):fe>Ue?Math.round(J)===Ze?(p.offset="-2.5 0",p.at=p.my="left top"):(p.offset="-2.5 0",p.at=p.my="left bottom"):Math.round(J)===Ze?(p.offset="2.5 0",p.at=p.my="right top"):(p.offset="2.5 0",p.at=p.my="right bottom"),Da.A.setup(this.$contentDelimiter,p)}}_getContextMenuPosition(){return this.option("position")}isOverlayVisible(){return this._overlay.option("visible")}getOverlayContent(){return this._overlay.$content()}};var ch="dx-menu",$v=ch+"-vertical",U_=ch+"-horizontal",g_=ch+"-item",__=ch+"-items-container",v_=g_+"-expanded",xv="dx-context-menu",jg=xv+"-container-border",$0="dx-state-hover",um=ch+"-adaptive-mode",K0=ch+"-hamburger-button",ZC=um+"-overlay-wrapper",W_="showSubmenu",Jv="nextItem",Yg="prevItem",ty={show:50,hide:300},J0=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged","onItemRendered"];class Qv extends eh{_getDefaultOptions(){return(0,o.X)(super._getDefaultOptions(),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})}_setOptionsByReference(){super._setOptionsByReference(),(0,o.X)(this._optionsByReference,{animation:!0,selectedItem:!0})}_itemElements(){var e=super._itemElements(),t=this._submenuItemElements();return e.add(t)}_submenuItemElements(){var e=[],t=".".concat(g_),n=this._submenus.length&&this._submenus[0];return n&&n.itemsContainer()&&(e=n.itemsContainer().find(t)),e}_focusTarget(){return this.$element()}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_moveFocus(e){var J,ke,t=this._getAvailableItems(),n=this._isMenuHorizontal(),p=this._getActiveItem(!0);switch(e){case"up":J=n?W_:this._getItemsNavigationOperation(Yg),ke=this._getKeyboardNavigationAction(J,n?p:t)();break;case"down":J=n?W_:this._getItemsNavigationOperation(Jv),ke=this._getKeyboardNavigationAction(J,n?p:t)();break;case"right":J=n?this._getItemsNavigationOperation(Jv):W_,ke=this._getKeyboardNavigationAction(J,n?t:p)();break;case"left":J=n?this._getItemsNavigationOperation(Yg):W_,ke=this._getKeyboardNavigationAction(J,n?t:p)();break;default:return super._moveFocus(e)}ke&&0!==ke.length&&this.option("focusedElement",(0,z.c)(ke))}_getItemsNavigationOperation(e){var t=e;return this.option("rtlEnabled")&&(t=e===Yg?Jv:Yg),t}_getKeyboardNavigationAction(e,t){var n=s.lQ;switch(e){case W_:t.hasClass("dx-state-disabled")||(n=this._showSubmenu.bind(this,t));break;case Jv:n=this._nextItem.bind(this,t);break;case Yg:n=this._prevItem.bind(this,t)}return n}_clean(){super._clean(),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)}_visibilityChanged(e){e&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())}_isAdaptivityEnabled(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")}_updateItemsWidthCache(){var e=this.$element().find("ul").first().children("li").children(".".concat(g_));this._menuItemsWidth=this._getSummaryItemsSize("width",e,!0)}_dimensionChanged(){if(this._isAdaptivityEnabled()){var e=(0,R.Ot)(this.$element());this._toggleAdaptiveMode(this._menuItemsWidth>e)}}_init(){super._init(),this._submenus=[]}_initActions(){this._actions={},(0,E.__)(J0,(e,t)=>{this._actions[t]=this._createActionByOption(t)})}_initMarkup(){this._visibleSubmenu=null,this.$element().addClass(ch),super._initMarkup(),this._addCustomCssClass(this.$element()),this.setAria("role","menubar")}_render(){super._render(),this._initAdaptivity()}_renderHamburgerButton(){return this._hamburger=new Le.A((0,j.A)("<div>").addClass(K0),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()}_toggleTreeView(e){(0,m.Qd)(e)&&(e=!this._overlay.option("visible")),this._overlay.option("visible",e),e&&this._treeView.focus(),this._toggleHamburgerActiveState(e)}_toggleHamburgerActiveState(e){this._hamburger&&this._hamburger.$element().toggleClass("dx-state-active",e)}_toggleAdaptiveMode(e){var t=this.$element().find(".".concat(U_)),n=this.$element().find(".".concat(um));e?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(e)),t.toggle(!e),n.toggle(e)}_removeAdaptivity(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)}_treeviewItemClickHandler(e){this._actions.onItemClick(e),e.node.children.length||this._toggleTreeView(!1)}_getAdaptiveOverlayOptions(){var t=this.option("rtlEnabled")?"right":"left";return{_ignoreFunctionValueDeprecation:!0,maxHeight:()=>cd(this.$element()),deferRendering:!1,shading:!1,animation:!1,hideOnParentScroll:!0,onHidden:()=>{this._toggleHamburgerActiveState(!1)},height:"auto",hideOnOutsideClick:n=>!(0,j.A)(n.target).closest(".".concat(K0)).length,position:{collision:"flipfit",at:"bottom "+t,my:"top "+t,of:this._hamburger.$element()}}}_getTreeViewOptions(){var e={};return(0,E.__)(["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],(t,n)=>{e[n]=this.option(n)}),(0,E.__)(["onItemContextMenu","onSelectionChanged","onItemRendered"],(t,n)=>{e[n]=p=>{this._actions[n](p)}}),(0,o.X)(e,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:t=>{this._overlay.repaint(),this._actions.onSubmenuShown(t)},onItemCollapsed:t=>{this._overlay.repaint(),this._actions.onSubmenuHidden(t)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})}_initAdaptivity(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=(0,j.A)("<div>").addClass(um);var e=this._renderHamburgerButton();this._treeView=this._createComponent((0,j.A)("<div>"),Ep,this._getTreeViewOptions()),this._overlay=this._createComponent((0,j.A)("<div>"),ts.A,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(um).addClass(this.option("cssClass")),this._overlay.$wrapper().addClass(ZC),this._$adaptiveContainer.append(e),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}}_getDelay(e){var t=this.option("showFirstSubmenuMode").delay;return(0,m.O9)(t)?(0,m.Gv)(t)?t[e]:t:ty[e]}_keyboardHandler(e){return super._keyboardHandler(e,!!this._visibleSubmenu)}_renderContainer(){var e=(0,j.A)("<div>");return e.appendTo(this.$element()).addClass(this._isMenuHorizontal()?U_:$v),super._renderContainer(e)}_renderSubmenuItems(e,t){var n=this._createSubmenu(e,t);return this._submenus.push(n),this._renderBorderElement(t),n}_getKeyboardListeners(){return super._getKeyboardListeners().concat(this._visibleSubmenu)}_createSubmenu(e,t){var n=(0,j.A)("<div>").addClass(xv).appendTo(t),p=this._getChildNodes(e),P=this._createComponent(n,Ld,(0,o.X)(this._getSubmenuOptions(),{_dataAdapter:this._dataAdapter,_parentKey:e.internalFields.key,items:p,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(t)}));return this._attachSubmenuHandlers(t,P),P}_getSubmenuOptions(){var e=(0,j.A)("<div>"),t=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:e,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:n=>{n.component.option("visible")&&this.option("focusedElement",n.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this._nestedItemOnItemRenderedHandler.bind(this),onLeftFirstItem:t?null:this._moveMainMenuFocus.bind(this,Yg),onLeftLastItem:t?null:this._moveMainMenuFocus.bind(this,Jv),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,t?Yg:null),onExpandLastSubmenu:t?this._moveMainMenuFocus.bind(this,Jv):null}}_getShowFirstSubmenuMode(){if(!this._isDesktopDevice())return"onClick";var e=this.option("showFirstSubmenuMode");return(0,m.Gv)(e)?e.name:e}_moveMainMenuFocus(e){var t=this._getAvailableItems(),n=t.length,p=t.filter(".".concat(v_)).eq(0),P=t.index(p);this._hideSubmenu(this._visibleSubmenu),(P+=e===Yg?-1:1)>=n?P=0:P<0&&(P=n-1);var J=t.eq(P);this.option("focusedElement",(0,z.c)(J))}_nestedItemOnSelectionChangedHandler(e){var t=e.addedItems.length&&e.addedItems[0],n=Ld.getInstance(e.element);(0,this._actions.onSelectionChanged)(e),t&&this._clearSelectionInSubmenus(t[0],n),this._clearRootSelection(),this._setOptionWithoutOptionChange("selectedItem",t)}_clearSelectionInSubmenus(e,t){var n=!arguments.length;(0,E.__)(this._submenus,(p,P)=>{var J=P._itemContainer(),fe=!J.is(t&&t._itemContainer()),ke=J.find(".".concat(this._selectedItemClass()));if(fe&&ke.length||n){ke.removeClass(this._selectedItemClass());var Ue=this._getItemData(ke);Ue&&(Ue.selected=!1),P._clearSelectedItems()}})}_clearRootSelection(){var e=this.$element().find(".".concat(__)).first().children().children().filter(".".concat(this._selectedItemClass()));e.length&&(this._getItemData(e).selected=!1,e.removeClass(this._selectedItemClass()))}_nestedItemOnItemClickHandler(e){this._actions.onItemClick(e)}_nestedItemOnItemRenderedHandler(e){this._actions.onItemRendered(e)}_attachSubmenuHandlers(e,t){var p=t.getOverlayContent().find(".".concat("dx-submenu")),P=(0,h.b4)(Js._,this.NAME+"_submenu");t.option({onShowing:this._submenuOnShowingHandler.bind(this,e,t),onShown:this._submenuOnShownHandler.bind(this,e,t),onHiding:this._submenuOnHidingHandler.bind(this,e,t),onHidden:this._submenuOnHiddenHandler.bind(this,e,t)}),(0,E.__)(p,(J,fe)=>{_.A.off(fe,P),_.A.on(fe,P,null,this._submenuMouseLeaveHandler.bind(this,e))})}_submenuOnShowingHandler(e,t){var n=e.children(".".concat(jg));this._actions.onSubmenuShowing({rootItem:(0,z.c)(e),submenu:t}),n.show(),e.addClass(v_)}_submenuOnShownHandler(e,t){this._actions.onSubmenuShown({rootItem:(0,z.c)(e),submenu:t})}_submenuOnHidingHandler(e,t,n){var p=e.children(".".concat(jg)),P=n;P.rootItem=(0,z.c)(e),P.submenu=t,this._actions.onSubmenuHiding(P),(n=P).cancel||(this._visibleSubmenu===t&&(this._visibleSubmenu=null),p.hide(),e.removeClass(v_))}_submenuOnHiddenHandler(e,t){this._actions.onSubmenuHidden({rootItem:(0,z.c)(e),submenu:t})}_submenuMouseLeaveHandler(e,t){var n=(0,j.A)(t.relatedTarget).parents(".".concat(xv))[0],p=this._getSubmenuByRootElement(e).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&n!==p&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))}_hideSubmenuAfterTimeout(){if(this._visibleSubmenu){var e=(0,j.A)(this._visibleSubmenu.$element().context).hasClass($0),t=this._visibleSubmenu.getOverlayContent().find(".".concat($0)).length;!this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover")&&!t&&!e&&this._visibleSubmenu.hide()}}_getSubmenuByRootElement(e){if(!e)return!1;var t=e.children(".".concat(xv));return t.length&&Ld.getInstance(t)}getSubmenuPosition(e){var t=this._isMenuHorizontal(),n=this.option("submenuDirection").toLowerCase(),p=this.option("rtlEnabled"),P={collision:"flip",of:e,precise:!0};switch(n){case"leftortop":P.at="left top",P.my=t?"left bottom":"right top";break;case"rightorbottom":P.at=t?"left bottom":"right top",P.my="left top";break;default:t?(P.at=p?"right bottom":"left bottom",P.my=p?"right top":"left top"):(P.at=p?"left top":"right top",P.my=p?"right top":"left top")}return P}_renderBorderElement(e){(0,j.A)("<div>").appendTo(e).addClass(jg).hide()}_itemPointerDownHandler(e){(0,j.A)(e.target).closest(this._itemElements()).hasClass("dx-menu-item-has-submenu")?this.option("focusedElement",null):super._itemPointerDownHandler(e)}_hoverStartHandler(e){var t=(0,h.b4)(pe.A.move,this.NAME),n=this._getItemElementByEventArgs(e),p=this._dataAdapter.getNodeByItem(this._getItemData(n)),P=(0,m.O9)(e.buttons)&&1===e.buttons||!(0,m.O9)(e.buttons)&&1===e.which;if(!this._isItemDisabled(n)){if(_.A.off(n,t),!this._hasChildren(p))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!P){var J=this._getSubmenuByElement(n);this._clearTimeouts(),J.isOverlayVisible()||(_.A.on(n,t,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}}_hoverEndHandler(e){var t=this._getItemElementByEventArgs(e),n=(0,j.A)(e.relatedTarget);super._hoverEndHandler(e),this._clearTimeouts(),!this._isItemDisabled(t)&&(n.hasClass("dx-context-menu-content-delimiter")||this.option("hideSubmenuOnMouseLeave")&&!n.hasClass(__)&&(this._hideSubmenuTimer=setTimeout(()=>{this._hideSubmenuAfterTimeout()},this._getDelay("hide"))))}_hideVisibleSubmenu(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)}_showSubmenu(e){var t=this._getSubmenuByElement(e);this._visibleSubmenu!==t&&this._hideVisibleSubmenu(),t&&(this._clearTimeouts(),this.focus(),t.show(),this.option("focusedElement",t.option("focusedElement"))),this._visibleSubmenu=t,this._hoveredRootItem=e}_hideSubmenu(e){e&&e.hide(),this._visibleSubmenu===e&&(this._visibleSubmenu=null),this._hoveredRootItem=null}_itemMouseMoveHandler(e){if(!e.pointers||!e.pointers.length){var t=(0,j.A)(e.currentTarget);(0,m.O9)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout(()=>{var n=this._getSubmenuByElement(t);n&&!n.isOverlayVisible()&&this._showSubmenu(t)},this._getDelay("show")))}}_clearTimeouts(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)}_getSubmenuByElement(e,t){var n=this._getSubmenuByRootElement(e);if(n)return n;t=t||this._getItemData(e);var p=this._dataAdapter.getNodeByItem(t);return this._hasChildren(p)&&this._renderSubmenuItems(p,e)}_updateSubmenuVisibilityOnClick(e){var t=e.args.length&&e.args[0];if(t&&!this._disabledGetter(t.itemData)){var n=(0,j.A)(t.itemElement),p=this._getSubmenuByElement(n,t.itemData);if(this._updateSelectedItemOnClick(e),this._visibleSubmenu){if(this._visibleSubmenu===p)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}if(p&&!p.isOverlayVisible())return void this._showSubmenu(n)}}_optionChanged(e){if(J0.indexOf(e.name)>=0)this._initActions();else switch(e.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(e.name,e.value);break;case"adaptivityEnabled":e.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(e.name,e.value),this._overlay.option(e.name,e.value)),super._optionChanged(e),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!e.value),super._optionChanged(e);break;default:this._isAdaptivityEnabled()&&(e.name===e.fullName||"items"===e.name)&&this._treeView.option(e.fullName,e.value),super._optionChanged(e)}}_changeSubmenusOption(e,t){(0,E.__)(this._submenus,(n,p)=>{p.option(e,t)})}selectItem(e){this._hideSubmenu(this._visibleSubmenu),super.selectItem(e)}unselectItem(e){this._hideSubmenu(this._visibleSubmenu),super.selectItem(e)}}(0,gn.A)("dxMenu",Qv);const tg=Qv;var Z0={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal",default:"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},yx={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},$g="filter-row",q0="filter-range-overlay",Sg="filter-range-start",eb="dx-menu",wv="dx-editor-with-menu",j_="dx-editor-container",Zv="dx-editor-cell",ny="dx-highlight-outline",Cx="dx-focused",Sv="dx-filter-range-content",ry="dx-filter-modified",tb="input:not([type='hidden'])",tw=["date","datetime","number"],ib=v.A.format("dxDataGrid-ariaSearchBox");function b_(V){return"onClick"===V.option("filterRow.applyFilter")}var ay=function(V){var e=V&&V.children(),t=e&&e.data("dxComponents"),n=t&&t.length&&e.data(t[0]);return n instanceof fu.A?n:null},nb=function(V,e){var t="",n="",p=oy(V,e),P=Ui.A.getFormatOptionsByColumn(e,"filterRow");return Array.isArray(p)?(t=Ui.A.formatValue(p[0],P),""!==(n=Ui.A.formatValue(p[1],P))&&(t+=" - ".concat(n))):(0,m.O9)(p)&&(t=Ui.A.formatValue(p,P)),t};function oy(V,e){if(e)return b_(V)&&void 0!==e.bufferedFilterValue?e.bufferedFilterValue:e.filterValue}var hm=function(V,e){if(e)return b_(V)&&void 0!==e.bufferedSelectedFilterOperation?e.bufferedSelectedFilterOperation:e.selectedFilterOperation},Dv=function(V,e,t){var n=V._columnsController.columnOption(e),p=oy(V,n),P=t.closest(".".concat(V.addWidgetPrefix(q0))).length,J=t.hasClass(V.addWidgetPrefix(Sg));return p&&Array.isArray(p)&&"between"===hm(V,n)?J?p[0]:p[1]:!P&&function(V,e){return!(e&&tw.includes(e.dataType)&&Array.isArray(V))&&void 0!==V}(p,n)?p:null};En.registerModule("filterRow",{defaultOptions:()=>({syncLookupFilterValues:!0,filterRow:{visible:!1,showOperationChooser:!0,showAllText:v.A.format("dxDataGrid-filterRowShowAllText"),resetOperationText:v.A.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:v.A.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:v.A.format("dxDataGrid-filterRowOperationEquals"),notEqual:v.A.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:v.A.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:v.A.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:v.A.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:v.A.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:v.A.format("dxDataGrid-filterRowOperationStartsWith"),contains:v.A.format("dxDataGrid-filterRowOperationContains"),notContains:v.A.format("dxDataGrid-filterRowOperationNotContains"),endsWith:v.A.format("dxDataGrid-filterRowOperationEndsWith"),between:v.A.format("dxDataGrid-filterRowOperationBetween"),isBlank:v.A.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:v.A.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:v.A.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:v.A.format("dxDataGrid-filterRowOperationBetweenEndText")}}),controllers:{applyFilter:class Dx extends cn.ViewController{init(){this._columnsController=this.getController("columns")}_getHeaderPanel(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel}setHighLight(e,t){b_(this)&&(e&&e.toggleClass(ny,t)&&e.closest(".".concat(Zv)).toggleClass(ry,t),this._getHeaderPanel().enableApplyButton(t))}applyFilter(){var e=this._columnsController.getColumns();this._columnsController.beginUpdate();for(var t=0;t<e.length;t++){var n=e[t];void 0!==n.bufferedFilterValue&&(this._columnsController.columnOption(t,"filterValue",n.bufferedFilterValue),n.bufferedFilterValue=void 0),void 0!==n.bufferedSelectedFilterOperation&&(this._columnsController.columnOption(t,"selectedFilterOperation",n.bufferedSelectedFilterOperation),n.bufferedSelectedFilterOperation=void 0)}this._columnsController.endUpdate(),this.removeHighLights()}removeHighLights(){if(b_(this)){var e=this.getView("columnHeadersView").element();e.find(".".concat(this.addWidgetPrefix($g)," .").concat(ny)).removeClass(ny),e.find(".".concat(this.addWidgetPrefix($g)," .").concat(ry)).removeClass(ry),this._getHeaderPanel().enableApplyButton(!1)}}setCurrentColumnForFiltering(e){this._currentColumn=e}getCurrentColumnForFiltering(){return this._currentColumn}}},extenders:{controllers:{data:V=>class extends V{skipCalculateColumnFilters(){return!1}_calculateAdditionalFilter(){if(this.skipCalculateColumnFilters())return super._calculateAdditionalFilter();var e=[super._calculateAdditionalFilter()],t=this._columnsController.getVisibleColumns(null,!0),n=this._applyFilterController;return(0,E.__)(t,function(){var p,P=(null===(p=n.getCurrentColumnForFiltering())||void 0===p?void 0:p.index)===this.index;if(this.allowFiltering&&this.calculateFilterExpression&&(0,m.O9)(this.filterValue)&&!P){var J=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");e.push(J)}}),Ui.A.combineFilters(e)}},columnsResizer:V=>class extends V{_startResizing(){if(super._startResizing.apply(this,arguments),this.isResizing()){var e=this._columnHeadersView.getFilterRangeOverlayInstance();if(e){var t=e.$element().closest("td").index();(t===this._targetPoint.columnIndex||t===this._targetPoint.columnIndex+1)&&e.$content().hide()}}}_endResizing(){var e;if(this.isResizing()){var t=this._columnHeadersView.getFilterRangeOverlayInstance();t&&(e=t.$element().closest("td"),this._columnHeadersView._updateFilterRangeOverlay({width:(0,R.Ot)(e,!0)+1}),t.$content().show())}super._endResizing.apply(this,arguments)}},editing:V=>class extends V{updateFieldValue(e){return e.column.lookup&&(this._needUpdateLookupDataSource=!0),super.updateFieldValue.apply(this,arguments)}_afterSaveEditData(e){var t;return this._needUpdateLookupDataSource&&!e&&(null===(t=this.getView("columnHeadersView"))||void 0===t||t.updateLookupDataSource()),this._needUpdateLookupDataSource=!1,super._afterSaveEditData.apply(this,arguments)}_afterCancelEditData(){return this._needUpdateLookupDataSource=!1,super._afterCancelEditData.apply(this,arguments)}}},views:{columnHeadersView:V=>class extends V{init(){super.init(),this._applyFilterViewController=this.getController("applyFilter")}optionChanged(e){switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;case"syncLookupFilterValues":e.value?this.updateLookupDataSource():this.render(),e.handled=!0;break;default:super.optionChanged(e)}}_updateEditorValue(e,t){var n=ay(t);n&&n.option("value",Dv(this,e.index,t))}_columnOptionChanged(e){var t,p,P,J,fe,{optionNames:n}=e;if(Ui.A.checkChanges(n,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","filterValues","filterType"])&&void 0!==e.columnIndex){var ke=this._columnsController.getVisibleIndex(e.columnIndex),Ue=this._columnsController.columnOption(e.columnIndex);if(P=(p=null!==(t=this._getCellElement(this.element().find(".".concat(this.addWidgetPrefix($g))).index(),ke))&&void 0!==t?t:(0,j.A)()).find(".".concat(j_)).first(),n.filterValue||n.bufferedFilterValue){this._updateEditorValue(Ue,P);var Ze=p.find(".".concat(this.addWidgetPrefix(q0))).data("dxOverlay");Ze&&(J=Ze.$content().find(".".concat(j_)),this._updateEditorValue(Ue,J.first()),this._updateEditorValue(Ue,J.last())),(!Ze||!Ze.option("visible"))&&this._updateFilterRangeContent(p,nb(this,Ue))}(n.selectedFilterOperation||n.bufferedSelectedFilterOperation)&&ke>=0&&Ue&&(fe=p.find(".".concat(eb))).length&&(this._updateFilterOperationChooser(fe,Ue,P),"between"===hm(this,Ue)?this._renderFilterRangeContent(p,Ue):P.find(".".concat(Sv)).length&&(this._renderEditor(P,this._getEditorOptions(P,Ue)),this._hideFilterRange()))}else super._columnOptionChanged(e)}_renderCore(){return this._filterRangeOverlayInstance=null,super._renderCore.apply(this,arguments)}_resizeCore(){var e;super._resizeCore.apply(this,arguments),null===(e=this._filterRangeOverlayInstance)||void 0===e||e.repaint()}isFilterRowVisible(){return this._isElementVisible(this.option("filterRow"))}isVisible(){return super.isVisible()||this.isFilterRowVisible()}_initFilterRangeOverlay(e,t){var n=this,p={},P=e.find(".dx-editor-container"),J=n.addWidgetPrefix(q0),fe=(0,j.A)("<div>").addClass(J).appendTo(e);return n._createComponent(fe,ts.A,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,hideOnOutsideClick:!0,wrapperAttr:{class:J},animation:!1,position:{my:"top",at:"top",of:P.length&&P||e,offset:"0 -1"},contentTemplate(ke){var Ue,Ze=(0,j.A)("<div>").addClass("".concat(j_," ").concat(n.addWidgetPrefix(Sg))).appendTo(ke);return t=n._columnsController.columnOption(t.index),(Ue=n._getEditorOptions(Ze,t)).sharedData=p,n._renderEditor(Ze,Ue),_.A.on(Ze.find(tb),"keydown",Ft=>{var vi=e.find("[tabindex]").not(Ft.target).first();"tab"===(0,h.YD)(Ft)&&Ft.shiftKey&&(Ft.preventDefault(),n._hideFilterRange(),vi.length||(vi=e.prev().find("[tabindex]").last()),_.A.trigger(vi,"focus"))}),Ze=(0,j.A)("<div>").addClass("".concat(j_," ").concat(n.addWidgetPrefix("filter-range-end"))).appendTo(ke),(Ue=n._getEditorOptions(Ze,t)).sharedData=p,n._renderEditor(Ze,Ue),_.A.on(Ze.find(tb),"keydown",Ft=>{"tab"===(0,h.YD)(Ft)&&!Ft.shiftKey&&(Ft.preventDefault(),n._hideFilterRange(),_.A.trigger(e.next().find("[tabindex]").first(),"focus"))}),(0,j.A)(ke).addClass(n.getWidgetContainerClass())},onShown(ke){var Ue=ke.component.$content().find(".".concat(j_)).first();_.A.trigger(Ue.find(tb),"focus")},onHidden(){t=n._columnsController.columnOption(t.index),e.find(".".concat(eb)).parent().addClass(wv),"between"===hm(n,t)&&(n._updateFilterRangeContent(e,nb(n,t)),n.component.updateDimensions())}})}_updateFilterRangeOverlay(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)}_showFilterRange(e,t){var n=e.children(".".concat(this.addWidgetPrefix(q0))),p=n.length&&n.data("dxOverlay");!p&&t&&(p=this._initFilterRangeOverlay(e,t)),p.option("visible")||(this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.hide(),this._filterRangeOverlayInstance=p,this._updateFilterRangeOverlay({width:(0,R.Ot)(e,!0)+1}),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.show())}_hideFilterRange(){var e=this._filterRangeOverlayInstance;e&&e.hide()}getFilterRangeOverlayInstance(){return this._filterRangeOverlayInstance}_createRow(e){var t=super._createRow(e);return"filter"===e.rowType&&(t.addClass(this.addWidgetPrefix($g)),this.option("useLegacyKeyboardNavigation")||_.A.on(t,"keydown",n=>N("filterRow",this,n))),t}_getRows(){var e=super._getRows();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e}_renderFilterCell(e,t){var{column:n}=t,p=(0,j.A)(e);this.component.option("showColumnHeaders")&&this.setAria("describedby",n.headerId,p),this.setAria("label",v.A.format("dxDataGrid-ariaFilterCell"),p),p.addClass(Zv);var P=(0,j.A)("<div>").appendTo(p),J=(0,j.A)("<div>").addClass(j_).appendTo(P);if("between"===hm(this,n))this._renderFilterRangeContent(p,n);else{var fe=this._getEditorOptions(J,n);this._renderEditor(J,fe)}var{alignment:ke}=n;ke&&"center"!==ke&&p.find(tb).first().css("textAlign",n.alignment),n.filterOperations&&n.filterOperations.length&&this._renderFilterOperationChooser(P,n,J)}_renderCellContent(e,t){var n=this,{column:p}=t;if("filter"===t.rowType)if(p.command)e.html(" ");else if(p.allowFiltering)return void n.renderTemplate(e,n._renderFilterCell.bind(n),t).done(()=>{n._updateCell(e,t)});super._renderCellContent.apply(this,arguments)}_getEditorOptions(e,t){var n=this,p={editorOptions:{inputAttr:n._getFilterInputAccessibilityAttributes(t)}},P=(0,o.X)(p,t,{value:Dv(n,t.index,e),parentType:"filterRow",showAllText:n.option("filterRow.showAllText"),updateValueTimeout:"onClick"===n.option("filterRow.applyFilter")?0:700,width:null,setValue(J,fe){!function(V,e){var t=""===e.value?null:e.value,n=e.container,p=V._columnsController.columnOption(e.column.index),P=Dv(V,p.index,n);if((0,m.O9)(P)||(0,m.O9)(t)){V._applyFilterViewController.setHighLight(n,P!==t);var J=b_(V)?"bufferedFilterValue":"filterValue",fe=function(V,e,t,n){if("between"===hm(V,t)){var p=oy(V,t);return n.hasClass(V.addWidgetPrefix(Sg))?[e,Array.isArray(p)?p[1]:void 0]:[Array.isArray(p)?p[0]:p,e]}return e}(V,t,p,n),ke="between"===hm(V,p),Ue=e.notFireEvent||ke&&Array.isArray(fe)&&fe.includes(void 0);V._columnsController.columnOption(p.index,J,fe,Ue)}}(n,{column:t,value:J,container:e,notFireEvent:fe})}});return"between"===hm(n,t)&&(P.placeholder=e.hasClass(n.addWidgetPrefix(Sg))?n.option("filterRow.betweenStartText"):n.option("filterRow.betweenEndText")),P}_getFilterInputAccessibilityAttributes(e){var t=v.A.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":t,"aria-describedby":e.headerId}:{"aria-label":t}}_renderEditor(e,t){e.empty();var n=(0,j.A)("<div>").appendTo(e),p=this._dataController.dataSource();if(t.lookup&&this.option("syncLookupFilterValues")){this._applyFilterViewController.setCurrentColumnForFiltering(t);var P=this._dataController.getCombinedFilter();this._applyFilterViewController.setCurrentColumnForFiltering(null);var J=Ui.A.getWrappedLookupDataSource(t,p,P),fe=(0,Nt.A)((0,Nt.A)({},t),{lookup:(0,Nt.A)((0,Nt.A)({},t.lookup),{dataSource:J})});return this._editorFactoryController.createEditor(n,fe)}return this._editorFactoryController.createEditor(n,t)}_renderFilterRangeContent(e,t){var n=this,p=e.find(".".concat(j_)).first();p.empty();var P=(0,j.A)("<div>").addClass(Sv).attr("tabindex",this.option("tabIndex"));_.A.on(P,"focusin",()=>{n._showFilterRange(e,t)}),P.appendTo(p),n._updateFilterRangeContent(e,nb(n,t))}_updateFilterRangeContent(e,t){var n=e.find(".".concat(Sv));n.length&&(""===t?n.html(" "):n.text(t))}_updateFilterOperationChooser(e,t,n){var P,p=this,J=function(){var ke=tg.getInstance(e);ke&&ke.option("focusedElement",null),P&&p._focusEditor(n)},fe=this._editorFactoryController;p._createComponent(e,tg,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:"".concat(p.getWidgetContainerClass()," ").concat("dx-cell-focus-disabled"," ").concat("dx-filter-menu"),showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!(t.filterOperations&&t.filterOperations.length),icon:Z0[hm(p,t)||"default"],selectable:!1,items:p._getFilterOperationMenuItems(t)}],onItemRendered:ke=>{var{itemElement:Ue}=ke;this.setAria("label",ib,(0,j.A)(Ue))},onItemClick(ke){var Ue=ke.itemData.name,Ze=hm(p,t),Ft=!1,vi=b_(p),Li={};if(!(ke.itemData.items||Ue&&Ue===Ze)){if(Ue?(Li[vi?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=Ue,("between"===Ue||"between"===Ze)&&(Ft="between"===Ue,Li[vi?"bufferedFilterValue":"filterValue"]=null)):(Li[vi?"bufferedFilterValue":"filterValue"]=null,Li[vi?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=t.defaultSelectedFilterOperation||null),p._columnsController.columnOption(t.index,Li),p._applyFilterViewController.setHighLight(n,!0),!Ue){var tn=ay(n);tn&&"dxDateBox"===tn.NAME&&!tn.option("isValid")&&(tn.clear(),tn.option("isValid",!0))}Ft?p._showFilterRange(n.closest(".".concat(Zv)),t):p._focusEditor(n)}},onSubmenuShowing(){P=p._isEditorFocused(n),fe.loseFocus()},onSubmenuHiding(){_.A.trigger(e,"blur"),J()},onContentReady(ke){_.A.on(e,"blur",()=>{ke.component._hideSubmenuAfterTimeout(),J()})},rtlEnabled:p.option("rtlEnabled")})}_isEditorFocused(e){return e.hasClass(Cx)||e.parents(".".concat(Cx)).length}_focusEditor(e){this._editorFactoryController.focus(e),_.A.trigger(e.find(tb),"focus")}_renderFilterOperationChooser(e,t,n){var p;this.option("filterRow.showOperationChooser")&&(e.addClass(wv),p=(0,j.A)("<div>").prependTo(e),this._updateFilterOperationChooser(p,t,n))}_getFilterOperationMenuItems(e){var t=this,n=[{}],p=t.option("filterRow"),P=p&&p.operationDescriptions||{};if(e.filterOperations&&e.filterOperations.length){var J=e.filterOperations.filter(fe=>(0,m.O9)(yx[fe]));(n=(0,E.Tj)(J,fe=>{var ke=yx[fe];return{name:fe,selected:(hm(t,e)||e.defaultFilterOperation)===fe,text:P[ke],icon:Z0[fe]}})).push({name:null,text:p&&p.resetOperationText,icon:Z0.default})}return n}_handleDataChanged(e){var t,n,p,P,J,fe,ke=null===(n=null===(t=this._dataController)||void 0===t?void 0:t.dataSource)||void 0===n?void 0:n.call(t),Ue=null===(p=ke?.lastLoadOptions)||void 0===p?void 0:p.call(ke);super._handleDataChanged.apply(this,arguments),(null!==(P=e.operationTypes)&&void 0!==P&&P.filtering||null!==(J=e.operationTypes)&&void 0!==J&&J.fullReload)&&this.updateLookupDataSource((null===(fe=e.operationTypes)||void 0===fe?void 0:fe.filtering)||Ue?.filter)}updateLookupDataSource(e){if(this.option("syncLookupFilterValues")&&this.element()){var t=this._columnsController.getVisibleColumns(),n=this._dataController.dataSource(),p=this._applyFilterViewController,P=this.element().find(".".concat(this.addWidgetPrefix($g))).index();-1!==P&&t.forEach((J,fe)=>{if(J.lookup&&J.calculateCellValue===J.defaultCalculateCellValue){var ke=this._getCellElement(P,fe),Ue=ay(ke?.find(".dx-editor-container"));if(Ue){p.setCurrentColumnForFiltering(J);var Ze=this._dataController.getCombinedFilter()||null;p.setCurrentColumnForFiltering(null);var Ft=Ue.option("dataSource");if(!e||!(0,s.RL)(Ft.__dataGridSourceFilter||null,Ze)){var Li=Ui.A.getWrappedLookupDataSource(J,n,Ze);Ue.option("dataSource",Li)}}}})}}},headerPanel:V=>class extends V{init(){super.init(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")}optionChanged(e){"filterRow"===e.name?(this._invalidate(),e.handled=!0):super.optionChanged(e)}_getToolbarItems(){var e=super._getToolbarItems();return this._prepareFilterItem().concat(e)}_prepareFilterItem(){var e=this,t=[];if(e._isShowApplyFilterButton()){var n=e.option("filterRow.applyFilterText"),P=!e._columnsController.getColumns().filter(fe=>void 0!==fe.bufferedFilterValue).length;t.push({widget:"dxButton",options:{icon:"apply-filter",disabled:P,onClick:function(){e._applyFilterViewController.applyFilter()},hint:n,text:n,onInitialized:function(fe){(0,j.A)(fe.element).addClass(e._getToolbarButtonClass("dx-apply-button"))}},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10})}return t}_isShowApplyFilterButton(){var e=this.option("filterRow");return!!e?.visible&&"onClick"===e.applyFilter}enableApplyButton(e){this.setToolbarItemDisabled("applyFilterButton",!e)}isVisible(){return super.isVisible()||this._isShowApplyFilterButton()}}}}}),wa.A.setEditorClass(Fo.A),D(36857);var sy=D(51774),Ox="dx-header-filter",rw="dx-header-filter-menu";function t0(V){V=V||[];for(var e=0;e<V.length;e++)V[e].selected=!1,t0(V[e].items)}function Tx(V){var e="dxTreeView"===V.NAME?".dx-treeview-select-all-item":".dx-list-select-all-checkbox";return V.$element().find(e).dxCheckBox("instance")}function ly(V,e){if(!V.component.option("searchValue")){var t=Tx(V.component);t&&e&&e.length&&t.option("value",void 0)}}function ow(V,e,t){if(e^t){if(V.selected=!0,t&&V.items)for(var n=0;n<V.items.length;n++)if(!V.items[n].selected){V.selected=void 0;break}}else(t||V.selected)&&(V.selected=!1,t0(V.items))}var pm=function(V){return(0,m.O9)(V.allowHeaderFiltering)?V.allowHeaderFiltering:V.allowFiltering},ab=V=>class extends V{optionChanged(e){if("headerFilter"===e.name){var t="columnHeadersView"===this.name;this._invalidate(t,t),e.handled=!0}else super.optionChanged(e)}_applyColumnState(e){var t,{rootElement:n}=e,{column:p}=e;if("headerFilter"===e.name){if(n.find(".".concat(Ox)).remove(),pm(p)){t=super._applyColumnState(e).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(p)),this.option("useLegacyKeyboardNavigation")||t.attr("tabindex",this.option("tabindex")||0);var P=v.A.format("dxDataGrid-headerFilterIndicatorLabel",p.caption);t.attr("aria-label",P),t.attr("aria-haspopup","dialog"),t.attr("role","button")}return t}return super._applyColumnState(e)}_isHeaderFilterEmpty(e){return!e.filterValues||!e.filterValues.length}_getIndicatorClassName(e){return"headerFilter"===e?Ox:super._getIndicatorClassName(e)}_renderIndicator(e){var t=e.container,n=e.indicator;if("headerFilter"===e.name){var p=this.option("rtlEnabled");if(t.children().length&&(!p&&"right"===e.columnAlignment||p&&"left"===e.columnAlignment))return void t.prepend(n)}super._renderIndicator(e)}},Mv={month:V=>$o.A.getMonthNames()[V-1],quarter:V=>$o.A.format(new Date(2e3,3*V-1),"quarter")};function Ax(V,e,t){return e=e||[],t=t||[],V.forEach(n=>{if((0,m.O9)(n.key)){if(e.push(1===e.length?n.key-1:n.key),n.items)Ax(n.items,e,t);else{var P=new Date(Date.UTC.apply(Date,e));t.push(P)}e.pop()}else t.push(null)}),t}function y_(V,e){var t=Ax(V),n=(0,Ia.A)(t),p=Ui.A.getHeaderFilterGroupParameters((0,Nt.A)((0,Nt.A)({},e),{calculateCellValue:P=>P}));return vr.A.queryByOptions(n,{group:p}).toArray()}En.registerModule("headerFilter",{defaultOptions:()=>({syncLookupFilterValues:!0,headerFilter:{visible:!1,width:252,height:325,allowSelectAll:!0,search:{enabled:!1,timeout:500,mode:"contains",editorOptions:{}},texts:{emptyValue:v.A.format("dxDataGrid-headerFilterEmptyValue"),ok:v.A.format("dxDataGrid-headerFilterOK"),cancel:v.A.format("dxDataGrid-headerFilterCancel")}}}),controllers:{headerFilter:class n0 extends cn.ViewController{init(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")}_updateSelectedState(e,t){for(var n=e.length,p="exclude"===t.filterType;n--;){var P=e[n];"items"in e[n]&&this._updateSelectedState(e[n].items,t),ow(P,Ui.A.getIndexByKey(e[n].value,t.filterValues,null)>-1,p)}}_normalizeGroupItem(e,t,n){var p,P,{path:J}=n,{valueSelector:fe}=n,{displaySelector:ke}=n,{column:Ue}=n;return fe&&ke?(p=fe(e),P=ke(e)):P=p=e.key,e=(0,m.Gv)(e)?(0,o.X)({},e):{},J.push(p),e.value=1===J.length?J[0]:J.join("/"),e.text=this.getHeaderItemText(P,Ue,t,n.headerFilterOptions),e}getHeaderItemText(e,t,n,p){var P=Ui.A.formatValue(e,function(V,e,t){var n=mo.A.getGroupInterval(e),p=Ui.A.getFormatOptionsByColumn(e,"headerFilter");return n&&(p.groupInterval=n[t],Ui.A.isDateType(e.dataType)?p.format=Mv[n[t]]:"number"===e.dataType&&(p.getDisplayFormat=function(){var P={format:e.format,target:"headerFilter"},J=Ui.A.formatValue(V,P),ke=Ui.A.formatValue(V+n[t],P);return J&&ke?"".concat(J," - ").concat(ke):""})),p}(e,t,n));return P||(P=p.texts.emptyValue),P}_processGroupItems(e,t,n,p){var P,J,{column:fe}=p,{lookup:ke}=fe,{level:Ue}=p;n=n||[],t=t||0,ke&&(P=(0,aa.Hz)(ke.displayExpr),J=(0,aa.Hz)(ke.valueExpr));for(var Ze=0;Ze<e.length;Ze++)e[Ze]=this._normalizeGroupItem(e[Ze],t,{column:p.column,headerFilterOptions:p.headerFilterOptions,displaySelector:P,valueSelector:J,path:n}),"items"in e[Ze]&&(t!==Ue&&(0,m.O9)(e[Ze].value)?this._processGroupItems(e[Ze].items,t+1,n,p):delete e[Ze].items),n.pop()}getDataSource(e){var t,n=this._dataController.dataSource(),p=n?.remoteOperations().grouping,P=Ui.A.getHeaderFilterGroupParameters(e,p),J=null===(t=e.headerFilter)||void 0===t?void 0:t.dataSource,fe=this.option("headerFilter"),ke=!1,Ue={component:this.component};if(n){if((0,m.O9)(J)&&!(0,m.Tn)(J))Ue.dataSource=(0,ia.ho)(J);else if(e.lookup)if(ke=!0,this.option("syncLookupFilterValues")){this._currentColumn=e;var Ze=this._dataController.getCombinedFilter();this._currentColumn=null,Ue.dataSource=Ui.A.getWrappedLookupDataSource(e,n,Ze)}else Ue.dataSource=Ui.A.normalizeLookupDataSource(e.lookup);else{var Ft=Array.isArray(P)?P.length-1:0;this._currentColumn=e;var vi=this._dataController.getCombinedFilter();this._currentColumn=null,Ue.dataSource={filter:vi,group:P,useDefaultSearch:!0,load:On=>{var Qn=new xe.cY;return On.dataField=e.dataField||e.name,n.load(On).done(zr=>{p&&function Ix(V){return"Z"===V?.slice(-1)||"'Z'"===V?.slice(-3)}(e.serializationFormat)&&Ft>3&&(zr=y_(zr,e)),tn._processGroupItems(zr,null,null,{level:Ft,column:e,headerFilterOptions:fe}),Qn.resolve(zr)}).fail(Qn.reject),Qn}}}(0,m.Tn)(J)&&J.call(e,Ue);var Li=Ue.dataSource.postProcess,tn=this;return Ue.dataSource.postProcess=function(On){var Qn=On;return ke&&(Qn=Qn.filter(zr=>null!==zr[e.lookup.valueExpr]),0===this.pageIndex()&&!this.searchValue()&&(Qn=Qn.slice(0)).unshift(null),tn._processGroupItems(Qn,null,null,{level:0,column:e,headerFilterOptions:fe})),Qn=Li&&Li.call(this,Qn)||Qn,tn._updateSelectedState(Qn,e),Qn},Ue.dataSource}}getCurrentColumn(){return this._currentColumn}showHeaderFilterMenu(e,t){var n=this._columnsController,p=(0,o.X)(!0,{},this._columnsController.getColumns()[e]);if(p){var P=n.getVisibleIndex(e),fe=this.getView(t?"headerPanel":"columnHeadersView").getColumnElements().eq(t?p.groupIndex:P);this.showHeaderFilterMenuBase({columnElement:fe,column:p,applyFilter:!0,apply(){n.columnOption(e,{filterValues:this.filterValues,filterType:this.filterType})}})}}showHeaderFilterMenuBase(e){var{column:t}=e;if(t){var n=mo.A.getGroupInterval(t),p=this._dataController.dataSource(),P=p&&p.remoteOperations().filtering,J=e.onHidden;(0,o.X)(e,t,{type:n&&n.length>1?"tree":"list",remoteFiltering:P,onShowing:fe=>{var ke=fe.component.$overlayContent().dxResizable("instance");ke&&ke.option("onResizeEnd",Ue=>{var Ze=this._columnsController.columnOption(e.dataField,"headerFilter");(Ze=Ze||{}).width=Ue.width,Ze.height=Ue.height,this._columnsController.columnOption(e.dataField,"headerFilter",Ze,!0)})},onHidden:()=>{J?.(),we(this)}}),e.dataSource=this.getDataSource(e),e.isFilterBuilder&&(e.dataSource.filter=null,e.alignment="right"),this._headerFilterView.showHeaderFilterMenu(e.columnElement,e)}}hideHeaderFilterMenu(){this._headerFilterView.hideHeaderFilterMenu()}}},views:{headerFilterView:class dy extends cn.View{getPopupContainer(){return this._popupContainer}getListComponent(){return this._listComponent}applyHeaderFilter(e){var t=this.getListComponent(),n=t.option("searchValue"),p=Tx(t),J=[];n||e.isFilterBuilder||!p?.option("value")?"tree"===e.type&&(e.filterType&&(e.filterType="include"),function fe(ke,Ue,Ze){(0,E.__)(Ue,(Ft,vi)=>{if(void 0!==vi.selected&&!!vi.selected^Ze){var Li=t._getNode(vi),On=t._hasChildren(Li)&&vi.items&&vi.items.some(Qn=>Qn.selected);if(!n||!On)return void ke.push(vi.value)}vi.items&&vi.items.length&&fe(ke,vi.items,Ze)})}(J,t.option("items"),!1),e.filterValues=J):("tree"===e.type&&(e.filterType="exclude"),Array.isArray(e.filterValues)&&(e.filterValues=[])),e.filterValues&&!e.filterValues.length&&(e.filterValues=null),e.apply(),this.hideHeaderFilterMenu()}showHeaderFilterMenu(e,t){if(t){this._initializePopupContainer(t);var n=this.getPopupContainer();this.hideHeaderFilterMenu(),this.updatePopup(e,t),n.show()}}hideHeaderFilterMenu(){var e=this.getPopupContainer();e&&e.hide()}updatePopup(e,t){var n=this.option("showColumnLines"),p="right"===t.alignment^!n?"left":"right";this._popupContainer.setAria({role:"dialog",label:v.A.format("dxDataGrid-headerFilterLabel")}),this._popupContainer&&(this._cleanPopupContent(),this._popupContainer.option("position",{my:"".concat(p," top"),at:"".concat(p," bottom"),of:e,collision:"fit fit"}))}_getSearchExpr(e,t){var{lookup:n}=e,{useDefaultSearchExpr:p}=e,P=t.dataSource,J=t.search.searchExpr;if(J)return J;if(p||(0,m.O9)(P)&&!(0,m.Tn)(P))return"text";if(n)return n.displayExpr||"this";if(e.dataSource){var{group:fe}=e.dataSource;if(Array.isArray(fe)&&fe.length>0)return fe[0].selector;if((0,m.Tn)(fe)&&!e.remoteFiltering)return fe}return e.dataField||e.selector}_cleanPopupContent(){this._popupContainer&&this._popupContainer.$content().empty()}_initializePopupContainer(e){var t=this,n=t.element(),p=this._normalizeHeaderFilterOptions(e),{height:P,width:J}=p,fe={width:J,height:P,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,hideOnParentScroll:!1,dragEnabled:!1,hideOnOutsideClick:!0,wrapperAttr:{class:rw},focusStateEnabled:!1,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:p.texts.ok,onClick(){t.applyHeaderFilter(e)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:p.texts.cancel,onClick(){t.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing(ke){ke.component.$content().parent().addClass("dx-dropdowneditor-overlay"),t._initializeListContainer(e,p),e.onShowing&&e.onShowing(ke)},onShown(){t.getListComponent().focus()},onHidden:e.onHidden,onInitialized(ke){var{component:Ue}=ke;Ue.option("animation",Ue._getDefaultOptions().animation)}};(0,m.O9)(t._popupContainer)?t._popupContainer.option(fe):t._popupContainer=t._createComponent(n,vn.A,fe)}_initializeListContainer(e,t){var n=this,p=n._popupContainer.$content(),P=!e.isFilterBuilder&&t.allowSelectAll,J={searchEnabled:t.search.enabled,searchTimeout:t.search.timeout,searchEditorOptions:t.search.editorOptions,searchMode:t.search.mode||"",dataSource:e.dataSource,onContentReady(){n.renderCompleted.fire()},itemTemplate(ke,Ue,Ze){var Ft=(0,j.A)(Ze);return e.encodeHtml?Ft.text(ke.text):Ft.html(ke.text)}};function fe(ke){"searchValue"===ke.fullName&&P&&!1!==n.option("headerFilter.hideSelectAllOnSearch")&&("tree"===e.type?ke.component.option("showCheckBoxesMode",ke.value?"normal":"selectAll"):ke.component.option("selectionMode",ke.value?"multiple":"all"))}n._listComponent="tree"===e.type?n._createComponent((0,j.A)("<div>").appendTo(p),Ep,(0,o.X)(J,{showCheckBoxesMode:P?"selectAll":"normal",onOptionChanged:fe,keyExpr:"id"})):n._createComponent((0,j.A)("<div>").appendTo(p),sy.A,(0,o.X)(J,{searchExpr:n._getSearchExpr(e,t),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:P?"all":"multiple",onOptionChanged:fe,onSelectionChanged(ke){var Ue=ke.component.option("items"),Ze=ke.component.option("selectedItems");if(!ke.component._selectedItemsUpdating&&!ke.component.option("searchValue")&&!e.isFilterBuilder){var Ft=e.filterValues||[];0===Ze.length&&Ue.length&&(Ft.length<=1||"exclude"===e.filterType&&Ft.length===Ue.length-1)?(e.filterType="include",e.filterValues=[]):Ze.length===Ue.length&&(e.filterType="exclude",e.filterValues=[])}(0,E.__)(Ue,(Li,tn)=>{var On=Ui.A.getIndexByKey(tn,Ze,null)>=0;if(!!tn.selected!==On){tn.selected=On,e.filterValues=e.filterValues||[];var zr=Ui.A.getIndexByKey(tn.value,e.filterValues,null);zr>=0&&e.filterValues.splice(zr,1),On^"exclude"===e.filterType&&e.filterValues.push(tn.value)}}),ly(ke,e.filterValues)},onContentReady(ke){var{component:Ue}=ke,Ze=Ue.option("items"),Ft=[];(0,E.__)(Ze,function(){this.selected&&Ft.push(this)}),Ue._selectedItemsUpdating=!0,Ue.option("selectedItems",Ft),Ue._selectedItemsUpdating=!1,ly(ke,e.filterValues)}}))}_normalizeHeaderFilterOptions(e){var t=this.option("headerFilter")||{},n=e.headerFilter||{};return(0,o.X)(!0,{},t,{search:{enabled:t.allowSearch,timeout:t.searchTimeout}},n,{search:{enabled:n.allowSearch,mode:n.searchMode,timeout:n.searchTimeout}})}_renderCore(){this.element().addClass(rw)}}},extenders:{controllers:{data:V=>class extends V{skipCalculateColumnFilters(){return!1}_calculateAdditionalFilter(){if(this.skipCalculateColumnFilters())return super._calculateAdditionalFilter();var e=[super._calculateAdditionalFilter()],t=this._columnsController.getVisibleColumns(null,!0),p=this._headerFilterController.getCurrentColumn();return(0,E.__)(t,(P,J)=>{var fe;if((!p||p.index!==J.index)&&pm(J)&&J.calculateFilterExpression&&Array.isArray(J.filterValues)&&J.filterValues.length){var ke=[];(0,E.__)(J.filterValues,(Ue,Ze)=>{Array.isArray(Ze)?fe=Ze:(J.deserializeValue&&!Ui.A.isDateType(J.dataType)&&"number"!==J.dataType&&(Ze=J.deserializeValue(Ze)),fe=J.createFilterExpression(Ze,"=","headerFilter")),fe&&(fe.columnIndex=J.index),ke.push(fe)}),ke=Ui.A.combineFilters(ke,"or"),e.push("exclude"===J.filterType?["!",ke]:ke)}}),Ui.A.combineFilters(e)}}},views:{columnHeadersView:V=>class extends(ab(V)){_renderCellContent(e,t){var n,{column:p}=t;!p.command&&pm(p)&&this.option("headerFilter.visible")&&"header"===t.rowType&&(n=this._applyColumnState({name:"headerFilter",rootElement:e,column:p,showColumnLines:this.option("showColumnLines")}))&&this._subscribeToIndicatorEvent(n,p,"headerFilter"),super._renderCellContent.apply(this,arguments)}_subscribeToIndicatorEvent(e,t,n){"headerFilter"===n&&_.A.on(e,ce.U,this.createAction(p=>{p.event.stopPropagation(),se(e,this),this._headerFilterController.showHeaderFilterMenu(t.index,!1)}))}_updateIndicator(e,t,n){var p=super._updateIndicator(e,t,n);p&&this._subscribeToIndicatorEvent(p,t,n)}_updateHeaderFilterIndicators(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")}_needUpdateFilterIndicators(){return!0}_columnOptionChanged(e){var{optionNames:t}=e,n=Ui.A.checkChanges(t,["filterValues","filterValue"]),p=Ui.A.checkChanges(t,["filterValues","filterType"]);(n||p)&&this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators(),p||super._columnOptionChanged(e)}},headerPanel:V=>class extends(ab(V)){_createGroupPanelItem(e,t){var p,n=super._createGroupPanelItem.apply(this,arguments);return!t.command&&pm(t)&&this.option("headerFilter.visible")&&(p=this._applyColumnState({name:"headerFilter",rootElement:n,column:{alignment:(0,ge.n)(this.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0,caption:t.caption},showColumnLines:!0}))&&_.A.on(p,ce.U,this.createAction(P=>{var{event:J}=P;J.stopPropagation(),this._headerFilterController.showHeaderFilterMenu(t.index,!0)})),n}}}}});var kx=D(45),ob="dx-filterbuilder-range",Dg="".concat(ob,"-start"),hw="".concat(ob,"-end"),Rx="".concat(ob,"-separator"),sb="\u2013";function a0(V,e){var t=(0,j.A)("<div>").addClass(Dg),n=(0,j.A)("<div>").addClass(hw),p=V.value||[],P=function(fe){return fe&&fe.length>0?fe[0]:null},J=function(fe){return fe&&2===fe.length?fe[1]:null};e.append(t),e.append((0,j.A)("<span>").addClass(Rx).text(sb)),e.append(n),e.addClass(ob),this._editorFactory.createEditor.call(this,t,(0,o.X)({},V.field,V,{value:P(p),parentType:"filterBuilder",setValue(fe){p=[fe,J(p)],V.setValue(p)}})),this._editorFactory.createEditor.call(this,n,(0,o.X)({},V.field,V,{value:J(p),parentType:"filterBuilder",setValue(fe){p=[P(p),fe],V.setValue(p)}}))}function Px(V,e){return{name:"between",caption:V,icon:"range",valueSeparator:sb,dataTypes:["number","date","datetime"],editorTemplate:a0.bind(e),notForLookup:!0}}var cy={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},Wf={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"};const yo_getIconByFilterOperation=V=>cy[V],yo_getNameByFilterOperation=V=>Wf[V];var uy="string",Lx="icon-none",Eg="and",hy="=",Fx={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},pw={date:"shortDate",datetime:"shortDateShortTime"},fy=["=","<>","isblank","isnotblank"],fw=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"],Y_="".concat("dx-filterbuilder","-text"),o0="".concat(Y_,"-part"),my="".concat(Y_,"-separator"),gy="".concat(my,"-empty");function $_(V){return V&&V.length>1&&"!"===V[0]&&!Au(V)}function x_(V){return $_(V)?V[1]:V}function Vx(V){if(Au(V))return Eg;for(var e="",t=0;t<V.length;t++){var n=V[t];if(!Array.isArray(n)){if(e&&e!==n)throw new Bu.sO.Error("E4019");"!"!==n&&(e=n)}}return e}function K_(V){var e=x_(V),t=Vx(e);return t||(t=Eg),e!==V&&(t="!".concat(t)),t}function lb(V){var e=function B1(V){return Array.isArray(V)&&V.length}(V.filterOperations)?V.filterOperations:function Hx(V){return V.lookup&&fy||Fx[V.dataType||uy]}(V);return(0,o.X)([],e)}function Dm(V,e){var t=yo_getNameByFilterOperation(V);return e&&e[t]?e[t]:t}function Kg(V,e){var t=V.filter(n=>n.name===e);return t.length?t[0]:null}function Tu(V){return V.defaultFilterOperation||lb(V)[0]}function l0(V,e){var t=x_(V),n=t.indexOf(e);return t.splice(n,1),1!==t.length&&t.splice(n,1),V}function Ux(V){var e=cb(V),t=e?c0(V):V;return e?["!",[t]]:[t]}function Ov(V,e){var t=x_(e),n=K_(t);return 1===t.length?t.unshift(V):t.push(V,n),e}function d0(V,e){for(var t=0;t<e.length;t++)if(e[t].name===V||e[t].dataField.toLowerCase()===V.toLowerCase())return e[t];var n=f0(e,!0).filter(p=>p.dataField.toLowerCase()===V.toLowerCase());if(n.length>0)return n[0];throw new Et.A.Error("E1047",V)}function C_(V){return!!Array.isArray(V)&&(V.length<2||Array.isArray(V[0])||Array.isArray(V[1]))}function Au(V){return!!Array.isArray(V)&&V.length>1&&!Array.isArray(V[0])&&!Array.isArray(V[1])}function Gx(V,e,t){t=t||Eg;for(var n=Vx(V).toLowerCase()||t,p=[],P=0;P<V.length;P++)C_(V[P])?(p.push(ub(V[P],e,t)),p=_y(p,n)):Au(V[P])&&(p.push(Xg(V[P],e)),p=_y(p,n));return 0===p.length&&(p=_y(p,n)),p}function Xg(V,e){return function bw(V,e){var t=Kg(e,V[1]);return t&&t.name===V[1]}(V,e)||V.length<3&&(V[2]=V[1],V[1]=hy),V}function cb(V){return-1!==V.indexOf("not")}function c0(V){return V.substring(3).toLowerCase()}function Wx(V,e){var t=cb(e);return e=t?c0(e):e,t?["!",V,e]:[V,e]}function _y(V,e){var t=cb(e);e=t?c0(e):e,V.push(e);var n=V;return t&&(n=["!",n]),n}function ub(V,e,t){return t=t||Eg,V?Au(V=(0,o.X)(!0,[],V))?Wx(Xg(V,e),t):$_(V)?["!",Au(V[1])?Wx(Xg(V[1],e),t):$_(V[1])?Wx(ub(V[1],e),t):Gx(V[1],e,t)]:Gx(V,e,t):Ux(t)}function u0(V,e,t,n){var p=d0(V[0],e),P=Xg(V,t),J=t.length&&Kg(t,P[1]);return J&&J.calculateFilterExpression?J.calculateFilterExpression.apply(J,[P[2],p,e]):p.createFilterExpression?p.createFilterExpression.apply(p,[P[2],P[1],n]):p.calculateFilterExpression?p.calculateFilterExpression.apply(p,[P[2],P[1],n]):p.defaultCalculateFilterExpression.apply(p,[P[2],P[1],n])}function w_(V,e,t,n){if(!(0,m.O9)(V))return null;if($_(V))return["!",w_(V[1],e,t,n)];var P=x_(V);if(Au(P))return u0(P,e,t,n)||null;for(var fe,J=[],ke=K_(P),Ue=0;Ue<P.length;Ue++)C_(P[Ue])?(fe=w_(P[Ue],e,t,n))&&(Ue&&J.push(ke),J.push(fe)):Au(P[Ue])&&(fe=u0(P[Ue],e,t,n))&&(J.length&&J.push(ke),J.push(fe));return 1===J.length&&(J=J[0]),J.length?J:null}function ig(V){var t,e=x_(V);if(0===e.length)return null;var n=[];for(t=0;t<e.length;t++)if(C_(e[t])){var p=ig(e[t]);p?e[t]=p:n.push(e[t])}else Au(e[t])&&(mb(e[t])||n.push(e[t]));for(t=0;t<n.length;t++)l0(e,n[t]);return 1===e.length||(e.splice(e.length-1,1),1===e.length&&(V=function gw(V,e){return $_(V)?V[1]=e:V=e,V}(V,e[0])),0===V.length)?null:V}function hb(V,e,t){if(""!==e){var{lookup:n}=V;if(n.items)t(n.calculateCellValue(e)||"");else{var p=(0,m.Tn)(n.dataSource)?n.dataSource({}):n.dataSource;new Va.q(p).loadSingle(n.valueExpr,e).done(J=>{var fe="";J&&(fe=n.displayExpr?(0,aa.Hz)(n.displayExpr)(J):J),V.customizeText&&(fe=V.customizeText({value:e,valueText:fe})),t(fe)}).fail(()=>{t("")})}}else t("")}function vy(V,e,t,n,p){var P;return P=!0===e?V.trueText||v.A.format("dxDataGrid-trueText"):!1===e?V.falseText||v.A.format("dxDataGrid-falseText"):function Bx(V,e){return kx.A.format(e,V.format||pw[V.dataType])}(V,e),V.customizeText&&(P=V.customizeText.call(V,{value:e,valueText:P,target:n})),t&&t.customizeText&&(P=t.customizeText.call(t,{value:e,valueText:P,field:V,target:n},p)),P}function pb(V){return""===V||null===V}function jf(V,e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(pb(e))return"";if(Array.isArray(e)){var p=new xe.cY;return xe.z7.apply(this,function h0(V,e,t,n){var p={values:e};return e.map(P=>vy(V,P,t,n,p))}(V,e,t,n)).done(function(){for(var P=arguments.length,J=new Array(P),fe=0;fe<P;fe++)J[fe]=arguments[fe];var ke=J.some(Ue=>!pb(Ue))?J.map(Ue=>pb(Ue)?"?":Ue):"";p.resolve(ke)}),p}return vy(V,e,t,n)}function X_(V,e){return V.some(t=>t.dataField===e)}function p0(V,e,t){var{dataField:n}=t;xw(n)&&(t.parentId=m0(n),!X_(e,t.parentId)&&!X_(V,t.parentId)&&p0(V,e,{id:t.parentId,dataType:"object",dataField:t.parentId,caption:Mg(t.parentId,!0),filterOperations:["isblank","isnotblank"],defaultCalculateFilterExpression:mo.A.defaultCalculateFilterExpression})),e.push(t)}function Mg(V,e){var t="";if(e)V=V.substring(V.lastIndexOf(".")+1);else if(xw(V))return V.split(".").forEach((n,p,P)=>{t+=(0,Fa.Bc)(n),p!==P.length-1&&(t+=".")}),t;return(0,Fa.Bc)(V)}function f0(V,e){for(var t=[],n=0;n<V.length;n++){var p=(0,o.X)(!0,{caption:Mg(V[n].dataField,e)},V[n]);p.id=p.name||p.dataField,e?p0(V,t,p):t.push(p)}return t}function xw(V){return-1!==V.lastIndexOf(".")}function m0(V){return V.substring(0,V.lastIndexOf("."))}function by(V,e){if(xw(V.dataField))for(var t=m0(V.dataField),n=0;n<e.length;n++)if(e[n].dataField===t)return"".concat(by(e[n],e),".").concat(V.caption);return V.caption}function fb(V,e,t){var n=Kg(t,e);return n?(!1===n.hasValue?(V[1]=e,V.length=2):(V[1]=e,V[2]=""),V):("isblank"===e?(V[1]=hy,V[2]=null):"isnotblank"===e?(V[1]="<>",V[2]=null):(((n=Kg(t,V[1]))||2===V.length||null===V[2])&&(V[2]=""),V[1]=e),V)}function jx(V){return null===V[2]?V[1]===hy?"isblank":"isnotblank":V[1]}function mb(V){return""!==V[2]}function _0(V,e){return V[0]===e}function yy(V,e){return V&&0!==V.length?Au(V)?_0(V,e)?null:V:xy(V,[e],!1):null}function xy(V,e,t){var n=[];return V.forEach(p=>{Au(p)?_0(p,e[0])?t?(n.push(e),t=!1):n.splice(n.length-1,1):n.push(p):(n.length||C_(p))&&n.push(p)}),0===n.length?null:(t&&(n.push(Eg),n.push(e)),1===n.length?n[0]:n)}function Yx(V,e){return null===V||0===V.length?e:Au(V)?_0(V,e[0])?e:[V,Eg,e]:K_(V)!==Eg?[e,"and",V]:xy(V,e,!0)}function $x(V,e){return null!==V&&0!==V.length&&(Au(V)?V[0]===e:V.some(t=>(Au(t)||C_(t))&&$x(t,e)))}var Cy=function(V,e,t){if(Array.isArray(e)){var n=e.length-1;V.empty(),e.forEach((p,P)=>{(0,j.A)("<span>").addClass(o0).text(p).appendTo(V),P!==n&&(0,j.A)("<span>").addClass(my).text(t&&t.valueSeparator?t.valueSeparator:"|").addClass(gy).appendTo(V)})}else V.text(e||v.A.format("dxFilterBuilder-enterValueText"))};function Kx(V){var e=function(n,p){return p?"".concat(p,"/").concat(n):n},t=V&&V.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(n,p,P){var J=[],fe=n.length-1;return n&&n.forEach((ke,Ue)=>{if(Au(ke)||C_(ke)){var Ze=w_(ke,P,[],"headerFilter");J.push(Ze)}else{var Ft=w_([p.dataField,"=",ke],P,[],"headerFilter");J.push(Ft)}Ue!==fe&&J.push("or")}),1===J.length?J[0]:J},editorTemplate(n,p){var P=(0,j.A)("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(p),J=(0,o.X)(!0,{},V.columnOption(n.field.dataField));return Cy(P,n.text&&n.text.split("|")),J.filterType="include",J.filterValues=n.value?n.value.slice():[],t.showHeaderFilterMenuBase({columnElement:P,column:J,apply(){n.setValue(this.filterValues),t.hideHeaderFilterMenu(),n.closeEditor()},onHidden(){n.closeEditor()},isFilterBuilder:!0}),p},customizeText:function(n,p){p=p||{};var{value:P}=n,J=V.columnOption(n.field.dataField),fe=J&&J.headerFilter,ke=J&&J.lookup,Ue=p.values||[P];if(fe&&fe.dataSource||ke&&ke.dataSource){var Ze=new xe.cY,Ft=p.items||new xe.cY;if(!p.items){J=(0,o.X)({},J,{filterType:"include",filterValues:Ue});var vi=t.getDataSource(J);vi.paginate=!1;var Li=new Va.q(vi),tn=Li.store().key();if(tn){var{values:On}=p;if(On&&On.length>1){var Qn=On.reduce((la,qo)=>(la.length&&la.push("or"),la.push([tn,"=",qo]),la),[]);Li.filter(Qn)}else Li.filter([tn,"=",n.value])}else n.field.calculateDisplayValue&&Et.A.log("W1017");p.items=Ft,Li.load().done(Ft.resolve)}return Ft.done(la=>{var qo=Ue.indexOf(n.value);Ze.resolve(function Xl(Es,ul){var Fd=[];return Es.forEach(Kc=>{if(Kc.items){var Bd=Xl(Kc.items,e(Kc.text,ul));Fd=Fd.concat(Bd)}Kc.selected&&Fd.push(e(Kc.text,ul))}),Fd}(la,null)[qo])}),Ze}return t.getHeaderItemText(P,J,0,V.option("headerFilter"))}}}function V1(V){var e=Kx(V);return(0,o.X)({},e,{calculateFilterExpression(t,n,p){var P=e.calculateFilterExpression(t,n,p);return P&&0!==P.length?"!"===P[0]?P:["!",P]:null},name:"noneof",icon:"unselectall",caption:v.A.format("dxFilterBuilder-filterOperationNoneOf")})}var H1=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],Sy="include",v0="exclude";function Em(V){return V.name||V.dataField}var Og=function(){return{filterType:Sy,filterValues:void 0}},Dy=function(V){var e=V.filterValues||[];return!mo.A.getGroupInterval(V)&&!(V.headerFilter&&V.headerFilter.dataSource)||1===e.length&&null===e[0]},Ey=function(V){if((0,m.O9)(V.filterValue)){var t=V.selectedFilterOperation||V.defaultFilterOperation||Tu(V);return[Em(V),t,V.filterValue]}return null},My=function(V){var e,t,{filterValues:n}=V;return n?(1===n.length&&Dy(V)&&!Array.isArray(n[0])?(e=V.filterType===v0?"<>":"=",t=n[0]):(e=V.filterType===v0?"noneof":"anyof",t=n),[Em(V),e,t]):null},Xx=function(V,e,t){var n=function(V,e){if(!V)return Og();var t,n=V[1],p=V[2],P=Array.isArray(p);if(!P&&!Dy(e))return Og();switch(n){case"anyof":case"=":t=Sy;break;case"noneof":case"<>":t=v0;break;default:return Og()}return{filterType:t,filterValues:P?p:[p]}}(t,e);V.columnOption(Em(e),n)},J_=function(V,e,t){var n,p=t?.[1],P=t?.[2],J=e.filterOperations||e.defaultFilterOperations;(!J||J.indexOf(p)>=0||p===e.defaultFilterOperation)&&H1.includes(p)&&null!==P?(p===e.defaultFilterOperation&&!(0,m.O9)(e.selectedFilterOperation)&&(p=e.selectedFilterOperation),n={filterValue:P,selectedFilterOperation:p}):n={filterValue:void 0,selectedFilterOperation:void 0},V.columnOption(Em(e),n)};En.registerModule("filterSync",{defaultOptions:()=>({filterValue:null,filterSyncEnabled:"auto"}),controllers:{filterSync:class Jx extends cn.Controller{init(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._dataController.isFilterSyncActive()&&(this._columnsController.isAllDataTypesDefined()?this._initSync():this._dataController.dataSourceChanged.add(()=>this._initSync()))}publicMethods(){return["getCustomFilterOperations"]}syncFilterValue(){var e=this,t=this._columnsController.getFilteringColumns();this._skipSyncColumnOptions=!0,t.forEach(n=>{var p=function Cw(V,e){return null===V||0===V.length?[]:Au(V)?_0(V,e)?[V]:[]:K_(V)!==Eg?[]:V.filter(p=>Au(p)&&_0(p,e))}(e.option("filterValue"),Em(n));if(1===p.length){var P=p[0];Xx(this._columnsController,n,P),J_(this._columnsController,n,P)}else(0,m.O9)(n.filterValues)&&Xx(this._columnsController,n,null),(0,m.O9)(n.filterValue)&&J_(this._columnsController,n,null)}),this._skipSyncColumnOptions=!1}_initSync(){var e=this._columnsController.getColumns(),t=this._dataController.pageIndex();if(function Ws(V){V.forEach(e=>{var t=Em(e);if(!(0,m.O9)(t)&&e.allowFiltering)throw new Et.A.Error("E1049",e.caption)})}(e),!this.option("filterValue")){var n=this._columnsController.getFilteringColumns(),p=this.getFilterValueFromColumns(n);this._silentOption("filterValue",p)}this.syncFilterValue(),this._dataController.pageIndex(t)}_getSyncFilterRow(e,t){var n=Ey(t);return(0,m.O9)(n)?Yx(e,n):yy(e,Em(t))}_getSyncHeaderFilter(e,t){var n=My(t);return n?Yx(e,n):yy(e,Em(t))}getFilterValueFromColumns(e){if(!this._dataController.isFilterSyncActive())return null;var t=["and"];return e&&e.forEach(n=>{var p=My(n),P=Ey(n);p&&Ov(p,t),P&&Ov(P,t)}),ig(t)}syncFilterRow(e,t){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),e))}syncHeaderFilter(e){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),e))}getCustomFilterOperations(){var e,V,t=null!==(e=this.option("filterBuilder.customOperations"))&&void 0!==e?e:[];return[(V=this.component,(0,o.X)(Kx(V),{name:"anyof",icon:"selectall",caption:v.A.format("dxFilterBuilder-filterOperationAnyOf")})),V1(this.component)].concat(t)}}},extenders:{controllers:{data:V=>class extends V{optionChanged(e){switch(e.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this._filterSyncController.syncFilterValue(),e.handled=!0;break;case"filterSyncEnabled":e.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var t=this._columnsController.getColumnByPath(e.fullName);if(t&&!this._filterSyncController._skipSyncColumnOptions){var n=this._parseColumnPropertyName(e.fullName);this._filterSyncController._skipSyncColumnOptions=!0,"filterType"===n?(v0===e.value||v0===e.previousValue)&&this._filterSyncController.syncHeaderFilter(t):"filterValues"===n?this._filterSyncController.syncHeaderFilter(t):["filterValue","selectedFilterOperation"].includes(n)&&this._filterSyncController.syncFilterRow(t,t.filterValue),this._filterSyncController._skipSyncColumnOptions=!1}}super.optionChanged(e);break;default:super.optionChanged(e)}}isFilterSyncActive(){var e=this.option("filterSyncEnabled");return"auto"===e?this.option("filterPanel.visible"):e}skipCalculateColumnFilters(){return((0,m.O9)(this.option("filterValue"))||this._filterSyncController._skipSyncColumnOptions)&&this.isFilterSyncActive()}_calculateAdditionalFilter(){if(!1===this.option("filterPanel.filterEnabled"))return super._calculateAdditionalFilter();var e=[super._calculateAdditionalFilter()],t=this._columnsController.getFilteringColumns(),n=this.option("filterValue");if(this.isFilterSyncActive()){var p=this._headerFilterController.getCurrentColumn(),P=this._applyFilterController.getCurrentColumnForFiltering(),J=p||P;(p||(0,m.O9)(P?.filterValue))&&n&&(n=yy(n,Em(J)))}var Ue=w_(n,t,this._filterSyncController.getCustomFilterOperations(),"filterBuilder");return Ue&&e.push(Ue),Ui.A.combineFilters(e)}_parseColumnPropertyName(e){var t=e.match(/.*\.(.*)/);return t?t[1]:null}clearFilter(e){this.component.beginUpdate(),arguments.length>0?("filterValue"===e&&this.option("filterValue",null),super.clearFilter(e)):(this.option("filterValue",null),super.clearFilter()),this.component.endUpdate()}_applyFilter(){return this._filterSyncController._skipSyncColumnOptions?(new xe.cY).resolve():super._applyFilter.apply(this,arguments)}}},views:{columnHeadersView:V=>class extends V{optionChanged(e){"filterValue"===e.name?this._updateHeaderFilterIndicators():super.optionChanged(e)}_isHeaderFilterEmpty(e){return this._dataController.isFilterSyncActive()?!$x(this.option("filterValue"),Em(e)):super._isHeaderFilterEmpty(e)}_needUpdateFilterIndicators(){return!this._dataController.isFilterSyncActive()}}}}});var Gp="dx-filterbuilder",S_="".concat(Gp,"-group"),Ay="".concat(S_,"-item"),_b="".concat(S_,"-content"),Qx="".concat(S_,"-operations"),Zx="".concat(S_,"-operation"),vb="".concat(Gp,"-action"),bb="".concat(vb,"-icon"),y0="".concat(Gp,"-text"),Jg="".concat(Gp,"-item-field"),z1="".concat(Gp,"-item-operation"),yb="".concat(Gp,"-item-value"),U1="".concat(Gp,"-item-value-text"),qx="".concat(Gp,"-overlay"),xb="".concat(Gp,"-operations"),Cb="".concat(Gp,"-fields"),wb="".concat(Gp,"-add-condition"),Sb="dx-state-active",Sw="".concat(Gp,"-menu-custom-operation"),x0="filterBuilder",Db="enter",C0=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],D_={and:"and",or:"or",notAnd:"!and",notOr:"!or"},Q_=kp(class{});class Eb extends De.A{_getDefaultOptions(){return(0,o.X)(super._getDefaultOptions(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:v.A.format("dxFilterBuilder-and"),or:v.A.format("dxFilterBuilder-or"),notAnd:v.A.format("dxFilterBuilder-notAnd"),notOr:v.A.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:v.A.format("dxFilterBuilder-filterOperationBetween"),equal:v.A.format("dxFilterBuilder-filterOperationEquals"),notEqual:v.A.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:v.A.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:v.A.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:v.A.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:v.A.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:v.A.format("dxFilterBuilder-filterOperationStartsWith"),contains:v.A.format("dxFilterBuilder-filterOperationContains"),notContains:v.A.format("dxFilterBuilder-filterOperationNotContains"),endsWith:v.A.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:v.A.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:v.A.format("dxFilterBuilder-filterOperationIsNotBlank")}})}_optionChanged(e){switch(e.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(e.value!==e.previousValue){var t=this._disableInvalidateForValue;t||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:e.value,previousValue:e.previousValue}),this._disableInvalidateForValue=t}break;default:super._optionChanged(e)}}getFilterExpression(){var e=this._getNormalizedFields();return w_(ig((0,o.X)(!0,[],this._model)),e,this._customOperations,x0)}_getNormalizedFields(){return function yw(V){return V.reduce((e,t)=>{if((0,m.O9)(t.dataField)){var n={};for(var p in t)t[p]&&fw.includes(p)&&(n[p]=t[p]);n.defaultCalculateFilterExpression=mo.A.defaultCalculateFilterExpression,(0,m.O9)(n.dataType)||(n.dataType=uy),(0,m.O9)(n.trueText)||(n.trueText=v.A.format("dxDataGrid-trueText")),(0,m.O9)(n.falseText)||(n.falseText=v.A.format("dxDataGrid-falseText")),e.push(n)}return e},[])}(this.option("fields"))}_updateFilter(){this._disableInvalidateForValue=!0;var t=ig((0,o.X)(!0,[],this._model)),n=ig(this._getModel(this.option("value")));JSON.stringify(n)!==JSON.stringify(t)&&this.option("value",t),this._disableInvalidateForValue=!1,this._fireContentReadyAction()}_init(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),super._init()}_initEditorFactory(){this._editorFactory=new Q_}_initCustomOperations(){this._customOperations=function g0(V,e,t){var n=(0,o.X)(!0,[],V),p=-1;return n.some((P,J)=>{if("between"===P.name)return p=J,!0}),-1!==p?n[p]=(0,o.X)(Px(e,t),n[p]):n.unshift(Px(e,t)),n}(this.option("customOperations"),this.option("filterOperationDescriptions.between"),this)}_getDefaultGroupOperation(){var e,t;return null!==(t=null===(e=this.option("groupOperations"))||void 0===e?void 0:e[0])&&void 0!==t?t:D_.and}_getModel(e){return ub(e,this._customOperations,this._getDefaultGroupOperation())}_initModel(){this._model=this._getModel(this.option("value"))}_initActions(){var e=this;e._actions={},C0.forEach(t=>{var n=(0,o.X)({},t.config);e._actions[t.name]=e._createActionByOption(t.name,n)})}executeAction(e,t){var n=this._actions[e];return n&&n(t)}_initMarkup(){this.$element().addClass(Gp),super._initMarkup(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())}_createConditionElement(e,t){return(0,j.A)("<div>").addClass(S_).append(this._createConditionItem(e,t))}_createGroupElementByCriteria(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,p=this._createGroupElement(e,t,n),P=p.find(".".concat(_b)),J=x_(e),fe=0;fe<J.length;fe++){var ke=J[fe];C_(ke)?this._createGroupElementByCriteria(ke,e,n+1).appendTo(P):Au(ke)&&this._createConditionElement(ke,e).appendTo(P)}return p}_createGroupElement(e,t,n){var p=(0,j.A)("<div>").addClass(Ay),P=(0,j.A)("<div>").addClass(_b),J=(0,j.A)("<div>").addClass(S_).append(p).append(P);return null!=t&&this._createRemoveButton(()=>{l0(t,e),J.remove(),this._updateFilter()}).appendTo(p),this._createGroupOperationButton(e).appendTo(p),this._createAddButton(()=>{var fe=Ux(this._getDefaultGroupOperation());Ov(fe,e),this._createGroupElement(fe,e,n+1).appendTo(P),this._updateFilter()},()=>{var ke=function vw(V,e){var t=[V.dataField,"",""];return fb(t,Tu(V),e),t}(this.option("fields")[0],this._customOperations);Ov(ke,e),this._createConditionElement(ke,e).appendTo(P),this._updateFilter()},n).appendTo(p),J}_createButton(e){return(0,j.A)("<div>").text(e)}_createGroupOperationButton(e){var t=this._getGroupOperations(e),n=function _w(V,e){var t=K_(V);return e.filter(n=>n.value===t)[0]}(e,t),p=n.text,P=t&&t.length<2?this._createButton(p).addClass("dx-state-disabled"):this._createButtonWithMenu({caption:p,menu:{items:t,displayExpr:"text",keyExpr:"value",onItemClick:J=>{n!==J.itemData&&(function Nx(V,e){var n,p;return function s0(V,e){-1!==e.indexOf("!")?$_(V)||function(t){var n=t.slice(0);t.length=0,t.push("!",n)}(V):$_(V)&&function(t){var n=x_(t);t.length=0,[].push.apply(t,n)}(V)}(V,e),function(p,P){for(n=0;n<p.length;n++)Array.isArray(p[n])||(p[n]=P)}(x_(V),e=-1===(p=e).indexOf("!")?p:p.substring(1)),V}(e,J.itemData.value),P.text(J.itemData.text),n=J.itemData,this._updateFilter())},onContentReady(J){J.component.selectItem(n)},cssClass:Qx}});return P.addClass(y0).addClass(Zx).attr("tabindex",0)}_createButtonWithMenu(e){var fe,t=this,n=function(){t.$element().find(".".concat(Sb)).removeClass(Sb),t.$element().find(".dx-overlay .dx-treeview").remove(),t.$element().find(".dx-overlay").remove()},p=this.option("rtlEnabled"),P=p?"right":"left",J=this._createButton(e.caption);return(0,o.X)(e.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:(fe=e.menu.onItemClick,function(ke){fe(ke),"dxclick"===ke.event.type&&n()}),onHiding(){J.removeClass(Sb)},position:{my:"".concat(P," top"),at:"".concat(P," bottom"),offset:"0 1",of:J,collision:"flip"},animation:null,onHidden(){n()},cssClass:"".concat(qx," ").concat(e.menu.cssClass),rtlEnabled:p}),e.popup={onShown(ke){var Ue=(0,j.A)(ke.component.content()).find(".dx-treeview"),Ze=Ue.dxTreeView("instance");_.A.on(Ue,"keyup keydown",Ft=>{var vi=(0,h.YD)(Ft);("keydown"===Ft.type&&"tab"===vi||"keyup"===Ft.type&&("escape"===vi||vi===Db))&&(ke.component.hide(),_.A.trigger(e.menu.position.of,"focus"))}),Ze.focus(),Ze.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(J,()=>{n(),t._createPopupWithTreeView(e,t.$element()),J.addClass(Sb)}),J}_hasValueButton(e){var t=Kg(this._customOperations,e[1]);return t?!1!==t.hasValue:null!==e[2]}_createOperationButtonWithMenu(e,t){var n=this,p=function N1(V,e,t){var n=lb(V),p=!!V.lookup;return t.forEach(P=>{if(!V.filterOperations&&-1===n.indexOf(P.name)){var J=P&&P.dataTypes;(!p||!P.notForLookup)&&J&&J.indexOf(V.dataType||uy)>=0&&n.push(P.name)}}),n.map(P=>{var J=Kg(t,P);return J?{icon:J.icon||Lx,text:J.caption||(0,Fa.Bc)(J.name),value:J.name,isCustom:!0}:{icon:yo_getIconByFilterOperation(P)||Lx,text:Dm(P,e),value:P}})}(t,this.option("filterOperationDescriptions"),this._customOperations),P=function zx(V,e){for(var t=0;t<e.length;t++)if(e[t].value===V)return e[t];throw new Et.A.Error("E1048",V)}(jx(e),p),J=this._createButtonWithMenu({caption:P.text,menu:{items:p,displayExpr:"text",onItemRendered(fe){fe.itemData.isCustom&&(0,j.A)(fe.itemElement).addClass(Sw)},onContentReady(fe){fe.component.selectItem(P)},onItemClick:fe=>{if(P!==fe.itemData){fb(e,(P=fe.itemData).value,n._customOperations);var ke=J.siblings().filter(".".concat(yb));n._hasValueButton(e)?(0!==ke.length&&ke.remove(),n._createValueButton(e,t).appendTo(J.parent())):ke.remove(),J.text(P.text),this._updateFilter()}},cssClass:xb}}).addClass(y0).addClass(z1).attr("tabindex",0);return J}_createOperationAndValueButtons(e,t,n){this._createOperationButtonWithMenu(e,t).appendTo(n),this._hasValueButton(e)&&this._createValueButton(e,t).appendTo(n)}_createFieldButtonWithMenu(e,t,n){var p=this,P=this.option("allowHierarchicalFields"),J=f0(e,P),fe=d0(n.name||n.dataField,J),ke=function(Ze,Ft){return P?by(Ze,Ft):Ze.caption},Ue=this._createButtonWithMenu({caption:ke(fe,J),menu:{items:J,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:Ze=>{if(fe!==Ze.itemData){t[0]=(fe=Ze.itemData).name||fe.dataField,t[2]="object"===fe.dataType?null:"",fb(t,Tu(fe),p._customOperations),Ue.siblings().filter(".".concat(y0)).remove(),p._createOperationAndValueButtons(t,fe,Ue.parent());var Ft=ke(fe,Ze.component.option("items"));Ue.text(Ft),this._updateFilter()}},onContentReady(Ze){Ze.component.selectItem(fe)},cssClass:Cb}}).addClass(y0).addClass(Jg).attr("tabindex",0);return Ue}_createConditionItem(e,t){var n=(0,j.A)("<div>").addClass(Ay),p=this._getNormalizedFields(),P=d0(e[0],p);return this._createRemoveButton(()=>{l0(t,e),1===n.parent().children().length?n.parent().remove():n.remove(),this._updateFilter()}).appendTo(n),this._createFieldButtonWithMenu(p,e,P).appendTo(n),this._createOperationAndValueButtons(e,P,n),n}_getGroupOperations(e){var t=this.option("groupOperations"),n=this.option("groupOperationDescriptions");return(!t||!t.length)&&(t=[K_(e).replace("!","not")]),t.map(p=>({text:n[p],value:D_[p]}))}_createRemoveButton(e){var t=(0,j.A)("<div>").addClass(bb).addClass("dx-icon-remove").addClass(vb).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t}_createAddButton(e,t,n){var p,P=this.option("maxGroupLevel");return(0,m.O9)(P)&&n>=P?(p=this._createButton(),this._subscribeOnClickAndEnterKey(p,t)):p=this._createButtonWithMenu({menu:{items:[{caption:v.A.format("dxFilterBuilder-addCondition"),click:t},{caption:v.A.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick(J){J.itemData.click()},cssClass:wb}}),p.addClass(bb).addClass("dx-icon-plus").addClass(vb).attr("tabindex",0)}_createValueText(e,t,n){var p=this,P=(0,j.A)("<div>").html(" ").addClass(U1).attr("tabindex",0).appendTo(n),J=e[2],fe=Kg(p._customOperations,e[1]);return!fe&&t.lookup?hb(t,J,ke=>{Cy(P,ke)}):(0,xe.z7)(jf(t,J,fe)).done(ke=>{Cy(P,ke,fe)}),p._subscribeOnClickAndEnterKey(P,ke=>{"keyup"===ke.type&&ke.stopPropagation(),p._createValueEditorWithEvents(e,t,n)}),P}_updateConditionValue(e,t,n){e[2]!==t&&(e[2]=t),n(),this._updateFilter()}_addDocumentKeyUp(e,t){var n=!1,p=!1,P=L.A.getDocument(),J=ke=>{n||p?p=!1:t(ke)};_.A.on(P,"keyup",J);var fe=e.find("input");_.A.on(fe,"compositionstart",()=>{n=!0}),_.A.on(fe,"compositionend",()=>{n=!1,p=!0}),_.A.on(fe,"keydown",ke=>{229!==ke.which&&(p=!1)}),this._documentKeyUpHandler=J}_addDocumentClick(e,t){var n=L.A.getDocument(),p=P=>{this._isFocusOnEditorParts(e,P.target)||(_.A.trigger(e.find("input"),"change"),t())};_.A.on(n,"dxpointerdown",p),this._documentClickHandler=p}_isFocusOnEditorParts(e,t){var n=t||L.A.getActiveElement();return(0,j.A)(n).closest(e.children()).length||(0,j.A)(n).closest(".dx-dropdowneditor-overlay").length}_removeEvents(){var e=L.A.getDocument();(0,m.O9)(this._documentKeyUpHandler)&&_.A.off(e,"keyup",this._documentKeyUpHandler),(0,m.O9)(this._documentClickHandler)&&_.A.off(e,"dxpointerdown",this._documentClickHandler)}_dispose(){this._removeEvents(),super._dispose()}_createValueEditorWithEvents(e,t,n){var p=e[2],P=()=>(n.empty(),this._removeEvents(),this._createValueText(e,t,n)),J=()=>{this._updateConditionValue(e,p,()=>{P()})},fe={value:""===p?null:p,filterOperation:jx(e),setValue(Ue){p=null===Ue?"":Ue},closeEditor:J,text:n.text()};n.empty();var ke=this._createValueEditor(n,t,fe);_.A.trigger(ke.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(ke,J),this._addDocumentKeyUp(ke,Ue=>{var Ze=(0,h.YD)(Ue);if("tab"===Ze){if(this._isFocusOnEditorParts(ke))return;this._updateConditionValue(e,p,()=>{P(),Ue.shiftKey&&_.A.trigger(n.prev(),"focus")})}"escape"===Ze&&_.A.trigger(P(),"focus"),Ze===Db&&this._updateConditionValue(e,p,()=>{_.A.trigger(P(),"focus")})}),this._fireContentReadyAction()}_createValueButton(e,t){var n=(0,j.A)("<div>").addClass(y0).addClass(yb);return this._createValueText(e,t,n),n}_createValueEditor(e,t,n){var p=(0,j.A)("<div>").attr("tabindex",0).appendTo(e),P=Kg(this._customOperations,n.filterOperation),J=P&&P.editorTemplate?P.editorTemplate:t.editorTemplate;return J?this._getTemplate(J).render({model:(0,o.X)({field:t},n),container:p}):this._editorFactory.createEditor.call(this,p,(0,o.X)({},t,n,{parentType:x0})),p}_createPopupWithTreeView(e,t){var n=this,p=(0,j.A)("<div>").addClass(e.menu.cssClass).appendTo(t);this._createComponent(p,Fn,{onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate(P){var J=(0,j.A)("<div>").appendTo(P);n._createComponent(J,Ep,e.menu),this.repaint()},_ignoreFunctionValueDeprecation:!0,maxHeight:()=>cd(e.menu.position.of),visible:!0,focusStateEnabled:!1,hideOnParentScroll:this.option("closePopupOnTargetScroll"),hideOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1,_wrapperClassExternal:e.menu.cssClass})}_subscribeOnClickAndEnterKey(e,t){_.A.on(e,"dxclick",t),_.A.on(e,"keyup",n=>{(0,h.YD)(n)===Db&&t(n)})}}(0,gn.A)("dxFilterBuilder",Eb);const Mb=Eb;var G1=D(76121);En.registerModule("filterBuilder",{defaultOptions:()=>({filterBuilder:{groupOperationDescriptions:{and:v.A.format("dxFilterBuilder-and"),or:v.A.format("dxFilterBuilder-or"),notAnd:v.A.format("dxFilterBuilder-notAnd"),notOr:v.A.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:v.A.format("dxFilterBuilder-filterOperationBetween"),equal:v.A.format("dxFilterBuilder-filterOperationEquals"),notEqual:v.A.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:v.A.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:v.A.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:v.A.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:v.A.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:v.A.format("dxFilterBuilder-filterOperationStartsWith"),contains:v.A.format("dxFilterBuilder-filterOperationContains"),notContains:v.A.format("dxFilterBuilder-filterOperationNotContains"),endsWith:v.A.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:v.A.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:v.A.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}),views:{filterBuilderView:class Iy extends cn.View{init(){super.init(),this._columnsController=this.getController("columns"),this._filterSyncController=this.getController("filterSync")}optionChanged(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:super.optionChanged(e)}}_renderCore(){this._updatePopupOptions()}_updatePopupOptions(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()}_disposePopup(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)}_initPopup(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),vn.A,(0,o.X)({title:v.A.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:t=>e._getPopupContentTemplate(t),onOptionChanged(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden(){we(e),e._disposePopup()}}))}_getPopupContentTemplate(e){var t=(0,j.A)(e),n=(0,j.A)("<div>").appendTo((0,j.A)(e));this._filterBuilder=this._createComponent(n,Mb,(0,o.X)({value:this.option("filterValue"),fields:this._columnsController.getFilteringColumns()},this.option("filterBuilder"),{customOperations:this._filterSyncController.getCustomFilterOperations()})),this._createComponent(t,G1.A,{direction:"both"})}_getPopupToolbarItems(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:v.A.format("OK"),onClick(){var t=e._filterBuilder.option("value");e.option("filterValue",t),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:v.A.format("Cancel"),onClick(){e._filterBuilderPopup.hide()}}}]}}}});var Z_="filter-panel",Ob="".concat(Z_,"-text"),tC="".concat(Z_,"-checkbox"),iC="".concat(Z_,"-clear-filter"),j1="".concat(Z_,"-left");En.registerModule("filterPanel",{defaultOptions:()=>({filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:v.A.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:v.A.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:v.A.format("dxDataGrid-filterPanelFilterEnabledHint")}}}),views:{filterPanelView:class $1 extends cn.View{init(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._filterSyncController=this.getController("filterSync"),this._dataController.dataSourceChanged.add(()=>this.render())}isVisible(){return this.option("filterPanel.visible")&&this._dataController.dataSource()}_renderCore(){var e=this.element();if(e.empty(),this._columnsController.getColumns().length){e.addClass(this.addWidgetPrefix(Z_));var n=(0,j.A)("<div>").addClass(this.addWidgetPrefix(j1)).appendTo(e);this._renderFilterBuilderText(e,n)}}_renderFilterBuilderText(e,t){var n=this._getFilterElement(),p=this._getTextElement();if(this.option("filterValue")||this._filterValueBuffer){var P=this._getCheckElement(),J=this._getRemoveButtonElement();return t.append(P).append(n).append(p),void e.append(J)}t.append(n).append(p)}_getCheckElement(){var e=this,t=(0,j.A)("<div>").addClass(this.addWidgetPrefix(tC));return e._createComponent(t,Dd.A,{value:e.option("filterPanel.filterEnabled"),onValueChanged(n){e.option("filterPanel.filterEnabled",n.value)}}),t.attr("title",this.option("filterPanel.texts.filterEnabledHint")),t}_getFilterElement(){var e=this,t=(0,j.A)("<div>").addClass("dx-icon-filter");return _.A.on(t,"click",()=>e._showFilterBuilder()),W("filterPanel",e,t,void 0,()=>e._showFilterBuilder()),e._addTabIndexToElement(t),t}_getTextElement(){var n,e=this,t=(0,j.A)("<div>").addClass(e.addWidgetPrefix(Ob)),p=e.option("filterValue");return p?(0,xe.z7)(e.getFilterText(p,this._filterSyncController.getCustomFilterOperations())).done(P=>{var J=e.option("filterPanel.customizeText");if(J){var fe=J({component:e.component,filterValue:p,text:P});"string"==typeof fe&&(P=fe)}t.text(P)}):(n=e.option("filterPanel.texts.createFilter"),t.text(n)),_.A.on(t,"click",()=>e._showFilterBuilder()),W("filterPanel",e,t,void 0,()=>e._showFilterBuilder()),e._addTabIndexToElement(t),t}_showFilterBuilder(){this.option("filterBuilderPopup.visible",!0)}_getRemoveButtonElement(){var e=this,t=()=>e.option("filterValue",null),n=(0,j.A)("<div>").addClass(e.addWidgetPrefix(iC)).text(e.option("filterPanel.texts.clearFilter"));return _.A.on(n,"click",t),W("filterPanel",this,n,void 0,t),e._addTabIndexToElement(n),n}_addTabIndexToElement(e){if(!this.option("useLegacyKeyboardNavigation")){var t=this.option("tabindex")||0;e.attr("tabindex",t)}}optionChanged(e){switch(e.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),e.handled=!0;break;case"filterPanel":this._invalidate(),e.handled=!0;break;default:super.optionChanged(e)}}_getConditionText(e,t,n){var p="[".concat(e,"] ").concat(t);return(0,m.O9)(n)&&(p+=n),p}_getValueMaskedText(e){return Array.isArray(e)?"('".concat(e.join("', '"),"')"):" '".concat(e,"'")}_getValueText(e,t,n){var p=new xe.cY,P=t&&t.customizeText;if((0,m.O9)(n)||P)if(!P&&e.lookup)hb(e,n,fe=>{p.resolve(this._getValueMaskedText(fe))});else{var J=Array.isArray(n)?n:Ui.A.getDisplayValue(e,n,null);(0,xe.z7)(jf(e,J,t,"filterPanel")).done(fe=>{p.resolve(this._getValueMaskedText(fe))})}else p.resolve("");return p.promise()}getConditionText(e,t){var fe,n=this,p=e[1],P=new xe.cY,J=Kg(t.customOperations,p),ke=d0(e[0],t.columns),Ue=ke.caption||"",Ze=e[2];return fe=J?J.caption||(0,Fa.Bc)(J.name):Dm(null===Ze?"="===p?"isblank":"isnotblank":p,t.filterOperationDescriptions),this._getValueText(ke,J,Ze).done(Ft=>{P.resolve(n._getConditionText(Ue,fe,Ft))}),P}getGroupText(e,t,n){var p=this,P=new xe.cY,J=[],fe=K_(e);return e.forEach(ke=>{Au(ke)?J.push(p.getConditionText(ke,t)):C_(ke)&&J.push(p.getGroupText(ke,t,!0))}),xe.z7.apply(this,J).done(function(){for(var ke,Ue=arguments.length,Ze=new Array(Ue),Ft=0;Ft<Ue;Ft++)Ze[Ft]=arguments[Ft];if(fe.startsWith("!")){var vi=t.groupOperationDescriptions["not".concat(fe.substring(1,2).toUpperCase()).concat(fe.substring(2))].split(" ");ke="".concat(vi[0]," ").concat(Ze[0])}else ke=Ze.join(" ".concat(t.groupOperationDescriptions[fe]," "));n&&(ke="(".concat(ke,")")),P.resolve(ke)}),P}getFilterText(e,t){var n={customOperations:t,columns:this._columnsController.getFilteringColumns(),filterOperationDescriptions:this.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:this.option("filterBuilder.groupOperationDescriptions")};return Au(e)?this.getConditionText(e,n):this.getGroupText(e,n)}}},extenders:{controllers:{data:V=>class extends V{optionChanged(e){"filterPanel"===e.name?(this._applyFilter(),e.handled=!0):super.optionChanged(e)}}}}});var ky="search-panel",Tb="search-text";function rC(V){var e;return!!(null!==(e=V.allowSearch)&&void 0!==e?e:V.allowFiltering)}function q_(V,e){var{lookup:t}=V;return V.parseValue?t?V.parseValue.call(t,e):V.parseValue(e):e}En.registerModule("search",{defaultOptions:()=>({searchPanel:{visible:!1,width:160,placeholder:v.A.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}),extenders:{controllers:{data:V=>class extends V{optionChanged(e){switch(e.fullName){case"searchPanel.text":case"searchPanel":this._applyFilter(),e.handled=!0;break;default:super.optionChanged(e)}}publicMethods(){return super.publicMethods().concat(["searchByText"])}_calculateAdditionalFilter(){var e=super._calculateAdditionalFilter(),t=this.calculateSearchFilter(this.option("searchPanel.text"));return Ui.A.combineFilters([e,t])}searchByText(e){this.option("searchPanel.text",e)}calculateSearchFilter(e){var t,n,J,p=this._columnsController.getColumns(),P=this.option("searchPanel.searchVisibleColumnsOnly"),fe=[];if(!e)return null;function ke(Ze){for(var Ft=(0,aa.Hz)(J.valueExpr),vi=0;vi<Ze.length;vi++){var Li=Ft(Ze[vi]);fe.push(n.createFilterExpression(Li,null,"search"))}}for(t=0;t<p.length;t++)if(n=p[t],(!P||n.visible)&&rC(n)&&n.calculateFilterExpression){J=n.lookup;var Ue=q_(n,e);J&&J.items?(0,Ia.A)(J.items).filter(n.createFilterExpression.call({dataField:J.displayExpr,dataType:J.dataType,calculateFilterExpression:n.calculateFilterExpression},Ue,null,"search")).enumerate().done(ke):void 0!==Ue&&fe.push(n.createFilterExpression(Ue,null,"search"))}return 0===fe.length?["!"]:Ui.A.combineFilters(fe,"or")}}},views:{headerPanel:V=>class extends V{optionChanged(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this.getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else super.optionChanged(e)}_getToolbarItems(){var e=super._getToolbarItems();return this._prepareSearchItem(e)}_prepareSearchItem(e){var t=this,n=this._dataController,p=this.option("searchPanel");return p&&p.visible&&e.push({template(J,fe,ke){var Ue=(0,j.A)("<div>").addClass(t.addWidgetPrefix(ky)).appendTo(ke);t._editorFactoryController.createEditor(Ue,{width:p.width,placeholder:p.placeholder,parentType:"searchPanel",value:t.option("searchPanel.text"),updateValueTimeout:700,setValue(Ze){n.searchByText(Ze)},editorOptions:{inputAttr:{"aria-label":v.A.format("".concat(t.component.NAME,"-ariaSearchInGrid"))}}}),t.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40}),e}getSearchTextEditor(){var e=this,t=e.element(),n=t.find(".".concat(e.addWidgetPrefix(ky))).filter(function(){return(0,j.A)(this).closest(".".concat(e.addWidgetPrefix("header-panel"))).is(t)});return n.length?n.dxTextBox("instance"):null}isVisible(){var e=this.option("searchPanel");return super.isVisible()||!!e?.visible}},rowsView:V=>class extends V{init(){super.init.apply(this,arguments),this._searchParams=[],this._dataController=this.getController("data")}dispose(){clearTimeout(this._highlightTimer),super.dispose()}_getFormattedSearchText(e,t){var n=q_(e,t),p=Ui.A.getFormatOptionsByColumn(e,"search");return Ui.A.formatValue(n,p)}_getStringNormalizer(){var e,t,n,p,P=this.option("searchPanel.highlightCaseSensitive"),J=null===(t=null===(e=this._dataController)||void 0===e?void 0:e.getDataSource)||void 0===t?void 0:t.call(e),fe=null===(p=null===(n=J?.loadOptions)||void 0===n?void 0:n.call(J))||void 0===p?void 0:p.langParams;return ke=>(0,aa.ao)(ke,P,fe)}_findHighlightingTextNodes(e,t,n){var P,p=t.parent(),J=this._getStringNormalizer(),fe=J(n),ke=[];if(p.length){if(e)if(e.groupIndex>=0&&!e.showWhenGrouped)P=t;else{var Ue=this._columnsController.getVisibleIndex(e.index);P=p.children("td").eq(Ue).find("*")}}else p=(0,j.A)("<div>").append(t);return(P=P?.length?P:p.find("*")).each((Ze,Ft)=>{for(var vi,Li,tn=(0,j.A)(Ft).contents(),On=0;On<tn.length;On++){var Qn=tn.get(On);3===Qn.nodeType&&J(null!==(Li=null!==(vi=Qn.textContent)&&void 0!==vi?vi:Qn.nodeValue)&&void 0!==Li?Li:"").includes(fe)&&ke.push(Qn)}}),ke}_highlightSearchTextCore(e,t){var n=(0,j.A)("<span>").addClass(this.addWidgetPrefix(Tb)),p=e.text(),P=e[0],J=this._getStringNormalizer(),fe=J(p).indexOf(J(t));if(fe>=0)return P.textContent?P.textContent=p.substr(0,fe):P.nodeValue=p.substr(0,fe),e.after(n.text(p.substr(fe,t.length))),e=(0,j.A)(L.A.createTextNode(p.substr(fe+t.length))).insertAfter(n),this._highlightSearchTextCore(e,t)}_highlightSearchText(e,t,n){var p=this,P=this._getStringNormalizer(),J=p.option("searchPanel.text");t&&n&&(J=J&&p._getFormattedSearchText(n,J)),J&&p.option("searchPanel.highlightSearchText")&&p._findHighlightingTextNodes(n,e,J).forEach(ke=>{t?P((0,j.A)(ke).text())===P(J??"")&&(0,j.A)(ke).replaceWith((0,j.A)("<span>").addClass(p.addWidgetPrefix(Tb)).text((0,j.A)(ke).text())):p._highlightSearchTextCore((0,j.A)(ke),J)})}_renderCore(){var e=super._renderCore.apply(this,arguments);return(this.option().rowTemplate||this.option("dataRowTemplate"))&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(()=>{this._highlightSearchText(this.getTableElement())})):this._highlightSearchText(this.getTableElement())),e}_updateCell(e,t){var{column:n}=t,P="string"!==(n.lookup&&n.lookup.dataType||n.dataType);rC(n)&&!t.isOnForm&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(()=>{this._searchParams.forEach(J=>{this._highlightSearchText.apply(this,J)}),this._searchParams=[]})),this._searchParams.push([e,P,n])):this._highlightSearchText(e,P,n)),super._updateCell(e,t)}}}}});var Zg=D(18887);class aC extends Zg.A{_optionChanged(e){switch(e.name){case"pageIndex":var t=this.option("pageIndexChanged");t&&t(e.value);break;case"pageSize":var n=this.option("pageSizeChanged");n&&n(e.value)}super._optionChanged(e)}}var Wp=D(98587),rl=D(1522),Yc=D(56806),S0=D(10348),Py=D(10505),Tw=D(99228);function Tg(V,e){var t,n=null!==(t=(0,Py.A)(e))&&void 0!==t?t:{};return(0,Tw.R)(n[V])}function D0(V){return Tg("marginLeft",V)+Tg("marginRight",V)+Tg("width",V)}function E0(V){return Tg("minWidth",V)}var Ab=["contentTemplate","pagerProps"];var M0={},Aw=V=>V&&(V.defaultProps?e=>(0,rl._B)((0,rl.sO)(2,V,(0,Nt.A)({},e))):V);let Iw=(()=>{class V extends Yc.JP{constructor(t){super(t),this.parentRef=(0,rl._3)(),this.pageSizesRef=(0,rl._3)(),this.infoTextRef=(0,rl._3)(),this.pagesRef=(0,rl._3)(),this.actualIsLargeDisplayMode=!0,this.actualInfoTextVisible=!0,this.state={infoTextVisible:!0,isLargeDisplayMode:!0},this.subscribeToResize=this.subscribeToResize.bind(this),this.effectUpdateChildProps=this.effectUpdateChildProps.bind(this),this.updateAdaptivityProps=this.updateAdaptivityProps.bind(this)}createEffects(){return[new Yc.Lt(this.subscribeToResize,[this.state.infoTextVisible,this.state.isLargeDisplayMode]),new Yc.Lt(this.effectUpdateChildProps,[this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])]}updateEffects(){var t,n;null===(t=this._effects[0])||void 0===t||t.update([this.state.infoTextVisible,this.state.isLargeDisplayMode]),null===(n=this._effects[1])||void 0===n||n.update([this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])}subscribeToResize(){var t=()=>{this.parentWidth>0&&this.updateAdaptivityProps()};return S0.A.add(t),()=>{S0.A.remove(t)}}effectUpdateChildProps(){this.parentWidth>0&&this.updateAdaptivityProps()}get contentAttributes(){var{className:t,displayMode:n,gridCompatibility:p,hasKnownLastPage:P,infoText:J,label:fe,lightModeEnabled:ke,maxPagesCount:Ue,onKeyDown:Ze,pageCount:Ft,pageIndex:vi,pageIndexChange:Li,pageSize:tn,pageSizeChange:On,pageSizes:Qn,pagesCountText:zr,pagesNavigatorVisible:la,rtlEnabled:qo,showInfo:Xl,showNavigationButtons:Es,showPageSizes:ul,totalCount:Fd,visible:Kc}=this.props.pagerProps;return(0,Nt.A)({},this.restAttributes,{pageSize:tn,pageIndex:vi,pageIndexChange:Li,pageSizeChange:On,gridCompatibility:p,className:t,showInfo:Xl,infoText:J,lightModeEnabled:ke,displayMode:n,maxPagesCount:Ue,pageCount:Ft,pagesCountText:zr,visible:Kc,hasKnownLastPage:P,pagesNavigatorVisible:la,showPageSizes:ul,pageSizes:Qn,rtlEnabled:qo,showNavigationButtons:Es,totalCount:Fd,onKeyDown:Ze,label:fe})}get parentWidth(){return this.parentRef.current?D0(this.parentRef.current):0}updateAdaptivityProps(){var t=function lC(V){var{info:e,pageSizes:t,pages:n,parent:p}=V,P=function oC(V){var e=Tg("paddingLeft",V)+Tg("paddingRight",V);return Tg("width",V)-e}(p),J=D0(t),fe=D0(e),ke=D0(n);return{parent:P,pageSizes:J,info:fe+Tg("marginLeft",e)+Tg("marginRight",e),pages:ke}}({parent:this.parentRef.current,pageSizes:this.pageSizesRef.current,info:this.infoTextRef.current,pages:this.pagesRef.current});if(this.actualInfoTextVisible===this.state.infoTextVisible&&this.actualIsLargeDisplayMode===this.state.isLargeDisplayMode){var n=!(0,m.O9)(this.elementsWidth);n&&(this.elementsWidth={}),(n||this.state.isLargeDisplayMode)&&(this.elementsWidth.pageSizes=t.pageSizes,this.elementsWidth.pages=t.pages),(n||this.state.infoTextVisible)&&(this.elementsWidth.info=t.info),this.actualIsLargeDisplayMode=function Ib(V){var{pageSizes:e,pages:t,parent:n}=V;return n-(e+t)>0}((0,Nt.A)({parent:t.parent},{pageSizes:this.elementsWidth.pageSizes,pages:this.elementsWidth.pages})),this.actualInfoTextVisible=function sC(V){var{info:e,pageSizes:t,pages:n,parent:p}=V;return p-(t+n+e)>0}((0,Nt.A)({},t,{info:this.elementsWidth.info})),this.setState(p=>({infoTextVisible:this.actualInfoTextVisible})),this.setState(p=>({isLargeDisplayMode:this.actualIsLargeDisplayMode}))}}get restAttributes(){return(0,Wp.A)(this.props,Ab)}render(){var t=this.props;return(V=>{var{contentAttributes:e,infoTextRef:t,infoTextVisible:n,isLargeDisplayMode:p,pageSizesRef:P,pagesRef:J,parentRef:fe,props:{contentTemplate:ke}}=V;return ke((0,Nt.A)({rootElementRef:fe,pageSizesRef:P,infoTextRef:t,pagesRef:J,infoTextVisible:n,isLargeDisplayMode:p},e))})({props:(0,Nt.A)({},t,{contentTemplate:Aw(t.contentTemplate)}),infoTextVisible:this.state.infoTextVisible,isLargeDisplayMode:this.state.isLargeDisplayMode,parentRef:this.parentRef,pageSizesRef:this.pageSizesRef,infoTextRef:this.infoTextRef,pagesRef:this.pagesRef,contentAttributes:this.contentAttributes,parentWidth:this.parentWidth,updateAdaptivityProps:this.updateAdaptivityProps,restAttributes:this.restAttributes})}}return V.defaultProps=M0,V})();var dC={gridCompatibility:!0,showInfo:!1,displayMode:"adaptive",maxPagesCount:10,pageCount:10,visible:!0,hasKnownLastPage:!0,pagesNavigatorVisible:"auto",showPageSizes:!0,pageSizes:Object.freeze([5,10]),showNavigationButtons:!1,totalCount:0,get label(){return v.A.format("dxPager-ariaLabel")}},kw=Object.create(Object.prototype,(0,Nt.A)(Object.getOwnPropertyDescriptors(dC),Object.getOwnPropertyDescriptors({defaultPageSize:5,pageSizeChange:()=>{},defaultPageIndex:1,pageIndexChange:()=>{}}))),Lh=Object.create(Object.prototype,(0,Nt.A)(Object.getOwnPropertyDescriptors(dC),Object.getOwnPropertyDescriptors({pageSize:5,pageIndex:1}))),Fy=["infoText","pageCount","pageIndex","rootElementRef","totalCount"],ev="dx-info",Pw={get pageIndex(){return Lh.pageIndex},get pageCount(){return Lh.pageCount},get totalCount(){return Lh.totalCount}};let J1=(()=>{class V extends Yc.eh{constructor(t){super(t),this.state={}}get infoText(){var t;return(null!==(t=this.props.infoText)&&void 0!==t?t:"")||v.A.getFormatter("dxPager-infoText")()}get text(){var{pageCount:t,pageIndex:n,totalCount:p}=this.props;return(0,wo.GP)(this.infoText,(n+1).toString(),t.toString(),p.toString())}get restAttributes(){return(0,Wp.A)(this.props,Fy)}render(){return(V=>{var{props:{rootElementRef:e},text:t}=V;return(0,rl.bF)(1,"div",ev,t,0,null,null,e)})({props:(0,Nt.A)({},this.props),infoText:this.infoText,text:this.text,restAttributes:this.restAttributes})}}return V.defaultProps=Pw,V})();var uC=D(40410),Ag=(0,Yc.q6)(void 0),tv=["children","className","label","onClick","selected","tabIndex"],hC={className:"",label:"",tabIndex:0,selected:!1};let O0=(()=>{class V extends Yc.JP{constructor(t){super(t),this.state={},this.widgetRef=(0,rl._3)(),this.keyboardEffect=this.keyboardEffect.bind(this),this.subscribeToClick=this.subscribeToClick.bind(this)}get keyboardContext(){return this.context[Ag.id]?this.context[Ag.id]:Ag.defaultValue}createEffects(){return[new Yc.Lt(this.keyboardEffect,[this.keyboardContext,this.props.onClick]),new Yc.Lt(this.subscribeToClick,[this.props.onClick])]}updateEffects(){var t,n;null===(t=this._effects[0])||void 0===t||t.update([this.keyboardContext,this.props.onClick]),null===(n=this._effects[1])||void 0===n||n.update([this.props.onClick])}keyboardEffect(){return this.keyboardContext.registerKeyboardAction(this.widgetRef.current,this.props.onClick)}subscribeToClick(){return(0,uC.Ao)(this.widgetRef.current,this.props.onClick)}get restAttributes(){return(0,Wp.A)(this.props,tv)}render(){return(V=>{var{props:{children:e,className:t,label:n,selected:p,tabIndex:P},widgetRef:J}=V;return(0,rl.bF)(1,"div",t,e,0,{tabIndex:P,role:"button","aria-label":n,"aria-current":p?"page":void 0},null,J)})({props:(0,Nt.A)({},this.props),widgetRef:this.widgetRef,keyboardContext:this.keyboardContext,restAttributes:this.restAttributes})}}return V.defaultProps=hC,V})();var mu="dx-selection",Yf="dx-page-size",Q1="".concat(Yf," ").concat(mu),Ny=D(92243),Iv=["className","index","onClick","selected"],Pb={index:0,selected:!1,className:"dx-page"};let fC=(()=>{class V extends Yc.eh{constructor(t){super(t),this.state={}}get label(){return(0,wo.GP)(v.A.getFormatter("dxPager-page"),this.value)}get value(){return this.props.index+1}get className(){var{selected:t}=this.props;return(0,Ny.g)({["".concat(this.props.className)]:!!this.props.className,[mu]:!!t})}get restAttributes(){return(0,Wp.A)(this.props,Iv)}render(){return(V=>{var{className:e,label:t,props:{onClick:n,selected:p},value:P}=V;return(0,rl.sO)(2,O0,{className:e,label:t,onClick:n,selected:p,children:P})})({props:(0,Nt.A)({},this.props),label:this.label,value:this.value,className:this.className,restAttributes:this.restAttributes})}}return V.defaultProps=Pb,V})();var Ig=D(23435),Vy=["pageIndexes"],Fw=["maxPagesCount","pageCount","pageIndex","pageIndexChange"];function M_(V,e,t){return 1===V?"high":V+e===t-1?"low":"both"}function I0(V,e,t){var n=[],p=[];switch(t){case"none":n=[...V];break;case"both":n=[0,"low",...V,"high",e-1],p=V.slice(1,-1);break;case"high":n=[0,...V,"high",e-1],p=V.slice(0,-1);break;case"low":n=[0,"low",...V,e-1],p=V.slice(1)}return{slidingWindowIndexes:V,indexesForReuse:p,pageIndexes:n}}function bf(V,e,t,n){for(var p=[],P=0;P<e;P+=1)p.push(P+V);return I0(p,t,n)}var k0={get pageIndex(){return Lh.pageIndex},get maxPagesCount(){return Lh.maxPagesCount},get pageCount(){return Lh.pageCount}};let Bw=(()=>{class V extends Yc.eh{constructor(t){super(t),this.state={},this.canReuseSlidingWindow=this.canReuseSlidingWindow.bind(this),this.generatePageIndexes=this.generatePageIndexes.bind(this),this.isSlidingWindowMode=this.isSlidingWindowMode.bind(this),this.onPageClick=this.onPageClick.bind(this)}get config(){return this.context[Ig.Q.id]?this.context[Ig.Q.id]:Ig.Q.defaultValue}get slidingWindowState(){return this.slidingWindowStateHolder||{indexesForReuse:[],slidingWindowIndexes:[]}}canReuseSlidingWindow(t,n){var{indexesForReuse:p}=this.slidingWindowState,P=p.slice(-1)[0]<t-1,J=p.includes(n);return P&&J}generatePageIndexes(){var p,{pageCount:t,pageIndex:n}=this.props,{slidingWindowIndexes:P}=this.slidingWindowState,ke=bf(p=n===P[0]?n-1:n===P[P.length-1]?n+2-4:n<4?1:n>=t-4?t-4-1:n-1,4,t,M_(p,4,t)),{pageIndexes:Ue}=ke,Ze=(0,Wp.A)(ke,Vy);return this.slidingWindowStateHolder=Ze,Ue}isSlidingWindowMode(){var{maxPagesCount:t,pageCount:n}=this.props;return n<=4||n<=t}onPageClick(t){this.props.pageIndexChange(t)}get pageIndexes(){var{pageCount:t}=this.props;if(this.isSlidingWindowMode())return bf(0,t,t,"none").pageIndexes;if(this.canReuseSlidingWindow(t,this.props.pageIndex)){var{slidingWindowIndexes:n}=this.slidingWindowState;return I0(n,t,M_(n[0],4,t)).pageIndexes}return this.generatePageIndexes()}get pages(){var t,{pageIndex:n}=this.props,p=J=>{var fe="low"===J||"high"===J?null:{index:J,onClick:()=>this.onPageClick(J),selected:n===J};return{key:J.toString(),pageProps:fe}};return(null!==(t=this.config)&&void 0!==t&&t.rtlEnabled?[...this.pageIndexes].reverse():this.pageIndexes).map(J=>p(J))}get restAttributes(){return(0,Wp.A)(this.props,Fw)}render(){return(V=>{var{pages:e}=V,t=e.map(n=>{var{key:p,pageProps:P}=n;return P?(0,rl.sO)(2,fC,{index:P.index,selected:P.selected,onClick:P.onClick},p):(0,rl.bF)(1,"div","dx-separator",". . .",16,null,p)});return(0,rl.nl)(t,0)})({props:(0,Nt.A)({},this.props),config:this.config,pageIndexes:this.pageIndexes,pages:this.pages,restAttributes:this.restAttributes})}}return V.defaultProps=k0,V})();var O_=D(8854),Hy=D(49060),mm={hoverStateEnabled:!0,activeStateEnabled:!0,get focusStateEnabled(){return"desktop"===Ca.A.real().deviceType&&!Ca.A.isSimulator()}},iv={label:"",get labelMode(){return(0,fn.gx)((0,fn.ss)())?"floating":"static"}},Nw=["accessKey","activeStateEnabled","className","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","inputAttr","invalidValueMessage","isDirty","isValid","label","labelMode","max","min","mode","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","showSpinButtons","step","tabIndex","useLargeSpinButtons","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],yf=Object.create(Object.prototype,(0,Nt.A)(Object.getOwnPropertyDescriptors(Hy.eH),Object.getOwnPropertyDescriptors({defaultValue:0,isReactComponentWrapper:!0}))),Iu={get defaultValue(){return yf.defaultValue},get readOnly(){return yf.readOnly},get name(){return yf.name},get validationError(){return yf.validationError},get validationErrors(){return yf.validationErrors},get validationMessageMode(){return yf.validationMessageMode},get validationMessagePosition(){return yf.validationMessagePosition},get validationStatus(){return yf.validationStatus},get isValid(){return yf.isValid},get isDirty(){return yf.isDirty},get inputAttr(){return yf.inputAttr},get className(){return yf.className},get activeStateEnabled(){return mm.activeStateEnabled},get disabled(){return yf.disabled},get focusStateEnabled(){return mm.focusStateEnabled},get hoverStateEnabled(){return mm.hoverStateEnabled},get tabIndex(){return yf.tabIndex},get visible(){return yf.visible},get label(){return iv.label},get labelMode(){return iv.labelMode},isReactComponentWrapper:!0};let R0=(()=>{class V extends Yc.eh{constructor(t){super(t),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,Nt.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){var t=(0,Nt.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,Wp.A)(t,Nw)}render(){return(V=>{var{componentProps:e,restAttributes:t}=V;return(0,rl._B)((0,rl.sO)(2,O_.FU,(0,Nt.A)({componentType:Bm.A,componentProps:e,templateNames:[]},t)))})({props:(0,Nt.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return V.defaultProps=Iu,V})();function P0(V,e){return V+10*Math.max(...e).toString().length}var rv=["inputAttr","pageCount","pageIndex","pageIndexChange","pagesCountText"],kv="".concat(ev," dx-info-text"),Lb="dx-page-index",zy={inputAttr:Object.freeze({"aria-label":v.A.format("dxPager-ariaPageNumber")})},_C={get pageIndex(){return Lh.pageIndex},get pageCount(){return Lh.pageCount},get inputAttr(){return zy.inputAttr}};let Bb=(()=>{class V extends Yc.JP{constructor(t){super(t),this.pageIndexRef=(0,rl._3)(),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this),this.selectLastPageIndex=this.selectLastPageIndex.bind(this),this.valueChange=this.valueChange.bind(this)}createEffects(){return[new Yc.Lt(this.updateWidth,[this.state.minWidth])]}updateEffects(){var t;null===(t=this._effects[0])||void 0===t||t.update([this.state.minWidth])}updateWidth(){var t,n=null===(t=this.pageIndexRef.current)||void 0===t?void 0:t.querySelector(".".concat(Lb));this.setState(p=>({minWidth:n&&E0(n)||p.minWidth}))}get value(){return this.props.pageIndex+1}get width(){var{pageCount:t}=this.props;return P0(this.state.minWidth,[t])}get pagesCountText(){var t;return(null!==(t=this.props.pagesCountText)&&void 0!==t?t:"")||v.A.getFormatter("dxPager-pagesCountText")()}selectLastPageIndex(){this.props.pageIndexChange(this.props.pageCount-1)}valueChange(t){this.props.pageIndexChange(t-1)}get restAttributes(){return(0,Wp.A)(this.props,rv)}render(){return(V=>{var{pageIndexRef:e,pagesCountText:t,props:{inputAttr:n,pageCount:p},selectLastPageIndex:P,value:J,valueChange:fe,width:ke}=V;return(0,rl.bF)(1,"div","dx-light-pages",[(0,rl.sO)(2,R0,{className:Lb,min:1,max:Math.max(p,J),width:ke,value:J,valueChange:fe,inputAttr:n}),(0,rl.bF)(1,"span",kv,t,0),(0,rl.sO)(2,fC,{className:"dx-pages-count",selected:!1,index:p-1,onClick:P})],4,null,null,e)})({props:(0,Nt.A)({},this.props),pageIndexRef:this.pageIndexRef,value:this.value,width:this.width,pagesCountText:this.pagesCountText,selectLastPageIndex:this.selectLastPageIndex,valueChange:this.valueChange,restAttributes:this.restAttributes})}}return V.defaultProps=_C,V})();var qg=["hasKnownLastPage","isLargeDisplayMode","maxPagesCount","pageCount","pageIndex","pageIndexChange","pagesCountText","showNavigationButtons","totalCount"],Nb="dx-navigate-button",$f="dx-prev-button",Uy="dx-next-button",vC="dx-button-disable",yC={nextEnabledClass:"".concat(Nb," ").concat(Uy),prevEnabledClass:"".concat(Nb," ").concat($f),nextDisabledClass:"".concat(vC," ").concat(Nb," ").concat(Uy),prevDisabledClass:"".concat(vC," ").concat(Nb," ").concat($f)},Vw={next:"prev",prev:"next"},Gy={get pageIndex(){return Lh.pageIndex},get maxPagesCount(){return Lh.maxPagesCount},get pageCount(){return Lh.pageCount},get hasKnownLastPage(){return Lh.hasKnownLastPage},get showNavigationButtons(){return Lh.showNavigationButtons},get totalCount(){return Lh.totalCount},get isLargeDisplayMode(){return true}};let Wy=(()=>{class V extends Yc.eh{constructor(t){super(t),this.state={},this.__getterCache={},this.pageIndexChange=this.pageIndexChange.bind(this),this.getButtonProps=this.getButtonProps.bind(this),this.canNavigateToPage=this.canNavigateToPage.bind(this),this.getNextPageIndex=this.getNextPageIndex.bind(this),this.canNavigateTo=this.canNavigateTo.bind(this),this.navigateToPage=this.navigateToPage.bind(this)}get config(){return this.context[Ig.Q.id]?this.context[Ig.Q.id]:Ig.Q.defaultValue}pageIndexChange(t){this.canNavigateToPage(t)&&this.props.pageIndexChange(t)}getButtonProps(t){var n,p=null!==(n=this.config)&&void 0!==n&&n.rtlEnabled?Vw[t]:t,P=this.canNavigateTo(p);return{className:yC["".concat(t).concat(P?"Enabled":"Disabled","Class")],tabIndex:P?0:-1,navigate:()=>this.navigateToPage(p)}}canNavigateToPage(t){return this.props.hasKnownLastPage?t>=0&&t<=this.props.pageCount-1:t>=0}getNextPageIndex(t){return this.props.pageIndex+function Hw(V){return"next"===V?1:-1}(t)}canNavigateTo(t){return this.canNavigateToPage(this.getNextPageIndex(t))}navigateToPage(t){this.pageIndexChange(this.getNextPageIndex(t))}get renderPrevButton(){var{isLargeDisplayMode:t,showNavigationButtons:n}=this.props;return!t||n}get renderNextButton(){return this.renderPrevButton||!this.props.hasKnownLastPage}get prevButtonProps(){return void 0!==this.__getterCache.prevButtonProps?this.__getterCache.prevButtonProps:this.__getterCache.prevButtonProps=this.getButtonProps("prev")}get nextButtonProps(){return void 0!==this.__getterCache.nextButtonProps?this.__getterCache.nextButtonProps:this.__getterCache.nextButtonProps=this.getButtonProps("next")}get restAttributes(){return(0,Wp.A)(this.props,qg)}componentWillUpdate(t,n,p){(this.context[Ig.Q.id]!==p[Ig.Q.id]||this.props.hasKnownLastPage!==t.hasKnownLastPage||this.props.pageCount!==t.pageCount||this.props.pageIndex!==t.pageIndex||this.props.pageIndexChange!==t.pageIndexChange)&&(this.__getterCache.prevButtonProps=void 0),(this.context[Ig.Q.id]!==p[Ig.Q.id]||this.props.hasKnownLastPage!==t.hasKnownLastPage||this.props.pageCount!==t.pageCount||this.props.pageIndex!==t.pageIndex||this.props.pageIndexChange!==t.pageIndexChange)&&(this.__getterCache.nextButtonProps=void 0)}render(){return(V=>{var{nextButtonProps:e,pageIndexChange:t,prevButtonProps:n,props:{isLargeDisplayMode:p,maxPagesCount:P,pageCount:J,pageIndex:fe,pagesCountText:ke},renderNextButton:Ue,renderPrevButton:Ze}=V;return(0,rl.nl)([Ze&&(0,rl.sO)(2,O0,{label:v.A.getFormatter("dxPager-prevPage")(),className:n.className,tabIndex:n.tabIndex,onClick:n.navigate}),p&&(0,rl.sO)(2,Bw,{maxPagesCount:P,pageCount:J,pageIndex:fe,pageIndexChange:t}),!p&&(0,rl.sO)(2,Bb,{pageCount:J,pageIndex:fe,pageIndexChange:t,pagesCountText:ke}),Ue&&(0,rl.sO)(2,O0,{label:v.A.getFormatter("dxPager-nextPage")(),className:e.className,tabIndex:e.tabIndex,onClick:e.navigate})],0)})({props:(0,Nt.A)({},this.props),config:this.config,pageIndexChange:this.pageIndexChange,renderPrevButton:this.renderPrevButton,renderNextButton:this.renderNextButton,prevButtonProps:this.prevButtonProps,nextButtonProps:this.nextButtonProps,restAttributes:this.restAttributes})}}return V.defaultProps=Gy,V})();var Pv=["accessKey","activeStateEnabled","className","dataSource","defaultValue","disabled","displayExpr","focusStateEnabled","height","hint","hoverStateEnabled","inputAttr","isDirty","isValid","label","labelMode","name","onClick","onFocusIn","onKeyDown","placeholder","readOnly","rtlEnabled","searchEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","valueExpr","visible","width"],Bh=Object.create(Object.prototype,(0,Nt.A)(Object.getOwnPropertyDescriptors(Hy.eH),Object.getOwnPropertyDescriptors({placeholder:"",hoverStateEnabled:!0,searchEnabled:!1,defaultValue:null,isReactComponentWrapper:!0}))),av={get placeholder(){return Bh.placeholder},get hoverStateEnabled(){return mm.hoverStateEnabled},get searchEnabled(){return Bh.searchEnabled},get defaultValue(){return Bh.defaultValue},get readOnly(){return Bh.readOnly},get name(){return Bh.name},get validationError(){return Bh.validationError},get validationErrors(){return Bh.validationErrors},get validationMessageMode(){return Bh.validationMessageMode},get validationMessagePosition(){return Bh.validationMessagePosition},get validationStatus(){return Bh.validationStatus},get isValid(){return Bh.isValid},get isDirty(){return Bh.isDirty},get inputAttr(){return Bh.inputAttr},get className(){return Bh.className},get activeStateEnabled(){return mm.activeStateEnabled},get disabled(){return Bh.disabled},get focusStateEnabled(){return mm.focusStateEnabled},get tabIndex(){return Bh.tabIndex},get visible(){return Bh.visible},get label(){return iv.label},get labelMode(){return iv.labelMode},isReactComponentWrapper:!0};let jy=(()=>{class V extends Yc.eh{constructor(t){super(t),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,Nt.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){var t=(0,Nt.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,Wp.A)(t,Pv)}render(){return(V=>{var{componentProps:e,restAttributes:t}=V;return(0,rl._B)((0,rl.sO)(2,O_.FU,(0,Nt.A)({componentType:Tf.A,componentProps:e,templateNames:["dropDownButtonTemplate","groupTemplate","itemTemplate"]},t)))})({props:(0,Nt.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return V.defaultProps=av,V})();var Yy=["inputAttr","pageSize","pageSizeChange","pageSizes","parentRef"],$y={inputAttr:Object.freeze({"aria-label":v.A.format("dxPager-ariaPageSize")})},CC={get pageSize(){return Lh.pageSize},get inputAttr(){return $y.inputAttr}};let zw=(()=>{class V extends Yc.JP{constructor(t){super(t),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this)}createEffects(){return[new Yc.Lt(this.updateWidth,[this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes,this.props.inputAttr])]}updateEffects(){var t;null===(t=this._effects[0])||void 0===t||t.update([this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes,this.props.inputAttr])}updateWidth(){this.setState(t=>({minWidth:E0(this.props.parentRef.current)||t.minWidth}))}get width(){return P0(this.state.minWidth,this.props.pageSizes.map(t=>t.value))}get restAttributes(){return(0,Wp.A)(this.props,Yy)}render(){return(V=>{var{props:{inputAttr:e,pageSize:t,pageSizeChange:n,pageSizes:p},width:P}=V;return(0,rl.sO)(2,jy,{displayExpr:"text",valueExpr:"value",dataSource:p,value:t,valueChange:n,width:P,inputAttr:e})})({props:(0,Nt.A)({},this.props),width:this.width,restAttributes:this.restAttributes})}}return V.defaultProps=CC,V})();var Uw=["pageSize","pageSizeChange","pageSizes"],eS={get pageSize(){return Lh.pageSize}};let tS=(()=>{class V extends Yc.eh{constructor(t){super(t),this.state={},this.__getterCache={},this.onPageSizeChange=this.onPageSizeChange.bind(this)}get pageSizesText(){return void 0!==this.__getterCache.pageSizesText?this.__getterCache.pageSizesText:this.__getterCache.pageSizesText=(()=>{var{pageSize:t,pageSizes:n}=this.props;return n.map((p,P)=>{var{text:J,value:fe}=p;return{className:(0,Ny.g)({[fe===t?Q1:Yf]:!0,"dx-first-child":0===P}),click:this.onPageSizeChange(fe),label:(0,wo.GP)(v.A.getFormatter("dxPager-pageSize"),fe||v.A.getFormatter("dxPager-pageSizesAllText")),text:J}})})()}onPageSizeChange(t){return()=>(this.props.pageSizeChange(t),this.props.pageSize)}get restAttributes(){return(0,Wp.A)(this.props,Uw)}componentWillUpdate(t,n,p){(this.props.pageSize!==t.pageSize||this.props.pageSizes!==t.pageSizes||this.props.pageSizeChange!==t.pageSizeChange)&&(this.__getterCache.pageSizesText=void 0)}render(){return(V=>{var{pageSizesText:e}=V;return(0,rl.nl)(e.map(t=>{var{className:n,click:p,label:P,text:J}=t;return(0,rl.sO)(2,O0,{className:n,label:P,onClick:p,children:J},J)}),0)})({props:(0,Nt.A)({},this.props),pageSizesText:this.pageSizesText,restAttributes:this.restAttributes})}}return V.defaultProps=eS,V})();var Gw=["isLargeDisplayMode","pageSize","pageSizeChange","pageSizes","rootElementRef"],iS={get pageSize(){return Lh.pageSize},get pageSizes(){return Lh.pageSizes},get isLargeDisplayMode(){return true}};let Yw=(()=>{class V extends Yc.JP{constructor(t){super(t),this.state={},this.htmlRef=(0,rl._3)(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this)}createEffects(){return[new Yc.Lt(this.setRootElementRef,[])]}setRootElementRef(){var{rootElementRef:t}=this.props;t&&(t.current=this.htmlRef.current)}get normalizedPageSizes(){return void 0!==this.__getterCache.normalizedPageSizes?this.__getterCache.normalizedPageSizes:this.__getterCache.normalizedPageSizes=(()=>{var{pageSizes:t}=this.props;return t.map(n=>"all"===n||0===n?{text:v.A.getFormatter("dxPager-pageSizesAllText")(),value:0}:{text:String(n),value:n})})()}get restAttributes(){return(0,Wp.A)(this.props,Gw)}componentWillUpdate(t,n,p){super.componentWillUpdate(),this.props.pageSizes!==t.pageSizes&&(this.__getterCache.normalizedPageSizes=void 0)}render(){return(V=>{var{htmlRef:e,normalizedPageSizes:t,props:{isLargeDisplayMode:n,pageSize:p,pageSizeChange:P}}=V;return(0,rl.bF)(1,"div","dx-page-sizes",[n&&(0,rl.sO)(2,tS,{pageSizes:t,pageSize:p,pageSizeChange:P}),!n&&(0,rl.sO)(2,zw,{parentRef:e,pageSizes:t,pageSize:p,pageSizeChange:P})],0,null,null,e)})({props:(0,Nt.A)({},this.props),htmlRef:this.htmlRef,normalizedPageSizes:this.normalizedPageSizes,restAttributes:this.restAttributes})}}return V.defaultProps=iS,V})();var Hb=D(7476),Ky=["className","displayMode","gridCompatibility","hasKnownLastPage","infoText","infoTextRef","infoTextVisible","isLargeDisplayMode","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pageSizesRef","pagesCountText","pagesNavigatorVisible","pagesRef","rootElementRef","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"],SC=Object.create(Object.prototype,(0,Nt.A)(Object.getOwnPropertyDescriptors(Lh),Object.getOwnPropertyDescriptors({infoTextVisible:!0,isLargeDisplayMode:!0})));let nS=(()=>{class V extends Yc.JP{constructor(t){super(t),this.state={},this.widgetRootElementRef=(0,rl._3)(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this),this.createFakeInstance=this.createFakeInstance.bind(this)}createEffects(){return[new Yc.Lt(this.setRootElementRef,[])]}getChildContext(){return(0,Nt.A)({},this.context,{[Ag.id]:this.keyboardAction||Ag.defaultValue})}setRootElementRef(){var{rootElementRef:t}=this.props;t&&(t.current=this.widgetRootElementRef.current)}createFakeInstance(){return{option:()=>!1,element:()=>this.widgetRootElementRef.current,_createActionByOption:()=>t=>{var n,p;null===(n=(p=this.props).onKeyDown)||void 0===n||n.call(p,t)}}}get keyboardAction(){return void 0!==this.__getterCache.keyboardAction?this.__getterCache.keyboardAction:this.__getterCache.keyboardAction={registerKeyboardAction:(t,n)=>me("pager",this.createFakeInstance(),t,void 0,n)}}get infoVisible(){var{infoTextVisible:t,showInfo:n}=this.props;return n&&t}get pageIndexSelectorVisible(){return 0!==this.props.pageSize}get normalizedDisplayMode(){var{displayMode:t,lightModeEnabled:n}=this.props;return"adaptive"===t&&void 0!==n?n?"compact":"full":t}get pagesContainerVisible(){return!!this.props.pagesNavigatorVisible&&this.props.pageCount>0}get pagesContainerVisibility(){if("auto"===this.props.pagesNavigatorVisible&&1===this.props.pageCount&&this.props.hasKnownLastPage)return"hidden"}get isLargeDisplayMode(){var t=this.normalizedDisplayMode;return"adaptive"===t?this.props.isLargeDisplayMode:"full"===t}get classes(){var t={["".concat(this.props.className)]:!!this.props.className,"dx-pager":!0,"dx-light-mode":!this.isLargeDisplayMode};return(0,Ny.g)(t)}get aria(){return{role:"navigation",label:this.props.label}}get restAttributes(){return(0,Wp.A)(this.props,Ky)}componentWillUpdate(t,n,p){super.componentWillUpdate(),this.props.onKeyDown!==t.onKeyDown&&(this.__getterCache.keyboardAction=void 0)}render(){return(V=>{var{aria:e,classes:t,infoVisible:n,isLargeDisplayMode:p,pageIndexSelectorVisible:P,pagesContainerVisibility:J,pagesContainerVisible:fe,props:{hasKnownLastPage:ke,infoText:Ue,infoTextRef:Ze,maxPagesCount:Ft,pageCount:vi,pageIndex:Li,pageIndexChange:tn,pageSize:On,pageSizeChange:Qn,pageSizes:zr,pageSizesRef:la,pagesCountText:qo,pagesRef:Xl,rtlEnabled:Es,showNavigationButtons:ul,showPageSizes:Fd,totalCount:Kc,visible:Bd},restAttributes:Nh,widgetRootElementRef:n_}=V;return(0,rl._B)((0,rl.sO)(2,Hb.x0,(0,Nt.A)({rootElementRef:n_,rtlEnabled:Es,classes:t,visible:Bd,aria:e},Nh,{children:[Fd&&(0,rl.sO)(2,Yw,{rootElementRef:la,isLargeDisplayMode:p,pageSize:On,pageSizeChange:Qn,pageSizes:zr}),fe&&(0,rl.bF)(1,"div","dx-pages",[n&&(0,rl.sO)(2,J1,{rootElementRef:Ze,infoText:Ue,pageCount:vi,pageIndex:Li,totalCount:Kc}),P&&(0,rl.bF)(1,"div","dx-page-indexes",(0,rl.sO)(2,Wy,{hasKnownLastPage:ke,isLargeDisplayMode:p,maxPagesCount:Ft,pageCount:vi,pageIndex:Li,pageIndexChange:tn,pagesCountText:qo,showNavigationButtons:ul,totalCount:Kc}),2,null,null,Xl)],0,{style:(0,Yc.gs)({visibility:J})})]})))})({props:(0,Nt.A)({},this.props),widgetRootElementRef:this.widgetRootElementRef,keyboardAction:this.keyboardAction,infoVisible:this.infoVisible,pageIndexSelectorVisible:this.pageIndexSelectorVisible,pagesContainerVisible:this.pagesContainerVisible,pagesContainerVisibility:this.pagesContainerVisibility,isLargeDisplayMode:this.isLargeDisplayMode,classes:this.classes,aria:this.aria,restAttributes:this.restAttributes})}}return V.defaultProps=SC,V})();var rS=["className","defaultPageIndex","defaultPageSize","displayMode","gridCompatibility","hasKnownLastPage","infoText","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pagesCountText","pagesNavigatorVisible","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"];let oS=(()=>{class V extends Yc.oe{constructor(t){super(t),this.__getterCache={},this.state={pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.props.defaultPageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.props.defaultPageIndex},this.pageIndexChange=this.pageIndexChange.bind(this),this.pageSizeChange=this.pageSizeChange.bind(this)}createEffects(){return[(0,Yc.h2)()]}pageIndexChange(t){var n,p;this.props.gridCompatibility?(this.setState(P=>({pageIndex:n=t+1})),this.props.pageIndexChange(n)):(this.setState(P=>({pageIndex:p=t})),this.props.pageIndexChange(p))}get pageIndex(){return this.props.gridCompatibility?(void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex)-1:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}pageSizeChange(t){var n;this.setState(p=>({pageSize:n=t})),this.props.pageSizeChange(n)}get className(){return this.props.gridCompatibility?(0,Ny.g)({"dx-datagrid-pager":!0,["".concat(this.props.className)]:!!this.props.className}):this.props.className}get pagerProps(){return void 0!==this.__getterCache.pagerProps?this.__getterCache.pagerProps:this.__getterCache.pagerProps=(0,Nt.A)({},(0,Nt.A)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),{className:this.className,pageIndex:this.pageIndex,pageIndexChange:t=>this.pageIndexChange(t),pageSizeChange:t=>this.pageSizeChange(t)})}get restAttributes(){var t=(0,Nt.A)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex});return(0,Wp.A)(t,rS)}componentWillUpdate(t,n,p){super.componentWillUpdate(),(this.props!==t||this.props.gridCompatibility!==t.gridCompatibility||this.props.className!==t.className||this.state.pageIndex!==n.pageIndex||this.props.pageIndex!==t.pageIndex||this.props.pageIndexChange!==t.pageIndexChange||this.props.pageSizeChange!==t.pageSizeChange)&&(this.__getterCache.pagerProps=void 0)}render(){return(V=>{var{pagerProps:e,restAttributes:t}=V;return(0,rl._B)((0,rl.sO)(2,Iw,(0,Nt.A)({contentTemplate:nS,pagerProps:e},t)))})({props:(0,Nt.A)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),pageIndexChange:this.pageIndexChange,pageIndex:this.pageIndex,pageSizeChange:this.pageSizeChange,className:this.className,pagerProps:this.pagerProps,restAttributes:this.restAttributes})}}return V.defaultProps=kw,V})();class Kw extends aC{getProps(){var e=super.getProps();return e.onKeyDown=this._wrapKeyDownHandler(e.onKeyDown),e}get _propsInfo(){return{twoWay:[["pageSize","defaultPageSize","pageSizeChange"],["pageIndex","defaultPageIndex","pageIndexChange"]],allowNull:[],elements:[],templates:[],props:["defaultPageSize","pageSizeChange","defaultPageIndex","pageIndexChange","gridCompatibility","className","showInfo","infoText","lightModeEnabled","displayMode","maxPagesCount","pageCount","pagesCountText","visible","hasKnownLastPage","pagesNavigatorVisible","showPageSizes","pageSizes","rtlEnabled","showNavigationButtons","totalCount","label","onKeyDown","pageSize","pageIndex"]}}get _viewComponent(){return oS}}(0,gn.A)("dxPager",Kw);const Xw=Kw;var Xy=function(V){return 1+(parseInt(V.pageIndex())||0)};En.registerModule("pager",{defaultOptions:()=>({pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto",label:v.A.format("dxPager-ariaLabel")}}),views:{pagerView:class zb extends cn.View{init(){var e=this.getController("data");e.changed.add(t=>{if(t&&t.repaintChangesOnly){var n=this._pager;n?n.option({pageIndex:Xy(e),pageSize:e.pageSize(),pageCount:e.pageCount(),totalCount:e.totalCount(),hasKnownLastPage:e.hasKnownLastPage()}):this.render()}else(!t||"update"!==t.changeType&&"updateSelection"!==t.changeType&&"updateFocusedRow"!==t.changeType)&&(this._pager=null,this.render())})}dispose(){this._pager=null}optionChanged(e){var{name:t}=e,n="pager"===t,p="paging"===t,P="dataSource"===t,J="scrolling"===t,fe=this.getController("data");if(n||p||J||P){if(e.handled=!0,fe.skipProcessingPagingChange(e.fullName))return;(n||p)&&(this._pageSizes=null),P||(this._pager=null,this._invalidate(),(0,Ie.Vd)()&&n&&this.component&&this.component.resize())}}_renderCore(){var e,t=this.element().addClass(this.addWidgetPrefix("pager")),n=null!==(e=this.option("pager"))&&void 0!==e?e:{},p=this.getController("data"),P=this.getController("keyboardNavigation"),J={maxPagesCount:10,pageIndex:Xy(p),pageCount:p.pageCount(),pageSize:p.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,displayMode:n.displayMode,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,label:n.label,pageSizes:this.getPageSizes(),totalCount:p.totalCount(),hasKnownLastPage:p.hasKnownLastPage(),pageIndexChanged(fe){p.pageIndex()!==fe-1&&p.pageIndex(fe-1)},pageSizeChanged(fe){p.pageSize(fe)},onKeyDown:fe=>P&&P.executeAction("onKeyDown",fe),useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,m.O9)(n.infoText)&&(J.infoText=n.infoText),this._pager?this._pager.repaint():(0,Ie.Vd)()?this._pager=this._createComponent(t,Xw,J):t.addClass("dx-pager").html('<div class="dx-pages"><div class="dx-page"></div></div>')}getPager(){return this._pager}getPageSizes(){var e=this.getController("data"),t=this.option("pager"),n=t&&t.allowedPageSizes,p=e.pageSize();return(!(0,m.O9)(this._pageSizes)||!this._pageSizes.includes(p))&&(this._pageSizes=[],t&&(Array.isArray(n)?this._pageSizes=n:n&&p>1&&(this._pageSizes=[Math.floor(p/2),p,2*p]))),this._pageSizes}isVisible(){var e=this.getController("data"),t=this.option("pager"),n=t&&t.visible,p=this.option("scrolling");return"auto"===n&&(n=(!p||"virtual"!==p.mode&&"infinite"!==p.mode)&&(e.pageCount()>1||e.isLoaded()&&!e.hasKnownLastPage())),!!n}getHeight(){return this.getElementHeight()}}}});var Om=D(99393),Ub=D(69049),Jy="columns-separator-transparent",Qy="drag-header",Zy="drag-action",MC="tracker",Gb="drop-highlight",Wb="dx-block-separator",qy="dx-header-row",xp="dxDataGridResizingReordering",sv=function(V){return V.option("allowColumnResizing")||V.getController("columns").isColumnOptionUsed("allowResizing")},e_=function(V){return V.option("allowColumnReordering")||V.getController("columns").isColumnOptionUsed("allowReordering")};class lv extends cn.View{_renderSeparator(){}_renderCore(e){var t=super._renderCore(e);return this._isShown=!0,this._renderSeparator(),this.hide(),t}show(){this._isShown=!0}hide(){this._isShown=!1}height(e){var t=this.element();if(t){if(!(0,m.O9)(e))return(0,R.Oq)(t);(0,R.k$)(t,e)}}width(e){var t=this.element();if(t){if(!(0,m.O9)(e))return(0,R.RG)(t);(0,R.zj)(t,e)}}}var kg=function(V){return"widget"!==V.option("columnResizingMode")};En.registerModule("columnsResizingReordering",{views:{columnsSeparatorView:class Vv extends lv{init(){super.init(),this._tablePositionController=this.getController("tablePosition"),this._init()}dispose(){this._unsubscribeFromCallback(),super.dispose()}optionChanged(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=sv(this),this.hide(!0))),super.optionChanged(e)}_renderSeparator(){super._renderSeparator(),this.element().addClass(this.addWidgetPrefix("columns-separator"))}_subscribeToCallback(){var t,e=this;e._positionChanged=function(n){(t=e.element())&&(t.css({top:n.top}),(0,R.k$)(t,n.height))},e._tablePositionController.positionChanged.add(e._positionChanged)}_unsubscribeFromCallback(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)}_init(){this._isTransparent=sv(this),this.isVisible()&&this._subscribeToCallback()}isVisible(){return this.option("showColumnHeaders")&&(e_(this)||sv(this))}show(){var e=this.element();e&&!this._isShown&&(this._isTransparent?e.removeClass(this.addWidgetPrefix(Jy)):e.show()),super.show()}hide(e){var t=this.element(),n=this.addWidgetPrefix(Jy);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(n),t.css("left",""),t.show()):(t.hasClass(n)&&t.removeClass(n),t.hide())),super.hide()}moveByX(e){var t=this.element();t&&t.css("left",null===e?0:e-this._parentElement().offset().left)}changeCursor(e){e=(0,m.O9)(e)?e:"";var t=this.element();t&&t.css("cursor",e)}},blockSeparatorView:class Hv extends lv{init(){super.init(),this.getController("data").loadingChanged.add(t=>{t||this.hide()})}_renderSeparator(){super._renderSeparator(),this.element().addClass(Wb).html(" ")}hide(){var e=this._parentElement(),t=this.element();t&&this._isShown&&t.css("display","none"),e&&!e.children(".".concat(Wb)).length&&e.prepend(this.element()),super.hide()}isVisible(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled}show(e){var n,t=this.element();if(t&&!this._isShown)switch(e){case"group":this.element().css("display","block");break;case"columnChooser":n={width:"100%",display:"block"},Tr.A.stop(t,!0),Tr.A.animate(t,{type:"slide",from:{width:0,display:n.display},to:n,duration:300,easing:"swing"});break;default:t.css("display","")}super.show()}},draggingHeaderView:class dv extends cn.View{init(){super.init();var e=this.getController("data");this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this._columnsController=this.getController("columns"),this._isDragging=!1,e.loadingChanged.add(t=>{var n=this.element();!t&&n&&n.hide()})}isDragging(){return this._isDragging}_getDraggingPanelByPos(e){var t;return(0,E.__)(this._dragOptions.draggingPanels,(n,p)=>{if(p){var P=p.getBoundingRect();if(P&&(void 0===P.bottom||e.y<P.bottom)&&(void 0===P.top||e.y>P.top)&&(void 0===P.left||e.x>P.left)&&(void 0===P.right||e.x<P.right))return t=p,!1}}),t}_renderCore(){this.element().addClass("".concat(this.addWidgetPrefix(Qy)," ").concat(this.addWidgetPrefix("text-content")," ").concat("dx-widget")).hide()}_resetTargetColumnOptions(){var e=this._dropOptions;e.targetColumnIndex=-1,delete e.targetColumnElement,delete e.isLast,delete e.posX,delete e.posY}_getVisibleIndexObject(e,t){return(0,m.O9)(e)?{columnIndex:t,rowIndex:e}:t}dispose(){var e=this.element();this._dragOptions=null,e&&e.parent().find(".".concat(this.addWidgetPrefix(Qy))).remove()}isVisible(){var e=this._columnsController.getCommonSettings();return this.option("showColumnHeaders")&&(e_(this)||e.allowGrouping||e.allowHiding)}dragHeader(e){var{columnElement:t}=e,n=!!e.sourceColumn.type;this._isDragging=!0,this._dragOptions=e,this._dropOptions={sourceIndex:e.index,sourceColumnIndex:this._getVisibleIndexObject(e.rowIndex,e.columnIndex),sourceColumnElement:e.columnElement,sourceLocation:e.sourceLocation};var p=L.A.getDocument();this._onSelectStart=p.onselectstart,p.onselectstart=function(){return!1},this._controller.drag(this._dropOptions),this.element().css({textAlign:t&&t.css("textAlign"),height:t&&(n&&t.get(0).clientHeight||(0,R.Oq)(t)),width:t&&(n&&t.get(0).clientWidth||(0,R.RG)(t)),whiteSpace:t&&t.css("whiteSpace")}).addClass(this.addWidgetPrefix(Zy)).toggleClass("dx-drag-command-cell",n).text(n?"":e.sourceColumn.caption),this.element().appendTo(Ub.A.getSwatchContainer(t))}moveHeader(e){var t=e.event,{that:n}=t.data,p=(0,h.rw)(t),P=!!n._columnsResizerViewController&&n._columnsResizerViewController.isResizing(),J=n._dragOptions;if(n._isDragging&&!P){var fe=n.element(),ke=Math.abs(p.x-J.columnElement.offset().left-J.deltaX),Ue=Math.abs(p.y-J.columnElement.offset().top-J.deltaY);(fe.is(":visible")||ke>5||Ue>5)&&(fe.show(),fe.css({left:p.x-J.deltaX,top:p.y-J.deltaY}),n.dockHeader(p)),t.preventDefault()}}dockHeader(e){var t=this._getDraggingPanelByPos(e),n=this._controller,p=this._dropOptions,P=this._dragOptions;if(t){var J=this.option("rtlEnabled"),fe="columnChooser"===t.getName(),ke=fe?"y":"x",Ue=t.getName(),Ze="headers"===Ue?P.rowIndex:void 0,{sourceColumn:Ft}=P,vi=t.getColumnElements(Ze,Ft?.ownerBand)||[],Li=P.pointsByTarget=P.pointsByTarget||{},tn="columnChooser"===Ue?[]:Li[Ue]||n._generatePointsByColumns((0,o.X)({},P,{targetDraggingPanel:t,columns:t.getColumns(Ze),columnElements:vi,isVerticalOrientation:fe,startColumnIndex:"headers"===Ue&&(0,j.A)(vi[0]).index()}));if(Li[Ue]=tn,p.targetLocation=Ue,tn.length>0)for(var On=0;On<tn.length;On++){var Qn=tn[On+1]&&(tn[On][ke]+tn[On+1][ke])/2;if(void 0===Qn||(J&&"x"===ke?e[ke]>Qn:e[ke]<Qn)){p.targetColumnIndex=this._getVisibleIndexObject(Ze,tn[On].columnIndex),vi[On]?(p.targetColumnElement=vi.eq(On),p.isLast=!1):(p.targetColumnElement=vi.last(),p.isLast=!0),p.posX=tn[On].x,p.posY=tn[On].y,n.dock(p);break}}else this._resetTargetColumnOptions(),n.dock(p)}}dropHeader(e){var t=e.event,{that:n}=t.data,p=n._controller;n.element().hide(),p&&n._isDragging&&p.drop(n._dropOptions),n.element().appendTo(n._parentElement()),n._dragOptions=null,n._dropOptions=null,n._isDragging=!1,L.A.getDocument().onselectstart=n._onSelectStart||null}},trackerView:class Nv extends cn.View{init(){super.init(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()}dispose(){this._unsubscribeFromCallback(),super.dispose()}optionChanged(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),super.optionChanged(e)}_renderCore(){var e=super._renderCore();return this.element().addClass(this.addWidgetPrefix(MC)),this.hide(),e}_unsubscribeFromCallback(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)}_subscribeToCallback(){var e=this;e._positionChanged=function(t){var n=e.element();n&&n.hasClass(e.addWidgetPrefix(MC))&&(n.css({top:t.top}),(0,R.k$)(n,t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)}isVisible(){return sv(this)}show(){this.element().show()}hide(){this.element()&&this.element().hide()}setHeight(e){(0,R.k$)(this.element(),e)}}},controllers:{draggingHeader:class TC extends cn.ViewController{init(){super.init(),this._columnsController=this.getController("columns"),this._tablePositionController=this.getController("tablePosition"),this._columnHeadersView=this.getView("columnHeadersView"),this._columnsSeparatorView=this.getView("columnsSeparatorView"),this._draggingHeaderView=this.getView("draggingHeaderView"),this._rowsView=this.getView("rowsView"),this._blockSeparatorView=this.getView("blockSeparatorView"),this._headerPanelView=this.getView("headerPanel"),this._columnChooserView=this.getView("columnChooserView");var e=()=>{if(this._draggingHeaderView){var t=[this._columnChooserView,this._columnHeadersView,this._headerPanelView];this._unsubscribeFromEvents(this._draggingHeaderView,t),this._subscribeToEvents(this._draggingHeaderView,t)}};this._columnHeadersView.renderCompleted.add(e),this._headerPanelView&&this._headerPanelView.renderCompleted.add(e),this._columnChooserView&&this._columnChooserView.renderCompleted.add(e)}dispose(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}_generatePointsByColumns(e){var t=this;return this.isCustomGroupColumnPosition=this.checkIsCustomGroupColumnPosition(e),Ui.A.getPointsByColumns(e.columnElements,p=>t._pointCreated(p,e.columns,e.targetDraggingPanel.getName(),e.sourceColumn),e.isVerticalOrientation,e.startColumnIndex)}checkIsCustomGroupColumnPosition(e){for(var t=!0,n=0;n<e.columns.length;n+=1){var p=e.columns[n];if("expand"===p.command&&!t)return!0;p.command||(t=!1)}return!1}_pointCreated(e,t,n,p){var P,J=t[e.columnIndex],fe=t[e.columnIndex-1],ke="expand"===fe?.command,Ue="expand"===J?.command&&"expand"!==fe?.command,Ze=p&&!p.allowReordering,Ft=!J?.allowReordering&&!fe?.allowReordering;switch(n){case"columnChooser":return!0;case"headers":if(Ze)return!0;if(!Ue)return ke||Ft;if(this.isCustomGroupColumnPosition)return!1;for(;"expand"===(null===(P=t[e.columnIndex])||void 0===P?void 0:P.command);)e.columnIndex+=1;return!1;default:return 0===t.length}}_subscribeToEvents(e,t){var n=this;(0,E.__)(t,(p,P)=>{if(P)for(var J,fe=P.getRowCount?P.getRowCount():1,ke=P.getName(),Ue=function(vi,Li){if(Li){var tn=(0,j.A)(Li),On=J[vi];On&&P.allowDragging(On)&&(tn.addClass(n.addWidgetPrefix(Zy)),_.A.on(tn,(0,h.b4)(Om.ni,xp),n.createAction(Qn=>{var zr=Qn.event,la=(0,h.rw)(zr);e.dragHeader({deltaX:la.x-(0,j.A)(zr.currentTarget).offset().left,deltaY:la.y-(0,j.A)(zr.currentTarget).offset().top,sourceColumn:On,index:On.index,columnIndex:vi,columnElement:tn,sourceLocation:ke,draggingPanels:t,rowIndex:n._columnsController.getRowIndex(On.index,!0)})})),_.A.on(tn,(0,h.b4)(Om.Cy,xp),{that:e},n.createAction(e.moveHeader)),_.A.on(tn,(0,h.b4)(Om._N,xp),{that:e},n.createAction(e.dropHeader)))}},Ze=0;Ze<fe;Ze++){var Ft=P.getColumnElements(Ze)||[];Ft.length&&(J=P.getColumns(Ze)||[],(0,E.__)(Ft,Ue))}})}_unsubscribeFromEvents(e,t){var n=this;(0,E.__)(t,(p,P)=>{if(P){var J=P.getColumnElements()||[];(0,E.__)(J,(fe,ke)=>{var Ue=(0,j.A)(ke);_.A.off(Ue,(0,h.b4)(Om.ni,xp)),_.A.off(Ue,(0,h.b4)(Om.Cy,xp)),_.A.off(Ue,(0,h.b4)(Om._N,xp)),Ue.removeClass(n.addWidgetPrefix(Zy))})}})}_getSeparator(e){return"headers"===e?this._columnsSeparatorView:this._blockSeparatorView}hideSeparators(e){var t=this._blockSeparatorView,n=this._columnsSeparatorView;this._animationColumnIndex=void 0,t&&t.hide(),"block"!==e&&n&&n.hide()}allowDrop(e){return this._columnsController.allowMoveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}drag(e){var{sourceIndex:t}=e,{sourceLocation:n}=e,{sourceColumnElement:p}=e,P=this._columnHeadersView,J=this._rowsView;p&&(p.css({opacity:.5}),"headers"===n&&(P&&P.setRowsOpacity(t,.5),J&&J.setRowsOpacity(t,.5)))}dock(e){var t=this,n=(0,m.Gv)(e.targetColumnIndex)?e.targetColumnIndex.columnIndex:e.targetColumnIndex,{sourceLocation:p}=e,{targetLocation:P}=e,J=t._getSeparator(P),fe=n>=0;t._columnHeadersView.element().find(".".concat(qy)).toggleClass(t.addWidgetPrefix(Gb),"headers"!==p&&"headers"===P&&!fe),J&&(t.allowDrop(e)&&fe?"group"===P||"columnChooser"===P?t._animationColumnIndex!==n&&(t.hideSeparators(),J.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=n,J.show(P)):(t.hideSeparators("block"),t._tablePositionController.update(e.posY),J.moveByX(e.posX-J.width()),J.show()):t.hideSeparators())}drop(e){var{sourceColumnElement:t}=e;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find(".".concat(qy)).removeClass(this.addWidgetPrefix(Gb))),this.allowDrop(e)){var n=this._getSeparator(e.targetLocation);n&&n.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}}},tablePosition:class zv extends cn.ViewController{constructor(e){super(e),this.positionChanged=(0,Qe.A)()}init(){super.init(),this._columnsResizerController=this.getController("columnsResizer"),this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView"),this._pagerView=this.getView("pagerView"),this._rowsView.resizeCompleted.add(()=>{if(this.option("allowColumnResizing")){var e=this._columnsResizerController._targetPoint;this.update(e?e.y:null)}})}update(e){var t={},n=this._columnHeadersView.element(),p=n&&n.offset(),P=p&&p.top||0,J=(0,m.O9)(e)?Math.abs(e-P):0,fe=this._columnHeadersView?this._columnHeadersView.getHeight():0,ke=this._rowsView.getScrollbarWidth(!0),Ue=this._rowsView?this._rowsView.height()-ke:0,Ze=this.component.getView("draggingHeaderView");t.height=fe,(this._columnsResizerController.isResizing()||Ze.isDragging())&&(t.height+=Ue-J),null!==e&&n&&n.length&&(t.top=n[0].offsetTop+J),this.positionChanged.fire(t)}},columnsResizer:class B0 extends cn.ViewController{init(){this._subscribesToCallbacks=[],sv(this)&&this._init()}dispose(){this._unsubscribes(),super.dispose()}optionChanged(e){super.optionChanged(e),"allowColumnResizing"===e.name&&(e.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())}_isHeadersRowArea(e){if(this._columnHeadersView){var t=this._columnHeadersView.element();if(t){var n=t.offset().top,p=this._columnHeadersView.getHeadersRowHeight();return e>=n&&e<=n+p}}return!1}_isRtlParentStyle(){var e;return this.option("rtlEnabled")&&"rtl"===(null===(e=this._$parentContainer)||void 0===e?void 0:e.parent().css("direction"))}_pointCreated(e,t,n){var p=kg(this),P=this.option("rtlEnabled"),J=this._isRtlParentStyle(),fe=p||!P||J?1:0;if(e.index>=fe&&e.index<t+(p||P&&!J?0:1)){e.columnIndex-=fe;var ke=n[e.columnIndex]||{};return!(p?ke.allowResizing&&(n[e.columnIndex+1]||{}).allowResizing:ke.allowResizing)}return!0}_getTargetPoint(e,t,n){if(e)for(var p=0;p<e.length;p++)if((e[p].x!==e[0].x||!e[p+1]||e[p].x!==e[p+1].x)&&e[p].x-n<=t&&t<=e[p].x+n)return e[p];return null}_moveSeparator(e){var t,n=e.event,p=n.data,P=p._columnsSeparatorView.width(),J=kg(p),fe=P/2,ke=p._$parentContainer.offset(),Ue=ke.left,Ze=(0,h.rw)(n),Ft=p.option("rtlEnabled"),vi=this._isRtlParentStyle(),Li=null===(t=p._draggingHeaderView)||void 0===t?void 0:t.isDragging();if(p._isResizing&&p._resizingInfo){if((Ue<=Ze.x||!J&&vi)&&(!J||Ze.x<=Ue+(0,R.RG)(p._$parentContainer))&&p._updateColumnsWidthIfNeeded(Ze.x)){var tn=p._columnHeadersView.getColumnElements().eq(p._resizingInfo.currentColumnIndex),On=tn[0];if(On){var Qn=On.getBoundingClientRect().width;p._columnsSeparatorView.moveByX(tn.offset().left+((J||vi)&&Ft?0:Qn)),p._tablePositionController.update(p._targetPoint.y),n.preventDefault()}}}else Li||(p._isHeadersRowArea(Ze.y)?(p._previousParentOffset&&(p._previousParentOffset.left!==ke.left||p._previousParentOffset.top!==ke.top)&&p.pointsByColumns(null),p._targetPoint=p._getTargetPoint(p.pointsByColumns(),Ze.x,P),p._previousParentOffset=ke,p._isReadyResizing=!1,p._targetPoint?(p._columnsSeparatorView.changeCursor("col-resize"),p._columnsSeparatorView.moveByX(p._targetPoint.x-fe),p._tablePositionController.update(p._targetPoint.y),p._isReadyResizing=!0,n.preventDefault()):(p._columnsSeparatorView.changeCursor(),p._columnsSeparatorView.moveByX(null))):(p.pointsByColumns(null),p._isReadyResizing=!1,p._columnsSeparatorView.changeCursor(),p._columnsSeparatorView.moveByX(null)))}_endResizing(e){var n=e.event.data;n._isResizing&&(n.pointsByColumns(null),n._resizingInfo=null,n._columnsSeparatorView.hide(),n._columnsSeparatorView.changeCursor(),n._trackerView.hide(),n._isReadyResizing=!1,n._isResizing=!1)}_getNextColumnIndex(e){return e+1}_setupResizingInfo(e){var t=this._targetPoint.columnIndex,n=this._getNextColumnIndex(t),p=this._columnHeadersView.getHeaderElement(t),P=this._columnHeadersView.getHeaderElement(n);this._resizingInfo={startPosX:e,currentColumnIndex:t,currentColumnWidth:p&&p.length>0?(0,ge.N)(p[0]).width:0,nextColumnIndex:n,nextColumnWidth:P&&P.length>0?(0,ge.N)(P[0]).width:0}}_startResizing(e){var t=e.event,n=t.data,p=(0,h.rw)(t);if((0,h.kH)(t)&&(n._isHeadersRowArea(p.y)?(n._targetPoint=n._getTargetPoint(n.pointsByColumns(),p.x,10),n._targetPoint&&(n._columnsSeparatorView.moveByX(n._targetPoint.x-n._columnsSeparatorView.width()/2),n._isReadyResizing=!0)):n._isReadyResizing=!1),n._isReadyResizing){n._setupResizingInfo(p.x),n._isResizing=!0,n._tablePositionController.update(n._targetPoint.y),n._columnsSeparatorView.show(),n._trackerView.show();var P=n.component.getScrollable();P&&n._isRtlParentStyle()&&(n._scrollRight=(0,R.RG)(P.$content())-(0,R.RG)(P.container())-P.scrollLeft()),t.preventDefault(),t.stopPropagation()}this.isResizing()&&this._editorFactoryController.loseFocus()}_generatePointsByColumns(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],n=e._columnHeadersView.getColumnElements(),p=[];n&&n.length>0&&(p=Ui.A.getPointsByColumns(n,P=>e._pointCreated(P,n.length,t))),e._pointsByColumns=p}_unsubscribeFromEvents(){this._moveSeparatorHandler&&_.A.off(L.A.getDocument(),(0,h.b4)(pe.A.move,xp),this._moveSeparatorHandler),this._startResizingHandler&&_.A.off(this._$parentContainer,(0,h.b4)(pe.A.down,xp),this._startResizingHandler),this._endResizingHandler&&(_.A.off(this._columnsSeparatorView.element(),(0,h.b4)(pe.A.up,xp),this._endResizingHandler),_.A.off(L.A.getDocument(),(0,h.b4)(pe.A.up,xp),this._endResizingHandler))}_subscribeToEvents(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),_.A.on(L.A.getDocument(),(0,h.b4)(pe.A.move,xp),this,this._moveSeparatorHandler),_.A.on(this._$parentContainer,(0,h.b4)(pe.A.down,xp),this,this._startResizingHandler),_.A.on(this._columnsSeparatorView.element(),(0,h.b4)(pe.A.up,xp),this,this._endResizingHandler),_.A.on(L.A.getDocument(),(0,h.b4)(pe.A.up,xp),this,this._endResizingHandler)}_updateColumnsWidthIfNeeded(e){var t,n,p=this._rowsView.contentWidth(),P=this._resizingInfo,J=this._columnsController,fe=J.getVisibleColumns(),ke=this._columnsSeparatorView.width(),Ue=kg(this),Ze=Ue&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth"),Ft=this.option("rtlEnabled"),vi=this._isRtlParentStyle(),Li=fe[P.currentColumnIndex],tn=fe[P.nextColumnIndex];function On(Bd){return(0,m.Kg)(Bd)&&Bd.endsWith("%")}function Qn(Bd,Nh,n_,fv){if(Bd){var Lg=Bd.width;Lg&&(fv=On(Lg)),fv?(J.columnOption(Bd.index,"visibleWidth",Nh),J.columnOption(Bd.index,"width","".concat((Nh/n_*100).toFixed(3),"%"))):(J.columnOption(Bd.index,"visibleWidth",null),J.columnOption(Bd.index,"width",Nh))}}t=e-P.startPosX,(Ue||vi)&&Ft&&(t=-t);var Bd,Nh,n_,fv,Lg,j0,Gv,{cellWidth:zr,nextCellWidth:la}=(Gv={},(Lg=P.currentColumnWidth+(Bd=t))>=(j0=Li&&Li.minWidth||ke)?Gv.cellWidth=Lg:(Gv.cellWidth=j0,fv=!0),Ue&&((n_=P.nextColumnWidth-Bd)>=(Nh=tn&&tn.minWidth||ke)?Gv.nextCellWidth=fv?P.nextColumnWidth-(Bd+j0-Lg):n_:(Gv.nextCellWidth=Nh,Gv.cellWidth=P.currentColumnWidth+(Bd-Nh+n_))),Gv);if(n=Li.width!==zr){if(J.beginUpdate(),zr=Math.floor(zr),p=function(Bd,Nh){var n_=Nh.every(Lg=>Lg.width);if(n_){var fv=Nh.reduce((Lg,j0)=>(On(j0.width)&&(Lg+=parseFloat(j0.width)),Lg),0);fv>100&&(Bd=Bd/fv*100)}return Bd}(p,fe),Qn(Li,zr,p,Ze),Ue)Qn(tn,la=Math.floor(la),p,Ze);else{var qo=this._columnHeadersView.getColumnWidths();qo[P.currentColumnIndex]=zr;var Xl=qo.reduce((Bd,Nh)=>Bd+Nh,0)>this._rowsView.contentWidth();if(!Xl){var Es=Ui.A.getLastResizableColumnIndex(fe);Es>=0&&J.columnOption(fe[Es].index,"visibleWidth","auto")}for(var ul=0;ul<qo.length;ul++)fe[ul]&&fe[ul]!==Li&&void 0===fe[ul].width&&J.columnOption(fe[ul].index,"width",qo[ul])}if(J.endUpdate(),!Ue){this.component.updateDimensions();var Fd=this.component.getScrollable();if(Fd&&vi){var Kc=(0,R.RG)(Fd.$content())-(0,R.RG)(Fd.container())-this._scrollRight;Fd.scrollTo({left:Kc})}}}return n}_subscribeToCallback(e,t){e.add(t),this._subscribesToCallbacks.push({callback:e,handler:t})}_unsubscribeFromCallbacks(){for(var e=0;e<this._subscribesToCallbacks.length;e++){var t=this._subscribesToCallbacks[e];t.callback.remove(t.handler)}this._subscribesToCallbacks=[]}_unsubscribes(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()}_init(){var e=()=>{this._isResizing||this.pointsByColumns(null)},t=P=>{this._scrollLeft!==P.left&&(this._scrollLeft=P.left,this.pointsByColumns(null))};this._columnsSeparatorView=this.getView("columnsSeparatorView"),this._columnHeadersView=this.getView("columnHeadersView"),this._trackerView=this.getView("trackerView"),this._rowsView=this.getView("rowsView"),this._columnsController=this.getController("columns"),this._tablePositionController=this.getController("tablePosition"),this._editorFactoryController=this.getController("editorFactory"),this._draggingHeaderView=this.component.getView("draggingHeaderView"),this._$parentContainer=this.component.$element(),this._subscribeToCallback(this._columnHeadersView.renderCompleted,e),this._subscribeToCallback(this._columnHeadersView.resizeCompleted,e),this._subscribeToCallback(this._columnsSeparatorView.renderCompleted,()=>{this._unsubscribeFromEvents(),this._subscribeToEvents()}),this._subscribeToCallback(this._rowsView.renderCompleted,()=>{this._rowsView.scrollChanged.remove(t),this._rowsView.scrollChanged.add(t)});var n=0!==this._rowsView.getScrollbarWidth(),p=0;this._subscribeToCallback(this._tablePositionController.positionChanged,P=>{if(this._isResizing&&!this._rowsView.isResizing){var J=0!==this._rowsView.getScrollbarWidth();n!==J||p&&p!==P.height?(n=J,p=P.height,this.component.updateDimensions()):this._rowsView.updateFreeSpaceRowHeight()}p=P.height})}isResizing(){return this._isResizing}pointsByColumns(e){if(void 0===e)return this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns;this._pointsByColumns=e}}},extenders:{views:{rowsView:V=>class extends V{_needUpdateRowHeight(e){var t=this.option("wordWrapEnabled"),n=this._columnsResizerController.isResizing();return super._needUpdateRowHeight.apply(this,arguments)||e>0&&t&&n}}},controllers:{editorFactory:V=>class extends V{renderFocusOverlay(){if(!this._columnsResizerController.isResizing())return super.renderFocusOverlay.apply(this,arguments)}}}}});var Rg=D(8257),e1=(V,e)=>V.length===e.length&&!Object.keys(V).some(t=>V[t]!==e[t]),t1=(V,e)=>(0,s.RL)(V,e,{maxDepth:4}),cv={compareType:"reference"},Yb=function(V){var{compareType:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cv,t=null;return function(){for(var n=arguments.length,p=new Array(n),P=0;P<n;P++)p[P]=arguments[P];if(!t){var J=V(...p);return t=((V,e,t,n)=>{var p=V,P=e;return function(){for(var J=arguments.length,fe=new Array(J),ke=0;ke<J;ke++)fe[ke]=arguments[ke];return n(fe,p)||(p=fe,P=t(...p)),P}})(p,J,V,"reference"===e?e1:t1),J}return t(...p)}},l="rowsview",ae="dx-data-row",At="dx-freespace-row",Di="dx-master-detail-cell",rn="dx-command-expand",Gn="dx-command-select",Cr="dx-command-edit",fr="[class^=dx-command]",Fr="dx-cell-focus-disabled",gr="dx-state-focused",go="dx-focused",Ma="delete",Zo='\n input:not([type="hidden"]):not([disabled]),\n textarea:not([disabled]),\n a:not([disabled]),\n select:not([disabled]),\n button:not([disabled]),\n [tabindex]:not([disabled]),\n .dx-checkbox:not([disabled],.dx-state-readonly)\n',js="".concat(Zo,", .dx-dropdowneditor-icon"),bd="columnHeadersView",oo=["shift","control","alt"];function $c(V){return V&&V.hasClass("dx-group-row")}function ku(V){return V&&V.hasClass("dx-master-detail-row")}function ud(V){return V&&V.hasClass(ae)}function N0(V,e){return!V._isRowEditMode()&&e&&!e.hasClass(Gn)&&e.hasClass(om)}function ac(V){return(0,m.O9)(V)&&V.length>0}function Tm(){return"desktop"!==Ca.A.current().deviceType}function jp(V){return!!V.parent(".".concat("dx-header-row")).length}function n1(V,e,t,n){var p=0;if(V<e)for(;p<t.items.length;p++)n1(V+1,e,t.items[p],n);V===e&&n(t)}function IC(V,e){var t;if("map"in V)return V.map(e);var n=new Array(V.length);for(t in V)n[t]=e(V[t],t);return n}function lS(V){var e=(0,aa.Hz)(V.selector),t=!("skipEmptyValues"in V)||V.skipEmptyValues,{aggregator:n}=V;if("string"==typeof n&&!(n=Hl.zL[n]))throw Bu.sO.Error("E4001",V.aggregator);return{selector:e,aggregator:n,skipEmptyValues:t}}En.registerModule("keyboardNavigation",{defaultOptions:()=>({useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}),controllers:{keyboardNavigation:class FD extends cn.ViewController{init(){var e,t;this._dataController=this.getController("data"),this._selectionController=this.getController("selection"),this._editingController=this.getController("editing"),this._headerPanel=this.getView("headerPanel"),this._rowsView=this.getView("rowsView"),this._columnsController=this.getController("columns"),this._editorFactory=this.getController("editorFactory"),this._focusController=this.getController("focus"),this._adaptiveColumnsController=this.getController("adaptiveColumns"),this._columnResizerController=this.getController("columnsResizer"),this._memoFireFocusedCellChanged=Yb(this._memoFireFocusedCellChanged.bind(this),{compareType:"value"}),this._memoFireFocusedRowChanged=Yb(this._memoFireFocusedRowChanged.bind(this),{compareType:"value"}),this.focusedHandlerWithContext=this.focusedHandlerWithContext||this.focusedHandler.bind(this),this.renderCompletedWithContext=this.renderCompletedWithContext||this.renderCompleted.bind(this),this.rowsViewFocusHandlerContext=this.rowsViewFocusHandlerContext||this.rowsViewFocusHandler.bind(this),this._updateFocusTimeout=null,this._fastEditingStarted=!1,this._focusedCellPosition={},this._canceledCellPosition=null,this.isKeyboardEnabled()?(function _e(){_.A.on(L.A.getDocument(),"visibilitychange",ne)}(),null===(e=this._editorFactory)||void 0===e||e.focused.add(this.focusedHandlerWithContext),this.createAction("onKeyDown")):(be(),null===(t=this._editorFactory)||void 0===t||t.focused.remove(this.focusedHandlerWithContext)),this.initViewHandlers(),this.initDocumentHandlers()}dispose(){super.dispose(),this._resetFocusedView(),Rg.QJ.off(this._keyDownListener),_.A.off(L.A.getDocument(),(0,h.b4)(pe.A.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),clearTimeout(this._updateFocusTimeout),be()}focusedHandler(e){this.setupFocusedView(),this._isNeedScroll&&e.is(":visible")&&this._focusedView&&this._focusedView.getScrollable()&&(this._focusedView._scrollToElement(e),this._isNeedScroll=!1)}rowsViewFocusHandler(e){var t,n=(0,j.A)(e.target),p=(0,j.A)(e.relatedTarget).closest(this._rowsView.element()).length,P=n.is("a");if(e.relatedTarget&&P&&!p&&this._isEventInCurrentGrid(e)){var J=this._getFocusedCell();J=ac(J)?J:this._rowsView.getCellElements(0).filter("[tabindex]").eq(0),n.closest(J).length||(e.preventDefault(),_.A.trigger(J,"focus"))}var fe=n.is("td"),ke=(null!==(t=this.option("focusedRowIndex"))&&void 0!==t?t:-1)<0;fe&&ke&&this._updateFocusedCellPosition(n)}subscribeToRowsViewFocusEvent(){var e,t=null===(e=this._rowsView)||void 0===e?void 0:e.element();_.A.on(t,"focusin",this.rowsViewFocusHandlerContext)}unsubscribeFromRowsViewFocusEvent(){var e,t=null===(e=this._rowsView)||void 0===e?void 0:e.element();_.A.off(t,"focusin",this.rowsViewFocusHandlerContext)}renderCompleted(e){var t=this._rowsView.element(),n=!e||"refresh"===e.changeType,p=this._focusedView&&this._focusedView.name===this._rowsView.name,J=e&&("append"===e.changeType||"prepend"===e.changeType),ke=(0,j.A)(L.A.getRootNode(t.get&&t.get(0))).find(":focus"),Ue=!ke.length||ke.closest(t).length;this.unsubscribeFromRowsViewFocusEvent(),this.subscribeToRowsViewFocusEvent(),this.initPointerEventHandler(),this.initKeyDownHandler(),this._setRowsViewAttributes(),p&&Ue&&(this._isNeedFocus?!J:this._isHiddenFocus&&n&&!e?.virtualColumnsScrolling)&&this._updateFocus(!0)}initViewHandlers(){var e,t;this.unsubscribeFromRowsViewFocusEvent(),this.unsubscribeFromPointerEvent(),this.unsubscribeFromKeyDownEvent(),null===(t=null===(e=this._rowsView)||void 0===e?void 0:e.renderCompleted)||void 0===t||t.remove(this.renderCompletedWithContext),this.isKeyboardEnabled()&&this._rowsView.renderCompleted.add(this.renderCompletedWithContext)}initDocumentHandlers(){var e=L.A.getDocument();this._documentClickHandler=this._documentClickHandler||this.createAction(t=>{var n=(0,j.A)(t.event.target),p=this._isEventInCurrentGrid(t.event)&&n.closest(".".concat(this.addWidgetPrefix(l))).length,P=n.closest(".".concat("dx-dropdowneditor-overlay")).length,J=!!this._columnResizerController&&this._columnResizerController.isResizing();p||P||J||(!(this._focusedView&&n.parents().filter(this._focusedView.element()).length>0)&&this._resetFocusedCell(!0),this._resetFocusedView())}),_.A.off(e,(0,h.b4)(pe.A.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),this.isKeyboardEnabled()&&_.A.on(e,(0,h.b4)(pe.A.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)}_setRowsViewAttributes(){var e=this._getRowsViewElement();!this._dataController.getVisibleRows().length&&this._applyTabIndexToElement(e)}unsubscribeFromPointerEvent(){var e=Tm()?ce.U:pe.A.down,t=this._getRowsViewElement();this._pointerEventAction&&_.A.off(t,(0,h.b4)(e,"dxDataGridKeyboardNavigation"),this._pointerEventAction)}subscribeToPointerEvent(){var e=Tm()?ce.U:pe.A.down,t=this._getRowsViewElement(),n=".".concat(fc," > td, .").concat(fc);_.A.on(t,(0,h.b4)(e,"dxDataGridKeyboardNavigation"),n,this._pointerEventAction)}initPointerEventHandler(){this._pointerEventAction=this._pointerEventAction||this.createAction(this._pointerEventHandler),this.unsubscribeFromPointerEvent(),this.subscribeToPointerEvent()}unsubscribeFromKeyDownEvent(){Rg.QJ.off(this._keyDownListener)}subscribeToKeyDownEvent(){var e=this._getRowsViewElement();this._keyDownListener=Rg.QJ.on(e,null,t=>this._keyDownHandler(t))}initKeyDownHandler(){this._keyDownListener&&this.unsubscribeFromKeyDownEvent(),this.subscribeToKeyDownEvent()}optionChanged(e){switch(e.name){case"keyboardNavigation":"keyboardNavigation.enabled"===e.fullName&&this.init(),e.handled=!0;break;case"useLegacyKeyboardNavigation":this.init(),e.handled=!0;break;default:super.optionChanged(e)}}isRowFocusType(){return"row"===this.focusType}isCellFocusType(){return"cell"===this.focusType}setRowFocusType(){this.option("focusedRowEnabled")&&(this.focusType="row")}setCellFocusType(){this.focusType="cell"}_keyDownHandler(e){var t,n=!0;this._isNeedFocus=!0,this._isNeedScroll=!0;var p=this._processOnKeyDown(e),P=null===(t=this._editingController)||void 0===t?void 0:t.isEditing(),{originalEvent:J}=e;if(J.isDefaultPrevented())return this._isNeedFocus=!1,void(this._isNeedScroll=!1);if(!oo.includes(e.keyName)&&this._updateFocusedCellPositionByTarget(J.target),!p){switch(e.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(e,P),p=!0;break;case"upArrow":case"downArrow":e.ctrl?N("rowsView",this,J):this._upDownKeysHandler(e,P),p=!0;break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(e),p=!0;break;case"space":p=this._spaceKeyHandler(e,P);break;case"A":(0,h.By)(e.originalEvent)?(this._ctrlAKeyHandler(e,P),p=!0):p=this._beginFastEditing(e.originalEvent);break;case"tab":this._tabKeyHandler(e,P),p=!0;break;case"enter":this._enterKeyHandler(e,P),p=!0;break;case"escape":p=this._escapeKeyHandler(e,P);break;case"F":(0,h.By)(e.originalEvent)?(this._ctrlFKeyHandler(e),p=!0):p=this._beginFastEditing(e.originalEvent);break;case"F2":this._f2KeyHandler(),p=!0;break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&(p=this._beginFastEditing(J,!0))}!p&&!this._beginFastEditing(J)&&(this._isNeedFocus=!1,this._isNeedScroll=!1,n=!1),n&&J.stopPropagation()}}_processOnKeyDown(e){var{originalEvent:t}=e,n={handled:!1,event:t};return this.executeAction("onKeyDown",n),e.ctrl=t.ctrlKey,e.alt=t.altKey,e.shift=t.shiftKey,!!n.handled}_closeEditCell(){setTimeout(()=>{this._editingController.closeEditCell()})}_leftRightKeysHandler(e,t){var n=this.getVisibleRowIndex(),p=e.originalEvent,P=this._focusedView&&this._focusedView.getRow(n),J=this._getDirectionCodeByKey(e.keyName),fe=this._isFastEditingStarted();if((!t||fe)&&ud(P)){this.setCellFocusType(),fe&&this._closeEditCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(J);var Ue=this._getNextCell(J);ac(Ue)&&this._arrowKeysHandlerFocusCell(p,Ue,J),p&&p.preventDefault()}}_upDownKeysHandler(e,t){var n,p,P=this.getVisibleRowIndex(),J=this._focusedView&&this._focusedView.getRow(P),fe=e.originalEvent,ke="upArrow"===e.keyName,Ue=this._dataController.dataSource(),Ze=null===(p=null===(n=this._editingController)||void 0===n?void 0:n.isEditRowByIndex)||void 0===p?void 0:p.call(n,P),Ft=this._isFastEditingStarted();if((!Ze||!t||Ft)&&J&&!ku(J)){if(Ft&&this._closeEditCell(),!this._navigateNextCell(fe,e.keyName)&&this._isVirtualRowRender()&&ke&&Ue&&!Ue.isLoading()){var Li=(0,R.P$)(J);this._scrollBy(0,-Li,this._focusedCellPosition.rowIndex-1,fe)}fe&&fe.preventDefault()}}_pageUpDownKeyHandler(e){var t=this._dataController.pageIndex(),n=this._dataController.pageCount(),p=this.option("paging.enabled"),P="pageUp"===e.keyName,J=P?-1:1,fe=this._rowsView.getScrollable();p&&!this._isVirtualScrolling()?(P?t>0:t<n-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(t+J),e.originalEvent.preventDefault()):fe&&(0,R.Oq)(fe.container())<(0,R.Oq)(fe.$content())&&(this._scrollBy(0,(0,R.Oq)(fe.container())*J),e.originalEvent.preventDefault())}_spaceKeyHandler(e,t){var n=this.getVisibleRowIndex(),p=(0,j.A)(e.originalEvent&&e.originalEvent.target);if(this.option("selection")&&"none"!==this.option("selection").mode&&!t){var P="row"===this._getElementType(p)&&this.isRowFocusType()&&ud(p);return p.hasClass(Gn)&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),!!(P||p.parent().hasClass(ae)||p.hasClass(this.addWidgetPrefix(l)))&&(this._selectionController.changeItemSelection(n,{shift:e.shift,control:e.ctrl}),e.originalEvent.preventDefault(),!0)}return this._beginFastEditing(e.originalEvent)}_ctrlAKeyHandler(e,t){!t&&!e.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),e.originalEvent.preventDefault())}_tabKeyHandler(e,t){var n=this.option("editing"),p=e.shift?"previous":"next",J=!((0,m.O9)(this._focusedCellPosition)&&!(0,m.RI)(this._focusedCellPosition))||!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),fe=e.originalEvent.target,ke=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(fe,p)){if((0,j.A)(ke).addClass(gr),n&&fe&&!J)if((0,j.A)(fe).hasClass(this.addWidgetPrefix(l))&&this._resetFocusedCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(p),t){if(!this._editingCellTabHandler(e,p))return}else this._targetCellTabHandler(e,p)&&(J=!0);J?(this._editorFactory.loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(!0),this._resetFocusedView(),this._closeEditCell())):e.originalEvent.preventDefault()}}_getMaxHorizontalOffset(){var e=this.component.getScrollable();return e?e.scrollWidth()-(0,R.RG)(this._rowsView.element()):0}_isColumnRendered(e){var t=this._columnsController.getVisibleColumns(null,!0),n=this._columnsController.getVisibleColumns(),p=t[e],P=!1;return p&&(P=n.indexOf(p)>=0),P}_isFixedColumn(e){var n=this._columnsController.getVisibleColumns(null,!0)[e];return!!n&&!!n.fixed}_isColumnVirtual(e){var t=e-this._columnsController.getColumnIndexOffset(),p=this._columnsController.getVisibleColumns()[t];return!!p&&"virtual"===p.command}_processVirtualHorizontalPosition(e){var p,t=this.component.getScrollable(),n=this.getColumnIndex(),P=0,J=!1;switch(e){case"next":case"nextInRow":var fe=this._getVisibleColumnCount();p=n+1,P=this.option("rtlEnabled")?this._getMaxHorizontalOffset():0,J="next"===e?fe===p||this._isFixedColumn(n)&&!this._isColumnRendered(p):fe>p&&this._isFixedColumn(n)&&!this._isColumnRendered(p);break;case"previous":case"previousInRow":if(p=n-1,P=this.option("rtlEnabled")?0:this._getMaxHorizontalOffset(),"previous"===e){var ke=this._columnsController.getColumnIndexOffset();J=p<0&&0===ke||this._isFixedColumn(n)&&!this._isColumnRendered(p)}else J=p>=0&&this._isFixedColumn(n)&&!this._isColumnRendered(p)}J?t.scrollTo({left:P}):(0,m.O9)(p)&&(0,m.O9)(e)&&this._isColumnVirtual(p)&&0!==(P=this._getHorizontalScrollPositionOffset(e))&&t.scrollBy({left:P,top:0})}_getHorizontalScrollPositionOffset(e){var t=0,n=this._getCell(this._focusedCellPosition),p=n&&(0,R.Ot)(n);if(p>0){var P=this.option("rtlEnabled")?-1:1;t="nextInRow"===e||"next"===e?p*P:p*P*-1}return t}_editingCellTabHandler(e,t){var P,n=e.originalEvent.target,p=this._getCellElementFromTarget(n),J=e.originalEvent,fe=this._getElementType(n);if(p.is(fr))return!this._targetCellTabHandler(e,t);this._updateFocusedCellPosition(p);var ke=this._getNextCellByTabKey(J,t,fe);if(!(p=ke.$cell)||this._handleTabKeyOnMasterDetailCell(p,t))return!1;var Ue=this._getColumnByCellElement(p),Ze=p.parent(),Ft=this._getRowIndex(Ze),vi=this._dataController.items()[Ft];if(Ue&&Ue.allowEditing){var tn=!vi||"data"===vi.rowType;P=this._editingController.allowUpdating({row:vi})?tn:vi&&vi.isNewRow}return P||this._closeEditCell(),this._focusCell(p,!ke.isHighlighted)&&(!this._isRowEditMode()&&P?this._editFocusedCell():this._focusInteractiveElement(p,e.shift)),!0}_targetCellTabHandler(e,t){var n=e.originalEvent,p=n.target,P=this._getElementType(p),J=this._getCellElementFromTarget(p),fe="cell"===P&&this._getInteractiveElement(J,!e.shift),ke=!1;if(!N0(this,J)&&fe?.length&&p!==fe.get(0))ke=!0;else{void 0===this._focusedCellPosition.rowIndex&&(0,j.A)(p).hasClass(fc)&&this._updateFocusedCellPosition(J),P=this._getElementType(p),this.isRowFocusType()&&(this.setCellFocusType(),"row"===P&&ud((0,j.A)(p))&&(p=this.getFirstValidCellInRow((0,j.A)(p)),P=this._getElementType(p)));var Ue=this._getNextCellByTabKey(n,t,P);if(!(J=Ue.$cell)||!(J=this._checkNewLineTransition(n,J)))return!1;this._focusCell(J,!Ue.isHighlighted),N0(this,J)||this._focusInteractiveElement(J,e.shift)}return ke}_getNextCellByTabKey(e,t,n){var p=this._getNextCell(t,n),P=p&&this._fireFocusedCellChanging(e,p,!0);return!P||P.cancel?{}:(P.$newCellElement&&(p=P.$newCellElement),{$cell:p,isHighlighted:P.isHighlighted})}_checkNewLineTransition(e,t){var n=this.getVisibleRowIndex(),p=t.parent();if(n!==this._getRowIndex(p)){var P=this._getCellPosition(t),J=this._fireFocusedRowChanging(e,p);if(J.cancel)return;J.rowIndexChanged&&P&&(this.setFocusedColumnIndex(P.columnIndex),t=this._getFocusedCell())}return t}_enterKeyHandler(e,t){var n,p=this.getVisibleRowIndex(),P=this._dataController.getKeyByRowIndex(p),J=null===(n=this._focusedView)||void 0===n?void 0:n.getRow(p),fe=this._getFocusedCell(),ke=this.option("grouping.allowCollapsing")&&$c(J),Ue=this.option("masterDetail.enabled")&&fe?.hasClass(rn),Ze=fe?.hasClass("dx-command-adaptive");if(ke||Ue){var Ft=this._dataController.items()[p],vi=Ft?.data&&!Ft.data.isContinuation;(0,m.O9)(P)&&vi&&this._dataController.changeRowExpand(P)}else Ze?(this._adaptiveColumnsController.toggleExpandAdaptiveDetailRow(P),this._updateFocusedCellPosition(fe)):fe?.hasClass(Cr)||this._processEnterKeyForDataCell(e,t)}_processEnterKeyForDataCell(e,t){var n=this._getEnterKeyDirection(e),p=this._allowEditingOnEnterKey();t||!p&&n?(this._handleEnterKeyEditingCell(e.originalEvent),"next"===n||"previous"===n?this._targetCellTabHandler(e,n):("upArrow"===n||"downArrow"===n)&&this._navigateNextCell(e.originalEvent,n)):p&&this._startEditing(e)}_getEnterKeyDirection(e){var t=this.option("keyboardNavigation.enterKeyDirection"),n=e.shift;return"column"===t?n?"upArrow":"downArrow":"row"===t?n?"previous":"next":void 0}_handleEnterKeyEditingCell(e){var{target:t}=e,n=this._getCellElementFromTarget(t),p=this._isRowEditMode();this._updateFocusedCellPosition(n),p?(this._focusEditFormCell(n),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(_.A.trigger((0,j.A)(t),"change"),this._closeEditCell(),e.preventDefault())}_escapeKeyHandler(e,t){var n=this._getCellElementFromTarget(e.originalEvent.target);return!!t&&(this._updateFocusedCellPosition(n),this._isRowEditMode()?(this._focusEditFormCell(n),this._editingController.cancelEditData(),0===this._dataController.items().length&&(this._resetFocusedCell(),this._editorFactory.loseFocus())):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._closeEditCell(),e.originalEvent.preventDefault(),!0)}_ctrlFKeyHandler(e){if(this.option("searchPanel.visible")){var t=this._headerPanel.getSearchTextEditor();t&&(t.focus(),e.originalEvent.preventDefault())}}_f2KeyHandler(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),n=this._focusedView&&this._focusedView.getRow(t);!e&&ud(n)&&this._startEditing()}_navigateNextCell(e,t){var n=this._getNextCell(t),p=this._getDirectionCodeByKey(t);return!(!n||!this._isCellValid(n))&&this._arrowKeysHandlerFocusCell(e,n,p)}_arrowKeysHandlerFocusCell(e,t,n){var P=this._fireFocusChangingEvents(e,t,"prevRow"===n||"nextRow"===n,!0);return t=P.$newCellElement,!(P.cancel||!this._isCellValid(t)||(this._focus(t,!P.isHighlighted),0))}_beginFastEditing(e,t){if(!this._isFastEditingAllowed()||e.altKey||e.ctrlKey||this._editingController.isEditing())return!1;if(t)this._startEditing(e,Ma);else{var{key:n}=e,p=e.keyCode||e.which,P=n||p&&String.fromCharCode(p);P&&(1===P.length||P===Ma)&&this._startEditing(e,P)}return!0}_pointerEventHandler(e){var t,n=e.event||e,p=(0,j.A)(n.currentTarget),P=null===(t=this._rowsView)||void 0===t?void 0:t.element(),J=p.parent(),fe=(0,j.A)(n.target).is(Zo),ke=!!(0,j.A)(n.target).closest(".".concat("dx-revert-button")).length,Ue=p.hasClass(rn);this._isEventInCurrentGrid(n)&&(ke||!this._isCellValid(p,!fe)&&!Ue?p.is("td")&&this._resetFocusedCell():(p=this._isInsideEditForm(p)?(0,j.A)(n.target):p,this._focusView(),(0,j.A)(P).removeClass(gr),J.hasClass(At)?(this._updateFocusedCellPosition(p),this._applyTabIndexToElement(this._focusedView.element()),this._focusedView.focus(!0)):this._isMasterDetailCell(p)?this._updateFocusedCellPosition(p):this._clickTargetCellHandler(n,p)))}_clickTargetCellHandler(e,t){var n=this._getColumnByCellElement(t),p=this._isCellEditMode();this.setCellFocusType();var P=this._fireFocusChangingEvents(e,t,!0);if(t=P.$newCellElement,P.cancel)this.setRowFocusType(),this.setFocusedRowIndex(P.prevRowIndex),this._editingController.isEditing()&&p&&this._closeEditCell();else{if(P.resetFocusedRow)return void this._focusController._resetFocusedRow();if(P.rowIndexChanged&&(t=this._getFocusedCell()),!P.isHighlighted&&!p&&this.setRowFocusType(),this._updateFocusedCellPosition(t),this._allowRowUpdating()&&p&&n&&n.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{t=this._getFocusedCell();var J=e&&(0,j.A)(e.target).closest("".concat(js,", td")),fe=J&&J.not(t).is(js),ke=!!n&&!n.command&&t.hasClass(om);this._focus(t,!ke&&(!P.isHighlighted||fe),fe)}}}_allowRowUpdating(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")}focus(e){var t,n=this.option("focusedRowEnabled"),p=this._isCellElement((0,j.A)(e));e||(t=".dx-datagrid-rowsview .dx-row[tabindex]",n||(t+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),e=this.component.$element().find(t).first()),e&&this._focusElement((0,j.A)(e),p)}getFocusedView(){return this._focusedView}setupFocusedView(){this.isKeyboardEnabled()&&!(0,m.O9)(this._focusedView)&&this._focusView()}_focusElement(e,t){var n=(0,j.A)(this._getRowsViewElement()),p=e.closest(n),P=this.isRowFocusType(),J={};!p.length||this._isCellElement(e)&&!this._isCellValid(e)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(this._isCellElement(e)||$c(e))&&(this.setCellFocusType(),e=(J=this._fireFocusChangingEvents(null,e,!0,t)).$newCellElement,P&&!J.isHighlighted&&this.setRowFocusType()),J.cancel||(this._focus(e,!J.isHighlighted),this._focusInteractiveElement(e)))}_getFocusedViewByElement(e){var t=this.getFocusedView(),n=t&&(0,j.A)(t.element());return e&&0!==e.closest(n).length}_focusView(){this._focusedView=this._rowsView}_resetFocusedView(){this.setRowFocusType(),this._focusedView=null}_focusInteractiveElement(e,t){if(e){var n=this._getInteractiveElement(e,t);Ui.A.focusAndSelectElement(this,n)}}_focus(e,t,n){var p=e&&!e.hasClass(fc)?e.closest(".".concat(fc)):e;if(!p||!function Pg(V){return!V||V.hasClass(At)||V.hasClass("dx-virtual-row")}(p)){var fe,P=this._focusedView,J=P&&P.element();this._isHiddenFocus=t;var ke=$c(p)||function Xu(V){return V&&V.hasClass("dx-datagrid-group-footer")}(p)||this.isRowFocusType();ke?(fe=p,P&&this.setFocusedRowIndex(this._getRowIndex(p))):this._isCellElement(e)&&(fe=e,this._updateFocusedCellPosition(e)),fe&&(J&&J.find(".dx-row[tabindex], .dx-row > td[tabindex]").not(fe).removeClass(Fr).removeClass(go).removeAttr("tabindex"),_.A.one(fe,"blur",Ue=>{Ue.relatedTarget&&fe.removeClass(Fr).removeClass(go)}),n||(this._applyTabIndexToElement(fe),_.A.trigger(fe,"focus")),t?(fe.addClass(Fr),ke&&e.addClass(Fr)):this._editorFactory.focus(fe))}}_updateFocus(e){this._updateFocusTimeout=setTimeout(()=>{if(this._needFocusEditingCell())this._editingController._focusEditingCell();else{var t=this._getFocusedCell(),n=this._editingController.isEditing();if((!this._isMasterDetailCell(t)||this._isRowEditMode())&&(this._hasSkipRow(t.parent())&&(t=this._getNextCell(this._focusedCellPosition&&this._focusedCellPosition.rowIndex>0?"upArrow":"downArrow")),ac(t)))if(t.is("td")||t.hasClass(this.addWidgetPrefix("edit-form-item"))){var P=t.is(fr),J=t.find(":focus"),fe=ac(J),ke=this._getColumnByCellElement(t);if(!e&&P||!this._editorFactory.focus())!fe&&(this._isNeedFocus||this._isHiddenFocus)&&this._focus(t,this._isHiddenFocus);else{if(P&&fe)return void Ui.A.focusAndSelectElement(this,J);!fe&&this._focus(t)}n&&!ke?.showEditorAlways&&this._focusInteractiveElement.bind(this)(t)}else _.A.trigger(t,"focus")}})}_getColumnByCellElement(e){var n=this._rowsView.getCellIndex(e)+this._columnsController.getColumnIndexOffset();return this._columnsController.getVisibleColumns(null,!0)[n]}_needFocusEditingCell(){var e=this._editingController.getEditMode()===dm,t=this._editingController.getEditMode()===Bf,n=e&&this._editingController.hasChanges(),p=t&&this._editingController.isNewRowInEditMode(),P=this._getFocusedCell();return(0===P.children().length||P.find(Ah).length>0)&&(n||p)}_getFocusedCell(){return(0,j.A)(this._getCell(this._focusedCellPosition))}_updateFocusedCellPositionByTarget(e){var t;if("row"===this._getElementType(e)&&(0,m.O9)(null===(t=this._focusedCellPosition)||void 0===t?void 0:t.columnIndex)){var p=(0,j.A)(e);this._focusedView&&$c(p)&&this.setFocusedRowIndex(this._getRowIndex(p))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(e))}_updateFocusedCellPosition(e,t){var n=this._getCellPosition(e,t);return n&&(!e.length||n.rowIndex>=0&&n.columnIndex>=0)&&this.setFocusedCellPosition(n.rowIndex,n.columnIndex),n}_getFocusedColumnIndexOffset(e){var t=0,n=this._columnsController.getVisibleColumns()[e];return n&&n.fixed?t=this._getFixedColumnIndexOffset(n):e>=0&&(t=this._columnsController.getColumnIndexOffset()),t}_getFixedColumnIndexOffset(e){var t=function uv(V,e){return V.option("rtlEnabled")?!("right"===e.fixedPosition||(0,m.O9)(e.command)&&!(0,m.O9)(e.fixedPosition)):!(!(0,m.O9)(e.fixedPosition)||"left"===e.fixedPosition)}(this,e)?this._getVisibleColumnCount()-this._columnsController.getVisibleColumns().length:0;return t}_getCellPosition(e,t){var n,p=ac(e)&&e.closest("tr");if(ac(p)){var P=this._getRowIndex(p);return n=this._rowsView.getCellIndex(e,P),n+=this._getFocusedColumnIndexOffset(n),t&&(n=this._applyColumnIndexBoundaries(n="previous"===t?n-1:n+1)),{rowIndex:P,columnIndex:n}}}_focusCell(e,t){if(this._isCellValid(e))return this._focus(e,t),!0}_focusEditFormCell(e){e.hasClass(Di)&&this._editorFactory.focus(e,!0)}_resetFocusedCell(e){var t,n=this._getFocusedCell();ac(n)&&n.removeAttr("tabindex"),this._isNeedFocus=!1,this._isNeedScroll=!1,this._focusedCellPosition={},clearTimeout(this._updateFocusTimeout),null===(t=this._focusedView)||void 0===t||t.renderFocusState({preventScroll:e})}restoreFocusableElement(e,t){var n,p,P=(0,m.O9)(e),J=this._rowsView.element(),{columnIndex:fe}=this._focusedCellPosition,ke=this._dataController.getRowIndexOffset();e=P?e:this._rowsView.getTopVisibleItemIndex()+ke,P?(p=this._rowsView.getRow(e-ke),!(n=this._fireFocusedRowChanging(t,p)).cancel&&n.rowIndexChanged&&(e=n.newRowIndex)):(this._editorFactory.loseFocus(),this._applyTabIndexToElement(J),_.A.trigger(J,"focus")),(!P||!n.cancel)&&this.setFocusedCellPosition(e,fe),P&&this._updateFocus()}_getNewPositionByCode(e,t,n){var{columnIndex:p}=e,{rowIndex:P}=e;if(void 0===e.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":p<this._getVisibleColumnCount()-1&&"row"!==t&&this._hasValidCellAfterPosition({columnIndex:p,rowIndex:P})?p++:!this._isLastRow(P)&&"next"===n&&(p=0,P++);break;case"previousInRow":case"previous":p>0&&"row"!==t&&this._hasValidCellBeforePosition({columnIndex:p,rowIndex:P})?p--:P>0&&"previous"===n&&(P--,p=this._getVisibleColumnCount()-1);break;case"upArrow":P=P>0?P-1:P;break;case"downArrow":P=this._isLastRow(P)?P:P+1}return{columnIndex:p,rowIndex:P}}setFocusedCellPosition(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)}setFocusedRowIndex(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e}setFocusedColumnIndex(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e}getRowIndex(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex:-1}getColumnIndex(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:-1}getVisibleRowIndex(){var e,t=null===(e=this._focusedCellPosition)||void 0===e?void 0:e.rowIndex;return!(0,m.O9)(t)||t<0?-1:t-this._dataController.getRowIndexOffset()}getVisibleColumnIndex(){var e,t=null===(e=this._focusedCellPosition)||void 0===e?void 0:e.columnIndex;return(0,m.O9)(t)?t-this._columnsController.getColumnIndexOffset():-1}_applyColumnIndexBoundaries(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e}_isCellByPositionValid(e){var t=(0,j.A)(this._getCell(e));return this._isCellValid(t)}_isLastRow(e){var t=this._dataController;return this._isVirtualRowRender()?e>=t.getMaxRowIndex():e===Math.max(...t.items().map((p,P)=>!1!==p.visible?P:-1))}_isFirstValidCell(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._hasValidCellBeforePosition(e)),t}_hasValidCellBeforePosition(e){for(var{columnIndex:t}=e,n=!1;t>0&&!n;){var p={columnIndex:--t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(p)}return n}_hasValidCellAfterPosition(e){for(var{columnIndex:t}=e,n=!1,p=this._getVisibleColumnCount();t<p-1&&!n;){var P={columnIndex:++t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(P)}return n}_isLastValidCell(e){var t=e.columnIndex>=0?e.columnIndex+1:0,{rowIndex:n}=e,p={columnIndex:t,rowIndex:n},P=this._dataController.getVisibleRows(),J=P&&P[n];return!!this._isLastRow(n)&&(!!(("group"===J?.rowType||"groupFooter"===J?.rowType)&&e.columnIndex>0||e.columnIndex===this._getVisibleColumnCount()-1)||!this._isCellByPositionValid(p)&&this._isLastValidCell(p))}_isCellValid(e,t){if(ac(e)){var n=e.parent(),p=this._rowsView.getCellIndex(e)+this._columnsController.getColumnIndexOffset(),P=this._getColumnByCellElement(e),J=this._getVisibleColumnCount(),fe=this._editingController,ke=ku(n),Ue=P&&P.showWhenGrouped,Ze=P&&!e.hasClass(rn)&&ud(n);if(void 0!==e.attr("dx-drag-cell"))return!1;if(this._isMasterDetailCell(e))return!0;if(J>p&&(!ke&&P&&(!(0,m.O9)(P.groupIndex)||Ue&&Ze)||parseInt(e.attr("colspan"),10)>1)){var vi=this._dataController.items(),Li=this._rowsView.getRowIndex(n),tn=vi[Li],On=fe&&this._isCellEditMode()&&fe.isEditing(),Qn=fe&&fe.isEditRow(Li),zr=Qn||On;return P.command?this._isLegacyNavigation()?!zr&&"expand"===P.command:!On&&(Qn?"select"!==P.command:!zr):(!On||!tn||"data"===tn.rowType)&&(!zr||P.allowEditing||t)}}}getFirstValidCellInRow(e,t){for(var p,P,n=e.find("> td"),J=t=t||0;J<n.length;++J)if(p=n.eq(J),this._isCellValid(p)){P=p;break}return P}_getNextCell(e,t,n){var fe,ke,p=n||this._focusedCellPosition,P=this.isRowFocusType(),J=P||["next","previous"].includes(e);if(this._focusedView&&p){var Ue=this._getNewPositionByCode(p,t,e);fe=(0,j.A)(this._getCell(Ue));var Ze="previous"===e?this._isFirstValidCell(Ue):this._isLastValidCell(Ue);if(ac(fe)&&!this._isCellValid(fe)&&this._isCellInRow(Ue,J)&&!Ze&&(fe=P?this.getFirstValidCellInRow(fe.parent(),Ue.columnIndex):this._getNextCell(e,"cell",Ue)),ke=ac(fe)&&fe.parent(),this._hasSkipRow(ke)){var Ft=this._getRowIndex(ke);if(this._isLastRow(Ft))return null;fe=this._getNextCell(e,"row",{columnIndex:p.columnIndex,rowIndex:Ft})}return ac(fe)?fe:null}return null}_startEditing(e,t){var n=this._focusedCellPosition,p=this.getVisibleRowIndex(),P=this.getVisibleColumnIndex(),J=this._dataController.items()[p],fe=this._columnsController.getVisibleColumns()[P];this._isAllowEditing(J,fe)&&(this._isRowEditMode()?this._editingController.editRow(p):n&&this._startEditCell(e,t))}_isAllowEditing(e,t){return this._editingController.allowUpdating({row:e})&&t&&t.allowEditing}_editFocusedCell(){var e=this.getVisibleRowIndex(),t=this.getVisibleColumnIndex();return this._editingController.editCell(e,t)}_startEditCell(e,t){this._fastEditingStarted=(0,m.O9)(t);var n=this._editFocusedCell(),p=(0,m.uF)(n);if(this._isFastEditingStarted()&&(p||n)){var J=p&&t===Ma?"":t,fe=p?n:(0,xe.cY)().resolve(),ke=this._rowsView.waitAsyncTemplates(!0);(0,xe.z7)(fe,ke).done(()=>{this._editingCellHandler(e,J)})}}_editingCellHandler(e,t){var n,p,P=this._getFocusedCell().find(Zo).eq(0),J=P.get(0);if(J){var fe=(0,h.lh)(e,{type:"keydown",target:J}),ke=(0,h.lh)(e,{type:"keypress",target:J}),Ue=(0,h.lh)(e,{type:"input",target:J});Ue.originalEvent&&(Ue.originalEvent=(0,h.lh)(Ue.originalEvent,{data:t})),null===(p=(n=J).select)||void 0===p||p.call(n),_.A.trigger(P,fe),fe.isDefaultPrevented()||(_.A.trigger(P,ke),ke.isDefaultPrevented())||setTimeout(()=>{var Ft=this._getKeyPressInputValue(P,t);P.val(Ft);var vi=P.closest(".".concat("dx-widget"));_.A.off(vi,"focusout"),_.A.one(vi,"focusout",()=>{_.A.trigger(P,"change")}),_.A.trigger(P,Ue)},ye.A.mozilla?25:0)}}_getKeyPressInputValue(e,t){var n=e.val();return"-"===t&&"-0"===n?"-0":t}_fireFocusChangingEvents(e,t,n,p){var P,J={},fe=null!==(P=this._getCellPosition(t))&&void 0!==P?P:{};return this.isCellFocusType()&&((J=this._fireFocusedCellChanging(e,t,p)).cancel||(fe.columnIndex=J.newColumnIndex,fe.rowIndex=J.newRowIndex,p=J.isHighlighted,t=(0,j.A)(this._getCell(fe)))),!J.cancel&&n&&t&&((J=this._fireFocusedRowChanging(e,t.parent())).cancel||(fe.rowIndex=J.newRowIndex,J.isHighlighted=p)),J.$newCellElement=(0,j.A)(this._getCell(fe)),J.$newCellElement.length||(J.$newCellElement=t),J}_fireFocusedCellChanging(e,t,n){var p=this.option("focusedColumnIndex"),P=this.option("focusedRowIndex"),J=this._getCellPosition(t),fe=J?J.columnIndex:-1,ke=J?J.rowIndex:-1,Ft={cellElement:t,prevColumnIndex:p,prevRowIndex:P,newColumnIndex:fe,newRowIndex:ke,rows:this._dataController.getVisibleRows(),columns:this._columnsController.getVisibleColumns(),event:e,isHighlighted:n||!1,cancel:!1};return this._canceledCellPosition=null,this.executeAction("onFocusedCellChanging",Ft),(Ft.newColumnIndex!==fe||Ft.newRowIndex!==ke)&&(Ft.$newCellElement=(0,j.A)(this._getCell({columnIndex:Ft.newColumnIndex,rowIndex:Ft.newRowIndex}))),Ft.cancel&&(this._canceledCellPosition={rowIndex:ke,columnIndex:fe}),Ft}_fireFocusedCellChanged(e){var t=this._rowsView.getCellIndex(e),n=e?.parent().data("options"),p=n?.key;this._memoFireFocusedCellChanged(p,t)}_memoFireFocusedCellChanged(e,t){var n=this._getFocusedCell(),p=this._getRowIndex(n?.parent()),P=Math.min(p-this._dataController.getRowIndexOffset(),this._dataController.items().length-1);if(!this._editingController.isEditCell(P,t)){var fe=this._dataController.items()[P],ke=this._columnsController.getVisibleColumns()[t];this.executeAction("onFocusedCellChanged",{cellElement:n?(0,z.c)(n):void 0,columnIndex:t,rowIndex:p,row:fe,column:ke})}}_fireFocusedRowChanging(e,t){var n=this._getRowIndex(t),p=this.option("focusedRowIndex"),P=this._dataController.loadingOperationTypes(),J={rowElement:t,prevRowIndex:p,newRowIndex:n,event:e,rows:this._dataController.getVisibleRows(),cancel:!1},fe=P.sorting||P.grouping||P.filtering||P.paging;return!this._dataController||this._dataController.isLoading()&&fe?(J.cancel=!0,J):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",J),!J.cancel&&J.newRowIndex!==n&&(J.resetFocusedRow=J.newRowIndex<0,J.resetFocusedRow||this.setFocusedRowIndex(J.newRowIndex),J.rowIndexChanged=!0)),J)}_fireFocusedRowChanged(){var e,t=this.option("focusedRowEnabled"),n=this.option("focusedRowKey"),p=null===(e=this._focusController)||void 0===e?void 0:e.getFocusedRowIndexByKey(n);!t||(0,m.O9)(n)&&p<0||this._memoFireFocusedRowChanged(n,p)}_memoFireFocusedRowChanged(e,t){var n=t-this._dataController.getRowIndexOffset();this.executeAction("onFocusedRowChanged",{rowElement:t<0?void 0:this._rowsView.getRowElement(n),rowIndex:t,row:t<0?void 0:this._dataController.getVisibleRows()[n]})}_isEventInCurrentGrid(e){return Ui.A.isElementInCurrentGrid(this,(0,j.A)(e.target))}_isRowEditMode(){var e=this._editingController.getEditMode();return e===lm||e===Hm}_isCellEditMode(){var e=this._editingController.getEditMode();return e===dm||e===Bf}_isFastEditingAllowed(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")}_getInteractiveElement(e,t){var n=e.find(Zo).filter(":visible");return t?n.last():n.first()}_applyTabIndexToElement(e){var t,n=null!==(t=this.option("tabIndex"))&&void 0!==t?t:0;e.attr("tabindex",n)}_getCell(e){if(this._focusedView&&e){var t=this._dataController.getRowIndexOffset(),n=this._columnsController.getVisibleColumns(null,!0)[e.columnIndex],p=n&&n.fixed?this._getFixedColumnIndexOffset(n):this._columnsController.getColumnIndexOffset();return this._focusedView.getCell({rowIndex:e.rowIndex>=0?e.rowIndex-t:-1,columnIndex:e.columnIndex>=0?e.columnIndex-p:-1})}}_getRowIndex(e){var t=this._rowsView.getRowIndex(e);return t>=0&&(t+=this._dataController.getRowIndexOffset()),t}_hasSkipRow(e){var t=e&&e.get(0);return t&&("none"===t.style.display||ku(e)&&!e.hasClass(this.addWidgetPrefix(sm)))}_allowEditingOnEnterKey(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")}_isLegacyNavigation(){return this.option("useLegacyKeyboardNavigation")}_getDirectionCodeByKey(e){var t;switch(e){case"upArrow":t="prevRow";break;case"downArrow":t="nextRow";break;case"leftArrow":t=this.option("rtlEnabled")?"nextInRow":"previousInRow";break;case"rightArrow":t=this.option("rtlEnabled")?"previousInRow":"nextInRow"}return t}_isVirtualScrolling(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e}_isVirtualRowRender(){return this._isVirtualScrolling()||Ui.A.isVirtualRowRendering(this)}_isVirtualColumnRender(){return"virtual"===this.option("scrolling.columnRenderingMode")}_scrollBy(e,t,n,p){var P=this,J=this._rowsView.getScrollable();return P._focusedCellPosition&&J.on("scroll",function fe(){J.off("scroll",fe),setTimeout(P.restoreFocusableElement.bind(P,n,p))}),J.scrollBy({left:e,top:t})}_isInsideEditForm(e){var t=(0,j.A)(e).closest(".".concat(this.addWidgetPrefix(sm)));return t.length&&this.elementIsInsideGrid(t)}_isMasterDetailCell(e){var t=(0,j.A)(e).closest(".".concat(Di));return t.length&&this.elementIsInsideGrid(t)}_processNextCellInMasterDetail(e,t){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)}_handleTabKeyOnMasterDetailCell(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,j.A)(e),t);var n=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(n,(0,j.A)(e)),!0}return!1}_getElementType(e){return(0,j.A)(e).is("tr")?"row":"cell"}_isFastEditingStarted(){return this._isFastEditingAllowed()&&this._fastEditingStarted}_getVisibleColumnCount(){return this._columnsController.getVisibleColumns(null,!0).length}_isCellInRow(e,t){var{columnIndex:n}=e,p=this._getVisibleColumnCount();return t?n>=0&&n<=p-1:n>0&&n<p-1}_isCellElement(e){return e.length&&"TD"===e[0].tagName}_getCellElementFromTarget(e){var t=this._getElementType(e),n=(0,j.A)(e);return"cell"===t?n.closest(".".concat(fc," > td")):n.children().not(".".concat(rn)).first()}_getRowsViewElement(){var e;return null===(e=this._rowsView)||void 0===e?void 0:e.element()}isKeyboardEnabled(){return this.option("keyboardNavigation.enabled")}_processCanceledEditCellPosition(e,t){if(this._canceledCellPosition){var n=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,n}}updateFocusedRowIndex(){var e=this._dataController,t=this.getVisibleRowIndex(),n=e.items(),p=n.length?n.length-1:-1,P=e.getRowIndexOffset();p>=0&&t>p&&this.setFocusedRowIndex(p+P)}}},extenders:{views:{rowsView:V=>class extends V{_rowClick(e){var t=this._editingController.getEditRowIndex(),n=this._keyboardNavigationController.isKeyboardEnabled();t===e.rowIndex&&this._keyboardNavigationController.setCellFocusType(),(Tm()||!n)&&this.option("focusedRowEnabled")&&this._triggerPointerDownEventHandler(e,!n),super._rowClick.apply(this,arguments)}_triggerPointerDownEventHandler(e,t){var{originalEvent:n}=e.event;if(n){var p=(0,j.A)(n.target),P=this.getCellIndex(p),J=this._columnsController.getVisibleColumns()[P],fe=this._dataController.items()[e.rowIndex];if(this._keyboardNavigationController._isAllowEditing(fe,J)||t){var ke=(0,h.lh)(n,{currentTarget:n.target});this._keyboardNavigationController._pointerEventHandler(ke)}}}renderFocusState(e){var{preventScroll:t,pageSizeChanged:n}=e??{},p=this.element();p&&!(0,Yd.in)(p)&&p.attr("tabindex",null),n&&this._keyboardNavigationController.updateFocusedRowIndex();var P=this._keyboardNavigationController.getVisibleRowIndex();(!(0,m.O9)(P)||P<0)&&(P=0);var J=this.getCellElements(P);this._keyboardNavigationController.isKeyboardEnabled()&&J?.length&&this.updateFocusElementTabIndex(J,t)}updateFocusElementTabIndex(e,t){var n=e.eq(0).parent();if($c(n))this._keyboardNavigationController._applyTabIndexToElement(n);else{var p=this._keyboardNavigationController.getColumnIndex();(!(0,m.O9)(p)||p<0)&&(p=0),this._updateFocusedCellTabIndex(e,p)}}_updateFocusedCellTabIndex(e,t){var n=this._keyboardNavigationController,p=e?e.length:-1,P=function(ke){var Ue=n._isMasterDetailCell(ke),Ze=n._isCellValid(ke);if(!Ue&&Ze&&n._isCellElement(ke))return n._applyTabIndexToElement(ke),n.setCellFocusType(),!0},J=((V,e)=>V.filter("[".concat("aria-colindex",'="').concat(e+1,'"]:not([').concat("dx-drag-cell","])")).first())(e,t);if(J.length)P(J);else{p<=t&&(t=p-1);for(var fe=t;fe<p&&!P((0,j.A)(e[fe]));++fe);}}renderDelayedTemplates(e){super.renderDelayedTemplates.apply(this,arguments),this.waitAsyncTemplates().done(()=>{this._renderFocusByChange(e)})}_renderFocusByChange(e){var t,{operationTypes:n,repaintChangesOnly:p}=e??{},{fullReload:P,pageSize:J}=n??{},fe=!(null===(t=e?.changeTypes)||void 0===t||!t.find(Ue=>"insert"===Ue||"remove"===Ue));if(!e||!p||P||J||fe){var ke=function ax(V){var e=V.getController("keyboardNavigation");return!!e._isVirtualScrolling()&&V.option("focusedRowIndex")===e.getRowIndex()}(this);this.renderFocusState({preventScroll:ke,pageSizeChanged:J})}}_renderCore(e){var t=super._renderCore.apply(this,arguments);return this._renderFocusByChange(e),t}_editCellPrepared(e){var t,n=this._getEditorInstance(e),p=null===(t=this._keyboardNavigationController)||void 0===t?void 0:t._isFastEditingStarted();n&&p&&this._handleEditingNavigationMode(n),super._editCellPrepared.apply(this,arguments)}_handleEditingNavigationMode(e){["downArrow","upArrow"].forEach(n=>{var p=e._supportedKeys()[n];e.registerKeyHandler(n,P=>{if("true"===e._input().attr("aria-expanded"))return p&&p.call(e,P)})}),e.registerKeyHandler("leftArrow",s.lQ),e.registerKeyHandler("rightArrow",s.lQ),"dxDateBox"===e.NAME&&e.option("useMaskBehavior")&&e.registerKeyHandler("enter",s.lQ)}_getEditorInstance(e){var t=e.find(".dx-texteditor").eq(0);return Ui.A.getWidgetInstance(t)}}},controllers:{editing:V=>class extends V{editCell(e,t){if(this._keyboardNavigationController._processCanceledEditCellPosition(e,t))return!1;var n=super.editCell(e,t);return n&&this._keyboardNavigationController.setupFocusedView(),n}editRow(e){var t=this._keyboardNavigationController.getVisibleColumnIndex(),n=this._columnsController.getVisibleColumns()[t];(n&&n.type||this.option("editing.mode")===Hm)&&this._keyboardNavigationController._resetFocusedCell(),super.editRow(e)}addRow(e){return this._keyboardNavigationController.setupFocusedView(),this._keyboardNavigationController.setCellFocusType(),super.addRow.apply(this,arguments)}getFocusedCellInRow(e){var t=super.getFocusedCellInRow(e),n=this._dataController.getRowIndexOffset(),p=this._keyboardNavigationController._focusedCellPosition.rowIndex-n;if(this._keyboardNavigationController.isKeyboardEnabled()&&p===e){var P=this._keyboardNavigationController._getFocusedCell();ac(P)&&!P.hasClass(Cr)&&(t=P)}return t}_processCanceledEditingCell(){this.closeEditCell().done(()=>{this._keyboardNavigationController._updateFocus()})}closeEditCell(){var e=this._keyboardNavigationController;e._fastEditingStarted=!1;var t=super.closeEditCell.apply(this,arguments);return e._updateFocus(),t}_delayedInputFocus(){this._keyboardNavigationController._isNeedScroll=!0,super._delayedInputFocus.apply(this,arguments)}_isEditingStart(){var e=super._isEditingStart.apply(this,arguments);if(e&&!this._keyboardNavigationController._isNeedFocus){var t=this._keyboardNavigationController._getFocusedCell();this._keyboardNavigationController._focus(t,!0)}return e}},data:V=>class extends V{_correctRowIndices(e){var t=this._keyboardNavigationController._focusedCellPosition;if(super._correctRowIndices.apply(this,arguments),t&&t.rowIndex>=0){var n=e(t.rowIndex);n&&(t.rowIndex+=n,this._editorFactoryController.refocus())}}getMaxRowIndex(){var e=this.items().length-1,t=this.virtualItemsCount();return t&&(e+=this.getRowIndexOffset()+t.end),e}},adaptiveColumns:V=>class extends V{_showHiddenCellsInView(e){var{viewName:t,$cells:n,isCommandColumn:p}=e;super._showHiddenCellsInView.apply(this,arguments),t===bd&&!p&&n.each((P,J)=>{var fe=(0,j.A)(J);jp(fe)&&fe.attr("tabindex",0)})}_hideVisibleCellInView(e){var{viewName:t,$cell:n,isCommandColumn:p}=e;super._hideVisibleCellInView.apply(this,arguments),t===bd&&!p&&jp(n)&&n.removeAttr("tabindex")}},keyboardNavigation:V=>class extends V{init(){var e;super.init(),this.rowsViewFocusOutHandlerContext=null!==(e=this.rowsViewFocusOutHandlerContext)&&void 0!==e?e:this.rowsViewFocusOutHandler.bind(this)}subscribeToRowsViewFocusEvent(){var e;super.subscribeToRowsViewFocusEvent();var t=null===(e=this._rowsView)||void 0===e?void 0:e.element();_.A.on(t,"focusout",this.rowsViewFocusOutHandlerContext)}unsubscribeFromRowsViewFocusEvent(){var e;super.unsubscribeFromRowsViewFocusEvent();var t=null===(e=this._rowsView)||void 0===e?void 0:e.element();_.A.off(t,"focusout",this.rowsViewFocusOutHandlerContext)}rowsViewFocusHandler(e){var t=(0,j.A)(e.target);this.translateFocusIfNeed(e,t),super.rowsViewFocusHandler(e)}rowsViewFocusOutHandler(){this.makeScrollableFocusableIfNeed()}translateFocusIfNeed(e,t){var n=this.isScrollableNeedFocusable(),p=this._isFixedColumn(0);if(n&&p){var P=this._rowsView.getCell({rowIndex:0,columnIndex:0}),J=!!P.attr("tabindex"),fe=t.is(this._$firstNotFixedCell);J&&fe&&(e.preventDefault(),this._focus(P))}}renderCompleted(e){this._$firstNotFixedCell=this.getFirstNotFixedCell(),this.makeScrollableFocusableIfNeed(),super.renderCompleted(e)}_focus(e,t,n){super._focus(e,t,n),this.makeScrollableFocusableIfNeed()}_tabKeyHandler(e,t){var n,P=!((0,m.O9)(this._focusedCellPosition)&&!(0,m.RI)(this._focusedCellPosition))||!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),J=this.isScrollableNeedFocusable();P&&J&&(null===(n=this._$firstNotFixedCell)||void 0===n||n.removeAttr("tabIndex")),super._tabKeyHandler(e,t)}getFirstNotFixedCell(){var t=this._columnsController.getVisibleColumns().findIndex(n=>{var{fixed:p}=n;return!p});return-1===t?void 0:this._rowsView._getCellElement(0,t)}isScrollableNeedFocusable(){var e,t,n=!!this._rowsView.getScrollable(),p=!(null===(e=this._rowsView._fixedTableElement)||void 0===e||!e.length),P=!(null===(t=this._rowsView.getCellElements(0))||void 0===t||!t.length);return n&&p&&P}makeScrollableFocusableIfNeed(){!this.isScrollableNeedFocusable()||!this._$firstNotFixedCell||this._applyTabIndexToElement(this._$firstNotFixedCell)}}}}});class r1{constructor(e){this._data=e.data,this._groupLevel=e.groupLevel||0,this._totalAggregates=IC(e.totalAggregates||[],lS),this._groupAggregates=IC(e.groupAggregates||[],lS),this._totals=[]}calculate(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})}totalAggregates(){return this._totals}_aggregate(e,t,n){for(var p=t.items?t.items.length:0,P=0;P<e.length;P++)if(e[P].aggregator!==Hl.zL.count)for(var J=0;J<p;J++)this._accumulate(P,e[P],n,t.items[J]);else n[P]=(n[P]||0)+p}_calculateTotals(e,t){if(0===e&&(this._totals=this._seed(this._totalAggregates)),e===this._groupLevel)this._aggregate(this._totalAggregates,t,this._totals);else for(var n=0;n<t.items.length;n++)this._calculateTotals(e+1,t.items[n]);0===e&&(this._totals=this._finalize(this._totalAggregates,this._totals))}_calculateGroups(e){var t=this._groupLevel,n=t+1,p=this._seed.bind(this,this._groupAggregates),P=this._aggregate.bind(this,this._groupAggregates),J=this._finalize.bind(this,this._groupAggregates);function fe(ke){ke.aggregates=p(n-1),n===t?P(ke,ke.aggregates):n1(n,t,ke,Ue=>{P(Ue,ke.aggregates)}),ke.aggregates=J(ke.aggregates)}for(;--n>0;)n1(0,n,e,fe)}_seed(e,t){return IC(e,n=>{var{aggregator:p}=n;return"seed"in p?(0,m.Tn)(p.seed)?p.seed(t):p.seed:NaN})}_accumulate(e,t,n,p){var P=t.selector(p),{aggregator:J}=t,{skipEmptyValues:fe}=t;fe&&function UD(V){return V!=V||""===V||null==V}(P)||(n[e]=n[e]!=n[e]?P:J.step(n[e],P))}_finalize(e,t){return IC(e,(n,p)=>{var P=n.aggregator.finalize;return P?P(t[p]):t[p]})}}var o1="groupFooter",hS="totalFooter",pS=function(V,e){var t=(0,j.A)(V),{column:n}=e,{summaryItems:p}=e,P=[];if(!n.command&&p){for(var J=0;J<p.length;J++){var fe=p[J],ke=En.getSummaryText(fe,e.summaryTexts);P.push((0,j.A)("<div>").css("textAlign",fe.alignment||n.alignment).addClass("dx-datagrid-summary-item").addClass("dx-datagrid-text-content").addClass(fe.cssClass).toggleClass("dx-datagrid-group-text-content","group"===e.rowType).text(ke).attr("aria-label","".concat(n.caption," ").concat(ke)))}t.append(P)}},fS=function(V,e){var t=V.option("summary.texts")||{};return{totalItem:e.row,summaryItems:e.row.summaryCells[e.columnIndex],summaryTexts:t}},s1=function(V){return V.summary||V.aggregates||[]},ox=function(V){return V.option("summary.recalculateWhileEditing")},KD=function V(e,t,n,p){p=p||[];for(var P=0;P<e.length;P++)p.push(e[P].key),1===t?n(p,e[P].items):V(e[P].items,t-1,n,p),p.pop()},XD=function V(e,t,n){return n?V(e,t.map(p=>({items:[p]}),n-1)):e.concat(t)},l1=function V(e,t,n){return n?e.map(p=>{var P={},J=V(p.items||[],t,n-1);return Object.defineProperty(P,"aggregates",{get:()=>p.aggregates,set:fe=>{p.aggregates=fe}}),(0,o.X)(P,p,{items:J})}):e.filter(p=>t.indexOf(p)<0)},JD=function V(e,t,n){if(!e||!t.length)return e;var J,P=n[0];return t[0]&&P&&P.length&&(J=(0,Ia.A)(e),(0,E.__)(P,function(fe){J=0===fe?J.sortBy(this.selector,this.desc):J.thenBy(this.selector,this.desc)}),J.enumerate().done(fe=>{e=fe})),t=t.slice(1),n=n.slice(1),t.length&&n.length&&(0,E.__)(e,function(){this.items=V(this.items,t,n)}),e},sx=function(V,e,t){var n=t&&t.sortByGroups&&t.sortByGroups();return n&&n.length?JD(V,e,n):V},lx=function(V,e,t,n){var p;if(ox(V)){var P=V._editingController;if(P){var J=P.getInsertedData();J.length&&(t=XD(t,J,n));var fe=P.getRemovedData();fe.length&&(t=l1(t,fe,n))}}return e&&(p=new r1({totalAggregates:e.totalAggregates,groupAggregates:e.groupAggregates,data:t,groupLevel:n})).calculate(),p?p.totalAggregates():[]};su.extend(V=>class extends V{init(){super.init.apply(this,arguments),this._editingController=this.getController("editing"),this._totalAggregates=[],this._summaryGetter=s.lQ}summaryGetter(e){if(!arguments.length)return this._summaryGetter;(0,m.Tn)(e)&&(this._summaryGetter=e)}summary(e){if(!arguments.length)return this._summaryGetter();this._summaryGetter=function(){return e}}totalAggregates(){return this._totalAggregates}isLastLevelGroupItemsPagingLocal(){var e=this.summary(),t=e?.sortByGroups();return t?.length}sortLastLevelGroupItems(e,t,n){var p=vr.A.multiLevelGroup((0,Ia.A)(e),t).toArray(),P=[];return n.forEach(J=>{KD(p,t.length,(fe,ke)=>{J.toString()===fe.toString()&&(P=P.concat(ke))})}),P}_customizeRemoteOperations(e){var t=this.summary();t&&(e.remoteOperations.summary?(!e.isCustomLoading||e.storeLoadOptions.isLoadingAll)&&(e.storeLoadOptions.group&&(e.remoteOperations.grouping?e.storeLoadOptions.groupSummary=t.groupAggregates:t.groupAggregates.length&&(e.remoteOperations.paging=!1)),e.storeLoadOptions.totalSummary=t.totalAggregates):(t.totalAggregates.length||t.groupAggregates.length&&e.storeLoadOptions.group)&&(e.remoteOperations.paging=!1)),super._customizeRemoteOperations.apply(this,arguments);var n=e.cachedData.extra;n?.summary&&!e.isCustomLoading&&(e.storeLoadOptions.totalSummary=void 0)}_handleDataLoadedCore(e){var t,n,p=(0,Hl.st)(e.storeLoadOptions.group||e.loadOptions.group||[]),P=e.remoteOperations||{},J=this.summaryGetter()(P);if(!e.isCustomLoading||e.storeLoadOptions.isLoadingAll)if(P.summary)!P.paging&&p.length&&J&&(P.grouping||lx(this,{groupAggregates:J.groupAggregates},e.data,p.length),e.data=sx(e.data,p,J));else if(!P.paging&&J){var fe=e.operationTypes||{};if(!Object.keys(fe).some(Ze=>fe[Ze])||null===(n=null===(t=e.cachedData)||void 0===t?void 0:t.extra)||void 0===n||!n.summary||p.length&&J.groupAggregates.length){var Ue=lx(this,J,e.data,p.length);e.extra=(0,m.Qd)(e.extra)?e.extra:{},e.extra.summary=Ue,e.cachedData&&(e.cachedData.extra=e.extra)}e.data=sx(e.data,p,J)}e.isCustomLoading||(this._totalAggregates=e.extra&&e.extra.summary||this._totalAggregates),super._handleDataLoadedCore(e)}}),En.registerModule("summary",{defaultOptions:()=>({summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:v.A.format("dxDataGrid-summarySum"),sumOtherColumn:v.A.format("dxDataGrid-summarySumOtherColumn"),min:v.A.format("dxDataGrid-summaryMin"),minOtherColumn:v.A.format("dxDataGrid-summaryMinOtherColumn"),max:v.A.format("dxDataGrid-summaryMax"),maxOtherColumn:v.A.format("dxDataGrid-summaryMaxOtherColumn"),avg:v.A.format("dxDataGrid-summaryAvg"),avgOtherColumn:v.A.format("dxDataGrid-summaryAvgOtherColumn"),count:v.A.format("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}),views:{footerView:class d1 extends Pr{_getRows(){return this._dataController.footerItems()}_getCellOptions(e){return(0,o.X)(super._getCellOptions(e),fS(this,e))}_renderCellContent(e,t){pS(e,t),super._renderCellContent.apply(this,arguments)}_renderCore(e){var t=!1,n=this._dataController.footerItems()[0];(!e||!e.columnIndices)&&(this.element().empty().addClass("dx-datagrid-total-footer").toggleClass("dx-datagrid-nowrap",!this.option("wordWrapEnabled")),t=!0),n&&n.summaryCells&&n.summaryCells.length&&(this._updateContent(this._renderTable({change:e}),e),t&&this._updateScrollLeftPosition())}_updateContent(e,t){return t&&"update"===t.changeType&&t.columnIndices?this.waitAsyncTemplates().done(()=>{var n=this.getTableElement().find(".dx-row"),p=e.find(".dx-row");this._updateCells(n,p,t.columnIndices[0])}):super._updateContent.apply(this,arguments)}_rowClick(e){var t=this._dataController.footerItems()[e.rowIndex]||{};this.executeAction("onRowClick",(0,o.X)({},e,t))}_columnOptionChanged(e){var{optionNames:t}=e;e.changeTypes.grouping||(t.width||t.visibleWidth)&&super._columnOptionChanged(e)}_handleDataChanged(e){var{changeType:t}=e;"update"===e.changeType&&e.repaintChangesOnly?e.totalColumnIndices?e.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[e.totalColumnIndices]}):this.render():("refresh"===t||"append"===t||"prepend"===t)&&this.render()}_createRow(e){var t=super._createRow.apply(this,arguments);return e.rowType===hS&&(t.addClass("dx-footer-row"),t.addClass("dx-cell-focus-disabled"),t.attr("tabindex",0)),t}getHeight(){return this.getElementHeight()}isVisible(){return!!this._dataController.footerItems().length}}},extenders:{controllers:{data:V=>class extends V{_isDataColumn(e){return e&&(!(0,m.O9)(e.groupIndex)||e.showWhenGrouped)}_isGroupFooterVisible(){for(var e=this.option("summary.groupItems")||[],t=0;t<e.length;t++){var n=e[t],p=this._columnsController.columnOption(n.showInColumn||n.column);if(n.showInGroupFooter&&this._isDataColumn(p))return!0}return!1}_processGroupItems(e,t,n){var p=n&&n.data,P=super._processGroupItems.apply(this,arguments);return n&&(void 0===n.isGroupFooterVisible&&(n.isGroupFooterVisible=this._isGroupFooterVisible()),p&&p.items&&n.isGroupFooterVisible&&(n.collectContinuationItems||!p.isContinuationOnNextPage)&&P.push({rowType:o1,key:n.path.slice(),data:p,groupIndex:n.path.length-1,values:[]})),P}_processGroupItem(e,t){var n=this;if(t.summaryGroupItems||(t.summaryGroupItems=n.option("summary.groupItems")||[]),"group"===e.rowType){var p=-1,P=-1;(0,E.__)(t.visibleColumns,function(J){e.groupIndex===this.groupIndex&&(p=this.index),J>0&&"expand"===t.visibleColumns[J-1].command&&"expand"!==this.command&&(P=this.index)}),e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,s1(e.data),t.visibleColumns,(J,fe)=>J.showInGroupFooter?-1:J.alignByColumn&&fe&&!(0,m.O9)(fe.groupIndex)&&fe.index!==P?fe.index:p,!0)}return e.rowType===o1&&(e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,s1(e.data),t.visibleColumns,(J,fe)=>J.showInGroupFooter&&n._isDataColumn(fe)?fe.index:-1)),e}_calculateSummaryCells(e,t,n,p,P){var J=this,fe=[],ke={};return(0,E.__)(e,(Ue,Ze)=>{var Ft=J._columnsController.columnOption(Ze.column),vi=Ze.showInColumn&&J._columnsController.columnOption(Ze.showInColumn)||Ft,Li=p(Ze,vi);if(Li>=0){ke[Li]||(ke[Li]=[]);var On,tn=t[Ue];tn==tn&&((0,m.O9)(Ze.valueFormat)?On=Ze.valueFormat:"count"!==Ze.summaryType&&(On=En.getFormatByDataType(Ft&&Ft.dataType)),ke[Li].push((0,o.X)({},Ze,{value:(0,m.Kg)(tn)&&Ft&&Ft.deserializeValue?Ft.deserializeValue(tn):tn,valueFormat:On,columnCaption:Ft&&Ft.index!==Li?Ft.caption:void 0})))}}),(0,m.RI)(ke)||n.forEach((Ue,Ze)=>{var Ft=n[Ze-1];fe.push(ke[!P||"expand"!==Ft?.command&&"expand"!==Ue.command?Ue.index:Ft?.index]||[])}),fe}_getSummaryCells(e,t){var n=this;return n._calculateSummaryCells(e,t,n._columnsController.getVisibleColumns(),(P,J)=>n._isDataColumn(J)?J.index:-1)}_updateItemsCore(e){var t,n=this._dataSource,p=this._footerItems,P=p&&p[0]&&p[0].summaryCells,J=this.option("summary.totalItems");if(this._footerItems=[],n&&J&&J.length){var fe=n.totalAggregates();t=this._getSummaryCells(J,fe),e&&e.repaintChangesOnly&&P&&(e.totalColumnIndices=t.map((ke,Ue)=>JSON.stringify(ke)!==JSON.stringify(P[Ue])?Ue:-1).filter(ke=>ke>=0)),t.length&&this._footerItems.push({rowType:hS,summaryCells:t})}super._updateItemsCore(e)}_prepareUnsavedDataSelector(e){if(ox(this)){var t=this._editingController;if(t)return function(n){return n=t.getUpdatedData(n),e(n)}}return e}_prepareAggregateSelector(e,t){return e=this._prepareUnsavedDataSelector(e),"avg"===t||"sum"===t?function(n){var p=e(n);return(0,m.O9)(p)?Number(p):p}:e}_getAggregates(e,t){var n=this,p=n.option("summary.calculateCustomSummary"),P=n.option("summary.skipEmptyValues");return(0,E.Tj)(e||[],J=>{var fe=this._columnsController.columnOption(J.column),ke=fe&&fe.calculateCellValue?fe.calculateCellValue.bind(fe):(0,aa.Hz)(fe?fe.dataField:J.column),Ue=J.summaryType||"count",Ze=(0,m.O9)(J.skipEmptyValues)?J.skipEmptyValues:P;if(t)return{selector:J.column,summaryType:Ue};var Ft=n._prepareAggregateSelector(ke,Ue);if("custom"===Ue){p||(Et.A.log("E1026"),p=function(){});var vi={component:n.component,name:J.name};p(vi),vi.summaryProcess="calculate",Ue={seed:Li=>(vi.summaryProcess="start",vi.totalValue=void 0,vi.groupIndex=Li,delete vi.value,p(vi),vi.totalValue),step:(Li,tn)=>(vi.summaryProcess="calculate",vi.totalValue=Li,vi.value=tn,p(vi),vi.totalValue),finalize:Li=>(vi.summaryProcess="finalize",vi.totalValue=Li,delete vi.value,p(vi),vi.totalValue)}}return{selector:Ft,aggregator:Ue,skipEmptyValues:Ze}})}_addSortInfo(e,t,n,p){if(t){var{groupIndex:P}=t;p=p||t.sortOrder,(0,m.O9)(P)&&(e[P]=e[P]||[],e[P].push({selector:n,desc:"desc"===p}))}}_findSummaryItem(e,t){var n=-1;return(0,m.O9)(t)&&(0,E.__)(e||[],function(p){if(this.name===t||p===t||this.summaryType===t||this.column===t||function(P){var{summaryType:J}=P,{column:fe}=P;return J&&fe&&"".concat(J,"_").concat(fe)}(this)===t)return n=p,!1}),n}_getSummarySortByGroups(e,t){var n=this,p=n._columnsController,P=p.getGroupColumns(),J=[];if(t&&t.length)return(0,E.__)(e||[],function(){var{sortOrder:fe}=this,{groupColumn:ke}=this,Ue=n._findSummaryItem(t,this.summaryItem);if(!(Ue<0)){var Ze=function(Ft){return s1(Ft)[Ue]};(0,m.O9)(ke)?(ke=p.columnOption(ke),n._addSortInfo(J,ke,Ze,fe)):(0,E.__)(P,(Ft,vi)=>{n._addSortInfo(J,vi,Ze,fe)})}}),J}_createDataSourceAdapterCore(e,t){var n=this,p=super._createDataSourceAdapterCore(e,t);return p.summaryGetter(P=>n._getSummaryOptions(P||t)),p}_getSummaryOptions(e){var t=this,n=t.option("summary.groupItems"),p=t.option("summary.totalItems"),P=t.option("sortByGroupSummaryInfo"),J=t._getAggregates(n,e&&e.grouping&&e.summary),fe=t._getAggregates(p,e&&e.summary);if(J.length||fe.length)return{groupAggregates:J,totalAggregates:fe,sortByGroups:function(){return t._getSummarySortByGroups(P,n)}}}publicMethods(){var e=super.publicMethods();return e.push("getTotalSummaryValue"),e}getTotalSummaryValue(e){var t=this._findSummaryItem(this.option("summary.totalItems"),e),n=this._dataSource.totalAggregates();if(n.length&&t>-1)return n[t]}optionChanged(e){("summary"===e.name||"sortByGroupSummaryInfo"===e.name)&&(e.name="dataSource"),super.optionChanged(e)}init(){this._footerItems=[],super.init()}footerItems(){return this._footerItems}},editing:V=>class extends V{_refreshSummary(){ox(this)&&!this.isSaving()&&this._dataController.refresh({load:!0,changesOnly:!0})}_addChange(e){var t=super._addChange.apply(this,arguments);return e.type&&this._refreshSummary(),t}_removeChange(){var e=super._removeChange.apply(this,arguments);return this._refreshSummary(),e}cancelEditData(){var e=super.cancelEditData.apply(this,arguments);return this._refreshSummary(),e}}},views:{rowsView:V=>class extends V{_createRow(e){var t=super._createRow.apply(this,arguments);return e&&t.addClass(e.rowType===o1?"dx-datagrid-group-footer":""),t}_renderCells(e,t){super._renderCells.apply(this,arguments),"group"===t.row.rowType&&t.row.summaryCells&&t.row.summaryCells.length&&this._renderGroupSummaryCells(e,t)}_hasAlignByColumnSummaryItems(e,t){return!(0,m.O9)(t.columns[e].groupIndex)&&t.row.summaryCells[e].length}_getAlignByColumnCellCount(e,t){for(var n=0,p=1;p<e;p++)n=this._hasAlignByColumnSummaryItems(t.row.summaryCells.length-p,t)?p:n;return n}_renderGroupSummaryCells(e,t){var n=e.children().last(),p=Number(n.attr("colSpan"))||1,P=this._getAlignByColumnCellCount(p,t);this._renderGroupSummaryCellsCore(n,t,p,P)}_renderGroupSummaryCellsCore(e,t,n,p){if(p>0){e.attr("colSpan",n-p);for(var P=0;P<p;P++){var J=t.columns.length-p+P;this._renderCell(e.parent(),(0,o.X)({column:t.columns[J],columnIndex:this._getSummaryCellIndex(J,t.columns)},t))}}}_getSummaryCellIndex(e,t){return e}_getCellTemplate(e){return!e.column.command&&!(0,m.O9)(e.column.groupIndex)&&e.summaryItems&&e.summaryItems.length?pS:super._getCellTemplate(e)}_getCellOptions(e){var t=super._getCellOptions(e);return e.row.summaryCells?(0,o.X)(t,fS(this,e)):t}}}}});var R_=D(12824),kC=D(39544),RC="content",$b="content-fixed",gS="dx-first-cell",PC="dx-state-hover",LC="dx-col-fixed",c1="dx-pointer-events-none",H0="transparent",z0="dx-group-row",t_=function(V){var e=-1;return(0,E.__)(V,(t,n)=>{if(n.command===H0)return e=t,!1}),e},vS=function(V,e,t){var n=0;if(V&&e&&t)for(var p=0;p<V.length;p++)V[p].command===H0?n+=V[p].colspan:(e[n]<t[p]&&(e[n]=t[p]),n++);return e},FC=V=>class extends V{init(){super.init(),this._isFixedTableRendering=!1,this._isFixedColumns=!1}_createCol(e){return super._createCol(e).toggleClass(LC,!(!this._isFixedTableRendering||!(e.fixed||e.command&&e.command!==H0)))}_correctColumnIndicesForFixedColumns(e,t){var n=t_(e),p=e[n].colspan,P=t&&t.columnIndices;P&&(t.columnIndices=P.map(J=>{if(J)return J.map(fe=>fe<n?fe:fe>=n+p?fe-p+1:-1).filter(fe=>fe>=0)}))}_partialUpdateFixedTable(e){var t=this._fixedTableElement,n=this._getRowElementsCore(t);t.children("colgroup").replaceWith(this._createColGroup(e));for(var P=0;P<n.length;P++)this._partialUpdateFixedRow((0,j.A)(n[P]),e)}_partialUpdateFixedRow(e,t){var n,ke,p=e.get(0).childNodes,P=t_(t),J=t[P],Ue=this._columnsController.getColumnIndexOffset()+1,{colspan:Ze}=J;if(e.hasClass("dx-master-detail-row"))p[0].setAttribute("colspan",null===(n=this._columnsController.getVisibleColumns())||void 0===n?void 0:n.length);else{e.hasClass(z0)&&(Ze=(ke=this._getGroupCellOptions({row:e.data("options"),columns:this._columnsController.getVisibleColumns()})).colspan-Math.max(0,p.length-(ke.columnIndex+2)));for(var Ft=0;Ft<p.length;Ft++){var vi=ke?Ft===ke.columnIndex+1:Ft===P;p[Ft].setAttribute("aria-colindex",Ue),vi?(p[Ft].setAttribute("colspan",Ze),Ue+=Ze):Ue++}}}_renderTable(e){var t,n,p=this.getFixedColumns();this._isFixedColumns=!!p.length;var P=super._renderTable(e);if(this._isFixedColumns){var J=e?.change,fe=this._getRowElements(this._fixedTableElement),ke=J?.virtualColumnsScrolling&&fe.length===(null===(t=J?.items)||void 0===t?void 0:t.length);if(this._isFixedTableRendering=!0,ke&&!0!==this.option("scrolling.legacyMode"))this._partialUpdateFixedTable(p),this._isFixedTableRendering=!1;else{var Ue=J?.columnIndices;this._correctColumnIndicesForFixedColumns(p,J),n=this._createTable(p),this._renderRows(n,(0,o.X)({},e,{columns:p})),this._updateContent(n,J,!0),Ue&&(J.columnIndices=Ue),this._isFixedTableRendering=!1}}else this._fixedTableElement&&this._fixedTableElement.parent().remove(),this._fixedTableElement=null;return P}_renderRow(e,t){var n,{cells:p}=t.row;if(super._renderRow.apply(this,arguments),this._isFixedTableRendering&&p&&p.length){n=0;var P=t.row.cells||[];p=p.slice(),t.row.cells=p;for(var J=0;J<P.length;J++)P[J].column&&P[J].column.command===H0?n=(P[J].column.colspan||1)-1:p[J+n]=P[J]}}_createCell(e){var J,fe,ke,{column:t}=e,n=t&&t.command,{rowType:p}=e,P=super._createCell.apply(this,arguments);(this._isFixedTableRendering||"filter"===p)&&(fe=(J=this.getFixedColumns())[(ke=t_(J))-1]),this._isFixedTableRendering?n===H0&&(P.addClass(c1).toggleClass(gS,0===ke||fe&&"expand"===fe.command).toggleClass("dx-last-cell",J.length&&ke===J.length-1),"freeSpace"!==p&&Ui.A.setEmptyText(P)):"filter"===p&&P.toggleClass(gS,e.columnIndex===ke);var Ue=this.option("rowAlternationEnabled")&&e.isAltRow,Ze="multiple"===this.option("selection.mode")&&0===e.columnIndex&&"header"===e.rowType;return ye.A.mozilla&&e.column.fixed&&"group"!==e.rowType&&!Ue&&!Ze&&P.addClass(LC),P}_getContent(e){var t;return e?null===(t=this._fixedTableElement)||void 0===t?void 0:t.parent():super._getContent.apply(this,arguments)}_wrapTableInScrollContainer(e,t){var n=super._wrapTableInScrollContainer.apply(this,arguments);return(this._isFixedTableRendering||t)&&n.addClass(this.addWidgetPrefix($b)),n}_renderCellContent(e,t){var n,{column:p}=t,P=this._isFixedTableRendering,J="group"===t.rowType&&(0,m.O9)(p.groupIndex);if(P&&J&&!p.command&&!p.groupCellTemplate&&e.css("pointerEvents","none"),!P&&this._isFixedColumns){if(n=p.fixed||p.command&&!1!==p.fixed,J&&(n=!1,t.row.summaryCells&&t.row.summaryCells.length)){var fe=this._columnsController.getVisibleColumns(),ke=this._getAlignByColumnCellCount?this._getAlignByColumnCellCount(p.colspan,{columns:fe,row:t.row,isFixed:!0}):0;if(ke>0){var Ue=t_(this._columnsController.getFixedColumns());n=fe.length-ke<Ue}}if(n){if(p.command&&"buttons"!==p.type||"group"===t.rowType)return void e.html(" ").addClass(p.cssClass);e.addClass("dx-hidden-cell")}}p.command!==H0&&super._renderCellContent.apply(this,arguments)}_getCellElementsCore(e){var t=super._getCellElementsCore.apply(this,arguments),n=t?.parent().hasClass(z0),p="columnHeadersView"===this.name?e:void 0;if(this._fixedTableElement&&t){var P=this.getFixedColumns(p),J=this._getRowElements(this._fixedTableElement).eq(e).children("td");(0,E.__)(J,(fe,ke)=>{if(n)t[fe]&&"hidden"!==ke.style.visibility&&(t[fe]=ke);else{var Ue=P[fe];if(Ue)if(Ue.command===H0)J.eq(fe).hasClass("dx-master-detail-cell")&&(t[fe]=ke||t[fe]);else{var Ze=this._columnsController.getVisibleIndexByColumn(Ue,p);t[Ze]=ke||t[Ze]}}})}return t}getColumnWidths(e){var t=super.getColumnWidths(),n=this.getFixedColumns(),p=this._fixedTableElement&&t.length?super.getColumnWidths(this._fixedTableElement):void 0;return vS(n,t,p)}getTableElement(e){return(e=this._isFixedTableRendering||e)?this._fixedTableElement:super.getTableElement()}setTableElement(e,t){this._isFixedTableRendering||t?this._fixedTableElement=e.addClass(c1):super.setTableElement(e)}getColumns(e){var t=this.getTableElement();return this._isFixedTableRendering?this.getFixedColumns(e):super.getColumns(e,t)}getRowIndex(e){var t=this._fixedTableElement;return t&&t.find(e).length?this._getRowElements(t).index(e):super.getRowIndex(e)}getTableElements(){var e=super.getTableElements.apply(this,arguments);return this._fixedTableElement&&(e=(0,j.A)([e.get(0),this._fixedTableElement.get(0)])),e}getFixedColumns(e){return this._columnsController.getFixedColumns(e)}getFixedColumnsOffset(){var t,e={left:0,right:0};if(this._fixedTableElement){var n=(t=this.getTransparentColumnElement()).position();e={left:n.left,right:(0,R.Ot)(this.element(),!0)-((0,R.Ot)(t,!0)+n.left)}}return e}getTransparentColumnElement(){return this._fixedTableElement&&this._fixedTableElement.find(".".concat(c1)).first()}getFixedTableElement(){return this._fixedTableElement}isFixedColumns(){return this._isFixedColumns}_resizeCore(){super._resizeCore(),this.synchronizeRows()}setColumnWidths(e){var t,{widths:n}=e,p=this._columnsController.getVisibleColumns(),P=n?.length&&p.some(vi=>(0,m.O9)(vi.visibleWidth)),J=null===(t=e.optionNames)||void 0===t?void 0:t.width;if(super.setColumnWidths(e),this._fixedTableElement){var fe=n?.some(vi=>"auto"===vi||!(0,m.O9)(vi)),Ue=!fe||P&&this.isScrollbarVisible(!0)?this.getFixedColumns():p;this.setFixedTableColumnWidths(Ue,n)}var Ze=this.option("wordWrapEnabled");(P||J&&Ze)&&this.synchronizeRows()}setFixedTableColumnWidths(e,t){if(this._fixedTableElement&&t){var n=this._fixedTableElement.children("colgroup").children("col");n.toArray().forEach(P=>P.removeAttribute("style"));var p=0;e.forEach(P=>{if(P.colspan)p+=P.colspan;else{var J=sa(t[p]);(0,m.O9)(J)&&(0,Ee.zj)(n.eq(p),J),p+=1}})}}_getClientHeight(e){var t=e.getBoundingClientRect&&(0,ge.N)(e);return t&&t.height?t.height:e.clientHeight}synchronizeRows(){var n,p,P,J,e=[],t=[];this.waitAsyncTemplates(!0).done(()=>{if(this._isFixedColumns&&this._tableElement&&this._fixedTableElement){var fe=this._getClientHeight(this._tableElement.get(0)),ke=this._getClientHeight(this._fixedTableElement.get(0));if(p=this._getRowElements(this._tableElement),P=this._getRowElements(this._fixedTableElement),J=this._findContentElement(),fe!==ke){for(J&&J.css("height",fe),p.css("height",""),P.css("height",""),n=0;n<p.length;n++)e.push(this._getClientHeight(p.get(n))),t.push(this._getClientHeight(P.get(n)));for(n=0;n<p.length;n++){var Ue=e[n],Ze=t[n];Ue>Ze?P.eq(n).css("height",Ue):Ue<Ze&&p.eq(n).css("height",Ze)}J&&J.css("height","")}}})}setScrollerSpacing(e,t){var n=this.option("rtlEnabled");super.setScrollerSpacing(e),this.element().children(".".concat(this.addWidgetPrefix($b))).css({paddingLeft:n?e:"",paddingRight:n?"":e})}};En.registerModule("columnFixing",{defaultOptions:()=>({columnFixing:{enabled:!1,texts:{fix:v.A.format("dxDataGrid-columnFixingFix"),unfix:v.A.format("dxDataGrid-columnFixingUnfix"),leftPosition:v.A.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:v.A.format("dxDataGrid-columnFixingRightPosition")}}}),extenders:{views:{columnHeadersView:V=>class extends(FC(V)){_getRowVisibleColumns(e){return this._isFixedTableRendering?this.getFixedColumns(e):super._getRowVisibleColumns(e)}getContextMenuItems(e){var{column:t}=e,n=this.option("columnFixing"),p=super.getContextMenuItems(e);if(e.row&&"header"===e.row.rowType&&!0===n.enabled&&t&&t.allowFixing){var P=J=>{switch(J.itemData.value){case"none":this._columnsController.columnOption(t.index,"fixed",!1);break;case"left":this._columnsController.columnOption(t.index,{fixed:!0,fixedPosition:"left"});break;case"right":this._columnsController.columnOption(t.index,{fixed:!0,fixedPosition:"right"})}};(p=p||[]).push({text:n.texts.fix,beginGroup:!0,items:[{text:n.texts.leftPosition,value:"left",disabled:t.fixed&&(!t.fixedPosition||"left"===t.fixedPosition),onItemClick:P},{text:n.texts.rightPosition,value:"right",disabled:t.fixed&&"right"===t.fixedPosition,onItemClick:P}]},{text:n.texts.unfix,value:"none",disabled:!t.fixed,onItemClick:P})}return p}getFixedColumnElements(e){if((0,m.O9)(e))return this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(e).children();var t=this.getColumnElements(),n=this.getTransparentColumnElement();if(t&&n&&n.length){var p=t_(this.getFixedColumns());t.splice(p,n.get(0).colSpan,n.get(0))}return t}getColumnWidths(){var e,t=super.getColumnWidths(),n=this.getFixedColumnElements(),p=this.getFixedColumns();return this._fixedTableElement&&(e=n&&n.length?this._getWidths(n):super.getColumnWidths(this._fixedTableElement)),vS(p,t,e)}},rowsView:V=>class extends(FC(V)){dispose(){super.dispose.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}optionChanged(e){super.optionChanged(e),"hoverStateEnabled"===e.name&&this._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())}_detachHoverEvents(){var e=this.element();this._fixedTableElement&&this._tableElement&&_.A.off(e,"mouseover mouseout",".dx-data-row")}_attachHoverEvents(){this._fixedTableElement&&this._tableElement&&_.A.on(this.element(),"mouseover mouseout",".dx-data-row",this.createAction(e=>{var{event:t}=e,n=this.getRowIndex((0,j.A)(t.target).closest(".dx-row")),p="mouseover"===t.type;n>=0&&(this._tableElement&&this._getRowElements(this._tableElement).eq(n).toggleClass(PC,p),this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(n).toggleClass(PC,p))}))}_getScrollDelay(){var e;return(null===(e=this._resizingController)||void 0===e?void 0:e.hasResizeTimeout())?this.option("scrolling.updateTimeout"):ye.A.mozilla?60:0}_findContentElement(e){var t,n,p=this.addWidgetPrefix(RC),P=this.element();if(e=this._isFixedTableRendering||e,P&&e){t=P.children(".".concat(p));var J=this.getScrollable();return!t.length&&J&&(t=(0,j.A)("<div>").addClass(p),_.A.on(t,"scroll",fe=>{var{target:ke}=fe,Ue=this._getScrollDelay();clearTimeout(this._fixedScrollTimeout),this._fixedScrollTimeout=setTimeout(()=>{n=(0,j.A)(ke).scrollTop(),J.scrollTo({y:n})},Ue)}),_.A.on(t,kC.U,fe=>{var ke=(0,j.A)(fe.target).closest(".dx-scrollable"),Ue=!1;if(J&&J.$element().is(ke))Ue=!0;else{var Ze=ke.length&&lc.A.getInstance(ke.get(0)),Ft=Ze&&Ze.scrollHeight()-Ze.clientHeight()>0;Ue=Ze&&!Ft}if(Ue){n=J.scrollTop(),J.scrollTo({y:n-fe.delta});var vi=J.scrollTop()+J.clientHeight(),Li=J.scrollHeight()+this.getScrollbarWidth();if(J.scrollTop()>0&&vi<Li)return!1}}),t.appendTo(P)),t}return super._findContentElement()}_updateScrollable(){super._updateScrollable();var e=this.getScrollable();if(!e?._disposed){var t=e&&e.scrollOffset().top;this._updateFixedTablePosition(t)}}_renderContent(e,t,n){return this._isFixedTableRendering||n?e.empty().addClass("".concat(this.addWidgetPrefix(RC)," ").concat(this.addWidgetPrefix($b))).append(t):super._renderContent(e,t)}_getGroupCellOptions(e){return super._getGroupCellOptions(this._isFixedTableRendering?(0,o.X)({},e,{columns:this._columnsController.getVisibleColumns()}):e)}_renderGroupedCells(e,t){return super._renderGroupedCells(e,(0,o.X)({},t,{columns:this._columnsController.getVisibleColumns()}))}_renderGroupSummaryCells(e,t){super._renderGroupSummaryCells(e,this._isFixedTableRendering?(0,o.X)({},t,{columns:this._columnsController.getVisibleColumns()}):t)}_hasAlignByColumnSummaryItems(e,t){var n=super._hasAlignByColumnSummaryItems.apply(this,arguments),p=t.columns[e];return t.isFixed?p.fixed&&(n||"right"===p.fixedPosition):n&&(!this._isFixedColumns||!p.fixed)}_renderGroupSummaryCellsCore(e,t,n,p){var P;if(this._isFixedTableRendering){t.isFixed=!0,P=this._getAlignByColumnCellCount(n,t),t.isFixed=!1;var J=t.columns.length-P;t=(0,o.X)({},t,{columns:this.getFixedColumns()});var fe=t_(t.columns);J<fe?(P-=t.columns[fe].colspan-1||0,n-=t.columns[fe].colspan-1||0):p>0&&e.css("visibility","hidden"),p=P}super._renderGroupSummaryCellsCore(e,t,n,p)}_getSummaryCellIndex(e,t){if(this._isFixedTableRendering){var n=t_(t);return e>n&&(e+=t[n].colspan-1),e}return super._getSummaryCellIndex.apply(this,arguments)}_renderCore(e){this._detachHoverEvents();var t=super._renderCore(e),n=this._isFixedColumns;return this.element().toggleClass("dx-fixed-columns",n),this.option("hoverStateEnabled")&&n&&this._attachHoverEvents(),t}setAriaOwns(e,t,n){var p,P;if(n){var J=this.addWidgetPrefix($b),fe=null===(p=this.element())||void 0===p?void 0:p.children(".".concat(J)),ke=this.getFixedTableElement();fe.length&&ke?.length&&this.setAria("owns","".concat(e??""," ").concat(null!==(P=ke.attr("id"))&&void 0!==P?P:""," ").concat(t??"").trim(),fe)}else super.setAriaOwns.apply(this,arguments)}setRowsOpacity(e,t){super.setRowsOpacity(e,t);var n=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(n,this.getFixedColumns(),e,t)}getCellIndex(e){var t=this._fixedTableElement,n=0;if(t&&e.is("td")&&e.closest(t).length){var p=this.getFixedColumns();return(0,E.__)(p,(P,J)=>{if(P===e[0].cellIndex)return!1;J.colspan?n+=J.colspan:n++}),n}return super.getCellIndex.apply(this,arguments)}_updateFixedTablePosition(e,t){var n;this._fixedTableElement&&this._tableElement&&(this._fixedTableElement.parent().scrollTop(e),t&&this._editorFactoryController&&(n=this._editorFactoryController.focus())&&this._editorFactoryController.focus(n))}setScrollerSpacing(e,t){var n={marginBottom:0},p=this.element().children(".".concat(this.addWidgetPrefix($b)));p.length&&this._fixedTableElement&&(p.css(n),this._fixedTableElement.css(n),n[this.option("rtlEnabled")?"marginLeft":"marginRight"]=e,n.marginBottom=t,(this._scrollable&&this._scrollable.option("useNative")?p:this._fixedTableElement).css(n))}_getElasticScrollTop(e){var t=0;if(e.scrollOffset.top<0)t=-e.scrollOffset.top;else if(e.reachedBottom){var n=(0,j.A)(e.component.content()),p=(0,j.A)(e.component.container()),P=Math.max(n.get(0).clientHeight-p.get(0).clientHeight,0);t=Math.min(P-e.scrollOffset.top,0)}return Math.floor(t)}_applyElasticScrolling(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?(0,R_.Cy)(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}}_handleScroll(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),super._handleScroll(e)}_updateContentPosition(e){super._updateContentPosition.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)}_afterRowPrepared(e){this._isFixedTableRendering||super._afterRowPrepared(e)}_scrollToElement(e){super._scrollToElement(e,this.getFixedColumnsOffset())}},footerView:V=>class extends(FC(V)){}},controllers:{draggingHeader:V=>class extends V{_generatePointsByColumns(e){var t=e.columns,{targetDraggingPanel:n}=e;if(n&&"headers"===n.getName()&&n.isFixedColumns()&&e.sourceColumn.fixed){e.rowIndex||(e.columnElements=n.getFixedColumnElements(0)),e.columns=n.getFixedColumns(e.rowIndex);var p=super._generatePointsByColumns(e);return function(V,e,t){var n=t_(e),p=V.length-e.length;(0,E.__)(t,(P,J)=>{J.index>n&&(J.columnIndex+=p,J.index+=p)})}(t,e.columns,p),p}return super._generatePointsByColumns(e)}_pointCreated(e,t,n,p){var P=super._pointCreated.apply(this,arguments),J=t[e.columnIndex],fe=this._columnHeadersView.getTransparentColumnElement();if(!P&&"headers"===n&&fe&&fe.length){var ke=(0,ge.N)(fe.get(0));return p&&p.fixed?"right"===p.fixedPosition?e.x<ke.right:e.x>ke.left:!(!J||!J.fixed||"right"===J.fixedPosition)||e.x<ke.left||e.x>ke.right}return P}},columnsResizer:V=>class extends V{_generatePointsByColumns(){var e=this,t=e._columnsController,n=t&&e._columnsController.getVisibleColumns(),p=t&&e._columnsController.getFixedColumns(),P=t_(p),J=n.length-p.length,fe=e._columnHeadersView.getFixedColumnElements();super._generatePointsByColumns(),fe&&fe.length>0&&(e._pointsByFixedColumns=Ui.A.getPointsByColumns(fe,ke=>(ke.index>P&&(ke.columnIndex+=J,ke.index+=J),e._pointCreated(ke,n.length,n))))}_getTargetPoint(e,t,n){var p=this._columnHeadersView.getTransparentColumnElement();if(p&&p.length){var P=(0,ge.N)(p.get(0));if(t<=P.left||t>=P.right)return super._getTargetPoint(this._pointsByFixedColumns,t,n)}return super._getTargetPoint(e,t,n)}},resizing:V=>class extends V{_setAriaOwns(){var e,t,n;super._setAriaOwns.apply(this,arguments);var p=null===(e=this._columnHeadersView)||void 0===e?void 0:e.getFixedTableElement(),P=null===(t=this._footerView)||void 0===t?void 0:t.getFixedTableElement();null===(n=this._rowsView)||void 0===n||n.setAriaOwns(p?.attr("id"),P?.attr("id"),!0)}}}}});var dx="columnHeadersView",cx="rowsView",BC=[dx,cx,"footerView"],hv="adaptiveHidden",Uv="detailAdaptive",NC="dx-field-item-content",Xb="hidden-column",CS="dx-command-adaptive",VC="dx-command-adaptive-hidden",u1="dx-adaptive-item-text",G0="adaptive",Jb="dx-group-cell",DS="dxDataGrid-ariaAdaptiveExpand";function zC(V,e){return V._columnsController.getColumnId(e)}function hE(V,e){var t,n=(0,j.A)(V),p=e.component.getController("adaptiveColumns");"data"===e.rowType?(t=(0,j.A)("<span>").addClass(p.addWidgetPrefix("adaptive-more")),_.A.on(t,(0,h.b4)(ce.U,"dxDataGridAdaptivity"),p.createAction(()=>{p.toggleExpandAdaptiveDetailRow(e.key)})),t.appendTo(n)):Ui.A.setEmptyText(n)}function UC(V){var e,t=null===(e=V.data)||void 0===e?void 0:e.$nextCell;_.A.off(t,"focus",UC),_.A.trigger(t,"dxclick")}function IS(V,e,t,n,p,P){P=P||[],(n=n||[])[t=t||0]=n[t]||0;var Ue,J=V[t],ke=0;if(J){for(Ue=P[t]+1||0;Ue<J.length;Ue++){var Ze=J[Ue],Ft=Ue+n[t],vi=Ze.colspan||1;if(IS(V,e,t+(Ze.rowspan||1),n,vi,P),n[t]+=vi-1,ke+=vi,Ze.rowspan)for(var Li=t+1;Li<t+Ze.rowspan;Li++)n[Li]=n[Li]||0,n[Li]+=Ze.colspan||1;if(!1===e(Ze,Ft,t,Ue)||void 0!==p&&ke>=p)break}P[t]=Ue}}function h1(V,e,t){var n=[];IS(V,(P,J,fe)=>{var Ue,ke=P,Ze=ke.colspan||1,Ft=J+Ze-1>=e&&J<t;if(n[fe]=n[fe]||[],Ft)J<e?(Ue=Ze-(e-J),J=e):Ue=Ze,J+Ue>t&&(Ue=t-J),Ue!==Ze&&(ke=(0,o.X)({},ke,{colspan:Ue})),n[fe].push(ke);else if(J>t)return!1});for(var p=0;p<n.length;p++)n[p]=n[p]||[];return n}En.registerModule("adaptivity",{defaultOptions:()=>({columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}),controllers:{adaptiveColumns:class MS extends cn.ViewController{init(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._editingController=this.getController("editing"),this._keyboardNavigationController=this.getController("keyboardNavigation"),this._rowsView=this.getView("rowsView"),this._columnsController.addCommandColumn({type:G0,command:G0,visible:!0,adaptiveHidden:!0,cssClass:CS,alignment:"center",width:"auto",cellTemplate:hE,fixedPosition:"right"}),this._columnsController.columnsChanged.add(()=>{var e=!!this.updateHidingQueue(this._columnsController.getColumns()).length;this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e,!0)}),this._hidingColumnsQueue=[],this._hiddenColumns=[],this.createAction("onAdaptiveDetailRowPreparing"),super.init()}optionChanged(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),super.optionChanged(e)}publicMethods(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]}_isRowEditMode(){return"row"===this._getEditMode()}_isItemModified(e,t){var n=this._columnsController.getVisibleIndex(e.column.index),p=this._dataController.getRowIndexByKey(t.key),P=this._dataController.items()[p+1];return P&&P.modifiedValues&&(0,m.O9)(P.modifiedValues[n])}_renderFormViewTemplate(e,t,n){var p=this,{column:P}=e,J=p.createAction(()=>{p._editingController.isEditing()&&_.A.trigger(n,ce.U)}),fe=t.row.data,ke=P.calculateCellValue(fe),Ue=Ui.A.getDisplayValue(P,ke,fe,t.rowType),Ze=Ui.A.formatValue(Ue,P),Ft=this._editingController.isCellOrBatchEditMode(),vi=p._rowsView;if(P.allowEditing&&this._keyboardNavigationController.isKeyboardEnabled()&&(n.attr("tabIndex",p.option("tabIndex")),Ft&&(_.A.off(n,"focus",J),_.A.on(n,"focus",J))),P.cellTemplate){var Li=(0,o.X)({},t,{value:ke,displayValue:Ue,text:Ze,column:P});vi.renderTemplate(n,P.cellTemplate,Li,(0,rr.A1)(n)).done(()=>{vi._cellPrepared(n,t)})}else{var tn=n.get(0);P.encodeHtml?tn.textContent=Ze:tn.innerHTML=Ze,n.addClass(u1),(!(0,m.O9)(Ze)||""===Ze)&&n.html(" "),p._isRowEditMode()||p._isItemModified(e,t)&&n.addClass("dx-item-modified"),vi._cellPrepared(n,t)}}_getTemplate(e,t,n){var p=this,{column:P}=e,J=this._editingController;return function(fe,ke){var Ue=(0,j.A)(ke),Ze=p._columnsController.getVisibleIndex(P.index),Ft=(0,o.X)({},t),vi=function(){var tn=p._isItemEdited(e);Ft.value=t.row.values[Ze],tn||P.showEditorAlways?J.renderFormEditorTemplate(Ft,e,fe,Ue,!tn):(Ft.column=P,Ft.columnIndex=Ze,p._renderFormViewTemplate(e,Ft,Ue))};if(vi(),Ft.watch){var Li=Ft.watch(()=>({isItemEdited:p._isItemEdited(e),value:t.row.values[Ze]}),()=>{Ue.contents().remove(),Ue.removeClass(u1),vi()});_.A.on(Ue,Be.N,Li)}}}_isVisibleColumnsValid(e){return!(e<2||e.length-function(){for(var t=0,n=0;n<e.length;n++)e[n].command&&t++;return t}()<=1)}_calculatePercentWidths(e,t){var n=this,p=0;return t.forEach((P,J)=>{e[J]!==hv&&(p+=n._getItemPercentWidth(P))}),p}_isPercentWidth(e){return(0,m.Kg)(e)&&e.endsWith("%")}_isColumnHidden(e){return this._hiddenColumns.filter(t=>t.index===e.index).length>0}_getAverageColumnsWidth(e,t,n){var p=this,P=0,J=0;return t.forEach(fe=>{if(!p._isColumnHidden(fe)){var{width:ke}=fe;(0,m.O9)(ke)&&!isNaN(parseFloat(ke))?P+=p._isPercentWidth(ke)?p._calculatePercentWidth({visibleIndex:fe.visibleIndex,columnsCount:t.length,columnsCanFit:n,bestFitWidth:fe.bestFitWidth,columnWidth:ke,containerWidth:e}):parseFloat(ke):J++}}),(e-P)/J}_calculateColumnWidth(e,t,n,p){var Ue,P=zC(this,e),J=this._columnsController.columnOption(P,"width"),fe=this._columnsController.columnOption(P,"bestFitWidth"),ke=n.length;if(J&&"auto"!==J){if(!this._isPercentWidth(J))return parseFloat(J);Ue=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:ke,columnsCanFit:p,bestFitWidth:fe,columnWidth:J,containerWidth:t})}else Ue=this.option("columnAutoWidth")||e.command?fe:this._getAverageColumnsWidth(t,n,p);return Ue}_calculatePercentWidth(e){var t=e.visibleIndex<e.columnsCount-1&&e.columnsCanFit,n=e.containerWidth*parseFloat(e.columnWidth)/100,p=e.columnsCanFit&&n<e.bestFitWidth?e.bestFitWidth:n;return t?e.containerWidth*parseFloat(e.columnWidth)/100:p}_getNotTruncatedColumnWidth(e,t,n,p){var P=zC(this,e),J=this._columnsController.columnOption(P,"width"),fe=this._columnsController.columnOption(P,"bestFitWidth");if(J&&"auto"!==J&&!this._isPercentWidth(J))return parseFloat(J);var ke=this._calculateColumnWidth(e,t,n,p);return ke<fe?null:ke}_getItemPercentWidth(e){var t=0;return e.width&&this._isPercentWidth(e.width)&&(t=parseFloat(e.width)),t}_getCommandColumnsWidth(){var e=this,t=e._columnsController.getVisibleColumns(),n=0;return(0,E.__)(t,(p,P)=>{(P.index<0||P.command)&&(n+=e._columnsController.columnOption(zC(e,P),"bestFitWidth")||0)}),n}_isItemEdited(e){if(this.isFormOrPopupEditMode())return!1;if(!this._isRowEditMode()){var n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,p=this._columnsController.getVisibleIndex(e.column.index);return this._editingController.isEditCell(n,p)}var t=this.option("editing.editRowKey");return!!(0,s.RL)(t,this._dataController.adaptiveExpandedKey())||void 0}_getFormItemsByHiddenColumns(e){var t=[];return(0,E.__)(e,(n,p)=>{t.push({column:p,name:p.name,dataField:p.dataField,visibleIndex:p.visibleIndex})}),t}_getAdaptiveColumnVisibleIndex(e){for(var t=0;t<e.length;t++)if(e[t].command===G0)return t}_hideAdaptiveColumn(e,t){var n=this._getAdaptiveColumnVisibleIndex(t);(0,m.O9)(n)&&(e[n]=hv,this._hideVisibleColumn({isCommandColumn:!0,visibleIndex:n}))}_showHiddenCellsInView(e){var{$cells:t,isCommandColumn:n}=e,p=this.addWidgetPrefix(Xb);n?(p=VC,t.attr({tabIndex:0,"aria-hidden":null}).removeClass(p)):t.removeClass(p)}_showHiddenColumns(){for(var e=0;e<BC.length;e++){var t=this.getView(BC[e]);if(t&&t.isVisible()&&t.element()){var n=t.name,p=t.element().find(".".concat(VC));this._showHiddenCellsInView({viewName:n,$cells:p,isCommandColumn:!0});var P=t.element().find(".".concat(this.addWidgetPrefix(Xb)));this._showHiddenCellsInView({viewName:n,$cells:P})}}}_isCellValid(e){return e&&e.length&&!e.hasClass("dx-master-detail-cell")&&!e.hasClass(Jb)}_hideVisibleColumn(e){var{isCommandColumn:t,visibleIndex:n}=e,p=this;BC.forEach(P=>{var J=p.getView(P);J&&p._hideVisibleColumnInView({view:J,isCommandColumn:t,visibleIndex:n})})}_hideVisibleColumnInView(e){var J,{view:t,isCommandColumn:n,visibleIndex:p}=e,P=t.name,fe=this._columnsController.getVisibleColumns()[p],ke=this._editingController&&this._editingController.getEditFormRowIndex();if(t&&t.isVisible()&&fe)for(var Ue=t.getRowsCount(),Ze=t._getRowElements(),Ft=0;Ft<Ue;Ft++)if(Ft!==ke||P!==cx||"popup"===this.option("editing.mode")){var Li=P===dx?this._columnsController.getVisibleIndex(fe.index,Ft):p;if(Li>=0){var tn=Ze.eq(Ft);J=this._findCellElementInRow(tn,Li),this._isCellValid(J)&&this._hideVisibleCellInView({viewName:P,isCommandColumn:n,$cell:J})}}}_findCellElementInRow(e,t){var n=e.children(),p=t,P=!1;if(e.hasClass("dx-group-row")){var J=e.find(".".concat(Jb)),fe=J.attr("colspan");if(J.length&&(0,m.O9)(fe)){var ke=parseInt(fe);t>J.index()+ke-1?p=t-ke+1:P=!0}}return P?void 0:n.eq(p)}_hideVisibleCellInView(e){var{$cell:t,isCommandColumn:n}=e,p=n?VC:this.addWidgetPrefix(Xb);t.attr({tabIndex:-1,"aria-hidden":!0}).addClass(p)}_getEditMode(){return this._editingController.getEditMode()}isFormOrPopupEditMode(){var e=this._getEditMode();return"form"===e||"popup"===e}hideRedundantColumns(e,t,n){if(this._hiddenColumns=[],this._isVisibleColumnsValid(t)&&n.length){var Ze,Ft,vi,p=0,P=this.component.$element(),J=(0,R.RG)(P)-this._getCommandColumnsWidth(),fe=function(){return t.filter(Fd=>!Fd.command&&0===this._hiddenColumns.filter(Kc=>Kc.index===Fd.index).length)}.bind(this),ke=fe(),Ue=ke.length;do{vi=!1,p=0;var Li=this._calculatePercentWidths(e,t),tn=Li<100&&0!==Li;for(Ze=0;Ze<t.length;Ze++){var On=t[Ze],Qn=this._getNotTruncatedColumnWidth(On,J,ke,tn),zr=zC(this,On),la=this._columnsController.columnOption(zr,"width"),qo=this._columnsController.columnOption(zr,"minWidth"),Xl=this._columnsController.columnOption(zr,"bestFitWidth");if(e[Ze]!==hv){if(!Qn&&!On.command&&!On.fixed){vi=!0;break}(!la||"auto"===la)&&(Qn=Math.max(Xl||0,qo||0)),(On.command!==G0||Ft)&&(p+=Qn)}else Ft=!0}if(vi=vi||p>(0,R.RG)(P)){var Es=n.pop(),ul=this._columnsController.getVisibleIndex(Es.index);J+=this._calculateColumnWidth(Es,J,ke,tn),this._hideVisibleColumn({visibleIndex:ul}),e[ul]=hv,this._hiddenColumns.push(Es),ke=fe()}}while(vi&&ke.length>1&&n.length);Ue===ke.length&&this._hideAdaptiveColumn(e,t)}else this._hideAdaptiveColumn(e,t)}getAdaptiveDetailItems(){return this._$itemContents}getItemContentByColumnIndex(e){for(var t,n=0;n<this._$itemContents.length;n++){var p=(t=this._$itemContents.eq(n)).data("dx-form-item");if(p&&p.column&&this._columnsController.getVisibleIndex(p.column.index)===e)return t}}toggleExpandAdaptiveDetailRow(e,t){this.isFormOrPopupEditMode()&&this._editingController.isEditing()||this._dataController.toggleExpandAdaptiveDetailRow(e,t)}createFormByHiddenColumns(e,t){var n=this,p=(0,j.A)(e),P={items:n._getFormItemsByHiddenColumns(n._hiddenColumns),formID:"dx-".concat(new q.A)},J=(0,fn.gx)()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:P}),n._$itemContents=null,n._form=n._createComponent((0,j.A)("<div>").appendTo(p),Bo.A,(0,o.X)(J,P,{customizeItem(fe){var ke=fe.column||n._columnsController.columnOption(fe.name||fe.dataField);ke&&(fe.label=fe.label||{},fe.label.text=fe.label.text||ke.caption,fe.column=ke,fe.template=n._getTemplate(fe,t,n.updateForm.bind(n))),P.customizeItem&&P.customizeItem.call(this,fe)},onContentReady(fe){P.onContentReady&&P.onContentReady.call(this,fe),n._$itemContents=p.find(".".concat(NC))}}))}hasAdaptiveDetailRowExpanded(){return(0,m.O9)(this._dataController.adaptiveExpandedKey())}updateForm(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&(0,m.O9)(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint())}updateHidingQueue(e){var n,p,t=e.filter(J=>J.visible&&!J.type&&!J.fixed&&!((0,m.O9)(J.groupIndex)&&J.groupIndex>=0));if(this._hidingColumnsQueue=[],this.option("allowColumnResizing")&&"widget"===this.option("columnResizingMode"))return this._hidingColumnsQueue;for(p=0;p<t.length;p++)(0,m.O9)(t[p].hidingPriority)&&t[p].hidingPriority>=0&&(n=!0,this._hidingColumnsQueue[t[p].hidingPriority]=t[p]);if(n)this._hidingColumnsQueue.reverse();else if(this.option("columnHidingEnabled"))for(p=0;p<t.length;p++){var P=this._columnsController.getVisibleIndex(t[p].index);this._hidingColumnsQueue[P]=t[p]}return this._hidingColumnsQueue=this._hidingColumnsQueue.filter(Object),this._hidingColumnsQueue}getHiddenColumns(){return this._hiddenColumns}hasHiddenColumns(){return this._hiddenColumns.length>0}getHidingColumnsQueue(){return this._hidingColumnsQueue}isAdaptiveDetailRowExpanded(e){var t=this._dataController;return t.adaptiveExpandedKey()&&(0,s.RL)(t.adaptiveExpandedKey(),e)}expandAdaptiveDetailRow(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)}collapseAdaptiveDetailRow(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()}updateCommandAdaptiveAriaLabel(e,t){var n=this._dataController.getRowIndexByKey(e);if(-1!==n){var p=(0,j.A)(this.component.getRowElement(n));this.setCommandAdaptiveAriaLabel(p,t)}}setCommandAdaptiveAriaLabel(e,t){e.find(".dx-command-adaptive").attr("aria-label",v.A.format(t))}}},extenders:{views:{rowsView:V=>class extends V{_getCellTemplate(e){var t=this,{column:n}=e;return e.rowType===Uv&&"detail"===n.command?function(p,P){t._adaptiveColumnsController.createFormByHiddenColumns((0,j.A)(p),P)}:super._getCellTemplate(e)}_createRow(e){var t=super._createRow.apply(this,arguments);return e&&e.rowType===Uv&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass("dx-adaptive-detail-row"),t}_renderCells(e,t){super._renderCells(e,t);var n=this._adaptiveColumnsController,p=n.getHidingColumnsQueue().length,P=n.getHiddenColumns().length;p&&!P&&function uE(V){return V.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}(e).last().addClass("dx-last-data-cell"),"data"===t.row.rowType&&n.setCommandAdaptiveAriaLabel(e,DS)}_getColumnIndexByElementCore(e){var t=e.closest(".".concat(NC));if(t.length&&t.closest(this.component.$element()).length){var n=t.length?t.first().data("dx-form-item"):null;return n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)}return super._getColumnIndexByElementCore(e)}_cellPrepared(e,t){super._cellPrepared.apply(this,arguments),t.row.rowType!==Uv&&t.column.visibleWidth===hv&&e.addClass(this.addWidgetPrefix(Xb))}getCell(e,t){var n=this._dataController.items()[e?.rowIndex];if(n?.rowType===Uv){var p=this._adaptiveColumnsController.getAdaptiveDetailItems();return super.getCell(e,t,p)}return super.getCell.apply(this,arguments)}_getCellElement(e,t){var n=this._dataController.items()[e];return n&&n.rowType===Uv?this._adaptiveColumnsController.getItemContentByColumnIndex(t):super._getCellElement.apply(this,arguments)}getContextMenuItems(e){var t;if(e.row&&"detailAdaptive"===e.row.rowType){var n=this._columnHeadersView,p=(0,j.A)(e.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return e.column=p?p.column:e.column,n.getContextMenuItems&&n.getContextMenuItems(e)}return null===(t=super.getContextMenuItems)||void 0===t?void 0:t.call(this,e)}isClickableElement(e){var t,n;return null!==(n=null===(t=super.isClickableElement)||void 0===t?void 0:t.call(this,e))&&void 0!==n&&n||!!e.closest(".".concat(CS)).length}}},controllers:{export:V=>class extends V{_updateColumnWidth(e,t){super._updateColumnWidth(e,e.visibleWidth===hv?e.bestFitWidth:t)}},columnsResizer:V=>class extends V{_pointCreated(e,t,n){var p=super._pointCreated(e,t,n),P=n[e.columnIndex]||{},J=this._getNextColumnIndex(e.columnIndex);return p||P.visibleWidth===hv||J!==e.columnIndex+1&&(n[J]||{}).command}_getNextColumnIndex(e){for(var t=this._columnsController.getVisibleColumns(),n=super._getNextColumnIndex(e);t[n]&&t[n].visibleWidth===hv;)n++;return n}},draggingHeader:V=>class extends V{_pointCreated(e,t,n,p){return super._pointCreated(e,t,n,p)||(t[e.columnIndex-1]||{}).visibleWidth===hv}},editing:V=>class extends V{_isRowEditMode(){return"row"===this.getEditMode()}_getFormEditItemTemplate(e,t){return"row"!==this.getEditMode()&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):super._getFormEditItemTemplate(e,t)}_closeEditItem(e){var t=e.closest(".".concat(NC)),n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,p=t.length?t.first().data("dx-form-item"):null,P=p&&p.column&&this._columnsController.getVisibleIndex(p.column.index);this.isEditCell(n,P)||super._closeEditItem(e)}_beforeUpdateItems(e,t){if(!this._adaptiveColumnsController.isFormOrPopupEditMode()&&this._adaptiveColumnsController.hasHiddenColumns()){var n=this._dataController.items(),p=n[t],P=Ui.A.getIndexByKey(this._dataController.adaptiveExpandedKey(),n);this._isForceRowAdaptiveExpand=!this._adaptiveColumnsController.hasAdaptiveDetailRowExpanded(),P>=0&&e.push(P+1),e.push(t+1),this._dataController.adaptiveExpandedKey(p.key)}}_afterInsertRow(e){super._afterInsertRow.apply(this,arguments),this._adaptiveColumnsController.hasHiddenColumns()&&(this._adaptiveColumnsController.toggleExpandAdaptiveDetailRow(e,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)}_collapseAdaptiveDetailRow(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveColumnsController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)}_cancelEditAdaptiveDetailRow(){this._adaptiveColumnsController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()}_afterSaveEditData(){super._afterSaveEditData.apply(this,arguments);var e=new xe.cY;return this._isRowEditMode()&&this._adaptiveColumnsController.hasHiddenColumns()?(0,xe.z7)(this._validatingController.validate(!0)).done(t=>{t&&this._cancelEditAdaptiveDetailRow(),e.resolve()}):e.resolve(),e.promise()}_beforeCancelEditData(){super._beforeCancelEditData(),this._cancelEditAdaptiveDetailRow()}_getRowIndicesForCascadeUpdating(e){var t=super._getRowIndicesForCascadeUpdating.apply(this,arguments);return this._adaptiveColumnsController.isAdaptiveDetailRowExpanded(e.key)&&t.push(e.rowType===Uv?e.rowIndex-1:e.rowIndex+1),t}_beforeCloseEditCellInBatchMode(e){var t=this._dataController._adaptiveExpandedKey;if(t){var n=Ui.A.getIndexByKey(t,this._dataController.items());n>-1&&e.unshift(n)}}editRow(e){return this._adaptiveColumnsController.isFormOrPopupEditMode()&&this._adaptiveColumnsController.collapseAdaptiveDetailRow(),super.editRow(e)}deleteRow(e){var t=this._dataController.getKeyByRowIndex(e);"batch"===this.getEditMode()&&this._adaptiveColumnsController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveColumnsController.collapseAdaptiveDetailRow(),super.deleteRow(e)}},resizing:V=>class extends V{dispose(){super.dispose.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}_needBestFit(){return super._needBestFit()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length}_correctColumnWidths(e,t){var n=this._adaptiveColumnsController,p=n.getHiddenColumns(),P=n.updateHidingQueue(this._columnsController.getColumns());n.hideRedundantColumns(e,t,P);var J=n.getHiddenColumns();return n.hasAdaptiveDetailRowExpanded()&&p.length!==J.length&&n.updateForm(J),!J.length&&n.collapseAdaptiveDetailRow(),super._correctColumnWidths.apply(this,arguments)}_toggleBestFitMode(e){e&&this._adaptiveColumnsController._showHiddenColumns(),super._toggleBestFitMode(e)}_needStretch(){var e=this._adaptiveColumnsController;return super._needStretch.apply(this,arguments)||e.getHidingColumnsQueue().length||e.hasHiddenColumns()}},data:V=>class extends V{_processItems(e,t){var{changeType:n}=t;if(e=super._processItems.apply(this,arguments),"loadingAll"===n||!(0,m.O9)(this._adaptiveExpandedKey))return e;var p=Ui.A.getIndexByKey(this._adaptiveExpandedKey,e),P=!1===this.option("scrolling.legacyMode");if(p>=0){var J=e[p];e.splice(p+1,0,{visible:!0,rowType:Uv,key:J.key,data:J.data,node:J.node,modifiedValues:J.modifiedValues,isNewRow:J.isNewRow,values:J.values})}else"refresh"===n&&(!P||!t.repaintChangesOnly)&&(this._adaptiveExpandedKey=void 0);return e}_getRowIndicesForExpand(e){var t=super._getRowIndicesForExpand.apply(this,arguments);return this._adaptiveColumnsController.isAdaptiveDetailRowExpanded(e)&&t.push(t[t.length-1]+1),t}adaptiveExpandedKey(e){if(!(0,m.O9)(e))return this._adaptiveExpandedKey;this._adaptiveExpandedKey=e}toggleExpandAdaptiveDetailRow(e,t){var n=Ui.A.getIndexByKey(this._adaptiveExpandedKey,this._items),p=Ui.A.getIndexByKey(e,this._items);n>=0&&n===p&&!t&&(e=void 0,p=-1);var P=this._adaptiveExpandedKey;this._adaptiveExpandedKey=e,n>=0&&n++,p>=0&&p++;var J=this.getRowIndexDelta();this.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[n-J,p-J]}),this._adaptiveColumnsController.updateCommandAdaptiveAriaLabel(e,"dxDataGrid-ariaAdaptiveCollapse"),this._adaptiveColumnsController.updateCommandAdaptiveAriaLabel(P,DS)}},editorFactory:V=>class extends V{_needHideBorder(e){return super._needHideBorder(e)||e?.hasClass("dx-field-item-content")&&e?.find(".dx-checkbox").length}_getFocusCellSelector(){return"".concat(super._getFocusCellSelector(),", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content")}_getRevertTooltipsSelector(){return"".concat(super._getRevertTooltipsSelector(),", .dx-field-item-content .").concat(this.addWidgetPrefix("revert-tooltip"))}},columns:V=>class extends V{_isColumnVisible(e){return super._isColumnVisible(e)&&!e.adaptiveHidden}},keyboardNavigation:V=>class extends V{_isCellValid(e,t){return super._isCellValid(e,t)&&!e.hasClass(this.addWidgetPrefix(Xb))&&!e.hasClass(VC)}_processNextCellInMasterDetail(e,t){super._processNextCellInMasterDetail(e,t);var n=this._editingController.isCellOrBatchEditMode();this._editingController.isEditing()&&e&&n&&!this._isInsideEditForm(e)&&(_.A.off(e,"focus",UC),_.A.on(e,"focus",{$nextCell:e},UC),_.A.trigger(t,"focus"))}_isCellElement(e){return super._isCellElement(e)||e.hasClass(u1)}}}}});var WC=function(V){return V.map(e=>e.visibleWidth||parseFloat(e.width)||50)};En.registerModule("virtualColumns",{defaultOptions:()=>({scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}),extenders:{controllers:{columns:V=>class extends V{init(){var e;super.init.apply(this,arguments),this._resizingController=this.getController("resizing"),this._beginPageIndex=null,this._endPageIndex=null,null!==(e=this._position)&&void 0!==e||(this._position=0),this._virtualVisibleColumns={}}dispose(){clearTimeout(this._changedTimeout),super.dispose.apply(this,arguments)}resetColumnsCache(){super.resetColumnsCache(),this._virtualVisibleColumns={}}getBeginPageIndex(e){for(var t=this.getVisibleColumns(void 0,!0),n=WC(t),p=0,P=0;P<n.length;P++){if(p>=e)return Math.floor(P/this.getColumnPageSize());p+=n[P]}return 0}getTotalWidth(){var e=this.option("width");return"number"==typeof e?e:this._resizingController._lastWidth||(0,R.Ot)(this.component.$element())}getEndPageIndex(e){var t=this.getVisibleColumns(void 0,!0),n=WC(t),p=0;e+=this.getTotalWidth();for(var P=0;P<n.length;P++){if(p>=e)return Math.ceil(P/this.getColumnPageSize());p+=n[P]}return Math.ceil(n.length/this.getColumnPageSize())}getColumnPageSize(){return this.option("scrolling.columnPageSize")}_fireColumnsChanged(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,virtualColumnsScrolling:!0,length:2}}),this._renderTime=new Date-e}getScrollingTimeout(){var e=this.option("scrolling.columnRenderingThreshold"),t=this.option("scrolling.renderAsync"),n=0;return(!(0,m.O9)(t)&&this._renderTime>e||t)&&(n=this.option("scrolling.timeout")),n}setScrollPosition(e){var t=this.getScrollingTimeout();t>0?(clearTimeout(this._changedTimeout),this._changedTimeout=setTimeout(()=>{this._setScrollPositionCore(e)},t)):this._setScrollPositionCore(e)}isVirtualMode(){return(0,Ie.Vd)()&&"virtual"===this.option("scrolling.columnRenderingMode")}resize(){this._setScrollPositionCore(this._position)}_setScrollPositionCore(e){if(this.isVirtualMode()){var t=this.getBeginPageIndex(e),n=this.getEndPageIndex(e),p=e<this._position?this._beginPageIndex>t:this._endPageIndex<n;this._position=e,p&&(this._beginPageIndex=t,this._endPageIndex=n,this._fireColumnsChanged())}}getFixedColumns(e,t){var n=super.getFixedColumns(e);if(this.isVirtualMode()&&!t&&n.length){var p=n.map(P=>P.command).indexOf("transparent");return n[p].colspan=this.getVisibleColumns().length-super.getFixedColumns().length+1,n}return n}_compileVisibleColumns(e,t){var n;if(t||!this.isVirtualMode()||!this._shouldReturnVisibleColumns())return super._compileVisibleColumns(e);null!==(n=this._columns)&&void 0!==n&&n.length&&!(0,m.O9)(this._beginPageIndex)&&!(0,m.O9)(this._endPageIndex)&&(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var p=this._beginPageIndex,P=this._endPageIndex,J="".concat(e,"-").concat(p,"-").concat(P);if(this._virtualVisibleColumns[J])return this._virtualVisibleColumns[J];var fe=super._compileVisibleColumns(),ke=this.getRowCount(),Ue=this.getColumnPageSize(),Ze=p*Ue,Ft=P*Ue,vi=this.getFixedColumns(void 0,!0),Li=vi.map(Kc=>Kc.command).indexOf("transparent"),tn=vi.length?Li:0,On=fe.slice(0,tn),Qn=fe.slice(tn,Ze),zr=WC(Qn).reduce((Kc,Bd)=>Kc+Bd,0);zr||(Ze=0);var la=vi.length?vi.length-Li-1:0,qo=fe.slice(fe.length-la),Xl=fe.slice(Ft,fe.length-la),Es=WC(Xl).reduce((Kc,Bd)=>Kc+Bd,0);if(Es||(Ft=fe.length),ke>1&&"number"==typeof e){for(var ul=[],Fd=0;Fd<=ke;Fd++)ul.push(super._compileVisibleColumns(Fd));On=h1(ul,0,On.length)[e]||[],qo=h1(ul,fe.length-qo.length,fe.length)[e]||[],fe=h1(ul,Ze,Ft)[e]||[]}else fe=fe.slice(Ze,Ft);return zr&&(fe.unshift({command:"virtual",width:zr}),fe=On.concat(fe)),Es&&(fe.push({command:"virtual",width:Es}),fe=fe.concat(qo)),this._virtualVisibleColumns[J]=fe,fe}getColumnIndexOffset(){var e=0;if(this._beginPageIndex>0){var n=this.getFixedColumns().map(P=>P.command).indexOf("transparent"),p=n>=0?n:0;e=this._beginPageIndex*this.getColumnPageSize()-p-1}return e>0?e:0}}},views:{columnHeadersView:V=>class extends V{_renderCore(){var e=super._renderCore.apply(this,arguments);return this._columnsController.isVirtualMode()&&this._updateScrollLeftPosition(),e}},rowsView:V=>class extends V{_resizeCore(){super._resizeCore.apply(this,arguments),this._columnsController.resize()}_handleScroll(e){var t=this.getScrollable(),{left:n}=e.scrollOffset;super._handleScroll.apply(this,arguments),this.option("rtlEnabled")&&t&&(n=(0,R.RG)(t.$content())-(0,R.RG)(t.$element())-n),this._columnsController.setScrollPosition(n)}_renderCore(e){var t,n;if(e?.virtualColumnsScrolling){var p=this._findContentElement(),P=null===(t=this._columnsController)||void 0===t?void 0:t.getFixedColumns(),J=null===(n=this._scrollable)||void 0===n?void 0:n.option("useNative");if(P?.length){p.css({minHeight:J?(0,R.Oq)(p):Ui.A.getContentHeightLimit(ye.A)});var fe=()=>{this.resizeCompleted.remove(fe),p.css({minHeight:""})};this.resizeCompleted.add(fe)}}return super._renderCore.apply(this,arguments)}}}}});var _M=D(63798),mx="dx-buttongroup",RS="".concat(mx,"-wrapper"),PS="".concat(mx,"-item"),bE="".concat(mx,"-first-item"),gx="".concat(mx,"-last-item"),LS="".concat(PS,"-has-width"),jC={contained:"dx-buttongroup-mode-contained",outlined:"dx-buttongroup-mode-outlined",text:"dx-buttongroup-mode-text"},BS=hd.A.inherit({_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({item:new Zc.U((V,e,t)=>{this._prepareItemStyles(V);var n=this.option("buttonTemplate");this._createComponent(V,Le.A,(0,o.X)({},t,e,this._getBasicButtonOptions(),{_templateData:this._hasCustomTemplate(n)?t:{},template:t.template||n}))},["text","type","icon","disabled","visible","hint"],this.option("integrationOptions.watchMethod"))})},_getBasicButtonOptions(){return{focusStateEnabled:!1,onClick:null,hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode")}},_getDefaultOptions(){return(0,o.X)(this.callBase(),{itemTemplateProperty:null})},_hasCustomTemplate(V){return(0,m.Tn)(V)||this.option("integrationOptions.templates")[V]},_selectedItemClass:()=>"dx-item-selected dx-state-selected",_prepareItemStyles(V){var e=V.data("dxItemIndex");0===e&&V.addClass(bE);var t=this.option("items");t&&e===t.length-1&&V.addClass(gx),V.addClass("dx-shape-standard")},_renderItemContent(V){return V.container=(0,j.A)(V.container).parent(),this.callBase(V)},_setAriaSelectionAttribute(V,e){this.setAria("pressed",e,V)},_renderItemContentByNode(V,e){return V.container=(0,j.A)(V.container.children().first()),this.callBase(V,e)},_focusTarget(){return this.$element().parent()},_keyboardEventBindingTarget(){return this._focusTarget()},_refreshContent(){this._prepareContent(),this._renderContent()},_itemClass:()=>PS,_itemSelectHandler(V){"single"===this.option("selectionMode")&&this.isItemSelected(V.currentTarget)||this.callBase(V)}}),NS=De.A.inherit({_getDefaultOptions(){return(0,o.X)(this.callBase(),{hoverStateEnabled:!0,focusStateEnabled:!0,selectionMode:"single",selectedItems:[],selectedItemKeys:[],stylingMode:"contained",keyExpr:"text",items:[],buttonTemplate:"content",onSelectionChanged:null,onItemClick:null})},_init(){this.callBase(),this._createItemClickAction()},_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")},_initMarkup(){this.setAria("role","group"),this.$element().addClass(mx),this._renderStylingMode(),this._renderButtons(),this._syncSelectionOptions(),this.callBase()},_renderStylingMode(){var V,{stylingMode:e}=this.option();for(var t in jC)this.$element().removeClass(jC[t]);this.$element().addClass(null!==(V=jC[e])&&void 0!==V?V:jC.contained)},_fireSelectionChangeEvent(V,e){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:V,removedItems:e})},_renderButtons(){var V=(0,j.A)("<div>").addClass(RS).appendTo(this.$element()),e=this.option("selectedItems"),t={selectionMode:this.option("selectionMode"),items:this.option("items"),keyExpr:this.option("keyExpr"),buttonTemplate:this.option("buttonTemplate"),scrollingEnabled:!1,selectedItemKeys:this.option("selectedItemKeys"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:"",selectionRequired:!1,onItemRendered:n=>{var p=this.option("width");(0,m.O9)(p)&&(0,j.A)(n.itemElement).addClass(LS)},onSelectionChanged:n=>{this._syncSelectionOptions(),this._fireSelectionChangeEvent(n.addedItems,n.removedItems)},onItemClick:n=>{this._itemClickAction(n)}};(0,m.O9)(e)&&e.length&&(t.selectedItems=e),this._buttonsCollection=this._createComponent(V,BS,t)},_syncSelectionOptions(){this._setOptionWithoutOptionChange("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionWithoutOptionChange("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged(V){switch(V.name){case"stylingMode":case"selectionMode":case"keyExpr":case"buttonTemplate":case"items":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":case"tabIndex":this._invalidate();break;case"selectedItemKeys":case"selectedItems":this._buttonsCollection.option(V.name,V.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(V),this._buttonsCollection.itemElements().toggleClass(LS,!!V.value);break;default:this.callBase(V)}}});(0,gn.A)("dxButtonGroup",NS);const xE=NS;var p1=D(82236),f1=D(85154),m1="dx-dropdownbutton",HS="dx-dropdownbutton-action",zS="dx-dropdownbutton-toggle",EE=De.A.inherit({_getDefaultOptions(){return(0,o.X)(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:void 0,selectedItem:null,selectedItemKey:null,stylingMode:"outlined",deferRendering:!0,noDataText:v.A.format("dxCollectionWidget-noDataText"),useSelectMode:!1,splitButton:!1,showArrowIcon:!0,text:"",type:"normal",icon:void 0,onButtonClick:null,onSelectionChanged:null,onItemClick:null,opened:!1,items:null,dataSource:null,focusStateEnabled:!0,hoverStateEnabled:!0,dropDownOptions:{},dropDownContentTemplate:"content",wrapItemText:!1,useItemTextAsTitle:!0,grouped:!1,groupTemplate:"group",buttonGroupOptions:{}})},_setOptionsByReference(){this.callBase(),(0,o.X)(this._optionsByReference,{selectedItem:!0})},_init(){this.callBase(),this._createItemClickAction(),this._createActionClickAction(),this._createSelectionChangedAction(),this._initDataSource(),this._compileKeyGetter(),this._compileDisplayGetter(),this._itemsToDataSource(this.option("items")),this._options.cache("buttonGroupOptions",this.option("buttonGroupOptions")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_initTemplates(){this._templateManager.addDefaultTemplates({content:new _M.l(V=>{var e=(0,j.A)(V.container),t=(0,j.A)("<div>").appendTo(e);this._list=this._createComponent(t,sy.A,this._listOptions()),this._list.registerKeyHandler("escape",this._escHandler.bind(this)),this._list.registerKeyHandler("tab",this._escHandler.bind(this)),this._list.registerKeyHandler("leftArrow",this._escHandler.bind(this)),this._list.registerKeyHandler("rightArrow",this._escHandler.bind(this))})}),this.callBase()},_itemsToDataSource:function(V){this._dataSource||(this._dataSource=new Va.q({store:new No.A({key:this._getKey(),data:V}),pageSize:0}))},_getKey:function(){var V,e=this.option("keyExpr"),t=null===(V=this._dataSource)||void 0===V?void 0:V.key();return!(0,m.O9)(t)||(0,m.O9)(e)&&"this"!==e?e:t},_compileKeyGetter(){this._keyGetter=(0,aa.Hz)(this._getKey())},_compileDisplayGetter(){this._displayGetter=(0,aa.Hz)(this.option("displayExpr"))},_initMarkup(){this.callBase(),this.$element().addClass(m1),this._renderButtonGroup(),this._updateArrowClass(),(0,m.O9)(this.option("selectedItemKey"))&&this._loadSelectedItem().done(this._updateActionButton.bind(this))},_renderFocusTarget:s.lQ,_render(){(!this.option("deferRendering")||this.option("opened"))&&this._renderPopup(),this.callBase()},_renderContentImpl(){return this._popup&&this._renderPopupContent(),this.callBase()},_loadSelectedItem(){var V;null===(V=this._loadSingleDeferred)||void 0===V||V.reject();var e=new xe.cY;if(this._list&&void 0!==this._lastSelectedItemData){var t=this.option("useSelectMode")?this._list.option("selectedItem"):this._lastSelectedItemData;return e.resolve(t)}this._lastSelectedItemData=void 0;var n=this.option("selectedItemKey");return this._loadSingle(this._getKey(),n).done(e.resolve).fail(()=>{e.resolve(null)}),this._loadSingleDeferred=e,e.promise()},_createActionClickAction(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction(V){var{previousValue:e,value:t}=V;this._selectionChangedAction({item:t,previousItem:e})},_fireItemClickAction(V){var{event:e,itemElement:t,itemData:n}=V;return this._itemClickAction({event:e,itemElement:t,itemData:this._actionItem||n})},_actionButtonConfig(){var{icon:V,text:e,type:t}=this.option();return{text:e,icon:V,type:t,elementAttr:{class:HS}}},_getButtonGroupItems(){var{splitButton:V,type:e}=this.option(),t=[];return t.push(this._actionButtonConfig()),V&&t.push({icon:"spindown",type:e,elementAttr:{class:zS}}),t},_buttonGroupItemClick(V){var{event:e,itemData:t}=V,n=t.elementAttr.class===HS;t.elementAttr.class===zS?this.toggle():n&&(this._actionClickAction({event:e,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_buttonGroupOptions(){var{splitButton:V,showArrowIcon:e,focusStateEnabled:t,hoverStateEnabled:n,stylingMode:p,accessKey:P,tabIndex:J}=this.option(),fe=V||!e?"content":(ke,Ue)=>{var{text:Ze,icon:Ft}=ke,vi=(0,bo.N)(Ft),Li=Ze?(0,j.A)("<span>").text(Ze).addClass("dx-button-text"):void 0,tn=(0,bo.N)("spindown").addClass("dx-icon-right");(0,j.A)(Ue).append(vi,Li,tn)};return(0,o.X)({items:this._getButtonGroupItems(),onItemClick:this._buttonGroupItemClick.bind(this),width:"100%",height:"100%",selectionMode:"none",onKeyboardHandled:ke=>this._keyboardHandler(ke),buttonTemplate:fe,focusStateEnabled:t,hoverStateEnabled:n,stylingMode:p,accessKey:P,tabIndex:J},this._options.cache("buttonGroupOptions"))},_renderPopupContent(){var V=this._popup.$content(),e=this._getTemplateByOption("dropDownContentTemplate");return V.empty(),this._popupContentId="dx-"+new q.A,this.setAria("id",this._popupContentId,V),e.render({container:(0,z.c)(V),model:this.option("items")||this._dataSource})},_popupOptions(){var V=this.option("rtlEnabled")?"right":"left";return(0,o.X)({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),hideOnOutsideClick:e=>{var t=this.$element();return!(0,j.A)(e.target).closest(".".concat(m1)).is(t)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},_ignoreFunctionValueDeprecation:!0,width:()=>(0,f1.v)(this.$element()),height:"auto",shading:!1,position:{of:this.$element(),collision:"flipfit",my:V+" top",at:V+" bottom"},_wrapperClassExternal:"dx-dropdowneditor-overlay"},this._options.cache("dropDownOptions"),{visible:this.option("opened")})},_listOptions(){var V=this.option("selectedItemKey"),e=this.option("useSelectMode");return{selectionMode:e?"single":"none",wrapItemText:this.option("wrapItemText"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:()=>this._fireContentReadyAction(),selectedItemKeys:(0,m.O9)(V)&&e?[V]:[],grouped:this.option("grouped"),groupTemplate:this.option("groupTemplate"),keyExpr:this._getKey(),noDataText:this.option("noDataText"),displayExpr:this.option("displayExpr"),itemTemplate:this.option("itemTemplate"),items:this.option("items"),dataSource:this._dataSource,onItemClick:t=>{this.option("useSelectMode")||(this._lastSelectedItemData=t.itemData),this.option("selectedItemKey",this._keyGetter(t.itemData)),!1!==this._fireItemClickAction(t)&&(this.toggle(!1),this._buttonGroup.focus())}}},_upDownKeyHandler(){return this._popup&&this._popup.option("visible")&&this._list?this._list.focus():this.open(),!0},_escHandler(){return this.close(),this._buttonGroup.focus(),!0},_tabHandler(){return this.close(),!0},_renderPopup(){var V=(0,j.A)("<div>");this.$element().append(V),this._popup=this._createComponent(V,vn.A,this._popupOptions()),this._popup.$content().addClass("dx-dropdownbutton-content"),this._popup.$wrapper().addClass("dx-dropdownbutton-popup-wrapper"),this._popup.on("hiding",this._popupHidingHandler.bind(this)),this._popup.on("showing",this._popupShowingHandler.bind(this)),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_popupHidingHandler(){this.option("opened",!1),this._updateAriaAttributes(!1)},_popupOptionChanged:function(V){var e=De.A.getOptionsFromContainer(V);this._setPopupOption(e);var t=Object.keys(e);(-1!==t.indexOf("width")||-1!==t.indexOf("height"))&&this._dimensionChanged()},_dimensionChanged:function(){void 0===(0,f1.b)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",()=>(0,f1.v)(this.$element()))},_setPopupOption:function(V,e){this._setWidgetOption("_popup",arguments)},_popupShowingHandler(){this.option("opened",!0),this._updateAriaAttributes(!0)},_setElementAria(V){this.setAria({owns:V?this._popupContentId:void 0},this.$element())},_setButtonsAria(V){var e={expanded:V,haspopup:"listbox"},t={};this.option("text")||(t.label="dropdownbutton"),this._getButtons().each((n,p)=>{this.setAria(0===n?(0,Nt.A)({},t,e):e,(0,j.A)(p))})},_updateAriaAttributes(V){this._setElementAria(V),this._setButtonsAria(V)},_getButtons(){return this._buttonGroup.$element().find(".".concat("dx-button"))},_renderButtonGroup(){var V=this._buttonGroup&&this._buttonGroup.$element()||(0,j.A)("<div>");this._buttonGroup||this.$element().append(V),this._buttonGroup=this._createComponent(V,xE,this._buttonGroupOptions()),this._buttonGroup.registerKeyHandler("downArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("tab",this._tabHandler.bind(this)),this._buttonGroup.registerKeyHandler("upArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("escape",this._escHandler.bind(this)),this._bindInnerWidgetOptions(this._buttonGroup,"buttonGroupOptions"),this._updateAriaAttributes(this.option("opened"))},_updateArrowClass(){var V=this.option("splitButton")||this.option("showArrowIcon");this.$element().toggleClass("dx-dropdownbutton-has-arrow",V)},toggle(V){return this._popup||(this._renderPopup(),this._renderContent()),this._popup.toggle(V)},open(){return this.toggle(!0)},close(){return this.toggle(!1)},_setListOption(V,e){this._list&&this._list.option(V,e)},_getDisplayValue(V){var t=(0,m.Qd)(V)?this._displayGetter(V):V;return(0,m.Qd)(t)?"":String((0,s.YD)(t,""))},_updateActionButton(V){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(V),icon:(0,m.Qd)(V)?V.icon:void 0}),this._setOptionWithoutOptionChange("selectedItem",V),this._setOptionWithoutOptionChange("selectedItemKey",this._keyGetter(V))},_clean(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged(V){this._setListOption("selectedItemKeys",this.option("useSelectMode")&&(0,m.O9)(V)?[V]:[]);var e=this.option("selectedItem");this._loadSelectedItem().done(t=>{this._updateActionButton(t),this._displayGetter(e)!==this._displayGetter(t)&&this._fireSelectionChangedAction({previousValue:e,value:t})})},_updateButtonGroup(V,e){this._buttonGroup.option(V,e),this._updateAriaAttributes(this.option("opened"))},_actionButtonOptionChanged(V){var{name:e,value:t}=V,n={};n[e]=t,this._updateButtonGroup("items[0]",(0,o.X)({},this._actionButtonConfig(),n)),this._popup&&this._popup.repaint()},_selectModeChanged(V){if(V){this._setListOption("selectionMode","single");var e=this.option("selectedItemKey");this._setListOption("selectedItemKeys",(0,m.O9)(e)?[e]:[]),this._selectedItemKeyChanged(this.option("selectedItemKey"))}else this._setListOption("selectionMode","none"),this.option({selectedItemKey:void 0,selectedItem:void 0}),this._actionButtonOptionChanged({text:this.option("text")})},_updateItemCollection(V){var e=this.option("selectedItemKey");this._setListOption("selectedItem",null),this._setWidgetOption("_list",[V]),(0,m.O9)(e)&&this._loadSelectedItem().done(t=>{this._setListOption("selectedItemKeys",[e]),this._setListOption("selectedItem",t)}).fail(t=>{this._setListOption("selectedItemKeys",[])}).always(this._updateActionButton.bind(this))},_updateDataSource:function(){var V=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._dataSource.items();this._dataSource=void 0,this._itemsToDataSource(V),this._updateKeyExpr()},_updateKeyExpr:function(){this._compileKeyGetter(),this._setListOption("keyExpr",this._getKey())},focus:function(){this._buttonGroup.focus()},_optionChanged(V){var e,{name:t,value:n}=V;switch(t){case"useSelectMode":this._selectModeChanged(n);break;case"splitButton":this._updateArrowClass(),this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter(),this._setListOption(t,n),this._updateActionButton(this.option("selectedItem"));break;case"keyExpr":this._updateDataSource();break;case"buttonGroupOptions":this._innerWidgetOptionChanged(this._buttonGroup,V);break;case"dropDownOptions":if("dropDownOptions.visible"===V.fullName)break;void 0!==V.value.visible&&delete V.value.visible,this._popupOptionChanged(V),this._innerWidgetOptionChanged(this._popup,V);break;case"opened":this.toggle(n);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(t,n),this._updateButtonGroup(t,n),this.callBase(V);break;case"items":this._updateDataSource(this.option("items")),this._updateItemCollection(t);break;case"dataSource":Array.isArray(n)?this._updateDataSource(this.option("dataSource")):(this._initDataSource(),this._updateKeyExpr()),this._updateItemCollection(t);break;case"icon":case"text":this._actionButtonOptionChanged(V);break;case"showArrowIcon":this._updateArrowClass(),this._renderButtonGroup(),this._popup&&this._popup.repaint();break;case"width":case"height":this.callBase(V),null===(e=this._popup)||void 0===e||e.repaint();break;case"stylingMode":case"tabIndex":this._updateButtonGroup(t,n);break;case"type":this._updateButtonGroup("items",this._getButtonGroupItems());break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":case"wrapItemText":case"useItemTextAsTitle":this._setListOption(t,n);break;case"dropDownContentTemplate":this._renderContent();break;case"selectedItemKey":this._selectedItemKeyChanged(n);break;case"selectedItem":break;case"onItemClick":this._createItemClickAction();break;case"onButtonClick":this._createActionClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"deferRendering":this.toggle(this.option("opened"));break;default:this.callBase(V)}}}).include(p1.A);(0,gn.A)("dxDropDownButton",EE);var GS="dx-datagrid-export-button";class jS{constructor(e,t,n){this._exportController=e,this._initialColumnWidthsByColumnIndex=t,this._selectedRowsOnly=n}_getGroupValue(e){var{key:t,data:n,rowType:p,groupIndex:P,summaryCells:J}=e,fe=this._options.groupColumns[P],ke=En.getDisplayValue(fe,fe.deserializeValue?fe.deserializeValue(t[P]):t[P],n,p),Ue="".concat(fe.caption,": ").concat(En.formatValue(ke,fe));return J&&J[0]&&J[0].length&&(Ue+=" ".concat(En.getGroupRowSummaryText(J[0],this._options.summaryTexts))),Ue}_correctCellIndex(e){return e}_initOptions(){var e=this._exportController,t=e._columnsController.getGroupColumns();this._options={columns:e._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:t,items:this._selectedRowsOnly||e._selectionOnly?e._getSelectedItems():e._getAllItems(),isHeadersVisible:e.option("showColumnHeaders"),summaryTexts:e.option("summary.texts"),rtlEnabled:e.option("rtlEnabled")}}getHeaderStyles(){return[{bold:!0,alignment:"center"},{bold:!0,alignment:"left"},{bold:!0,alignment:"right"}]}getGroupRowStyle(){return{bold:!0,alignment:(0,ge.n)(this._options.rtlEnabled)}}getColumnStyles(){var e=[];return this.getColumns().forEach(t=>{e.push({alignment:t.alignment||"left",format:t.format,dataType:t.dataType})}),e}getStyles(){return[...this.getHeaderStyles(),...this.getColumnStyles(),this.getGroupRowStyle()]}_getTotalCellStyleId(e){var t,n=(null===(t=this.getColumns()[e])||void 0===t?void 0:t.alignment)||"right";return this.getHeaderStyles().map(p=>p.alignment).indexOf(n)}getStyleId(e,t){return e<this.getHeaderRowCount()?0:this.isTotalCell(e-this.getHeaderRowCount(),t)?this._getTotalCellStyleId(t):this.isGroupRow(e-this.getHeaderRowCount())?this.getHeaderStyles().length+this.getColumns().length:t+this.getHeaderStyles().length}getColumns(e){var{columns:t}=this._options;return e?t:t[t.length-1]}getColumnsWidths(){var e=this.getColumns();return(0,m.O9)(e)?e.map(t=>t.width):void 0}getRowsCount(){return this._options.items.length+this.getHeaderRowCount()}getHeaderRowCount(){return this.isHeadersVisible()?this._options.columns.length-1:0}isGroupRow(e){return e<this._options.items.length&&"group"===this._options.items[e].rowType}getGroupLevel(e){var t=this._options.items[e-this.getHeaderRowCount()],n=t&&t.groupIndex;return t&&"totalFooter"===t.rowType?0:(0,m.O9)(n)?n:this._options.groupColumns.length}getCellType(e,t){var n=this.getColumns();if(e<this.getHeaderRowCount())return"string";if(e-=this.getHeaderRowCount(),t<n.length){var p=this._options.items.length&&this._options.items[e],P=n[t];return p&&"data"===p.rowType&&isFinite(p.values[this._correctCellIndex(t)])&&!(0,m.O9)(P.customizeText)?(0,m.O9)(P.lookup)?P.lookup.dataType:P.dataType:"string"}}ready(){this._initOptions();var e=this._options;return(0,xe.z7)(e.items).done(t=>{e.items=t}).fail(()=>{e.items=[]})}_convertFromGridGroupSummaryItems(e){if((0,m.O9)(e)&&e.length>0)return e.map(t=>({value:t.value,name:t.name}))}getCellData(e,t,n){var p,P,J={cellSourceData:{},value:p},fe=this.getColumns(),ke=this._correctCellIndex(t);if(e<this.getHeaderRowCount())P=this.getColumns(!0)[e][t],J.cellSourceData.rowType="header",J.cellSourceData.column=P&&P.gridColumn,J.value=P&&P.caption;else{e-=this.getHeaderRowCount();var Ze=this._options.items.length&&this._options.items[e];if(Ze){var Ft=Ze.values;switch(J.cellSourceData.rowType=Ze.rowType,J.cellSourceData.column=fe[t]&&fe[t].gridColumn,Ze.rowType){case"groupFooter":case"totalFooter":ke<Ft.length&&((0,m.O9)(p=Ft[ke])?(J.cellSourceData.value=p.value,J.cellSourceData.totalSummaryItemName=p.name,J.value=En.getSummaryText(p,this._options.summaryTexts)):J.cellSourceData.value=void 0);break;case"group":if(J.cellSourceData.groupIndex=Ze.groupIndex,t<1)J.cellSourceData.column=this._options.groupColumns[Ze.groupIndex],J.cellSourceData.value=Ze.key[Ze.groupIndex],J.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(Ze.summaryCells[0]),J.value=this._getGroupValue(Ze);else{var vi=Ze.values[ke];if(Array.isArray(vi)){J.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(vi),p="";for(var Li=0;Li<vi.length;Li++)p+=(Li>0?n?"\n":" \n ":"")+En.getSummaryText(vi[Li],this._options.summaryTexts);J.value=p}else J.cellSourceData.value=void 0}break;default:if(P=fe[t]){var tn=Ft[ke],On=En.getDisplayValue(P,tn,Ze.data,Ze.rowType);J.value=!isFinite(On)||(0,m.O9)(P.customizeText)?n&&(0,m.O9)(P.customizeText)&&P.customizeText===this._exportController._columnsController.getCustomizeTextByDataType("boolean")?On:En.formatValue(On,P):On,J.cellSourceData.value=tn}J.cellSourceData.data=Ze.data}}}return J}isHeadersVisible(){return this._options.isHeadersVisible}isTotalCell(e,t){var{items:n}=this._options,p=n[e],P=this._correctCellIndex(t);return p&&"groupFooter"===p.rowType||"totalFooter"===p.rowType||p.summaryCells&&p.summaryCells[P]&&p.summaryCells[P].length>0&&p.summaryCells[P][0].alignByColumn}getCellMerging(e,t){var{columns:n}=this._options,p=n[e]&&n[e][t];return p?{colspan:(p.exportColspan||1)-1,rowspan:(p.rowspan||1)-1}:{colspan:0,rowspan:0}}getFrozenArea(){return{x:0,y:this.getHeaderRowCount()}}}En.registerModule("export",{defaultOptions:()=>({export:{enabled:!1,fileName:"DataGrid",formats:["xlsx"],allowExportSelectedData:!1,texts:{exportTo:v.A.format("dxDataGrid-exportTo"),exportAll:v.A.format("dxDataGrid-exportAll"),exportSelectedRows:v.A.format("dxDataGrid-exportSelectedRows")}}}),controllers:{export:class kE extends En.ViewController{init(){this.throwWarningIfNoOnExportingEvent(),this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._selectionController=this.getController("selection"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]})}_getEmptyCell(){return{caption:"",colspan:1,rowspan:1}}_updateColumnWidth(e,t){e.width=t}_getColumns(e){var n,p,t=[],P=this._columnsController,J=P.getRowCount();for(n=0;n<=J;n++){var fe=[];p=P.getVisibleColumns(n,!0);var ke=void 0;if(n===J)if(this._updateLockCount)ke=e;else{var Ue=this._getColumnWidths(this._headersView,this._rowsView);if(Ue&&Ue.length){ke={};for(var Ze=0;Ze<p.length;Ze++)ke[p[Ze].index]=Ue[Ze]}}for(var Ft=0;Ft<p.length;Ft++){var vi=(0,o.X)({},p[Ft],{dataType:"datetime"===p[Ft].dataType?"date":p[Ft].dataType,gridColumn:p[Ft]});if(this._needColumnExporting(vi)){var Li=this._calculateExportColspan(vi);(0,m.O9)(Li)&&(vi.exportColspan=Li),ke&&this._updateColumnWidth(vi,ke[vi.index]),fe.push(vi)}}t.push(fe)}return p=t[J],t=function ME(V,e){for(var t=Ze=>Ze||1,n=[],p=(V[0]||[]).reduce((Ze,Ft)=>Ze+t(Ft.colspan),0),P=(Ze=>{var Ft=0,vi=0;return()=>{var Li=Ze[Ft]||[],tn=Li[vi++];return vi>=Li.length&&(Ft++,vi=0),tn&&(tn.colspan=t(tn.colspan),tn.rowspan=t(tn.rowspan)),tn}})(V),J=(Ze,Ft,vi)=>{if((n[Ze]=n[Ze]||[])[Ft]=vi,vi.colspan>1||vi.rowspan>1){for(var tn=(0,o.X)({},vi,e),On=1;On<vi.colspan;On++)J(Ze,Ft+On,tn);for(var Qn=1;Qn<vi.rowspan;Qn++)for(var zr=0;zr<vi.colspan;zr++)J(Ze+Qn,Ft+zr,tn)}},fe=P(),ke=0;fe;){for(var Ue=0;Ue<p&&fe;Ue++)n[ke]&&n[ke][Ue]||(J(ke,Ue,fe),Ue+=fe.colspan-1,fe=P());ke++}return n}(t.slice(0,-1),this._getEmptyCell()),t.push(p),t}_calculateExportColspan(e){if(e.isBand){var t=this._columnsController.getChildrenByBandColumn(e.index,!0);if((0,m.O9)(t))return t.reduce((n,p)=>this._needColumnExporting(p)?n+(this._calculateExportColspan(p)||1):n,0)}}_needColumnExporting(e){return!e.command&&(e.allowExporting||void 0===e.allowExporting)}_getFooterSummaryItems(e,t){var n=[],p=1,P=0;do{for(var J=[],fe=0;fe<e.length;fe++){var ke=e[fe],Ue=ke.length;p<Ue&&(p=Ue),J.push(ke[P])}n.push({values:J,rowType:t?"totalFooter":"groupFooter"})}while(P++<p-1);return n}_hasSummaryGroupFooters(){var e=this.option("summary.groupItems");if((0,m.O9)(e))for(var t=0;t<e.length;t++)if(e[t].showInGroupFooter)return!0;return!1}_getItemsWithSummaryGroupFooters(e){for(var t=[],n=[],p=[],P=0;P<e.length;P++){var J=e[P];"groupFooter"===J.rowType?(p=this._getFooterSummaryItems(J.summaryCells),t=t.concat(n,p),n=[]):n.push(J)}return t.length?t:n}_updateGroupValuesWithSummaryByColumn(e){for(var t=[],n=0;n<e.length;n++){var p=e[n],{summaryCells:P}=p;if("group"===p.rowType&&P&&P.length>1){for(var J=p.values.length,fe=1;fe<P.length;fe++)for(var ke=0;ke<P[fe].length;ke++){var Ue=P[fe][ke];Ue&&Ue.alignByColumn&&(Array.isArray(t[fe-J])||(t[fe-J]=[]),t[fe-J].push(Ue))}t.length>0&&(p.values.push(...t),t=[])}}}_processUnExportedItems(e){for(var p,P,t=this._columnsController.getVisibleColumns(null,!0),n=this._columnsController.getGroupColumns(),J=0;J<e.length;J++){var fe=e[J],ke=!1;p=[],P=[];for(var Ue=0;Ue<t.length;Ue++){var Ze=t[Ue];if(ke||(ke=["detailExpand","buttons"].includes(Ze.type)),this._needColumnExporting(Ze)&&(fe.values&&p.push("group"!==fe.rowType||p.length?fe.values[Ue]:fe.key[fe.groupIndex]),fe.summaryCells))if("group"!==fe.rowType||P.length)P.push(fe.summaryCells[Ue]);else{var Ft=Ue-n.length+fe.groupIndex;P.push(fe.summaryCells[ke?Ft:Ft+1])}}p.length&&(fe.values=p),P.length&&(fe.summaryCells=P)}}_getAllItems(e){var ke,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this,p=new xe.cY,P=this._dataController.footerItems(),J=P.length&&P[0],fe=n.option("summary.totalItems");return(0,xe.z7)(e).done(Ue=>{this._dataController.loadAll(Ue,t).done((Ze,Ft)=>{n._updateGroupValuesWithSummaryByColumn(Ze),n._hasSummaryGroupFooters()&&(Ze=n._getItemsWithSummaryGroupFooters(Ze)),ke=J&&J.summaryCells,(0,m.O9)(Ft)&&fe&&(ke=n._getSummaryCells(fe,Ft));var vi=J&&n._getFooterSummaryItems(ke,!0);vi&&(Ze=Ze.concat(vi)),n._processUnExportedItems(Ze),p.resolve(Ze)}).fail(p.reject)}).fail(p.reject),p}_getSummaryCells(e,t){return this._dataController._calculateSummaryCells(e,t,this._columnsController.getVisibleColumns(null,!0),(n,p)=>this._dataController._isDataColumn(p)?p.index:-1)}_getSelectedItems(){return this.needLoadItemsOnExportingSelectedItems()?this._getAllItems(this._selectionController.loadSelectedItemsWithFilter(),!0):this._getAllItems(this._selectionController.getSelectedRowsData())}_getColumnWidths(e,t){return e&&e.isVisible()?e.getColumnWidths():t.getColumnWidths()}throwWarningIfNoOnExportingEvent(){var e,t,n=null===(t=(e=this.component).hasActionSubscription)||void 0===t?void 0:t.call(e,"onExporting");this.option("export.enabled")&&!n&&Et.A.log("W1024")}callbackNames(){return["selectionOnlyChanged"]}getDataProvider(e){var n,t=this._getColumnWidths(this._headersView,this._rowsView);if(t&&t.length){n={};for(var p=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0),P=0;P<p.length;P++)n[p[P].index]=t[P]}return new jS(this,n,e)}exportTo(e,t){this._selectionOnly=e;var n=this.getAction("onExporting"),p={rtlEnabled:this.option("rtlEnabled"),selectedRowsOnly:!!e,format:t,fileName:"DataGrid",cancel:!1};(0,m.Tn)(n)&&n(p)}publicMethods(){return["getDataProvider"]}selectionOnly(e){if(!(0,m.O9)(e))return this._isSelectedRows;this._isSelectedRows=e,this.selectionOnlyChanged.fire()}optionChanged(e){super.optionChanged(e),"export"===e.name&&this.throwWarningIfNoOnExportingEvent()}needLoadItemsOnExportingSelectedItems(){var e;return null!==(e=this.option("loadItemsOnExportingSelectedItems"))&&void 0!==e?e:this._dataController._dataSource.remoteOperations().filtering}}},extenders:{controllers:{editing:V=>class extends V{callbackNames(){var e=super.callbackNames();return(0,m.O9)(e)?e.push("editingButtonsUpdated"):["editingButtonsUpdated"]}_updateEditButtons(){super._updateEditButtons(),this.editingButtonsUpdated.fire()}}},views:{headerPanel:V=>class extends V{_getToolbarItems(){var e=super._getToolbarItems(),t=this._getExportToolbarButton();return t&&(e.push(t),this._correctItemsPosition(e)),e}_getExportToolbarButton(){var e=this._getExportToolbarItems();if(0===e.length)return null;var t=this._needDisableExportButton(),n={name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30,options:{items:e},disabled:t};if(1===e.length){var p=(0,Nt.A)((0,Nt.A)({},e[0]),{hint:e[0].text,elementAttr:{class:GS}});n.widget="dxButton",n.showText="inMenu",n.options=p}else{var P={icon:"export",displayExpr:"text",items:e,hint:this.option("export.texts.exportTo"),elementAttr:{class:GS},dropDownOptions:{width:"auto",_wrapperClassExternal:"dx-datagrid-export-menu"}};n.options=P,n.widget="dxDropDownButton",n.menuItemTemplate=(J,fe,ke)=>{this._createComponent((0,j.A)(ke),sy.A,{items:e})}}return n}_getExportToolbarItems(){var e,t=this.option("export"),n=this.option("export.texts"),p=null!==(e=this.option("export.formats"))&&void 0!==e?e:[];if(!t.enabled)return[];var P=[];return p.forEach(J=>{var fe=J.toUpperCase(),ke="export";"xlsx"===J&&(fe="Excel",ke="xlsxfile"),"pdf"===J&&(ke="pdffile"),P.push({text:(0,wo.GP)(n.exportAll,fe),icon:ke,onClick:()=>{this._exportController.exportTo(!1,J)}}),t.allowExportSelectedData&&P.push({text:(0,wo.GP)(n.exportSelectedRows,fe),icon:"exportselected",onClick:()=>{this._exportController.exportTo(!0,J)}})}),P}_correctItemsPosition(e){e.sort((t,n)=>t.sortIndex-n.sortIndex)}_isExportButtonVisible(){return this.option("export.enabled")}optionChanged(e){super.optionChanged(e),"export"===e.name&&(e.handled=!0,this._invalidate())}_needDisableExportButton(){var e=!this._columnsController.hasVisibleDataColumns(),t=this._editingController.hasChanges();return e||t}_columnOptionChanged(e){if(super._columnOptionChanged(e),En.checkChanges(e.optionNames,["groupIndex","visible","all"])){var n=this._needDisableExportButton();this.setToolbarItemDisabled("exportButton",n)}}init(){super.init(),this._exportController=this.getController("export"),this._editingController.editingButtonsUpdated.add(()=>{var e=this._needDisableExportButton();this.setToolbarItemDisabled("exportButton",e)})}isVisible(){return super.isVisible()||this._isExportButtonVisible()}}}}});var W0="dx-row-focused",YS=".dx-row.".concat(W0),LE="dx-cell-focus-disabled",_x={defaultOptions:()=>({focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:null,focusedRowIndex:-1,focusedColumnIndex:-1}),controllers:{focus:class KS extends cn.ViewController{getKeyboardController(){return this.getController("keyboardNavigation")}getDataController(){return this.getController("data")}init(){this.component._optionsByReference.focusedRowKey=!0}optionChanged(e){var{name:t,value:n,previousValue:p}=e;switch(t){case"focusedRowIndex":this._focusRowByIndex(n),this.getKeyboardController()._fireFocusedRowChanged(),e.handled=!0;break;case"focusedRowKey":if(Array.isArray(n)&&JSON.stringify(n)===JSON.stringify(p))return;this._focusRowByKey(n),this.getKeyboardController()._fireFocusedRowChanged(),e.handled=!0;break;case"focusedColumnIndex":case"focusedRowEnabled":case"autoNavigateToFocusedRow":e.handled=!0;break;default:super.optionChanged(e)}}publicMethods(){return["navigateToRow","isRowFocused"]}isAutoNavigateToFocusedRow(){return"infinite"!==this.option("scrolling.mode")&&this.option("autoNavigateToFocusedRow")}_focusRowByIndex(e,t){this.option("focusedRowEnabled")&&((e=void 0!==e?e:this.option("focusedRowIndex"))<0?this.isAutoNavigateToFocusedRow()&&this._resetFocusedRow():this._focusRowByIndexCore(e,t))}_focusRowByIndexCore(e,t){var n=this.getDataController().pageSize(),p=()=>{if(this._isValidFocusedRowIndex(e)){var J=e-this.getDataController().getRowIndexOffset(!0);if(!t||t.paging&&!t.filtering){var fe=this.getDataController()._getLastItemIndex();J=Math.min(J,fe)}var ke=this.getDataController().getKeyByRowIndex(J,!0);(0,m.O9)(ke)&&!this.isRowFocused(ke)&&this.option("focusedRowKey",ke)}};if(n>=0)if(this._isLocalRowIndex(e))p();else{var P=Math.floor(e/this.getDataController().pageSize());(0,xe.z7)(this.getDataController().pageIndex(P),this.getDataController().waitReady()).done(()=>{p()})}}_isLocalRowIndex(e){if(this.getKeyboardController()._isVirtualScrolling()){var n=Math.floor(e/this.getDataController().pageSize()),p=this.getDataController().virtualItemsCount(),P=p?p.begin:-1,J=this.getDataController().getVisibleRows().length+this.getDataController().getRowIndexOffset(),fe=Math.ceil(J/this.getDataController().pageSize());return P<=e&&fe>n}return!0}_setFocusedRowKeyByIndex(e){if(this._isValidFocusedRowIndex(e)){var t=Math.min(e-this.getDataController().getRowIndexOffset(),this.getDataController().items().length-1),n=this.getDataController().getKeyByRowIndex(t);(0,m.O9)(n)&&!this.isRowFocused(n)&&this.option("focusedRowKey",n)}}_focusRowByKey(e){(0,m.O9)(e)?this._navigateToRow(e,!0):this._resetFocusedRow()}_resetFocusedRow(){var e=this.option("focusedRowKey"),t=(0,m.O9)(e);!t&&this.option("focusedRowIndex")<0||(t&&this.option("focusedRowKey",null),this.getKeyboardController().setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getDataController().updateItems({changeType:"updateFocusedRow",focusedRowKey:null}),this.getKeyboardController()._fireFocusedRowChanged())}_isValidFocusedRowIndex(e){var t=this.getDataController().getVisibleRows()[e];return!t||"data"===t.rowType||"group"===t.rowType}navigateToRow(e){return this.isAutoNavigateToFocusedRow()||this.option("focusedRowIndex",-1),this._navigateToRow(e)}_navigateToRow(e,t){var n=this,p=n.isAutoNavigateToFocusedRow(),P=new xe.cY;if(void 0===e||!this.getDataController().dataSource())return P.reject().promise();var J=n.getFocusedRowIndexByKey(e);return!p&&t||J>=0?n._navigateTo(e,P,t):this.getDataController().getPageIndexByKey(e).done(fe=>{fe<0?P.resolve(-1):fe===this.getDataController().pageIndex()?this.getDataController().reload().done(()=>{n.isRowFocused(e)&&this.getDataController().getRowIndexByKey(e)>=0?P.resolve(n.getFocusedRowIndexByKey(e)):n._navigateTo(e,P,t)}).fail(P.reject):this.getDataController().pageIndex(fe).done(()=>{n._navigateTo(e,P,t)}).fail(P.reject)}).fail(P.reject),P.promise()}_navigateTo(e,t,n){var p=this.getDataController().getRowIndexByKey(e),P=Ui.A.isVirtualRowRendering(this);this.isAutoNavigateToFocusedRow()&&P&&p<0?this._navigateToVirtualRow(e,t,n):this._navigateToVisibleRow(e,t,n)}_navigateToVisibleRow(e,t,n){if(n)this._triggerUpdateFocusedRow(e,t);else{var p=this.getFocusedRowIndexByKey(e);this.getView("rowsView").scrollToRowElement(e,t).done(()=>{t.resolve(p)})}}_navigateToVirtualRow(e,t,n){var p=this.getDataController()._rowsScrollController,P=Ui.A.getIndexByKey(e,this.getDataController().items(!0)),J=this.getView("rowsView").getScrollable();if(p&&J&&P>=0){var fe=P+this.getDataController().getRowIndexOffset(!0),ke=p.getItemOffset(fe),Ue=()=>{this.getDataController().totalCount()&&!this.getDataController().items().length||(this.component.off("contentReady",Ue),n?this._triggerUpdateFocusedRow(e,t):t.resolve(fe))};this.component.on("contentReady",Ue),this.getView("rowsView").scrollTopPosition(ke)}else t.resolve(-1)}_triggerUpdateFocusedRow(e,t){var p,n=this.getFocusedRowIndexByKey(e);this._isValidFocusedRowIndex(n)?(this.option("focusedRowEnabled")?this.getDataController().updateItems({changeType:"updateFocusedRow",focusedRowKey:e}):p=this.getView("rowsView").scrollToRowElement(e),(0,xe.z7)(p).done(()=>{this.getKeyboardController().setFocusedRowIndex(n),t&&t.resolve(n)})):t&&t.resolve(-1)}getFocusedRowIndexByKey(e){var t=this.getDataController().getRowIndexByKey(e,!0);return t>=0?t+this.getDataController().getRowIndexOffset(!0):-1}_focusRowByKeyOrIndex(){var e=this.option("focusedRowKey"),t=this.option("focusedRowIndex");if((0,m.O9)(e)){var n=this.getDataController().getRowIndexByKey(e);n>=0?(this.getKeyboardController()._isVirtualScrolling()&&(t=n+this.getDataController().getRowIndexOffset()),this.getKeyboardController().setFocusedRowIndex(t),this._triggerUpdateFocusedRow(e)):this._navigateToRow(e,!0).done(p=>{t>=0&&p<0?this._focusRowByIndex():t<0&&p>=0&&this.getKeyboardController().setFocusedRowIndex(p)})}else t>=0&&this._focusRowByIndex(t)}isRowFocused(e){var t=this.option("focusedRowKey");if((0,m.O9)(t))return(0,s.RL)(e,this.option("focusedRowKey"))}updateFocusedRow(e){var t,J,fe,n=this,p=null!==(t=e.focusedRowIndex)&&void 0!==t?t:n.getDataController().getRowIndexByKey(e.focusedRowKey),P=n.getView("rowsView");(0,E.__)(P.getTableElements(),(ke,Ue)=>{var Ze=0===ke;J=(0,j.A)(Ue),n._clearPreviousFocusedRow(J,p);var Ft=n._prepareFocusedRow({changedItem:n.getDataController().getVisibleRows()[p],$tableElement:J,focusedRowIndex:p});Ze&&(fe=Ft)}),!e.preventScroll&&fe&&P.scrollToElementVertically(fe)}_clearPreviousFocusedRow(e,t){var n=e.find(YS).filter((P,J)=>{var fe=(0,j.A)(J).closest(".".concat(this.addWidgetPrefix("table")));return e.is(fe)});n.removeClass(W0).removeClass(LE).removeAttr("tabindex"),n.children("td").removeAttr("tabindex"),0!==t&&(0,j.A)(this.getView("rowsView").getRowElement(0)).removeClass(LE).removeAttr("tabIndex")}_prepareFocusedRow(e){var t,{changedItem:n}=e;if(n&&("data"===n.rowType||"group"===n.rowType)){var{focusedRowIndex:p}=e,{$tableElement:P}=e,J=this.option("tabindex")||0,fe=this.getView("rowsView");(t=(0,j.A)(fe._getRowElements(P).eq(p))).addClass(W0).attr("tabindex",J)}return t}}},extenders:{controllers:{keyboardNavigation:V=>class extends V{init(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),super.init(),this.setRowFocusType(),this._focusedCellPosition={},(0,m.O9)(e)&&e>=0&&(this._focusedCellPosition.rowIndex=e),(0,m.O9)(t)&&t>=0&&(this._focusedCellPosition.columnIndex=t)}setFocusedRowIndex(e){super.setFocusedRowIndex(e),this.option("focusedRowIndex",e)}setFocusedColumnIndex(e){super.setFocusedColumnIndex(e),this.option("focusedColumnIndex",e)}_escapeKeyHandler(e,t){return t||!this.option("focusedRowEnabled")?super._escapeKeyHandler(e,t):!!this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(e.originalEvent.target),!0),!0)}_updateFocusedCellPosition(e,t){var n=super._updateFocusedCellPosition(e,t);return n&&n.columnIndex>=0&&this._fireFocusedCellChanged(e),n}},editorFactory:V=>class extends V{renderFocusOverlay(e,t){var n,P,p=this.option("focusedRowEnabled");p&&null!==(n=this._keyboardNavigationController)&&void 0!==n&&n.isRowFocusType()&&!this._editingController.isEditing()?p&&"row"===this._keyboardNavigationController._getElementType(e)&&!e.hasClass(W0)&&(P=this._keyboardNavigationController.getFirstValidCellInRow(e),this._keyboardNavigationController.focus(P)):super.renderFocusOverlay(e,t)}},columns:V=>class extends V{getSortDataSourceParameters(e,t){var n=super.getSortDataSourceParameters.apply(this,arguments),p=this._dataController._dataSource,P=this._dataController.store(),J=P&&P.key(),fe=p&&p.remoteOperations()||{},ke=Object.keys(fe).every(Ze=>!fe[Ze]);if(J&&(this.option("focusedRowEnabled")&&!1!==this._focusController.isAutoNavigateToFocusedRow()||t)){var Ue=(J=Array.isArray(J)?J:[J]).filter(Ze=>!this.columnOption(Ze,"sortOrder"));Ue.length&&(n=n||[],ke?n.push({selector:p.getDataIndexGetter(),desc:!1}):Ue.forEach(Ze=>n.push({selector:Ze,desc:!1})))}return n}},data:V=>class extends V{_applyChange(e){if(!e||"updateFocusedRow"!==e.changeType)return super._applyChange.apply(this,arguments)}_fireChanged(e){if(super._fireChanged(e),this.option("focusedRowEnabled")&&this._dataSource){var n="update"===e.changeType&&e.repaintChangesOnly&&e.changeTypes&&e.changeTypes.indexOf("remove")>=0;"refresh"===e.changeType&&e.items.length||n?(this._updatePageIndexes(),this._updateFocusedRow(e)):"append"===e.changeType||"prepend"===e.changeType?this._updatePageIndexes():"update"===e.changeType&&e.repaintChangesOnly&&this._updateFocusedRow(e)}}_updatePageIndexes(){var e=this._lastRenderingPageIndex||0,t=this._rowsScrollController?this._rowsScrollController.pageIndex():0;this._lastRenderingPageIndex=t,this._isPagingByRendering=t!==e}isPagingByRendering(){return this._isPagingByRendering}_updateFocusedRow(e){var t=e.operationTypes||{},{reload:n,fullReload:p,pageIndex:P,paging:J}=t,fe=this._keyboardNavigationController._isVirtualScrolling(),ke=J&&!fe,Ue=this.option("focusedRowKey"),Ze=this._focusController.isAutoNavigateToFocusedRow();if(n&&!1===P&&!p&&(0,m.O9)(Ue))this._focusController._navigateToRow(Ue,!0).done(zr=>{zr<0&&this._focusController._focusRowByIndex(void 0,t)});else if(ke&&Ze){var vi=this.getRowIndexByKey(Ue),Li=this.option("focusedRowIndex");Li>=0&&(Li===vi||!(vi>=0))&&this._focusController._focusRowByIndex(Li,t)}else ke&&!Ze&&this.getRowIndexByKey(Ue)<0?this.option("focusedRowIndex",-1):t.fullReload&&this._focusController._focusRowByKeyOrIndex()}getPageIndexByKey(e){var t=this,n=new xe.cY;return t.getGlobalRowIndexByKey(e).done(p=>{n.resolve(p>=0?Math.floor(p/t.pageSize()):-1)}).fail(n.reject),n.promise()}getGlobalRowIndexByKey(e){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(e):this._calculateGlobalRowIndexByFlatData(e)}_calculateGlobalRowIndexByFlatData(e,t,n){var p=this,P=new xe.cY,J=p._dataSource;if(Array.isArray(e)||(V=>"string"==typeof V&&V.startsWith(Pe)&&44===V.length)(e))return P.resolve(-1).promise();var fe=p._generateFilterByKey(e);return J.load({filter:p._concatWithCombinedFilter(fe),skip:0,take:1}).done(ke=>{ke.length>0?(fe=p._generateOperationFilterByKey(e,ke[0],n),J.load({filter:p._concatWithCombinedFilter(fe,t),skip:0,take:1,requireTotalCount:!0}).done((Ue,Ze)=>{P.resolve(Ze.totalCount)})):P.resolve(-1)}),P.promise()}_concatWithCombinedFilter(e,t){var n=this.getCombinedFilter();return Ui.A.combineFilters([e,n,t])}_generateBooleanFilter(e,t,n){var{desc:p}=n;switch(!0){case!1===t&&p:return[e,"=",!0];case!1===t&&!p:return[e,"=",null];case!0===t&&!p:case!(0,m.Lm)(t)&&p:return[e,"<>",t];default:return}}_generateOperationFilterByKey(e,t,n){var p=this,P=p.option("dateSerializationFormat"),J=p._dataSource.remoteOperations().filtering,fe=p._dataSource.remoteOperations().sorting,ke=p._generateFilterByKey(e,"<"),Ue=p._columnsController.getSortDataSourceParameters(!J,!0);if(n){var Ze=p._columnsController.getGroupDataSourceParameters(!J);Ze&&(Ue=Ue?Ze.concat(Ue):Ze)}return Ue&&Ue.slice().reverse().forEach(Ft=>{var{selector:vi,desc:Li,compare:tn}=Ft,{getter:On,rawValue:Qn,safeValue:zr}=((V,e,t)=>{var{isRemoteFiltering:n,dateSerializationFormat:p,getSelector:P}=t,{selector:J}=V,fe=(0,m.Tn)(J)?J:P(J),ke=fe?fe(e):e[J];return{getter:fe,rawValue:ke,safeValue:n&&(0,m.$P)(ke)?jl.A.serializeDate(ke,p):ke}})(Ft,t,{isRemoteFiltering:J,dateSerializationFormat:P,getSelector:Es=>p._columnsController.columnOption(Es,"selector")});if(ke=[[vi,"=",zr],"and",ke],null===Qn||(0,m.Lm)(Qn)){var la=p._generateBooleanFilter(vi,zr,Li);la&&(ke=[la,"or",ke])}else{var Xl,qo=Li?">":"<";tn&&!fe?Xl=Es=>"<"===qo?tn(Qn,On(Es))>=1:tn(Qn,On(Es))<=-1:(Xl=[vi,qo,zr],Li||(Xl=[Xl,"or",[vi,"=",null]])),ke=[Xl,"or",ke]}}),ke}_generateFilterByKey(e,t){var n=this._dataSource.key(),p=[];if(t||(t="="),Array.isArray(n))for(var P=0;P<n.length;++P){var J=e[n[P]];J&&(p.length>0&&p.push("and"),p.push([n[P],t,J]))}else p=[n,t,e];return p}_getLastItemIndex(){return this.items(!0).length-1}},editing:V=>class extends V{_deleteRowCore(e){var t=super._deleteRowCore.apply(this,arguments),n=this._dataController.getKeyByRowIndex(e);t.done(()=>{var p=this._dataController.getRowIndexByKey(n),P=this._dataController.getVisibleRows();-1===p&&!P.length&&this._focusController._resetFocusedRow()})}}},views:{rowsView:V=>class extends V{_createRow(e){var t=super._createRow.apply(this,arguments);return this.option("focusedRowEnabled")&&e&&this._focusController.isRowFocused(e.key)&&t.addClass(W0),t}_checkRowKeys(e){if(super._checkRowKeys.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var t=this._dataController.store();t&&!t.key()&&this._dataController.fireError("E1042","Row focusing")}}_update(e){"updateFocusedRow"===e.changeType?this.option("focusedRowEnabled")&&this._focusController.updateFocusedRow(e):super._update(e)}updateFocusElementTabIndex(e,t){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex(t):super.updateFocusElementTabIndex(e)}_setFocusedRowElementTabIndex(e){var t,n=this.option("focusedRowKey"),p=null!==(t=this.option("tabIndex"))&&void 0!==t?t:0,P=this._columnsController,J=this._dataController.getRowIndexByKey(n),fe=this.option("focusedColumnIndex"),ke=this._findRowElementForTabIndex(),Ue=this._dataController.dataSource(),Ze=Ue?.operationTypes(),Ft=!Ze||Ze.paging;(0,m.O9)(this._scrollToFocusOnResize)||(this._scrollToFocusOnResize=()=>{this.scrollToElementVertically(this._findRowElementForTabIndex()),this.resizeCompleted.remove(this._scrollToFocusOnResize)}),ke.attr("tabIndex",p);var vi=this.option("focusedRowIndex")-this._dataController.getRowIndexOffset(!0);!Ft&&J<0&&vi>=0&&this._focusController.updateFocusedRow({focusedRowIndex:vi,preventScroll:e}),J>=0&&!e&&(fe<0&&(fe=0),J+=this._dataController.getRowIndexOffset(),fe+=P.getColumnIndexOffset(),this._keyboardNavigationController.setFocusedCellPosition(J,fe),this._focusController.isAutoNavigateToFocusedRow()&&!Ft&&!this._dataController.isPagingByRendering()&&(this.resizeCompleted.remove(this._scrollToFocusOnResize),this.resizeCompleted.add(this._scrollToFocusOnResize)))}_findRowElementForTabIndex(){var e=this.option("focusedRowKey"),t=this._dataController.getRowIndexByKey(e);return(0,j.A)(this.getRowElement(t>=0?t:0))}scrollToRowElement(e){var t=this._dataController.getRowIndexByKey(e),n=(0,j.A)(this.getRow(t));return this.scrollToElementVertically(n)}scrollToElementVertically(e){var t=this.getScrollable();if(t&&e.length){var n=t.getScrollElementPosition(e,"vertical");return this.scrollTopPosition(n)}return(new xe.cY).resolve()}scrollTopPosition(e){var t=new xe.cY,n=this.getScrollable();if(n){var p=n.scrollTop(),P=()=>{n.off("scroll",P),t.resolve()};if(e!==p)return n.on("scroll",P),this._dataController.resetFilterApplying(),n.scrollTo({top:e}),t.promise()}return t.resolve()}}}}},ZS=Number.MAX_SAFE_INTEGER||9007199254740991;En.registerModule("focus",(0,Nt.A)((0,Nt.A)({},_x),{extenders:(0,Nt.A)((0,Nt.A)({},_x.extenders),{controllers:(0,Nt.A)((0,Nt.A)({},_x.extenders.controllers),{data:V=>class extends(_x.extenders.controllers.data(V)){changeRowExpand(e,t){return this.option("focusedRowEnabled")&&Array.isArray(e)&&this.isRowExpanded(e)&&(!t||!this._keyboardNavigationController.isKeyboardEnabled())&&this._isFocusedRowInsideGroup(e)&&this.option("focusedRowKey",e),super.changeRowExpand(e,t)}_isFocusedRowInsideGroup(e){var t=this.option("focusedRowKey"),n=this.getRowIndexByKey(t),p=n>=0&&this.getVisibleRows()[n],P=this._columnsController.getGroupDataSourceParameters(!0);if(p)for(var J=0;J<e.length;++J)if((0,aa.Hz)(P[J]&&P[J].selector)(p.data)!==e[J])return!1;return!0}_getGroupPath(e,t){for(var n=[],p=[e];p&&p[0]&&t;){var P=p[0];void 0!==P.key&&n.push(P.key),p=P.items,t--}return n}_expandGroupByPath(e,t,n){var p=new xe.cY;return n++,e.expandRow(t.slice(0,n)).done(()=>{n===t.length?p.resolve():e._expandGroupByPath(e,t,n).done(p.resolve).fail(p.reject)}).fail(p.reject),p.promise()}_calculateGlobalRowIndexByGroupedData(e){var t=this,n=t._dataSource,p=t._generateFilterByKey(e),P=new xe.cY,J=Array.isArray(e),fe=n.group();return J?P.resolve(-1).promise():n._grouping._updatePagingOptions?(n.load({filter:t._concatWithCombinedFilter(p),group:fe}).done(ke=>{if(!ke||0===ke.length||!(0,m.O9)(ke[0].key)||-1===ke[0].key)return P.resolve(-1).promise();var Ue=t._getGroupPath(ke[0],fe.length);t._expandGroupByPath(t,Ue,0).done(()=>{t._calculateExpandedRowGlobalIndex(P,e,Ue,fe)}).fail(P.reject)}).fail(P.reject),P.promise()):(t._calculateGlobalRowIndexByFlatData(e,null,!0).done(P.resolve).fail(P.reject),P)}_calculateExpandedRowGlobalIndex(e,t,n,p){var Ze,P=rh(n,{group:p}),J=this._dataSource,fe=this.option("scrolling.mode"),ke="virtual"===fe||"infinite"===fe,Ue=J.pageSize();J._grouping._updatePagingOptions({skip:0,take:ZS},(Ft,vi)=>{(0,s.RL)(Ft.path,n)&&(Ze=vi)}),this._calculateGlobalRowIndexByFlatData(t,P).done(Ft=>{var vi,Li;Ft<0?e.resolve(-1):(vi=(Ze%Ue||Ue)+Ft-n.length,Li=ke?0:Math.floor(vi/(Ue-n.length))*n.length,e.resolve(vi=Ze+Ft+Li))}).fail(e.reject)}}})})}));var w1,Qb,eD=D(38365),tD=D(67465),iD=D(99639),C1=(0,Ie.zk)(),i_="dxDraggable",rD=(0,h.b4)(Om.ni,i_),aD=(0,h.b4)(Om.Cy,i_),BE=(0,h.b4)(Om._N,i_),NE=(0,h.b4)(Om.Ve,i_),VE=(0,h.b4)(Om.qG,i_),HE=(0,h.b4)(pe.A.down,i_),oD=(0,h.b4)("keydown",i_),S1=V=>({x:V.pageX-(0,j.A)(C1).scrollLeft(),y:V.pageY-(0,j.A)(C1).scrollTop()});class lD{constructor(e,t){this._$scrollableAtPointer=null,this._preventScroll=!0,this._component=t,"vertical"===e?(this._scrollValue="scrollTop",this._overFlowAttr="overflowY",this._sizeAttr="height",this._scrollSizeProp="scrollHeight",this._clientSizeProp="clientHeight",this._limitProps={start:"top",end:"bottom"}):(this._scrollValue="scrollLeft",this._overFlowAttr="overflowX",this._sizeAttr="width",this._scrollSizeProp="scrollWidth",this._clientSizeProp="clientWidth",this._limitProps={start:"left",end:"right"})}updateScrollable(e,t){var n=!1;e.some(p=>{var P=(0,j.A)(p),J=P.hasClass("dx-overlay-wrapper"),fe=P.hasClass("dx-overlay-content");return!(!J&&!fe)||(n=this._trySetScrollable(p,t))}),n||(this._$scrollableAtPointer=null,this._scrollSpeed=0)}isScrolling(){return!!this._scrollSpeed}isScrollable(e){return("auto"===e.css(this._overFlowAttr)||e.hasClass("dx-scrollable-container"))&&e.prop(this._scrollSizeProp)>Math.ceil("width"===this._sizeAttr?(0,R.RG)(e):(0,R.Oq)(e))}_trySetScrollable(e,t){var p,n=(0,j.A)(e),P=this._component.option("scrollSensitivity"),J=this.isScrollable(n);return J&&(P>(p=this._calculateDistanceToBorders(n,t))[this._limitProps.start]?this._preventScroll||(this._scrollSpeed=-this._calculateScrollSpeed(p[this._limitProps.start]),this._$scrollableAtPointer=n):P>p[this._limitProps.end]?this._preventScroll||(this._scrollSpeed=this._calculateScrollSpeed(p[this._limitProps.end]),this._$scrollableAtPointer=n):(J=!1,this._preventScroll=!1)),J}_calculateDistanceToBorders(e,t){var p,n=e.get(0);return n?(p=(0,ge.N)(n),{left:t.x-p.left,top:t.y-p.top,right:p.right-t.x,bottom:p.bottom-t.y}):{}}_calculateScrollSpeed(e){var t=this._component,n=t.option("scrollSensitivity"),p=t.option("scrollSpeed");return Math.ceil(((n-e)/n)**2*p)}scrollByStep(){if(this._$scrollableAtPointer&&this._scrollSpeed){if(this._$scrollableAtPointer.hasClass("dx-scrollable-container")){var e=this._$scrollableAtPointer.closest(".dx-scrollable"),t=e.data("dxScrollable")||e.data("dxScrollView");if(t){var n=t.scrollOffset()[this._limitProps.start]+this._scrollSpeed;t.scrollTo({[this._limitProps.start]:n})}}else{var p=this._$scrollableAtPointer[this._scrollValue]()+this._scrollSpeed;this._$scrollableAtPointer[this._scrollValue](p)}var P=this._component._dragMoveArgs;P&&this._component._dragMoveHandler(P)}}reset(){this._$scrollableAtPointer=null,this._scrollSpeed=0,this._preventScroll=!0}isOutsideScrollable(e,t){if(!e)return!1;var n=(0,ge.N)(e.get(0)),p=n[this._limitProps.start],P=n[this._sizeAttr],J=S1(t),fe="width"===this._sizeAttr?J.x:J.y;return fe<p||fe>p+P}}var dD=iD.A.inherit({ctor(V){this.callBase(),this._strategy=V},_step(){var V=this._strategy._horizontalScrollHelper,e=this._strategy._verticalScrollHelper;V&&V.scrollByStep(),e&&e.scrollByStep()}}),D1=eD.A.inherit({reset:s.lQ,dragMove:s.lQ,dragEnter:s.lQ,dragLeave:s.lQ,dragEnd(V){return this._getSourceDraggable()._fireRemoveEvent(V),(0,xe.cY)().resolve()},_fireRemoveEvent:s.lQ,_getDefaultOptions(){return(0,o.X)(this.callBase(),{onDragStart:null,onDragMove:null,onDragEnd:null,onDragEnter:null,onDragLeave:null,onDragCancel:null,onCancelByEsc:!1,onDrop:null,immediate:!0,dragDirection:"both",boundary:void 0,boundOffset:0,allowMoveByClick:!1,itemData:null,container:void 0,dragTemplate:void 0,contentTemplate:"content",handle:"",filter:"",clone:!1,autoScroll:!0,scrollSpeed:30,scrollSensitivity:60,group:void 0,data:void 0})},_setOptionsByReference(){this.callBase.apply(this,arguments),(0,o.X)(this._optionsByReference,{component:!0,group:!0,itemData:!0,data:!0})},_init(){this.callBase(),this._attachEventHandlers(),this._scrollAnimator=new dD(this),this._horizontalScrollHelper=new lD("horizontal",this),this._verticalScrollHelper=new lD("vertical",this),this._initScrollTop=0,this._initScrollLeft=0},_normalizeCursorOffset:V=>((0,m.Gv)(V)&&(V={h:V.x,v:V.y}),{left:(V=(0,s.T6)(V).map(e=>parseFloat(e)))[0],top:1===V.length?V[0]:V[1]}),_getNormalizedCursorOffset(V,e){return(0,m.Tn)(V)&&(V=V.call(this,e)),this._normalizeCursorOffset(V)},_calculateElementOffset(V){var e,t,{event:n}=V,p=(0,j.A)(V.itemElement),P=(0,j.A)(V.dragElement),J=this._dragElementIsCloned(),fe=this.option("cursorOffset"),ke={left:0,top:0},Ue=this._initialLocate=(0,R_.x5)(P);return(J||V.initialOffset||fe)&&(e=V.initialOffset||p.offset(),fe&&(ke=this._getNormalizedCursorOffset(fe,V),isFinite(ke.left)&&(e.left=n.pageX),isFinite(ke.top)&&(e.top=n.pageY)),t=P.offset(),e.top-=t.top+(ke.top||0)-Ue.top,e.left-=t.left+(ke.left||0)-Ue.left),e},_initPosition(V){var e=(0,j.A)(V.dragElement),t=this._calculateElementOffset(V);t&&this._move(t,e),this._startPosition=(0,R_.x5)(e)},_startAnimator(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator(){this._scrollAnimator.stop()},_addWidgetPrefix(V){return(0,Fa._k)(this.NAME)+(V?"-".concat(V):"")},_getItemsSelector(){return this.option("filter")||""},_$content(){var V=this.$element(),e=V.children(".dx-template-wrapper");return e.length?e:V},_attachEventHandlers(){if(!this.option("disabled")){var V=this._$content(),e=this._getItemsSelector(),t=this.option("allowMoveByClick"),n={direction:this.option("dragDirection"),immediate:this.option("immediate"),checkDropTarget:(p,P)=>{var J=this.option("group"),fe=this._getSourceDraggable().option("group"),ke=this._getScrollable(p);return!this._verticalScrollHelper.isOutsideScrollable(ke,P)&&!this._horizontalScrollHelper.isOutsideScrollable(ke,P)&&fe&&fe===J}};t&&(V=this._getArea(),_.A.on(V,HE,n,this._pointerDownHandler.bind(this))),">"===e[0]&&(e=e.slice(1)),_.A.on(V,rD,e,n,this._dragStartHandler.bind(this)),_.A.on(V,aD,n,this._dragMoveHandler.bind(this)),_.A.on(V,BE,n,this._dragEndHandler.bind(this)),_.A.on(V,NE,n,this._dragEnterHandler.bind(this)),_.A.on(V,VE,n,this._dragLeaveHandler.bind(this)),this.option("onCancelByEsc")&&_.A.on(V,oD,this._keydownHandler.bind(this))}},_dragElementIsCloned(){return this._$dragElement&&this._$dragElement.hasClass(this._addWidgetPrefix("clone"))},_getDragTemplateArgs(V,e){return{container:(0,z.c)(e),model:{itemData:this.option("itemData"),itemElement:(0,z.c)(V)}}},_createDragElement(V){var e=V,t=this.option("clone"),n=this._getContainer(),p=this.option("dragTemplate");return p?(p=this._getTemplate(p),e=(0,j.A)("<div>").appendTo(n),p.render(this._getDragTemplateArgs(V,e))):t&&(e=(0,j.A)("<div>").appendTo(n),V.clone().css({width:V.css("width"),height:V.css("height")}).appendTo(e)),e.toggleClass(this._addWidgetPrefix("clone"),e.get(0)!==V.get(0)).toggleClass("dx-rtl",this.option("rtlEnabled"))},_resetDragElement(){this._dragElementIsCloned()?this._$dragElement.remove():this._toggleDraggingClass(!1),this._$dragElement=null},_resetSourceElement(){this._toggleDragSourceClass(!1),this._$sourceElement=null},_detachEventHandlers(){_.A.off(this._$content(),".".concat(i_)),_.A.off(this._getArea(),".".concat(i_))},_move(V,e){(0,R_.Cy)(e||this._$dragElement,V)},_getDraggableElement(V){var e=this._getSourceElement();if(e)return e;if(this.option("allowMoveByClick"))return this.$element();var n=(0,j.A)(V&&V.target),p=this._getItemsSelector();if(">"===p[0]){var P=this._$content().find(p);P.is(n)||(n=n.closest(P))}return n},_getSourceElement(){return this._getSourceDraggable()._$sourceElement},_pointerDownHandler(V){if(!(0,h.eT)(V)){var e={},t=this.$element(),n=this.option("dragDirection");("horizontal"===n||"both"===n)&&(e.left=V.pageX-t.offset().left+(0,R_.x5)(t).left-(0,R.RG)(t)/2),("vertical"===n||"both"===n)&&(e.top=V.pageY-t.offset().top+(0,R_.x5)(t).top-(0,R.Oq)(t)/2),this._move(e,t),this._getAction("onDragMove")(this._getEventArgs(V))}},_isValidElement(V,e){var t=this.option("handle"),n=(0,j.A)(V.originalEvent&&V.originalEvent.target);return!(t&&!n.closest(t).length||!e.length||e.is(".dx-state-disabled, .dx-state-disabled *"))},_dragStartHandler(V){var e=this._getDraggableElement(V);if(this.dragInProgress=!0,this._isValidElement(V,e)){if(!this._$sourceElement){var t=this._getDragStartArgs(V,e);if(this._getAction("onDragStart")(t),t.cancel)return void(V.cancel=!0);this.option("itemData",t.itemData),this._setSourceDraggable(),this._$sourceElement=e;var n=e.offset();!this._hasClonedDraggable()&&this.option("autoScroll")&&(this._initScrollTop=this._getScrollableScrollTop(),this._initScrollLeft=this._getScrollableScrollLeft(),n=this._getDraggableElementOffset(n.left,n.top));var p=this._$dragElement=this._createDragElement(e);this._toggleDraggingClass(!0),this._toggleDragSourceClass(!0),this._setGestureCoverCursor(p.children());var P="fixed"===p.css("position");this._initPosition((0,o.X)({},t,{dragElement:p.get(0),initialOffset:P&&n})),this._getAction("onDraggableElementShown")((0,Nt.A)((0,Nt.A)({},t),{dragElement:p}));var J=this._getArea(),fe=this._getAreaOffset(J),ke=this._getBoundOffset(),Ue=(0,R.Ot)(J),Ze=(0,R.P$)(J),Ft=(0,R.RG)(p),vi=(0,R.Oq)(p),Li=p.offset().left-fe.left,tn=p.offset().top-fe.top;J.length&&(V.maxLeftOffset=Li-ke.left,V.maxRightOffset=Ue-Li-Ft-ke.right,V.maxTopOffset=tn-ke.top,V.maxBottomOffset=Ze-tn-vi-ke.bottom),this.option("autoScroll")&&this._startAnimator()}}else V.cancel=!0},_getAreaOffset:V=>V&&Da.A.offset(V)||{left:0,top:0},_toggleDraggingClass(V){this._$dragElement&&this._$dragElement.toggleClass(this._addWidgetPrefix("dragging"),V)},_toggleDragSourceClass(V,e){var t=e||this._$sourceElement;t&&t.toggleClass(this._addWidgetPrefix("source"),V)},_setGestureCoverCursor(V){(0,j.A)(".".concat("dx-gesture-cover")).css("cursor",V.css("cursor"))},_getBoundOffset(){var V=this.option("boundOffset");return(0,m.Tn)(V)&&(V=V.call(this)),(0,wo.oN)(V)},_getArea(){var V=this.option("boundary");return(0,m.Tn)(V)&&(V=V.call(this)),(0,j.A)(V)},_getContainer(){var V=this.option("container");return void 0===V&&(V=(0,Mh.Uq)()),(0,j.A)(V)},_getDraggableElementOffset(V,e){var t,n,p,P,J=this._initScrollTop,fe=this._initScrollLeft,ke=this._getScrollableScrollTop(),Ue=this._getScrollableScrollLeft(),Ze=(0,j.A)(this.element()).css("position"),vi={left:(null!==(n=null===(t=this._startPosition)||void 0===t?void 0:t.left)&&void 0!==n?n:0)+V,top:(null!==(P=null===(p=this._startPosition)||void 0===p?void 0:p.top)&&void 0!==P?P:0)+e};return"fixed"===Ze||this._hasClonedDraggable()?vi:{left:(0,m.kf)(Ue)?vi.left+Ue-fe:vi.left,top:(0,m.kf)(ke)?vi.top+ke-J:vi.top}},_hasClonedDraggable(){return this.option("clone")||this.option("dragTemplate")},_dragMoveHandler(V){if(this._dragMoveArgs=V,this._$dragElement){var e=this._getDraggableElementOffset(V.offset.x,V.offset.y);this._move(e),this._updateScrollable(V);var t=this._getEventArgs(V);this._getAction("onDragMove")(t),!0!==t.cancel&&this._getTargetDraggable().dragMove(V,scrollBy)}else V.cancel=!0},_updateScrollable(V){if(this.option("autoScroll")){var e=S1(V),t=L.A.elementsFromPoint(e.x,e.y,this.$element().get(0));this._verticalScrollHelper.updateScrollable(t,e),this._horizontalScrollHelper.updateScrollable(t,e)}},_getScrollable(V){var e;return V.parents().toArray().some(t=>{var n=(0,j.A)(t);return!(!this._horizontalScrollHelper.isScrollable(n)&&!this._verticalScrollHelper.isScrollable(n)||(e=n,0))}),e},_getScrollableScrollTop(){var V,e;return null!==(e=null===(V=this._getScrollable((0,j.A)(this.element())))||void 0===V?void 0:V.scrollTop())&&void 0!==e?e:0},_getScrollableScrollLeft(){var V,e;return null!==(e=null===(V=this._getScrollable((0,j.A)(this.element())))||void 0===V?void 0:V.scrollLeft())&&void 0!==e?e:0},_defaultActionArgs(){var V=this.callBase.apply(this,arguments),e=this.option("component");return e&&(V.component=e,V.element=e.element()),V},_getEventArgs(V){var e=this._getSourceDraggable(),t=this._getTargetDraggable();return{event:V,itemData:e.option("itemData"),itemElement:(0,z.c)(e._$sourceElement),fromComponent:e.option("component")||e,toComponent:t.option("component")||t,fromData:e.option("data"),toData:t.option("data")}},_getDragStartArgs(V,e){var t=this._getEventArgs(V);return{event:t.event,itemData:t.itemData,itemElement:e,fromData:t.fromData}},_revertItemToInitialPosition(){!this._dragElementIsCloned()&&this._move(this._initialLocate,this._$sourceElement)},_dragEndHandler(V){var e=(0,xe.cY)(),t=this._getEventArgs(V),n=this._getEventArgs(V),p=this._getTargetDraggable(),P=!0;this.dragInProgress=!1;try{this._getAction("onDragEnd")(t)}finally{(0,xe.z7)((0,xe.Sx)(t.cancel)).done(J=>{if(!J&&(p!==this&&p._getAction("onDrop")(n),!n.cancel))return P=!1,void(0,xe.z7)((0,xe.Sx)(p.dragEnd(t))).always(e.resolve);e.resolve()}).fail(e.resolve),e.done(()=>{P&&this._revertItemToInitialPosition(),this._resetDragOptions(p)})}},_isTargetOverAnotherDraggable(V){var e=this._getSourceDraggable();if(this===e)return!1;var t=e._$dragElement,n=e.$element(),p=this.$element(),P=S1(V),fe=L.A.elementsFromPoint(P.x,P.y,this.element()).filter(Ft=>{var vi=(0,j.A)(Ft);return!!vi.hasClass(this._addWidgetPrefix())&&!vi.closest(t).length})[0],ke=this._getSourceElement(),Ue=fe===n.get(0),Ze=(0,j.A)(fe).closest(ke).length;return!fe||fe===p.get(0)&&!Ue&&!Ze},_dragEnterHandler(V){this._fireDragEnterEvent(V),this._isTargetOverAnotherDraggable(V)&&this._setTargetDraggable(),this._getSourceDraggable().dragEnter(V)},_dragLeaveHandler(V){this._fireDragLeaveEvent(V),this._resetTargetDraggable(),this!==this._getSourceDraggable()&&this.reset(),this._getSourceDraggable().dragLeave(V)},_keydownHandler(V){this.dragInProgress&&"Escape"===V.key&&this._keydownEscapeHandler(V)},_keydownEscapeHandler(V){if(this._getSourceElement()){var t=this._getEventArgs(V);if(this._getAction("onDragCancel")(t),!t.cancel){this.dragInProgress=!1,Qb?._toggleDraggingClass(!1),this._detachEventHandlers(),this._revertItemToInitialPosition();var n=this._getTargetDraggable();this._resetDragOptions(n),this._attachEventHandlers()}}},_getAction(V){return this["_".concat(V,"Action")]||this._createActionByOption(V)},_getAnonymousTemplateName:()=>"content",_initTemplates(){this.option("contentTemplate")&&(this._templateManager.addDefaultTemplates({content:new tD.A}),this.callBase.apply(this,arguments))},_render(){this.callBase(),this.$element().addClass(this._addWidgetPrefix());var V=this._templateManager.anonymousTemplateName===this.option("contentTemplate"),e=this._getTemplateByOption("contentTemplate");e&&(0,j.A)(e.render({container:this.element(),transclude:V}))},_optionChanged(V){var{name:e}=V;switch(e){case"onDragStart":case"onDragMove":case"onDragEnd":case"onDrop":case"onDragEnter":case"onDragLeave":case"onDragCancel":case"onDraggableElementShown":this["_".concat(e,"Action")]=this._createActionByOption(e);break;case"dragTemplate":case"contentTemplate":case"container":case"clone":case"scrollSensitivity":case"scrollSpeed":case"boundOffset":case"handle":case"group":case"data":case"itemData":break;case"allowMoveByClick":case"dragDirection":case"disabled":case"boundary":case"filter":case"immediate":this._resetDragElement(),this._detachEventHandlers(),this._attachEventHandlers();break;case"onCancelByEsc":this._keydownHandler();break;case"autoScroll":this._verticalScrollHelper.reset(),this._horizontalScrollHelper.reset();break;default:this.callBase(V)}},_getTargetDraggable(){return w1||this},_getSourceDraggable(){return Qb||this},_setTargetDraggable(){var V=this.option("group"),e=this._getSourceDraggable();V&&V===e.option("group")&&(w1=this)},_setSourceDraggable(){Qb=this},_resetSourceDraggable(){Qb=null},_resetTargetDraggable(){w1=null},_resetDragOptions(V){this.reset(),V.reset(),this._stopAnimator(),this._horizontalScrollHelper.reset(),this._verticalScrollHelper.reset(),this._resetDragElement(),this._resetSourceElement(),this._resetTargetDraggable(),this._resetSourceDraggable()},_dispose(){this.callBase(),this._detachEventHandlers(),this._resetDragElement(),this._resetTargetDraggable(),this._resetSourceDraggable(),this._$sourceElement=null,this._stopAnimator()},_fireDragEnterEvent(V){var e=this._getEventArgs(V);this._getAction("onDragEnter")(e)},_fireDragLeaveEvent(V){var e=this._getEventArgs(V);this._getAction("onDragLeave")(e)}});(0,gn.A)(i_,D1);const cD=D1;var E1=(0,Ie.zk)(),M1="placeholder",O1=V=>(0,j.A)(V).is(":visible"),pD=(V,e)=>{var t,n;if(V){var p=(null===(t=e.to)||void 0===t?void 0:t.left)||0,P=(null===(n=e.to)||void 0===n?void 0:n.top)||0;V.style.transform="translate(".concat(p,"px,").concat(P,"px)"),V.style.transition=Tr.A.off?"":"transform ".concat(e.duration,"ms ").concat(e.easing)}},fD=V=>{V&&(V.style.transform="",V.style.transition="")},gD=cD.inherit({_init(){this.callBase(),this._sourceScrollHandler=this._handleSourceScroll.bind(this),this._sourceScrollableInfo=null},_getDefaultOptions(){return(0,o.X)(this.callBase(),{clone:!0,filter:"> *",itemOrientation:"vertical",dropFeedbackMode:"push",allowDropInsideItem:!1,allowReordering:!0,moveItemOnDrop:!1,onDragChange:null,onAdd:null,onRemove:null,onReorder:null,onPlaceholderPrepared:null,animation:{type:"slide",duration:300,easing:"ease"},fromIndex:null,toIndex:null,dropInsideItem:!1,itemPoints:null,fromIndexOffset:0,offset:0,autoUpdate:!1,draggableElementSize:0})},reset(){this.option({dropInsideItem:!1,toIndex:null,fromIndex:null,itemPoints:null,fromIndexOffset:0,draggableElementSize:0}),this._$placeholderElement&&this._$placeholderElement.remove(),this._$placeholderElement=null,!this._isIndicateMode()&&this._$modifiedItem&&(this._$modifiedItem.css("marginBottom",this._modifiedItemMargin),this._$modifiedItem=null)},_getPrevVisibleItem:(V,e)=>V.slice(0,e).reverse().filter(O1)[0],_dragStartHandler(V){if(this.callBase.apply(this,arguments),!0!==V.cancel){var e=this._getSourceElement();this._updateItemPoints(),this._subscribeToSourceScroll(V),this.option("fromIndex",this._getElementIndex(e)),this.option("fromIndexOffset",this.option("offset"))}},_subscribeToSourceScroll(V){var e=this._getScrollable((0,j.A)(V.target));e&&(this._sourceScrollableInfo={element:e,scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop()},_.A.off(e,"scroll",this._sourceScrollHandler),_.A.on(e,"scroll",this._sourceScrollHandler))},_unsubscribeFromSourceScroll(){this._sourceScrollableInfo&&(_.A.off(this._sourceScrollableInfo.element,"scroll",this._sourceScrollHandler),this._sourceScrollableInfo=null)},_handleSourceScroll(V){var e=this._sourceScrollableInfo;e&&["scrollLeft","scrollTop"].forEach(t=>{V.target[t]!==e[t]&&(this._correctItemPoints(V.target[t]-e[t]),this._movePlaceholder(),e[t]=V.target[t])})},_dragEnterHandler(V){if(this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&(this._subscribeToSourceScroll(V),this._updateItemPoints(),this.option("fromIndex",-1),!this._isIndicateMode())){var e=this.option("itemPoints"),t=e[e.length-1];if(t){var n=this.$element(),p=this._getSourceElement(),P=this._isVerticalOrientation(),J=P?(0,R.P$)(p,!0):(0,R.Ot)(p,!0),fe=n.get(0)[P?"scrollHeight":"scrollWidth"],ke=n.get(0)[P?"scrollTop":"scrollLeft"],Ue=P?"top":"left",Ze=t[Ue],vi=n.offset()[Ue]+fe-ke-Ze;if(vi<J&&P){var Li=this._getItems(),tn=(0,j.A)(this._getPrevVisibleItem(Li));this._$modifiedItem=tn,this._modifiedItemMargin=tn.get(0).style.marginBottom,tn.css("marginBottom",J-vi);var On=tn.closest(".dx-sortable"),Qn=On.data("dxScrollable")||On.data("dxScrollView");Qn&&Qn.update()}}}},_dragLeaveHandler(){this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&this._unsubscribeFromSourceScroll()},dragEnter(){this!==this._getTargetDraggable()&&this.option("toIndex",-1)},dragLeave(){this!==this._getTargetDraggable()&&this.option("toIndex",this.option("fromIndex"))},_allowDrop(V){var t=this._getTargetDraggable().$element(),n=this._getScrollable(t);if(n){var{left:p,right:P,top:J,bottom:fe}=function mD(V){var e=V.offset(),{style:t}=V[0],n=parseFloat(t.paddingLeft)||0,p=parseFloat(t.paddingRight)||0,P=parseFloat(t.paddingTop)||0,J=V[0].clientWidth-(n+p),fe=(0,R.Oq)(V),ke=e.left+n,Ue=e.top+P;return{left:ke,right:ke+J,top:Ue,bottom:Ue+fe}}(n),ke=this.option("toIndex"),Ue=this.option("itemPoints"),Ze=Ue?.filter(vi=>vi.index===ke)[0];if(Ze&&void 0!==Ze.top)return this._isVerticalOrientation()?J<=Math.ceil(Ze.top)&&Math.floor(Ze.top)<=fe:p<=Math.ceil(Ze.left)&&Math.floor(Ze.left)<=P}return!0},dragEnd(V){this._unsubscribeFromSourceScroll();var fe,ke,e=this._getSourceElement(),t=this._getSourceDraggable(),n=t.NAME!==this.NAME,p=this.option("toIndex"),{event:P}=V,J=this._allowDrop(P);return null!==p&&p>=0&&J&&(t!==this&&((fe=this._fireAddEvent(P))||(ke=this._fireRemoveEvent(P))),n&&(0,R_.fw)(e),this.option("moveItemOnDrop")&&!fe&&this._moveItem(e,p,ke),t===this)?this._fireReorderEvent(P):(0,xe.cY)().resolve()},dragMove(V){var e=this.option("itemPoints");if(e){for(var J,t=this._isVerticalOrientation(),n=t?"top":"left",p=t?V.pageY:V.pageX,P=this.option("rtlEnabled"),fe=e.length-1;fe>=0;fe--){var ke=e[fe+1]&&(e[fe][n]+e[fe+1][n])/2;if(!(!t&&P?p>ke:ke>p)&&void 0!==ke)break;J=e[fe]}J&&(this._updatePlaceholderPosition(V,J),this._verticalScrollHelper.isScrolling()&&this._isIndicateMode()&&this._movePlaceholder())}},_isIndicateMode(){return"indicate"===this.option("dropFeedbackMode")||this.option("allowDropInsideItem")},_createPlaceholder(){var V;return this._isIndicateMode()&&(V=(0,j.A)("<div>").addClass(this._addWidgetPrefix(M1)).insertBefore(this._getSourceDraggable()._$dragElement)),this._$placeholderElement=V,V},_getItems(){var V=this._getItemsSelector();return this._$content().find(V).not(".".concat(this._addWidgetPrefix(M1))).not(".".concat(this._addWidgetPrefix("clone"))).toArray()},_allowReordering(){return this._getSourceDraggable()!==this._getTargetDraggable()||this.option("allowReordering")},_isValidPoint(V,e,t){var n=this.option("allowDropInsideItem");return!!(t||this._allowReordering()||0===V&&n)&&(!this._isIndicateMode()||-1===e||V!==e&&(t||V!==e+1))},_getItemPoints(){var e,t,n,V=[],p=this.option("rtlEnabled"),P=this._isVerticalOrientation(),J=this._getItems(),fe=J.filter(O1),ke=fe.length,Ue=this._getDraggableElement(),Ze=fe.indexOf(Ue.get(0));if(ke){for(var Ft=0;Ft<=ke;Ft++){var vi=!P&&p^Ft===ke,Li=P&&Ft===ke;Ft<ke&&(t=(e=(0,j.A)(fe[Ft])).offset(),n=(0,R.Ot)(e)),V.push({dropInsideItem:!1,left:t.left+(vi?n:0),top:t.top+(Li?V[Ft-1].height:0),index:Ft===ke?J.length:J.indexOf(e.get(0)),$item:e,width:(0,R.Ot)(e),height:(0,R.P$)(e),isValid:this._isValidPoint(Ft,Ze)})}if(this.option("allowDropInsideItem")){var tn=V;V=[];for(var On=0;On<tn.length;On++)V.push(tn[On]),tn[On+1]&&V.push((0,o.X)({},tn[On],{dropInsideItem:!0,top:Math.floor((tn[On].top+tn[On+1].top)/2),left:Math.floor((tn[On].left+tn[On+1].left)/2),isValid:this._isValidPoint(On,Ze,!0)}))}}else V.push({dropInsideItem:!1,index:0,isValid:!0});return V},_updateItemPoints(V){(V||this.option("autoUpdate")||!this.option("itemPoints"))&&this.option("itemPoints",this._getItemPoints())},_correctItemPoints(V){var e=this.option("itemPoints");if(V&&e&&!this.option("autoUpdate")){var n=this._isVerticalOrientation()?"top":"left";e.forEach(p=>{p[n]-=V})}},_getElementIndex(V){return this._getItems().indexOf(V.get(0))},_getDragTemplateArgs(V){var e=this.callBase.apply(this,arguments);return e.model.fromIndex=this._getElementIndex(V),e},_togglePlaceholder(V){this._$placeholderElement&&this._$placeholderElement.toggle(V)},_isVerticalOrientation(){return"vertical"===this.option("itemOrientation")},_normalizeToIndex(V,e){var t=this._getSourceDraggable()!==this._getTargetDraggable(),n=this._getActualFromIndex();return null===V?n:Math.max(t||n>=V||e?V:V-1,0)},_updatePlaceholderPosition(V,e){var t=this._getSourceDraggable(),n=this._normalizeToIndex(e.index,e.dropInsideItem),p=(0,o.X)(this._getEventArgs(V),{toIndex:n,dropInsideItem:e.dropInsideItem});e.isValid&&this._getAction("onDragChange")(p),!p.cancel&&e.isValid?(this.option({dropInsideItem:e.dropInsideItem,toIndex:e.index}),this._getAction("onPlaceholderPrepared")((0,o.X)(this._getEventArgs(V),{placeholderElement:(0,z.c)(this._$placeholderElement),dragElement:(0,z.c)(t._$dragElement)})),this._updateItemPoints()):e.isValid||this.option({dropInsideItem:!1,toIndex:null})},_makeWidthCorrection(V,e){if(this._$scrollable=this._getScrollable(V),this._$scrollable){var t=(0,R.RG)(this._$scrollable),n=this._$scrollable.offset().left-V.offset().left,p=(0,R.Ot)(V)-n-t;n>0&&(e-=n),p>0&&(e-=p)}return e},_updatePlaceholderSizes(V,e){var t=this.option("dropInsideItem"),n=(0,j.A)(e),p=this._isVerticalOrientation(),P="",J="";V.toggleClass(this._addWidgetPrefix("placeholder-inside"),t),(p||t)&&(P=(0,R.Ot)(n)),(!p||t)&&(J=(0,R.P$)(n)),P=this._makeWidthCorrection(n,P),V.css({width:P,height:J})},_moveItem(V,e,t){var n,p=this._getItems(),P=p[e],J=this._getSourceDraggable();t&&(V=V.clone(),J._toggleDragSourceClass(!1,V)),P||(n=p[e-1]),this._moveItemCore(V,P,n)},_moveItemCore(V,e,t){e||t?t?V.insertAfter((0,j.A)(t)):V.insertBefore((0,j.A)(e)):V.appendTo(this.$element())},_getDragStartArgs(V,e){return(0,o.X)(this.callBase.apply(this,arguments),{fromIndex:this._getElementIndex(e)})},_getEventArgs(V){var e=this._getSourceDraggable(),t=this._getTargetDraggable(),n=t.option("dropInsideItem");return(0,o.X)(this.callBase.apply(this,arguments),{fromIndex:e.option("fromIndex"),toIndex:this._normalizeToIndex(t.option("toIndex"),n),dropInsideItem:n})},_optionChanged(V){var{name:e}=V;switch(e){case"onDragChange":case"onPlaceholderPrepared":case"onAdd":case"onRemove":case"onReorder":this["_".concat(e,"Action")]=this._createActionByOption(e);break;case"itemOrientation":case"allowDropInsideItem":case"moveItemOnDrop":case"dropFeedbackMode":case"itemPoints":case"animation":case"allowReordering":case"fromIndexOffset":case"offset":case"draggableElementSize":case"autoUpdate":break;case"fromIndex":[!1,!0].forEach(t=>{var n=t?V.value:V.previousValue;if(null!==n){var p=(0,j.A)(this._getItems()[n]);this._toggleDragSourceClass(t,p)}});break;case"dropInsideItem":this._optionChangedDropInsideItem(V);break;case"toIndex":this._optionChangedToIndex(V);break;default:this.callBase(V)}},_optionChangedDropInsideItem(){this._isIndicateMode()&&this._$placeholderElement&&this._movePlaceholder()},_isPositionVisible(V){var t,e=this.$element();if("hidden"!==e.css("overflow")?t=e.get(0):e.parents().each(function(){if("visible"!==(0,j.A)(this).css("overflow"))return t=this,!1}),t){var n=(0,ge.N)(t),p=this._isVerticalOrientation(),P=p?"top":"left",fe=p?E1.pageYOffset:E1.pageXOffset;if(V[P]<n[P]+fe||V[P]>n[p?"bottom":"right"]+fe)return!1}return!0},_optionChangedToIndex(V){var e=V.value;if(this._isIndicateMode()){var t=null!==e&&e>=0;this._togglePlaceholder(t),t&&this._movePlaceholder()}else this._moveItems(V.previousValue,V.value,V.fullUpdate)},update(){if(null!==this.option("fromIndex")||null!==this.option("toIndex")){this._updateItemPoints(!0),this._updateDragSourceClass();var V=this.option("toIndex");this._optionChangedToIndex({value:V,fullUpdate:!0})}},_updateDragSourceClass(){var V=this._getActualFromIndex(),e=(0,j.A)(this._getItems()[V]);e.length&&(this._$sourceElement=e,this._toggleDragSourceClass(!0,e))},_makeLeftCorrection(V){var e=this._$scrollable;if(e&&this._isVerticalOrientation()){var t=e.offset().left-V;t>0&&(V+=t)}return V},_movePlaceholder(){var V=this._$placeholderElement||this._createPlaceholder();if(V){var e=this._getItems(),t=this.option("toIndex"),n=this._isVerticalOrientation(),p=this.option("rtlEnabled"),P=this.option("dropInsideItem"),J=null,fe=e[t];if(fe){var ke=(0,j.A)(fe);J=ke.offset(),!n&&p&&!P&&(J.left+=(0,R.Ot)(ke,!0))}else{var Ue=fe=this._getPrevVisibleItem(e,t);Ue&&(J=(0,j.A)(Ue).offset(),n?J.top+=(0,R.P$)(Ue,!0):p||(J.left+=(0,R.Ot)(Ue,!0)))}if(this._updatePlaceholderSizes(V,fe),J&&!this._isPositionVisible(J)&&(J=null),J){var Ze=n&&t===e.length,Ft=(0,R.P$)(V);J.left=this._makeLeftCorrection(J.left),J.top=Ze&&J.top>=Ft?J.top-Ft:J.top,this._move(J,V)}V.toggle(!!J)}},_getPositions(V,e,t,n){for(var p=[],P=0;P<V.length;P++){var J=0;null!==n&&null!==t?(-1===t?P>=n&&(J=e):-1===n?P>t&&(J=-e):t<n?P>t&&P<n&&(J=-e):t>n&&P>=n&&P<t&&(J=e),p.push(J)):p.push(J)}return p},_getDraggableElementSize(V){var e=this._getDraggableElement(),t=this.option("draggableElementSize");return t||(t=V?((0,R.P$)(e)+(0,R.P$)(e,!0))/2:((0,R.Ot)(e)+(0,R.Ot)(e,!0))/2,this.option("autoUpdate")||this.option("draggableElementSize",t)),t},_getActualFromIndex(){var{fromIndex:V,fromIndexOffset:e,offset:t}=this.option();return null==V?null:V+e-t},_moveItems(V,e,t){for(var n=this._getActualFromIndex(),p=this._isVerticalOrientation(),P=p?"top":"left",J=this._getDraggableElementSize(p),fe=this._getItems(),ke=this._getPositions(fe,J,n,V),Ue=this._getPositions(fe,J,n,e),Ze=this.option("animation"),Ft=this.option("rtlEnabled"),vi=0;vi<fe.length;vi++){var Li=fe[vi],tn=ke[vi],On=Ue[vi];null===e||null===n?fD(Li):(tn!==On||t&&(0,m.O9)(On))&&pD(Li,(0,o.X)({},Ze,{to:{[P]:!p&&Ft?-On:On}}))}},_toggleDragSourceClass(V,e){var t=e||this._$sourceElement;this.callBase.apply(this,arguments),this._isIndicateMode()||t&&t.toggleClass(this._addWidgetPrefix("source-hidden"),V)},_dispose(){this.reset(),this.callBase()},_fireAddEvent(V){var e=this._getEventArgs(V);return this._getAction("onAdd")(e),e.cancel},_fireRemoveEvent(V){var e=this._getSourceDraggable(),t=this._getEventArgs(V);return e._getAction("onRemove")(t),t.cancel},_fireReorderEvent(V){var e=this._getEventArgs(V);return this._getAction("onReorder")(e),e.promise||(0,xe.cY)().resolve()}});(0,gn.A)("dxSortable",gD);const T1=gD;En.registerModule("rowDragging",{defaultOptions:()=>({rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}),extenders:{views:{rowsView:V=>class extends V{init(){super.init.apply(this,arguments),this._updateHandleColumn()}optionChanged(e){"rowDragging"===e.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),e.handled=!0),super.optionChanged.apply(this,arguments)}_allowReordering(){var e=this.option("rowDragging");return!(!e||!(e.allowReordering||e.allowDropInsideItem||e.group))}_updateHandleColumn(){var e=this.option("rowDragging"),t=this._allowReordering(),n=this._columnsController,p=t&&e.showDragIcons;n?.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",elementAttr:[{name:"dx-drag-cell",value:""}],cssClass:"dx-command-drag",width:"auto",cellTemplate:this._getHandleTemplate(),visible:p}),n?.columnOption("type:drag","visible",p)}_renderContent(){var e=this.option("rowDragging"),t=this._allowReordering(),n=super._renderContent.apply(this,arguments),p=this._isFixedTableRendering,P=p?"_sortableFixed":"_sortable",J=p?"_sortable":"_sortableFixed",fe=Ze=>{var Ft;null===(Ft=this._sortableFixed)||void 0===Ft||Ft.$element().css("pointerEvents",Ze?"auto":"")},ke=".dx-row:not(.dx-freespace-row):not(.dx-virtual-row):not(.dx-header-row):not(.dx-footer-row)",Ue=this.option("dataRowTemplate")?"> table > tbody".concat(ke):"> table > tbody > ".concat(ke);return(t||this[P])&&n.length&&(this[P]=this._createComponent(n,T1,(0,o.X)({component:this.component,contentTemplate:null,filter:Ue,cursorOffset:Ze=>{var{event:Ft}=Ze,vi=(0,j.A)(this.element()).offset();return{x:Ft.pageX-vi.left}},onDraggableElementShown:Ze=>{if(!e.dragTemplate){var vi=(0,j.A)(Ze.dragElement).children(".dx-widget").data(this.component.NAME);this._synchronizeScrollLeftPosition(vi)}},dragTemplate:this._getDraggableRowTemplate(),handle:e.showDragIcons&&".".concat("dx-command-drag"),dropFeedbackMode:"indicate"},e,{onDragStart:Ze=>{var Ft,vi;null===(Ft=this.getController("keyboardNavigation"))||void 0===Ft||Ft._resetFocusedCell();var Li=Ze.component.getVisibleRows()[Ze.fromIndex];Ze.itemData=Li&&Li.data,Ze.cancel=!t||!(Li&&"data"===Li.rowType),null===(vi=e.onDragStart)||void 0===vi||vi.call(e,Ze)},onDragEnter:()=>{fe(!0)},onDragLeave:()=>{fe(!1)},onDragEnd:Ze=>{var Ft;fe(!1),null===(Ft=e.onDragEnd)||void 0===Ft||Ft.call(e,Ze)},onAdd:Ze=>{var Ft;fe(!1),null===(Ft=e.onAdd)||void 0===Ft||Ft.call(e,Ze)},dropFeedbackMode:e.dropFeedbackMode,onOptionChanged:Ze=>{this._sortableFixed&&("fromIndex"===Ze.name||"toIndex"===Ze.name)&&this[J].option(Ze.name,Ze.value)}})),n.toggleClass("dx-scrollable-container",p),n.toggleClass("dx-sortable-without-handle",t&&!e.showDragIcons)),n}_renderCore(e){super._renderCore.apply(this,arguments),e&&"update"===e.changeType&&e.repaintChangesOnly&&Ui.A.isVirtualRowRendering(this)&&(0,s.OX)(()=>{this._updateSortable()})}_updateSortable(){var e=this._dataController.getRowIndexOffset(),t=e-this._previousOffset;[this._sortable,this._sortableFixed].forEach(n=>{var p=n?.option("toIndex");(0,m.O9)(p)&&(0,m.O9)(this._previousOffset)&&n?.option("toIndex",p-t),n?.option("offset",e),n?.update()}),this._previousOffset=e}_resizeCore(){super._resizeCore.apply(this,arguments),this._updateSortable()}_getDraggableGridOptions(e){var t=this.option(),n=this.getColumns(),p=(0,j.A)(this.getRowElement(e.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:"never"},pager:{visible:!1},loadingTimeout:null,columnFixing:t.columnFixing,columnAutoWidth:t.columnAutoWidth,showColumnLines:t.showColumnLines,columns:n.map(P=>({width:P.width||P.visibleWidth,fixed:P.fixed,fixedPosition:P.fixedPosition})),onRowPrepared:P=>{var J=P.component.getView("rowsView");(0,j.A)(P.rowElement).replaceWith(p.eq(J._isFixedTableRendering?1:0).clone())}}}_synchronizeScrollLeftPosition(e){var t=e?.getScrollable();t?.scrollTo({x:this._scrollLeft})}_getDraggableRowTemplate(){return e=>{var t=this.component.$element(),n=(0,j.A)("<div>");(0,R.zj)(n,(0,R.RG)(t));var p=this._dataController.items(),J=this._getDraggableGridOptions(p&&p[e.fromIndex]);return this._createComponent(n,this.component.NAME,J),n.find(".dx-gridbase-container").children(":not(.".concat(this.addWidgetPrefix("rowsview"),")")).hide(),n.addClass(this.addWidgetPrefix("dragview")),n}}_getHandleTemplate(){return(V=>(e,t)=>{var n=(0,j.A)(e);if("data"===t.rowType)return n.addClass("dx-cell-focus-disabled"),(0,j.A)("<span>").addClass(V("drag-icon"));Ui.A.setEmptyText(n)})(e=>this.addWidgetPrefix(e))}}}}});const xD=Pn;var ng=D(87283),ta=D(31837);let CD=(()=>{class V extends ng.ic{constructor(t,n,p,P,J,fe,ke,Ue){super(t,n,p,P,ke,Ue),this._watcherHelper=P,this._idh=J,this._createEventEmitters([{subscribe:"adaptiveDetailRowPreparing",emit:"onAdaptiveDetailRowPreparing"},{subscribe:"cellClick",emit:"onCellClick"},{subscribe:"cellDblClick",emit:"onCellDblClick"},{subscribe:"cellHoverChanged",emit:"onCellHoverChanged"},{subscribe:"cellPrepared",emit:"onCellPrepared"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"contextMenuPreparing",emit:"onContextMenuPreparing"},{subscribe:"dataErrorOccurred",emit:"onDataErrorOccurred"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"editCanceled",emit:"onEditCanceled"},{subscribe:"editCanceling",emit:"onEditCanceling"},{subscribe:"editingStart",emit:"onEditingStart"},{subscribe:"editorPrepared",emit:"onEditorPrepared"},{subscribe:"editorPreparing",emit:"onEditorPreparing"},{subscribe:"exporting",emit:"onExporting"},{subscribe:"focusedCellChanged",emit:"onFocusedCellChanged"},{subscribe:"focusedCellChanging",emit:"onFocusedCellChanging"},{subscribe:"focusedRowChanged",emit:"onFocusedRowChanged"},{subscribe:"focusedRowChanging",emit:"onFocusedRowChanging"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"initNewRow",emit:"onInitNewRow"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"rowClick",emit:"onRowClick"},{subscribe:"rowCollapsed",emit:"onRowCollapsed"},{subscribe:"rowCollapsing",emit:"onRowCollapsing"},{subscribe:"rowDblClick",emit:"onRowDblClick"},{subscribe:"rowExpanded",emit:"onRowExpanded"},{subscribe:"rowExpanding",emit:"onRowExpanding"},{subscribe:"rowInserted",emit:"onRowInserted"},{subscribe:"rowInserting",emit:"onRowInserting"},{subscribe:"rowPrepared",emit:"onRowPrepared"},{subscribe:"rowRemoved",emit:"onRowRemoved"},{subscribe:"rowRemoving",emit:"onRowRemoving"},{subscribe:"rowUpdated",emit:"onRowUpdated"},{subscribe:"rowUpdating",emit:"onRowUpdating"},{subscribe:"rowValidating",emit:"onRowValidating"},{subscribe:"saved",emit:"onSaved"},{subscribe:"saving",emit:"onSaving"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"toolbarPreparing",emit:"onToolbarPreparing"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowColumnReorderingChange"},{emit:"allowColumnResizingChange"},{emit:"autoNavigateToFocusedRowChange"},{emit:"cacheEnabledChange"},{emit:"cellHintEnabledChange"},{emit:"columnAutoWidthChange"},{emit:"columnChooserChange"},{emit:"columnFixingChange"},{emit:"columnHidingEnabledChange"},{emit:"columnMinWidthChange"},{emit:"columnResizingModeChange"},{emit:"columnsChange"},{emit:"columnWidthChange"},{emit:"customizeColumnsChange"},{emit:"dataRowTemplateChange"},{emit:"dataSourceChange"},{emit:"dateSerializationFormatChange"},{emit:"disabledChange"},{emit:"editingChange"},{emit:"elementAttrChange"},{emit:"errorRowEnabledChange"},{emit:"exportChange"},{emit:"filterBuilderChange"},{emit:"filterBuilderPopupChange"},{emit:"filterPanelChange"},{emit:"filterRowChange"},{emit:"filterSyncEnabledChange"},{emit:"filterValueChange"},{emit:"focusedColumnIndexChange"},{emit:"focusedRowEnabledChange"},{emit:"focusedRowIndexChange"},{emit:"focusedRowKeyChange"},{emit:"groupingChange"},{emit:"groupPanelChange"},{emit:"headerFilterChange"},{emit:"heightChange"},{emit:"highlightChangesChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"keyboardNavigationChange"},{emit:"keyExprChange"},{emit:"loadPanelChange"},{emit:"masterDetailChange"},{emit:"noDataTextChange"},{emit:"pagerChange"},{emit:"pagingChange"},{emit:"remoteOperationsChange"},{emit:"renderAsyncChange"},{emit:"repaintChangesOnlyChange"},{emit:"rowAlternationEnabledChange"},{emit:"rowDraggingChange"},{emit:"rowTemplateChange"},{emit:"rtlEnabledChange"},{emit:"scrollingChange"},{emit:"searchPanelChange"},{emit:"selectedRowKeysChange"},{emit:"selectionChange"},{emit:"selectionFilterChange"},{emit:"showBordersChange"},{emit:"showColumnHeadersChange"},{emit:"showColumnLinesChange"},{emit:"showRowLinesChange"},{emit:"sortByGroupSummaryInfoChange"},{emit:"sortingChange"},{emit:"stateStoringChange"},{emit:"summaryChange"},{emit:"syncLookupFilterValuesChange"},{emit:"tabIndexChange"},{emit:"toolbarChange"},{emit:"twoWayBindingEnabledChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wordWrapEnabledChange"}]),this._idh.setHost(this),fe.setHost(this)}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 allowColumnReordering(){return this._getOption("allowColumnReordering")}set allowColumnReordering(t){this._setOption("allowColumnReordering",t)}get allowColumnResizing(){return this._getOption("allowColumnResizing")}set allowColumnResizing(t){this._setOption("allowColumnResizing",t)}get autoNavigateToFocusedRow(){return this._getOption("autoNavigateToFocusedRow")}set autoNavigateToFocusedRow(t){this._setOption("autoNavigateToFocusedRow",t)}get cacheEnabled(){return this._getOption("cacheEnabled")}set cacheEnabled(t){this._setOption("cacheEnabled",t)}get cellHintEnabled(){return this._getOption("cellHintEnabled")}set cellHintEnabled(t){this._setOption("cellHintEnabled",t)}get columnAutoWidth(){return this._getOption("columnAutoWidth")}set columnAutoWidth(t){this._setOption("columnAutoWidth",t)}get columnChooser(){return this._getOption("columnChooser")}set columnChooser(t){this._setOption("columnChooser",t)}get columnFixing(){return this._getOption("columnFixing")}set columnFixing(t){this._setOption("columnFixing",t)}get columnHidingEnabled(){return this._getOption("columnHidingEnabled")}set columnHidingEnabled(t){this._setOption("columnHidingEnabled",t)}get columnMinWidth(){return this._getOption("columnMinWidth")}set columnMinWidth(t){this._setOption("columnMinWidth",t)}get columnResizingMode(){return this._getOption("columnResizingMode")}set columnResizingMode(t){this._setOption("columnResizingMode",t)}get columns(){return this._getOption("columns")}set columns(t){this._setOption("columns",t)}get columnWidth(){return this._getOption("columnWidth")}set columnWidth(t){this._setOption("columnWidth",t)}get customizeColumns(){return this._getOption("customizeColumns")}set customizeColumns(t){this._setOption("customizeColumns",t)}get dataRowTemplate(){return this._getOption("dataRowTemplate")}set dataRowTemplate(t){this._setOption("dataRowTemplate",t)}get dataSource(){return this._getOption("dataSource")}set dataSource(t){this._setOption("dataSource",t)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(t){this._setOption("dateSerializationFormat",t)}get disabled(){return this._getOption("disabled")}set disabled(t){this._setOption("disabled",t)}get editing(){return this._getOption("editing")}set editing(t){this._setOption("editing",t)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(t){this._setOption("elementAttr",t)}get errorRowEnabled(){return this._getOption("errorRowEnabled")}set errorRowEnabled(t){this._setOption("errorRowEnabled",t)}get export(){return this._getOption("export")}set export(t){this._setOption("export",t)}get filterBuilder(){return this._getOption("filterBuilder")}set filterBuilder(t){this._setOption("filterBuilder",t)}get filterBuilderPopup(){return this._getOption("filterBuilderPopup")}set filterBuilderPopup(t){this._setOption("filterBuilderPopup",t)}get filterPanel(){return this._getOption("filterPanel")}set filterPanel(t){this._setOption("filterPanel",t)}get filterRow(){return this._getOption("filterRow")}set filterRow(t){this._setOption("filterRow",t)}get filterSyncEnabled(){return this._getOption("filterSyncEnabled")}set filterSyncEnabled(t){this._setOption("filterSyncEnabled",t)}get filterValue(){return this._getOption("filterValue")}set filterValue(t){this._setOption("filterValue",t)}get focusedColumnIndex(){return this._getOption("focusedColumnIndex")}set focusedColumnIndex(t){this._setOption("focusedColumnIndex",t)}get focusedRowEnabled(){return this._getOption("focusedRowEnabled")}set focusedRowEnabled(t){this._setOption("focusedRowEnabled",t)}get focusedRowIndex(){return this._getOption("focusedRowIndex")}set focusedRowIndex(t){this._setOption("focusedRowIndex",t)}get focusedRowKey(){return this._getOption("focusedRowKey")}set focusedRowKey(t){this._setOption("focusedRowKey",t)}get grouping(){return this._getOption("grouping")}set grouping(t){this._setOption("grouping",t)}get groupPanel(){return this._getOption("groupPanel")}set groupPanel(t){this._setOption("groupPanel",t)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(t){this._setOption("headerFilter",t)}get height(){return this._getOption("height")}set height(t){this._setOption("height",t)}get highlightChanges(){return this._getOption("highlightChanges")}set highlightChanges(t){this._setOption("highlightChanges",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 keyboardNavigation(){return this._getOption("keyboardNavigation")}set keyboardNavigation(t){this._setOption("keyboardNavigation",t)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(t){this._setOption("keyExpr",t)}get loadPanel(){return this._getOption("loadPanel")}set loadPanel(t){this._setOption("loadPanel",t)}get masterDetail(){return this._getOption("masterDetail")}set masterDetail(t){this._setOption("masterDetail",t)}get noDataText(){return this._getOption("noDataText")}set noDataText(t){this._setOption("noDataText",t)}get pager(){return this._getOption("pager")}set pager(t){this._setOption("pager",t)}get paging(){return this._getOption("paging")}set paging(t){this._setOption("paging",t)}get remoteOperations(){return this._getOption("remoteOperations")}set remoteOperations(t){this._setOption("remoteOperations",t)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(t){this._setOption("renderAsync",t)}get repaintChangesOnly(){return this._getOption("repaintChangesOnly")}set repaintChangesOnly(t){this._setOption("repaintChangesOnly",t)}get rowAlternationEnabled(){return this._getOption("rowAlternationEnabled")}set rowAlternationEnabled(t){this._setOption("rowAlternationEnabled",t)}get rowDragging(){return this._getOption("rowDragging")}set rowDragging(t){this._setOption("rowDragging",t)}get rowTemplate(){return this._getOption("rowTemplate")}set rowTemplate(t){this._setOption("rowTemplate",t)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(t){this._setOption("rtlEnabled",t)}get scrolling(){return this._getOption("scrolling")}set scrolling(t){this._setOption("scrolling",t)}get searchPanel(){return this._getOption("searchPanel")}set searchPanel(t){this._setOption("searchPanel",t)}get selectedRowKeys(){return this._getOption("selectedRowKeys")}set selectedRowKeys(t){this._setOption("selectedRowKeys",t)}get selection(){return this._getOption("selection")}set selection(t){this._setOption("selection",t)}get selectionFilter(){return this._getOption("selectionFilter")}set selectionFilter(t){this._setOption("selectionFilter",t)}get showBorders(){return this._getOption("showBorders")}set showBorders(t){this._setOption("showBorders",t)}get showColumnHeaders(){return this._getOption("showColumnHeaders")}set showColumnHeaders(t){this._setOption("showColumnHeaders",t)}get showColumnLines(){return this._getOption("showColumnLines")}set showColumnLines(t){this._setOption("showColumnLines",t)}get showRowLines(){return this._getOption("showRowLines")}set showRowLines(t){this._setOption("showRowLines",t)}get sortByGroupSummaryInfo(){return this._getOption("sortByGroupSummaryInfo")}set sortByGroupSummaryInfo(t){this._setOption("sortByGroupSummaryInfo",t)}get sorting(){return this._getOption("sorting")}set sorting(t){this._setOption("sorting",t)}get stateStoring(){return this._getOption("stateStoring")}set stateStoring(t){this._setOption("stateStoring",t)}get summary(){return this._getOption("summary")}set summary(t){this._setOption("summary",t)}get syncLookupFilterValues(){return this._getOption("syncLookupFilterValues")}set syncLookupFilterValues(t){this._setOption("syncLookupFilterValues",t)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(t){this._setOption("tabIndex",t)}get toolbar(){return this._getOption("toolbar")}set toolbar(t){this._setOption("toolbar",t)}get twoWayBindingEnabled(){return this._getOption("twoWayBindingEnabled")}set twoWayBindingEnabled(t){this._setOption("twoWayBindingEnabled",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)}get wordWrapEnabled(){return this._getOption("wordWrapEnabled")}set wordWrapEnabled(t){this._setOption("wordWrapEnabled",t)}get columnsChildren(){return this._getOption("columns")}set columnsChildren(t){this.setChildren("columns",t)}get sortByGroupSummaryInfoChildren(){return this._getOption("sortByGroupSummaryInfo")}set sortByGroupSummaryInfoChildren(t){this.setChildren("sortByGroupSummaryInfo",t)}_createInstance(t,n){return new xD(t,n)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(t){super.ngOnChanges(t),this.setupChanges("columns",t),this.setupChanges("dataSource",t),this.setupChanges("keyExpr",t),this.setupChanges("selectedRowKeys",t),this.setupChanges("sortByGroupSummaryInfo",t)}setupChanges(t,n){t in this._optionsToUpdate||this._idh.setup(t,n)}ngDoCheck(){this._idh.doCheck("columns"),this._idh.doCheck("dataSource"),this._idh.doCheck("keyExpr"),this._idh.doCheck("selectedRowKeys"),this._idh.doCheck("sortByGroupSummaryInfo"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(t,n){let p=this._idh.setupSingle(t,n),P=null!==this._idh.getChanges(t,n);(p||P)&&super._setOption(t,n)}}return V.\u0275fac=function(t){return new(t||V)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(ng.zF),d.rXU(ng.jS),d.rXU(ng.$M),d.rXU(ng.fH),d.rXU(r.pJ),d.rXU(d.Agw))},V.\u0275cmp=d.VBU({type:V,selectors:[["dx-data-grid"]],contentQueries:function(t,n,p){if(1&t&&(d.wni(p,ta.nj_,4),d.wni(p,ta.x$q,4)),2&t){let P;d.mGM(P=d.lsd())&&(n.columnsChildren=P),d.mGM(P=d.lsd())&&(n.sortByGroupSummaryInfoChildren=P)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowColumnReordering:"allowColumnReordering",allowColumnResizing:"allowColumnResizing",autoNavigateToFocusedRow:"autoNavigateToFocusedRow",cacheEnabled:"cacheEnabled",cellHintEnabled:"cellHintEnabled",columnAutoWidth:"columnAutoWidth",columnChooser:"columnChooser",columnFixing:"columnFixing",columnHidingEnabled:"columnHidingEnabled",columnMinWidth:"columnMinWidth",columnResizingMode:"columnResizingMode",columns:"columns",columnWidth:"columnWidth",customizeColumns:"customizeColumns",dataRowTemplate:"dataRowTemplate",dataSource:"dataSource",dateSerializationFormat:"dateSerializationFormat",disabled:"disabled",editing:"editing",elementAttr:"elementAttr",errorRowEnabled:"errorRowEnabled",export:"export",filterBuilder:"filterBuilder",filterBuilderPopup:"filterBuilderPopup",filterPanel:"filterPanel",filterRow:"filterRow",filterSyncEnabled:"filterSyncEnabled",filterValue:"filterValue",focusedColumnIndex:"focusedColumnIndex",focusedRowEnabled:"focusedRowEnabled",focusedRowIndex:"focusedRowIndex",focusedRowKey:"focusedRowKey",grouping:"grouping",groupPanel:"groupPanel",headerFilter:"headerFilter",height:"height",highlightChanges:"highlightChanges",hint:"hint",hoverStateEnabled:"hoverStateEnabled",keyboardNavigation:"keyboardNavigation",keyExpr:"keyExpr",loadPanel:"loadPanel",masterDetail:"masterDetail",noDataText:"noDataText",pager:"pager",paging:"paging",remoteOperations:"remoteOperations",renderAsync:"renderAsync",repaintChangesOnly:"repaintChangesOnly",rowAlternationEnabled:"rowAlternationEnabled",rowDragging:"rowDragging",rowTemplate:"rowTemplate",rtlEnabled:"rtlEnabled",scrolling:"scrolling",searchPanel:"searchPanel",selectedRowKeys:"selectedRowKeys",selection:"selection",selectionFilter:"selectionFilter",showBorders:"showBorders",showColumnHeaders:"showColumnHeaders",showColumnLines:"showColumnLines",showRowLines:"showRowLines",sortByGroupSummaryInfo:"sortByGroupSummaryInfo",sorting:"sorting",stateStoring:"stateStoring",summary:"summary",syncLookupFilterValues:"syncLookupFilterValues",tabIndex:"tabIndex",toolbar:"toolbar",twoWayBindingEnabled:"twoWayBindingEnabled",visible:"visible",width:"width",wordWrapEnabled:"wordWrapEnabled"},outputs:{onAdaptiveDetailRowPreparing:"onAdaptiveDetailRowPreparing",onCellClick:"onCellClick",onCellDblClick:"onCellDblClick",onCellHoverChanged:"onCellHoverChanged",onCellPrepared:"onCellPrepared",onContentReady:"onContentReady",onContextMenuPreparing:"onContextMenuPreparing",onDataErrorOccurred:"onDataErrorOccurred",onDisposing:"onDisposing",onEditCanceled:"onEditCanceled",onEditCanceling:"onEditCanceling",onEditingStart:"onEditingStart",onEditorPrepared:"onEditorPrepared",onEditorPreparing:"onEditorPreparing",onExporting:"onExporting",onFocusedCellChanged:"onFocusedCellChanged",onFocusedCellChanging:"onFocusedCellChanging",onFocusedRowChanged:"onFocusedRowChanged",onFocusedRowChanging:"onFocusedRowChanging",onInitialized:"onInitialized",onInitNewRow:"onInitNewRow",onKeyDown:"onKeyDown",onOptionChanged:"onOptionChanged",onRowClick:"onRowClick",onRowCollapsed:"onRowCollapsed",onRowCollapsing:"onRowCollapsing",onRowDblClick:"onRowDblClick",onRowExpanded:"onRowExpanded",onRowExpanding:"onRowExpanding",onRowInserted:"onRowInserted",onRowInserting:"onRowInserting",onRowPrepared:"onRowPrepared",onRowRemoved:"onRowRemoved",onRowRemoving:"onRowRemoving",onRowUpdated:"onRowUpdated",onRowUpdating:"onRowUpdating",onRowValidating:"onRowValidating",onSaved:"onSaved",onSaving:"onSaving",onSelectionChanged:"onSelectionChanged",onToolbarPreparing:"onToolbarPreparing",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowColumnReorderingChange:"allowColumnReorderingChange",allowColumnResizingChange:"allowColumnResizingChange",autoNavigateToFocusedRowChange:"autoNavigateToFocusedRowChange",cacheEnabledChange:"cacheEnabledChange",cellHintEnabledChange:"cellHintEnabledChange",columnAutoWidthChange:"columnAutoWidthChange",columnChooserChange:"columnChooserChange",columnFixingChange:"columnFixingChange",columnHidingEnabledChange:"columnHidingEnabledChange",columnMinWidthChange:"columnMinWidthChange",columnResizingModeChange:"columnResizingModeChange",columnsChange:"columnsChange",columnWidthChange:"columnWidthChange",customizeColumnsChange:"customizeColumnsChange",dataRowTemplateChange:"dataRowTemplateChange",dataSourceChange:"dataSourceChange",dateSerializationFormatChange:"dateSerializationFormatChange",disabledChange:"disabledChange",editingChange:"editingChange",elementAttrChange:"elementAttrChange",errorRowEnabledChange:"errorRowEnabledChange",exportChange:"exportChange",filterBuilderChange:"filterBuilderChange",filterBuilderPopupChange:"filterBuilderPopupChange",filterPanelChange:"filterPanelChange",filterRowChange:"filterRowChange",filterSyncEnabledChange:"filterSyncEnabledChange",filterValueChange:"filterValueChange",focusedColumnIndexChange:"focusedColumnIndexChange",focusedRowEnabledChange:"focusedRowEnabledChange",focusedRowIndexChange:"focusedRowIndexChange",focusedRowKeyChange:"focusedRowKeyChange",groupingChange:"groupingChange",groupPanelChange:"groupPanelChange",headerFilterChange:"headerFilterChange",heightChange:"heightChange",highlightChangesChange:"highlightChangesChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",keyboardNavigationChange:"keyboardNavigationChange",keyExprChange:"keyExprChange",loadPanelChange:"loadPanelChange",masterDetailChange:"masterDetailChange",noDataTextChange:"noDataTextChange",pagerChange:"pagerChange",pagingChange:"pagingChange",remoteOperationsChange:"remoteOperationsChange",renderAsyncChange:"renderAsyncChange",repaintChangesOnlyChange:"repaintChangesOnlyChange",rowAlternationEnabledChange:"rowAlternationEnabledChange",rowDraggingChange:"rowDraggingChange",rowTemplateChange:"rowTemplateChange",rtlEnabledChange:"rtlEnabledChange",scrollingChange:"scrollingChange",searchPanelChange:"searchPanelChange",selectedRowKeysChange:"selectedRowKeysChange",selectionChange:"selectionChange",selectionFilterChange:"selectionFilterChange",showBordersChange:"showBordersChange",showColumnHeadersChange:"showColumnHeadersChange",showColumnLinesChange:"showColumnLinesChange",showRowLinesChange:"showRowLinesChange",sortByGroupSummaryInfoChange:"sortByGroupSummaryInfoChange",sortingChange:"sortingChange",stateStoringChange:"stateStoringChange",summaryChange:"summaryChange",syncLookupFilterValuesChange:"syncLookupFilterValuesChange",tabIndexChange:"tabIndexChange",toolbarChange:"toolbarChange",twoWayBindingEnabledChange:"twoWayBindingEnabledChange",visibleChange:"visibleChange",widthChange:"widthChange",wordWrapEnabledChange:"wordWrapEnabledChange"},features:[d.Jv_([ng.zF,ng.jS,ng.fH,ng.$M]),d.Vt3,d.OA$],decls:0,vars:0,template:function(t,n){},encapsulation:2}),V})(),A1=(()=>{class V{}return V.\u0275fac=function(t){return new(t||V)},V.\u0275mod=d.$C({type:V}),V.\u0275inj=d.G2t({imports:[[ta.nrj,ta.Bkf,ta.nwt,ta.hXw,ta.YGc,ta.gf0,ta.rvW,ta._zS,ta.U9o,ta.hyP,ta._RO,ta.YC7,ta.GIV,ta.X1G,ta.W6p,ta.Pxf,ta.BR_,ta.uE7,ta.$lK,ta.aJg,ta.GCl,ta.Sy5,ta.k61,ta.POb,ta.hUd,ta.HKo,ta.Ixj,ta.a6E,ta.YLo,ta.YaD,ta.eNx,ta.Tob,ta.$Ql,ta.isg,ta.uIe,ta.L0X,ta.MtA,ta.yA4,ta.oCB,ta.tWd,ta.zkV,ta.Sn2,ta.MBy,ta.qCh,ta.joz,ta.FOK,ta.x_w,ta.s5o,ta.Zac,ta.ZaD,ta.m1r,ta.Wnt,ta.rER,ta.XUe,ta.lkr,ta.WC8,ta.GQ,ta.kYc,ta.X6g,ta.WXx,ta.CWj,ta.Mru,ta.Hl$,ta.l4W,ng.p_,ng.xZ],ta.nrj,ta.Bkf,ta.nwt,ta.hXw,ta.YGc,ta.gf0,ta.rvW,ta._zS,ta.U9o,ta.hyP,ta._RO,ta.YC7,ta.GIV,ta.X1G,ta.W6p,ta.Pxf,ta.BR_,ta.uE7,ta.$lK,ta.aJg,ta.GCl,ta.Sy5,ta.k61,ta.POb,ta.hUd,ta.HKo,ta.Ixj,ta.a6E,ta.YLo,ta.YaD,ta.eNx,ta.Tob,ta.$Ql,ta.isg,ta.uIe,ta.L0X,ta.MtA,ta.yA4,ta.oCB,ta.tWd,ta.zkV,ta.Sn2,ta.MBy,ta.qCh,ta.joz,ta.FOK,ta.x_w,ta.s5o,ta.Zac,ta.ZaD,ta.m1r,ta.Wnt,ta.rER,ta.XUe,ta.lkr,ta.WC8,ta.GQ,ta.kYc,ta.X6g,ta.WXx,ta.CWj,ta.Mru,ta.Hl$,ta.l4W,ng.xZ]}),V})()},31837:(ei,rt,D)=>{"use strict";D.d(rt,{$Ql:()=>Ja,$T:()=>em,$jZ:()=>Vr,$lK:()=>Et,A1g:()=>We,ABd:()=>ou,AaL:()=>Ao,Af1:()=>Vl,B80:()=>Sc,BR_:()=>xd,Bkf:()=>yu,CBY:()=>ne,CGH:()=>Pt,CVf:()=>gi,CWj:()=>su,DlA:()=>k,EED:()=>eh,F1M:()=>vr,F2g:()=>wo,FOK:()=>Hc,FTx:()=>yi,FXg:()=>hd,Fbs:()=>Mp,Fhh:()=>Zp,Fii:()=>_o,GCl:()=>qi,GIV:()=>It,GQ:()=>Oa,GYs:()=>Bn,GzL:()=>Jo,H8O:()=>eu,HCS:()=>ee,HKo:()=>an,Hl$:()=>Sd,IWb:()=>Yh,Ist:()=>be,Ixj:()=>st,KNc:()=>Ba,Kkw:()=>Gc,L0X:()=>yc,LRA:()=>th,M5G:()=>Xi,MBy:()=>zt,MXF:()=>Zs,Mj3:()=>rd,Mru:()=>vm,MtA:()=>El,NhN:()=>Q,OeI:()=>qh,POb:()=>Ti,PTP:()=>Ys,PVd:()=>pd,PXE:()=>ge,Pxf:()=>uh,REv:()=>Eo,RKC:()=>gt,ROy:()=>_,Sn2:()=>ks,Sy5:()=>Cs,TBD:()=>Rr,Tob:()=>cr,U9o:()=>Nr,VG3:()=>_n,VTr:()=>r_,Vku:()=>Zh,W6p:()=>lo,WC8:()=>$i,WG2:()=>h,WNh:()=>bs,WXx:()=>ec,Wnt:()=>Ad,X1G:()=>Yp,X6g:()=>xu,XUe:()=>us,XWi:()=>En,YC7:()=>ln,YGc:()=>Na,YLo:()=>O,YTS:()=>je,YaD:()=>Ot,Yh3:()=>Ks,YkV:()=>ad,YyV:()=>cu,Z6T:()=>Jr,ZJU:()=>Hs,ZRW:()=>ce,ZSJ:()=>gl,ZaD:()=>La,Zac:()=>Zd,_RO:()=>Jh,_ql:()=>Bg,_zS:()=>Fn,a6E:()=>du,aJg:()=>yl,aUY:()=>me,aqX:()=>oa,b4U:()=>Zc,cCU:()=>id,cug:()=>Hn,eA9:()=>fi,eNx:()=>Yt,eeS:()=>Jp,gVd:()=>wn,gf0:()=>mh,gtJ:()=>Cp,hJ:()=>wc,hU2:()=>mn,hUd:()=>Ed,hVU:()=>Rn,hXw:()=>vt,hyP:()=>jn,hzo:()=>Jn,i9t:()=>$s,iDF:()=>rh,iVO:()=>_a,ikq:()=>td,isg:()=>qs,joz:()=>hh,k61:()=>sa,kYc:()=>Pn,kxR:()=>Us,l4W:()=>Bs,lPC:()=>Oo,lWu:()=>Yr,lX9:()=>en,lkr:()=>Jt,m1r:()=>bu,mEX:()=>yn,nE5:()=>qu,nj_:()=>Pi,nrj:()=>si,nu6:()=>ka,nwt:()=>z,oCB:()=>Ol,okf:()=>nl,qCh:()=>zi,r2Z:()=>vo,rER:()=>Uo,rvW:()=>at,s5F:()=>f,s5o:()=>Zr,sAn:()=>Io,sVF:()=>ti,tML:()=>Fa,tOy:()=>ea,tWd:()=>lp,tXi:()=>ri,tl:()=>Ri,uE7:()=>zn,uIe:()=>hl,ur_:()=>cn,uvP:()=>R,v5y:()=>fd,vQM:()=>vu,w0m:()=>gh,w8p:()=>Dp,x$q:()=>Xa,xOT:()=>Ur,x_w:()=>Ca,xzc:()=>nd,y1E:()=>qa,y7y:()=>G,yA4:()=>hs,zkV:()=>vc});var r=D(54438),d=D(87283),L=D(60177);let R=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),_=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),h=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),O=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),w=(()=>{class M extends d.l9{get allowDragging(){return this._getOption("allowDragging")}set allowDragging(i){this._setOption("allowDragging",i)}get argument(){return this._getOption("argument")}set argument(i){this._setOption("argument",i)}get arrowLength(){return this._getOption("arrowLength")}set arrowLength(i){this._setOption("arrowLength",i)}get arrowWidth(){return this._getOption("arrowWidth")}set arrowWidth(i){this._setOption("arrowWidth",i)}get axis(){return this._getOption("axis")}set axis(i){this._setOption("axis",i)}get border(){return this._getOption("border")}set border(i){this._setOption("border",i)}get color(){return this._getOption("color")}set color(i){this._setOption("color",i)}get customizeTooltip(){return this._getOption("customizeTooltip")}set customizeTooltip(i){this._setOption("customizeTooltip",i)}get data(){return this._getOption("data")}set data(i){this._setOption("data",i)}get description(){return this._getOption("description")}set description(i){this._setOption("description",i)}get font(){return this._getOption("font")}set font(i){this._setOption("font",i)}get height(){return this._getOption("height")}set height(i){this._setOption("height",i)}get image(){return this._getOption("image")}set image(i){this._setOption("image",i)}get name(){return this._getOption("name")}set name(i){this._setOption("name",i)}get offsetX(){return this._getOption("offsetX")}set offsetX(i){this._setOption("offsetX",i)}get offsetY(){return this._getOption("offsetY")}set offsetY(i){this._setOption("offsetY",i)}get opacity(){return this._getOption("opacity")}set opacity(i){this._setOption("opacity",i)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(i){this._setOption("paddingLeftRight",i)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(i){this._setOption("paddingTopBottom",i)}get series(){return this._getOption("series")}set series(i){this._setOption("series",i)}get shadow(){return this._getOption("shadow")}set shadow(i){this._setOption("shadow",i)}get template(){return this._getOption("template")}set template(i){this._setOption("template",i)}get text(){return this._getOption("text")}set text(i){this._setOption("text",i)}get textOverflow(){return this._getOption("textOverflow")}set textOverflow(i){this._setOption("textOverflow",i)}get tooltipEnabled(){return this._getOption("tooltipEnabled")}set tooltipEnabled(i){this._setOption("tooltipEnabled",i)}get tooltipTemplate(){return this._getOption("tooltipTemplate")}set tooltipTemplate(i){this._setOption("tooltipTemplate",i)}get type(){return this._getOption("type")}set type(i){this._setOption("type",i)}get value(){return this._getOption("value")}set value(i){this._setOption("value",i)}get width(){return this._getOption("width")}set width(i){this._setOption("width",i)}get wordWrap(){return this._getOption("wordWrap")}set wordWrap(i){this._setOption("wordWrap",i)}get x(){return this._getOption("x")}set x(i){this._setOption("x",i)}get y(){return this._getOption("y")}set y(i){this._setOption("y",i)}get location(){return this._getOption("location")}set location(i){this._setOption("location",i)}get angle(){return this._getOption("angle")}set angle(i){this._setOption("angle",i)}get radius(){return this._getOption("radius")}set radius(i){this._setOption("radius",i)}get coordinates(){return this._getOption("coordinates")}set coordinates(i){this._setOption("coordinates",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),f=(()=>{class M extends w{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"annotations"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-annotation"]],inputs:{allowDragging:"allowDragging",argument:"argument",arrowLength:"arrowLength",arrowWidth:"arrowWidth",axis:"axis",border:"border",color:"color",customizeTooltip:"customizeTooltip",data:"data",description:"description",font:"font",height:"height",image:"image",name:"name",offsetX:"offsetX",offsetY:"offsetY",opacity:"opacity",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",series:"series",shadow:"shadow",template:"template",text:"text",textOverflow:"textOverflow",tooltipEnabled:"tooltipEnabled",tooltipTemplate:"tooltipTemplate",type:"type",value:"value",width:"width",wordWrap:"wordWrap",x:"x",y:"y",location:"location",angle:"angle",radius:"radius",coordinates:"coordinates"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),k=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Q=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),se=(()=>{class M extends d.l9{get endValue(){return this._getOption("endValue")}set endValue(i){this._setOption("endValue",i)}get startValue(){return this._getOption("startValue")}set startValue(i){this._setOption("startValue",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),ie=(()=>{class M extends se{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"breaks"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-break"]],inputs:{endValue:"endValue",startValue:"startValue"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),ee=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),re=(()=>{class M extends d.l9{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get color(){return this._getOption("color")}set color(i){this._setOption("color",i)}get dashStyle(){return this._getOption("dashStyle")}set dashStyle(i){this._setOption("dashStyle",i)}get displayBehindSeries(){return this._getOption("displayBehindSeries")}set displayBehindSeries(i){this._setOption("displayBehindSeries",i)}get extendAxis(){return this._getOption("extendAxis")}set extendAxis(i){this._setOption("extendAxis",i)}get label(){return this._getOption("label")}set label(i){this._setOption("label",i)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(i){this._setOption("paddingLeftRight",i)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(i){this._setOption("paddingTopBottom",i)}get value(){return this._getOption("value")}set value(i){this._setOption("value",i)}get width(){return this._getOption("width")}set width(i){this._setOption("width",i)}get _optionPath(){return"constantLines"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-constant-line"]],inputs:{color:"color",dashStyle:"dashStyle",displayBehindSeries:"displayBehindSeries",extendAxis:"extendAxis",label:"label",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",value:"value",width:"width"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),ne=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),_e=(()=>{class M extends d.l9{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get color(){return this._getOption("color")}set color(i){this._setOption("color",i)}get endValue(){return this._getOption("endValue")}set endValue(i){this._setOption("endValue",i)}get label(){return this._getOption("label")}set label(i){this._setOption("label",i)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(i){this._setOption("paddingLeftRight",i)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(i){this._setOption("paddingTopBottom",i)}get startValue(){return this._getOption("startValue")}set startValue(i){this._setOption("startValue",i)}get _optionPath(){return"strips"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-strip"]],inputs:{color:"color",endValue:"endValue",label:"label",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",startValue:"startValue"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),be=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),me=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),we=(()=>{class M extends d.t${get currency(){return this._getOption("currency")}set currency(i){this._setOption("currency",i)}get formatter(){return this._getOption("formatter")}set formatter(i){this._setOption("formatter",i)}get parser(){return this._getOption("parser")}set parser(i){this._setOption("parser",i)}get precision(){return this._getOption("precision")}set precision(i){this._setOption("precision",i)}get type(){return this._getOption("type")}set type(i){this._setOption("type",i)}get useCurrencyAccountingStyle(){return this._getOption("useCurrencyAccountingStyle")}set useCurrencyAccountingStyle(i){this._setOption("useCurrencyAccountingStyle",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),G=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),z=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),ge=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),ce=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),We=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),vt=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Nt=(()=>{class M extends d.l9{get disabled(){return this._getOption("disabled")}set disabled(i){this._setOption("disabled",i)}get html(){return this._getOption("html")}set html(i){this._setOption("html",i)}get icon(){return this._getOption("icon")}set icon(i){this._setOption("icon",i)}get template(){return this._getOption("template")}set template(i){this._setOption("template",i)}get text(){return this._getOption("text")}set text(i){this._setOption("text",i)}get title(){return this._getOption("title")}set title(i){this._setOption("title",i)}get titleTemplate(){return this._getOption("titleTemplate")}set titleTemplate(i){this._setOption("titleTemplate",i)}get visible(){return this._getOption("visible")}set visible(i){this._setOption("visible",i)}get onClick(){return this._getOption("onClick")}set onClick(i){this._setOption("onClick",i)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(i){this._setOption("stylingMode",i)}get type(){return this._getOption("type")}set type(i){this._setOption("type",i)}get baseSize(){return this._getOption("baseSize")}set baseSize(i){this._setOption("baseSize",i)}get box(){return this._getOption("box")}set box(i){this._setOption("box",i)}get ratio(){return this._getOption("ratio")}set ratio(i){this._setOption("ratio",i)}get shrink(){return this._getOption("shrink")}set shrink(i){this._setOption("shrink",i)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(i){this._setOption("elementAttr",i)}get hint(){return this._getOption("hint")}set hint(i){this._setOption("hint",i)}get beginGroup(){return this._getOption("beginGroup")}set beginGroup(i){this._setOption("beginGroup",i)}get closeMenuOnClick(){return this._getOption("closeMenuOnClick")}set closeMenuOnClick(i){this._setOption("closeMenuOnClick",i)}get items(){return this._getOption("items")}set items(i){this._setOption("items",i)}get selectable(){return this._getOption("selectable")}set selectable(i){this._setOption("selectable",i)}get selected(){return this._getOption("selected")}set selected(i){this._setOption("selected",i)}get colSpan(){return this._getOption("colSpan")}set colSpan(i){this._setOption("colSpan",i)}get cssClass(){return this._getOption("cssClass")}set cssClass(i){this._setOption("cssClass",i)}get dataField(){return this._getOption("dataField")}set dataField(i){this._setOption("dataField",i)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(i){this._setOption("editorOptions",i)}get editorType(){return this._getOption("editorType")}set editorType(i){this._setOption("editorType",i)}get helpText(){return this._getOption("helpText")}set helpText(i){this._setOption("helpText",i)}get isRequired(){return this._getOption("isRequired")}set isRequired(i){this._setOption("isRequired",i)}get itemType(){return this._getOption("itemType")}set itemType(i){this._setOption("itemType",i)}get label(){return this._getOption("label")}set label(i){this._setOption("label",i)}get name(){return this._getOption("name")}set name(i){this._setOption("name",i)}get validationRules(){return this._getOption("validationRules")}set validationRules(i){this._setOption("validationRules",i)}get visibleIndex(){return this._getOption("visibleIndex")}set visibleIndex(i){this._setOption("visibleIndex",i)}get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(i){this._setOption("alignItemLabels",i)}get caption(){return this._getOption("caption")}set caption(i){this._setOption("caption",i)}get colCount(){return this._getOption("colCount")}set colCount(i){this._setOption("colCount",i)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(i){this._setOption("colCountByScreen",i)}get tabPanelOptions(){return this._getOption("tabPanelOptions")}set tabPanelOptions(i){this._setOption("tabPanelOptions",i)}get tabs(){return this._getOption("tabs")}set tabs(i){this._setOption("tabs",i)}get badge(){return this._getOption("badge")}set badge(i){this._setOption("badge",i)}get tabTemplate(){return this._getOption("tabTemplate")}set tabTemplate(i){this._setOption("tabTemplate",i)}get buttonOptions(){return this._getOption("buttonOptions")}set buttonOptions(i){this._setOption("buttonOptions",i)}get horizontalAlignment(){return this._getOption("horizontalAlignment")}set horizontalAlignment(i){this._setOption("horizontalAlignment",i)}get verticalAlignment(){return this._getOption("verticalAlignment")}set verticalAlignment(i){this._setOption("verticalAlignment",i)}get locateInMenu(){return this._getOption("locateInMenu")}set locateInMenu(i){this._setOption("locateInMenu",i)}get location(){return this._getOption("location")}set location(i){this._setOption("location",i)}get menuItemTemplate(){return this._getOption("menuItemTemplate")}set menuItemTemplate(i){this._setOption("menuItemTemplate",i)}get options(){return this._getOption("options")}set options(i){this._setOption("options",i)}get showText(){return this._getOption("showText")}set showText(i){this._setOption("showText",i)}get widget(){return this._getOption("widget")}set widget(i){this._setOption("widget",i)}get height(){return this._getOption("height")}set height(i){this._setOption("height",i)}get width(){return this._getOption("width")}set width(i){this._setOption("width",i)}get imageAlt(){return this._getOption("imageAlt")}set imageAlt(i){this._setOption("imageAlt",i)}get imageSrc(){return this._getOption("imageSrc")}set imageSrc(i){this._setOption("imageSrc",i)}get acceptedValues(){return this._getOption("acceptedValues")}set acceptedValues(i){this._setOption("acceptedValues",i)}get formatName(){return this._getOption("formatName")}set formatName(i){this._setOption("formatName",i)}get formatValues(){return this._getOption("formatValues")}set formatValues(i){this._setOption("formatValues",i)}get key(){return this._getOption("key")}set key(i){this._setOption("key",i)}get showChevron(){return this._getOption("showChevron")}set showChevron(i){this._setOption("showChevron",i)}get linkAttr(){return this._getOption("linkAttr")}set linkAttr(i){this._setOption("linkAttr",i)}get url(){return this._getOption("url")}set url(i){this._setOption("url",i)}get heightRatio(){return this._getOption("heightRatio")}set heightRatio(i){this._setOption("heightRatio",i)}get widthRatio(){return this._getOption("widthRatio")}set widthRatio(i){this._setOption("widthRatio",i)}get expanded(){return this._getOption("expanded")}set expanded(i){this._setOption("expanded",i)}get hasItems(){return this._getOption("hasItems")}set hasItems(i){this._setOption("hasItems",i)}get id(){return this._getOption("id")}set id(i){this._setOption("id",i)}get parentId(){return this._getOption("parentId")}set parentId(i){this._setOption("parentId",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),Qe=(()=>{class M extends d.l9{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get message(){return this._getOption("message")}set message(i){this._setOption("message",i)}get trim(){return this._getOption("trim")}set trim(i){this._setOption("trim",i)}get type(){return this._getOption("type")}set type(i){this._setOption("type",i)}get ignoreEmptyValue(){return this._getOption("ignoreEmptyValue")}set ignoreEmptyValue(i){this._setOption("ignoreEmptyValue",i)}get max(){return this._getOption("max")}set max(i){this._setOption("max",i)}get min(){return this._getOption("min")}set min(i){this._setOption("min",i)}get reevaluate(){return this._getOption("reevaluate")}set reevaluate(i){this._setOption("reevaluate",i)}get validationCallback(){return this._getOption("validationCallback")}set validationCallback(i){this._setOption("validationCallback",i)}get comparisonTarget(){return this._getOption("comparisonTarget")}set comparisonTarget(i){this._setOption("comparisonTarget",i)}get comparisonType(){return this._getOption("comparisonType")}set comparisonType(i){this._setOption("comparisonType",i)}get pattern(){return this._getOption("pattern")}set pattern(i){this._setOption("pattern",i)}get _optionPath(){return"validationRules"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-validation-rule"]],inputs:{message:"message",trim:"trim",type:"type",ignoreEmptyValue:"ignoreEmptyValue",max:"max",min:"min",reevaluate:"reevaluate",validationCallback:"validationCallback",comparisonTarget:"comparisonTarget",comparisonType:"comparisonType",pattern:"pattern"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),Et=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Lt=(()=>{class M extends d.l9{get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(i){this._setOption("alignItemLabels",i)}get badge(){return this._getOption("badge")}set badge(i){this._setOption("badge",i)}get colCount(){return this._getOption("colCount")}set colCount(i){this._setOption("colCount",i)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(i){this._setOption("colCountByScreen",i)}get disabled(){return this._getOption("disabled")}set disabled(i){this._setOption("disabled",i)}get icon(){return this._getOption("icon")}set icon(i){this._setOption("icon",i)}get items(){return this._getOption("items")}set items(i){this._setOption("items",i)}get tabTemplate(){return this._getOption("tabTemplate")}set tabTemplate(i){this._setOption("tabTemplate",i)}get template(){return this._getOption("template")}set template(i){this._setOption("template",i)}get title(){return this._getOption("title")}set title(i){this._setOption("title",i)}get commands(){return this._getOption("commands")}set commands(i){this._setOption("commands",i)}get groups(){return this._getOption("groups")}set groups(i){this._setOption("groups",i)}get name(){return this._getOption("name")}set name(i){this._setOption("name",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),wt=(()=>{class M extends d.l9{get icon(){return this._getOption("icon")}set icon(i){this._setOption("icon",i)}get items(){return this._getOption("items")}set items(i){this._setOption("items",i)}get location(){return this._getOption("location")}set location(i){this._setOption("location",i)}get name(){return this._getOption("name")}set name(i){this._setOption("name",i)}get text(){return this._getOption("text")}set text(i){this._setOption("text",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),Mt=(()=>{class M extends wt{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"commands"}get itemsChildren(){return this._getOption("items")}set itemsChildren(i){this.setChildren("items",i)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-command"]],contentQueries:function(i,$e,ua){if(1&i&&r.wni(ua,gi,4),2&i){let mr;r.mGM(mr=r.lsd())&&($e.itemsChildren=mr)}},inputs:{icon:"icon",items:"items",location:"location",name:"name",text:"text"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),ot=(()=>{class M extends d.l9{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get commands(){return this._getOption("commands")}set commands(i){this._setOption("commands",i)}get title(){return this._getOption("title")}set title(i){this._setOption("title",i)}get category(){return this._getOption("category")}set category(i){this._setOption("category",i)}get displayMode(){return this._getOption("displayMode")}set displayMode(i){this._setOption("displayMode",i)}get expanded(){return this._getOption("expanded")}set expanded(i){this._setOption("expanded",i)}get shapes(){return this._getOption("shapes")}set shapes(i){this._setOption("shapes",i)}get _optionPath(){return"groups"}get commandsChildren(){return this._getOption("commands")}set commandsChildren(i){this.setChildren("commands",i)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-group"]],contentQueries:function(i,$e,ua){if(1&i&&r.wni(ua,Mt,4),2&i){let mr;r.mGM(mr=r.lsd())&&($e.commandsChildren=mr)}},inputs:{commands:"commands",title:"title",category:"category",displayMode:"displayMode",expanded:"expanded",shapes:"shapes"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})();const jt=["*"];let li=(()=>{class M extends Lt{constructor(i,$e,ua,mr,Ll,dl){super(),this.renderer=ua,this.document=mr,this.element=dl,i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this)),Ll.setHost(this)}get _optionPath(){return"tabs"}get itemsChildren(){return this._getOption("items")}set itemsChildren(i){this.setChildren("items",i)}get commandsChildren(){return this._getOption("commands")}set commandsChildren(i){this.setChildren("commands",i)}get groupsChildren(){return this._getOption("groups")}set groupsChildren(i){this.setChildren("groups",i)}setTemplate(i){this.template=i}ngAfterViewInit(){(0,d.ym)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1),r.rXU(r.sFG),r.rXU(L.qQ),r.rXU(d.zF,1),r.rXU(r.aKT))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-tab"]],contentQueries:function(i,$e,ua){if(1&i&&(r.wni(ua,gi,4),r.wni(ua,Mt,4),r.wni(ua,ot,4)),2&i){let mr;r.mGM(mr=r.lsd())&&($e.itemsChildren=mr),r.mGM(mr=r.lsd())&&($e.commandsChildren=mr),r.mGM(mr=r.lsd())&&($e.groupsChildren=mr)}},inputs:{alignItemLabels:"alignItemLabels",badge:"badge",colCount:"colCount",colCountByScreen:"colCountByScreen",disabled:"disabled",icon:"icon",items:"items",tabTemplate:"tabTemplate",template:"template",title:"title",commands:"commands",groups:"groups",name:"name"},features:[r.Jv_([d.fH,d.zF]),r.Vt3],ngContentSelectors:jt,decls:1,vars:0,template:function(i,$e){1&i&&(r.NAR(),r.SdG(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),M})(),an=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),xi=(()=>{class M extends d.l9{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get lat(){return this._getOption("lat")}set lat(i){this._setOption("lat",i)}get lng(){return this._getOption("lng")}set lng(i){this._setOption("lng",i)}get col(){return this._getOption("col")}set col(i){this._setOption("col",i)}get colspan(){return this._getOption("colspan")}set colspan(i){this._setOption("colspan",i)}get row(){return this._getOption("row")}set row(i){this._setOption("row",i)}get rowspan(){return this._getOption("rowspan")}set rowspan(i){this._setOption("rowspan",i)}get screen(){return this._getOption("screen")}set screen(i){this._setOption("screen",i)}get _optionPath(){return"location"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-location"]],inputs:{lat:"lat",lng:"lng",col:"col",colspan:"colspan",row:"row",rowspan:"rowspan",screen:"screen"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})();const Ht=["*"];let gi=(()=>{class M extends Nt{constructor(i,$e,ua,mr,Ll,dl){super(),this.renderer=ua,this.document=mr,this.element=dl,i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this)),Ll.setHost(this)}get _optionPath(){return"items"}get itemsChildren(){return this._getOption("items")}set itemsChildren(i){this.setChildren("items",i)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(i){this.setChildren("validationRules",i)}get tabsChildren(){return this._getOption("tabs")}set tabsChildren(i){this.setChildren("tabs",i)}get locationChildren(){return this._getOption("location")}set locationChildren(i){this.setChildren("location",i)}setTemplate(i){this.template=i}ngAfterViewInit(){(0,d.ym)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1),r.rXU(r.sFG),r.rXU(L.qQ),r.rXU(d.zF,1),r.rXU(r.aKT))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-item"]],contentQueries:function(i,$e,ua){if(1&i&&(r.wni(ua,M,4),r.wni(ua,Qe,4),r.wni(ua,li,4),r.wni(ua,xi,4)),2&i){let mr;r.mGM(mr=r.lsd())&&($e.itemsChildren=mr),r.mGM(mr=r.lsd())&&($e.validationRulesChildren=mr),r.mGM(mr=r.lsd())&&($e.tabsChildren=mr),r.mGM(mr=r.lsd())&&($e.locationChildren=mr)}},inputs:{disabled:"disabled",html:"html",icon:"icon",template:"template",text:"text",title:"title",titleTemplate:"titleTemplate",visible:"visible",onClick:"onClick",stylingMode:"stylingMode",type:"type",baseSize:"baseSize",box:"box",ratio:"ratio",shrink:"shrink",elementAttr:"elementAttr",hint:"hint",beginGroup:"beginGroup",closeMenuOnClick:"closeMenuOnClick",items:"items",selectable:"selectable",selected:"selected",colSpan:"colSpan",cssClass:"cssClass",dataField:"dataField",editorOptions:"editorOptions",editorType:"editorType",helpText:"helpText",isRequired:"isRequired",itemType:"itemType",label:"label",name:"name",validationRules:"validationRules",visibleIndex:"visibleIndex",alignItemLabels:"alignItemLabels",caption:"caption",colCount:"colCount",colCountByScreen:"colCountByScreen",tabPanelOptions:"tabPanelOptions",tabs:"tabs",badge:"badge",tabTemplate:"tabTemplate",buttonOptions:"buttonOptions",horizontalAlignment:"horizontalAlignment",verticalAlignment:"verticalAlignment",locateInMenu:"locateInMenu",location:"location",menuItemTemplate:"menuItemTemplate",options:"options",showText:"showText",widget:"widget",height:"height",width:"width",imageAlt:"imageAlt",imageSrc:"imageSrc",acceptedValues:"acceptedValues",formatName:"formatName",formatValues:"formatValues",key:"key",showChevron:"showChevron",linkAttr:"linkAttr",url:"url",heightRatio:"heightRatio",widthRatio:"widthRatio",expanded:"expanded",hasItems:"hasItems",id:"id",parentId:"parentId"},features:[r.Jv_([d.fH,d.zF]),r.Vt3],ngContentSelectors:Ht,decls:1,vars:0,template:function(i,$e){1&i&&(r.NAR(),r.SdG(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),M})(),Ti=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),cn=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Xi=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Qi=(()=>{class M extends d.l9{get location(){return this._getOption("location")}set location(i){this._setOption("location",i)}get name(){return this._getOption("name")}set name(i){this._setOption("name",i)}get options(){return this._getOption("options")}set options(i){this._setOption("options",i)}get cssClass(){return this._getOption("cssClass")}set cssClass(i){this._setOption("cssClass",i)}get disabled(){return this._getOption("disabled")}set disabled(i){this._setOption("disabled",i)}get hint(){return this._getOption("hint")}set hint(i){this._setOption("hint",i)}get icon(){return this._getOption("icon")}set icon(i){this._setOption("icon",i)}get onClick(){return this._getOption("onClick")}set onClick(i){this._setOption("onClick",i)}get template(){return this._getOption("template")}set template(i){this._setOption("template",i)}get text(){return this._getOption("text")}set text(i){this._setOption("text",i)}get visible(){return this._getOption("visible")}set visible(i){this._setOption("visible",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),Ut=(()=>{class M extends Qi{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"buttons"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-button"]],inputs:{location:"location",name:"name",options:"options",cssClass:"cssClass",disabled:"disabled",hint:"hint",icon:"icon",onClick:"onClick",template:"template",text:"text",visible:"visible"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),It=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),st=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),gt=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),qi=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Wi=(()=>{class M extends d.l9{get aggregation(){return this._getOption("aggregation")}set aggregation(i){this._setOption("aggregation",i)}get argumentField(){return this._getOption("argumentField")}set argumentField(i){this._setOption("argumentField",i)}get axis(){return this._getOption("axis")}set axis(i){this._setOption("axis",i)}get barOverlapGroup(){return this._getOption("barOverlapGroup")}set barOverlapGroup(i){this._setOption("barOverlapGroup",i)}get barPadding(){return this._getOption("barPadding")}set barPadding(i){this._setOption("barPadding",i)}get barWidth(){return this._getOption("barWidth")}set barWidth(i){this._setOption("barWidth",i)}get border(){return this._getOption("border")}set border(i){this._setOption("border",i)}get closeValueField(){return this._getOption("closeValueField")}set closeValueField(i){this._setOption("closeValueField",i)}get color(){return this._getOption("color")}set color(i){this._setOption("color",i)}get cornerRadius(){return this._getOption("cornerRadius")}set cornerRadius(i){this._setOption("cornerRadius",i)}get dashStyle(){return this._getOption("dashStyle")}set dashStyle(i){this._setOption("dashStyle",i)}get highValueField(){return this._getOption("highValueField")}set highValueField(i){this._setOption("highValueField",i)}get hoverMode(){return this._getOption("hoverMode")}set hoverMode(i){this._setOption("hoverMode",i)}get hoverStyle(){return this._getOption("hoverStyle")}set hoverStyle(i){this._setOption("hoverStyle",i)}get ignoreEmptyPoints(){return this._getOption("ignoreEmptyPoints")}set ignoreEmptyPoints(i){this._setOption("ignoreEmptyPoints",i)}get innerColor(){return this._getOption("innerColor")}set innerColor(i){this._setOption("innerColor",i)}get label(){return this._getOption("label")}set label(i){this._setOption("label",i)}get lowValueField(){return this._getOption("lowValueField")}set lowValueField(i){this._setOption("lowValueField",i)}get maxLabelCount(){return this._getOption("maxLabelCount")}set maxLabelCount(i){this._setOption("maxLabelCount",i)}get minBarSize(){return this._getOption("minBarSize")}set minBarSize(i){this._setOption("minBarSize",i)}get name(){return this._getOption("name")}set name(i){this._setOption("name",i)}get opacity(){return this._getOption("opacity")}set opacity(i){this._setOption("opacity",i)}get openValueField(){return this._getOption("openValueField")}set openValueField(i){this._setOption("openValueField",i)}get pane(){return this._getOption("pane")}set pane(i){this._setOption("pane",i)}get point(){return this._getOption("point")}set point(i){this._setOption("point",i)}get rangeValue1Field(){return this._getOption("rangeValue1Field")}set rangeValue1Field(i){this._setOption("rangeValue1Field",i)}get rangeValue2Field(){return this._getOption("rangeValue2Field")}set rangeValue2Field(i){this._setOption("rangeValue2Field",i)}get reduction(){return this._getOption("reduction")}set reduction(i){this._setOption("reduction",i)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(i){this._setOption("selectionMode",i)}get selectionStyle(){return this._getOption("selectionStyle")}set selectionStyle(i){this._setOption("selectionStyle",i)}get showInLegend(){return this._getOption("showInLegend")}set showInLegend(i){this._setOption("showInLegend",i)}get sizeField(){return this._getOption("sizeField")}set sizeField(i){this._setOption("sizeField",i)}get stack(){return this._getOption("stack")}set stack(i){this._setOption("stack",i)}get tag(){return this._getOption("tag")}set tag(i){this._setOption("tag",i)}get tagField(){return this._getOption("tagField")}set tagField(i){this._setOption("tagField",i)}get type(){return this._getOption("type")}set type(i){this._setOption("type",i)}get valueErrorBar(){return this._getOption("valueErrorBar")}set valueErrorBar(i){this._setOption("valueErrorBar",i)}get valueField(){return this._getOption("valueField")}set valueField(i){this._setOption("valueField",i)}get visible(){return this._getOption("visible")}set visible(i){this._setOption("visible",i)}get width(){return this._getOption("width")}set width(i){this._setOption("width",i)}get argumentType(){return this._getOption("argumentType")}set argumentType(i){this._setOption("argumentType",i)}get minSegmentSize(){return this._getOption("minSegmentSize")}set minSegmentSize(i){this._setOption("minSegmentSize",i)}get smallValuesGrouping(){return this._getOption("smallValuesGrouping")}set smallValuesGrouping(i){this._setOption("smallValuesGrouping",i)}get closed(){return this._getOption("closed")}set closed(i){this._setOption("closed",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),yn=(()=>{class M extends Wi{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"series"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-series"]],inputs:{aggregation:"aggregation",argumentField:"argumentField",axis:"axis",barOverlapGroup:"barOverlapGroup",barPadding:"barPadding",barWidth:"barWidth",border:"border",closeValueField:"closeValueField",color:"color",cornerRadius:"cornerRadius",dashStyle:"dashStyle",highValueField:"highValueField",hoverMode:"hoverMode",hoverStyle:"hoverStyle",ignoreEmptyPoints:"ignoreEmptyPoints",innerColor:"innerColor",label:"label",lowValueField:"lowValueField",maxLabelCount:"maxLabelCount",minBarSize:"minBarSize",name:"name",opacity:"opacity",openValueField:"openValueField",pane:"pane",point:"point",rangeValue1Field:"rangeValue1Field",rangeValue2Field:"rangeValue2Field",reduction:"reduction",selectionMode:"selectionMode",selectionStyle:"selectionStyle",showInLegend:"showInLegend",sizeField:"sizeField",stack:"stack",tag:"tag",tagField:"tagField",type:"type",valueErrorBar:"valueErrorBar",valueField:"valueField",visible:"visible",width:"width",argumentType:"argumentType",minSegmentSize:"minSegmentSize",smallValuesGrouping:"smallValuesGrouping",closed:"closed"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),Ur=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),sa=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Na=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Eo=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),si=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Dt=(()=>{class M extends d.l9{get alignment(){return this._getOption("alignment")}set alignment(i){this._setOption("alignment",i)}get allowEditing(){return this._getOption("allowEditing")}set allowEditing(i){this._setOption("allowEditing",i)}get allowExporting(){return this._getOption("allowExporting")}set allowExporting(i){this._setOption("allowExporting",i)}get allowFiltering(){return this._getOption("allowFiltering")}set allowFiltering(i){this._setOption("allowFiltering",i)}get allowFixing(){return this._getOption("allowFixing")}set allowFixing(i){this._setOption("allowFixing",i)}get allowGrouping(){return this._getOption("allowGrouping")}set allowGrouping(i){this._setOption("allowGrouping",i)}get allowHeaderFiltering(){return this._getOption("allowHeaderFiltering")}set allowHeaderFiltering(i){this._setOption("allowHeaderFiltering",i)}get allowHiding(){return this._getOption("allowHiding")}set allowHiding(i){this._setOption("allowHiding",i)}get allowReordering(){return this._getOption("allowReordering")}set allowReordering(i){this._setOption("allowReordering",i)}get allowResizing(){return this._getOption("allowResizing")}set allowResizing(i){this._setOption("allowResizing",i)}get allowSearch(){return this._getOption("allowSearch")}set allowSearch(i){this._setOption("allowSearch",i)}get allowSorting(){return this._getOption("allowSorting")}set allowSorting(i){this._setOption("allowSorting",i)}get autoExpandGroup(){return this._getOption("autoExpandGroup")}set autoExpandGroup(i){this._setOption("autoExpandGroup",i)}get buttons(){return this._getOption("buttons")}set buttons(i){this._setOption("buttons",i)}get calculateCellValue(){return this._getOption("calculateCellValue")}set calculateCellValue(i){this._setOption("calculateCellValue",i)}get calculateDisplayValue(){return this._getOption("calculateDisplayValue")}set calculateDisplayValue(i){this._setOption("calculateDisplayValue",i)}get calculateFilterExpression(){return this._getOption("calculateFilterExpression")}set calculateFilterExpression(i){this._setOption("calculateFilterExpression",i)}get calculateGroupValue(){return this._getOption("calculateGroupValue")}set calculateGroupValue(i){this._setOption("calculateGroupValue",i)}get calculateSortValue(){return this._getOption("calculateSortValue")}set calculateSortValue(i){this._setOption("calculateSortValue",i)}get caption(){return this._getOption("caption")}set caption(i){this._setOption("caption",i)}get cellTemplate(){return this._getOption("cellTemplate")}set cellTemplate(i){this._setOption("cellTemplate",i)}get columns(){return this._getOption("columns")}set columns(i){this._setOption("columns",i)}get cssClass(){return this._getOption("cssClass")}set cssClass(i){this._setOption("cssClass",i)}get customizeText(){return this._getOption("customizeText")}set customizeText(i){this._setOption("customizeText",i)}get dataField(){return this._getOption("dataField")}set dataField(i){this._setOption("dataField",i)}get dataType(){return this._getOption("dataType")}set dataType(i){this._setOption("dataType",i)}get editCellTemplate(){return this._getOption("editCellTemplate")}set editCellTemplate(i){this._setOption("editCellTemplate",i)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(i){this._setOption("editorOptions",i)}get encodeHtml(){return this._getOption("encodeHtml")}set encodeHtml(i){this._setOption("encodeHtml",i)}get falseText(){return this._getOption("falseText")}set falseText(i){this._setOption("falseText",i)}get filterOperations(){return this._getOption("filterOperations")}set filterOperations(i){this._setOption("filterOperations",i)}get filterType(){return this._getOption("filterType")}set filterType(i){this._setOption("filterType",i)}get filterValue(){return this._getOption("filterValue")}set filterValue(i){this._setOption("filterValue",i)}get filterValues(){return this._getOption("filterValues")}set filterValues(i){this._setOption("filterValues",i)}get fixed(){return this._getOption("fixed")}set fixed(i){this._setOption("fixed",i)}get fixedPosition(){return this._getOption("fixedPosition")}set fixedPosition(i){this._setOption("fixedPosition",i)}get format(){return this._getOption("format")}set format(i){this._setOption("format",i)}get formItem(){return this._getOption("formItem")}set formItem(i){this._setOption("formItem",i)}get groupCellTemplate(){return this._getOption("groupCellTemplate")}set groupCellTemplate(i){this._setOption("groupCellTemplate",i)}get groupIndex(){return this._getOption("groupIndex")}set groupIndex(i){this._setOption("groupIndex",i)}get headerCellTemplate(){return this._getOption("headerCellTemplate")}set headerCellTemplate(i){this._setOption("headerCellTemplate",i)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(i){this._setOption("headerFilter",i)}get hidingPriority(){return this._getOption("hidingPriority")}set hidingPriority(i){this._setOption("hidingPriority",i)}get isBand(){return this._getOption("isBand")}set isBand(i){this._setOption("isBand",i)}get lookup(){return this._getOption("lookup")}set lookup(i){this._setOption("lookup",i)}get minWidth(){return this._getOption("minWidth")}set minWidth(i){this._setOption("minWidth",i)}get name(){return this._getOption("name")}set name(i){this._setOption("name",i)}get ownerBand(){return this._getOption("ownerBand")}set ownerBand(i){this._setOption("ownerBand",i)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(i){this._setOption("renderAsync",i)}get selectedFilterOperation(){return this._getOption("selectedFilterOperation")}set selectedFilterOperation(i){this._setOption("selectedFilterOperation",i)}get setCellValue(){return this._getOption("setCellValue")}set setCellValue(i){this._setOption("setCellValue",i)}get showEditorAlways(){return this._getOption("showEditorAlways")}set showEditorAlways(i){this._setOption("showEditorAlways",i)}get showInColumnChooser(){return this._getOption("showInColumnChooser")}set showInColumnChooser(i){this._setOption("showInColumnChooser",i)}get showWhenGrouped(){return this._getOption("showWhenGrouped")}set showWhenGrouped(i){this._setOption("showWhenGrouped",i)}get sortIndex(){return this._getOption("sortIndex")}set sortIndex(i){this._setOption("sortIndex",i)}get sortingMethod(){return this._getOption("sortingMethod")}set sortingMethod(i){this._setOption("sortingMethod",i)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(i){this._setOption("sortOrder",i)}get trueText(){return this._getOption("trueText")}set trueText(i){this._setOption("trueText",i)}get type(){return this._getOption("type")}set type(i){this._setOption("type",i)}get validationRules(){return this._getOption("validationRules")}set validationRules(i){this._setOption("validationRules",i)}get visible(){return this._getOption("visible")}set visible(i){this._setOption("visible",i)}get visibleIndex(){return this._getOption("visibleIndex")}set visibleIndex(i){this._setOption("visibleIndex",i)}get width(){return this._getOption("width")}set width(i){this._setOption("width",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),Pi=(()=>{class M extends Dt{constructor(i,$e){super(),this._createEventEmitters([{emit:"filterValueChange"},{emit:"filterValuesChange"},{emit:"groupIndexChange"},{emit:"selectedFilterOperationChange"},{emit:"sortIndexChange"},{emit:"sortOrderChange"},{emit:"visibleChange"},{emit:"visibleIndexChange"}]),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"columns"}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(i){this.setChildren("buttons",i)}get columnsChildren(){return this._getOption("columns")}set columnsChildren(i){this.setChildren("columns",i)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(i){this.setChildren("validationRules",i)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-column"]],contentQueries:function(i,$e,ua){if(1&i&&(r.wni(ua,Ut,4),r.wni(ua,M,4),r.wni(ua,Qe,4)),2&i){let mr;r.mGM(mr=r.lsd())&&($e.buttonsChildren=mr),r.mGM(mr=r.lsd())&&($e.columnsChildren=mr),r.mGM(mr=r.lsd())&&($e.validationRulesChildren=mr)}},inputs:{alignment:"alignment",allowEditing:"allowEditing",allowExporting:"allowExporting",allowFiltering:"allowFiltering",allowFixing:"allowFixing",allowGrouping:"allowGrouping",allowHeaderFiltering:"allowHeaderFiltering",allowHiding:"allowHiding",allowReordering:"allowReordering",allowResizing:"allowResizing",allowSearch:"allowSearch",allowSorting:"allowSorting",autoExpandGroup:"autoExpandGroup",buttons:"buttons",calculateCellValue:"calculateCellValue",calculateDisplayValue:"calculateDisplayValue",calculateFilterExpression:"calculateFilterExpression",calculateGroupValue:"calculateGroupValue",calculateSortValue:"calculateSortValue",caption:"caption",cellTemplate:"cellTemplate",columns:"columns",cssClass:"cssClass",customizeText:"customizeText",dataField:"dataField",dataType:"dataType",editCellTemplate:"editCellTemplate",editorOptions:"editorOptions",encodeHtml:"encodeHtml",falseText:"falseText",filterOperations:"filterOperations",filterType:"filterType",filterValue:"filterValue",filterValues:"filterValues",fixed:"fixed",fixedPosition:"fixedPosition",format:"format",formItem:"formItem",groupCellTemplate:"groupCellTemplate",groupIndex:"groupIndex",headerCellTemplate:"headerCellTemplate",headerFilter:"headerFilter",hidingPriority:"hidingPriority",isBand:"isBand",lookup:"lookup",minWidth:"minWidth",name:"name",ownerBand:"ownerBand",renderAsync:"renderAsync",selectedFilterOperation:"selectedFilterOperation",setCellValue:"setCellValue",showEditorAlways:"showEditorAlways",showInColumnChooser:"showInColumnChooser",showWhenGrouped:"showWhenGrouped",sortIndex:"sortIndex",sortingMethod:"sortingMethod",sortOrder:"sortOrder",trueText:"trueText",type:"type",validationRules:"validationRules",visible:"visible",visibleIndex:"visibleIndex",width:"width"},outputs:{filterValueChange:"filterValueChange",filterValuesChange:"filterValuesChange",groupIndexChange:"groupIndexChange",selectedFilterOperationChange:"selectedFilterOperationChange",sortIndexChange:"sortIndexChange",sortOrderChange:"sortOrderChange",visibleChange:"visibleChange",visibleIndexChange:"visibleIndexChange"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),ln=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),jn=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),ri=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Ri=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),wn=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),En=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Fa=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),_o=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Ao=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),us=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),El=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Zs=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),hs=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Ba=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),qs=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),yl=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Hs=(()=>{class M extends d.t${constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get backgroundColor(){return this._getOption("backgroundColor")}set backgroundColor(i){this._setOption("backgroundColor",i)}get enabled(){return this._getOption("enabled")}set enabled(i){this._setOption("enabled",i)}get fileName(){return this._getOption("fileName")}set fileName(i){this._setOption("fileName",i)}get formats(){return this._getOption("formats")}set formats(i){this._setOption("formats",i)}get margin(){return this._getOption("margin")}set margin(i){this._setOption("margin",i)}get printingEnabled(){return this._getOption("printingEnabled")}set printingEnabled(i){this._setOption("printingEnabled",i)}get svgToCanvas(){return this._getOption("svgToCanvas")}set svgToCanvas(i){this._setOption("svgToCanvas",i)}get allowExportSelectedData(){return this._getOption("allowExportSelectedData")}set allowExportSelectedData(i){this._setOption("allowExportSelectedData",i)}get texts(){return this._getOption("texts")}set texts(i){this._setOption("texts",i)}get _optionPath(){return"export"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxo-export"]],inputs:{backgroundColor:"backgroundColor",enabled:"enabled",fileName:"fileName",formats:"formats",margin:"margin",printingEnabled:"printingEnabled",svgToCanvas:"svgToCanvas",allowExportSelectedData:"allowExportSelectedData",texts:"texts"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),hl=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),vc=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),yc=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Ol=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),ks=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),oi=(()=>{class M extends d.t${get applyFilter(){return this._getOption("applyFilter")}set applyFilter(i){this._setOption("applyFilter",i)}get applyFilterText(){return this._getOption("applyFilterText")}set applyFilterText(i){this._setOption("applyFilterText",i)}get betweenEndText(){return this._getOption("betweenEndText")}set betweenEndText(i){this._setOption("betweenEndText",i)}get betweenStartText(){return this._getOption("betweenStartText")}set betweenStartText(i){this._setOption("betweenStartText",i)}get operationDescriptions(){return this._getOption("operationDescriptions")}set operationDescriptions(i){this._setOption("operationDescriptions",i)}get resetOperationText(){return this._getOption("resetOperationText")}set resetOperationText(i){this._setOption("resetOperationText",i)}get showAllText(){return this._getOption("showAllText")}set showAllText(i){this._setOption("showAllText",i)}get showOperationChooser(){return this._getOption("showOperationChooser")}set showOperationChooser(i){this._setOption("showOperationChooser",i)}get visible(){return this._getOption("visible")}set visible(i){this._setOption("visible",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),yi=(()=>{class M extends oi{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"filterRow"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxo-filter-row"]],inputs:{applyFilter:"applyFilter",applyFilterText:"applyFilterText",betweenEndText:"betweenEndText",betweenStartText:"betweenStartText",operationDescriptions:"operationDescriptions",resetOperationText:"resetOperationText",showAllText:"showAllText",showOperationChooser:"showOperationChooser",visible:"visible"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),zt=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),vo=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),xd=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Cs=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),ou=(()=>{class M extends we{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"format"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxo-format"]],inputs:{currency:"currency",formatter:"formatter",parser:"parser",precision:"precision",type:"type",useCurrencyAccountingStyle:"useCurrencyAccountingStyle"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),uh=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Yt=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),_n=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),ea=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Io=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Ys=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),td=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),id=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),su=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),lp=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Hc=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),hh=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Vl=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Jc=(()=>{class M extends d.t${get allowSearch(){return this._getOption("allowSearch")}set allowSearch(i){this._setOption("allowSearch",i)}get allowSelectAll(){return this._getOption("allowSelectAll")}set allowSelectAll(i){this._setOption("allowSelectAll",i)}get dataSource(){return this._getOption("dataSource")}set dataSource(i){this._setOption("dataSource",i)}get groupInterval(){return this._getOption("groupInterval")}set groupInterval(i){this._setOption("groupInterval",i)}get height(){return this._getOption("height")}set height(i){this._setOption("height",i)}get search(){return this._getOption("search")}set search(i){this._setOption("search",i)}get searchMode(){return this._getOption("searchMode")}set searchMode(i){this._setOption("searchMode",i)}get width(){return this._getOption("width")}set width(i){this._setOption("width",i)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(i){this._setOption("searchTimeout",i)}get texts(){return this._getOption("texts")}set texts(i){this._setOption("texts",i)}get visible(){return this._getOption("visible")}set visible(i){this._setOption("visible",i)}get showRelevantValues(){return this._getOption("showRelevantValues")}set showRelevantValues(i){this._setOption("showRelevantValues",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),Cp=(()=>{class M extends Jc{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"headerFilter"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxo-header-filter"]],inputs:{allowSearch:"allowSearch",allowSelectAll:"allowSelectAll",dataSource:"dataSource",groupInterval:"groupInterval",height:"height",search:"search",searchMode:"searchMode",width:"width",searchTimeout:"searchTimeout",texts:"texts",visible:"visible",showRelevantValues:"showRelevantValues"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),Yp=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),wo=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),$s=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Ot=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Bn=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Yr=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Oo=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Ca=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),zn=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),vr=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),oa=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),nd=(()=>{class M extends d.t${constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get enabled(){return this._getOption("enabled")}set enabled(i){this._setOption("enabled",i)}get height(){return this._getOption("height")}set height(i){this._setOption("height",i)}get indicatorSrc(){return this._getOption("indicatorSrc")}set indicatorSrc(i){this._setOption("indicatorSrc",i)}get shading(){return this._getOption("shading")}set shading(i){this._setOption("shading",i)}get shadingColor(){return this._getOption("shadingColor")}set shadingColor(i){this._setOption("shadingColor",i)}get showIndicator(){return this._getOption("showIndicator")}set showIndicator(i){this._setOption("showIndicator",i)}get showPane(){return this._getOption("showPane")}set showPane(i){this._setOption("showPane",i)}get text(){return this._getOption("text")}set text(i){this._setOption("text",i)}get width(){return this._getOption("width")}set width(i){this._setOption("width",i)}get _optionPath(){return"loadPanel"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxo-load-panel"]],inputs:{enabled:"enabled",height:"height",indicatorSrc:"indicatorSrc",shading:"shading",shadingColor:"shadingColor",showIndicator:"showIndicator",showPane:"showPane",text:"text",width:"width"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),Zr=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),hd=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Zc=(()=>{class M extends d.t${constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get allowClearing(){return this._getOption("allowClearing")}set allowClearing(i){this._setOption("allowClearing",i)}get calculateCellValue(){return this._getOption("calculateCellValue")}set calculateCellValue(i){this._setOption("calculateCellValue",i)}get dataSource(){return this._getOption("dataSource")}set dataSource(i){this._setOption("dataSource",i)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(i){this._setOption("displayExpr",i)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(i){this._setOption("valueExpr",i)}get _optionPath(){return"lookup"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxo-lookup"]],inputs:{allowClearing:"allowClearing",calculateCellValue:"calculateCellValue",dataSource:"dataSource",displayExpr:"displayExpr",valueExpr:"valueExpr"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),lo=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Ks=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Zd=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),vu=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),eu=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),qu=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),eh=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),mh=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),at=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),zi=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),La=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),pd=(()=>{class M extends d.t${constructor(i,$e){super(),this._createEventEmitters([{emit:"pageIndexChange"},{emit:"pageSizeChange"}]),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get enabled(){return this._getOption("enabled")}set enabled(i){this._setOption("enabled",i)}get pageIndex(){return this._getOption("pageIndex")}set pageIndex(i){this._setOption("pageIndex",i)}get pageSize(){return this._getOption("pageSize")}set pageSize(i){this._setOption("pageSize",i)}get _optionPath(){return"paging"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxo-paging"]],inputs:{enabled:"enabled",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),bu=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),th=(()=>{class M extends d.l9{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get backgroundColor(){return this._getOption("backgroundColor")}set backgroundColor(i){this._setOption("backgroundColor",i)}get border(){return this._getOption("border")}set border(i){this._setOption("border",i)}get height(){return this._getOption("height")}set height(i){this._setOption("height",i)}get name(){return this._getOption("name")}set name(i){this._setOption("name",i)}get _optionPath(){return"panes"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-pane"]],inputs:{backgroundColor:"backgroundColor",border:"border",height:"height",name:"name"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),gh=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Jp=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),du=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),yu=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Yh=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Gc=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Zp=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Ad=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Uo=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),je=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Pt=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Zt=(()=>{class M extends d.t${get columnRenderingMode(){return this._getOption("columnRenderingMode")}set columnRenderingMode(i){this._setOption("columnRenderingMode",i)}get mode(){return this._getOption("mode")}set mode(i){this._setOption("mode",i)}get preloadEnabled(){return this._getOption("preloadEnabled")}set preloadEnabled(i){this._setOption("preloadEnabled",i)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(i){this._setOption("renderAsync",i)}get rowRenderingMode(){return this._getOption("rowRenderingMode")}set rowRenderingMode(i){this._setOption("rowRenderingMode",i)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(i){this._setOption("scrollByContent",i)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(i){this._setOption("scrollByThumb",i)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(i){this._setOption("showScrollbar",i)}get useNative(){return this._getOption("useNative")}set useNative(i){this._setOption("useNative",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),fi=(()=>{class M extends Zt{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"scrolling"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxo-scrolling"]],inputs:{columnRenderingMode:"columnRenderingMode",mode:"mode",preloadEnabled:"preloadEnabled",renderAsync:"renderAsync",rowRenderingMode:"rowRenderingMode",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",showScrollbar:"showScrollbar",useNative:"useNative"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),Jt=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),$i=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Fn=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Vr=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),sr=(()=>{class M extends d.t${get allowSelectAll(){return this._getOption("allowSelectAll")}set allowSelectAll(i){this._setOption("allowSelectAll",i)}get recursive(){return this._getOption("recursive")}set recursive(i){this._setOption("recursive",i)}get selectByClick(){return this._getOption("selectByClick")}set selectByClick(i){this._setOption("selectByClick",i)}get deferred(){return this._getOption("deferred")}set deferred(i){this._setOption("deferred",i)}get mode(){return this._getOption("mode")}set mode(i){this._setOption("mode",i)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(i){this._setOption("selectAllMode",i)}get showCheckBoxesMode(){return this._getOption("showCheckBoxesMode")}set showCheckBoxesMode(i){this._setOption("showCheckBoxesMode",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),Rn=(()=>{class M extends sr{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"selection"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxo-selection"]],inputs:{allowSelectAll:"allowSelectAll",recursive:"recursive",selectByClick:"selectByClick",deferred:"deferred",mode:"mode",selectAllMode:"selectAllMode",showCheckBoxesMode:"showCheckBoxesMode"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),Nr=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),mn=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Hn=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Rr=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Ja=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Jn=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),_a=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Xa=(()=>{class M extends d.l9{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get groupColumn(){return this._getOption("groupColumn")}set groupColumn(i){this._setOption("groupColumn",i)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(i){this._setOption("sortOrder",i)}get summaryItem(){return this._getOption("summaryItem")}set summaryItem(i){this._setOption("summaryItem",i)}get _optionPath(){return"sortByGroupSummaryInfo"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-sort-by-group-summary-info"]],inputs:{groupColumn:"groupColumn",sortOrder:"sortOrder",summaryItem:"summaryItem"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),Oa=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),as=(()=>{class M extends d.t${get ascendingText(){return this._getOption("ascendingText")}set ascendingText(i){this._setOption("ascendingText",i)}get clearText(){return this._getOption("clearText")}set clearText(i){this._setOption("clearText",i)}get descendingText(){return this._getOption("descendingText")}set descendingText(i){this._setOption("descendingText",i)}get mode(){return this._getOption("mode")}set mode(i){this._setOption("mode",i)}get showSortIndexes(){return this._getOption("showSortIndexes")}set showSortIndexes(i){this._setOption("showSortIndexes",i)}}return M.\u0275fac=function(){let Ae;return function($e){return(Ae||(Ae=r.xGo(M)))($e||M)}}(),M.\u0275cmp=r.VBU({type:M,selectors:[["ng-component"]],features:[r.Vt3],decls:0,vars:0,template:function(i,$e){},encapsulation:2}),M})(),Jr=(()=>{class M extends as{constructor(i,$e){super(),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"sorting"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxo-sorting"]],inputs:{ascendingText:"ascendingText",clearText:"clearText",descendingText:"descendingText",mode:"mode",showSortIndexes:"showSortIndexes"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),Pn=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),ka=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),qa=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Jo=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Us=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),gl=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),bs=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),wc=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),xu=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),fd=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),nl=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),rd=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Sc=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),ad=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Sd=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),ec=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Ed=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Jh=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Dp=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),en=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),ti=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),cr=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Bs=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Zh=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),r_=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Mp=(()=>{class M extends d.l9{constructor(i,$e){super(),this._createEventEmitters([{emit:"categoriesChange"},{emit:"visualRangeChange"}]),i.setNestedOption(this),$e.setHost(this,this._fullOptionPath.bind(this))}get aggregatedPointsPosition(){return this._getOption("aggregatedPointsPosition")}set aggregatedPointsPosition(i){this._setOption("aggregatedPointsPosition",i)}get allowDecimals(){return this._getOption("allowDecimals")}set allowDecimals(i){this._setOption("allowDecimals",i)}get autoBreaksEnabled(){return this._getOption("autoBreaksEnabled")}set autoBreaksEnabled(i){this._setOption("autoBreaksEnabled",i)}get axisDivisionFactor(){return this._getOption("axisDivisionFactor")}set axisDivisionFactor(i){this._setOption("axisDivisionFactor",i)}get breaks(){return this._getOption("breaks")}set breaks(i){this._setOption("breaks",i)}get breakStyle(){return this._getOption("breakStyle")}set breakStyle(i){this._setOption("breakStyle",i)}get categories(){return this._getOption("categories")}set categories(i){this._setOption("categories",i)}get color(){return this._getOption("color")}set color(i){this._setOption("color",i)}get constantLines(){return this._getOption("constantLines")}set constantLines(i){this._setOption("constantLines",i)}get constantLineStyle(){return this._getOption("constantLineStyle")}set constantLineStyle(i){this._setOption("constantLineStyle",i)}get customPosition(){return this._getOption("customPosition")}set customPosition(i){this._setOption("customPosition",i)}get discreteAxisDivisionMode(){return this._getOption("discreteAxisDivisionMode")}set discreteAxisDivisionMode(i){this._setOption("discreteAxisDivisionMode",i)}get endOnTick(){return this._getOption("endOnTick")}set endOnTick(i){this._setOption("endOnTick",i)}get grid(){return this._getOption("grid")}set grid(i){this._setOption("grid",i)}get inverted(){return this._getOption("inverted")}set inverted(i){this._setOption("inverted",i)}get label(){return this._getOption("label")}set label(i){this._setOption("label",i)}get linearThreshold(){return this._getOption("linearThreshold")}set linearThreshold(i){this._setOption("linearThreshold",i)}get logarithmBase(){return this._getOption("logarithmBase")}set logarithmBase(i){this._setOption("logarithmBase",i)}get maxAutoBreakCount(){return this._getOption("maxAutoBreakCount")}set maxAutoBreakCount(i){this._setOption("maxAutoBreakCount",i)}get maxValueMargin(){return this._getOption("maxValueMargin")}set maxValueMargin(i){this._setOption("maxValueMargin",i)}get minorGrid(){return this._getOption("minorGrid")}set minorGrid(i){this._setOption("minorGrid",i)}get minorTick(){return this._getOption("minorTick")}set minorTick(i){this._setOption("minorTick",i)}get minorTickCount(){return this._getOption("minorTickCount")}set minorTickCount(i){this._setOption("minorTickCount",i)}get minorTickInterval(){return this._getOption("minorTickInterval")}set minorTickInterval(i){this._setOption("minorTickInterval",i)}get minValueMargin(){return this._getOption("minValueMargin")}set minValueMargin(i){this._setOption("minValueMargin",i)}get minVisualRangeLength(){return this._getOption("minVisualRangeLength")}set minVisualRangeLength(i){this._setOption("minVisualRangeLength",i)}get multipleAxesSpacing(){return this._getOption("multipleAxesSpacing")}set multipleAxesSpacing(i){this._setOption("multipleAxesSpacing",i)}get name(){return this._getOption("name")}set name(i){this._setOption("name",i)}get offset(){return this._getOption("offset")}set offset(i){this._setOption("offset",i)}get opacity(){return this._getOption("opacity")}set opacity(i){this._setOption("opacity",i)}get pane(){return this._getOption("pane")}set pane(i){this._setOption("pane",i)}get placeholderSize(){return this._getOption("placeholderSize")}set placeholderSize(i){this._setOption("placeholderSize",i)}get position(){return this._getOption("position")}set position(i){this._setOption("position",i)}get showZero(){return this._getOption("showZero")}set showZero(i){this._setOption("showZero",i)}get strips(){return this._getOption("strips")}set strips(i){this._setOption("strips",i)}get stripStyle(){return this._getOption("stripStyle")}set stripStyle(i){this._setOption("stripStyle",i)}get synchronizedValue(){return this._getOption("synchronizedValue")}set synchronizedValue(i){this._setOption("synchronizedValue",i)}get tick(){return this._getOption("tick")}set tick(i){this._setOption("tick",i)}get tickInterval(){return this._getOption("tickInterval")}set tickInterval(i){this._setOption("tickInterval",i)}get title(){return this._getOption("title")}set title(i){this._setOption("title",i)}get type(){return this._getOption("type")}set type(i){this._setOption("type",i)}get valueMarginsEnabled(){return this._getOption("valueMarginsEnabled")}set valueMarginsEnabled(i){this._setOption("valueMarginsEnabled",i)}get valueType(){return this._getOption("valueType")}set valueType(i){this._setOption("valueType",i)}get visible(){return this._getOption("visible")}set visible(i){this._setOption("visible",i)}get visualRange(){return this._getOption("visualRange")}set visualRange(i){this._setOption("visualRange",i)}get visualRangeUpdateMode(){return this._getOption("visualRangeUpdateMode")}set visualRangeUpdateMode(i){this._setOption("visualRangeUpdateMode",i)}get wholeRange(){return this._getOption("wholeRange")}set wholeRange(i){this._setOption("wholeRange",i)}get width(){return this._getOption("width")}set width(i){this._setOption("width",i)}get _optionPath(){return"valueAxis"}get breaksChildren(){return this._getOption("breaks")}set breaksChildren(i){this.setChildren("breaks",i)}get constantLinesChildren(){return this._getOption("constantLines")}set constantLinesChildren(i){this.setChildren("constantLines",i)}get stripsChildren(){return this._getOption("strips")}set stripsChildren(i){this.setChildren("strips",i)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return M.\u0275fac=function(i){return new(i||M)(r.rXU(d.fH,5),r.rXU(d.fH,1))},M.\u0275cmp=r.VBU({type:M,selectors:[["dxi-value-axis"]],contentQueries:function(i,$e,ua){if(1&i&&(r.wni(ua,ie,4),r.wni(ua,re,4),r.wni(ua,_e,4)),2&i){let mr;r.mGM(mr=r.lsd())&&($e.breaksChildren=mr),r.mGM(mr=r.lsd())&&($e.constantLinesChildren=mr),r.mGM(mr=r.lsd())&&($e.stripsChildren=mr)}},inputs:{aggregatedPointsPosition:"aggregatedPointsPosition",allowDecimals:"allowDecimals",autoBreaksEnabled:"autoBreaksEnabled",axisDivisionFactor:"axisDivisionFactor",breaks:"breaks",breakStyle:"breakStyle",categories:"categories",color:"color",constantLines:"constantLines",constantLineStyle:"constantLineStyle",customPosition:"customPosition",discreteAxisDivisionMode:"discreteAxisDivisionMode",endOnTick:"endOnTick",grid:"grid",inverted:"inverted",label:"label",linearThreshold:"linearThreshold",logarithmBase:"logarithmBase",maxAutoBreakCount:"maxAutoBreakCount",maxValueMargin:"maxValueMargin",minorGrid:"minorGrid",minorTick:"minorTick",minorTickCount:"minorTickCount",minorTickInterval:"minorTickInterval",minValueMargin:"minValueMargin",minVisualRangeLength:"minVisualRangeLength",multipleAxesSpacing:"multipleAxesSpacing",name:"name",offset:"offset",opacity:"opacity",pane:"pane",placeholderSize:"placeholderSize",position:"position",showZero:"showZero",strips:"strips",stripStyle:"stripStyle",synchronizedValue:"synchronizedValue",tick:"tick",tickInterval:"tickInterval",title:"title",type:"type",valueMarginsEnabled:"valueMarginsEnabled",valueType:"valueType",visible:"visible",visualRange:"visualRange",visualRangeUpdateMode:"visualRangeUpdateMode",wholeRange:"wholeRange",width:"width"},outputs:{categoriesChange:"categoriesChange",visualRangeChange:"visualRangeChange"},features:[r.Jv_([d.fH]),r.Vt3],decls:0,vars:0,template:function(i,$e){},styles:[""]}),M})(),qh=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),Bg=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),vm=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),cu=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),rh=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})(),em=(()=>{class M{}return M.\u0275fac=function(i){return new(i||M)},M.\u0275mod=r.$C({type:M}),M.\u0275inj=r.G2t({}),M})()},37712:(ei,rt,D)=>{"use strict";D.d(rt,{b:()=>Lt,U:()=>wt});var r=D(345),d=D(54438),L=D(24292),j=D(13992),o=D(64905),E=D(87951),R=D(80186),m=D(14435),_=D(60181),v=D(17669),h=D(91269),s=D(12824),b=D(4441),O=D(72463),w=D(22209),f=D(49104),k=D(87310),I=D(64633),x=D(50448),g=D(11299),C=D(58168),F=D(98587),Y=D(5042),Q={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},oe=D(17420),me=["shading","target","$arrow"],we={left:-1,top:-1,center:0,right:1,bottom:1},N={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},G={h:10,v:10};class W extends oe.A{constructor(Ge){var{shading:ot,target:Tt,$arrow:jt}=Ge;super((0,F.A)(Ge,me)),this._props=(0,C.A)({},this._props,{shading:ot,target:Tt}),this._$arrow=jt,this._positionSide=void 0,this.updatePosition(this._props.position)}positionWrapper(){this._props.shading&&this._$wrapper.css({top:0,left:0})}updateTarget(Ge){this._props.target=Ge,this.updatePosition(this._props.position)}_renderBoundaryOffset(){}_getContainerPosition(){var Ge=(0,Y.Li)(this._position.offset||""),{h:ot,v:Tt}=Ge,jt=this._isVerticalSide(),li=this._isHorizontalSide();if(jt||li){var gi=(this._isPopoverInside()?-1:1)*we[this._positionSide]*((jt?(0,R.Oq)(this._$arrow):(0,R.RG)(this._$arrow))-this._getContentBorderWidth(this._positionSide));jt?Tt+=gi:ot+=gi}return(0,E.X)({},this._position,{offset:ot+" "+Tt})}_getContentBorderWidth(Ge){var ot=this._$content.css(Q[Ge]);return parseInt(ot)||0}_isPopoverInside(){var Ge=b.A.setup.normalizeAlign(this._position.my),ot=b.A.setup.normalizeAlign(this._position.at);return Ge.h===ot.h&&Ge.v===ot.v}_isVerticalSide(){var Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"top"===Ge||"bottom"===Ge}_isHorizontalSide(){var Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"left"===Ge||"right"===Ge}_getDisplaySide(Ge){var ot=b.A.setup.normalizeAlign(Ge.my),Tt=b.A.setup.normalizeAlign(Ge.at),jt=we[ot.h]===we[Tt.h]&&we[ot.v]===we[Tt.v]?-1:1;return Math.abs(we[ot.h]-jt*we[Tt.h])>Math.abs(we[ot.v]-jt*we[Tt.v])?Tt.h:Tt.v}_normalizePosition(Ge){var Tt,ot={of:this._props.target,boundaryOffset:G};return Tt=(0,O.O9)(Ge)?(0,E.X)(!0,{},ot,this._positionToObject(Ge)):ot,this._positionSide=this._getDisplaySide(Tt),Tt}_positionToObject(Ge){return(0,O.Kg)(Ge)?(0,E.X)({},N[Ge]):Ge}}var xe={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},ge=function(Mt){return(0,O.Gv)(Mt)?Mt.name:Mt},Ee=function(Mt,Ge){var ot=Mt.option(Ge);return ge(ot)},Ie=function(Mt,Ge){var{target:ot,shading:Tt,disabled:jt,hideEvent:li}=Mt.option(),an=(0,O.Kg)(ot),xi=Tt&&"hide"===Ge,Je=xi?null:Ee(Mt,"".concat(Ge,"Event"));if(xi&&li&&k.A.log("W1020"),Je&&!jt){var Ht=(0,f.b4)(Je,Mt.NAME),gi=Mt._createAction(function(){var ui=function(Mt,Ge){var ot=Mt.option(Ge);return(0,O.Gv)(ot)&&ot.delay}(Mt,Ge+"Event");this._clearEventsTimeouts(),ui?this._timeouts[Ge]=setTimeout(function(){Mt[Ge]()},ui):Mt[Ge]()}.bind(Mt),{validatingTargetName:"target"}),Ti=function(ui){gi({event:ui,target:(0,L.A)(ui.currentTarget)})},ni="_"+Ge+"EventHandler";if(an)Mt[ni]=Ti,h.A.on(v.A.getDocument(),Ht,ot,Ti);else{var wi=(0,_.c)((0,L.A)(ot));Mt[ni]=void 0,h.A.on(wi,Ht,Ti)}}},ce=function(Mt,Ge,ot,Tt){var jt=Tt||Ee(Mt,ot+"Event");if(jt){jt=(0,f.b4)(jt,Mt.NAME);var li="_"+ot+"EventHandler";Mt[li]?h.A.off(v.A.getDocument(),jt,Ge,Mt[li]):h.A.off((0,_.c)((0,L.A)(Ge)),jt)}},de=I.A.inherit({_getDefaultOptions:function(){return(0,E.X)(this.callBase(),{target:void 0,shading:!1,position:(0,E.X)({},N.bottom),hideOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",from:1,to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,hideOnParentScroll:!0,arrowPosition:"",arrowOffset:0,_fixWrapperPosition:!0})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!(0,m.Vd)()},options:{animation:null}},{device:function(){return(0,g.Nt)()},options:{useFlatToolbarButtons:!0}},{device:function(){return(0,g.gx)()},options:{useDefaultToolbarButtons:!0,showCloseButton:!1}}]},_init:function(){var Mt;this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass("dx-popover"),this.$wrapper().addClass("dx-popover-wrapper");var Ge=null===(Mt=this.option("toolbarItems"))||void 0===Mt?void 0:Mt.length;this.setAria("role",Ge?"dialog":"tooltip")},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(Mt){ce(this,Mt,"show"),ce(this,Mt,"hide")},_attachEvents:function(){Ie(this,"show"),Ie(this,"hide")},_renderArrow:function(){this._$arrow=(0,L.A)("<div>").addClass("dx-popover-arrow").prependTo(this.$overlayContent())},_documentDownHandler:function(Mt){return!this._isOutsideClick(Mt)||this.callBase(Mt)},_isOutsideClick:function(Mt){return!(0,L.A)(Mt.target).closest(this.option("target")).length},_animate:function(Mt){Mt&&Mt.to&&"object"==typeof Mt.to&&(0,E.X)(Mt.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this.$wrapper().toggleClass("dx-popover-without-title",!this.option("showTitle")),this.callBase()},_renderPosition:function(){var Mt=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.callBase(),this._renderOverlayPosition(Mt),this._actions.onPositioned()},_renderOverlayPosition:function(Mt){this._resetOverlayPosition(Mt),this._updateContentSize(Mt);var Ge=this._getContainerPosition(),ot=b.A.setup(this.$overlayContent(),Ge),Tt=this._getSideByLocation(ot);this._togglePositionClass("dx-position-"+Tt),this._toggleFlippedClass(ot.h.flip,ot.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(Tt)},_resetOverlayPosition:function(Mt){this._setContentHeight(Mt),this._togglePositionClass("dx-position-"+this._positionController._positionSide),(0,s.Cy)(this.$overlayContent(),{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(Mt){if(this.$content()&&Mt){var Ge=b.A.calculate(this.$overlayContent(),this._getContainerPosition());if(Ge.h.oversize>0&&this._isHorizontalSide()&&!Ge.h.fit){var ot=(0,R.RG)(this.$overlayContent())-Ge.h.oversize;(0,R.zj)(this.$overlayContent(),ot)}if(Ge.v.oversize>0&&this._isVerticalSide()&&!Ge.v.fit){var Tt=(0,R.Oq)(this.$overlayContent())-Ge.v.oversize,jt=(0,R.Oq)(this.$content())-Ge.v.oversize;(0,R.k$)(this.$overlayContent(),Tt),(0,R.k$)(this.$content(),jt)}}},_getContainerPosition:function(){return this._positionController._getContainerPosition()},_getHideOnParentScrollTarget:function(){return(0,L.A)(this._positionController._position.of||this.callBase())},_getSideByLocation:function(Mt){var Ge=Mt.v.flip,ot=Mt.h.flip;return this._isVerticalSide()&&Ge||this._isHorizontalSide()&&ot||this._isPopoverInside()?xe[this._positionController._positionSide]:this._positionController._positionSide},_togglePositionClass:function(Mt){this.$wrapper().removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(Mt)},_toggleFlippedClass:function(Mt,Ge){this.$wrapper().toggleClass("dx-popover-flipped-horizontal",Mt).toggleClass("dx-popover-flipped-vertical",Ge)},_renderArrowPosition:function(Mt){var Ge=(0,x.N)(this._$arrow.get(0)),ot=-(this._isVerticalSide(Mt)?Ge.height:Ge.width);this._$arrow.css(xe[Mt],ot);var Ui,Tt=this._isVerticalSide(Mt)?"left":"top",jt=this._isVerticalSide(Mt)?"width":"height",li=(0,L.A)(this._positionController._position.of),an=b.A.offset(li)||{top:0,left:0},xi=b.A.offset(this.$overlayContent()),Je=Ge[jt],Ht=xi[Tt],gi=(0,x.N)(this.$overlayContent().get(0))[jt],Ti=an[Tt],ni=li.get(0),wi=ni&&!ni.preventDefault?(0,x.N)(ni)[jt]:0,ui=Math.max(Ht,Ti),cn=Math.min(Ht+gi,Ti+wi);Ui="start"===this.option("arrowPosition")?ui-Ht:"end"===this.option("arrowPosition")?cn-Ht-Je:(ui+cn)/2-Ht-Je/2;var Xi=this._positionController._getContentBorderWidth(Mt),Qi=(0,w.df)(Ui-Xi+this.option("arrowOffset"),Xi,gi-Je-2*Xi);this._$arrow.css(Tt,Qi)},_isPopoverInside:function(){return this._positionController._isPopoverInside()},_setContentHeight:function(Mt){Mt&&this.callBase()},_getPositionControllerConfig(){var{shading:Mt,target:Ge}=this.option();return(0,E.X)({},this.callBase(),{target:Ge,shading:Mt,$arrow:this._$arrow})},_initPositionController(){this._positionController=new W(this._getPositionControllerConfig())},_renderWrapperDimensions:function(){this.option("shading")&&this.$wrapper().css({width:"100%",height:"100%"})},_isVerticalSide:function(Mt){return this._positionController._isVerticalSide(Mt)},_isHorizontalSide:function(Mt){return this._positionController._isHorizontalSide(Mt)},_clearEventTimeout:function(Mt){clearTimeout(this._timeouts[Mt])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(Mt){switch(Mt.name){case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":Mt.value&&this.option("fullScreen",!1);break;case"target":Mt.previousValue&&this._detachEvents(Mt.previousValue),this._positionController.updateTarget(Mt.value),this._invalidate();break;case"showEvent":case"hideEvent":var Ge=Mt.name.substring(0,4),ot=ge(Mt.previousValue);this.hide(),ce(this,this.option("target"),Ge,ot),Ie(this,Ge);break;case"visible":this._clearEventTimeout(Mt.value?"show":"hide"),this.callBase(Mt);break;default:this.callBase(Mt)}},show:function(Mt){return Mt&&this.option("target",Mt),this.callBase()}});(0,o.A)("dxPopover",de);var tt=de.inherit({_getDefaultOptions:function(){return(0,E.X)(this.callBase(),{toolbarItems:[],showCloseButton:!1,enableBodyScroll:!0,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,preventScrollEvents:!1,propagateOutsideClick:!0})},_render:function(){this.$element().addClass("dx-tooltip"),this.$wrapper().addClass("dx-tooltip-wrapper"),this.callBase()},_renderContent:function(){this.callBase(),this._toggleAriaAttributes()},_toggleAriaDescription:function(Mt){var Ge=(0,L.A)(this.option("target")),ot=Mt?this._contentId:void 0;(0,O.l6)(Ge.get(0))||this.setAria("describedby",ot,Ge)},_toggleAriaAttributes:function(){this._contentId="dx-".concat(new j.A),this.$overlayContent().attr({id:this._contentId}),this._toggleAriaDescription(!0)}});(0,o.A)("dxTooltip",tt);const Xt=tt;var Nt=D(87283),Qe=D(31837);const Et=["*"];let Lt=(()=>{class Mt extends Nt.ic{constructor(ot,Tt,jt,li,an,xi,Je){super(ot,Tt,jt,li,xi,Je),this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"hidden",emit:"onHidden"},{subscribe:"hiding",emit:"onHiding"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"showing",emit:"onShowing"},{subscribe:"shown",emit:"onShown"},{emit:"animationChange"},{emit:"closeOnOutsideClickChange"},{emit:"containerChange"},{emit:"contentTemplateChange"},{emit:"copyRootClassesToWrapperChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"hideEventChange"},{emit:"hideOnOutsideClickChange"},{emit:"hideOnParentScrollChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"maxHeightChange"},{emit:"maxWidthChange"},{emit:"minHeightChange"},{emit:"minWidthChange"},{emit:"positionChange"},{emit:"rtlEnabledChange"},{emit:"shadingChange"},{emit:"shadingColorChange"},{emit:"showEventChange"},{emit:"targetChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapperAttrChange"}]),an.setHost(this)}get animation(){return this._getOption("animation")}set animation(ot){this._setOption("animation",ot)}get closeOnOutsideClick(){return this._getOption("closeOnOutsideClick")}set closeOnOutsideClick(ot){this._setOption("closeOnOutsideClick",ot)}get container(){return this._getOption("container")}set container(ot){this._setOption("container",ot)}get contentTemplate(){return this._getOption("contentTemplate")}set contentTemplate(ot){this._setOption("contentTemplate",ot)}get copyRootClassesToWrapper(){return this._getOption("copyRootClassesToWrapper")}set copyRootClassesToWrapper(ot){this._setOption("copyRootClassesToWrapper",ot)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(ot){this._setOption("deferRendering",ot)}get disabled(){return this._getOption("disabled")}set disabled(ot){this._setOption("disabled",ot)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(ot){this._setOption("elementAttr",ot)}get height(){return this._getOption("height")}set height(ot){this._setOption("height",ot)}get hideEvent(){return this._getOption("hideEvent")}set hideEvent(ot){this._setOption("hideEvent",ot)}get hideOnOutsideClick(){return this._getOption("hideOnOutsideClick")}set hideOnOutsideClick(ot){this._setOption("hideOnOutsideClick",ot)}get hideOnParentScroll(){return this._getOption("hideOnParentScroll")}set hideOnParentScroll(ot){this._setOption("hideOnParentScroll",ot)}get hint(){return this._getOption("hint")}set hint(ot){this._setOption("hint",ot)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(ot){this._setOption("hoverStateEnabled",ot)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(ot){this._setOption("maxHeight",ot)}get maxWidth(){return this._getOption("maxWidth")}set maxWidth(ot){this._setOption("maxWidth",ot)}get minHeight(){return this._getOption("minHeight")}set minHeight(ot){this._setOption("minHeight",ot)}get minWidth(){return this._getOption("minWidth")}set minWidth(ot){this._setOption("minWidth",ot)}get position(){return this._getOption("position")}set position(ot){this._setOption("position",ot)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(ot){this._setOption("rtlEnabled",ot)}get shading(){return this._getOption("shading")}set shading(ot){this._setOption("shading",ot)}get shadingColor(){return this._getOption("shadingColor")}set shadingColor(ot){this._setOption("shadingColor",ot)}get showEvent(){return this._getOption("showEvent")}set showEvent(ot){this._setOption("showEvent",ot)}get target(){return this._getOption("target")}set target(ot){this._setOption("target",ot)}get visible(){return this._getOption("visible")}set visible(ot){this._setOption("visible",ot)}get width(){return this._getOption("width")}set width(ot){this._setOption("width",ot)}get wrapperAttr(){return this._getOption("wrapperAttr")}set wrapperAttr(ot){this._setOption("wrapperAttr",ot)}_createInstance(ot,Tt){return new Xt(ot,Tt)}ngOnDestroy(){this._destroyWidget()}}return Mt.\u0275fac=function(ot){return new(ot||Mt)(d.rXU(d.aKT),d.rXU(d.SKi),d.rXU(Nt.zF),d.rXU(Nt.jS),d.rXU(Nt.fH),d.rXU(r.pJ),d.rXU(d.Agw))},Mt.\u0275cmp=d.VBU({type:Mt,selectors:[["dx-tooltip"]],inputs:{animation:"animation",closeOnOutsideClick:"closeOnOutsideClick",container:"container",contentTemplate:"contentTemplate",copyRootClassesToWrapper:"copyRootClassesToWrapper",deferRendering:"deferRendering",disabled:"disabled",elementAttr:"elementAttr",height:"height",hideEvent:"hideEvent",hideOnOutsideClick:"hideOnOutsideClick",hideOnParentScroll:"hideOnParentScroll",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",position:"position",rtlEnabled:"rtlEnabled",shading:"shading",shadingColor:"shadingColor",showEvent:"showEvent",target:"target",visible:"visible",width:"width",wrapperAttr:"wrapperAttr"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onHidden:"onHidden",onHiding:"onHiding",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onShowing:"onShowing",onShown:"onShown",animationChange:"animationChange",closeOnOutsideClickChange:"closeOnOutsideClickChange",containerChange:"containerChange",contentTemplateChange:"contentTemplateChange",copyRootClassesToWrapperChange:"copyRootClassesToWrapperChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",hideEventChange:"hideEventChange",hideOnOutsideClickChange:"hideOnOutsideClickChange",hideOnParentScrollChange:"hideOnParentScrollChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",maxHeightChange:"maxHeightChange",maxWidthChange:"maxWidthChange",minHeightChange:"minHeightChange",minWidthChange:"minWidthChange",positionChange:"positionChange",rtlEnabledChange:"rtlEnabledChange",shadingChange:"shadingChange",shadingColorChange:"shadingColorChange",showEventChange:"showEventChange",targetChange:"targetChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapperAttrChange:"wrapperAttrChange"},features:[d.Jv_([Nt.zF,Nt.jS,Nt.fH]),d.Vt3],ngContentSelectors:Et,decls:1,vars:0,template:function(ot,Tt){1&ot&&(d.NAR(),d.SdG(0))},encapsulation:2}),Mt})(),wt=(()=>{class Mt{}return Mt.\u0275fac=function(ot){return new(ot||Mt)},Mt.\u0275mod=d.$C({type:Mt}),Mt.\u0275inj=d.G2t({imports:[[Qe.YLo,Qe.YaD,Qe.eNx,Qe.Bkf,Qe.nwt,Qe.hXw,Qe.YGc,Qe.gf0,Qe.rvW,Qe.Tob,Qe.$Ql,Qe.i9t,Qe.TBD,Nt.p_,Nt.xZ],Qe.YLo,Qe.YaD,Qe.eNx,Qe.Bkf,Qe.nwt,Qe.hXw,Qe.YGc,Qe.gf0,Qe.rvW,Qe.Tob,Qe.$Ql,Qe.i9t,Qe.TBD,Nt.xZ]}),Mt})()},25207:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>xe});var r=D(58168),d=D(24292),L=D(5042),j=D(39407),o=D(12984),E=D(87951),R=D(12101),m=D(50448),_=D(80186),v=D(70370),h=D(72463),s=D(78059),b=D(14435),O=D(75333),w=D(61076),f=D(25571),k=D(91269),I=D(45),x=D(38543),g=D(10438),ee="virtual",ne="scrolling.mode",be={year:ge=>ge&&ge.getFullYear(),month:ge=>ge&&ge.getMonth()+1,day:ge=>ge&&ge.getDate(),quarter:ge=>ge&&Math.floor(ge.getMonth()/3)+1,hour:ge=>ge&&ge.getHours(),minute:ge=>ge&&ge.getMinutes(),second:ge=>ge&&ge.getSeconds()},oe=function(){var Ee=this.calculateCellValue(arguments[1]);if(!(0,h.O9)(Ee))return null;if(we(this.dataType))return be[arguments[0]](Ee);if("number"===this.dataType){var Ie=arguments[0];return Math.floor(Number(Ee)/Ie)*Ie}},me=function(ge,Ee){return(0,h.Tn)(ge)&&(0,h.Tn)(Ee)&&ge.originalCallback&&Ee.originalCallback?ge.originalCallback===Ee.originalCallback&&ge.columnIndex===Ee.columnIndex:ge===Ee};function we(ge){return"date"===ge||"datetime"===ge}var N=function(ge){ge.get(0).textContent="\xa0"},G=function(ge){for(var Ee=(0,f.st)(ge=ge||[]),he=0;he<ge.length;he++)ge&&ge[he]&&void 0!==ge[he].isExpanded&&(Ee[he].isExpanded=ge[he].isExpanded),ge&&ge[he]&&void 0!==ge[he].groupInterval&&(Ee[he].groupInterval=ge[he].groupInterval);return Ee},W=function(ge,Ee){var he=I.A.format(ge,Ee.format)||ge&&ge.toString()||"",Ie={value:ge,valueText:Ee.getDisplayFormat?Ee.getDisplayFormat(he):he,target:Ee.target||"row",groupInterval:Ee.groupInterval};return Ee.customizeText?Ee.customizeText.call(Ee,Ie):Ie.valueText},z=function(ge,Ee){var he=ge.displayFormat||ge.columnCaption&&Ee["".concat(ge.summaryType,"OtherColumn")]||Ee[ge.summaryType];return W(ge.value,{format:ge.valueFormat,getDisplayFormat:Ie=>he?(0,v.GP)(he,Ie,ge.columnCaption):Ie,customizeText:ge.customizeText})},X=function(ge){var Ee=ge.data&&ge.data(),he=Ee&&Ee.dxComponents,Ie=he&&he[0];return Ie&&Ee[Ie]};const xe={renderNoDataText(ge){if(ge=ge||this.element()){var Ee=this.addWidgetPrefix("nodata"),he=ge.find(".".concat(Ee)).last(),Ie=this._dataController.isEmpty(),ce=this._dataController.isLoading();he.length||(he=(0,d.A)("<span>").addClass(Ee)),he.parent().is(ge)||he.appendTo(ge),Ie&&!ce?he.removeClass("dx-hidden").text(this._getNoDataText()):he.addClass("dx-hidden")}},renderLoadPanel(ge,Ee,he){var Ie;this._loadPanel&&this._loadPanel.$element().remove(),(Ie=this.option("loadPanel"))&&("auto"===Ie.enabled?!he:Ie.enabled)?(Ie=(0,E.X)({shading:!1,message:Ie.text,container:Ee},Ie),this._loadPanel=this._createComponent((0,d.A)("<div>").appendTo(Ee),x.A,Ie)):this._loadPanel=null},calculateLoadPanelPosition(ge){var Ee=(0,d.A)((0,b.zk)());return(0,_.Oq)(ge)>(0,_.Oq)(Ee)?{of:Ee,boundary:ge,collision:"fit"}:{of:ge}},getIndexByKey(ge,Ee,he){var Ie=-1;if(void 0!==ge&&Array.isArray(Ee)){he=arguments.length<=2?"key":he;for(var ce=0;ce<Ee.length;ce++){var de=(0,h.O9)(he)?Ee[ce][he]:Ee[ce];if((0,L.RL)(ge,de)){Ie=ce;break}}}return Ie},combineFilters(ge,Ee){var he,Ie=[];Ee=Ee||"and";for(var ce=0;ce<ge.length;ce++)if(ge[ce]){if(1===(null===(he=ge[ce])||void 0===he?void 0:he.length)&&"!"===ge[ce][0]){if("and"===Ee)return["!"];if("or"===Ee)continue}Ie.length&&Ie.push(Ee),Ie.push(ge[ce])}if(1===Ie.length&&(Ie=Ie[0]),Ie.length)return Ie},checkChanges(ge,Ee){for(var he=0,Ie=0;Ie<Ee.length;Ie++)ge[Ee[Ie]]&&he++;return ge.length&&ge.length===he},equalFilterParameters:function ge(Ee,he){if(Array.isArray(Ee)&&Array.isArray(he)){if(Ee.length!==he.length)return!1;for(var Ie=0;Ie<Ee.length;Ie++)if(!ge(Ee[Ie],he[Ie]))return!1;return!0}return(0,h.Tn)(Ee)&&Ee.columnIndex>=0&&(0,h.Tn)(he)&&he.columnIndex>=0?Ee.columnIndex===he.columnIndex&&(0,j.ao)(Ee.filterValue)===(0,j.ao)(he.filterValue)&&(0,j.ao)(Ee.selectedFilterOperation)===(0,j.ao)(he.selectedFilterOperation):(0,j.ao)(Ee)==(0,j.ao)(he)},proxyMethod(ge,Ee,he){ge[Ee]||(ge[Ee]=function(){var Ie=this._dataSource;return Ie?Ie[Ee].apply(Ie,arguments):he})},formatValue:W,getFormatOptionsByColumn:(ge,Ee)=>({format:ge.format,getDisplayFormat:ge.getDisplayFormat,customizeText:ge.customizeText,target:Ee,trueText:ge.trueText,falseText:ge.falseText}),getDisplayValue:(ge,Ee,he,Ie)=>ge.displayValueMap&&void 0!==ge.displayValueMap[Ee]?ge.displayValueMap[Ee]:ge.calculateDisplayValue&&he&&"group"!==Ie?ge.calculateDisplayValue(he):!ge.lookup||"group"===Ie&&(ge.calculateGroupValue||ge.calculateDisplayValue)?Ee:ge.lookup.calculateCellValue(Ee),getGroupRowSummaryText(ge,Ee){for(var he="(",Ie=0;Ie<ge.length;Ie++)he+=(Ie>0?", ":"")+z(ge[Ie],Ee);return he+")"},getSummaryText:z,normalizeSortingInfo:G,getFormatByDataType(ge){switch(ge){case"date":return"shortDate";case"datetime":return"shortDateShortTime";default:return}},getHeaderFilterGroupParameters(ge,Ee){var he=[],Ie=ge.dataField||ge.name,ce=g.A.getGroupInterval(ge);return ce?((0,R.__)(ce,(de,pe)=>{he.push(Ee?{selector:Ie,groupInterval:pe,isExpanded:de<ce.length-1}:oe.bind(ge,pe))}),he):(Ee?he=[{selector:Ie,isExpanded:!1}]:(he=function(de){var pe=ge.calculateCellValue(de);return(void 0===pe||""===pe)&&(pe=null),pe},ge.sortingMethod&&(he=[{selector:he,compare:ge.sortingMethod.bind(ge)}])),he)},equalSortParameters(ge,Ee,he){if(ge=G(ge),Ee=G(Ee),Array.isArray(ge)&&Array.isArray(Ee)){if(ge.length!==Ee.length)return!1;for(var Ie=0;Ie<ge.length;Ie++)if(!me(ge[Ie].selector,Ee[Ie].selector)||ge[Ie].desc!==Ee[Ie].desc||ge[Ie].groupInterval!==Ee[Ie].groupInterval||!he&&!!ge[Ie].isExpanded!=!!Ee[Ie].isExpanded)return!1;return!0}return(!ge||!ge.length)==(!Ee||!Ee.length)},getPointsByColumns(ge,Ee,he,Ie){for(var pe,Be,vt,ce=ge.length,de=!1,We=Ie||0,tt=[],Xt=0;Xt<=ce;Xt++){Xt<ce&&(Be=(pe=ge.eq(Xt)).offset(),vt="rtl"===pe.css("direction"));var Nt={index:We,x:Be?Be.left+(!he&&vt^Xt===ce?(0,m.N)(pe[0]).width:0):0,y:Be?Be.top+(he&&Xt===ce?(0,m.N)(pe[0]).height:0):0,columnIndex:We};if(!he&&Xt>0){var Qe=ge.eq(Xt-1).offset();Qe.top<Nt.y&&(Nt.y=Qe.top)}Ee&&(de=Ee(Nt)),de||tt.push(Nt),We++}return tt},getExpandCellTemplate:()=>({allowRenderToDetachedContainer:!0,render(ge,Ee){var he=(0,d.A)(ge);if(!(0,h.O9)(Ee.value)||Ee.data&&Ee.data.isContinuation||Ee.row.isNewRow)N(he);else{var Ie=Ee.component.getView("rowsView");he.addClass("dx-datagrid-expand").addClass("dx-selection-disabled"),(0,d.A)("<div>").addClass(Ee.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(he),Ie.setAria("label",Ie.localize(Ee.value?"dxDataGrid-ariaCollapse":"dxDataGrid-ariaExpand"),he)}}}),setEmptyText:N,isDateType:we,getSelectionRange(ge){try{if(ge)return{selectionStart:ge.selectionStart,selectionEnd:ge.selectionEnd}}catch{}return{}},setSelectionRange(ge,Ee){try{ge&&ge.setSelectionRange&&ge.setSelectionRange(Ee.selectionStart,Ee.selectionEnd)}catch{}},focusAndSelectElement(ge,Ee){var he=Ee.is(":focus");k.A.trigger(Ee,"focus");var Ie=ge.option("editing.selectTextOnEditStart"),ce=Ee.get(0);if(!he&&Ie&&Ee.is(".dx-texteditor-input")&&!Ee.is("[readonly]")){var de=X(Ee.closest(".dx-texteditor"));(0,o.z7)(de&&de._loadItemDeferred).done(()=>{ce.select()})}},getWidgetInstance:X,getLastResizableColumnIndex(ge,Ee){var Ie,he=ge.some(Be=>Be&&!Be.command&&!Be.fixed&&!1!==Be.allowResizing);for(Ie=ge.length-1;ge[Ie];Ie--){var ce=ge[Ie];if(!(ce.command||ce.fixed||"adaptiveHidden"===(Ee&&Ee[Ie])||he&&!1===ce.allowResizing))break}return Ie},isElementInCurrentGrid:(ge,Ee)=>!(!Ee||!Ee.length)&&Ee.closest(".".concat(ge.getWidgetContainerClass())).parent().is(ge.component.$element()),isVirtualRowRendering(ge){var Ee=ge.option("scrolling.rowRenderingMode"),he=ge.option(ne)===ee,Ie="infinite"===ge.option(ne);return!(!1!==ge.option("scrolling.legacyMode")||!he&&!Ie)||Ee===ee},getPixelRatio:ge=>ge.devicePixelRatio||1,getContentHeightLimit(ge){return ge.mozilla?8e6:15e6/this.getPixelRatio((0,b.zk)())},normalizeLookupDataSource(ge){var Ee;return ge.items?Ee=ge.items:(0,h.Tn)(Ee=ge.dataSource)&&!s.A.isWrapped(Ee)&&(Ee=Ee({})),(0,w.ho)(Ee)},getWrappedLookupDataSource(ge,Ee,he){if(!Ee)return[];var Ie=this.normalizeLookupDataSource(ge.lookup);if(ge.calculateCellValue!==ge.defaultCalculateCellValue)return Ie;var pe,Be,We,ce=Ee.remoteOperations().groupPaging,de=ge.displayField&&(0,h.Kg)(ge.displayField),tt=(Xt,Nt)=>{var Qe,Et=null!==(Qe=Nt.skip)&&void 0!==Qe?Qe:0;return Xt.slice(Et,Nt.take?Et+Nt.take:Xt.length)},vt=(0,r.A)((0,r.A)({},Ie),{__dataGridSourceFilter:he,load:Xt=>{var Qe,Et,Lt,Nt=new o.cY;return(Qe=Xt,Et=function ye(ge){return Array.isArray(ge)||(ge=[ge]),ge.map((Ee,he)=>(0,h.Kg)(Ee)?{selector:Ee,isExpanded:he<ge.length-1}:Ee)}(de?[ge.dataField,ge.displayField]:ge.dataField),Lt=new o.cY,pe&&(!ce||Qe.skip===We&&Qe.take===Be)?Lt.resolve(tt(pe,Qe)):(We=Qe.skip,Be=Qe.take,Ee.load({filter:he,group:Et,take:ce?Qe.take:void 0,skip:ce?Qe.skip:void 0}).done(Mt=>{pe=Mt,Lt.resolve(ce?Mt:tt(Mt,Qe))}).fail(Lt.fail)),Lt).done(Qe=>{if(0!==Qe.length){var Et=this.combineFilters(Qe.flatMap(wt=>wt.key).map(wt=>[ge.lookup.valueExpr,wt]),"or");new O.q((0,r.A)((0,r.A)((0,r.A)({},Ie),Xt),{filter:this.combineFilters([Et,Xt.filter],"and"),paginate:!1})).load().done(Nt.resolve).fail(Nt.fail)}else Nt.resolve([])}).fail(Nt.fail),Nt},key:ge.lookup.valueExpr,byKey(Xt){var Nt=(0,o.cY)();return this.load({filter:[ge.lookup.valueExpr,"=",Xt]}).done(Qe=>{Nt.resolve(Qe[0])}),Nt.promise()}});return vt},logHeaderFilterDeprecatedWarningIfNeed(ge){var Ee=ge._logDeprecatedOptionWarning.bind(ge);(0,h.O9)(ge.option("headerFilter.allowSearch"))&&Ee("headerFilter.allowSearch",{since:"23.1",alias:"headerFilter.search.enabled"}),(0,h.O9)(ge.option("headerFilter.searchTimeout"))&&Ee("headerFilter.searchTimeout",{since:"23.1",alias:"headerFilter.search.timeout"});var he="dxPivotGrid"===ge.NAME?"dataSource.fields":"columns",Ie=ge.option(he);if(Array.isArray(Ie)){var ce=de=>{de.forEach(pe=>{var Be,We=pe.headerFilter||{};(0,h.O9)(We.allowSearch)&&Ee("".concat(he,"[].headerFilter.allowSearch"),{since:"23.1",alias:"".concat(he,"[].headerFilter.search.enabled")}),(0,h.O9)(We.searchMode)&&Ee("".concat(he,"[].headerFilter.searchMode"),{since:"23.1",alias:"".concat(he,"[].headerFilter.search.mode")}),null!==(Be=pe.columns)&&void 0!==Be&&Be.length&&ce(pe.columns)})};ce(Ie)}}}},99299:(ei,rt,D)=>{"use strict";D.d(rt,{c:()=>Nc,q:()=>sp});var r={};D.r(r),D.d(r,{ChartTracker:()=>ge,PieTracker:()=>Ee});var d={};D.r(d),D.d(d,{donut:()=>Vm,doughnut:()=>Ff,pie:()=>zu});var L={};D.r(L),D.d(L,{candlestick:()=>lm,stock:()=>Bf});var j=D(5042),o=D(87951),E=D(12101),R=D(72463),m=D(91269),_=D(49104),v=D(61067),h=D(17669),s=D(18060),b=D(19142),O=D(43458),w=D(24159),f=D(87550),k=Math.floor,I=b.A.events,x=b.A.states,g=x.hoverMark,C=x.normalMark,F="dxChartTracker",Y="."+F,Q=(0,_.b4)([w.A.down,w.A.move],F),se="legendClick",ie="seriesClick",ee="pointClick",re="chart-data-point",ne="chart-data-series",_e="chart-data-argument",we="allargumentpoints",N="includepoints",W=[N,"excludepoints","none"];function z(y,H,Z){var Oe=y.target;if("tspan"===Oe.tagName)return Oe.parentNode[H];var Fe=Oe[H];return Z&&!(0,R.O9)(Fe)?function Ye(bt){if(bt.parentNode)return(0,R.O9)(bt.parentNode[H])?bt.parentNode[H]:Ye(bt.parentNode)}(Oe):Fe}function X(y,H,Z){var{event:Oe,cancel:Fe}=y,Ye=Oe.cancel,bt=Fe||Ye;return Ye&&f.A.log("W0003","".concat(Z,"Click handler argument"),"event.cancel","22.1","Use the 'cancel' field instead"),bt||!H.getOptions()}function ye(y){var H=y.getOptions().hoverMode;return"none"===H?H:we}var xe={ctor:function(y){var H=this,Z={tracker:H};H._renderer=y.renderer,H._legend=y.legend,H._tooltip=y.tooltip,H._eventTrigger=y.eventTrigger,H._seriesGroup=y.seriesGroup,y.seriesGroup.off(Y).on((0,_.b4)(I.showPointTooltip,F),Z,H._showPointTooltip).on((0,_.b4)(I.hidePointTooltip,F),Z,H._hidePointTooltip),H._renderer.root.off(Y).on(Q,Z,H._pointerHandler).on((0,_.b4)(w.A.up,F),()=>clearTimeout(H._holdTimer)).on((0,_.b4)(s.U,F),Z,H._clickHandler)},update:function(y){this._chart=y.chart},updateSeries(y,H){var Z=this,Oe=!(null!=y&&y.some(Fe=>Fe===Z.hoveredSeries)||Z._hoveredPoint&&Z._hoveredPoint.series);Z._storedSeries!==y&&(Z._storedSeries=y||[]),Oe&&(Z._clean(),Z._renderer.initDefsElements()),H&&(Z.clearSelection(),Oe||(Z._hideTooltip(Z.pointAtShownTooltip),Z.clearHover()))},setCanvases:function(y,H){this._mainCanvas=y,this._canvases=H},repairTooltip:function(){var y=this.pointAtShownTooltip;y&&y.series&&y.isVisible()?this._showTooltip(y):this._hideTooltip(y,!0)},_setHoveredPoint:function(y){y!==this._hoveredPoint&&(this._releaseHoveredPoint(),y.hover(),this._hoveredPoint=y)},_releaseHoveredPoint:function(y){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint,!1,y))},_setHoveredSeries:function(y,H){this._releaseHoveredSeries(),this._releaseHoveredPoint(),y.hover(H),this.hoveredSeries=y},_releaseHoveredSeries(){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection(){this._storedSeries.forEach(y=>{y&&(y.clearSelection(),y.getPoints().forEach(H=>H.clearSelection()))})},_clean:function(){this.hoveredPoint=this.hoveredSeries=this._hoveredArgumentPoints=null,this._hideTooltip(this.pointAtShownTooltip)},clearHover:function(y){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint(y)},_hideTooltip:function(y,H,Z){!this._tooltip||y&&this.pointAtShownTooltip!==y||(!H&&this.pointAtShownTooltip&&(this.pointAtShownTooltip=null),this._tooltip.hide(!!Z))},_showTooltip:function(y){var Z,H=this,Oe={target:y};if(null!=y&&y.getOptions()){if(Z=y.getTooltipFormatObject(H._tooltip,H._tooltip.isShared()&&H._chart.getStackedPoints(y)),!(0,R.O9)(Z.valueText)&&!Z.points||!y.isVisible())return;var Fe=y.getTooltipParams(H._tooltip.getLocation()),Ye=H._renderer.getRootOffset();Fe.x+=Ye.left,Fe.y+=Ye.top;var bt=$t=>{$t&&(H.pointAtShownTooltip=y)};bt(H._tooltip.show(Z,Fe,Oe,void 0,bt))}},_showPointTooltip:function(y,H){var Z=y.data.tracker,Oe=Z.pointAtShownTooltip;Oe&&Oe!==H&&Z._hideTooltip(Oe),Z._showTooltip(H)},_hidePointTooltip:function(y,H){y.data.tracker._hideTooltip(H,!1,!0)},_enableOutHandler:function(){if(!this._outHandler){var y=this,H=function(Z){var Oe=y._renderer.getRootOffset(),Fe=k(Z.pageX-Oe.left),Ye=k(Z.pageY-Oe.top);!(0,O.Oh)(y._mainCanvas,Fe,Ye)&&!y._isCursorOnTooltip(Z)&&(y._pointerOut(),y._disableOutHandler())};m.A.on(h.A.getDocument(),Q,H),this._outHandler=H}},_isCursorOnTooltip:function(y){return this._tooltip.isEnabled()&&this._tooltip.isCursorOnTooltip(y.pageX,y.pageY)},_disableOutHandler:function(){this._outHandler&&m.A.off(h.A.getDocument(),Q,this._outHandler),this._outHandler=null},stopCurrentHandling:function(){this._pointerOut(!0)},_pointerOut:function(y){this.clearHover(!0),(y||this._tooltip.isEnabled())&&this._hideTooltip(this.pointAtShownTooltip,!1,!0)},_triggerLegendClick:function(y,H){var Z=this._eventTrigger;Z(se,y,function(){!X(y,y.target,"legend")&&Z(H,y)})},_hoverLegendItem:function(y,H){var Oe,Z=this._legend.getItemByCoord(y,H),Fe=function q(y){return W.indexOf(y)>-1?y:N}(this._legend.getOptions().hoverMode);Z?((!(Oe=this._storedSeries[Z.id]).isHovered()||Oe.lastHoverMode!==Fe)&&this._setHoveredSeries(Oe,Fe),this._tooltip.isEnabled()&&this._hideTooltip(this.pointAtShownTooltip)):this.clearHover()},_hoverArgument:function(y,H){var Z=this._getArgumentHoverMode();(0,R.O9)(y)&&(this._releaseHoveredPoint(),this._hoveredArgument=y,this._argumentIndex=H,this._notifySeries({action:"pointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{argument:y,fullState:g,argumentIndex:H,getOptions:function(){return{hoverMode:Z}}}}))},_resetHoveredArgument:function(){var y;(0,R.O9)(this._hoveredArgument)&&(y=this._getArgumentHoverMode(),this._notifySeries({action:"clearPointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{fullState:C,argumentIndex:this._argumentIndex,argument:this._hoveredArgument,getOptions:function(){return{hoverMode:y}}}}),this._hoveredArgument=null)},_notifySeries:function(y){this._storedSeries.forEach(function(H){H.notify(y)})},_pointerHandler:function(y){var H,Z=y.data.tracker,Oe=Z._renderer.getRootOffset(),Fe=k(y.pageX-Oe.left),Ye=k(y.pageY-Oe.top),bt=Z._getCanvas(Fe,Ye),$t=z(y,ne),_i=z(y,re)||(null===(H=$t)||void 0===H?void 0:H.getPointByCoord(Fe,Ye));if(Z._isHolding=!1,clearTimeout(Z._holdTimer),y.type===w.A.down&&(Z._holdTimer=setTimeout(()=>Z._isHolding=!0,300)),_i&&!_i.getMarkerVisibility()&&(_i=void 0),Z._enableOutHandler(),Z._legend.coordsIn(Fe,Ye))Z._hoverLegendItem(Fe,Ye);else if(Z.hoveredSeries&&Z.hoveredSeries!==Z._stuckSeries&&Z._releaseHoveredSeries(),!Z._hoverArgumentAxis(Fe,Ye,y)&&(Z._isPointerOut(bt,_i)&&Z._pointerOut(),bt||_i)){if($t&&!_i){if(_i=$t.getNeighborPoint(Fe,Ye),!Z._stickyHovering&&_i&&!_i.coordsIn(Fe,Ye)&&(_i=null),$t!==Z.hoveredSeries)return void Z._setTimeout(function(){Z._setHoveredSeries($t),Z._setStuckSeries(y,$t,Fe,Ye),Z._pointerComplete(_i,Fe,Ye)},$t)}else{if(_i){if(y.type!==w.A.move&&"touch"!==y.pointerType)return;return void(Z.hoveredSeries?Z._setTimeout(()=>Z._pointerOnPoint(_i,Fe,Ye,y),_i):Z._pointerOnPoint(_i,Fe,Ye,y))}var Ii;Z._setStuckSeries(y,void 0,Fe,Ye)&&Z._stickyHovering?(_i=($t=Z._stuckSeries).getNeighborPoint(Fe,Ye),Z._releaseHoveredSeries(),null!==(Ii=_i)&&void 0!==Ii&&Ii.getMarkerVisibility()&&Z._setHoveredPoint(_i)):Z._stickyHovering||Z._pointerOut()}Z._pointerComplete(_i,Fe,Ye)}},_pointerOnPoint:function(y,H,Z){this._resetHoveredArgument(),this._setHoveredPoint(y),this._pointerComplete(y,H,Z)},_pointerComplete:function(y){this.pointAtShownTooltip!==y&&this._tooltip.isEnabled()&&this._showTooltip(y)},_clickHandler:function(y){var H,Z=y.data.tracker;if(!Z._isHolding){var Oe=Z._renderer.getRootOffset(),Fe=k(y.pageX-Oe.left),Ye=k(y.pageY-Oe.top),bt=z(y,re),$t=Z._stuckSeries||z(y,ne)||(null===(H=bt)||void 0===H?void 0:H.series),_i=Z._argumentAxis;if(Z._legend.coordsIn(Fe,Ye)){var Ii=Z._legend.getItemByCoord(Fe,Ye);Ii&&Z._legendClick(Ii,y)}else if(null!=_i&&_i.coordsIn(Fe,Ye)){var bn=z(y,_e,!0);(0,R.O9)(bn)&&Z._eventTrigger("argumentAxisClick",{argument:bn,event:y})}else if($t){var Yn;null!==(Yn=bt=bt||$t.getPointByCoord(Fe,Ye))&&void 0!==Yn&&Yn.getMarkerVisibility()?Z._pointClick(bt,y):z(y,ne)&&Z._eventTrigger(ie,{target:$t,event:y})}}},dispose:function(){this._disableOutHandler(),this._renderer.root.off(Y),this._seriesGroup.off(Y)}},ge=function(y){this.ctor(y)};(0,o.X)(ge.prototype,xe,{_pointClick:function(y,H){var Z=this._eventTrigger,Oe=y.series,Fe={target:y,event:H};Z(ee,Fe,function(){!X(Fe,Oe,"point")&&Z(ie,{target:Oe,event:H})})},update:function(y){xe.update.call(this,y),this._argumentAxis=y.argumentAxis||{},this._axisHoverEnabled=this._argumentAxis&&(0,O.NU)(this._argumentAxis.getOptions().hoverMode)===we,this._rotated=y.rotated,this._crosshair=y.crosshair,this._stickyHovering=y.stickyHovering},_getCanvas:function(y,H){for(var Z=this._canvases||[],Oe=0;Oe<Z.length;Oe++){var Fe=Z[Oe];if((0,O.Oh)(Fe,y,H))return Fe}return null},_isPointerOut:function(y){return!y&&this._stuckSeries},_hideCrosshair:function(){var y;null===(y=this._crosshair)||void 0===y||y.hide()},_moveCrosshair:function(y,H,Z){this._crosshair&&null!=y&&y.isVisible()&&this._crosshair.show({point:y,x:H,y:Z})},_clean:function(){xe._clean.call(this),this._resetTimer(),this._stuckSeries=null},_getSeriesForShared:function(y,H){var Z,Oe=[],Fe=null,Ye=1/0;return this._tooltip.isShared()&&!this.hoveredSeries&&((0,E.__)(this._storedSeries,function(bt,$t){var _i=$t.getNeighborPoint(y,H);_i&&Oe.push(_i)}),(0,E.__)(Oe,function(bt,$t){var _i=$t.getCrosshairData(y,H),Ii=(0,O.Yf)(y,H,_i.x,_i.y);Ii<Ye&&(Fe=$t,Ye=Ii)})),null===(Z=Fe)||void 0===Z?void 0:Z.series},_setTimeout:function(y,H){var Z=this;Z._timeoutKeeper!==H&&(Z._resetTimer(),Z._hoverTimeout=setTimeout(function(){y(),Z._timeoutKeeper=null},100),Z._timeoutKeeper=H)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_stopEvent:function(y){(!(0,R.O9)(y.cancelable)||y.cancelable)&&(y.preventDefault(),y.stopPropagation())},_setStuckSeries:function(y,H,Z,Oe){return this._stuckSeries="mouse"!==y.pointerType?null:H||this._stuckSeries||this._getSeriesForShared(Z,Oe),!!this._stuckSeries},_pointerOut:function(){var y=this;y._stuckSeries=null,y._hideCrosshair(),y._resetTimer(),xe._pointerOut.apply(y,arguments)},_hoverArgumentAxis:function(y,H,Z){if(this._resetHoveredArgument(),this._axisHoverEnabled&&this._argumentAxis.coordsIn(y,H))return this._hoverArgument(z(Z,_e,!0)),!0},_pointerComplete:function(y,H,Z){this.hoveredSeries&&this.hoveredSeries.updateHover(H,Z),this._resetTimer(),this._moveCrosshair(y,H,Z),xe._pointerComplete.call(this,y)},_legendClick:function(y,H){this._triggerLegendClick({target:this._storedSeries[y.id],event:H},ie)},_hoverLegendItem:function(y,H){this._stuckSeries=null,this._hideCrosshair(),xe._hoverLegendItem.call(this,y,H)},_pointerOnPoint:function(y,H,Z,Oe){this._setStuckSeries(Oe,y.series,H,Z),this._releaseHoveredSeries(),xe._pointerOnPoint.call(this,y,H,Z,Oe)},_notifyLegendOnHoverArgument:!1,_getArgumentHoverMode:function(){return ye(this._argumentAxis)},dispose:function(){this._resetTimer(),xe.dispose.call(this)}});var Ee=function(y){this.ctor(y)};(0,o.X)(Ee.prototype,xe,{_isPointerOut:function(y,H){return!H},_legendClick:function(y,H){var Z=[];this._storedSeries.forEach(Oe=>Z.push.apply(Z,Oe.getPointsByKeys(y.argument,y.argumentIndex))),this._eventTrigger(se,{target:y.argument,points:Z,event:H})},_pointClick:function(y,H){this._eventTrigger(ee,{target:y,event:H})},_hoverLegendItem:function(y,H){var Z=this._legend.getItemByCoord(y,H);Z&&this._hoveredArgument!==Z.argument?(this._resetHoveredArgument(),this._hoverArgument(Z.argument,Z.argumentIndex)):Z||this.clearHover()},_getArgumentHoverMode:function(){return ye(this._legend)},_hoverArgumentAxis:j.lQ,_setStuckSeries:j.lQ,_getCanvas:j.lQ,_notifyLegendOnHoverArgument:!0});var Xt,he=D(56221),Ie=D(34090),ce=Math.floor,de=Math.ceil,pe=Array.isArray,Be=50,We="material",vt={[We]:{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"},office:{simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},"harmony light":{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"},"soft pastel":{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"},pastel:{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"},bright:{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"},soft:{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"},ocean:{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"},vintage:{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"},violet:{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"},carmine:{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"},"dark moon":{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"},"soft blue":{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"},"dark violet":{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"},"green mist":{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}};function Nt(y){if(void 0===y)return Xt||We;y=(0,O.NU)(y),Xt=y in vt?y:void 0}function Et(y,H){H=H||{},y=y||(void 0===Xt?H.themeDefault:Nt());var Z,Oe=H.type;return pe(y)?y.slice(0):((0,R.Kg)(y)&&(Z=vt[(0,O.NU)(y)]),Z||(Z=vt[Nt()]),Oe?Z[Oe].slice(0):Z)}function Mt(y){var H=0;this.next=function(){var Z=y[H++];return H===y.length&&this.reset(),Z},this.reset=function(){H=0}}function jt(y,H,Z){var Oe={dispose(){this._extensionStrategy=null},getNextColor(bt){return this._extensionStrategy.getColor(this._currentColor++,bt)},generateColors(bt,$t){return this._extensionStrategy.generateColors(bt,($t||{}).repeat)},reset(){return this._currentColor=0,this._extensionStrategy.reset(),this}},Fe=((H=H||{}).extensionMode||"").toLowerCase(),Ye=Et(y,{type:H.type||"simpleSet",themeDefault:Z});return Oe._extensionStrategy="alternate"===Fe?function Ge(y,H){var Z=H.useHighlight?Be:0,Oe=new Mt([0,Z,-Z]),Fe=[];function Ye(){var bt=Oe.next();Fe=bt?function li(y,H){var Oe,Z=[],Fe=y.length;for(Oe=0;Oe<Fe;++Oe)Z.push(an(y[Oe],H));return Z}(y,bt):y.slice(0)}return{getColor:function(bt){var $t=Fe[bt%y.length];return bt%y.length==y.length-1&&Ye(),$t},generateColors:function(bt){var $t=[];bt=bt||H.count;for(var _i=0;_i<bt;_i++)$t.push(this.getColor(_i));return $t},reset:function(){Oe.reset(),Ye()}}}(Ye,H):"extrapolate"===Fe?function ot(y,H){return{getColor:function(Z,Oe){var $t,_i,Ii,bn,Yn,Mr,ma,io,Ua,Wo,Fe=y.length,Ye=ce((Oe-1)/Fe+1),bt=y[Z%Fe];return Ye>1?($t=bt,_i=ce(Z/Fe),Ii=Ye,io=(Yn=(bn=new Ie.A($t).hsl).l/100)+.5*(Mr=Ii-1/Ii),Wo=_i-(Ua=(Ii-1)/2),(ma=Yn-.5*Mr)<Math.min(.5,.9*Yn)&&(ma=Math.min(.5,.9*Yn)),io>Math.max(.8,Yn+.15*(1-Yn))&&(io=Math.max(.8,Yn+.15*(1-Yn))),Wo<0?Yn-=(ma-Yn)*Wo/Ua:Yn+=Wo/Ua*(io-Yn),bn.l=100*Yn,Ie.A.prototype.fromHSL(bn).toHex()):bt},generateColors:function(Z){var Oe=[];Z=Z||H.count;for(var Fe=0;Fe<Z;Fe++)Oe.push(this.getColor(Fe,Z));return Oe},reset:function(){}}}(Ye,H):function Tt(y,H){var Z=y.length,Oe=[];function Fe($t,_i,Ii,bn){for(var io,Ua,Yn=Math.floor($t/_i),Mr=$t-_i*Yn,ma=Ii;ma<Ii+$t;)Ua=Yn,Mr>0&&(Ua+=1,Mr--),io=Ua>2?Math.floor(Ua/2):0,bn.push(ma+io),ma+=Ua;return bn.sort(function(Wo,Fl){return Wo-Fl})}function Ye($t,_i,Ii){for(var bn=0,Yn=_i=(Ii+_i)%Ii;Yn<2*Ii;Yn+=1){var Mr=(Ii+Yn)%Ii;if($t[Mr])return[$t[Mr],bn];bn++}}function bt($t){if($t<=Z)return y;var _i=[],bn=0,Yn=[];Yn=H.keepLastColorInEnd?Fe($t-2,Z-2,1,[0,$t-1]):Fe($t-1,Z-1,1,[0]);for(var Mr=0;Mr<$t;Mr++)Yn.indexOf(Mr)>-1&&(_i[Mr]=y[bn++]);return function(ma,io){for(var Ua=0;Ua<io;Ua++)if(!ma[Ua]){var Fl=ma[Ua-1];if(!Fl)continue;var _c=Ye(ma,Ua,io),fu=new Ie.A(_c[0]);Fl=new Ie.A(Fl);for(var $u=0;$u<_c[1];$u++,Ua++)ma[Ua]=Fl.blend(fu,($u+1)/(_c[1]+1)).toHex()}return ma}(_i,$t)}return{getColor:function($t,_i){return Oe.length!==(_i=_i||H.count||Z)&&(Oe=bt(_i)),Oe[$t%_i]},generateColors:function($t,_i){if($t=$t||H.count||Z,_i&&$t>Z){for(var Ii=bt(Z),bn=0;bn<$t-Z;bn++)Ii.push(Ii[bn]);return Ii}return Z>0?bt($t).slice(0,$t):[]},reset:function(){}}}(Ye,H),Oe.reset(),Oe}function an(y,H){var Z=new Ie.A(y).alter(H),Oe=function xi(y){return.3*y.r+.59*y.g+.11*y.b}(Z);return(Oe>200||Oe<55)&&(Z=new Ie.A(y).alter(-H/2)),Z.toHex()}var Ti=D(11299),ni="#ffffff",wi="#000000",ui="#d3d3d3",cn="#303030",Xi="#ff0000",Qi="#232323",Ut="#767676",It="none",yt="solid",pt="top",st="right",Wt="bottom",Vt="left",ci="center",bi="inside",gt="outside";const ai=[{theme:{name:"generic.light",isDefault:!0,font:{color:Ut,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:ni,primaryTitleColor:Qi,secondaryTitleColor:Ut,gridColor:ui,axisColor:Ut,title:{backgroundColor:ni,font:{size:28,family:"'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:200},subtitle:{font:{size:16},offset:0,wordWrap:"normal",textOverflow:"ellipsis"},wordWrap:"normal",textOverflow:"ellipsis"},loadingIndicator:{text:"Loading..."},export:{backgroundColor:ni,margin:10,font:{size:14,color:Qi,weight:400},button:{margin:{top:8,left:10,right:10,bottom:8},default:{color:"#333",borderColor:"#ddd",backgroundColor:ni},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:wi,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:ui},tooltip:{enabled:!1,border:{width:1,color:ui,dashStyle:yt,visible:!0},font:{color:Qi},color:ni,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,textAlignment:"center",shared:!1,location:ci,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:wi},interactive:!1},legend:{hoverMode:"includePoints",verticalAlignment:pt,horizontalAlignment:st,position:gt,visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:yt},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8,title:{backgroundColor:ni,margin:{left:0,bottom:9,right:0,top:0},font:{size:18,weight:200},subtitle:{offset:0,font:{size:14},wordWrap:"none",textOverflow:"ellipsis"},wordWrap:"none",textOverflow:"ellipsis"}},"chart:common":{animation:{enabled:!0,duration:1e3,easing:"easeOutCubic",maxPointCountSupported:300},commonSeriesSettings:{border:{visible:!1,width:2},showInLegend:!0,visible:!0,hoverMode:"nearestPoint",selectionMode:"includePoints",hoverStyle:{hatching:{direction:st,width:2,step:6,opacity:.75},highlight:!0,border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:st,width:2,step:6,opacity:.5},highlight:!0,border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:wi,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:ci,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:gt,font:{color:ni},border:{visible:!1,width:1,color:ui,dashStyle:yt},connector:{visible:!1,width:1}}},seriesSelectionMode:"single",pointSelectionMode:"single",equalRowHeight:!0,dataPrepareSettings:{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},_rtl:{legend:{itemTextPosition:Vt}},resolveLabelOverlapping:It},"chart:common:axis":{visible:!0,valueMarginsEnabled:!0,placeholderSize:null,logarithmBase:10,discreteAxisDivisionMode:"betweenLabels",aggregatedPointsPosition:"betweenTicks",width:1,label:{visible:!0},grid:{visible:!1,width:1},minorGrid:{visible:!1,width:1,opacity:.3},tick:{visible:!0,width:1,length:7,shift:3},minorTick:{visible:!1,width:1,opacity:.3,length:7,shift:3},stripStyle:{paddingLeftRight:10,paddingTopBottom:5},constantLineStyle:{width:1,color:wi,dashStyle:yt,label:{visible:!0,position:bi}},marker:{label:{}}},"chart:common:annotation":{font:{color:"#333333"},tooltipEnabled:!0,border:{width:1,color:"#dddddd",dashStyle:yt,visible:!0},color:ni,opacity:.9,arrowLength:14,arrowWidth:14,paddingLeftRight:10,paddingTopBottom:10,shadow:{opacity:.15,offsetX:0,offsetY:1,blur:4,color:wi},image:{width:30,height:30},wordWrap:"normal",textOverflow:"ellipsis",allowDragging:!1},chart:{commonSeriesSettings:{type:"line",stack:"default",aggregation:{enabled:void 0},point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4}},selectionStyle:{border:{visible:!0,width:4}}},scatter:{},line:{width:2,dashStyle:yt,hoverStyle:{width:3,hatching:{direction:It},highlight:!1},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:yt,hoverStyle:{width:3,hatching:{direction:It},highlight:!1},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:yt,hoverStyle:{width:3,hatching:{direction:It},highlight:!1},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:yt,hoverStyle:{width:3,hatching:{direction:It},highlight:!1},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:yt,hoverStyle:{width:3,hatching:{direction:It},highlight:!1},selectionStyle:{width:3}},stepline:{width:2,dashStyle:yt,hoverStyle:{width:3,hatching:{direction:It},highlight:!1},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedarea:{point:{visible:!1},opacity:.5},fullstackedarea:{point:{visible:!1},opacity:.5},fullstackedsplinearea:{point:{visible:!1},opacity:.5},steparea:{border:{visible:!0,width:2},point:{visible:!1},hoverStyle:{border:{visible:!0,width:3}},selectionStyle:{border:{visible:!0,width:3}},opacity:.5},spline:{width:2,hoverStyle:{width:3,hatching:{direction:It},highlight:!1},selectionStyle:{width:3}},splinearea:{point:{visible:!1},opacity:.5},stackedsplinearea:{point:{visible:!1},opacity:.5},bar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},stackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:bi}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:bi}},rangebar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},rangearea:{point:{visible:!1},opacity:.5},rangesplinearea:{point:{visible:!1},opacity:.5},bubble:{opacity:.5,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},candlestick:{width:1,reduction:{color:Xi},hoverStyle:{width:3,hatching:{direction:It},highlight:!1},selectionStyle:{width:3,highlight:!1},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:Xi},hoverStyle:{width:3,hatching:{direction:It},highlight:!1},selectionStyle:{width:3,highlight:!1},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:yt,label:{visible:!1,font:{color:ni,size:12}},verticalLine:{visible:!0},horizontalLine:{visible:!0}},commonAxisSettings:{multipleAxesSpacing:5,forceUserTickInterval:!1,breakStyle:{width:5,color:"#ababab",line:"waved"},label:{displayMode:"standard",overlappingBehavior:"hide",indentFromAxis:10,wordWrap:"normal",textOverflow:"none"},title:{font:{size:16},margin:6,alignment:ci},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:Wt,axisDivisionFactor:70,label:{rotationAngle:90,staggeringSpacing:5,alignment:ci},stripStyle:{label:{horizontalAlignment:ci,verticalAlignment:pt}},constantLineStyle:{label:{horizontalAlignment:st,verticalAlignment:pt}},constantLines:[]},verticalAxis:{position:Vt,axisDivisionFactor:40,label:{alignment:st},stripStyle:{label:{horizontalAlignment:Vt,verticalAlignment:ci}},constantLineStyle:{label:{horizontalAlignment:Vt,verticalAlignment:pt}},constantLines:[]},argumentAxis:{endOnTick:!1,aggregateByCategory:!0,workWeek:[1,2,3,4,5]},valueAxis:{grid:{visible:!0},autoBreaksEnabled:!1,maxAutoBreakCount:4},commonPaneSettings:{backgroundColor:It,border:{color:ui,width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:yt}},scrollBar:{visible:!1,offset:5,color:"gray",width:10},adjustOnZoom:!0,autoHidePointMarkers:!0,rotated:!1,synchronizeMultiAxes:!0,stickyHovering:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,zoomAndPan:{dragBoxStyle:{color:"#2a2a2a",opacity:.2},panKey:"shift",allowMouseWheel:!0,allowTouchGestures:!0}},pie:{innerRadius:.5,minDiameter:.5,type:"pie",dataPrepareSettings:{_skipArgumentSorting:!0},commonSeriesSettings:{pie:{border:{visible:!1,width:2,color:ni},hoverStyle:{hatching:{direction:st,width:4,step:10,opacity:.75},highlight:!0,border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:st,width:4,step:10,opacity:.5},highlight:!0,border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:ni},hoverStyle:{hatching:{direction:st,width:4,step:10,opacity:.75},highlight:!0,border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:st,width:4,step:10,opacity:.5},highlight:!0,border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:ni},hoverStyle:{hatching:{direction:st,width:4,step:10,opacity:.75},highlight:!0,border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:st,width:4,step:10,opacity:.5},highlight:!0,border:{visible:!1,width:2}}},label:{textOverflow:"ellipsis",wordWrap:"normal"}},legend:{hoverMode:"allArgumentPoints",backgroundColor:It},adaptiveLayout:{keepLabels:!1}},gauge:{scale:{tick:{visible:!0,length:5,width:2,opacity:1},minorTick:{visible:!1,length:3,width:1,opacity:1},label:{visible:!0,alignment:ci,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:pt,endOnTick:!1},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:It,text:{indent:0,font:{size:14,color:null}}},twocolorneedle:{secondColor:"#e18e92"},trianglemarker:{space:2,length:14,width:13,color:"#8798a5"},textcloud:{arrowLength:5,horizontalOffset:6,verticalOffset:3,color:"#679ec5",text:{font:{color:ni,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:ci,verticalAlignment:Wt},text:{font:{size:18}}},_circular:{scale:{scaleDivisionFactor:17,orientation:gt,label:{indentFromTick:10}},rangeContainer:{orientation:gt},valueIndicatorType:"rectangleneedle",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangleneedle",_default:{offset:20,indentFromCenter:0,width:2,spindleSize:14,spindleGapSize:10,beginAdaptingAtRadius:50},triangleneedle:{width:4},twocolorneedle:{space:2,secondFraction:.4},rangebar:{offset:30},trianglemarker:{offset:6},textcloud:{offset:-6}}},_linear:{scale:{scaleDivisionFactor:25,horizontalOrientation:st,verticalOrientation:Wt,label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:st,verticalOrientation:Wt},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:st,verticalOrientation:Wt},trianglemarker:{offset:10,horizontalOrientation:Vt,verticalOrientation:pt},textcloud:{offset:-1,horizontalOrientation:Vt,verticalOrientation:pt}}}},barGauge:{backgroundColor:"#e0e0e0",relativeInnerRadius:.3,barSpacing:4,resolveLabelOverlapping:"hide",label:{indent:20,connectorWidth:2,font:{size:16}},legend:{visible:!1},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:ci,verticalAlignment:Wt},text:{font:{size:18}}}},rangeSelector:{scale:{valueMarginsEnabled:!0,width:1,color:wi,opacity:.1,showCustomBoundaryTicks:!0,aggregateByCategory:!0,label:{overlappingBehavior:"hide",alignment:ci,visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:wi,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:wi,opacity:.05,visible:!0,length:12},marker:{width:1,color:"#000000",opacity:.1,visible:!0,separatorHeight:33,topIndent:10,textLeftIndent:7,textTopIndent:11,label:{}},logarithmBase:10,workWeek:[1,2,3,4,5],breakStyle:{width:5,color:"#ababab",line:"waved"},endOnTick:!1},selectedRangeColor:"#606060",sliderMarker:{visible:!0,paddingTopBottom:2,paddingLeftRight:4,color:"#606060",invalidRangeColor:Xi,font:{color:ni,size:11}},sliderHandle:{width:1,color:wi,opacity:.2},shutter:{opacity:.75},background:{color:"#c0bae1",visible:!0,image:{location:"full"}},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,valueChangeMode:"onHandleRelease"},redrawOnResize:!0,chart:{barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,topIndent:.1,bottomIndent:0,valueAxis:{inverted:!1,logarithmBase:10},commonSeriesSettings:{type:"area",aggregation:{enabled:void 0},point:{visible:!1},scatter:{point:{visible:!0}}}}},map:{title:{margin:10},background:{borderWidth:1,borderColor:"#cacaca"},layer:{label:{enabled:!1,stroke:ni,"stroke-width":1,"stroke-opacity":.7,font:{color:"#2b2b2b",size:12}}},"layer:area":{borderWidth:1,borderColor:ni,color:"#d2d2d2",hoveredBorderColor:cn,selectedBorderWidth:2,selectedBorderColor:cn,label:{"stroke-width":2,font:{size:16}}},"layer:line":{borderWidth:2,color:"#ba8365",hoveredColor:"#a94813",selectedBorderWidth:3,selectedColor:"#e55100",label:{"stroke-width":2,font:{size:16}}},"layer:marker":{label:{enabled:!0,"stroke-width":1,font:{size:12}}},"layer:marker:dot":{borderWidth:2,borderColor:ni,size:8,selectedStep:2,backStep:18,backColor:ni,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,hoveredBorderWidth:1,hoveredBorderColor:cn,selectedBorderWidth:2,selectedBorderColor:cn},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:cn,selectedBorderWidth:2,selectedBorderColor:cn},"layer:marker:image":{size:20},legend:{verticalAlignment:Wt,horizontalAlignment:st,position:bi,backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:ni,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:Vt}}},treeMap:{tile:{border:{width:1,opacity:.2,color:"#000000"},color:"#5f8b95",hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:"right"},border:{opacity:1}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:"#ffffff",weight:600},shadow:{opacity:.6,offsetX:0,offsetY:1,blur:2,color:"#000000"},wordWrap:"normal",textOverflow:"ellipsis"}},group:{padding:4,border:{width:1},color:"#eeeeee",hoverStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:Ut,weight:600},textOverflow:"ellipsis"}},title:{subtitle:{}},tooltip:{},loadingIndicator:{}},sparkline:{lineColor:"#666666",lineWidth:2,areaOpacity:.2,minColor:"#e8c267",maxColor:"#e55253",barPositiveColor:"#a9a9a9",barNegativeColor:"#d7d7d7",winColor:"#a9a9a9",lossColor:"#d7d7d7",firstLastColor:"#666666",pointSymbol:"circle",pointColor:ni,pointSize:4,type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,tooltip:{enabled:!0}},bullet:{color:"#e8c267",targetColor:"#666666",targetWidth:4,showTarget:!0,showZeroLevel:!0,tooltip:{enabled:!0}},polar:{commonSeriesSettings:{type:"scatter",closed:!0,point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4},size:12},selectionStyle:{border:{visible:!0,width:4},size:12}},scatter:{},line:{width:2,dashStyle:yt,hoverStyle:{width:3,hatching:{direction:It}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedline:{width:2},bar:{opacity:.8},stackedbar:{opacity:.8}},adaptiveLayout:{width:80,height:80,keepLabels:!0},barGroupPadding:.3,commonAxisSettings:{visible:!0,forceUserTickInterval:!1,label:{overlappingBehavior:"hide",indentFromAxis:5},grid:{visible:!0},minorGrid:{visible:!0},tick:{visible:!0},title:{font:{size:16},margin:10}},argumentAxis:{startAngle:0,firstPointOnStartAngle:!1,period:void 0},valueAxis:{endOnTick:!1,tick:{visible:!1}},horizontalAxis:{position:pt,axisDivisionFactor:50,label:{alignment:ci}},verticalAxis:{position:pt,axisDivisionFactor:30,label:{alignment:st}}},funnel:{sortData:!0,valueField:"val",colorField:"color",argumentField:"arg",hoverEnabled:!0,selectionMode:"single",item:{border:{visible:!1,width:2,color:ni},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:st},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:st},border:{}}},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},legend:{visible:!1},_rtl:{legend:{itemTextPosition:Vt}},tooltip:{customizeTooltip:function(y){return{text:y.item.argument+" "+y.valueText}}},inverted:!1,algorithm:"dynamicSlope",neckWidth:0,neckHeight:0,resolveLabelOverlapping:"shift",label:{textOverflow:"ellipsis",wordWrap:"normal",visible:!0,horizontalAlignment:st,horizontalOffset:0,verticalOffset:0,showForZeroValues:!1,customizeText:function(y){return y.item.argument+" "+y.valueText},position:"columns",font:{color:ni},border:{visible:!1,width:1,color:ui,dashStyle:yt},connector:{visible:!0,width:1,opacity:.5}}},sankey:{sourceField:"source",targetField:"target",weightField:"weight",hoverEnabled:!0,alignment:ci,adaptiveLayout:{width:80,height:80,keepLabels:!0},label:{visible:!0,horizontalOffset:8,verticalOffset:0,overlappingBehavior:"ellipsis",useNodeColors:!1,font:{color:wi,weight:500},border:{visible:!1,width:2,color:ni},customizeText:function(y){return y.title},shadow:{opacity:.2,offsetX:0,offsetY:1,blur:1,color:ni}},title:{margin:10,font:{size:28,weight:200},subtitle:{font:{size:16}}},tooltip:{enabled:!0},node:{padding:30,width:8,opacity:1,border:{color:ni,width:1,visible:!1},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:st},border:{}}},link:{color:"#888888",colorMode:"none",opacity:.3,border:{color:ni,width:1,visible:!1},hoverStyle:{opacity:.5,hatching:{opacity:.75,step:6,width:2,direction:st},border:{}}}}},baseThemeName:void 0},{theme:{name:"generic.light.compact"},baseThemeName:"generic.light"}];var kt="#f05b41",mi="#fff",Kt="#333",qi="#8899a8",Wi="#707070",yn="#dee1e3";const Ur=[{theme:{name:"generic.carmine",defaultPalette:"Carmine",backgroundColor:mi,primaryTitleColor:Kt,secondaryTitleColor:qi,gridColor:yn,axisColor:Wi,export:{backgroundColor:mi,font:{color:Kt},button:{default:{color:Kt,borderColor:"#b1b7bd",backgroundColor:mi},hover:{color:Kt,borderColor:"#b1b7bd",backgroundColor:"#faf2f0"},focus:{color:Kt,borderColor:"#6d7781",backgroundColor:"#faf2f0"},active:{color:Kt,borderColor:"#6d7781",backgroundColor:"#f5e7e4"}}},legend:{font:{color:Wi}},tooltip:{color:mi,border:{color:yn},font:{color:Kt}},"chart:common":{commonSeriesSettings:{label:{border:{color:yn}}}},"chart:common:annotation":{font:{color:Kt},border:{color:yn},color:mi},chart:{commonPaneSettings:{border:{color:yn}},commonAxisSettings:{breakStyle:{color:"#c1c5c7"}}},rangeSelector:{scale:{breakStyle:{color:"#c1c5c7"},tick:{opacity:.12}},selectedRangeColor:kt,sliderMarker:{color:kt},sliderHandle:{color:kt,opacity:.5}},sparkline:{pointColor:mi,minColor:"#f0ad4e",maxColor:"#f74d61"},treeMap:{group:{color:yn,label:{font:{color:qi}}}},bullet:{color:kt},gauge:{valueIndicators:{rangebar:{color:kt},textcloud:{color:kt}}}},baseThemeName:"generic.light"},{theme:{name:"generic.carmine.compact"},baseThemeName:"generic.carmine"}];var ar="#ffffff",po="#2b2b2b",sa="#b5b5b5",Pr="#303030",ja="#c7c7c7",Na="#8e8e8e",uo="#b8b8b8",Eo="#494949";const To=[{theme:{name:"generic.dark",font:{color:"#808080"},backgroundColor:"#2a2a2a",primaryTitleColor:"#dedede",secondaryTitleColor:"#a3a3a3",gridColor:"#555555",axisColor:"#a3a3a3",export:{backgroundColor:"#2a2a2a",font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#2e2e2e"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#444"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#444444"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#555555"}},shadowColor:"#292929"},tooltip:{color:po,border:{color:Eo},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:Eo}},valueErrorBar:{color:ar}}},"chart:common:axis":{constantLineStyle:{color:ar}},"chart:common:annotation":{font:{color:"#929292"},border:{color:Eo},color:po,shadow:{opacity:.008,offsetY:4,blur:8}},chart:{commonPaneSettings:{border:{color:Eo}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:ar}}},gauge:{rangeContainer:{backgroundColor:sa},valueIndicators:{_default:{color:sa},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:ar,opacity:.32},minorTick:{color:ar,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:sa,sliderMarker:{color:sa,font:{color:Pr}},sliderHandle:{color:ar,opacity:.2},shutter:{color:po,opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:ar}}},"layer:area":{borderColor:Pr,color:"#686868",hoveredBorderColor:ar,selectedBorderColor:ar},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:ar,selectedBorderColor:ar},"layer:marker:pie":{hoveredBorderColor:ar,selectedBorderColor:ar},legend:{border:{color:"#3f3f3f"},font:{color:ar}},controlBar:{borderColor:ja,color:Pr}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:ja,firstLastColor:ja,barPositiveColor:uo,barNegativeColor:Na,winColor:uo,lossColor:Na,pointColor:Pr},bullet:{targetColor:Na},funnel:{item:{border:{color:"#2a2a2a"}}},sankey:{label:{font:{color:ar},shadow:{opacity:0}},node:{border:{color:"#2a2a2a"}},link:{color:"#888888",border:{color:"#2a2a2a"},hoverStyle:{color:"#bbbbbb"}}}},baseThemeName:"generic.light"},{theme:{name:"generic.dark.compact"},baseThemeName:"generic.dark"}];var Bi="#ffffff",_t="#000000",si="#cf00da",Dt="#f8ca00";const ln=[{theme:{name:"generic.contrast",defaultPalette:"Bright",font:{color:Bi},backgroundColor:_t,primaryTitleColor:Bi,secondaryTitleColor:Bi,gridColor:Bi,axisColor:Bi,export:{backgroundColor:_t,font:{color:Bi},button:{default:{color:Bi,borderColor:Bi,backgroundColor:_t},hover:{color:Bi,borderColor:Bi,backgroundColor:"#cf00d7"},focus:{color:Bi,borderColor:"#cf00d7",backgroundColor:_t},active:{color:_t,borderColor:Bi,backgroundColor:Bi}},borderColor:Bi,menuButtonColor:_t,activeBackgroundColor:Bi,activeColor:_t,selectedBorderColor:si,selectedColor:si,shadowColor:"none"},tooltip:{border:{color:Bi},font:{color:Bi},color:_t},"chart:common":{commonSeriesSettings:{valueErrorBar:{color:Bi},hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}},label:{font:{color:Bi},border:{color:Bi}}}},"chart:common:axis":{constantLineStyle:{color:Bi}},"chart:common:annotation":{font:{color:Bi},border:{color:Bi},color:_t},chart:{commonSeriesSettings:{},crosshair:{color:"#cf00d7"},commonPaneSettings:{backgroundColor:_t,border:{color:Bi}},scrollBar:{color:Bi},commonAxisSettings:{breakStyle:{color:"#cf00d7"}},zoomAndPan:{dragBoxStyle:{color:Bi,opacity:.7}}},pie:{commonSeriesSettings:{pie:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},doughnut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},donut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}}}},gauge:{rangeContainer:{backgroundColor:Bi},valueIndicators:{_default:{color:Bi},rangebar:{color:Bi,backgroundColor:_t},twocolorneedle:{secondColor:Bi},trianglemarker:{color:Bi},textcloud:{color:Bi,text:{font:{color:_t}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:Bi,opacity:.4},minorTick:{color:Bi,opacity:.12},breakStyle:{color:"#cf00d7"}},selectedRangeColor:si,sliderMarker:{color:si},sliderHandle:{color:si,opacity:1},shutter:{opacity:.75},background:{color:_t}},map:{background:{borderColor:Bi},layer:{label:{stroke:_t,font:{color:Bi}}},"layer:area":{borderColor:_t,color:"#686868",hoveredBorderColor:Bi,selectedBorderColor:Bi,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:Bi},"layer:marker:dot":{borderColor:_t,color:Dt,backColor:_t,backOpacity:.32},"layer:marker:bubble":{color:Dt,hoveredBorderColor:Bi,selectedBorderColor:Bi},"layer:marker:pie":{hoveredBorderColor:Bi,selectedBorderColor:Bi},controlBar:{borderColor:Bi,color:_t,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979",label:{font:{color:Bi}}}},sparkline:{pointColor:_t},bullet:{},polar:{commonSeriesSettings:{}},funnel:{label:{connector:{opacity:1}}},sankey:{label:{font:{color:Bi},shadow:{opacity:0}},node:{border:{visible:!0,width:1,color:Bi}},link:{opacity:.5,border:{visible:!0,width:1,color:Bi},hoverStyle:{opacity:.9}}}},baseThemeName:"generic.light"},{theme:{name:"generic.contrast.compact"},baseThemeName:"generic.contrast"}];var An="#3debd3",jn="#465672",Gr="#fff",ri="#c7ccd4",Ci="#596980";const Ri=[{theme:{name:"generic.darkmoon",defaultPalette:"Dark Moon",backgroundColor:jn,primaryTitleColor:Gr,secondaryTitleColor:"#919bac",gridColor:Ci,axisColor:ri,export:{backgroundColor:jn,font:{color:Gr},button:{default:{color:Gr,borderColor:"#7a889e",backgroundColor:jn},hover:{color:Gr,borderColor:"#9da8b8",backgroundColor:"#596e92"},focus:{color:Gr,borderColor:"#c4cad4",backgroundColor:"#596e92"},active:{color:Gr,borderColor:"#c4cad4",backgroundColor:"#6b80a4"}}},legend:{font:{color:ri}},tooltip:{color:"#62789e",border:{color:Ci},font:{color:Gr}},"chart:common":{commonSeriesSettings:{label:{border:{color:Ci}}}},"chart:common:annotation":{font:{color:Gr},border:{color:Ci},color:"#62789e"},chart:{commonPaneSettings:{border:{color:Ci}},commonAxisSettings:{breakStyle:{color:"#73869e"}}},gauge:{valueIndicators:{rangebar:{color:An},textcloud:{color:An,text:{font:{color:jn}}}}},barGauge:{backgroundColor:"#526280"},funnel:{item:{border:{color:jn}}},sparkline:{pointColor:jn,minColor:"#f0ad4e",maxColor:"#f9517e"},treeMap:{group:{color:Ci,label:{font:{color:Gr}}}},map:{background:{borderColor:Ci},"layer:area":{color:"#97a3b6",borderColor:jn}},rangeSelector:{shutter:{color:jn},scale:{breakStyle:{color:"#73869e"},tick:{opacity:.2}},selectedRangeColor:An,sliderMarker:{color:An,font:{color:"#000"}},sliderHandle:{color:An,opacity:.5}},bullet:{color:An},sankey:{link:{border:{color:jn}},node:{border:{color:jn}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkmoon.compact"},baseThemeName:"generic.darkmoon"}];var ji="#9c63ff",wn="#17171f",Nn="#f5f6f7",_r="#b2b2b6",ha="#343840";const aa=[{theme:{name:"generic.darkviolet",defaultPalette:"Dark Violet",backgroundColor:wn,primaryTitleColor:Nn,secondaryTitleColor:"#fff",gridColor:ha,axisColor:_r,export:{backgroundColor:wn,font:{color:Nn},button:{default:{color:Nn,borderColor:"#414152",backgroundColor:wn},hover:{color:Nn,borderColor:"#5c5c74",backgroundColor:"#2d2d3c"},focus:{color:Nn,borderColor:"#7c7c97",backgroundColor:"#2d2d3c"},active:{color:Nn,borderColor:"#7c7c97",backgroundColor:"#3c3c51"}}},legend:{font:{color:_r}},tooltip:{color:wn,border:{color:"#414152"},font:{color:Nn}},"chart:common":{commonSeriesSettings:{label:{border:{color:ha}}}},"chart:common:annotation":{font:{color:Nn},border:{color:"#414152"},color:wn},chart:{commonPaneSettings:{border:{color:ha}},commonAxisSettings:{breakStyle:{color:"#575e6b"}}},funnel:{item:{border:{color:wn}}},sparkline:{pointColor:wn,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:ha,label:{font:{color:"#fff"}}}},rangeSelector:{shutter:{color:wn},scale:{breakStyle:{color:"#575e6b"},tick:{opacity:.2}},selectedRangeColor:ji,sliderMarker:{color:ji,font:{color:"#fff"}},sliderHandle:{color:ji,opacity:.5}},bullet:{color:ji},gauge:{valueIndicators:{rangebar:{color:ji},textcloud:{color:ji}}},sankey:{link:{border:{color:wn}},node:{border:{color:wn}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkviolet.compact"},baseThemeName:"generic.darkviolet"}];var Fa="#3cbab2",Ya="#f5f5f5",_o="#28484f",Yo="#7eb2be",Va="#657c80",ia="#dedede";const $o=[{theme:{name:"generic.greenmist",defaultPalette:"Green Mist",backgroundColor:Ya,primaryTitleColor:_o,secondaryTitleColor:Yo,gridColor:ia,axisColor:Va,export:{backgroundColor:Ya,font:{color:_o},button:{default:{color:_o,borderColor:"#a2b4b8",backgroundColor:Ya},hover:{color:_o,borderColor:"#7f989e",backgroundColor:"rgba(222, 222, 222, 0.4)"},focus:{color:_o,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.4)"},active:{color:_o,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.8)"}}},legend:{font:{color:Va}},tooltip:{color:"#fff",border:{color:ia},font:{color:_o}},"chart:common":{commonSeriesSettings:{label:{border:{color:ia}}}},"chart:common:annotation":{color:"#fff",border:{color:ia},font:{color:_o}},chart:{commonPaneSettings:{border:{color:ia}},commonAxisSettings:{breakStyle:{color:"#c1c1c1"}}},funnel:{item:{border:{color:Ya}}},sparkline:{pointColor:Ya,minColor:"#ffc852",maxColor:"#f74a5e"},treeMap:{group:{color:ia,label:{font:{color:Yo}}}},rangeSelector:{shutter:{color:Ya},scale:{breakStyle:{color:"#c1c1c1"},tick:{opacity:.12}},selectedRangeColor:Fa,sliderMarker:{color:Fa},sliderHandle:{color:Fa,opacity:.5}},bullet:{color:Fa},gauge:{valueIndicators:{rangebar:{color:Fa},textcloud:{color:Fa}}}},baseThemeName:"generic.light"},{theme:{name:"generic.greenmist.compact"},baseThemeName:"generic.greenmist"}];var mo="#7ab8eb",fl="#fff",Jl="#333",zo="#99a1a8",Ao="#707070",Ha="#e8eaeb";const us=[{theme:{name:"generic.softblue",defaultPalette:"Soft Blue",backgroundColor:fl,primaryTitleColor:Jl,secondaryTitleColor:zo,gridColor:Ha,axisColor:Ao,export:{backgroundColor:fl,font:{color:Jl},button:{default:{color:Jl,borderColor:"#c9d0d4",backgroundColor:fl},hover:{color:Jl,borderColor:"#a7b2b9",backgroundColor:"#e6e6e6"},focus:{color:Jl,borderColor:"#82929b",backgroundColor:"#e6e6e6"},active:{color:Jl,borderColor:"#82929b",backgroundColor:"#d4d4d4"}}},legend:{font:{color:Ao}},tooltip:{color:fl,border:{color:Ha},font:{color:Jl}},"chart:common":{commonSeriesSettings:{label:{border:{color:Ha}}}},"chart:common:annotation":{color:fl,border:{color:Ha},font:{color:Jl}},chart:{commonPaneSettings:{border:{color:Ha}},commonAxisSettings:{breakStyle:{color:"#cfd2d3"}}},rangeSelector:{scale:{breakStyle:{color:"#cfd2d3"},tick:{opacity:.12}},selectedRangeColor:mo,sliderMarker:{color:mo},sliderHandle:{color:mo,opacity:.5}},sparkline:{pointColor:fl,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:Ha,label:{font:{color:zo}}}},bullet:{color:mo},gauge:{valueIndicators:{rangebar:{color:mo},textcloud:{color:mo}}}},baseThemeName:"generic.light"},{theme:{name:"generic.softblue.compact"},baseThemeName:"generic.softblue"}];var Ql="'Roboto', 'RobotoFallback', 'Helvetica', 'Arial', sans-serif",El="rgba(0,0,0,0.54)",Wl="rgba(255,255,255,0.87)",Xd="rgba(255,255,255,0.54)",rs="#363640",Ho="#ffffff",jl="#b5b5b5",Ko="#c7c7c7",hs="#8e8e8e",ws="#b8b8b8",Yl="#494949",Bt="#818181",Si=[{theme:{name:"material",defaultPalette:"Material",font:{family:Ql},title:{margin:{top:20,bottom:20,left:0,right:0},font:{size:20,family:Ql,weight:500},horizontalAlignment:"left",subtitle:{font:{size:14},horizontalAlignment:"left"}},tooltip:{shadow:{opacity:0},border:{visible:!1},paddingLeftRight:8,paddingTopBottom:6,arrowLength:0,location:"edge",color:"#616161",font:{color:Ho},cornerRadius:4},chart:{commonAxisSettings:{minorTick:{opacity:.5},label:{font:{size:11}}},commonAnnotationSettings:{font:{color:Ho},border:{color:"#616161"},color:"#616161",arrowLength:14,arrowWidth:0,shadow:{opacity:.08,offsetY:4,blur:8},cornerRadius:4}},pie:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},polar:{commonAxisSettings:{minorTick:{opacity:.5}},title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},funnel:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},gauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},barGauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},rangeSelector:{sliderHandle:{opacity:.5}},treeMap:{group:{label:{font:{weight:500}}}}},baseThemeName:"generic.light"},{theme:{name:"material.light",gridColor:"#e0e0e0",axisColor:El,primaryTitleColor:"rgba(0,0,0,0.87)",legend:{font:{color:El}},chart:{scrollBar:{color:"#bfbfbf",opacity:.7}},gauge:{rangeContainer:{backgroundColor:"rgba(0,0,0,0.2)"}},barGauge:{backgroundColor:"#efefef"}},baseThemeName:"material"},{theme:{name:"material.dark",gridColor:"#515159",backgroundColor:rs,axisColor:Xd,font:{color:Xd},primaryTitleColor:Wl,secondaryTitleColor:Wl,tooltip:{color:"#000"},export:{backgroundColor:rs,font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:rs},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#3f3f4b"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"}},shadowColor:"#292929"},"chart:common":{commonSeriesSettings:{label:{border:{color:Yl}},valueErrorBar:{color:Ho}}},"chart:common:axis":{constantLineStyle:{color:Ho}},"chart:common:annotation":{border:{color:"#000"},color:"#000"},chart:{commonPaneSettings:{border:{color:Yl}},commonAxisSettings:{breakStyle:{color:Bt}},zoomAndPan:{dragBoxStyle:{color:Ho}}},gauge:{rangeContainer:{backgroundColor:jl},valueIndicators:{_default:{color:jl},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:Ho,opacity:.32},minorTick:{color:Ho,opacity:.1},breakStyle:{color:Bt}},selectedRangeColor:jl,sliderMarker:{color:jl,font:{color:rs}},sliderHandle:{color:Ho,opacity:.2},shutter:{color:Ho,opacity:.1}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:Ho}}},"layer:area":{borderColor:rs,color:"#686868",hoveredBorderColor:Ho,selectedBorderColor:Ho},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:Ho,selectedBorderColor:Ho},"layer:marker:pie":{hoveredBorderColor:Ho,selectedBorderColor:Ho},legend:{border:{color:"#3f3f3f"},font:{color:Ho}},controlBar:{borderColor:Ko,color:rs}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:Ko,firstLastColor:Ko,barPositiveColor:ws,barNegativeColor:hs,winColor:ws,lossColor:hs,pointColor:rs},bullet:{targetColor:hs},funnel:{item:{border:{color:rs}}},sankey:{label:{font:{color:Ho}}}},baseThemeName:"material"}];function Ni(y,H,Z){return{theme:{name:"material."+y+"."+H,rangeSelector:{selectedRangeColor:Z,sliderMarker:{color:Z},sliderHandle:{color:Z}},map:{"layer:marker:dot":{color:Z},"layer:marker:bubble":{color:Z},legend:{markerColor:Z}},bullet:{color:Z},gauge:{valueIndicators:{rangebar:{color:Z},textcloud:{color:Z}}}},baseThemeName:"material."+H}}var Sn={blue:"#03a9f4",lime:"#cddc39",orange:"#ff5722",purple:"#9c27b0",teal:"#009688"};for(var Dn in Sn)if(Object.prototype.hasOwnProperty.call(Sn,Dn)){var Kn=Sn[Dn];Si.push(Ni(Dn,"light",Kn),Ni(Dn,"dark",Kn),{theme:{name:"material.".concat(Dn,".light.compact")},baseThemeName:"material.".concat(Dn,".light")},{theme:{name:"material.".concat(Dn,".dark.compact")},baseThemeName:"material.".concat(Dn,".dark")})}const tr=Si;var qs,va={},Aa={},Ba={},ga=o.X,Lo=E.__,$a=null,Mo=0,Ml={};function gs(y){var H=(0,O.NU)(y);return va[H]||va[Aa[H]||function yl(y,H){if(!arguments.length)return $a||el((0,Ti.ss)())||qs;var Z=(0,O.NU)(H);return $a=(y&&y.platform?function _s(y,H,Z){return el(y+H,Z)||el(y,Z)}((0,O.NU)(y.platform),y.version,Z):el((0,O.NU)(y),Z))||$a,this}()]}function el(y,H){return Aa[y+"."+H]||Ba[y+"."+H]||Aa[y]}function al(y,H,Z,Oe){var Fe=Z?Z[H]:Oe;void 0!==Fe&&void 0===y[H]&&(y[H]=Fe)}function xs(y,H,Z,Oe){var Fe=Z?Z[H]:Oe;void 0!==Fe&&(y[H]=ga(!0,{},Fe,y[H]))}(0,R.RI)(va)&&(0,R.RI)(Aa)&&!qs&&[].concat(ai,Ur,To,ln,Ri,aa,$o,us,tr,[{theme:{name:"fluent.blue.light"},baseThemeName:"material.blue.light"},{theme:{name:"fluent.blue.light.compact"},baseThemeName:"fluent.blue.light"},{theme:{name:"fluent.blue.dark"},baseThemeName:"material.blue.dark"},{theme:{name:"fluent.blue.dark.compact"},baseThemeName:"fluent.blue.dark"}]).forEach(y=>{!function Os(y,H){var Z=(0,O.NU)(y&&y.name);Z&&(y.isDefault&&(qs=Z),function hl(y,H){var Z=function Hs(y,H){var Z=y.indexOf(H);return Z>0?{name:y.substring(0,Z),scheme:y.substring(Z+1)}:null}(y,".")||{name:y},Oe=Z.name,Fe=Z.scheme;Fe?(Aa[Oe]=Aa[Oe]||H,Aa[Oe+"."+Fe]=H):Aa[Oe]=H}(Z,Z),va[Z]=ga(!0,{},gs(H),function oc(y){return al((y=ga(!0,{loadingIndicator:{font:{}},export:{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},"chart:common:annotation":{font:{},border:{}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},sankey:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},y)).loadingIndicator,"backgroundColor",y),al(y.chart.commonSeriesSettings.candlestick,"innerColor",null,y.backgroundColor),al(y.map.background,"color",null,y.backgroundColor),al(y.title.font,"color",null,y.primaryTitleColor),xs(y.title,"subtitle",null,y.title),al(y.legend.font,"color",null,y.secondaryTitleColor),al(y.legend.border,"color",null,y.gridColor),function Il(y){var H=y["chart:common:axis"];Lo([H.grid,H.minorGrid],function(Z,Oe){al(Oe,"color",null,y.gridColor)}),Lo([H,H.tick,H.minorTick,H.label.font],function(Z,Oe){al(Oe,"color",null,y.axisColor)}),al(H.title.font,"color",null,y.secondaryTitleColor),al(y.gauge.scale.label.font,"color",null,y.axisColor),al(y.gauge.scale.tick,"color",null,y.backgroundColor),al(y.gauge.scale.minorTick,"color",null,y.backgroundColor),al(y.rangeSelector.scale.label.font,"color",null,y.axisColor)}(y),Lo(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],function(H,Z){al(y[Z],"redrawOnResize",y),al(y[Z],"containerBackgroundColor",null,y.backgroundColor),xs(y[Z],"tooltip",y),xs(y[Z],"export",y)}),Lo(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],function(H,Z){xs(y[Z],"loadingIndicator",y),xs(y[Z],"legend",y),xs(y[Z],"title",y)}),Lo(["chart","pie","polar"],function(H,Z){xs(y,Z,null,y["chart:common"])}),Lo(["chart","polar"],function(H,Z){y[Z]=y[Z]||{},xs(y[Z],"commonAxisSettings",null,y["chart:common:axis"])}),Lo(["chart","polar","map","pie"],function(H,Z){y[Z]=y[Z]||{},xs(y[Z],"commonAnnotationSettings",null,y["chart:common:annotation"])}),xs(y.rangeSelector.chart,"commonSeriesSettings",y.chart),xs(y.rangeSelector.chart,"dataPrepareSettings",y.chart),al(y.treeMap.group.border,"color",null,y.gridColor),al(y.treeMap.tile.selectionStyle.border,"color",null,y.primaryTitleColor),al(y.treeMap.group.selectionStyle.border,"color",null,y.primaryTitleColor),al(y.map.legend,"backgroundColor",y),function Ud(y){var H=y.map;Lo(["area","line","marker"],function(Z,Oe){xs(H,"layer:"+Oe,null,H.layer)}),Lo(["dot","bubble","pie","image"],function(Z,Oe){xs(H,"layer:marker:"+Oe,null,H["layer:marker"])})}(y),y}(y)))}(y.theme,y.baseThemeName)});var Jd=gs,Nl=o.X,yc=E.__;function yd(y,H){var Z=y;return H&&yc(H.split("."),function(Oe,Fe){return Z=Z[Fe]}),Z}var Ol=he.A.inherit({ctor:function(y){this._themeSection=y.themeSection,this._fontFields=y.fontFields||[],function ru(y){var H=++Mo;y._cache=H,Ml[H]=y}(this)},dispose:function(){return function ql(y){delete Ml[y._cache]}(this),this._callback=this._theme=this._font=null,this},setCallback:function(y){return this._callback=y,this},setTheme:function(y,H){return this._current=y,this._rtl=H,this.refresh()},refresh:function(){var y=this._current||{},H=Jd(y.name||y);return this._themeName=H.name,this._defaultPalette=H.defaultPalette,this._font=Nl({},H.font,y.font),this._themeSection&&yc(this._themeSection.split("."),function(Z,Oe){H=Nl(!0,{},H[Oe])}),this._theme=Nl(!0,{},H,(0,R.Kg)(y)?{}:y),this._initializeTheme(),(0,O.Qj)(this._rtl,this._theme.rtlEnabled)&&Nl(!0,this._theme,this._theme._rtl),this._callback(),this},theme:function(y){return yd(this._theme,y)},themeName:function(){return this._themeName},createPalette:function(y,H){return jt(y,H,this._defaultPalette)},createDiscretePalette:function(y,H){return function Je(y,H,Z){var Oe=H>0?function Ht(y,H){var bt,Z=H-1,Oe=y.length-1,Fe=[],Ye=[];function $t(_i){var Ii=Oe*_i,bn=ce(Ii),Yn=de(Ii);Ye.push(Fe[bn].blend(Fe[Yn],Ii-bn).toHex())}for(bt=0;bt<=Oe;++bt)Fe.push(new Ie.A(y[bt]));if(Z>0)for(bt=0;bt<=Z;++bt)$t(bt/Z);else $t(.5);return Ye}(Et(y,{type:"gradientSet",themeDefault:Z}),H):[];return{getColor:function(Fe){return Oe[Fe]||null}}}(y,H,this._defaultPalette)},createGradientPalette:function(y){return function gi(y,H){var Z=Et(y,{type:"gradientSet",themeDefault:H}),Oe=new Ie.A(Z[0]),Fe=new Ie.A(Z[1]);return{getColor:function(Ye){return 0<=Ye&&Ye<=1?Oe.blend(Fe,Ye).toHex():null}}}(y,this._defaultPalette)},getAccentColor:function(y){return function wt(y,H){return(y=Et(y,{themeDefault:H})).accentColor||y[0]}(y,this._defaultPalette)},_initializeTheme:function(){var y=this;yc(y._fontFields||[],function(H,Z){y._initializeFont(yd(y._theme,Z))})},_initializeFont:function(y){Nl(y,this._font,Nl({},y))}}),au=Ol.inherit(function(){var y=function(Fe){return Fe?((Fe=(0,o.X)(!0,{},Fe)).title=(0,R.Kg)(Ye=Fe.title)?{text:Ye}:Ye,("logarithmic"===Fe.type&&Fe.logarithmBase<=0||Fe.logarithmBase&&!(0,R.kf)(Fe.logarithmBase))&&(Fe.logarithmBase=void 0,Fe.logarithmBaseError=!0),Fe.label&&Fe.label.alignment&&(Fe.label.userAlignment=!0),Fe):{};var Ye},H=function(Fe,Ye,bt){var $t=this._theme,_i=bt^"valueAxis"===Fe?"verticalAxis":"horizontalAxis",Ii=y(Ye),bn=y(this._userOptions.commonAxisSettings),Yn=(0,o.X)(!0,{},$t.commonAxisSettings,$t[_i],$t[Fe],bn,Ii);return Yn.workWeek=Ii.workWeek||$t[Fe].workWeek,Yn.forceUserTickInterval|=(0,R.O9)(Ii.tickInterval)&&!(0,R.O9)(Ii.axisDivisionFactor),Yn},Z=function(Fe,Ye){Ye=Ye||this._userOptions[Fe];var bt=this._theme[Fe],$t=this._mergedSettings[Fe];return $t||($t=(0,R.Qd)(bt)&&(0,R.Qd)(Ye)?(0,o.X)(!0,{},bt,Ye):(0,R.O9)(Ye)?Ye:bt,this._mergedSettings[Fe]=$t,$t)},Oe={base:Z,argumentAxis:H,valueAxisRangeSelector:function(){return Z.call(this,"valueAxis")},valueAxis:H,series:function(Fe,Ye,bt){var _c,Js,$t=this,_i=$t._theme,Ii=$t._userOptions.commonSeriesSettings||{},bn=_i.commonSeriesSettings,Yn=$t._themeSection.split(".").slice(-1)[0],Mr=(0,O.NU)(Ye.type||Ii.type||bn.type||"pie"===Yn&&_i.type),ma=$t.palette,io=~Mr.indexOf("bar"),Ua=~Mr.indexOf("line"),Wo=~Mr.indexOf("area"),Fl="bubble"===Mr,fu=$t.getOptions("resolveLabelsOverlapping"),$u=$t.getOptions("containerBackgroundColor"),cd=Oe.seriesTemplate.call(this);(io||Fl)&&(Js=(Ye=(0,o.X)(!0,{},Ii,Ii[Mr],Ye)).visible,Ii={type:{}},(0,o.X)(!0,Ye,Ye.point),Ye.visible=Js);var Bl=(0,o.X)(!0,{aggregation:{}},bn,bn[Mr],Ii,Ii[Mr],Ye);return Bl.aggregation.enabled="chart"===Yn&&!!Bl.aggregation.enabled,Bl.type=Mr,Bl.widgetType=Yn,Bl.containerBackgroundColor=$u,_c="pie"!==Yn?(0,O.Dz)(Bl.color,!0)||ma.getNextColor(bt):function(Tc,Sm,Ld){var ch="".concat(Tc,"-").concat(Sm);return $t._multiPieColors[ch]||($t._multiPieColors[ch]=ma.getNextColor(Ld)),$t._multiPieColors[ch]},Bl.mainSeriesColor=_c,Bl.resolveLabelsOverlapping=fu,Bl.label&&(Ua||Wo&&"rangearea"!==Mr||"scatter"===Mr)&&(Bl.label.position="outside"),cd&&(Bl.nameField=cd.nameField),Bl},animation:function(Fe){var Ye=this._userOptions[Fe];return Ye=(0,R.Qd)(Ye)?Ye:(0,R.O9)(Ye)?{enabled:!!Ye}:{},Z.call(this,Fe,Ye)},seriesTemplate(){var Fe=Z.call(this,"seriesTemplate");return Fe&&(Fe.nameField=Fe.nameField||"series"),Fe},zoomAndPan(){function Fe(bt){var $t="pan"===(bt=(0,O.NU)(bt))||"both"===bt,_i="zoom"===bt||"both"===bt;return{pan:$t,zoom:_i,none:!$t&&!_i}}var Ye=Z.call(this,"zoomAndPan");return{valueAxis:Fe(Ye.valueAxis),argumentAxis:Fe(Ye.argumentAxis),dragToZoom:!!Ye.dragToZoom,dragBoxStyle:{class:"dxc-shutter",fill:Ye.dragBoxStyle.color,opacity:Ye.dragBoxStyle.opacity},panKey:Ye.panKey,allowMouseWheel:!!Ye.allowMouseWheel,allowTouchGestures:!!Ye.allowTouchGestures}}};return{_themeSection:"chart",ctor:function(Fe){var Ye=this;Ye.callBase.apply(Ye,arguments),Ye._userOptions=Fe.options||{},Ye._mergeAxisTitleOptions=[],Ye._multiPieColors={},Ye._callback=j.lQ},dispose:function(){var Fe=this;return Fe.palette&&Fe.palette.dispose(),Fe.palette=Fe._userOptions=Fe._mergedSettings=Fe._multiPieColors=null,Fe.callBase.apply(Fe,arguments)},resetPalette:function(){this.palette.reset(),this._multiPieColors={}},getOptions:function(Fe){return(Oe[Fe]||Oe.base).apply(this,arguments)},refresh:function(){return this._mergedSettings={},this.callBase.apply(this,arguments)},_initializeTheme:function(){this.callBase.apply(this,arguments),this.updatePalette()},resetOptions:function(Fe){this._mergedSettings[Fe]=null},update:function(Fe){this._userOptions=Fe},updatePalette:function(){this.palette=this.createPalette(this.getOptions("palette"),{useHighlight:!0,extensionMode:this.getOptions("paletteExtensionMode")})}}}()),ks=D(43037),oi="string",yi="numeric",zt="datetime",Yi="discrete",Un="semidiscrete",vo="continuous",No="logarithmic",ed="valueType",xd="argumentType",Ls=(0,O.HU)([oi,yi,zt]),Xc=Array.isArray;function uh(y,H,Z){var Oe=H?function(Fe,Ye){return Fe-Ye}:function(Fe,Ye){return Ye-Fe};return y.sort(function(Fe,Ye){var bt=Z(Fe),$t=Z(Ye),_i=(0,R.O9)(bt)?1:0,Ii=(0,R.O9)($t)?1:0;return _i&&Ii?Oe(bt,$t):Oe(_i,Ii)}),y}function qe(y,H){var Z=[];return y.forEach(function(Oe){var Fe=H(Oe);void 0!==Fe&&Z.push(Fe)}),Z}function Fi(y){return y}function _n(y,H){var Z=H;return H===oi||(0,R.Kg)(y)?Z=oi:H===zt||(0,R.$P)(y)?Z=zt:(0,R.kf)(y)&&(Z=yi),Z}function dr(y,H,Z,Oe){return y===oi&&(H===vo||H===No||H===Un)&&Oe("E2002"),H===No?No:Z||H===Yi||y===oi?Yi:H===Un?Un:vo}function Wa(y,H,Z){var Oe=y?(0,ks.S)(y):Fi,Fe=H!==Yi?function(Ye){return isFinite(Ye)||void 0===Ye?Ye:null}:Fi;return function(Ye,bt){var $t=Fe(Oe(Ye));return void 0===$t&&function ea(y,H,Z){y&&Z((0,R.kf)(y)||(0,R.$P)(y)||(0,R.Kg)(y)?"E2004":"E2003",[H])}(Ye,bt,Z),$t}}function Xo(y,H){var Z,Ye,Oe=H.length,Fe=(0,o.X)({},y);for(Z=0;Z<Oe;++Z)Fe[Ye=H[Z][0]]=H[Z][1](y[Ye],Ye);return Fe}function Cd(y,H){var Z=y-H;return isNaN(Z)?(0,R.O9)(y)?(0,R.O9)(H)?0:-1:1:Z}function Gd(y,H){return y.slice().sort(function(Z,Oe){return Cd(Z[H],Oe[H])})}function hh(y,H,Z,Oe){y=function sc(y,H){var Ye,bt,$t,_i,Z=[],Oe=(0,R.O9)(y),Fe=Oe&&!Xc(y);if(Oe&&!Fe)for(Ye=0,bt=y.length,$t=0;Ye<bt;++Ye)(0,R.Gv)(_i=y[Ye])?Z[$t++]=_i:_i&&(Fe=!0);return Fe&&H("E2001"),Z}(y,Z),H.argumentType=H.argumentAxisType=null,function ou(y){y.forEach(function(H){H.valueType=H.valueAxisType=null,H.series.forEach(function(Z){Z.updateDataType({})}),H.valueAxis&&H.valueAxis.resetTypes(ed)})}(H.groups),function Ve(y){y&&y.forEach(function(H){H.resetTypes(xd)})}(H.argumentAxes),function Qd(y,H,Z){var bt,Oe=[],Fe=[],Ye=H.argumentOptions&&Ls(H.argumentOptions.argumentType);H.groups.forEach(function($t){if($t.series.length){var _i=$t.valueOptions&&Ls($t.valueOptions.valueType);$t.valueType=_i,H.argumentType=Ye,!_i&&Oe.push($t),!Ye&&Fe.push($t)}}),(Oe.length||Fe.length)&&(bt=Oe.map(function($t,_i){return _i}),y.some(function($t){var _i;if(Oe.forEach(function(Ii,bn){(function Vc(y,H){return y.series.forEach(function(Z){Z.getValueFields().forEach(function(Oe){y.valueType=_n(H[Oe],y.valueType)})}),y.valueType})(Ii,$t)&&bt.indexOf(bn)>=0&&bt.splice(bn,1)}),_i||Fe.forEach(function(Ii){_i=function Hc(y,H,Z){return y.forEach(function(Oe){Z.argumentType=_n(H[Oe.getArgumentField()],Z.argumentType)}),Z.argumentType}(Ii.series,$t,H)}),!Z&&_i&&0===bt.length)return!0}))}(y,H,Oe.checkTypeForAllData),function Ic(y,H){var Z=y.argumentOptions||{},Fe=dr(y.argumentType,Z.type,!!(Z&&Z.categories||[]).length,H);y.groups.forEach(function(Ye){var bt=Ye.valueOptions||{},_i=dr(Ye.valueType,bt.type,!!(bt.categories||[]).length,H);Ye.series.forEach(function(Ii){var bn={};bn.argumentAxisType=Fe,bn.valueAxisType=_i,y.argumentAxisType=y.argumentAxisType||bn.argumentAxisType,Ye.valueAxisType=Ye.valueAxisType||bn.valueAxisType,bn.argumentType=y.argumentType,bn.valueType=Ye.valueType,bn.showZero=bt.showZero,Ii.updateDataType(bn)}),Ye.valueAxisType=Ye.valueAxisType||_i,Ye.valueAxis&&(Ye.valueAxis.setTypes(Ye.valueAxisType,Ye.valueType,ed),Ye.valueAxis.validate())}),y.argumentAxisType=y.argumentAxisType||Fe,y.argumentAxes&&y.argumentAxes.forEach(function(Ye){Ye.setTypes(y.argumentAxisType,y.argumentType,xd),Ye.validate()})}(H,Z),Oe.convertToAxisDataType&&(y=function Ys(y,H){var Oe,Z=[],Fe=y.length;for(Z.length=Fe,Oe=0;Oe<Fe;++Oe)Z[Oe]=Xo(y[Oe],H);return Z}(y,function Io(y,H){var Oe,Fe,Z=Wa(y.argumentType,y.argumentAxisType,H),Ye=[Z],bt={},$t=[];for(var _i in y.groups.forEach(function(Ii,bn){Ii.series.forEach(function(Yn){Fe=Wa(Ii.valueType,Ii.valueAxisType,H),Oe=Wa(yi,vo,H),bt[Yn.getArgumentField()]=Z,Yn.getValueFields().forEach(function(Mr){Ye[bn+1]=Fe,bt[Mr]=Fe}),Yn.getSizeField()&&(bt[Yn.getSizeField()]=Oe)})}),bt)$t.push([_i,bt[_i]]);return $t.length&&function Yt(y,H){var Z=y.argumentOptions&&y.argumentOptions.categories;y.groups.forEach(function(Oe,Fe){var Ye=Oe.valueOptions&&Oe.valueOptions.categories;Ye&&(Oe.valueOptions.categories=qe(Ye,H[Fe+1]))}),Z&&(y.argumentOptions.categories=qe(Z,H[0]))}(y,Ye),$t}(H,Z))),function es(y,H){var Z=H.groups[0]&&H.groups[0].series[0];Z&&("pie"===Z.type||"doughnut"===Z.type||"donut"===Z.type)&&H.groups.forEach(function(Fe){Fe.series.forEach(function(Ye){!function td(y,H,Z,Oe){var Fe=(Oe=Oe||{}).mode,Ye={};if(Fe&&"none"!==Fe){Ye[H]=String(Oe.groupName||"others"),Ye[Z]=0;var bt=uh(y.slice(),!1,function($t){return $t[Z]});(function Cs(y,H,Z,Oe){Oe>=0&&y.slice(Oe).forEach(function(Fe){(0,R.O9)(Fe[Z])&&(H[Z]+=Fe[Z],Fe[Z]=void 0)})})(bt,Ye,Z,"smallValueThreshold"===Fe?function ol(y,H,Z){var Oe,Ye,Fe=y.length;for(Oe=0;Oe<Fe&&!((0,R.O9)(Ye=y[Oe][H])&&Z>Ye);++Oe);return Oe}(bt,Z,Oe.threshold):Oe.topCount),Ye[Z]&&y.push(Ye)}}(y,Ye.getArgumentField(),Ye.getValueFields()[0],Ye.getOptions().smallValuesGrouping)})})}(y,H);var Fe=function Ju(y,H,Z,Oe){var Ii,Fe={},Ye=H.argumentAxisType===Yi,bt=Ye&&H.argumentOptions&&H.argumentOptions.categories,$t=function(bn){return bn},_i=Z.sortingMethod;return!bt&&(0,R.Tn)(_i)&&(y=function id(y,H){return y.slice().sort(H)}(y,_i)),Ye&&(H.categories=function gu(y,H,Z){var Oe=Z?Z.slice():[];return H.forEach(function(Fe){y.forEach(function(Ye){var bt=Ye[Fe];(0,R.O9)(bt)&&function lp(y,H){return-1===y.map(function(Z){return Z.valueOf()}).indexOf(H.valueOf())}(Oe,bt)&&Oe.push(bt)})}),Oe}(y,Oe,bt)),bt||!(0,R.Tn)(_i)&&H.argumentType===oi&&!Z._skipArgumentSorting?$t=function su(y){var H={};return y.forEach(function(Z,Oe){H[Z]=Oe}),function(Z,Oe){return uh(Z.slice(),!0,function(Fe){return H[Fe[Oe]]})}}(H.categories):!0===_i&&H.argumentType!==oi&&($t=Gd,Ii=Ye),Oe.forEach(function(bn){Fe[bn]=$t(y,bn)}),Ii&&(H.categories=H.categories.sort(Cd)),Fe}(y,H,Oe,function kl(y){var H=[],Z={};return y.groups.forEach(function(Oe){Oe.series.forEach(function(Fe){!function ml(y,H,Z){Z[y]||(H.push(y),Z[y]=!0)}(Fe.getArgumentField(),H,Z)})}),H}(H));return Fe}var zc=D(68786),Vl=Number,Jc=(0,O.HU)(["left","center","right"]),Cp=(0,O.HU)(["top","bottom"]);function xc(y){return!!(y&&String(y).length>0)}function wo(y,H,Z,Oe,Fe){y.attr({text:H}).setMaxSize(Z,Fe,Oe).textChanged&&y.setTitle(H)}function lc(y){return y>=0?Vl(y):10}var Ot=function(y){this._params=y,this._group=y.renderer.g().attr({class:y.cssClass}).linkOn(y.root||y.renderer.root,"title"),this._hasText=!1};(0,o.X)(Ot.prototype,zc.N.prototype,{dispose:function(){this._group.linkRemove(),this._group.linkOff(),this._titleElement&&(this._clipRect.dispose(),this._titleElement=this._subtitleElement=this._clipRect=null),this._params=this._group=this._options=null},_updateOptions:function(y){this._options=y,this._options.horizontalAlignment=Jc(y.horizontalAlignment,"center"),this._options.verticalAlignment=Cp(y.verticalAlignment,"top"),this._options.margin=function $s(y){return y>=0?{left:Vl(y),top:Vl(y),right:Vl(y),bottom:Vl(y)}:{left:lc((y=y||{}).left),top:lc(y.top),right:lc(y.right),bottom:lc(y.bottom)}}(y.margin)},_updateStructure:function(){var y=this._params.renderer,H=this._group,Z=this._options,Oe=Z.horizontalAlignment;this._titleElement||(this._titleElement=y.text().append(H),this._subtitleElement=y.text(),this._clipRect=y.clipRect(),H.attr({"clip-path":this._clipRect.id})),this._titleElement.attr({align:Oe,class:Z.cssClass}),this._subtitleElement.attr({align:Oe,class:Z.subtitle.cssClass}),H.linkAppend(),xc(Z.subtitle.text)?this._subtitleElement.append(H):this._subtitleElement.remove()},_updateTexts:function(){var Fe,y=this._options,H=y.subtitle,Z=this._titleElement,Oe=this._subtitleElement;Z.attr({text:"A",y:0}).css((0,O.a1)(y.font)),Fe=Z.getBBox(),this._baseLineCorrection=Fe.height+Fe.y,Z.attr({text:y.text}),Fe=Z.getBBox(),Z.attr({y:-Fe.y}),xc(H.text)&&Oe.attr({text:H.text,y:0}).css((0,O.a1)(H.font))},_shiftSubtitle(){var y=this._titleElement.getBBox(),H=this._subtitleElement,Z=this._options.subtitle.offset;H.move(0,y.y+y.height-H.getBBox().y-Z)},_updateBoundingRectAlignment:function(){var y=this._boundingRect,H=this._options;y.verticalAlignment=H.verticalAlignment,y.horizontalAlignment=H.horizontalAlignment,y.cutLayoutSide=H.verticalAlignment,y.cutSide="vertical",y.position={horizontal:H.horizontalAlignment,vertical:H.verticalAlignment}},hasText:function(){return this._hasText},update:function(y,H){var Z=(0,o.X)(!0,{},y,function Qt(y){var H=(0,R.Kg)(y)?{text:y}:y||{};return H.subtitle=(0,R.Kg)(H.subtitle)?{text:H.subtitle}:H.subtitle||{},H}(H)),Oe=xc(Z.text),Fe=Oe||Oe!==this._hasText;return this._baseLineCorrection=0,this._updateOptions(Z),this._boundingRect={},Oe?(this._updateStructure(),this._updateTexts()):this._group.linkRemove(),this._updateBoundingRect(),this._updateBoundingRectAlignment(),this._hasText=Oe,Fe},draw:function(y,H){return this._hasText&&(this._group.linkAppend(),this._correctTitleLength(y),this._group.getBBox().height>H&&this.freeSpace()),this},_correctTitleLength:function(y){var H=this._options,Z=H.margin,Oe=y-Z.left-Z.right,Fe=H.placeholderSize;wo(this._titleElement,H.text,Oe,H,Fe),this._subtitleElement&&(Vl(Fe)>0&&(Fe-=this._titleElement.getBBox().height),wo(this._subtitleElement,H.subtitle.text,Oe,H.subtitle,Fe),this._shiftSubtitle()),this._updateBoundingRect();var{x:Ye,y:bt,height:$t}=this.getCorrectedLayoutOptions();this._clipRect.attr({x:Ye,y:bt,width:y,height:$t})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(y,H){var Z=this.getLayoutOptions();return this._group.move(y-Z.x,H-Z.y),this},_updateBoundingRect:function(){var y=this._options,H=y.margin,Z=this._boundingRect,Oe=this._hasText?this._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0};Oe.isEmpty||(Oe.height+=H.top+H.bottom-this._baseLineCorrection,Oe.width+=H.left+H.right,Oe.x-=H.left,Oe.y+=this._baseLineCorrection-H.top),y.placeholderSize>0&&(Oe.height=y.placeholderSize),Z.height=Oe.height,Z.width=Oe.width,Z.x=Oe.x,Z.y=Oe.y},getCorrectedLayoutOptions(){var y=this.getLayoutOptions(),H=this._baseLineCorrection;return(0,o.X)({},y,{y:y.y-H,height:y.height+H})},layoutOptions:function(){return this._hasText?{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}:null},measure:function(y){return this.draw(y[0],y[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(y,H){!function et(y,H){return y[2]-y[0]<H.width||y[3]-y[1]<H.height}(y,this._boundingRect)?this.shift(Math.round(y[0]),Math.round(y[1])):this.shift(H[0],H[1])},freeSpace:function(){this._params.incidentOccurred("W2103"),this._group.linkRemove(),this._boundingRect.width=this._boundingRect.height=0},getOptions:function(){return this._options},changeLink:function(y){this._group.linkRemove(),this._group.linkOn(y,"title")}});var Ei={name:"title",init:function(){this._title=new Ot({renderer:this._renderer,cssClass:this._rootClassPrefix+"-title",incidentOccurred:this._incidentOccurred}),this._layout.add(this._title)},dispose:function(){this._title.dispose(),this._title=null},customize:function(y){y.addChange({code:"TITLE",handler:function(){this._title.update(this._themeManager.theme("title"),this.option("title"))&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})},fontFields:["title.font","title.subtitle.font"]},on=D(95652),Bn=D(91593),ir=D(12984),Yr=Number,Ir=Math,pa=Ir.round,fa=Ir.max,eo=Ir.min,Oo=Ir.ceil,Fs=R.O9,Tl=R.Tn,Rs=O.HU,Qc=O.NU,ut=o.X,gn="center",rr="right",Tr="left",Da="top",Ca="bottom",ts="horizontal",zn="vertical",Ss="outside",wa="none",vr=Rs([Tr,gn,rr]),ba=Rs([Da,Ca]),oa=Rs([zn,ts]),zs=Rs([Tr,rr,Da,Ca]),Wn=Rs([Ss,"inside"]),nd=Rs([Tr,gn,rr]);function Zr(y,H,Z){if(y){var Oe=y.fill;return(0,o.X)({},{state:Z,fill:Oe===wa?H:Oe,opacity:y.opacity,filter:y.filter,hatching:ut({},y.hatching,{step:5,width:2})})}}function tl(y,H,Z){var Oe=(0,Bn.qy)(y,H);return Oe.fill&&0===Oe.fill.indexOf("DevExpress")&&(Oe.fill=(0,Bn.t)(Oe.fill)),Oe.opacity=Oe.opacity>=0?Oe.opacity:1,(0,o.X)({},Oe,{size:Z})}function Al(y,H,Z,Oe){var Fe=H&&Z[H[y]];Fe&&Fe.renderMarker(Fe.states[Oe])}function Vh(y,H){return y.rect(0,0,H,H)}function Ks(y,H){return y.circle(H/2,H/2,H/2)}function Hh(y,H,Z){return H>=y.left&&H<=y.right&&Z>=y.top&&Z<=y.bottom}function fh(y,H,Z,Oe){var $t,Fe={x:0,y:0},Ye=0,bt=0;if($t="y"===H.direction?Oe.top+Oe.bottom:Oe.left+Oe.right,y.forEach(function(_i,Ii){var bn=_i[0],Yn=_i.length;_i.forEach(function(Mr,ma){Fe[H.direction]+=Mr[H.measure]+(ma!==Yn-1?Mr.offset||H.spacing:0),Ye=fa(Ye,Fe[H.direction])}),Fe[H.direction]=0,Fe[H.altDirection]+=bn[H.altMeasure]+bn.altOffset||H.altSpacing,bt=fa(bt,Fe[H.altDirection])}),Ye+$t>H.length)return H.countItem=function zh(y,H){return y.altCountItem++,Oo(H/y.altCountItem)}(H,Z),!0}function $p(y,H){return y.reduce((Z,Oe)=>Z+Oe[H.measure]+(Oe.offset||H.spacing),0)}function Zu(y){switch(y.itemTextPosition){case Ca:return{horizontal:gn,vertical:Da};case Da:return{horizontal:gn,vertical:Ca};case Tr:return{horizontal:rr,vertical:gn};case rr:return{horizontal:Tr,vertical:gn}}}function Uh(y,H){var Z=y.reduce((Oe,Fe)=>fa(Oe,Fe?Fe[H]:Oe),0);y.forEach(Oe=>{Oe&&(Oe[H]=Z)})}function Gh(y){var Oe,Fe,H=y.length,Z=y[0].length,Ye=[];for(Oe=0;Oe<Z;Oe++)for(Ye[Oe]=[],Fe=0;Fe<H;Fe++)Ye[Oe][Fe]=y[Fe][Oe];return Ye}var xl=function(y){this._renderer=y.renderer,this._legendGroup=y.group,this._backgroundClass=y.backgroundClass,this._itemGroupClass=y.itemGroupClass,this._textField=y.textField,this._getCustomizeObject=y.getFormatObject,this._titleGroupClass=y.titleGroupClass,this._allowInsidePosition=y.allowInsidePosition,this._widget=y.widget,this._updated=!1},Wh=xl,sl=Wh.prototype=(0,on.o8)(zc.N.prototype);(0,o.X)(sl,{constructor:Wh,getOptions:function(){return this._options},update:function(){var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],H=arguments.length>1?arguments[1]:void 0,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Oe=this,Fe=(H=Oe._options=function Nd(y,H,Z){return y?(function hd(y){var H=y.margin;H=H>=0?{top:H=Yr(y.margin),bottom:H,left:H,right:H}:{top:H.top>=0?Yr(H.top):10,bottom:H.bottom>=0?Yr(H.bottom):10,left:H.left>=0?Yr(H.left):10,right:H.right>=0?Yr(H.right):10},y.margin=H}(y),y.horizontalAlignment=vr(y.horizontalAlignment,rr),y.verticalAlignment=ba(y.verticalAlignment,y.horizontalAlignment===gn?Ca:Da),y.orientation=oa(y.orientation,y.horizontalAlignment===gn?ts:zn),y.itemTextPosition=zs(y.itemTextPosition,y.orientation===ts?Ca:rr),y.position=Z?Wn(y.position,Ss):Ss,y.itemsAlignment=nd(y.itemsAlignment,null),y.hoverMode=Qc(y.hoverMode),y.customizeText=Tl(y.customizeText)?y.customizeText:function(){return this[H]},y.customizeHint=Tl(y.customizeHint)?y.customizeHint:j.lQ,y._incidentOccurred=y._incidentOccurred||j.lQ,y):null}(H,Oe._textField,Oe._allowInsidePosition)||{}).markerSize;if(this._updated=!0,this._data=y.map(bt=>(bt.size=Yr(bt.size>0?bt.size:Fe),bt.marker=tl(bt,bt.states.normal),Object.defineProperty(bt.marker,"size",{get:()=>bt.size,set($t){bt.size=$t}}),Object.defineProperty(bt.marker,"opacity",{get:()=>bt.states.normal.opacity,set($t){bt.states.normal.opacity=bt.states.hover.opacity=bt.states.selection.opacity=$t}}),bt)),H.customizeItems&&(Oe._data=H.customizeItems(y.slice())||y),Oe._boundingRect={width:0,height:0,x:0,y:0},Oe.isVisible()&&!Oe._title&&(Oe._title=new Ot({renderer:Oe._renderer,cssClass:Oe._titleGroupClass,root:Oe._legendGroup})),Oe._title){var Ye=H.title;Z.horizontalAlignment=function kc(y){return y.horizontalAlignment===gn?gn:y.itemTextPosition===rr?Tr:y.itemTextPosition===Tr?rr:gn}(H),Oe._title.update(Z,Ye)}return this.erase(),Oe},isVisible:function(){return this._options&&this._options.visible},draw:function(y,H){var Z=this._getItemData();return this.erase(),this.isVisible()&&Z&&Z.length?(this._insideLegendGroup=this._renderer.g().enableLinks().append(this._legendGroup),this._title.changeLink(this._insideLegendGroup),this._createBackground(),this._title.hasText()&&this._title.draw(y-(this._background?2*this._options.paddingLeftRight:0),H),this._markersGroup=this._renderer.g().attr({class:this._itemGroupClass}).append(this._insideLegendGroup),this._createItems(Z),this._updateElementsPosition(y,H),this):this},_measureElements:function(){var y=this._options,H=0;this._items.forEach(Z=>{var Oe=Z.label.getBBox(),Fe=Z.marker.getBBox();Z.markerBBox=Fe,Z.markerSize=Math.max(Fe.width,Fe.height);var Ye=function Zc(y,H,Z){var Oe,Fe;switch(y.itemTextPosition){case Tr:case rr:Oe=H.width+7+Z.width,Fe=fa(H.height,Z.height);break;case Da:case Ca:Oe=fa(H.width,Z.width),Fe=H.height+4+Z.height}return{width:Oe,height:Fe}}(y,Fe,Oe);Z.labelBBox=Oe,Z.bBox=Ye,H=fa(H,Ye.height)}),y.equalRowHeight&&this._items.forEach(Z=>Z.bBox.height=H)},_updateElementsPosition:function(y,H){var Z=this._options;this._size={width:y,height:H},this._measureElements(),this._locateElements(Z),this._finalUpdate(Z);var Oe=this.getLayoutOptions();(Oe.width>y||Oe.height>H)&&this.freeSpace()},_createItems:function(y){var H=this,Z=H._options,Oe=H._renderer,Fe=function(y){return function ph(y){return"circle"===Qc(y)}(y)?Ks:Vh}(Z.markerShape);H._markersId={};var bt=H._widget._getTemplate(Z.markerTemplate?Z.markerTemplate:(_i,Ii)=>{var bn=_i.marker;Fe(Oe,bn.size).attr({fill:bn.fill,opacity:bn.opacity,filter:bn.filter}).append({element:Ii})}),$t=H._markersGroup;$t.css((0,O.a1)(Z.font)),H._deferredItems=[],H._templatesGroups=[],H._items=(y||[]).map((_i,Ii)=>{var bn=_i.states,Yn=bn.normal,Mr=Yn.fill;_i.size=_i.marker.size;var ma={normal:(0,o.X)(Yn,{fill:Mr||Z.markerColor||Z.defaultColor,state:"normal"}),hover:Zr(bn.hover,Mr,"hovered"),selection:Zr(bn.selection,Mr,"selected")};_i.states=ma;var io=Oe.g().append($t),Ua=Oe.g().attr({class:"dxl-marker"}).append(io);H._deferredItems[Ii]=new ir.cY,H._templatesGroups.push(Ua);var Wo={label:H._createLabel(_i,io),marker:Ua,renderer:Oe,group:io,tracker:{id:_i.id,argument:_i.argument,argumentIndex:_i.argumentIndex},states:ma,itemTextPosition:Z.itemTextPosition,markerOffset:0,bBoxes:[],renderMarker(Fl){_i.marker=tl(Wo,Fl,_i.size),Ua.clear(),bt.render({model:_i,container:Ua.element,onRendered:H._deferredItems[Ii].resolve})}};return Wo.renderMarker(ma.normal),H._createHint(_i,io),void 0!==_i.id&&(H._markersId[_i.id]=Ii),Wo})},getTemplatesGroups:function(){return this._templatesGroups||[]},getTemplatesDef:function(){return this._deferredItems||[]},_getItemData:function(){var y=this._data||[];return(this._options||{}).inverted&&(y=y.slice().reverse()),y.filter(Z=>Z.visible)},_finalUpdate:function(y){this._adjustBackgroundSettings(y),this._setBoundingRect(y.margin)},erase:function(){var y=this._insideLegendGroup;return y&&y.dispose(),this._insideLegendGroup=this._markersGroup=this._x1=this._x2=this._y2=this._y2=null,this},_locateElements:function(y){this._moveInInitialValues(),this._locateRowsColumns(y)},_moveInInitialValues:function(){this._title.hasText()&&this._title.move([0,0]),this._legendGroup&&this._legendGroup.move(0,0),this._background&&this._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(y){return Al(y,this._markersId,this._items,"selection"),this},applyHover:function(y){return Al(y,this._markersId,this._items,"hover"),this},resetItem:function(y){return Al(y,this._markersId,this._items,"normal"),this},_createLabel:function(y,H){var Z=this._getCustomizeObject(y),Oe=this._options,Fe=function qd(y){switch(y){case Da:case Ca:return gn;case Tr:return rr;case rr:return Tr}}(Oe.itemTextPosition),Ye=Oe.customizeText.call(Z,Z),bt=Fs(y.textOpacity)?{color:Oe.font.color,opacity:y.textOpacity}:{};return this._renderer.text(Ye,0,0).css((0,O.a1)(bt)).attr({align:Fe,class:Oe.cssClass}).append(H)},_createHint:function(y,H){var Z=this._getCustomizeObject(y),Oe=this._options.customizeHint.call(Z,Z);Fs(Oe)&&""!==Oe&&H.setTitle(Oe)},_createBackground:function(){var y="inside"===this._options.position,H=this._options.backgroundColor,Z=H||(y?this._options.containerBackgroundColor:wa);(this._options.border.visible||(y||H)&&H!==wa)&&(this._background=this._renderer.rect(0,0,0,0).attr({fill:Z,class:this._backgroundClass}).append(this._insideLegendGroup))},_locateRowsColumns:function(y){var Fe,H=0,Z=this._getItemsLayoutOptions(),Oe=this._items.length;do{this._createLines(Fe=[],Z),this._alignLines(Fe,Z),H++}while(fh(Fe,Z,Oe,y.margin)&&H<Oe);this._applyItemPosition(Fe,Z)},_createLines:function(y,H){this._items.forEach((Z,Oe)=>{var $t,_i,Fe=function ko(y,H,Z){var Oe={};return Z%H.countItem==0&&(H.markerOffset?y.push([],[]):y.push([])),H.markerOffset?(Oe.firstLine=y[y.length-1],Oe.secondLine=y[y.length-2]):Oe.firstLine=Oe.secondLine=y[y.length-1],Oe}(y,H,Oe),Ye={width:Z.labelBBox.width,height:Z.labelBBox.height,element:Z.label,bBox:Z.labelBBox,pos:Zu(H),itemIndex:Oe},bt={width:Z.markerBBox.width,height:Z.markerBBox.height,element:Z.marker,pos:{horizontal:gn,vertical:gn},bBox:{width:Z.markerBBox.width,height:Z.markerBBox.height,x:Z.markerBBox.x,y:Z.markerBBox.y},itemIndex:Oe};H.inverseLabelPosition?($t=Ye,_i=bt):($t=bt,_i=Ye),$t[H.markerOffset?"altOffset":"offset"]=H.labelOffset,Fe.secondLine.push($t),Fe.firstLine.push(_i)})},_alignLines:function(y,H){var Z,Oe=H.altMeasure;if(y.forEach(Ye=>Uh(Ye,Oe)),Oe=H.measure,H.itemsAlignment){if(H.markerOffset)for(Z=0;Z<y.length;)Gh([y[Z++],y[Z++]]).forEach(Fe)}else Gh(y).forEach(Fe);function Fe(Ye){Uh(Ye,Oe)}},_applyItemPosition:function(y,H){var Z=this,Oe={x:0,y:0},Fe=function Qu(y,H){return y.reduce((Z,Oe)=>fa(Z,$p(Oe,H)),0)}(y,H);y.forEach(Ye=>{var bt=Ye[0],$t=bt.altOffset||H.altSpacing;Oe[H.direction]=function Zd(y,H,Z){var Fe,Oe=$p(y,H);switch(H.itemsAlignment){case rr:Fe=Z-Oe;break;case gn:Fe=(Z-Oe)/2;break;default:Fe=0}return Fe}(Ye,H,Fe),Ye.forEach(_i=>{var Ii=_i.offset||H.spacing,bn=new zc.O(_i.element,_i.bBox),Mr=new zc.O(null,{x:Oe.x,y:Oe.y,width:_i.width,height:_i.height}),ma=Z._items[_i.itemIndex];bn.position({of:Mr,my:_i.pos,at:_i.pos}),ma.bBoxes.push(Mr),Oe[H.direction]+=_i[H.measure]+Ii}),Oe[H.altDirection]+=bt[H.altMeasure]+$t}),this._items.forEach(Ye=>{var bt=function lo(y,H){var Z={};return Z.left=eo(y.x,H.x),Z.top=eo(y.y,H.y),Z.right=fa(y.x+y.width,H.x+H.width),Z.bottom=fa(y.y+y.height,H.y+H.height),Z}(Ye.bBoxes[0].getLayoutOptions(),Ye.bBoxes[1].getLayoutOptions()),$t=Z._options.columnItemSpacing/2,_i=Z._options.rowItemSpacing/2;Ye.tracker.left=bt.left-$t,Ye.tracker.right=bt.right+$t,Ye.tracker.top=bt.top-_i,Ye.tracker.bottom=bt.bottom+_i})},_getItemsLayoutOptions:function(){var y=this._options,Z={itemsAlignment:y.itemsAlignment,orientation:y.orientation},Fe=this._size.height-(this._background?2*y.paddingTopBottom:0);return y.orientation===ts?(Z.length=this._size.width-(this._background?2*y.paddingLeftRight:0),Z.spacing=y.columnItemSpacing,Z.direction="x",Z.measure="width",Z.altMeasure="height",Z.altDirection="y",Z.altSpacing=y.rowItemSpacing,Z.countItem=y.columnCount,Z.altCountItem=y.rowCount,Z.marginTextLabel=4,Z.labelOffset=7,(y.itemTextPosition===Ca||y.itemTextPosition===Da)&&(Z.labelOffset=4,Z.markerOffset=!0)):(Z.length=Fe,Z.spacing=y.rowItemSpacing,Z.direction="y",Z.measure="height",Z.altMeasure="width",Z.altDirection="x",Z.altSpacing=y.columnItemSpacing,Z.countItem=y.rowCount,Z.altCountItem=y.columnCount,Z.marginTextLabel=7,Z.labelOffset=4,(y.itemTextPosition===rr||y.itemTextPosition===Tr)&&(Z.labelOffset=7,Z.markerOffset=!0)),Z.countItem||(Z.countItem=Z.altCountItem?Oo(this._items.length/Z.altCountItem):this._items.length),(y.itemTextPosition===Da||y.itemTextPosition===Tr)&&(Z.inverseLabelPosition=!0),Z.itemTextPosition=y.itemTextPosition,Z.altCountItem=Z.altCountItem||Oo(this._items.length/Z.countItem),Z},_adjustBackgroundSettings:function(y){if(this._background){var H=y.border,Z=this._calculateTotalBox(),Oe={x:pa(Z.x-y.paddingLeftRight),y:pa(Z.y-y.paddingTopBottom),width:pa(Z.width)+2*y.paddingLeftRight,height:pa(Z.height),opacity:y.backgroundOpacity};H.visible&&H.width&&H.color&&H.color!==wa&&(Oe["stroke-width"]=H.width,Oe.stroke=H.color,Oe["stroke-opacity"]=H.opacity,Oe.dashStyle=H.dashStyle,Oe.rx=H.cornerRadius||0,Oe.ry=H.cornerRadius||0),this._background.attr(Oe)}},_setBoundingRect:function(y){if(this._insideLegendGroup){var H=this._calculateTotalBox();H.height+=y.top+y.bottom,H.widthWithoutMargins=H.width,H.width+=y.left+y.right,H.x-=y.left,H.y-=y.top,this._boundingRect=H}},_calculateTotalBox:function(){var y=this._markersGroup.getBBox(),H=this._title.getCorrectedLayoutOptions(),Z=this._insideLegendGroup.getBBox();return Z.height=y.height+H.height+(this._background?2*this._options.paddingTopBottom:0),H.width>Z.width&&(Z.width=H.width),Z},getActionCallback:function(y){var H=this;return H._options.visible?function(Z){H[Z](y.index)}:j.lQ},getLayoutOptions:function(){var y=this._options,H=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return y?(H.verticalAlignment=y.verticalAlignment,H.horizontalAlignment=y.horizontalAlignment,y.orientation===ts||y.horizontalAlignment===gn?(H.cutLayoutSide=y.verticalAlignment,H.cutSide="vertical"):(H.cutLayoutSide=y.horizontalAlignment,H.cutSide="horizontal"),H.position={horizontal:y.horizontalAlignment,vertical:y.verticalAlignment},H):null},shift:function(y,H){var Z={};return this._insideLegendGroup&&this._insideLegendGroup.attr({translateX:y-this._boundingRect.x,translateY:H-this._boundingRect.y}),this._title&&this._shiftTitle(this._boundingRect.widthWithoutMargins),this._markersGroup&&this._shiftMarkers(),this._insideLegendGroup&&(Z=this._legendGroup.getBBox()),this._x1=Z.x,this._y1=Z.y,this._x2=Z.x+Z.width,this._y2=Z.y+Z.height,this},_shiftTitle:function(y){var H=this._title,Z=H.getCorrectedLayoutOptions();if(Z&&H.hasText()){var Oe=y-(this._background?2*this._options.paddingLeftRight:0),Fe=H.getOptions(),Ye=Z.y+Fe.margin.top,bt=0;Fe.verticalAlignment===Ca&&this._markersGroup&&(Ye+=this._markersGroup.getBBox().height),Fe.horizontalAlignment===rr?bt=Oe-Z.width:Fe.horizontalAlignment===gn&&(bt=(Oe-Z.width)/2),H.shift(bt,Ye)}},_shiftMarkers:function(){var y=this._title.getLayoutOptions(),H=this._markersGroup.getBBox(),Z=this._title.getOptions()||{},Oe=0,Fe=0;y.width>H.width&&this._options.horizontalAlignment===gn&&(Oe=y.width/2-H.width/2),Z.verticalAlignment===Da&&(Fe=y.height),(0!==Oe||0!==Fe)&&(this._markersGroup.attr({translateX:Oe,translateY:Fe}),this._items.forEach(Ye=>{Ye.tracker.left+=Oe,Ye.tracker.right+=Oe,Ye.tracker.top+=Fe,Ye.tracker.bottom+=Fe}))},getPosition:function(){return this._options.position},coordsIn:function(y,H){return y>=this._x1&&y<=this._x2&&H>=this._y1&&H<=this._y2},getItemByCoord:function(y,H){var Z=this._items,Oe=this._insideLegendGroup;y-=Oe.attr("translateX"),H-=Oe.attr("translateY");for(var Fe=0;Fe<Z.length;Fe++)if(Hh(Z[Fe].tracker,y,H))return Z[Fe].tracker;return null},dispose:function(){return this._title&&this._title.dispose(),this._legendGroup=this._insideLegendGroup=this._title=this._renderer=this._options=this._data=this._items=null,this},layoutOptions:function(){if(!this.isVisible())return null;var y=this.getLayoutOptions();return{horizontalAlignment:this._options.horizontalAlignment,verticalAlignment:this._options.verticalAlignment,side:y.cutSide,priority:1,position:this.getPosition()}},measure:function(y){this._updated||!this._insideLegendGroup?(this.draw(y[0],y[1]),this._updated=!1):(this._items.forEach(Z=>{Z.bBoxes=[]}),this._updateElementsPosition(y[0],y[1]));var H=this.getLayoutOptions();return[H.width,H.height]},move:function(y){this.shift(y[0],y[1])},freeSpace:function(){this._options._incidentOccurred("W2104"),this.erase()}});var vu,Ru=D(82236),_u=Ru.A.postCtor,cc={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(vu in Ru.A)"postCtor"!==vu&&(cc[vu]=Ru.A[vu]);var _h,eu={name:"data_source",init:function(){_u.call(this)},dispose:j.lQ,members:cc},Qa=D(14435),qu=D(12473),lu=D(87310),eh=D(85978),Cc=(0,Qa.zk)(),mh=(0,Qa.w3)(),Kf={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},Kp={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"},Xp={_revokeObjectURLTimeout:3e4,_getDataUri:function(y,H){var Z=this._getMimeType(y);return"data:".concat(Z,";base64,").concat(H)},_getMimeType:function(y){return Kp[y]||"application/octet-stream"},_linkDownloader:function(y,H){var Z=h.A.createElement("a");return Z.download=y,Z.href=H,Z.target="_blank",Z},_winJSBlobSave:function(y,H,Z){var Oe=new Windows.Storage.Pickers.FileSavePicker;Oe.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary;var Fe=Kf[Z];if(Fe){var Ye=this._getMimeType(Z);Oe.fileTypeChoices.insert(Ye,["."+Fe])}Oe.suggestedFileName=H,Oe.pickSaveFileAsync().then(function(bt){bt&&bt.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function($t){var _i=y.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(_i,$t).then(function(){$t.flushAsync().done(function(){_i.close(),$t.close()})})})})},_click:function(y){try{y.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch{var H=h.A.getDocument().createEvent("MouseEvents");H.initMouseEvent("click",!0,!0,Cc,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(H)}},_saveBlobAs:function(y,H,Z){if(this._blobSaved=!1,(0,R.O9)(mh.msSaveOrOpenBlob))mh.msSaveOrOpenBlob(Z,y),this._blobSaved=!0;else if((0,R.O9)(Cc.WinJS))this._winJSBlobSave(Z,y,H),this._blobSaved=!0;else{var Oe=Cc.URL||Cc.webkitURL||Cc.mozURL||Cc.msURL||Cc.oURL;if((0,R.O9)(Oe)){var Fe=Oe.createObjectURL(Z),Ye=this._linkDownloader(y,Fe);setTimeout(()=>{Oe.revokeObjectURL(Fe),this._objectUrlRevoked=!0},this._revokeObjectURLTimeout),this._click(Ye)}else eh.v.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(y,H,Z){var Oe=Kf[H];if(Oe&&(y+="."+Oe),(0,R.Tn)(Cc.Blob))this._saveBlobAs(y,H,Z);else{(0,R.O9)(mh.userAgent.match(/iPad/i))||lu.A.log("E1034");var Fe=this._linkDownloader(y,this._getDataUri(H,Z));this._click(Fe)}}},Sa=D(24292),Xf=D(7963),nt=D(48745),Ct=(0,Qa.zk)(),at=Math,St=at.PI,pi=at.min,zi=at.abs,In=at.sqrt,qn=at.pow,pr=at.atan2,Za=at.cos,ds=at.sin,La=Number,bu=.05,th="10px",gh="sans-serif",dp="#000";function Jp(y,H,Z,Oe,Fe,Ye,bt,$t){var _i=(y+Z)/2,Ii=(H+Oe)/2,bn=pr(H-Oe,y-Z),Yn=Ye?1:-1;bn+=St/180*90*(bt?1:-1);var Mr=In(qn(Z-y,2)+qn(Oe-H,2))/2,ma=In(zi(qn(Fe,2)-qn(Mr,2))),io=_i+Yn*(ma*Za(bn)),Ua=Ii+Yn*(ma*ds(bn)),Wo=pr(H-Ua,y-io),Fl=pr(Oe-Ua,Z-io);$t.arc(io,Ua,Fe,Wo,Fl,!bt)}function tu(y,H){var Ye,Z=_h(y.attributes||{}),Oe=(0,o.X)({},Z,{text:y.textContent.replace(/\s+/g," "),textAlign:"middle"===Z["text-anchor"]?"center":Z["text-anchor"]}),Fe=Z.transform;return Fe&&((Ye=Fe.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(Ye=Ye[0].match(/-*\d+([.]\d+)*/g),Oe.translateX=La(Ye[0]),Oe.translateY=Ye[1]?La(Ye[1]):0),(Ye=Fe.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/))&&(Ye=Ye[0].match(/-*\d+([.]\d+)*/g),Oe.rotationAngle=La(Ye[0]),Oe.rotationX=Ye[1]&&La(Ye[1]),Oe.rotationY=Ye[2]&&La(Ye[2])),(Ye=Fe.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(Ye=Ye[0].match(/-*\d+([.]\d+)*/g),Oe.scaleX=La(Ye[0]),Oe.scaleY=Ye.length>1?La(Ye[1]):Oe.scaleX)),function yu(y,H,Z){var Fe,Oe=y.style||{};for(Fe in Oe)""!==Oe[Fe]&&(H[(0,nt.PT)(Fe)]=Oe[Fe]);Z&&h.A.isElementNode(y)&&(Oe=Ct.getComputedStyle(y),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach(function(Ye){Ye in Oe&&""!==Oe[Ye]&&(H[(0,nt.PT)(Ye)]=Oe[Ye])}),["opacity","fill-opacity","stroke-opacity"].forEach(function(Ye){Ye in Oe&&""!==Oe[Ye]&&"1"!==Oe[Ye]&&(H[Ye]=La(Oe[Ye]))})),H.textDecoration=H.textDecoration||H.textDecorationLine,H.globalAlpha=(0,R.O9)(H.opacity)?H.opacity:H.globalAlpha}(y,Oe,H),Oe}function wp(y){var H=y&&y.match(/url\(.*#(.*?)["']?\)/i);return H&&H[1]}function Pu(y,H){var Z=[];H.fontSize=H.fontSize||th,H.fontFamily=H.fontFamily||gh,H.fill=H.fill||dp,H.fontStyle&&Z.push(H.fontStyle),H.fontWeight&&Z.push(H.fontWeight),Z.push(H.fontSize),Z.push(H.fontFamily),y.font=Z.join(" "),y.textAlign=H.textAlign,y.fillStyle=H.fill,y.globalAlpha=H.globalAlpha}function pl(y){for(var H=y.childNodes,Z=0;Z<H.length;Z++)if("tspan"===H[Z].tagName)return!0;return!1}function wf(y,H,Z,Oe){for(var Ye,Fe=[],bt=0,$t=0;$t<y.length;$t++){var _i=y[$t];if(void 0===_i.tagName)Qp(_i,H,Z,Oe);else if("tspan"===_i.tagName||"text"===_i.tagName){var Ii=tu(_i,Oe.rootAppended),bn=(0,o.X)({},Z,Ii);if("tspan"===_i.tagName&&pl(_i)){wf(_i.childNodes,H,bn,Oe);continue}bn.textAlign="start",(!Ye||void 0!==Ii.x)&&Fe.push(Ye={elements:[],options:[],widths:[],offsets:[]}),void 0!==Ii.y&&(bt=0),void 0!==Ii.dy&&(bt+=parseFloat(Ii.dy)),Ye.elements.push(_i),Ye.options.push(bn),Ye.offsets.push(bt),Pu(H,bn),Ye.widths.push(H.measureText(bn.text).width)}}Fe.forEach(function(Yn){var Mr=Yn.widths.reduce(function(Ua,Wo){return Ua+Wo},0),ma=0,io=0;"center"===Z.textAlign&&(ma=Mr/2),"end"===Z.textAlign&&(ma=Mr),Yn.options.forEach(function(Ua,Wo){var Fl=Yn.widths[Wo];Ua.x=Ua.x-ma+io,Ua.y+=Yn.offsets[Wo],io+=Fl}),Yn.elements.forEach(function(Ua,Wo){wf(Ua.childNodes,H,Yn.options[Wo],Oe)})})}function Qp(y,H,Z,Oe){var Fe=y.tagName,Ye="text"===Fe||"tspan"===Fe||void 0===Fe,bt="image"===Fe,$t=8===y.nodeType,_i=(0,o.X)({},Z,tu(y,Oe.rootAppended));if("hidden"!==_i.visibility&&!_i[qu.G0]&&!$t){var Ii;switch(H.save(),!bt&&Yh(H,_i),up(H,_i,Oe),function ag(y){y.strokeOpacity=void 0!==y["stroke-opacity"]?y["stroke-opacity"]:1,y.fillOpacity=void 0!==y["fill-opacity"]?y["fill-opacity"]:1,void 0!==y.opacity&&(y.strokeOpacity*=y.opacity,y.fillOpacity*=y.opacity)}(_i),H.beginPath(),y.tagName){case void 0:!function ih(y,H,Z){Pu(y,H),jh(y,H,Z),H.text&&y.fillText(H.text,H.x||0,H.y||0),vh(y,H,!0),function cp(y,H,Z){if(H.textDecoration&&"none"!==H.textDecoration){var Oe=H.x,Fe=y.measureText(H.text).width,Ye=parseInt(H.fontSize,10),bt=Ye*bu<1?1:Ye*bu,$t=H.y;switch(H.textDecoration){case"line-through":$t-=Ye/3+bt/2;break;case"overline":$t-=Ye-bt;break;case"underline":$t+=bt}y.rect(Oe,$t,Fe,bt),Sf(y,H,Z),vh(y,H)}}(y,H,Z)}(H,_i,Oe);break;case"text":case"tspan":wf(y.childNodes,H,_i,Oe);break;case"image":Ii=function Rc(y,H,Z){var Oe=new ir.cY,Fe=new Ct.Image;return Fe.onload=function(){y.save(),y.globalAlpha=H.globalAlpha,Yh(y,H),up(y,H,Z),y.drawImage(Fe,H.x||0,H.y||0,H.width,H.height),y.restore(),Oe.resolve()},Fe.onerror=function(){Oe.resolve()},Fe.setAttribute("crossOrigin","anonymous"),Fe.src=H.href||H["xlink:href"],Oe}(H,_i,Oe);break;case"path":!function iu(y,H){var Fe,Ye,bt,Z=H.replace(/,/g," ").split(/([A-Z])/i).filter(_i=>""!==_i.trim()),Oe=0;do{switch(Fe=(Z[Oe+1]||"").trim().split(" "),Z[Oe]){case"M":y.moveTo(La(Fe[0]),La(Fe[1])),Oe+=2;break;case"L":for(var $t=0;$t<Fe.length/2;$t++)y.lineTo(La(Fe[2*$t]),La(Fe[2*$t+1]));Oe+=2;break;case"C":y.bezierCurveTo(La(Fe[0]),La(Fe[1]),La(Fe[2]),La(Fe[3]),La(Fe[4]),La(Fe[5])),Oe+=2;break;case"a":Ye=Z[Oe-1].trim().split(" "),Jp(La(Ye[(bt=Ye.length-1)-1]),La(Ye[bt]),La(Ye[bt-1])+La(Fe[5]),La(Ye[bt])+La(Fe[6]),La(Fe[0]),La(Fe[3]),La(Fe[4]),y),Oe+=2;break;case"A":Ye=Z[Oe-1].trim().split(" "),Jp(La(Ye[(bt=Ye.length-1)-1]),La(Ye[bt]),La(Fe[5]),La(Fe[6]),La(Fe[0]),La(Fe[3]),La(Fe[4]),y),Oe+=2;break;case"Z":y.closePath(),Oe+=1;break;default:Oe++}}while(Oe<Z.length)}(H,_i.d);break;case"rect":(function du(y,H){var Z=H.x,Oe=H.y,Fe=H.width,Ye=H.height,bt=H.rx;bt?(bt=pi(bt,Fe/2,Ye/2),y.save(),y.translate(Z,Oe),y.moveTo(Fe/2,0),y.arcTo(Fe,0,Fe,Ye,bt),y.arcTo(Fe,Ye,0,Ye,bt),y.arcTo(0,Ye,0,0,bt),y.arcTo(0,0,bt,0,bt),y.lineTo(Fe/2,0),y.restore()):y.rect(Z,Oe,Fe,Ye)})(H,_i),H.closePath();break;case"circle":H.arc(_i.cx,_i.cy,_i.r,0,2*St,1)}return Ye||(jh(H,_i,Oe),bt||(Ii=Sf(H,_i,Oe)),vh(H,_i)),Uc(H,_i,Oe,y,"linear"),Uc(H,_i,Oe,y,"radial"),H.restore(),Ii}}function Uc(y,H,Z,Oe,Fe){var{linearGradients:Ye,radialGradients:bt}=Z,$t="linear"===Fe?Ye:bt;if(0!==Object.keys($t).length){var _i=wp(H.fill);if(_i&&$t[_i]){var Ii=Oe.getBBox(),bn=Ii.x+Ii.width/2,Yn=Ii.y+Ii.height/2,Mr=Math.max(Ii.height/2,Ii.width/2),ma="linear"===Fe?y.createLinearGradient(Ii.x,0,Ii.x+Ii.width,0):y.createRadialGradient(bn,Yn,0,bn,Yn,Mr);if($t[_i].colors.forEach(Fl=>{var _c=parseInt(Fl.offset.replace(/%/,""));ma.addColorStop(_c/100,Fl.stopColor)}),"linear"===Fe){var io,Ua,Wo=null!==(io=(null===(Ua=$t[_i].transform)||void 0===Ua?void 0:Ua.replace(/\D/g,""))*Math.PI/180)&&void 0!==io?io:0;y.translate(bn,Yn),y.rotate(Wo),y.translate(-bn,-Yn)}y.globalAlpha=H.opacity,y.fillStyle=ma,y.fill()}}}function jh(y,H,Z){var Oe,Fe=wp(H.filter);Fe&&((Oe=Z.filters[Fe])||(Oe={offsetX:0,offsetY:0,blur:0,color:"#000"}),y.shadowOffsetX=Oe.offsetX,y.shadowOffsetY=Oe.offsetY,y.shadowColor=Oe.color,y.shadowBlur=Oe.blur)}function Yh(y,H){y.translate(H.translateX||0,H.translateY||0),H.translateX=void 0,H.translateY=void 0,H.rotationAngle&&(y.translate(H.rotationX||0,H.rotationY||0),y.rotate(H.rotationAngle*St/180),y.translate(-(H.rotationX||0),-(H.rotationY||0)),H.rotationAngle=void 0,H.rotationX=void 0,H.rotationY=void 0),isFinite(H.scaleX)&&(y.scale(H.scaleX,H.scaleY),H.scaleX=void 0,H.scaleY=void 0)}function up(y,H,Z){H["clip-path"]&&(Qp(Z.clipPaths[wp(H["clip-path"])],y,{},Z),y.clip(),H["clip-path"]=void 0)}function og(y){var H,Z={colors:[],transform:null===(H=y.attributes.gradientTransform)||void 0===H?void 0:H.textContent};return(0,E.__)(y.childNodes,(Oe,Fe)=>{var{attributes:Ye}=Fe;Z.colors.push({offset:Ye.offset.value,stopColor:Ye["stop-color"].value})}),Z}function _m(y,H){for(var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new ir.cY,Oe=0;Oe<y.length;Oe++){var Fe=H(y[Oe]);if((0,R.yL)(Fe)){Fe.then(()=>{_m(Array.prototype.slice.call(y,Oe+1),H,Z)});break}}return Oe===y.length&&Z.resolve(),Z}function Ad(y,H,Z,Oe){return _m(y,function(Fe){switch(Fe.tagName&&Fe.tagName.toLowerCase()){case"g":case"svg":var Ye=(0,o.X)({},Z,tu(Fe,Oe.rootAppended));H.save(),Yh(H,Ye),up(H,Ye,Oe);var bt=()=>{H.restore()},$t=Ad(Fe.childNodes,H,Ye,Oe);return(0,R.yL)($t)?$t.then(bt):bt(),$t;case"defs":return Ad(Fe.childNodes,H,{},Oe);case"clippath":Oe.clipPaths[Fe.attributes.id.textContent]=Fe.childNodes[0];break;case"pattern":Oe.patterns[Fe.attributes.id.textContent]=Fe;break;case"filter":Oe.filters[Fe.id]=function Zp(y){var Oe={};return(0,E.__)(y.childNodes,function(Fe,Ye){var bt=Ye.attributes;if(bt.result)switch(bt.result.value){case"gaussianBlurResult":Oe.blur=La(bt.stdDeviation.value);break;case"offsetResult":Oe.offsetX=La(bt.dx.value),Oe.offsetY=La(bt.dy.value);break;case"floodResult":Oe.color=function Gc(y,H){var Z=new Ie.A(y);return"rgba("+Z.r+","+Z.g+","+Z.b+","+H+")"}(bt["flood-color"]?bt["flood-color"].value:"#000",bt["flood-opacity"]?bt["flood-opacity"].value:1)}}),Oe}(Fe);break;case"lineargradient":Oe.linearGradients[Fe.attributes.id.textContent]=og(Fe);break;case"radialgradient":Oe.radialGradients[Fe.attributes.id.textContent]=og(Fe);break;default:return Qp(Fe,H,Z,Oe)}})}function vh(y,H,Z){var Oe=H.stroke;Oe&&"none"!==Oe&&0!==H["stroke-width"]&&(function sg(y,H){var Z=H["stroke-dasharray"]&&H["stroke-dasharray"].match(/(\d+)/g);Z&&Z.length&&(Z=(0,E.Tj)(Z,function(Oe){return La(Oe)}),y.setLineDash(Z))}(y,H),y.lineJoin=H["stroke-linejoin"],y.lineWidth=H["stroke-width"],y.globalAlpha=H.strokeOpacity,y.strokeStyle=Oe,Z?y.strokeText(H.text,H.x,H.y):y.stroke(),y.globalAlpha=1)}function Sf(y,H,Z){var Fe,Oe=H.fill;if(Oe&&"none"!==Oe)if(-1===Oe.search(/url/))y.fillStyle=Oe,y.globalAlpha=H.fillOpacity,y.fill(),y.globalAlpha=1;else{var Ye=Z.patterns[wp(Oe)];if(!Ye)return;Fe=function qp(y,H,Z,Oe){var Fe=tu(H,Z.rootAppended),Ye=Wc._createCanvas(Fe.width,Fe.height,0),bt=Ye.getContext("2d"),$t=Ad(H.childNodes,bt,Fe,Z),_i=()=>{y.fillStyle=y.createPattern(Ye,"repeat"),y.globalAlpha=Oe.fillOpacity,y.fill(),y.globalAlpha=1};return(0,R.yL)($t)?$t.then(_i):_i(),$t}(y,Ye,Z,H)}return Fe}function Ef(y,H,Z){return Ad(y.childNodes,H.getContext("2d"),{},{clipPaths:{},patterns:{},filters:{},linearGradients:{},radialGradients:{},rootAppended:Z})}_h=function(y){var Z,H={};return(0,E.__)(y,function(Oe,Fe){Z=Fe.textContent,isFinite(Z)&&(Z=La(Z)),H[Fe.name.toLowerCase()]=Z}),H};var Wc={getImageData:function(y,H){var Z="image/"+H.format;return(0,R.Tn)(H.__parseAttributesFn)&&(_h=H.__parseAttributesFn),function Im(y,H){var{width:Z,height:Oe,backgroundColor:Fe,margin:Ye,svgToCanvas:bt=Ef}=H,$t=ue(Z,Oe),_i=Wc._createCanvas($t.width,$t.height,Ye),Ii=_i.getContext("2d");Ii.setTransform($t.pixelRatio,0,0,$t.pixelRatio,0,0);var Yn,bn=(0,qu.RY)(y),Mr=h.A.isElementNode(y);return Ii.translate(Ye,Ye),h.A.getBody().appendChild(_i),Mr||(Yn=function Df(){var y=h.A.createElement("div");return y.style.left="-9999px",y.style.position="absolute",y}(),Yn.appendChild(bn),h.A.getBody().appendChild(Yn)),bn.attributes.direction&&(_i.dir=bn.attributes.direction.textContent),function Jf(y,H,Z,Oe,Fe){y.fillStyle=Oe||"#ffffff",y.fillRect(-Fe,-Fe,H+2*Fe,Z+2*Fe)}(Ii,Z,Oe,Fe,Ye),(0,ir.Sx)(bt(bn,_i,Mr&&(0,Xf.gR)(h.A.getBody(),y))).then(()=>_i).always(()=>{Yn&&h.A.getBody().removeChild(Yn),h.A.getBody().removeChild(_i)})}(y,H).then(Oe=>function gm(y,H){var Z=y.toDataURL(H,1);return Ct.atob(Z.substring(("data:"+H+";base64,").length))}(Oe,Z))},getData:function(y,H){var Z=this;return Wc.getImageData(y,H).then(Oe=>{var Fe="image/"+H.format;return(0,R.Tn)(Ct.Blob)&&!H.useBase64?Z._getBlob(Oe,Fe):Z._getBase64(Oe)})},_getBlob:function(y,H){var Z,Oe=new Uint8Array(y.length);for(Z=0;Z<y.length;Z++)Oe[Z]=y.charCodeAt(Z);return new Ct.Blob([Oe.buffer],{type:H})},_getBase64:function(y){return Ct.btoa(y)},_createCanvas(y,H,Z){var Oe=(0,Sa.A)("<canvas>")[0];return Oe.width=y+2*Z,Oe.height=H+2*Z,Oe.hidden=!0,Oe}};function ue(y,H){var Z=Ct.devicePixelRatio||1;return{pixelRatio:Z,width:y*Z,height:H*Z}}var B=D(94461),te=(0,Qa.zk)(),Ce={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(y,H){B.A.sendRequest({url:y,method:"GET",responseType:"arraybuffer"}).done(H).fail(function(){H(!1)})},_loadImages:function(){var y=this;(0,E.__)(y._imageArray,function(H){var Z=new ir.cY;y._imageDeferreds.push(Z),y._getBinaryFile(H,function(Oe){if(!Oe)return delete y._imageArray[H],void Z.resolve();var Fe,Ye="",bt=new Uint8Array(Oe),$t=bt.byteLength;for(Fe=0;Fe<$t;Fe++)Ye+=String.fromCharCode(bt[Fe]);y._imageArray[H]="data:image/png;base64,"+te.btoa(Ye),Z.resolve()})})},_parseImages:function(y){var H,Z=this;"image"===y.tagName&&(H=(0,Sa.A)(y).attr("href")||(0,Sa.A)(y).attr("xlink:href"),Z._imageArray[H]||(Z._imageArray[H]="")),(0,E.__)(y.childNodes,function(Oe,Fe){Z._parseImages(Fe)})},_prepareImages:function(y){return this._parseImages(y),this._loadImages(),ir.z7.apply(Sa.A,this._imageDeferreds)},getData:function(y,H){var Z,Oe=this,Fe=(0,qu.RY)(y),Ye=(0,Sa.A)(Fe);return Ye.find("[".concat(qu.G0,"]")).remove(),Z='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'+(0,qu.XC)(Ye.get(0),H.backgroundColor),Oe._prepareImages(Fe).then(()=>((0,E.__)(Oe._imageArray,function(bt,$t){var _i="href=['|\"]".concat(bt,"['|\"]");Z=Z.replace(new RegExp(_i,"gi"),'href="'.concat($t,'"'))}),(0,R.Tn)(te.Blob)?Oe._getBlob(Z):Oe._getBase64(Z)))},_getBlob:function(y){return new te.Blob([y],{type:"image/svg+xml"})},_getBase64:function(y){return te.btoa(y)}},Le=D(21721),je=(0,Qa.zk)(),nn=function y(H,Z){return H.length<Z?y("0"+H,Z):H};function ur(y){return 1===y.toString().length?"0".concat(y):y}function Rn(y,H,Z){if(!y)return(new ir.cY).resolve();var Oe=H.exportingAction,Fe=H.exportedAction,Ye=H.fileSavingAction,bt={fileName:H.fileName,format:H.format,cancel:!1};return(0,R.Lm)(H.selectedRowsOnly)&&(bt.selectedRowsOnly=H.selectedRowsOnly),(0,R.Tn)(Oe)&&Oe(bt),bt.cancel?(new ir.cY).resolve():Z(y,H).then($t=>{(0,R.Tn)(Fe)&&Fe(),(0,R.Tn)(Ye)&&(bt.data=$t,Ye(bt)),bt.cancel||Xp.saveAs(bt.fileName,"xlsx"===H.format?"EXCEL":H.format,$t)})}var Nr={creator:Wc,getData:function Uo(y,H){return Wc.getData(y,H)},testFormats:function Se(y){var H=Wc._createCanvas(100,100,0);return y.reduce(function(Z,Oe){var Fe=("image/"+Oe).toLowerCase();return-1!==H.toDataURL(Fe).indexOf(Fe)?Z.supported.push(Oe):Z.unsupported.push(Oe),Z},{supported:[],unsupported:[]})}},kr={getData:function sr(y,H){return Wc.getImageData(y,(0,o.X)({},H,{format:"JPEG"})).then(Z=>{var Oe=function(y,H,Z){var Oe=2*(H.margin||0),{width:Fe,height:Ye}=ue(H.width,H.height);Ye+=Oe;var bt=(.75*(Fe+=Oe)).toFixed(2),$t=(.75*Ye).toFixed(2),_i=Math.floor(Fe),Ii=Math.floor(Ye),bn="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n".replace("_width_",bt).replace("_height_",$t),Yn="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n".replace("_width_",bt).replace("_height_",$t),Mr="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n".replace("_date_",Z).replace("_version_",Le.r),ma="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n".replace("_width_",_i).replace("_height_",Ii).replace("_length_",y.length)+y+"\r\nendstream\r\nendobj\r\n",io=function $i(y,H,Z){return"xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n".replace("_main_",nn(y+"",10)).replace("_info_",nn(y+H+"",10)).replace("_image_",nn(y+H+Z+"",10))}(bn.length,Yn.length,Mr.length),Ua=bn+Yn+Mr+ma;return Ua+io+"trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF".replace("_length_",Ua.length)}(Z,H,function Vr(y){var H=[y.getUTCFullYear(),ur(y.getUTCMonth()),ur(y.getUTCDate()),ur(y.getUTCHours()),ur(y.getUTCMinutes()),ur(y.getUTCSeconds())];return"(D:".concat(H.join(""),"Z00'00')")}(new Date)),Fe=(0,R.Tn)(je.Blob)?function(y){for(var H=0,Z=new Uint8Array(y.length);H<y.length;H++)Z[H]=y.charCodeAt(H);return new je.Blob([Z.buffer],{type:"application/pdf"})}(Oe):function(y){return je.btoa(y)}(Oe);return Fe})}},mn={creator:Ce,getData:function De(y,H){return Ce.getData(y,H)}},hn=D(20736),Hn=D(14017),Vn=D(80186),Rr=[w.A.down,w.A.move].join(" "),jr=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],Br=["PNG","JPEG","GIF"],Lr=["PDF","SVG"],za="dx-export-menu",Xa="export-element-type",Oa="export-element-format";function Jr(){var y=Nr.testFormats(Br);return{unsupported:y.unsupported,supported:y.supported.concat(Lr)}}function Pn(y,H,Z){if(Z=Z||Jr(),y=String(y).toUpperCase(),-1!==Z.supported.indexOf(y))return y;-1!==Z.unsupported.indexOf(y)&&H&&H("W2108",[y])}function cs(y){return"SVG"===y?mn.getData:"PDF"===y?kr.getData:Nr.getData}function qa(y,H,Z){var Oe={},Fe=Z.type,Ye=Z.format,bt=function Ka(y,H,Z){var Fe=40+30*Z,Ye={rect:{width:118,height:30,x:-84,y:Fe},text:{x:(y.rtl?105:15)-85,y:Fe+30-8}};return"printing"===H&&(Ye.separator={stroke:y.button.default.borderColor,"stroke-width":1,cursor:"pointer",sharp:"v",d:"M -85 "+(Fe+30-1)+" L 35 "+(Fe+30-1)}),Ye}(H,Fe,Z.itemIndex),$t=(0,O.a1)(H.font);$t["pointer-events"]="none";var _i=y.g().attr({class:za+"-list-item"});Oe[Xa]=Fe,Ye&&(Oe[Oa]=Ye);var Ii=y.rect();Ii.attr(bt.rect).css({cursor:"pointer","pointer-events":"all"}).data(Oe),Ii.on(Hn.n+".export",()=>Ii.attr({fill:H.button.hover.backgroundColor})).on(Hn._+".export",()=>Ii.attr({fill:null})),Ii.append(_i);var bn=y.text(Z.text).css($t).attr(bt.text).append(_i);return"printing"===Fe&&y.path(null,"line").attr(bt.separator).append(_i),{g:_i,rect:Ii,resetState:()=>Ii.attr({fill:null}),fixPosition:()=>{var Yn=bn.getBBox();bn.move(bt.text.x-Yn.x-(H.rtl?Yn.width:0))}}}var ls=function(y){var H=this._renderer=y.renderer;this._incidentOccurred=y.incidentOccurred,this._exportTo=y.exportTo,this._print=y.print,this._shadow=H.shadowFilter("-50%","-50%","200%","200%",2,6,3),this._shadow.attr({opacity:.8}),this._group=H.g().attr({class:za,[qu.G0]:!0}).linkOn(H.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=H.g().attr({class:za+"-button"}).append(this._group),this._listGroup=H.g().attr({class:za+"-list"}).append(this._group),this._overlay=H.rect(-85,39,120,0),this._overlay.attr({"stroke-width":1,cursor:"pointer",rx:4,ry:4,filter:this._shadow.id}),this._overlay.data({"export-element-type":"list"}),this.validFormats=Jr(),this._subscribeEvents()};function bs(y,H,Z,Oe){(Oe||H.format)&&(Oe=Pn(Oe||H.format,y._incidentOccurred));var{width:Fe,height:Ye}=y.getSize();return{format:Oe||"PNG",fileName:Z||H.fileName||"file",backgroundColor:H.backgroundColor,width:Fe,height:Ye,margin:H.margin,svgToCanvas:H.svgToCanvas,exportingAction:y._createActionByOption("onExporting",{excludeValidators:["disabled"]}),exportedAction:y._createActionByOption("onExported",{excludeValidators:["disabled"]}),fileSavingAction:y._createActionByOption("onFileSaving",{excludeValidators:["disabled"]})}}(0,o.X)(ls.prototype,{getLayoutOptions(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var y=this._buttonGroup.getBBox();return y.cutSide="vertical",y.cutLayoutSide="top",y.height+=10,y.position={vertical:"top",horizontal:"right"},y.verticalAlignment="top",y.horizontalAlignment="right",y},shift(y,H){this._group.attr({translateY:this._group.attr("translateY")+H})},draw(y,H,Z){this._group.move(y-35-2-3+Z.left,Math.floor(H/2-17.5));var Oe=this.getLayoutOptions();return(Oe.width>y||Oe.height>H)&&this.freeSpace(),this},show(){this._group.linkAppend()},hide(){this._group.linkRemove()},setOptions(y){this._options=y,y.formats=y.formats?y.formats.reduce((H,Z)=>((Z=Pn(Z,this._incidentOccurred,this.validFormats))&&H.push(Z),H),[]):this.validFormats.supported.slice(),y.printingEnabled=void 0===y.printingEnabled||y.printingEnabled,y.enabled&&(y.formats.length||y.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose(){this._unsubscribeEvents(),this._group.linkRemove().linkOff(),this._group.dispose(),this._shadow.dispose()},layoutOptions(){return this._options.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure(){this._fillSpace();var y=this._options.button.margin;return[35+y.left+y.right,35+y.top+y.bottom]},move(y){var H=this._options.button.margin;this._group.attr({translateX:Math.round(y[0])+H.left,translateY:Math.round(y[1])+H.top})},_fillSpace(){this._hiddenDueToLayout=!1,this.show()},freeSpace(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach(y=>y.resetState())},_showList(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach(y=>y.fixPosition())},_setButtonState(y){var H=this._options.button[y];this._button.attr({stroke:H.borderColor,fill:H.backgroundColor}),this._icon.attr({fill:H.color})},_subscribeEvents(){this._renderer.root.on(w.A.up+".export",y=>{var H=y.target[Xa];H?"button"===H?this._listShown?(this._setButtonState("default"),this._hideList()):(this._setButtonState("focus"),this._showList()):"printing"===H?(this._print(),this._hideList()):"exporting"===H&&(this._exportTo(y.target[Oa]),this._hideList()):this._button&&this._hideList()}),this._listGroup.on(Rr,y=>y.stopPropagation()),this._buttonGroup.on(w.A.enter,()=>this._setButtonState("hover")),this._buttonGroup.on(w.A.leave,()=>this._setButtonState(this._listShown?"focus":"default")),this._buttonGroup.on(w.A.down+".export",()=>this._setButtonState("active"))},_unsubscribeEvents(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton(){var y=this._renderer,H=this._options,Z={"export-element-type":"button"};this._button||(this._button=y.rect(0,0,35,35).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:H.button.default.backgroundColor,stroke:H.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(Z),this._icon=y.path(jr).append(this._buttonGroup),this._icon.attr({fill:H.button.default.color,cursor:"pointer"}),this._icon.data(Z),this._buttonGroup.setTitle(hn.A.format("vizExport-titleMenuText")))},_updateList(){var y=this._options,H=y.button.default,Z=this._listGroup,Oe=function Po(y,H){var Z=[];return H.printingEnabled&&Z.push(qa(y,H,{type:"printing",text:hn.A.format("vizExport-printingButtonText"),itemIndex:Z.length})),H.formats.reduce((Oe,Fe)=>(Oe.push(qa(y,H,{type:"exporting",text:hn.A.getFormatter("vizExport-exportButtonText")(Fe),format:Fe,itemIndex:Oe.length})),Oe),Z)}(this._renderer,y);this._shadow.attr({color:y.shadowColor}),this._overlay.attr({height:30*Oe.length+2,fill:H.backgroundColor,stroke:H.borderColor}),Z.clear(),this._overlay.append(Z),Oe.forEach(Fe=>Fe.g.append(Z)),this._menuItems=Oe}});var ro={name:"export",init(){this._exportMenu=new ls({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:()=>this.print(),exportTo:y=>this.exportTo(void 0,y)}),this._layout.add(this._exportMenu)},dispose(){this._exportMenu.dispose()},members:{_getExportMenuOptions(){return(0,o.X)({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents(){var y=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),y},exportTo(y,H){var Z=this._exportMenu,Oe=bs(this,this._getOption("export")||{},y,H);Z&&Z.hide();var Fe=this._disablePointerEvents(),Ye=Rn(this._renderer.root.element,Oe,cs(Oe.format)).fail(eh.v.error).always(()=>{this._renderer.root.attr({"pointer-events":Fe})});return Z&&Z.show(),Ye},print(){var y=this._exportMenu,H=bs(this,this._getOption("export")||{});H.exportingAction=null,H.exportedAction=null,H.margin=0,H.format="PNG",H.useBase64=!0,H.fileSavingAction=Fe=>{(function So(y,H){var Z=(0,Qa.zk)().document,Oe=Z.createElement("iframe");Oe.onload=function ka(y,H){return function(){var Z=this.contentWindow,Oe=Z.document.createElement("img");Z.document.body.appendChild(Oe);var Fe=function Ea(y){y.style.width="21cm";var H=(0,Vn.RG)(y);return y.style.width="",H}(Z.document.body)/H.width;Fe<1&&(Z.document.body.style.transform="scale(".concat(Fe,")"),Z.document.body.style["transform-origin"]="0 0");var Ye=()=>{this.parentElement.removeChild(this)};Oe.addEventListener("load",()=>{Z.focus(),Z.print()}),Oe.addEventListener("error",Ye),Z.addEventListener("afterprint",()=>{setTimeout(Ye,0)}),Oe.src=y}}(y,H),Oe.style.position="fixed",Oe.style.width="0",Oe.style.height="0",Oe.style.right="0",Oe.style.bottom="0",Z.body.appendChild(Oe)})("data:image/png;base64,".concat(Fe.data),{width:H.width,__test:H.__test}),Fe.cancel=!0};var Z=this._disablePointerEvents();y&&y.hide();var Oe=Rn(this._renderer.root.element,H,cs(H.format)).fail(eh.v.error).always(()=>{this._renderer.root.attr({"pointer-events":Z})});return y&&y.show(),Oe}},customize(y){var H=y.prototype;y.addChange({code:"EXPORT",handler(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),H._optionChangesMap.onExporting="EXPORT",H._optionChangesMap.onExported="EXPORT",H._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]},fd="loadingIndicatorReady",bh=function(y){var H=y.renderer;this._group=H.g().attr({class:"dx-loading-indicator"}).linkOn(H.root,{name:"loading-indicator",after:"peripheral"}),this._rect=H.rect().attr({opacity:0}).append(this._group),this._text=H.text().attr({align:"center"}).append(this._group),this._createStates(y.eventTrigger,this._group,H.root,y.notify)};bh.prototype={constructor:bh,_createStates:function(y,H,Z,Oe){this._states=[{opacity:0,start:function(){Oe(!1)},complete:function(){H.linkRemove(),Z.css({"pointer-events":""}),y(fd)}},{opacity:.85,start:function(){H.linkAppend(),Z.css({"pointer-events":"none"}),Oe(!0)},complete:function(){y(fd)}}],this._state=0},setSize:function(y){var H=y.width,Z=y.height;this._rect.attr({width:H,height:Z}),this._text.attr({x:H/2,y:Z/2})},setOptions:function(y){this._rect.attr({fill:y.backgroundColor}),this._text.css((0,O.a1)(y.font)).attr({text:y.text,class:y.cssClass}),this[y.show?"show":"hide"]()},dispose:function(){this._group.linkRemove().linkOff(),this._group=this._rect=this._text=this._states=null},_transit:function(y){var H;this._state!==y&&(this._state=y,this._isHiding=!1,H=this._states[y],this._rect.stopAnimation().animate({opacity:H.opacity},{complete:H.complete,easing:"linear",duration:400,unstoppable:!0}),this._noHiding=!0,H.start(),this._noHiding=!1)},show:function(){this._transit(1)},hide:function(){this._transit(0)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}};var nl={name:"loading_indicator",init:function(){var y=this;y._loadingIndicator=new bh({eventTrigger:y._eventTrigger,renderer:y._renderer,notify:function(H){y._skipLoadingIndicatorOptions=!0,y.option("loadingIndicator",{show:H}),y._skipLoadingIndicatorOptions=!1,H&&y._stopCurrentHandling()}}),y._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._optionChangedLocker||this._scheduleLoadingIndicatorHiding()}},extenders:{_dataSourceLoadingChangedHandler(y){y&&(this._options.silent("loadingIndicator")||{}).enabled&&this._loadingIndicator.show()},_setContentSize(){this._loadingIndicator.setSize(this._canvas)},endUpdate(){this._initialized&&this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},customize:function(y){var H=y.prototype;if(H._dataSourceChangedHandler){var Z=H._dataSourceChangedHandler;H._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),Z.apply(this,arguments)}}y.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),H._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var Oe=H._drawn;H._drawn=function(){Oe.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},fontFields:["loadingIndicator.font"]},Sp=D(25188),rd=D(45),nh=D(93120),os=":";function ef(y,H){var Z="",Oe=y.indexOf(os);return Oe>0&&(Z=y.substr(Oe+1),y=y.substr(0,Oe)),function co(y,H){if(H){if(y instanceof Date)return(0,nh.Yq)(y,H);if("number"==typeof y)return(0,nh.ZV)(y,H)}return y}(H[y],Z)}var Id=rd.A.format,ad=Math,Do=ad.round,wd=ad.floor,kd=ad.abs;function ec(y,H){var Oe,Z=1/0;return(0,E.__)(H,function(Fe,Ye){var bt=y[0]-Ye[0],$t=y[1]-Ye[1],_i=bt*bt+$t*$t;_i<Z&&(Z=_i,Oe=Ye)}),[wd(Oe[0]),wd(Oe[1])]}function hp(y,H,Z){return(H-y[0+Z])/(y[2+Z]-y[0+Z])*(y[3-Z]-y[1-Z])+y[1-Z]}var Cu={isLabelInside:function(y,H){var Z=y.x+y.width/2,Oe=y.y+y.height/2;return H.x<=Z&&Z<=H.x+H.width&&H.y<=Oe&&Oe<=H.y+H.height},prepareLabelPoints:function(y,H,Z,Oe,Fe){var Ye=H.x,bt=Ye+H.width/2,$t=Ye+H.width-1,_i=H.y,Ii=_i+H.height/2,bn=_i+H.height-1,Mr=kd(Oe)%90==0;return Fe[0]>Ye&&Fe[0]<$t?Mr?[[Fe[0],kd(Fe[1]-_i)<kd(Fe[1]-bn)?_i:bn]]:[[Fe[0],hp([Ye,_i,$t,bn],Fe[0],0)]]:Fe[1]>_i&&Fe[1]<bn?Mr?[[kd(Fe[0]-Ye)<kd(Fe[0]-$t)?Ye:$t,Fe[1]]]:[[hp([Ye,_i,$t,bn],Fe[1],1),Fe[1]]]:Mr?[[Ye,_i],[Z?Ye:bt,Z?Ii:_i],[$t,_i],[Ye,bn],[Z?$t:bt,Z?Ii:bn],[$t,bn]]:[[bt,Ii]]},isHorizontal:function(y,H){return y.x>H.x+H.width||y.x+y.width<H.x},getFigureCenter:function(y){return[wd(y.x+y.width/2),wd(y.y+y.height/2)]},findFigurePoint:function(y,H){var Z=Cu.getFigureCenter(y);return ec(H,[[y.x,Z[1]],[Z[0],y.y+y.height],[y.x+y.width,Z[1]],[Z[0],y.y]])},adjustPoints:function(y){var H=kd(y[1]-y[3])<=1;return kd(y[0]-y[2])<=1&&(y[0]=y[2]),H&&(y[1]=y[3]),y}},Ed={isLabelInside:function(){return!1},prepareLabelPoints:Cu.prepareLabelPoints,isHorizontal:function(y,H){return y.x>H.x+H.r||y.x+y.width<H.x-H.r},getFigureCenter:function(y){return[y.x,y.y]},findFigurePoint:function(y,H){var Z=Math.atan2(y.y-H[1],H[0]-y.x);return[Do(y.x+y.r*Math.cos(Z)),Do(y.y-y.r*Math.sin(Z))]},adjustPoints:Cu.adjustPoints},md={isLabelInside:function(y,H,Z){return!Z},prepareLabelPoints:function(y,H,Z,Oe){var Fe=y.x,Ye=Fe+y.width,bt=Fe+Do(y.width/2),$t=y.y,_i=$t+y.height,Ii=$t+Do(y.height/2),bn=[[[Fe,$t],[Ye,$t]],[[Ye,$t],[Ye,_i]],[[Ye,_i],[Fe,_i]],[[Fe,_i],[Fe,$t]]],Yn=(0,O.lD)(Oe);return 0===Oe?Z?[[Fe,Ii],[Ye,Ii]]:[[bt,$t],[bt,_i]]:bn.map(function(Mr){return Mr.map(function(ma){return[Do((ma[0]-bt)*Yn.cos+(ma[1]-Ii)*Yn.sin+bt),Do(-(ma[0]-bt)*Yn.sin+(ma[1]-Ii)*Yn.cos+Ii)]})}).reduce(function(Mr,ma){var io=ma[0][0],Ua=ma[0][1],Wo=ma[1][0],Fl=ma[1][1];return Z?(Ua>=Ii&&Ii>=Fl||Ua<=Ii&&Ii<=Fl)&&Mr.push([(Ii-Ua)*(Wo-io)/(Fl-Ua)+io,Ii]):(io>=bt&&bt>=Wo||io<=bt&&bt<=Wo)&&Mr.push([bt,(bt-io)*(Fl-Ua)/(Wo-io)+Ua]),Mr},[])},isHorizontal:function(y,H){return y.x>H.x||H.x>y.x+y.width},getFigureCenter:Ed.getFigureCenter,findFigurePoint:function(y,H,Z){if(!Z)return[y.x,y.y];var Oe=H[0],Fe=Do(y.x+(y.y-H[1])/Math.tan((0,O.tR)(y.angle))),Ye=[y.x,y.y,Fe,H[1]];return!(y.x<=Fe&&Fe<=Oe)&&!(Oe<=Fe&&Fe<=y.x)&&(kd(y.x-Oe)<12?Ye=[y.x,y.y]:Ye[2]=y.x<=Oe?y.x+12:y.x-12),Ye},adjustPoints:function(y){return y}};function uc(y){return void 0!==y.angle&&md||void 0!==y.r&&Ed||Cu}function Dc(y,H){y[H]&&y[H].dispose(),y[H]=null}function od(y){return y&&(y.fill&&"none"!==y.fill||y["stroke-width"]>0&&y.stroke&&"none"!==y.stroke)}function Gs(y){return y&&y["stroke-width"]>0&&y.stroke&&"none"!==y.stroke}function $h(y){this._renderer=y.renderer,this._container=y.labelsGroup,this._point=y.point,this._strategy=y.strategy,this._rowCount=1}$h.prototype={constructor:$h,setColor:function(y){this._color=y},setOptions:function(y){this._options=y},setData:function(y){this._data=y},setDataField:function(y,H){this._data=this._data||{},this._data[y]=H},getData:function(){return this._data},setFigureToDrawConnector:function(y){this._figure=y},dispose:function(){Dc(this,"_group"),this._data=this._options=this._textContent=this._visible=this._insideGroup=this._text=this._background=this._connector=this._figure=null},_setVisibility:function(y,H){this._group&&this._group.attr({visibility:y}),this._visible=H},isVisible:function(){return this._visible},hide:function(y){this._holdVisibility=!!y,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(y){var H=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!y,this._show(),H&&this._point.correctLabelPosition(this))},_show:function(){var y=this._renderer,H=this._container,Z=this._options||{},Oe=this._textContent=function Rd(y,H){var Z=H.format;return y.valueText=Id(y.value,Z),y.argumentText=Id(y.argument,H.argumentFormat),void 0!==y.percent&&(y.percentText=Id(y.percent,{type:"percent",precision:Z&&Z.percentPrecision})),void 0!==y.total&&(y.totalText=Id(y.total,Z)),void 0!==y.openValue&&(y.openValueText=Id(y.openValue,Z)),void 0!==y.closeValue&&(y.closeValueText=Id(y.closeValue,Z)),void 0!==y.lowValue&&(y.lowValueText=Id(y.lowValue,Z)),void 0!==y.highValue&&(y.highValueText=Id(y.highValue,Z)),void 0!==y.reductionValue&&(y.reductionValueText=Id(y.reductionValue,Z)),H.customizeText?H.customizeText.call(y,y):H.displayFormat?function Sc(y,H){for(var Z=y,Oe=!0;Oe;){var Fe=Z.indexOf("{"),Ye=Z.indexOf("}");if(Fe>=0&&Ye>0){var $t=ef(Z.substring(Fe+1,Ye),H);Z=Z.substr(0,Fe)+$t+Z.substr(Ye+1)}else Oe=!1}return Z}(H.displayFormat,y):y.valueText}(this._data,Z)||null;Oe?(this._group||(this._group=y.g().append(H),this._insideGroup=y.g().append(this._group),this._text=y.text("",0,0).append(this._insideGroup)),this._text.css(Z.attributes?(0,O.a1)(Z.attributes.font):{}),od(Z.background)?(this._background=this._background||y.rect().append(this._insideGroup).toBackground(),this._background.attr(Z.background),this._color&&this._background.attr({fill:this._color})):Dc(this,"_background"),Gs(Z.connector)?(this._connector=this._connector||y.path([],"line").sharp().append(this._group).toBackground(),this._connector.attr(Z.connector),this._color&&this._connector.attr({stroke:this._color})):Dc(this,"_connector"),this._text.attr({text:Oe,align:Z.textAlignment,class:Z.cssClass}),this._updateBackground(this._text.getBBox()),this._setVisibility("visible",!0),this._drawn=!0):this._hide()},_getLabelVisibility:function(y){return this._holdVisibility?this.isVisible():y},draw:function(y){return this._getLabelVisibility(y)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(y){this._background&&(y.x-=8,y.y-=4,y.width+=16,y.height+=8,this._background.attr(y)),this._bBoxWithoutRotation=(0,o.X)({},y);var H=this._options.rotationAngle||0;this._insideGroup.rotate(H,y.x+y.width/2,y.y+y.height/2),y=(0,O.R8)(y,[y.x+y.width/2,y.y+y.height/2],-H),this._bBox=y},getFigureCenter(){var y=this._figure;return(this._strategy||uc(y)).getFigureCenter(y)},_getConnectorPoints:function(){var Ye,$t,y=this._figure,H=this._options,Z=this._strategy||uc(y),Oe=this._shiftBBox(this._bBoxWithoutRotation),Fe=this.getBoundingRect(),bt=[];if(!Z.isLabelInside(Oe,y,"inside"!==H.position)){$t=Z.isHorizontal(Oe,y);var _i=this.getFigureCenter();Ye=ec(_i,bt=Z.prepareLabelPoints(Oe,Fe,$t,-H.rotationAngle||0,_i)),bt=(bt=Z.findFigurePoint(y,Ye,$t)).concat(Ye)}return Z.adjustPoints(bt)},fit:function(y){var Z=!1;if(this._text){var Oe=this._text.setMaxSize(y-(this._background?16:0),void 0,this._options),Fe=Oe.rowCount;0===Fe&&(Fe=1),Fe!==this._rowCount&&(Z=!0,this._rowCount=Fe),Oe.textIsEmpty&&Dc(this,"_background")}return this._updateBackground(this._text.getBBox()),Z},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(y){this._text.data({"chart-data-point":y}),this._background&&this._background.data({"chart-data-point":y})},hideInsideLabel:function(y){return this._point.hideInsideLabel(this,y)},getPoint(){return this._point},shift:function(y,H){return this._textContent&&(this._insideGroup.attr({translateX:this._x=Do(y-this._bBox.x),translateY:this._y=Do(H-this._bBox.y)}),this._connector&&this._connector.attr({points:this._getConnectorPoints()})),this},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(y){return this._textContent?{x:y.x+this._x,y:y.y+this._y,width:y.width,height:y.height}:{}},getLayoutOptions:function(){var y=this._options;return{alignment:y.alignment,background:od(y.background),horizontalOffset:y.horizontalOffset,verticalOffset:y.verticalOffset,radialOffset:y.radialOffset,position:y.position,connectorOffset:(Gs(y.connector)?12:0)+(od(y.background)?8:0)}}};var Kh=(0,Qa.zk)(),Fu=o.X,$l=Math,Xh=$l.round,yh=$l.floor,Jh=$l.ceil,en="canvas_position_default";const cr={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var y=this.graphic;y&&y.attr("visibility")&&y.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var y=this.graphic;y&&"hidden"!==y.attr("visibility")&&y.attr({visibility:"hidden"}),this._errorBar&&this._errorBar.attr({visibility:"hidden"}),this._label.draw(!1)},clearMarker:function(){var y=this.graphic;y&&y.attr(this._emptySettings)},_createLabel:function(){this._label=new $h({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_calculateVisibility:function(y,H){var{minX:Z,maxX:Oe,minY:Fe,maxY:Ye}=this._getVisibleArea();this.inVisibleArea=Z<=y&&Oe>=y&&Fe<=H&&Ye>=H},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(y){return(0,R.O9)(y)&&("string"==typeof y||(0,R.O9)(y.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(y,H){var Z=y.symbol,Oe=H.symbol,Fe="circle"===Z&&"circle"!==Oe||"circle"!==Z&&"circle"===Oe,Ye=this._checkImage(y.image)!==this._checkImage(H.image);return!(!Fe&&!Ye)},_populatePointShape:function(y,H){switch(y){case"square":return function ve(y){return[-y,-y,y,-y,y,y,-y,y,-y,-y]}(H);case"polygon":return function ze(y){var H=Jh(y);return[-H,0,0,-H,H,0,0,H,-H,0]}(H);case"triangle":case"triangleDown":return function ti(y){return[-y,-y,y,-y,0,y,-y,-y]}(H);case"triangleUp":return function pn(y){return[-y,y,y,y,0,-y,-y,y]}(H);case"cross":return function dt(y){var H=Jh(y),Z=yh(H/2),Oe=Jh(H/2);return[-H,-Z,-Z,-H,0,-Oe,Z,-H,H,-Z,Oe,0,H,Z,Z,H,0,Oe,-Z,H,-H,Z,-Oe,0]}(H)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(y){var H=this.series.getValueAxis();this.hasValue()&&(this.value=this.properValue=H.validateUnit(this.initialValue.valueOf()+y.valueOf()),this.minValue=H.validateUnit(y))},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=en},resetValue:function(){this.hasValue()&&(this.value=this.properValue=this.initialValue=0,this.minValue=0,this._label.setDataField("value",this.value))},_getTranslates:function(y){var H=this.x,Z=this.y;return y&&(this._options.rotated?H=this.defaultX:Z=this.defaultY),{x:H,y:Z}},_createImageMarker:function(y,H,Z){var Oe=Z.width||20,Fe=Z.height||20;return y.image(-Xh(.5*Oe),-Xh(.5*Fe),Oe,Fe,Z.url?Z.url.toString():Z.toString(),"center").attr({translateX:H.translateX,translateY:H.translateY,visibility:H.visibility})},_createSymbolMarker:function(y,H){var Z,Oe=this._options.symbol;return"circle"===Oe?(delete H.points,Z=y.circle().attr(H)):("square"===Oe||"polygon"===Oe||"triangle"===Oe||"triangleDown"===Oe||"triangleUp"===Oe||"cross"===Oe)&&(Z=y.path([],"area").attr(H).sharp()),Z},_createMarker:function(y,H,Z,Oe){var Fe=this._checkImage(Z)?this._createImageMarker(y,Oe,Z):this._createSymbolMarker(y,Oe);return Fe&&Fe.data({"chart-data-point":this}).append(H),Fe},_getSymbolBBox:function(y,H,Z){return{x:y-Z,y:H-Z,width:2*Z,height:2*Z}},_getImageBBox:function(y,H){var Z=this._options.image,Oe=Z.width||20,Fe=Z.height||20;return{x:y-Xh(Oe/2),y:H-Xh(Fe/2),width:Oe,height:Fe}},_getGraphicBBox:function(){var y=this._options,H=this.x,Z=this.y;return y.visible?this._checkImage(y.image)?this._getImageBBox(H,Z):this._getSymbolBBox(H,Z,y.styles.normal.r):{x:H,y:Z,width:0,height:0}},hideInsideLabel:j.lQ,_getShiftLabelCoords:function(y){var H=this._addLabelAlignmentAndOffset(y,this._getLabelCoords(y));return this._checkLabelPosition(y,H)},_drawLabel:function(){var y=this._getCustomLabelVisibility(),H=this._label,Z=this._showForZeroValues()&&this.hasValue()&&!1!==y&&(this.series.getLabelVisibility()||y);H.draw(!!Z)},correctLabelPosition:function(y){var H=this._getShiftLabelCoords(y);this.hideInsideLabel(y,H)||(y.setFigureToDrawConnector(this._getLabelConnector(y.pointPosition)),y.shift(Xh(H.x),Xh(H.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(y){var H=this._getGraphicBBox(y),Z=H.width/2,Oe=H.height/2;return{x:H.x+Z,y:H.y+Oe,r:this._options.visible?Math.max(Z,Oe):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(y,H){return y.minX<=H.x+H.width&&y.maxX>=H.x&&y.minY<=H.y+H.height&&y.maxY>=H.y},_checkLabelPosition:function(y,H){var Z=this._getVisibleArea(),Oe=y.getBoundingRect(),Fe=this._getGraphicBBox(y.pointPosition),Ye=this._getGraphicBBox(),bt="inside"===y.getLayoutOptions().position;return this._isPointInVisibleArea(Z,Ye)&&(this._options.rotated?(Z.minX>H.x&&(H.x=bt?Z.minX:Fe.x+Fe.width+10),Z.maxX<H.x+Oe.width&&(H.x=bt?Z.maxX-Oe.width:Fe.x-10-Oe.width),Z.minY>H.y&&(H.y=Z.minY),Z.maxY<H.y+Oe.height&&(H.y=Z.maxY-Oe.height)):(Z.minX>H.x&&(H.x=Z.minX),Z.maxX<H.x+Oe.width&&(H.x=Z.maxX-Oe.width),Z.minY>H.y&&(H.y=bt?Z.minY:Fe.y+Fe.height+10),Z.maxY<H.y+Oe.height&&(H.y=bt?Z.maxY-Oe.height:Fe.y-Oe.height-10))),H},_addLabelAlignmentAndOffset:function(y,H){var Z=y.getBoundingRect(),Oe=y.getLayoutOptions();return this._options.rotated||("left"===Oe.alignment?H.x+=Z.width/2:"right"===Oe.alignment&&(H.x-=Z.width/2)),H.x+=Oe.horizontalOffset,H.y+=Oe.verticalOffset,H},_getLabelCoords:function(y){return this._getLabelCoordOfPosition(y,this._getLabelPosition(y.pointPosition))},_getLabelCoordOfPosition:function(y,H){var Z=y.getBoundingRect(),Oe=this._getGraphicBBox(y.pointPosition),Ye=Oe.height/2-Z.height/2,bt=Oe.width/2-Z.width/2,$t=Oe.x,_i=Oe.y;switch(H){case"left":$t-=Z.width+10,_i+=Ye;break;case"right":$t+=Oe.width+10,_i+=Ye;break;case"top":$t+=bt,_i-=Z.height+10;break;case"bottom":$t+=bt,_i+=Oe.height+10;break;case"inside":$t+=bt,_i+=Ye}return{x:$t,y:_i}},_drawMarker:function(y,H,Z){var Oe=this._options,Fe=this._getTranslates(Z),Ye=this._getStyle();this.graphic=this._createMarker(y,H,Oe.image,Fu({translateX:Fe.x,translateY:Fe.y,points:this._populatePointShape(Oe.symbol,Ye.r)},Ye))},_getErrorBarSettings:function(){return{visibility:"visible"}},_getErrorBarBaseEdgeLength(){return 2*this.getPointRadius()},_drawErrorBar:function(y,H){if(this._options.errorBars){var Ye,Z=this._options,Oe=Z.errorBars,Fe=[],bt=this._errorBarPos,$t=this._highErrorCoord,_i=this._lowErrorCoord,Ii=(0,O.NU)(Oe.displayMode),bn="high"===Ii,Yn="low"===Ii,Mr=(bn||!(0,R.O9)(_i))&&(0,R.O9)($t)&&!Yn,ma=(Yn||!(0,R.O9)($t))&&(0,R.O9)(_i)&&!bn,io=Oe.edgeLength;io<=1&&io>0&&(io=this._getErrorBarBaseEdgeLength()*Oe.edgeLength),io=yh(parseInt(io)/2),Mr&&(_i=this._baseErrorBarPos),ma&&($t=this._baseErrorBarPos),"none"!==Ii&&(0,R.O9)($t)&&(0,R.O9)(_i)&&(0,R.O9)(bt)?(!ma&&Fe.push([bt-io,$t,bt+io,$t]),Fe.push([bt,$t,bt,_i]),!Mr&&Fe.push([bt+io,_i,bt-io,_i]),Z.rotated&&(0,E.__)(Fe,function(Ua,Wo){Wo.reverse()}),Ye=this._getErrorBarSettings(Oe),this._errorBar?(Ye.points=Fe,this._errorBar.attr(Ye)):this._errorBar=y.path(Fe,"line").attr(Ye).append(H)):this._errorBar&&this._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var y=this.graphic;return{x:this.x,y:this.y,offset:y?y.getBBox().height/2:0}},setPercentValue:function(y,H,Z,Oe){var Fe=this.value/y||0,Ye=this.minValue/y||0;this._label.setDataField("percent",Fe-Ye),this._label.setDataField("total",H),this.series.isFullStackedSeries()&&this.hasValue()&&(this.leftHole&&(this.leftHole/=y-Z,this.minLeftHole/=y-Z),this.rightHole&&(this.rightHole/=y-Oe,this.minRightHole/=y-Oe),this.value=this.properValue=Fe,this.minValue=Ye||this.minValue)},_storeTrackerR:function(){var y=Kh.navigator,H=this._options.styles.normal.r,Z=(0,Qa.i5)("ontouchstart")||y.msPointerEnabled&&y.msMaxTouchPoints||y.pointerEnabled&&y.maxTouchPoints?20:6;return this._options.trackerR=H<Z?Z:H,this._options.trackerR},_translateErrorBars:function(){var y=this._options,H=y.rotated,Z=y.errorBars,Oe=this._getValTranslator();Z&&((0,R.O9)(this.lowError)&&(this._lowErrorCoord=Oe.translate(this.lowError)),(0,R.O9)(this.highError)&&(this._highErrorCoord=Oe.translate(this.highError)),this._errorBarPos=yh(H?this.vy:this.vx),this._baseErrorBarPos="stdDeviation"===Z.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:H?this.vx:this.vy)},_translate:function(){var y=this._getValTranslator(),H=this._getArgTranslator();this._options.rotated?(this.vx=this.x=y.translate(this.value,void 0,!0),this.vy=this.y=H.translate(this.argument,void 0,!0),this.minX=y.translate(this.minValue,void 0,!0),this.defaultX=y.translate(en)):(this.vy=this.y=y.translate(this.value,void 0,!0),this.vx=this.x=H.translate(this.argument,void 0,!0),this.minY=y.translate(this.minValue,void 0,!0),this.defaultY=y.translate(en)),this._translateErrorBars(),this._calculateVisibility(this.x,this.y)},_updateData:function(y){this.value=this.properValue=this.initialValue=this.originalValue=y.value,this.minValue=this.initialMinValue=this.originalMinValue=(0,R.O9)(y.minValue)?y.minValue:en},_getImageSettings:function(y){return{href:y.url||y.toString(),width:y.width||20,height:y.height||20}},getCrosshairData:function(){var y=this._options.rotated,H=this.properValue,Z=this.argument;return{x:this.vx,y:this.vy,xValue:y?H:Z,yValue:y?Z:H,axis:this.series.axis}},getPointRadius:function(){var y=this._getStyle(),H=this._options,Z=y.r,Fe=H.symbol;return H.visible&&!H.image&&Z?("square"===Fe||"triangle"===Fe||"triangleDown"===Fe||"triangleUp"===Fe?1.4*Z:Z)+y["stroke-width"]/2:0},_updateMarker:function(y,H){var Oe,Z=this._options,Fe=Z.image,Ye=this.isVisible()?{}:{visibility:"hidden"};Oe=this._checkImage(Fe)?Fu({},{visibility:H.visibility},Ye,this._getImageSettings(Fe)):Fu({},H,Ye,{points:this._populatePointShape(Z.symbol,H.r)}),y||(Oe.translateX=this.x,Oe.translateY=this.y),this.graphic.attr(Oe).sharp()},_getLabelFormatObject:function(){return{argument:this.initialArgument,value:this.initialValue,originalArgument:this.originalArgument,originalValue:this.originalValue,seriesName:this.series.name,lowErrorValue:this.lowError,highErrorValue:this.highError,point:this}},_getLabelPosition:function(){var y=this._options.rotated;return this.initialValue>0?y?"right":"top":y?"left":"bottom"},_getFormatObject:function(y){var H=this._label.getData();return Fu({},H,{argumentText:y.formatValue(this.initialArgument,"argument"),valueText:y.formatValue(this.initialValue)},(0,R.O9)(H.percent)?{percentText:y.formatValue(H.percent,"percent")}:{},(0,R.O9)(H.total)?{totalText:y.formatValue(H.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(y,H){var Z=this._storeTrackerR();return y>=this.x-Z&&y<=this.x+Z&&H>=this.y-Z&&H<=this.y+Z},getMinValue:function(y){var H=this._options.errorBars;if(H&&!y){var Z=H.displayMode,Oe="high"!==Z&&(0,R.O9)(this.lowError)?this.lowError:this.value,Fe="low"!==Z&&(0,R.O9)(this.highError)?this.highError:this.value;return Oe<Fe?Oe:Fe}return this.value},getMaxValue:function(y){var H=this._options.errorBars;if(H&&!y){var Z=H.displayMode,Oe="high"!==Z&&(0,R.O9)(this.lowError)?this.lowError:this.value,Fe="low"!==Z&&(0,R.O9)(this.highError)?this.highError:this.value;return Oe>Fe?Oe:Fe}return this.value}};var fo=o.X,fs=Math,Bs=fs.floor,Pl=fs.abs;function Ep(y){var H=y.initialValue,Z=y._getValTranslator().getBusinessRange().invert,Oe="discrete"===y.series.valueAxisType,Fe=y.series.isFullStackedSeries();return!Oe&&(H>=0&&!Z||H<0&&Z)||Oe&&!Z||Fe?"top":"bottom"}const Qf=fo({},cr,{correctCoordinates(y){var H=Bs(y.offset-y.width/2);this._options.rotated?(this.height=y.width,this.yCorrection=H,this.xCorrection=null):(this.width=y.width,this.xCorrection=H,this.yCorrection=null)},_calculateVisibility:function(y,H,Z,Oe){var{minX:Fe,maxX:Ye,minY:bt,maxY:$t}=this._getVisibleArea();this.inVisibleArea=Fe<=y+Z&&Ye>=y&&bt<=H+Oe&&$t>=H},_cacheVisibility:function(y,H,Z,Oe){var Fe=Math.abs(H-Z);H=Math.min(H,Z),Oe?this._calculateVisibility(H,y,Fe,this.height):this._calculateVisibility(y,H,this.width,Fe)},_getGraphicBBox:function(y){var H={x:this.x,y:this.y,width:this.width,height:this.height};if(y){var Z="top"===y;this._options.rotated?(H.x=Z?H.x+H.width:H.x,H.width=0):(H.y=Z?H.y:H.y+H.height,H.height=0)}return H},_getLabelConnector:function(y){return this._getGraphicBBox(y)},_getLabelPosition:function(){var y=Ep(this);return this._options.rotated&&(y="top"===y?"right":"left"),y},_getLabelCoords:function(y){return 0===this.initialValue&&this.series.isFullStackedSeries()?this._getLabelCoordOfPosition(y,this._options.rotated?"right":"top"):"inside"===y.getLayoutOptions().position?this._getLabelCoordOfPosition(y,"inside"):cr._getLabelCoords.call(this,y)},_drawLabel:function(){this._label.pointPosition="inside"!==this._label.getLayoutOptions().position&&Ep(this),cr._drawLabel.call(this)},hideInsideLabel:function(y,H){var Z=this._getGraphicBBox(),Oe=y.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(H.y<=Z.y&&H.y+Oe.height>=Z.y+Z.height||H.x<=Z.x&&H.x+Oe.width>=Z.x+Z.width)||H.y>Z.y+Z.height||H.y+Oe.height<Z.y||H.x>Z.x+Z.width||H.x+Oe.width<Z.x||(y.draw(!1),0))},_showForZeroValues:function(){return this._options.label.showForZeroValues||this.initialValue},_drawMarker(y,H,Z){var Oe=this._getStyle(),Fe=this._options.cornerRadius,Ye=this._options.rotated,{x:bt,y:$t,width:_i,height:Ii}=this.getMarkerCoords();Z&&(Ye?(_i=0,bt=this.defaultX):(Ii=0,$t=this.defaultY)),this.graphic=y.rect(bt,$t,_i,Ii).attr({rx:Fe,ry:Fe}).smartAttr(Oe).data({"chart-data-point":this}).append(H)},_getSettingsForTracker:function(){var y=this.y,H=this.height,Z=this.x,Oe=this.width;return this._options.rotated?1===Oe&&(Oe=9,Z-=4):1===H&&(H=9,y-=4),{x:Z,y,width:Oe,height:H}},getGraphicSettings:function(){var y=this.graphic;return{x:y.attr("x"),y:y.attr("y"),height:y.attr("height"),width:y.attr("width")}},_getEdgeTooltipParams(){var H,Z,y=this.value>=0,Oe=this._getValTranslator().getBusinessRange().invert,{x:Fe,y:Ye,width:bt,height:$t}=this;return this._options.rotated?(Z=Ye+$t/2,H=Oe?y?Fe:Fe+bt:y?Fe+bt:Fe):(H=Fe+bt/2,Z=Oe?y?Ye+$t:Ye:y?Ye:Ye+$t),{x:H,y:Z,offset:0}},getTooltipParams:function(y){if("edge"===y)return this._getEdgeTooltipParams();var H=this.getCenterCoord();return H.offset=0,H},getCenterCoord(){var{width:y,height:H,x:Z,y:Oe}=this;return{x:Z+y/2,y:Oe+H/2}},_truncateCoord:function(y,H){return null===y?y:y<H[0]?H[0]:y>H[1]?H[1]:y},_getErrorBarBaseEdgeLength(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(y){cr._translateErrorBars.call(this),(this._errorBarPos<y[0]||this._errorBarPos>y[1])&&(this._errorBarPos=void 0)},_translate:function(){var y=this._options.rotated,H=y?"x":"y",Z=y?"y":"x",Oe=y?"width":"height",Fe=y?"height":"width",Ye=this._getArgTranslator(),bt=this._getValTranslator(),$t=this.series.getArgumentAxis().getVisibleArea(),_i=this.series.getValueAxis().getVisibleArea(),Ii=Ye.translate(this.argument),bn=bt.translate(this.value,1),Yn=bt.translate(this.minValue,-1);this[Z]=Ii=null===Ii?Ii:Ii+(this[Z+"Correction"]||0),this["v"+H]=bn,this["v"+Z]=Ii+this[Fe]/2,this._cacheVisibility(Ii,bn,Yn,y),bn=this._truncateCoord(bn,_i),Yn=this._truncateCoord(Yn,_i),this[Oe]=Pl(bn-Yn),this[H]=null===(bn=bn<Yn?bn:Yn)?bn:bn+(this[H+"Correction"]||0),this["min"+H.toUpperCase()]=null===Yn?Yn:Yn+(this[H+"Correction"]||0),this["default"+H.toUpperCase()]=bt.translate("canvas_position_default"),this._translateErrorBars($t),this.inVisibleArea&&null!==this[Z]&&(this[Z]<$t[0]&&(this[Fe]=this[Fe]-($t[0]-this[Z]),this[Z]=$t[0]),this[Z]+this[Fe]>$t[1]&&(this[Fe]=$t[1]-this[Z]))},_updateMarker:function(y,H){this.graphic.smartAttr(fo({},H,y?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var y=this.x,H=this.y,Z=this.width,Oe=this.height,Fe=this.series.getArgumentAxis(),Ye=this._options.rotated;if(Fe.getAxisPosition){var bt=Fe.getOptions(),$t=Math.round(bt.width/2),_i=Fe.getAxisPosition();if(bt.visible)if(Ye){var Ii=this.minX===this.defaultX&&this.minX===_i-Fe.getAxisShift();y+=Ii?$t:0,(Z-=Ii?$t:0)<0&&(Z=0)}else(Oe-=this.minY===this.defaultY&&this.minY===_i-Fe.getAxisShift()?$t:0)<0&&(Oe=0)}return{x:y,y:H,width:Z,height:Oe}},coordsIn:function(y,H){return y>=this.x&&y<=this.x+this.width&&H>=this.y&&H<=this.y+this.height}});var Mp=o.X;const Zf=Mp({},cr,{correctCoordinates:function(y){this.bubbleSize=y/2},_drawMarker:function(y,H,Z){var Oe=Mp({translateX:this.x,translateY:this.y},this._getStyle());this.graphic=y.circle(0,0,Z?0:this.bubbleSize).smartAttr(Oe).data({"chart-data-point":this}).append(H)},getTooltipParams:function(y){var H=this.graphic;if(H){var Z=H.getBBox().height;return{x:this.x,y:this.y,offset:Z<20||"edge"===y?Z/2:0}}},_getLabelFormatObject:function(){var y=cr._getLabelFormatObject.call(this);return y.size=this.initialSize,y},_updateData:function(y){cr._updateData.call(this,y),this.size=this.initialSize=y.size},_getGraphicBBox:function(){return this._getSymbolBBox(this.x,this.y,this.bubbleSize)},_updateMarker:function(y,H){y||(H=Mp({r:this.bubbleSize,translateX:this.x,translateY:this.y},H)),this.graphic.smartAttr(H)},_getFormatObject:function(y){var H=cr._getFormatObject.call(this,y);return H.sizeText=y.formatValue(this.initialSize),H},_storeTrackerR:function(){return this.bubbleSize},_getLabelCoords:function(y){return"inside"===y.getLayoutOptions().position?this._getLabelCoordOfPosition(y,"inside"):cr._getLabelCoords.call(this,y)}});var tf=o.X,pp=Math.round,Bg=Math.sqrt,fp=Math.acos,vm=180/Math.PI,lg=Math.abs,a_=b.A.radialLabelIndent;const Wd=tf({},cr,{_updateData:function(y,H){cr._updateData.call(this,y),(H||!(0,R.O9)(this._visible))&&(this._visible=!0),this.minValue=this.initialMinValue=this.originalMinValue=(0,R.O9)(y.minValue)?y.minValue:0},animate:function(y,H,Z){this.graphic.animate({x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.radiusInner,startAngle:this.toAngle,endAngle:this.fromAngle},{delay:Z,partitionDuration:H},y)},correctPosition:function(y){this.correctRadius(y),this.correctLabelRadius(y.radiusOuter+a_),this.centerX=y.centerX,this.centerY=y.centerY},correctRadius:function(y){this.radiusInner=y.radiusInner,this.radiusOuter=y.radiusOuter},correctLabelRadius:function(y){this.radiusLabels=y},correctValue:function(y,H,Z){this.value=(Z||this.normalInitialValue)+y,this.minValue=y,this.percent=H,this._label.setDataField("percent",H)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var y=this._label.getBoundingRect(),H=this._getLabelCoords(this._label),Z=this._getVisibleArea();return this._isLabelDrawingWithoutPoints?this._checkLabelPosition(H,y,Z):this._getLabelExtraCoord(H,this._checkVerticalLabelPosition(H,y,Z),y)},_getLabelPosition:function(y){return y.position},getAnnotationCoords:function(y){return this._getElementCoords("edge"!==y?"inside":"outside",this.radiusOuter,0)},_getElementCoords:function(y,H,Z){var Ii,bn,Oe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0,width:0,height:0},Fe=this,Ye=(0,O.lD)(Fe.middleAngle),bt=Fe.radiusInner,_i="columns"===y;return"inside"===y?bn=Fe.centerX+(Ii=bt+(Fe.radiusOuter-bt)/2+Z)*Ye.cos-Oe.width/2:(Ii=H+Z,bn=Ye.cos>.1||_i&&Ye.cos>=0?Fe.centerX+Ii*Ye.cos:Ye.cos<-.1||_i&&Ye.cos<0?Fe.centerX+Ii*Ye.cos-Oe.width:Fe.centerX+Ii*Ye.cos-Oe.width/2),{x:bn,y:pp(Fe.centerY-Ii*Ye.sin-Oe.height/2)}},_getLabelCoords:function(y){var H=y.getBoundingRect(),Z=y.getLayoutOptions(),Oe=this._getLabelPosition(Z);return this._getElementCoords(Oe,this.radiusLabels,Z.radialOffset,H)},_correctLabelCoord:function(y,H){var Z=this._label,Fe=Z.getBoundingRect().width,Ye=Z.getLayoutOptions(),bt=this._getVisibleArea(),$t=bt.maxX-Fe,_i=bt.minX,Ii=(0,O.n0)(this.middleAngle),bn=this.centerX,Yn=Ye.connectorOffset,Mr=y.x;return"columns"===Ye.position?y.x=Mr=Ii<=90||Ii>=270?$t:_i:"inside"!==Ye.position&&H&&(Ii<=90||Ii>=270?Mr-Yn<bn&&(Mr=bn+Yn):Mr+Fe+Yn>bn&&(Mr=bn-Fe-Yn),y.x=Mr),y},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(y){var H=this._label.getBoundingRect(),Z=this._correctLabelCoord(H,y);Z=this._checkHorizontalLabelPosition(Z,H,this._getVisibleArea()),this._label.shift(pp(Z.x),pp(H.y))},_checkVerticalLabelPosition:function(y,H,Z){var Fe=y.y;return y.y+H.height>Z.maxY?Fe=Z.maxY-H.height:y.y<Z.minY&&(Fe=Z.minY),{x:y.x,y:Fe}},_getLabelExtraCoord:function(y,H,Z){return y.y!==H.y?(0,O.z1)({x:y.x,y:y.y,width:Z.width,height:Z.height},H.y-y.y,{x:this.centerX,y:this.centerY}):y},_checkHorizontalLabelPosition:function(y,H,Z){var Oe=y.x;return y.x+H.width>Z.maxX?Oe=Z.maxX-H.width:y.x<Z.minX&&(Oe=Z.minX),{x:Oe,y:y.y}},applyWordWrap:function(y){var H=this._label,Z=H.getBoundingRect(),Oe=this._getVisibleArea(),Fe=H.getLayoutOptions().position,Ye=Z.width,bt=!1;return"columns"===Fe&&this.series.index>0?Ye=Oe.maxX-this.centerX-this.radiusLabels:"inside"===Fe?Ye>Oe.maxX-Oe.minX&&(Ye=Oe.maxX-Oe.minX):y&&Z.x<this.centerX&&Z.width+Z.x>this.centerX?Ye=Math.floor((Oe.maxX-Oe.minX)/2):Z.x+Ye>Oe.maxX?Ye=Oe.maxX-Z.x:Z.x<Oe.minX&&(Ye=Z.x+Ye-Oe.minX),Ye<Z.width&&(bt=H.fit(Ye)),bt},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(y,H,Z){return y=this._checkHorizontalLabelPosition(y,H,Z),this._checkVerticalLabelPosition(y,H,Z)},_getLabelConnector:function(){var y=this.radiusOuter,H=this._options.styles.normal,Z=H["stroke-width"]/2,Oe=this.series.getOptions().containerBackgroundColor===H.stroke?pp(Z):pp(-Z),Fe=(0,O.lD)(pp(this.middleAngle));return{x:pp(this.centerX+(y-Oe)*Fe.cos),y:pp(this.centerY-(y-Oe)*Fe.sin),angle:this.middleAngle}},_drawMarker:function(y,H,Z,Oe){var Fe=this.radiusOuter,Ye=this.radiusInner,bt=this.fromAngle,$t=this.toAngle;Z&&(Ye=Fe=0,Oe||(bt=$t=this.shiftedAngle)),this.graphic=y.arc(this.centerX,this.centerY,Ye,Fe,$t,bt).attr({"stroke-linejoin":"round"}).smartAttr(this._getStyle()).data({"chart-data-point":this}).sharp().append(H)},getTooltipParams:function(){var y=(0,O.lD)(this.middleAngle),H=this.radiusInner,Z=this.radiusOuter;return{x:this.centerX+(H+(Z-H)/2)*y.cos,y:this.centerY-(H+(Z-H)/2)*y.sin,offset:0}},_translate:function(){var y=this.shiftedAngle||0,H=this.value,Z=this.minValue,Oe=this._getValTranslator();this.fromAngle=Oe.translate(Z)+y,this.toAngle=Oe.translate(H)+y,this.middleAngle=Oe.translate((H-Z)/2+Z)+y,this.isVisible()||(this.middleAngle=this.toAngle=this.fromAngle=this.fromAngle||y)},getMarkerVisibility:function(){return!0},_updateMarker:function(y,H,Z,Oe){y||(H=tf({x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.radiusInner,startAngle:this.toAngle,endAngle:this.fromAngle},H)),this.graphic.smartAttr(H).sharp(),Oe&&Oe()},getLegendStyles:function(){return this._styles.legendStyles},isInVisibleArea:function(){return!0},hide:function(){this._visible&&(this._visible=!1,this.hideTooltip(),this._options.visibilityChanged())},show:function(){this._visible||(this._visible=!0,this._options.visibilityChanged())},setInvisibility:function(){this._label.draw(!1)},isVisible:function(){return this._visible},_getFormatObject:function(y){var H=cr._getFormatObject.call(this,y),Z=this.percent;return H.percent=Z,H.percentText=y.formatValue(Z,"percent"),H},getColor:function(){return this._styles.normal.fill},coordsIn:function(y,H){var $t,Z=y-this.centerX,Oe=H-this.centerY,Fe=Bg(Z*Z+Oe*Oe),Ye=this.fromAngle%360,bt=this.toAngle%360;return!(Fe<this.radiusInner||Fe>this.radiusOuter||0===Fe)&&(($t=fp(Z/Fe)*vm*(Oe>0?-1:1))<0&&($t+=360),Ye===bt&&lg(this.toAngle-this.fromAngle)>1e-4||(Ye>=bt?$t<=Ye&&$t>=bt:!($t>=Ye&&$t<=bt)))}});var dg=o.X,nf=Math,Qo=nf.abs,cu=nf.min,rf=nf.max,xh=nf.round;const Hl=dg({},cr,{deleteLabel:function(){this._topLabel.dispose(),this._topLabel=null,this._bottomLabel.dispose(),this._bottomLabel=null},hideMarker:function(y){var H=this.graphic,Z=H&&H[y+"Marker"],Oe=this["_"+y+"Label"];Z&&"hidden"!==Z.attr("visibility")&&Z.attr({visibility:"hidden"}),Oe.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var y=this.graphic,H=y&&y.topMarker,Z=y&&y.bottomMarker;H&&H.attr("visibility")&&H.attr({visibility:null}),Z&&Z.attr("visibility")&&Z.attr({visibility:null})},clearMarker:function(){var y=this.graphic,H=y&&y.topMarker,Z=y&&y.bottomMarker,Oe=this._emptySettings;H&&H.attr(Oe),Z&&Z.attr(Oe)},_getLabelPosition:function(y){var Z="inside"===this._options.label.position;return this._options.rotated?"top"===y^Z?"right":"left":"top"===y^Z?"top":"bottom"},_getLabelMinFormatObject:function(){return{index:0,argument:this.initialArgument,value:this.initialMinValue,seriesName:this.series.name,originalValue:this.originalMinValue,originalArgument:this.originalArgument,point:this}},_updateLabelData:function(){var y=this._getLabelFormatObject();y.index=1,this._topLabel.setData(y),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var y=this._options.label;(!this._topLabel||!this._bottomLabel)&&this._createLabel(),this._topLabel.setOptions(y),this._bottomLabel.setOptions(y)},_createLabel:function(){var y={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new $h(y),this._bottomLabel=new $h(y)},_getGraphicBBox:function(y){var H=this._options,Z=this._getImage(H.image),Oe=this._checkImage("top"===y?Z.top:Z.bottom),Ye=this._getPositionFromLocation(y);return H.visible?Oe?this._getImageBBox(Ye.x,Ye.y):this._getSymbolBBox(Ye.x,Ye.y,H.styles.normal.r):{x:Ye.x,y:Ye.y,width:0,height:0}},_getPositionFromLocation:function(y){var H,Z,Oe="top"===y;return this._options.rotated?(H=Oe?rf(this.x,this.minX):cu(this.x,this.minX),Z=this.y):(H=this.x,Z=Oe?cu(this.y,this.minY):rf(this.y,this.minY)),{x:H,y:Z}},_checkOverlay:function(y,H,Z){return y<H+Z},_getOverlayCorrections:function(y,H){var Z=this._options.rotated,Oe=Z?"x":"y",Fe=Z?"width":"height",Ye=this.series.getValueAxis().getVisibleArea(),bt=Ye[0],$t=Ye[1],_i=xh((y[Oe]+y[Fe]-H[Oe])/2),Ii=y[Oe]-_i,bn=H[Oe]+_i;return Ii<bt?(Ii+=_i=bt-Ii,bn+=_i):bn+H[Fe]>$t&&(Ii+=_i=$t-bn-H[Fe],bn+=_i),{coord1:Ii,coord2:bn}},_checkLabelsOverlay:function(y){var H=this._topLabel.getBoundingRect(),Z=this._bottomLabel.getBoundingRect(),Oe={};this._options.rotated?"top"===y?this._checkOverlay(H.x,Z.x,Z.width)&&(Oe=this._getOverlayCorrections(Z,H),this._topLabel.shift(Oe.coord2,H.y),this._bottomLabel.shift(Oe.coord1,Z.y)):this._checkOverlay(Z.x,H.x,H.width)&&(Oe=this._getOverlayCorrections(H,Z),this._topLabel.shift(Oe.coord1,H.y),this._bottomLabel.shift(Oe.coord2,Z.y)):"top"===y?this._checkOverlay(Z.y,H.y,H.height)&&(Oe=this._getOverlayCorrections(H,Z),this._topLabel.shift(H.x,Oe.coord1),this._bottomLabel.shift(Z.x,Oe.coord2)):this._checkOverlay(H.y,Z.y,Z.height)&&(Oe=this._getOverlayCorrections(Z,H),this._topLabel.shift(H.x,Oe.coord2),this._bottomLabel.shift(Z.x,Oe.coord1))},_drawLabel:function(){var y=[],H=this._options.rotated?this.x>=this.minX:this.y<this.minY,Z=this._getCustomLabelVisibility(),Oe=this._topLabel,Fe=this._bottomLabel;Oe.pointPosition=H?"top":"bottom",Fe.pointPosition=H?"bottom":"top",(this.series.getLabelVisibility()||Z)&&this.hasValue()&&!1!==Z?(!1!==this.visibleTopMarker&&y.push(Oe),!1!==this.visibleBottomMarker&&y.push(Fe),(0,E.__)(y,function(Ye,bt){bt.draw(!0)}),this._checkLabelsOverlay(this._topLabel.pointPosition)):(Oe.draw(!1),Fe.draw(!1))},_getImage:function(y){var H={};return(0,R.O9)(y)&&("string"==typeof y?H.top=H.bottom=y:(H.top={url:"string"==typeof y.url?y.url:y.url&&y.url.rangeMaxPoint,width:"number"==typeof y.width?y.width:y.width&&y.width.rangeMaxPoint,height:"number"==typeof y.height?y.height:y.height&&y.height.rangeMaxPoint},H.bottom={url:"string"==typeof y.url?y.url:y.url&&y.url.rangeMinPoint,width:"number"==typeof y.width?y.width:y.width&&y.width.rangeMinPoint,height:"number"==typeof y.height?y.height:y.height&&y.height.rangeMinPoint})),H},_checkSymbol:function(y,H){var Z=y.symbol,Oe=H.symbol,Fe="circle"===Z&&"circle"!==Oe||"circle"!==Z&&"circle"===Oe,Ye=this._getImage(y.image),bt=this._getImage(H.image),$t=this._checkImage(Ye.top)!==this._checkImage(bt.top),_i=this._checkImage(Ye.bottom)!==this._checkImage(bt.bottom);return Fe||$t||_i},_getSettingsForTwoMarkers:function(y){var H=this._options,Z={},Oe=H.rotated?cu(this.x,this.minX):this.x,Fe=H.rotated?this.y:cu(this.y,this.minY),Ye=y.r,bt=this._populatePointShape(H.symbol,Ye);return Z.top=dg({translateX:Oe+this.width,translateY:Fe,r:Ye},y),Z.bottom=dg({translateX:Oe,translateY:Fe+this.height,r:Ye},y),bt&&(Z.top.points=Z.bottom.points=bt),Z},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(y,H,Z,Oe){var Fe=this.graphic;Fe[H]?this._updateOneMarker(H,Oe):Fe[H]=this._createMarker(y,Fe,Z,Oe)},_drawMarker:function(y,H,Z,Oe,Fe){var Ye=this._getSettingsForTwoMarkers(Fe||this._getStyle()),bt=this._getImage(this._options.image);this._checkImage(bt.top)&&(Ye.top=this._getImageSettings(Ye.top,bt.top)),this._checkImage(bt.bottom)&&(Ye.bottom=this._getImageSettings(Ye.bottom,bt.bottom)),this.graphic=this.graphic||y.g().append(H),this.visibleTopMarker&&this._drawOneMarker(y,"topMarker",bt.top,Ye.top),this.visibleBottomMarker&&this._drawOneMarker(y,"bottomMarker",bt.bottom,Ye.bottom)},_getSettingsForTracker:function(y){var H=this._options.rotated;return{translateX:H?cu(this.x,this.minX)-y:this.x-y,translateY:H?this.y-y:cu(this.y,this.minY)-y,width:this.width+2*y,height:this.height+2*y}},isInVisibleArea:function(){var Fe,Ye,bt,y=this._options.rotated,H=y?this.y:this.x,Z=y?rf(this.minX,this.x):rf(this.minY,this.y),Oe=y?cu(this.minX,this.x):cu(this.minY,this.y),$t=!0,_i=this.series.getArgumentAxis().getVisibleArea(),Ii=this.series.getValueAxis().getVisibleArea();return _i[1]<H||_i[0]>H||Ii[0]>Oe&&Ii[0]>Z||Ii[1]<Oe&&Ii[1]<Z?Ye=bt=$t=!1:(Ye=Ii[0]<=Oe&&Ii[1]>Oe,bt=Ii[0]<Z&&Ii[1]>=Z,y&&(Fe=Ye,Ye=bt,bt=Fe)),this.visibleTopMarker=Ye,this.visibleBottomMarker=bt,$t},getTooltipParams:function(){var y,H,Z=this._options.rotated,Oe=Z?cu(this.x,this.minX):cu(this.y,this.minY),Fe=Z?"width":"height",Ye=this._getVisibleArea(),$t=Z?Ye.maxX:Ye.maxY,_i=rf(Z?Ye.minX:Ye.minY,Oe),Ii=cu($t,Oe+this[Fe]);return Z?(H=this.y,y=_i+(Ii-_i)/2):(y=this.x,H=_i+(Ii-_i)/2),{x:y,y:H,offset:0}},_translate:function(){var y=this._options.rotated;cr._translate.call(this),this.height=y?0:Qo(this.minY-this.y),this.width=y?Qo(this.x-this.minX):0},hasCoords:function(){return cr.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(y){cr._updateData.call(this,y),this.minValue=this.initialMinValue=this.originalMinValue=y.minValue},_getImageSettings:function(y,H){return{href:H.url||H.toString(),width:H.width||20,height:H.height||20,translateX:y.translateX,translateY:y.translateY}},getCrosshairData:function(y,H){var Oe=this.minX,Fe=this.minY,Ye=this.vx,bt=this.vy,$t=this.value,_i=this.minValue,Ii=this.argument,bn={axis:this.series.axis,x:Ye,y:bt,yValue:$t,xValue:Ii};return this._options.rotated?(bn.yValue=Ii,Qo(Ye-y)<Qo(Oe-y)?bn.xValue=$t:(bn.x=Oe,bn.xValue=_i)):Qo(bt-H)>=Qo(Fe-H)&&(bn.y=Fe,bn.yValue=_i),bn},_updateOneMarker:function(y,H){this.graphic&&this.graphic[y]&&this.graphic[y].attr(H)},_updateMarker:function(y,H){this._drawMarker(void 0,void 0,!1,!1,H)},_getFormatObject:function(y){var H=this.initialMinValue,Z=this.initialValue,Oe=this.initialArgument,Fe=y.formatValue(H),Ye=y.formatValue(Z);return{argument:Oe,argumentText:y.formatValue(Oe,"argument"),valueText:Fe+" - "+Ye,rangeValue1Text:Fe,rangeValue2Text:Ye,rangeValue1:H,rangeValue2:Z,seriesName:this.series.name,point:this,originalMinValue:this.originalMinValue,originalValue:this.originalValue,originalArgument:this.originalArgument}},getLabel:function(){return[this._topLabel,this._bottomLabel]},getLabels:function(){return[this._topLabel,this._bottomLabel]},getBoundingRect:j.lQ,coordsIn:function(y,H){var Z=this._storeTrackerR(),Oe=y>=this.x-Z&&y<=this.x+Z,Fe=H>=this.y-Z&&H<=this.y+Z;return this._options.rotated?Fe&&(Oe||y>=this.minX-Z&&y<=this.minX+Z):Oe&&(Fe||H>=this.minY-Z&&H<=this.minY+Z)},getMaxValue:function(){return"discrete"!==this.series.valueAxisType&&this.minValue>this.value?this.minValue:this.value},getMinValue:function(){return"discrete"!==this.series.valueAxisType?this.minValue<this.value?this.minValue:this.value:this.minValue}}),qf=(0,o.X)({},Qf,{deleteLabel:Hl.deleteLabel,_getFormatObject:Hl._getFormatObject,clearVisibility:function(){var y=this.graphic;y&&y.attr("visibility")&&y.attr({visibility:null})},setInvisibility:function(){var y=this.graphic;y&&"hidden"!==y.attr("visibility")&&y.attr({visibility:"hidden"}),this._topLabel.draw(!1),this._bottomLabel.draw(!1)},getTooltipParams:function(y){var Z,Oe,H="edge"===y;return this._options.rotated?(Z=H?this.x+this.width:this.x+this.width/2,Oe=this.y+this.height/2):(Z=this.x+this.width/2,Oe=H?this.y:this.y+this.height/2),{x:Z,y:Oe,offset:0}},_translate:function(){Qf._translate.call(this),this._options.rotated?this.width=this.width||1:this.height=this.height||1},hasCoords:Hl.hasCoords,_updateData:Hl._updateData,_getLabelPosition:Hl._getLabelPosition,_getLabelMinFormatObject:Hl._getLabelMinFormatObject,_updateLabelData:Hl._updateLabelData,_updateLabelOptions:Hl._updateLabelOptions,getCrosshairData:Hl.getCrosshairData,_createLabel:Hl._createLabel,_checkOverlay:Hl._checkOverlay,_checkLabelsOverlay:Hl._checkLabelsOverlay,_getOverlayCorrections:Hl._getOverlayCorrections,_drawLabel:Hl._drawLabel,_getLabelCoords:Hl._getLabelCoords,getLabel:Hl.getLabel,getLabels:Hl.getLabels,getBoundingRect:j.lQ,getMinValue:Hl.getMinValue,getMaxValue:Hl.getMaxValue});var em=Math,Ch=em.abs,mp=em.min,M=em.max,Ae=em.round;const $e=(0,o.X)({},Qf,{_calculateVisibility:cr._calculateVisibility,_getContinuousPoints:function(y,H){var Z=this.x,Oe=this._options.rotated?function(Ii,bn){return[bn,Ii]}:function(Ii,bn){return[Ii,bn]},Fe=this.width,Ye=this.highY,bt=Ch(Ye-y)<Ch(Ye-H)?y:H,$t=bt===H?y:H;return $t===bt?[].concat(Oe(Z,this.highY)).concat(Oe(Z,this.lowY)).concat(Oe(Z,this.closeY)).concat(Oe(Z-Fe/2,this.closeY)).concat(Oe(Z+Fe/2,this.closeY)).concat(Oe(Z,this.closeY)):[].concat(Oe(Z,this.highY)).concat(Oe(Z,bt)).concat(Oe(Z+Fe/2,bt)).concat(Oe(Z+Fe/2,$t)).concat(Oe(Z,$t)).concat(Oe(Z,this.lowY)).concat(Oe(Z,$t)).concat(Oe(Z-Fe/2,$t)).concat(Oe(Z-Fe/2,bt)).concat(Oe(Z,bt))},_getCrockPoints:function(y){var H=this.x,Z=this._options.rotated?function(Oe,Fe){return[Fe,Oe]}:function(Oe,Fe){return[Oe,Fe]};return[].concat(Z(H,this.highY)).concat(Z(H,this.lowY)).concat(Z(H,y)).concat(Z(H-this.width/2,y)).concat(Z(H+this.width/2,y)).concat(Z(H,y))},_getPoints:function(){var H=this.closeY,Z=this.openY;return null!==H&&null!==Z?this._getContinuousPoints(Z,H):Z===H?[this.x,this.highY,this.x,this.lowY]:this._getCrockPoints(null!==Z?Z:H)},getColor:function(){return this._isReduction?this._options.reduction.color:this._styles.normal.stroke||this.series.getColor()},_drawMarkerInGroup:function(y,H,Z){this.graphic=Z.path(this._getPoints(),"area").attr({"stroke-linecap":"square"}).attr(H).data({"chart-data-point":this}).sharp().append(y)},_fillStyle:function(){var y=this._options.styles;this._styles=this._isReduction&&this._isPositive?y.reductionPositive:this._isReduction?y.reduction:this._isPositive?y.positive:y},_getMinTrackerWidth:function(){return 2+2*this._styles.normal["stroke-width"]},correctCoordinates:function(y){var H=this._getMinTrackerWidth(),Z=y.width;this.width=(Z=Z<H?H:Z>10?10:Z)+Z%2,this.xCorrection=y.offset},_getMarkerGroup:function(y){return this._isReduction&&this._isPositive?y.reductionPositiveMarkersGroup:this._isReduction?y.reductionMarkersGroup:this._isPositive?y.defaultPositiveMarkersGroup:y.defaultMarkersGroup},_drawMarker:function(y,H){this._drawMarkerInGroup(this._getMarkerGroup(H),this._getStyle(),y)},_getSettingsForTracker:function(){var Oe,Fe,Ye,bt,y=this.highY,H=this.lowY,Z=this._options.rotated;return y===H&&(y=Z?y+2:y-2,H=Z?H-2:H+2),Z?(Oe=mp(H,y),Fe=this.x-this.width/2,Ye=Ch(H-y),bt=this.width):(Oe=this.x-this.width/2,Fe=mp(H,y),Ye=this.width,bt=Ch(H-y)),{x:Oe,y:Fe,width:Ye,height:bt}},_getGraphicBBox:function(y){var H=this._options.rotated,Z=this.x,Oe=this.width,Fe=this.lowY,Ye=this.highY;if(y){var bt=this.series.getValueAxis().getVisibleArea();Ye=this._truncateCoord(Ye,bt),Fe=this._truncateCoord(Fe,bt)}var $t={x:H?Fe:Z-Ae(Oe/2),y:H?Z-Ae(Oe/2):Ye,width:H?Ye-Fe:Oe,height:H?Oe:Fe-Ye};if(y){var _i="top"===y;this._options.rotated?($t.x=_i?$t.x+$t.width:$t.x,$t.width=0):($t.y=_i?$t.y:$t.y+$t.height,$t.height=0)}return $t},getTooltipParams:function(y){if(this.graphic){var H=mp(this.lowY,this.highY),Z=M(this.lowY,this.highY),Oe=this._getVisibleArea(),Fe=this._options.rotated,bt=Fe?Oe.maxX:Oe.maxY,$t=M(Fe?Oe.minX:Oe.minY,H),_i=mp(bt,Z),Ii=this.getCenterCoord();return"edge"===y&&(Ii[Fe?"x":"y"]=Fe?_i:$t),Ii.offset=0,Ii}},getCenterCoord(){if(this.graphic){var y,H,Z=mp(this.lowY,this.highY),Oe=M(this.lowY,this.highY),Fe=this._getVisibleArea(),Ye=this._options.rotated,$t=Ye?Fe.maxX:Fe.maxY,_i=M(Ye?Fe.minX:Fe.minY,Z),bn=_i+(mp($t,Oe)-_i)/2;return Ye?(H=this.x,y=bn):(y=this.x,H=bn),{x:y,y:H}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},hasCoords:function(){return null!==this.x&&null!==this.lowY&&null!==this.highY},_translate:function(){var y=this._options.rotated,H=this._getValTranslator(),Z=this._getArgTranslator().translate(this.argument);this.vx=this.vy=this.x=null===Z?Z:Z+(this.xCorrection||0),this.openY=null!==this.openValue?H.translate(this.openValue):null,this.highY=H.translate(this.highValue),this.lowY=H.translate(this.lowValue),this.closeY=null!==this.closeValue?H.translate(this.closeValue):null;var Oe=mp(this.lowY,this.highY)+Ch(this.lowY-this.highY)/2;this._calculateVisibility(y?Oe:this.x,y?this.x:Oe)},getCrosshairData:function(y,H){var Fe,bt,Z=this._options.rotated,Oe=Z?y:H,Ye=this.argument,$t="low";return Ch(this.lowY-Oe)<Ch(this.closeY-Oe)?Fe=this.lowY:(Fe=this.closeY,$t="close"),Ch(Fe-Oe)>=Ch(this.openY-Oe)&&(Fe=this.openY,$t="open"),Ch(Fe-Oe)>=Ch(this.highY-Oe)&&(Fe=this.highY,$t="high"),(bt=Z?{y:this.vy,x:Fe,xValue:this[$t+"Value"],yValue:Ye}:{x:this.vx,y:Fe,xValue:Ye,yValue:this[$t+"Value"]}).axis=this.series.axis,bt},_updateData:function(y){var H=this._label,Z=this._options.reduction.color;this.value=this.initialValue=y.reductionValue,this.originalValue=y.value,this.lowValue=this.originalLowValue=y.lowValue,this.highValue=this.originalHighValue=y.highValue,this.openValue=this.originalOpenValue=y.openValue,this.closeValue=this.originalCloseValue=y.closeValue,this._isPositive=y.openValue<y.closeValue,this._isReduction=y.isReduction,this._isReduction&&H.setColor(Z)},_updateMarker:function(y,H,Z){var Oe=this.graphic;Oe.attr({points:this._getPoints()}).smartAttr(H).sharp(),Z&&Oe.append(this._getMarkerGroup(Z))},_getLabelFormatObject:function(){return{openValue:this.openValue,highValue:this.highValue,lowValue:this.lowValue,closeValue:this.closeValue,reductionValue:this.initialValue,argument:this.initialArgument,value:this.initialValue,seriesName:this.series.name,originalOpenValue:this.originalOpenValue,originalCloseValue:this.originalCloseValue,originalLowValue:this.originalLowValue,originalHighValue:this.originalHighValue,originalArgument:this.originalArgument,point:this}},_getFormatObject:function(y){var H=y.formatValue(this.highValue),Z=y.formatValue(this.openValue),Oe=y.formatValue(this.closeValue),Fe=y.formatValue(this.lowValue),bt=cr._getFormatObject.call(this,y);return(0,o.X)({},bt,{valueText:"h: "+H+(""!==Z?" o: "+Z:"")+(""!==Oe?" c: "+Oe:"")+" l: "+Fe,highValueText:H,openValueText:Z,closeValueText:Oe,lowValueText:Fe})},getMaxValue:function(){return this.highValue},getMinValue:function(){return this.lowValue}});var mr=R.kf;const Ll=(0,o.X)({},$e,{_getPoints:function(){var y=this._options.rotated?function(bt,$t){return[$t,bt]}:function(bt,$t){return[bt,$t]},H=mr(this.openY),Z=mr(this.closeY),Oe=this.x,Fe=this.width,Ye=[].concat(y(Oe,this.highY));return H&&(Ye=Ye.concat(y(Oe,this.openY))),H&&(Ye=Ye.concat(y(Oe-Fe/2,this.openY))),H&&(Ye=Ye.concat(y(Oe,this.openY))),Z&&(Ye=Ye.concat(y(Oe,this.closeY))),Z&&(Ye=Ye.concat(y(Oe+Fe/2,this.closeY))),Z&&(Ye=Ye.concat(y(Oe,this.closeY))),Ye.concat(y(Oe,this.lowY))},_drawMarkerInGroup:function(y,H,Z){this.graphic=Z.path(this._getPoints(),"line").attr({"stroke-linecap":"square"}).attr(H).data({"chart-data-point":this}).sharp().append(y)},_getMinTrackerWidth:function(){var y=2+this._styles.normal["stroke-width"];return y+y%2}});var dl=o.X,Ec=Math,Od=Ec.max,wh=b.A.radialLabelIndent,km="canvas_position_start",ic="canvas_position_end",ah="canvas_position_default",Op=dl({},cr,{_getLabelCoords:Wd._getLabelCoords,_getElementCoords:Wd._getElementCoords,_moveLabelOnCanvas:function(y,H,Z){var Oe=y.x,Fe=y.y;return H.minX>Oe&&(Oe=H.minX),H.maxX<Oe+Z.width&&(Oe=H.maxX-Z.width),H.minY>Fe&&(Fe=H.minY),H.maxY<Fe+Z.height&&(Fe=H.maxY-Z.height),{x:Oe,y:Fe}},_getLabelPosition:function(){return"outside"},_getCoords:function(y,H){var Z=this.series.getValueAxis(),Oe=Z.getAngles()[0],Fe=this._getArgTranslator().translate(y),Ye=this._getValTranslator().translate(H),bt=(0,O.Wb)(Z.getCenter(),Z.getAngles()[0],Fe,Ye);return bt.angle=Fe+Oe-90,bt.radius=Ye,bt},_translate(){var y=this.series.getValueAxis().getCenter(),H=this._getCoords(this.argument,this.value),Z=this._getValTranslator(),Oe=Z.isInverted()?Z.translate(km):Z.translate(ic),Fe=(0,R.O9)(H.radius)&&H.radius>=0?H.radius:null;this.vx=(0,O.n0)(H.angle),this.vy=this.radiusOuter=this.radiusLabels=Fe,this.radiusLabels+=wh,this.radius=Fe,this.middleAngle=-H.angle,this.angle=-H.angle,this.x=H.x,this.y=H.y,this.defaultX=this.centerX=y.x,this.defaultY=this.centerY=y.y,this._translateErrorBars(),this.inVisibleArea=this._checkRadiusForVisibleArea(Fe,Oe)},_checkRadiusForVisibleArea:(y,H)=>(0,R.O9)(y)&&y<=H,_translateErrorBars:function(){var y=this._options.errorBars,H=this._getValTranslator();y&&((0,R.O9)(this.lowError)&&(this._lowErrorCoord=this.centerY-H.translate(this.lowError)),(0,R.O9)(this.highError)&&(this._highErrorCoord=this.centerY-H.translate(this.highError)),this._errorBarPos=this.centerX,this._baseErrorBarPos="stdDeviation"===y.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:this.centerY-this.radius)},_getTranslates:function(y){return y?this.getDefaultCoords():{x:this.x,y:this.y}},getDefaultCoords:function(){var y=(0,O.lD)(-this.angle),H=this._getValTranslator().translate(ah);return{x:this.defaultX+H*y.cos,y:this.defaultY+H*y.sin}},_addLabelAlignmentAndOffset:function(y,H){return H},_checkLabelPosition:function(y,H){var Z=this._getVisibleArea(),Oe=this._getGraphicBBox();return this._isPointInVisibleArea(Z,Oe)&&(H=this._moveLabelOnCanvas(H,Z,y.getBoundingRect())),H},_getErrorBarSettings:function(y,H){var Z=cr._getErrorBarSettings.call(this,y,H);return Z.rotate=90-this.angle,Z.rotateX=this.centerX,Z.rotateY=this.centerY,Z},getCoords:function(y){return y?this.getDefaultCoords():{x:this.x,y:this.y}}}),Mf=dl({},Qf,{_translateErrorBars:Op._translateErrorBars,_getErrorBarSettings:Op._getErrorBarSettings,_moveLabelOnCanvas:Op._moveLabelOnCanvas,_getLabelCoords:Wd._getLabelCoords,_getElementCoords:Wd._getElementCoords,_getLabelConnector:Wd._getLabelConnector,getTooltipParams:Wd.getTooltipParams,_getLabelPosition:Wd._getLabelPosition,_getCoords:Op._getCoords,_translate(){var y=this._getValTranslator(),H=y.getBusinessRange(),Z=y.isInverted()?y.translate(km):y.translate(ic);this.radiusInner=y.translate(this.minValue),Op._translate.call(this),null===this.radiusInner?this.radiusInner=this.radius=Z:null===this.radius?this.radius=this.value>=H.minVisible?Z:0:this.radius>Z&&(this.radius=Z),this.radiusOuter=this.radiusLabels=Od(this.radiusInner,this.radius),this.radiusLabels+=wh,this.radiusInner=this.defaultRadius=Ec.min(this.radiusInner,this.radius),this.middleAngle=this.angle=-(0,O.n0)(this.middleAngleCorrection-this.angle)},_checkRadiusForVisibleArea(y){return(0,R.O9)(y)||this._getValTranslator().translate(this.minValue)>0},_getErrorBarBaseEdgeLength(){var y=this.getMarkerCoords();return Ec.PI*y.outerRadius*Ec.abs(y.startAngle-y.endAngle)/180},getMarkerCoords:function(){return{x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.defaultRadius,startAngle:this.middleAngle-this.interval/2,endAngle:this.middleAngle+this.interval/2}},_drawMarker:function(y,H,Z){var Oe=this._getStyle(),Fe=this.getMarkerCoords(),Ye=Fe.innerRadius,bt=Fe.outerRadius,$t=this._getCoords(this.argument,ah),_i=Fe.x,Ii=Fe.y;Z&&(Ye=0,bt=0,_i=$t.x,Ii=$t.y),this.graphic=y.arc(_i,Ii,Ye,bt,Fe.startAngle,Fe.endAngle).attr(Oe).data({"chart-data-point":this}).append(H)},_checkLabelPosition:function(y,H){var Z=this._getVisibleArea(),Oe=(0,O.lD)(this.middleAngle),Fe=this.centerX+this.defaultRadius*Oe.cos,Ye=this.centerY-this.defaultRadius*Oe.sin;return Fe>Z.minX&&Fe<Z.maxX&&Ye>Z.minY&&Ye<Z.maxY&&(H=this._moveLabelOnCanvas(H,Z,y.getBoundingRect())),H},_addLabelAlignmentAndOffset:function(y,H){return H},correctCoordinates:function(y){this.middleAngleCorrection=y.offset,this.interval=y.width},coordsIn:function(y,H){var Z=(0,O.iN)(this.series.getValueAxis().getCenter(),y,H),Oe=this.getMarkerCoords();return Z.r>=Oe.innerRadius&&Z.r<=Oe.outerRadius&&(Oe.startAngle<Oe.endAngle?-Z.phi>=Oe.startAngle&&-Z.phi<=Oe.endAngle:-Z.phi<=Oe.startAngle&&-Z.phi>=Oe.endAngle)}}),Sh={},Of=o.X,sf=b.A.states,jc="symbolPoint",Rm="polarSymbolPoint",Pm="barPoint",tm="polarBarPoint",bm="piePoint",Lm=sf.selectedMark,ug=sf.hoverMark,Fm=sf.normalMark,Tp=sf.hover,im=sf.normal,ep=sf.selection,lf={chart:{scatter:jc,line:jc,spline:jc,stepline:jc,stackedline:jc,fullstackedline:jc,stackedspline:jc,fullstackedspline:jc,stackedsplinearea:jc,fullstackedsplinearea:jc,area:jc,splinearea:jc,steparea:jc,stackedarea:jc,fullstackedarea:jc,rangearea:"rangeSymbolPoint",bar:Pm,stackedbar:Pm,fullstackedbar:Pm,rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:bm,doughnut:bm,donut:bm},polar:{scatter:Rm,line:Rm,area:Rm,bar:tm,stackedbar:tm}};function ym(y){return"none"===(0,O.NU)(y)}function mt(y,H,Z){this.fullState=Fm,this.series=y,this.update(H,Z),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null,filter:null}}Sh.symbolPoint=cr,Sh.barPoint=Qf,Sh.bubblePoint=Zf,Sh.piePoint=Wd,Sh.rangeSymbolPoint=Hl,Sh.rangeBarPoint=qf,Sh.candlestickPoint=$e,Sh.stockPoint=Ll,Sh.polarSymbolPoint=Op,Sh.polarBarPoint=Mf,mt.prototype={constructor:mt,getColor:function(){return!this.hasValue()&&!this._styles.usePointCustomOptions&&this.series.customizePoint(this,this._dataItem),this._styles.normal.fill||this.series.getColor()},_getStyle:function(){return this._styles[this._currentStyle||"normal"]},update:function(y,H){this.updateOptions(H),this.updateData(y)},updateData:function(y){var H=this.argument!==y.argument;this.argument=this.initialArgument=this.originalArgument=y.argument,this.tag=y.tag,this.index=y.index,this._dataItem=y,this.data=y.data,this.lowError=y.lowError,this.highError=y.highError,this.aggregationInfo=y.aggregationInfo,this._updateData(y,H),!this.hasValue()&&this.setInvisibility(),this._fillStyle(),this._updateLabelData()},deleteMarker:function(){this.graphic&&this.graphic.dispose(),this.graphic=null},draw:function(y,H,Z,Oe){return(this._needDeletingOnDraw||this.series.autoHidePointMarkers&&!this.isSelected())&&(this.deleteMarker(),this._needDeletingOnDraw=!1),this._needClearingOnDraw&&(this.clearMarker(),this._needClearingOnDraw=!1),this._hasGraphic()?this._updateMarker(Z,this._getStyle(),H.markers):this.getMarkerVisibility()&&!this.series.autoHidePointMarkers&&this._drawMarker(y,H.markers,Z,Oe),this._drawLabel(),this._drawErrorBar(y,H.errorBars,Z),this},_getViewStyle:function(){var y=Fm,H=this.fullState,Z=[im,Tp,ep,ep];return this._viewCounters.hover&&(y|=ug),this._viewCounters.selection&&(y|=Lm),ym(this.getOptions().selectionMode)&&(H&=~Lm),ym(this.getOptions().hoverMode)&&(H&=~ug),Z[y|=H]},applyView:function(y){var H=this._getViewStyle();this._currentStyle=H,!this.graphic&&this.getMarkerVisibility()&&this.series.autoHidePointMarkers&&(H===ep||H===Tp)&&this._drawMarker(this.series.getRenderer(),this.series.getMarkersGroup()),this.graphic&&(this.series.autoHidePointMarkers&&H!==ep&&H!==Tp?this.deleteMarker():("normal"===H?this.clearMarker():this.graphic.toForeground(),this._updateMarker(!0,this._styles[H],void 0,y)))},setView:function(y){this._viewCounters[y]++,this.applyView()},resetView:function(y){var H=this._viewCounters;--H[y],H[y]<0&&(H[y]=0),this.applyView()},releaseHoverState:function(){this.graphic&&!this.isSelected()&&this.graphic.toBackground()},select:function(){this.series.selectPoint(this)},clearSelection:function(){this.series.deselectPoint(this)},hover:function(){this.series.hoverPoint(this)},clearHover:function(){this.series.clearPointHover()},showTooltip:function(){this.series.showPointTooltip(this)},hideTooltip:function(){this.series.hidePointTooltip(this)},_checkLabelsChanging:function(y,H){var Z=~H.indexOf("range"),Oe=~y.indexOf("range");return Oe&&!Z||!Oe&&Z},updateOptions:function(y){if(y){var H=this._options,Oe=H&&H.type,Fe=y.type,Ye=lf[y.widgetType][Fe];Oe!==Fe?(this._needDeletingOnDraw=!0,this._needClearingOnDraw=!1,Oe&&(this._checkLabelsChanging(Oe,Fe)&&this.deleteLabel(),this._resetType(Sh[lf[Oe]])),this._setType(Sh[Ye])):(this._needDeletingOnDraw=this._checkSymbol(H,y),this._needClearingOnDraw=this._checkCustomize(H,y)),this._options=y,this._fillStyle(),this._updateLabelOptions(Ye)}},translate:function(){this.hasValue()&&(this._translate(),this.translated=!0)},_checkCustomize:function(y,H){return y.styles.usePointCustomOptions&&!H.styles.usePointCustomOptions},_getCustomLabelVisibility:function(){return this._styles.useLabelCustomOptions?!!this._options.label.visible:null},getBoundingRect:function(){return this._getGraphicBBox()},_resetType:function(y){for(var H in y)delete this[H]},_setType:function(y){for(var H in y)this[H]=y[H]},isInVisibleArea:function(){return this.inVisibleArea},isSelected:function(){return!!(this.fullState&Lm)},isHovered:function(){return!!(this.fullState&ug)},getOptions:function(){return this._options},animate:function(y,H,Z){this.graphic?this.graphic.animate(H,{partitionDuration:Z},y):y&&y()},getCoords:function(y){return y?this._options.rotated?{x:this.minX-(this.x-this.minX?0:1),y:this.y}:{x:this.x,y:this.minY+(this.y-this.minY?0:1)}:{x:this.x,y:this.y}},getDefaultCoords:function(){return this._options.rotated?{x:this.defaultX,y:this.y}:{x:this.x,y:this.defaultY}},setDefaultCoords(){var y=this.getDefaultCoords();this.x=y.x,this.y=y.y},_getVisibleArea:function(){return this.series.getVisibleArea()},_getArgTranslator:function(){return this.series.getArgumentAxis().getTranslator()},_getValTranslator:function(){return this.series.getValueAxis().getTranslator()},isArgumentCorrect(){return this.series._argumentChecker(this.argument)},isValueCorrect(){var y=this.series._valueChecker;return y(this.getMinValue())&&y(this.getMaxValue())},hasValue:function(){return null!==this.value&&null!==this.minValue&&this.isArgumentCorrect()&&this.isValueCorrect()},hasCoords:j.lQ,correctPosition:j.lQ,correctRadius:j.lQ,correctLabelRadius:j.lQ,getCrosshairData:j.lQ,getPointRadius:j.lQ,_populatePointShape:j.lQ,_checkSymbol:j.lQ,getMarkerCoords:j.lQ,hide:j.lQ,show:j.lQ,hideMarker:j.lQ,setInvisibility:j.lQ,clearVisibility:j.lQ,isVisible:j.lQ,resetCorrection:j.lQ,correctValue:j.lQ,resetValue:j.lQ,setPercentValue:j.lQ,correctCoordinates:j.lQ,coordsIn:j.lQ,getTooltipParams:j.lQ,applyWordWrap:j.lQ,setLabelTrackerData:j.lQ,updateLabelCoord:j.lQ,drawLabel:j.lQ,correctLabelPosition:j.lQ,getMinValue:j.lQ,getMaxValue:j.lQ,_drawErrorBar:j.lQ,getMarkerVisibility:j.lQ,dispose:function(){this.deleteMarker(),this.deleteLabel(),this._errorBar&&this._errorBar.dispose(),this._options=this._styles=this.series=this._errorBar=null},getTooltipFormatObject:function(y,H){var Z=this._getFormatObject(y),Oe=[],Fe=[];H&&(H.forEach(_i=>{if(_i.isVisible()){var Ii=_i._getFormatObject(y);Fe.push(Ii),Oe.push(Ii.seriesName+": "+Ii.valueText)}}),Of(Z,{points:Fe,valueText:Oe.join("\n"),stackName:this.series.getStackName()||null}));var Ye=this.aggregationInfo;if(Ye){var $t=this.series.getArgumentAxis().formatRange(Ye.intervalStart,Ye.intervalEnd,Ye.aggregationInterval,y.getOptions().argumentFormat);$t&&(Z.valueText+="\n".concat($t))}return Z},setHole:function(y,H){var Z=isFinite(this.minValue)?this.minValue:0;(0,R.O9)(y)&&("left"===H?(this.leftHole=this.value-y,this.minLeftHole=Z-y):(this.rightHole=this.value-y,this.minRightHole=Z-y))},resetHoles:function(){this.leftHole=null,this.minLeftHole=null,this.rightHole=null,this.minRightHole=null},getLabel:function(){return this._label},getLabels:function(){return[this._label]},getCenterCoord(){return{x:this.x,y:this.y}}};var nm,ki=D(37512),Mn=Math,Xn=Mn.abs,yr=Mn.sqrt,$r=Mn.max,Go="highError",ss="lowError",Xs="variance",wl="stddeviation",jd="stderror",sd="percent",hc="fixed",ld={};function Bm(y){var H=0;return(0,E.__)(y,function(Z,Oe){H+=Oe}),H}function df(y,H){return Bm((0,O.Tj)(y,function(Z){return(Z-H)*(Z-H)}))/y.length}function Af(y){return(H,Z)=>{var{intervalStart:Oe,intervalEnd:Fe,data:Ye}=H,bt=Z.getValueFields()[0],$t=Ye[0];return $t=Ye.reduce((_i,Ii)=>{var bn=Ii[bt];return null===_i[bt]&&(_i=Ii),null!==bn&&y(bn,_i[bt])?Ii:_i},$t),(0,o.X)({},$t,{[Z.getArgumentField()]:Z._getIntervalCenter(Oe,Fe)})}}var Ap={_defaultDuration:400,_defaultTrackerWidth:12,_applyStyle:j.lQ,_updateOptions:j.lQ,_parseStyle:j.lQ,_prepareSegment:j.lQ,_drawSegment:j.lQ,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(y,H){return{fill:(0,O.Dz)(y.color,!0)||H,hatching:y.hatching?(0,o.X)({},y.hatching,{direction:"right"}):void 0}},_getColorId:j.lQ,_applyElementsClipRect:function(y){y["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(y){y["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(y,H,Z,Oe){var Fe=H[y]=H[y]||this._renderer.g();Z&&Fe.append(Z),Oe&&Fe.attr(Oe)},_applyClearingSettings:function(y){y.opacity=null,y.scale=null,this._options.rotated?y.translateX=null:y.translateY=null},_createGroups:function(){this._createGroup("_markersGroup",this,this._group),this._createGroup("_labelsGroup",this)},_setMarkerGroupSettings:function(){var y=this._createPointStyles(this._getMarkerGroupOptions()).normal;y.class="dxc-markers",y.opacity=1,this._applyMarkerClipRect(y),this._markersGroup.attr(y)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var y=this._options.valueErrorBar;return y&&this._errorBarsEnabled()&&"none"!==y.displayMode&&(function Tf(y){return[hc,sd,Xs,wl,jd].includes(y)}((0,O.NU)(y.type))||(0,R.O9)(y.lowValueField)||(0,R.O9)(y.highValueField))},groupPointsByCoords(y){var H=[];return(0,E.__)(this.getVisiblePoints(),function(Z,Oe){var Fe=parseInt(y?Oe.vy:Oe.vx);H[Fe]?Array.isArray(H[Fe])?H[Fe].push(Oe):H[Fe]=[H[Fe],Oe]:H[Fe]=Oe}),H},_createErrorBarGroup:function(y){var H=this._options.valueErrorBar;this.areErrorBarsVisible()&&this._createGroup("_errorBarGroup",this,this._group,{class:"dxc-error-bars",stroke:H.color,"stroke-width":H.lineWidth,opacity:y?.001:H.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":this._forceClipping?this._paneClipRectID:this._widePaneClipRectID})},_setGroupsSettings:function(y){this._setMarkerGroupSettings(),this._setLabelGroupSettings(y),this._createErrorBarGroup(y)},_getCreatingPointOptions:function(){var y,Z,H=this._predefinedPointOptions;return H||(y=this._getPointOptions(),this._predefinedPointOptions=H=(0,o.X)(!0,{styles:{}},y),Z=y.styles&&y.styles.normal||{},H.styles=H.styles||{},H.styles.normal={"stroke-width":Z["stroke-width"],r:Z.r,opacity:Z.opacity}),H},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(y,H,Z,Oe){var Fe=y.border||{},Ye=void 0!==y.size?y.size:Oe;return{fill:(0,O.Dz)(y.color,!0)||H,stroke:Fe.color||Z,"stroke-width":Fe.visible?Fe.width:0,r:Ye/2+(Fe.visible&&0!==Ye&&~~(Fe.width/2)||0)}},_createPointStyles:function(y){var H=(0,O.Dz)(y.color,!0)||this._options.mainSeriesColor,Z=this._options.containerBackgroundColor,Oe=this._parsePointStyle(y,H,H);return Oe.visibility=y.visible?"visible":"hidden",{labelColor:H,normal:Oe,hover:this._parsePointStyle(y.hoverStyle,Z,H,y.size),selection:this._parsePointStyle(y.selectionStyle,Z,H,y.size)}},_checkData:function(y,H,Z){return(Z=Z||{value:this.getValueFields()[0]}).argument=this.getArgumentField(),function uu(y,H,Z){var Oe=!0;for(var Fe in H){var Ye="argument"===Fe;if(Ye||"size"===Fe?!(0,R.O9)(y[Fe]):void 0===y[Fe]){var bt=H[Fe];Ye||(Z[bt]=(Z[bt]||0)+1),Oe=!1}}return Oe}(y,Z,H||{})&&y.value==y.value},getArgumentRangeInitialValue(){var H,Z,y=this.getPoints();if(this.useAggregation()&&y.length)return{min:null===(H=y[0].aggregationInfo)||void 0===H?void 0:H.intervalStart,max:null===(Z=y[y.length-1].aggregationInfo)||void 0===Z?void 0:Z.intervalEnd}},getValueRangeInitialValue:function(){},_getRangeData:function(){return ki.A.getRangeData(this)},_getPointDataSelector:function(){var Fe,Ye,y=this.getValueFields()[0],H=this.getArgumentField(),Z=this.getTagField(),Oe=this.areErrorBarsVisible();if(Oe){var bt=this._options.valueErrorBar;Fe=bt.lowValueField||ss,Ye=bt.highValueField||Go}return $t=>{var _i={value:this._processEmptyValue($t[y]),argument:$t[H],tag:$t[Z],data:$t};return Oe&&(_i.lowError=$t[Fe],_i.highError=$t[Ye]),_i}},_errorBarsEnabled:function(){return"discrete"!==this.valueAxisType&&"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType},_drawPoint:function(y){var H=y.point;H.isInVisibleArea()?(H.clearVisibility(),H.draw(this._renderer,y.groups,y.hasAnimation,y.firstDrawing),this._drawnPoints.push(H)):H.setInvisibility()},_animateComplete:function(){var y={duration:this._defaultDuration};this._labelsGroup&&this._labelsGroup.animate({opacity:1},y),this._errorBarGroup&&this._errorBarGroup.animate({opacity:this._options.valueErrorBar.opacity||1},y)},_animate:function(){var y=this,H=y._drawnPoints.length-1;(0,E.__)(y._drawnPoints||[],function(Z,Oe){Oe.animate(Z===H?function(){y._animateComplete()}:void 0,{translateX:Oe.x,translateY:Oe.y})})},_getIntervalCenter(y,H){var Z=this.getArgumentAxis(),Oe=Z.getOptions();return Z.aggregatedPointBetweenTicks()?y:"discrete"!==Oe.type?Z.getVisualRangeCenter({minVisible:y,maxVisible:H},!0):y},_defaultAggregator:"avg",_aggregators:{avg(y,H){var{data:Z,intervalStart:Oe,intervalEnd:Fe}=y;if(Z.length){var Ye=H.getValueFields()[0],bt=Z.reduce(($t,_i)=>{var Ii=_i[Ye];return(0,R.O9)(Ii)?($t[0]+=Ii,$t[1]++):null===Ii&&$t[2]++,$t},[0,0,0]);return function Dh(y,H,Z){var Oe=Z.getOptions().valueErrorBar,Fe=Z.getValueFields()[0],Ye=Oe.lowValueField||ss,bt=Oe.highValueField||Go;if(Z.areErrorBarsVisible()&&void 0===Oe.type){var $t=H.reduce(function(_i,Ii){return(0,R.O9)(Ii[Ye])&&(_i[0]+=Ii[Fe]-Ii[Ye],_i[1]++),(0,R.O9)(Ii[bt])&&(_i[2]+=Ii[bt]-Ii[Fe],_i[3]++),_i},[0,0,0,0]);$t[1]&&(y[Ye]=y[Fe]-$t[0]/$t[1]),$t[2]&&(y[bt]=y[Fe]+$t[2]/$t[3])}return y}({[Ye]:bt[2]===Z.length?null:bt[0]/bt[1],[H.getArgumentField()]:H._getIntervalCenter(Oe,Fe)},Z,H)}},sum(y,H){var{intervalStart:Z,intervalEnd:Oe,data:Fe}=y;if(Fe.length){var Ye=H.getValueFields()[0],bt=Fe.reduce((_i,Ii)=>{var bn=Ii[Ye];return void 0!==bn&&(_i[0]+=bn),null===bn?_i[1]++:void 0===bn&&_i[2]++,_i},[0,0,0]),$t=bt[0];if(bt[1]===Fe.length&&($t=null),bt[2]!==Fe.length)return function ip(y,H,Z){var Oe=Z.getOptions().valueErrorBar,Fe=Oe.lowValueField||ss,Ye=Oe.highValueField||Go;return Z.areErrorBarsVisible()&&void 0===Oe.type&&(y[Fe]=0,y[Ye]=0,y=H.reduce(function(bt,$t){return bt[Fe]+=$t[Fe],bt[Ye]+=$t[Ye],bt},y)),y}({[Ye]:$t,[H.getArgumentField()]:H._getIntervalCenter(Z,Oe)},Fe,H)}},count(y,H){var{data:Z,intervalStart:Oe,intervalEnd:Fe}=y,Ye=H.getValueFields()[0];return{[H.getArgumentField()]:H._getIntervalCenter(Oe,Fe),[Ye]:Z.filter(bt=>void 0!==bt[Ye]).length}},min:Af((y,H)=>y<H),max:Af((y,H)=>y>H)},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var Oe,Fe,y=this._options,H=y.valueErrorBar,Z=[y.valueField||"val"];return H&&(Fe=H.highValueField,(0,R.Kg)(Oe=H.lowValueField)&&Z.push(Oe),(0,R.Kg)(Fe)&&Z.push(Fe)),Z},_calculateErrorBars:function(y){if(this.areErrorBarsVisible()){var bt,Ii,bn,Yn,Mr,Z=this._options.valueErrorBar,Oe=(0,O.NU)(Z.type),Fe=parseFloat(Z.value),Ye=this.getValueFields()[0],$t=Z.lowValueField||ss,_i=Z.highValueField||Go,ma=function(io,Ua){Ua.lowError=(bt=Ua.value)-Fe,Ua.highError=bt+Fe};switch(Oe){case hc:Mr=ma;break;case sd:Mr=function(io,Ua){var Wo=(bt=Ua.value)*Fe/100;Ua.lowError=bt-Wo,Ua.highError=bt+Wo};break;case"undefined":Mr=function(io,Ua){Ua.lowError=Ua.data[$t],Ua.highError=Ua.data[_i]};break;default:switch(bn=(Ii=(0,O.Tj)(y,function(io){return(0,R.O9)(io.data[Ye])?io.data[Ye]:null})).length,Fe=Fe||1,Oe){case Xs:Fe=df(Ii,Bm(Ii)/bn)*Fe,Mr=ma;break;case wl:Yn=Bm(Ii)/bn,Fe=yr(df(Ii,Yn))*Fe,Mr=function(io,Ua){Ua.lowError=Yn-Fe,Ua.highError=Yn+Fe};break;case jd:Fe=yr(df(Ii,Bm(Ii)/bn)/bn)*Fe,Mr=ma}}Mr&&(0,E.__)(y,Mr)}},_patchMarginOptions:function(y){var H=this._getCreatingPointOptions(),Z=H.styles,Oe=[Z.normal,Z.hover,Z.selection].reduce(function(Fe,Ye){return $r(Fe,2*Ye.r+Ye["stroke-width"])},0);return y.size=H.visible?Oe:0,y.sizePointNormalState=H.visible?2*Z.normal.r+Z.normal["stroke-width"]:2,y},usePointsToDefineAutoHiding:()=>!0};ld=(0,o.X)({},Ap,{drawTrackers:function(){var H,Z,y=this,Oe=y._segments||[],Fe=y._options.rotated;y.isVisible()&&(Oe.length&&(H=y._trackers=y._trackers||[],Z=y._trackersGroup=(y._trackersGroup||y._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray",class:"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(y._group),(0,E.__)(Oe,function(Ye,bt){H[Ye]?y._updateTrackerElement(bt,H[Ye]):H[Ye]=y._drawTrackerElement(bt).data({"chart-data-series":y}).append(Z)})),y._trackersTranslator=y.groupPointsByCoords(Fe))},_checkAxisVisibleAreaCoord(y,H){var Oe=(y?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();return(0,R.O9)(H)&&Oe[0]<=H&&Oe[1]>=H},checkSeriesViewportCoord(y,H){return this.getPoints().length&&this.isVisible()},getSeriesPairCoord(y,H){for(var Z=null,Oe=!H&&!this._options.rotated||H&&this._options.rotated,Fe=Oe?"vy":"vx",Ye=Oe?"vx":"vy",bt=this.getVisiblePoints(),$t=0;$t<bt.length;$t++){var _i=bt[$t],Ii=_i[Fe]===y?_i[Ye]:void 0;if(this._checkAxisVisibleAreaCoord(!H,Ii)){Z=Ii;break}}return Z},_getNearestPoints:(y,H)=>[y,H],_getBezierPoints:()=>[],_getNearestPointsByCoord(y,H){var Z=this,Oe=Z.getOptions().rotated,Ye=!H&&!Oe||H&&Oe?"vy":"vx",bt=Z.getPoints(),$t=Z._getBezierPoints(),_i=[];return bt.length>1?bt.forEach((Ii,bn)=>{var Yn=bt[bn+1];Yn&&(Ii[Ye]<=y&&Yn[Ye]>=y||Ii[Ye]>=y&&Yn[Ye]<=y)&&_i.push(Z._getNearestPoints(Ii,Yn,$t))}):_i.push([bt[0],bt[0]]),_i},getNeighborPoint:function(y,H){var bt,Z=this._options.rotated?H:y,Oe=Z,Fe=this._trackersTranslator,Ye=null,$t=this._options.rotated?y:H,_i=this._options.rotated?"vx":"vy";if(this.isVisible()&&Fe){Ye=Fe[Z];do{Ye=Fe[Oe]||Fe[Z],Z--,Oe++}while((Z>=0||Oe<Fe.length)&&!Ye);Array.isArray(Ye)&&(bt=Xn(Ye[0][_i]-$t),(0,E.__)(Ye,function(Ii,bn){var Yn=Xn(bn[_i]-$t);bt>=Yn&&(bt=Yn,Ye=bn)}))}return Ye},_applyVisibleArea:function(){var y=this._options.rotated,H=(y?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),Z=(y?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();this._visibleArea={minX:H[0],maxX:H[1],minY:Z[0],maxY:Z[1]}},getPointCenterByArg(y){var H=this.getPointsByArg(y)[0];return H?H.getCenterCoord():void 0}}),nm=(0,o.X)({},Ap,{drawTrackers:function(){ld.drawTrackers.call(this);var H,y=this._trackersTranslator;this.isVisible()&&((0,E.__)(y,function(Z,Oe){if(Oe)return H=Z,!1}),y[H+360]=y[H])},getNeighborPoint:function(y,H){var Z=(0,O.iN)(this.getValueAxis().getCenter(),y,H);return ld.getNeighborPoint.call(this,Z.phi,Z.r)},_applyVisibleArea:function(){var y=this.getValueAxis().getCanvas();this._visibleArea={minX:y.left,maxX:y.width-y.right,minY:y.top,maxY:y.height-y.bottom}},getSeriesPairCoord(y,H){for(var Z=null,Oe=H?"argument":"radius",Fe=this.getVisiblePoints(),Ye=0;Ye<Fe.length;Ye++){var bt=Fe[Ye],$t=(0,R.O9)(bt[Oe])&&(0,R.O9)(y[Oe])&&bt[Oe].valueOf()===y[Oe].valueOf()?{x:bt.x,y:bt.y}:void 0;if((0,R.O9)($t)){Z=$t;break}}return Z}});var rm=D(22209),wu="discrete",{round:oh,sqrt:zl,pow:hu,min:_p,max:Su,abs:Nu}=Math,Sl={},Ip={};function If(y,H,Z,Oe){var Fe=(0,on.o8)(y);return Fe.x=H,Fe.y=Z,Fe.angle=Oe,Fe}function vp(y,H,Z,Oe,Fe){var Ye=y.angle+Fe,bt=(0,O.lD)(Ye);return If(H,Z.x+(y.radius+Oe*Fe)*bt.cos,Z.y-(y.radius+Oe*Fe)*bt.sin,Ye)}var Eh={autoHidePointMarkersEnabled:()=>!0,_applyGroupSettings:function(y,H,Z){H=(0,o.X)(H,y),this._applyElementsClipRect(H),Z.attr(H)},_setGroupsSettings:function(y){var H=this._styles.normal;this._applyGroupSettings(H.elements,{class:"dxc-elements"},this._elementsGroup),this._bordersGroup&&this._applyGroupSettings(H.border,{class:"dxc-borders"},this._bordersGroup),ld._setGroupsSettings.call(this,y),y&&this._markersGroup&&this._markersGroup.attr({opacity:.001})},_createGroups:function(){this._createGroup("_elementsGroup",this,this._group),this._areBordersVisible()&&this._createGroup("_bordersGroup",this,this._group),ld._createGroups.call(this)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(y){return{line:(0,O.Tj)(y.line||[],function(H){return H.getDefaultCoords()})}},_prepareSegment:function(y){return{line:y}},_parseLineOptions:function(y,H){return{stroke:(0,O.Dz)(y.color,!0)||H,"stroke-width":y.width,dashStyle:y.dashStyle||"solid"}},_parseStyle:function(y,H){return{elements:this._parseLineOptions(y,H)}},_applyStyle:function(y){this._elementsGroup&&this._elementsGroup.attr(y.elements),(0,E.__)(this._graphics||[],function(H,Z){Z.line&&Z.line.attr({"stroke-width":y.elements["stroke-width"]}).sharp()})},_drawElement:function(y,H){return{line:this._createMainElement(y.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(H)}},_removeElement:function(y){y.line.remove()},_updateElement:function(y,H,Z,Oe){var Fe={points:H.line},Ye=y.line;Z?Ye.animate(Fe,{},Oe):Ye.attr(Fe)},_animateComplete:function(){ld._animateComplete.call(this),this._markersGroup&&this._markersGroup.animate({opacity:1},{duration:this._defaultDuration})},_animate:function(){var y=this,H=y._graphics.length-1;(0,E.__)(y._graphics||[],function(Z,Oe){var Fe;Z===H&&(Fe=function(){y._animateComplete()}),y._updateElement(Oe,y._segments[Z],!0,Fe)})},_drawPoint:function(y){ld._drawPoint.call(this,{point:y.point,groups:y.groups})},_createMainElement:function(y,H){return this._renderer.path(y,"line").attr(H)},_sortPoints:function(y,H){return y.sort(H?function(Z,Oe){return Oe.y-Z.y}:function(Z,Oe){return Z.x-Oe.x})},_drawSegment:function(y,H,Z,Oe){var Ye=this._prepareSegment(y,this._options.rotated,Oe);this._segments.push(Ye),this._graphics[Z]?H||this._updateElement(this._graphics[Z],Ye):this._graphics[Z]=this._drawElement(H?this._getDefaultSegment(Ye):Ye,this._elementsGroup)},_getTrackerSettings:function(){var y=this._defaultTrackerWidth,H=this._styles.normal.elements["stroke-width"];return{"stroke-width":H>y?H:y,fill:"none"}},_getMainPointsFromSegment:function(y){return y.line},_drawTrackerElement:function(y){return this._createMainElement(this._getMainPointsFromSegment(y),this._getTrackerSettings(y))},_updateTrackerElement:function(y,H){var Z=this._getTrackerSettings(y);Z.points=this._getMainPointsFromSegment(y),H.attr(Z)},checkSeriesViewportCoord(y,H){if(!ld.checkSeriesViewportCoord.call(this))return!1;var Z=y.isArgumentAxis?this.getArgumentRange():this.getViewport(),Oe=y.getTranslator().translate(Z.categories?Z.categories[0]:Z.min),Fe=y.getTranslator().translate(Z.categories?Z.categories[Z.categories.length-1]:Z.max),Ye=this.getOptions().rotated,bt=y.getOptions().inverted;return y.isArgumentAxis&&(!Ye&&!bt||Ye&&bt)||!y.isArgumentAxis&&(Ye&&!bt||!Ye&&bt)?H>=Oe&&H<=Fe:H>=Fe&&H<=Oe}},Du=Sl.line=(0,o.X)({},ld,Eh,{getPointCenterByArg(y){var H=this.getArgumentAxis().getTranslator().translate(y);return{x:H,y:H}},getSeriesPairCoord(y,H){for(var Z=null,Oe=this._getNearestPointsByCoord(y,H),Fe=H&&!this._options.rotated||!H&&this._options.rotated,Ye=0;Ye<Oe.length;Ye++){var Ii,bt=Oe[Ye],$t=(bt[1].vy-bt[0].vy)/(bt[1].vx-bt[0].vx),_i=bt[0].vy-bt[0].vx*$t;if(this._checkAxisVisibleAreaCoord(!H,Ii=bt[1].vx-bt[0].vx==0?Fe?bt[0].vy:bt[0].vx:Fe?$t*y+_i:(y-_i)/$t)){Z=Ii;break}}return Z}});Sl.stepline=(0,o.X)({},Du,{_calculateStepLinePoints(y){var H=[],Z=this._options.rotated?"x":"y";return(0,E.__)(y,function(Oe,Fe){var Ye;if(Oe){var bt=H[H.length-1][Z];bt!==Fe[Z]&&((Ye=(0,on.o8)(Fe))[Z]=bt,H.push(Ye)),H.push(Fe)}else H.push(Fe)}),H},_prepareSegment:function(y){return Du._prepareSegment(this._calculateStepLinePoints(y))},getSeriesPairCoord(y,H){for(var Z,Oe=this._options.rotated,Fe=!H&&!Oe||H&&Oe,Ye=Fe?"vy":"vx",bt=Fe?"vx":"vy",$t=this._getNearestPointsByCoord(y,H),_i=0;_i<$t.length;_i++){var bn,Ii=$t[_i];if(this._checkAxisVisibleAreaCoord(!H,bn=H?y!==Ii[1][Ye]?Ii[0][bt]:Ii[1][bt]:y===Ii[0][Ye]?Ii[0][bt]:Ii[1][bt])){Z=bn;break}}return Z}}),Sl.spline=(0,o.X)({},Du,{_calculateBezierPoints:function(y,H){var Z=[],Oe=y,Fe=function(Ye,bt,$t){return Ye>bt&&$t>Ye||Ye<bt&&$t<Ye?Ye:$t};return 1!==Oe.length?Oe.forEach(function(Ye,bt){var $t,_i,Ii,bn,ma,io,Ua,Wo,Fl,_c,fu,Js,Yn=Oe[bt-1],Mr=Oe[bt+1];if(bt&&bt!==Oe.length-1){var Bl=Ye.x,Tc=Ye.y;if(ma=Yn.x,io=Mr.x,Ua=Yn.y,Wo=Mr.y,!H&&(Tc<=Yn.y&&Tc<=Mr.y||Tc>=Yn.y&&Tc>=Mr.y)||H&&(Bl<=Yn.x&&Bl<=Mr.x||Bl>=Yn.x&&Bl>=Mr.x))H?(Ii=$t=Bl,bn=(Tc+Mr.y)/2,_i=(Tc+Yn.y)/2):(bn=_i=Tc,Ii=(Bl+Mr.x)/2,$t=(Bl+Yn.x)/2);else{if(Fl=Wo-Ua,_c=ma-io,fu=Ua*io-ma*Wo,H){if(!Fl)return void Z.push(Ye,Ye,Ye);ma-=Js=-1*(_c*Tc+fu)/Fl-Bl,io-=Js}else{if(!_c)return void Z.push(Ye,Ye,Ye);Ua-=Js=-1*(Fl*Bl+fu)/_c-Tc,Wo-=Js}Ii=(Bl+.5*io)/1.5,bn=(Tc+.5*Wo)/1.5,$t=(Bl+.5*ma)/1.5,_i=(Tc+.5*Ua)/1.5}H?($t=Fe(Yn.x,Bl,$t),Ii=Fe(Mr.x,Bl,Ii)):(_i=Fe(Yn.y,Tc,_i),bn=Fe(Mr.y,Tc,bn));var Ld=If(Ye,$t,_i),ch=If(Ye,Ii,bn);Z.push(Ld,Ye,ch)}else Z.push(Ye,Ye)}):Z.push(Oe[0]),Z},_prepareSegment:function(y,H){return Du._prepareSegment(this._calculateBezierPoints(y,H))},_createMainElement:function(y,H){return this._renderer.path(y,"bezier").attr(H)},getSeriesPairCoord(y,H){for(var Z=null,Oe=!H&&!this._options.rotated||H&&this._options.rotated,Fe=Oe?"vy":"vx",Ye=Oe?"y":"x",bt=Oe?"vx":"vy",$t=Oe?"x":"y",Ii=(H?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),bn=this._getNearestPointsByCoord(y,H),Yn=function(){var ma=bn[Mr];if(1===ma.length)Ii[0]<=ma[0][bt]&&Ii[1]>=ma[0][bt]&&(Z=ma[0][bt]);else{var io=function kp(y,H,Z,Oe,Fe){return(0,rm.cB)(Fe-3*Oe+3*Z-H,3*Oe-6*Z+3*H,3*Z-3*H,H-y)}(y,ma[0][Fe],ma[1][Ye],ma[2][Ye],ma[3][Fe]);io.forEach(Ua=>{if(Ua>=0&&Ua<=1){var Wo=Math.pow(1-Ua,3)*ma[0][bt]+3*Math.pow(1-Ua,2)*Ua*ma[1][$t]+3*(1-Ua)*Ua*Ua*ma[2][$t]+Ua*Ua*Ua*ma[3][bt];Ii[0]<=Wo&&Ii[1]>=Wo&&(Z=Wo)}})}if(null!==Z)return 1},Mr=0;Mr<bn.length&&!Yn();Mr++);return Z},_getNearestPoints(y,H,Z){var Oe=Z.indexOf(y);return[y,Z[Oe+1],Z[Oe+2],H]},_getBezierPoints(){return this._segments.length>0?this._segments.reduce((y,H)=>y.concat(H.line),[]):[]}}),Ip.line=(0,o.X)({},nm,Eh,{_sortPoints:function(y){return y},_prepareSegment:function(y,H,Z){var Ye,Oe=[],Fe=this.getValueAxis().getCenter();if(Z&&this._closeSegment(y),this.argumentAxisType===wu||this.valueAxisType===wu)return Du._prepareSegment.call(this,y);for(Ye=1;Ye<y.length;Ye++)Oe=Oe.concat(this._getTangentPoints(y[Ye],y[Ye-1],Fe,Ye===y.length-1));return Oe.length||(Oe=y),{line:Oe}},_getRemainingAngle:function(y){var H=(0,O.n0)(y);return y>=0?360-H:-H},_closeSegment(y){var H=this._segments.length?this._segments[0].line[0]:y[0],Z=If(H,H.x,H.y,H.angle);(Z=this._modifyReflectedPoint(Z,y.at(-1)))&&y.push(Z)},_modifyReflectedPoint(y,H){if(H.angle!==y.angle)return y.angle=(0,O.n0)(oh(H.angle))===(0,O.n0)(oh(y.angle))?H.angle:H.angle+this._getRemainingAngle(H.angle-y.angle),y},_getTangentPoints:function(y,H,Z,Oe){var $t,Fe=[],Ye=Math.round(H.angle-y.angle),bt=(H.radius-y.radius)/Ye;if(0===Ye)Fe=[H,y];else if(Ye>0)for($t=Oe?Ye:Ye-1;$t>=0;$t--)Fe.push(vp(y,H,Z,bt,$t));else{var Ii=Oe?Ye:Ye+1;for($t=0;$t>=Ii;$t--)Fe.push(vp(y,H,Z,bt,Ye-$t))}return Fe},getSeriesPairCoord(y,H){var $t,Z=this.getArgumentAxis(),Oe=H?"angle":"radius",Fe=y[Oe],Ye=Z.getCenter(),bt=(__,v_,xv)=>{var Xv,G_,{x:jg,y:Kv}=xv;return zl(hu((Xv={x:jg,y:Kv}).x-(G_=Ye).x,2)+hu(Xv.y-G_.y,2))<=Z.getRadius()&&_p(__.x,v_.x)<=jg&&Su(__.x,v_.x)>=jg&&_p(__.y,v_.y)<=Kv&&Su(__.y,v_.y)>=Kv},_i=this.getNeighborPoints(Fe,Oe);if(1===_i.length)$t=_i[0];else if(_i.length>1){var Yn,Mr,Ii=_i[0],bn=_i[1];if(this.argumentAxisType!==wu&&this.valueAxisType!==wu)H?(Yn=(Ii.radius-bn.radius)/(Ii.angle-bn.angle),Mr=Fe-bn.angle):Mr=(Fe-bn.radius)/(Yn=(Ii.radius-bn.radius)/(Ii.angle-bn.angle)),$t=vp(bn,Ii,Ye,Yn,Mr);else if(H){var ma=(0,O.lD)(-Fe),io=(bn.y-Ii.y)/(bn.x-Ii.x),Ua=Ii.y-Ii.x*io,Wo=ma.sin/ma.cos,_c=(Ye.y-Wo*Ye.x-Ua)/(io-Wo),fu=io*_c+Ua;if(bt(Ii,bn,{x:_c,y:fu})){var $u=Nu((0,rm.BU)((360+Fe)/90)%4);(0===$u&&_c>=Ye.x&&fu<=Ye.y||1===$u&&_c<=Ye.x&&fu<=Ye.y||2===$u&&_c<=Ye.x&&fu>=Ye.y||3===$u&&_c>=Ye.x&&fu>=Ye.y)&&($t={x:_c,y:fu})}}else{var cd=(bn.y-Ii.y)/(bn.x-Ii.x),Js=Ii.y-Ii.x*cd,Bl=1+cd*cd,Tc=-2*Ye.x+2*cd*Js-2*cd*Ye.y,Ld=Tc*Tc-4*Bl*(-hu(Fe,2)+hu(Js-Ye.y,2)+hu(Ye.x,2));if(Ld>=0){var ch=(-Tc-zl(Ld))/(2*Bl),$v=(-Tc+zl(Ld))/(2*Bl),U_=cd*ch+Js,g_=cd*$v+Js;$t=bt(Ii,bn,{x:ch,y:U_})?{x:ch,y:U_}:bt(Ii,bn,{x:$v,y:g_})?{x:$v,y:g_}:void 0}}}return $t},getNeighborPoints(y,H){var Z=this.getPoints(),Oe=[];if(this.getOptions().closed){var Fe=(Z=(0,o.X)(!0,[],Z))[Z.length-1],Ye=If(Z[0],Z[0].x,Z[0].y,Z[0].angle),bt=If(Fe,Fe.x,Fe.y,Fe.angle),$t=this._modifyReflectedPoint(Ye,Fe),_i=this._modifyReflectedPoint(bt,Z[0]);_i&&Z.unshift(_i),$t&&Z.push($t)}for(var Ii=1;Ii<Z.length&&(Z[Ii-1][H]===y?Oe.push(Z[Ii-1]):Z[Ii][H]===y?Oe.push(Z[Ii]):(Z[Ii][H]>y&&Z[Ii-1][H]<y||Z[Ii-1][H]>y&&Z[Ii][H]<y)&&(Oe.push(Z[Ii-1]),Oe.push(Z[Ii])),!(Oe.length>0));Ii++);return Oe}});var Vu=Sl.line,Rp=Ip.line,kf=o.X,Pp=Sl.spline._calculateBezierPoints,Lc={},Td={},sh={_createBorderElement:Vu._createMainElement,_createLegendState:function(y,H){return{fill:(0,O.Dz)(y.color)||H,opacity:y.opacity,hatching:y.hatching,filter:y.highlight}},_getColorId:function(y){var H;return null===(H=y.color)||void 0===H?void 0:H.fillId},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&!1!==this.showZero?0:ld.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(y){var H=Vu._getDefaultSegment(y);return H.area=H.line.concat(H.line.slice().reverse()),H},_updateElement:function(y,H,Z,Oe){var Fe={points:H.line},Ye={points:H.area},bt=y.line;Z?(bt&&bt.animate(Fe),y.area.animate(Ye,{},Oe)):(bt&&bt.attr(Fe),y.area.attr(Ye))},_removeElement:function(y){y.line&&y.line.remove(),y.area.remove()},_drawElement:function(y){return{line:this._bordersGroup&&this._createBorderElement(y.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(y.area).append(this._elementsGroup)}},_applyStyle:function(y){this._elementsGroup&&this._elementsGroup.smartAttr(y.elements),this._bordersGroup&&this._bordersGroup.attr(y.border),(this._graphics||[]).forEach(function(H){H.line&&H.line.attr({"stroke-width":y.border["stroke-width"]}).sharp()})},_parseStyle:function(y,H,Z){var Oe,Fe=y.border||{},Ye=Vu._parseLineOptions(Fe,Z);return Ye.stroke=Fe.visible&&Ye["stroke-width"]?Ye.stroke:"none",Ye["stroke-width"]=Ye["stroke-width"]||1,{border:Ye,elements:{stroke:"none",fill:(0,O.Dz)(y.color)||H,hatching:y.hatching,opacity:y.opacity,filter:null!==(Oe=y.highlight)&&void 0!==Oe?Oe:null}}},_areBordersVisible:function(){var y=this._options;return y.border.visible||y.hoverStyle.border.visible||y.selectionStyle.border.visible},_createMainElement:function(y,H){return this._renderer.path(y,"area").attr(H)},_getTrackerSettings:function(y){return{"stroke-width":y.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(y){return y.area}},Fc=Lc.area=kf({},Vu,sh,{_prepareSegment(y,H){var Z=this._processSinglePointsAreaSegment(y,H),Oe=function bp(y){return(0,O.Tj)(y,function(H){return H.getCoords()}).concat((0,O.Tj)(y.slice().reverse(),function(H){return H.getCoords(!0)}))}(Z),Fe=this.getArgumentAxis();if(Fe.getAxisPosition){var Ye=Fe.getAxisPosition(),bt=Fe.getOptions(),$t=(H?1:-1)*Math.round(bt.width/2);bt.visible&&Oe.forEach((_i,Ii)=>{if(_i){var bn=1===y.length?0:Ii<y.length?Ii:Oe.length-1-Ii;H&&_i.x===y[bn].defaultX&&_i.x===Ye-Fe.getAxisShift()&&(_i.x+=$t),!H&&_i.y===y[bn].defaultY&&_i.y===Ye-Fe.getAxisShift()&&(_i.y+=$t)}})}return{line:Z,area:Oe,singlePointSegment:Z!==y}},_processSinglePointsAreaSegment:function(y,H){if(y&&1===y.length){var Z=y[0],Oe=(0,on.o8)(Z);return Oe[H?"y":"x"]+=1,Oe.argument=null,[Z,Oe]}return y}});Td.area=kf({},Rp,sh,{_prepareSegment:function(y,H,Z){return Z&&Rp._closeSegment.call(this,y),Fc._prepareSegment.call(this,y)},_processSinglePointsAreaSegment:function(y){return Ip.line._prepareSegment.call(this,y).line}}),Lc.steparea=kf({},Fc,{_prepareSegment:function(y,H){var Z=Sl.stepline;return y=Fc._processSinglePointsAreaSegment(y,H),Fc._prepareSegment.call(this,Z._calculateStepLinePoints.call(this,y),H)},getSeriesPairCoord:Sl.stepline.getSeriesPairCoord}),Lc.splinearea=kf({},Fc,{_areaPointsToSplineAreaPoints:function(y){var H=y[y.length/2-1],Z=y[y.length/2];y.splice(y.length/2,0,{x:H.x,y:H.y},{x:Z.x,y:Z.y})},_prepareSegment:function(y,H){var Z=Fc._processSinglePointsAreaSegment(y,H),Oe=Fc._prepareSegment.call(this,Pp(Z,H));return this._areaPointsToSplineAreaPoints(Oe.area),Oe.singlePointSegment=Z!==y,Oe},_getDefaultSegment:function(y){var H=Fc._getDefaultSegment(y);return this._areaPointsToSplineAreaPoints(H.area),H},_createMainElement:function(y,H){return this._renderer.path(y,"bezierarea").attr(H)},_createBorderElement:Sl.spline._createMainElement,getSeriesPairCoord:Sl.spline.getSeriesPairCoord,_getNearestPoints:Sl.spline._getNearestPoints,_getBezierPoints:Sl.spline._getBezierPoints,obtainCubicBezierTCoef:Sl.spline.obtainCubicBezierTCoef});var yp=Lc.area,Eu=ld,am=nm,Rf=o.X,o_=E.__,Bc={},Mh={},_l={_createLegendState:function(y,H){return{fill:(0,O.Dz)(y.color)||H,hatching:y.hatching,filter:y.highlight}},_getColorId:yp._getColorId,_parsePointStyle:function(y,H,Z){var Oe=(0,O.Dz)(y.color)||H,Fe=Eu._parsePointStyle.call(this,y,Oe,Z);return Fe.fill=Oe,Fe.hatching=y.hatching,Fe.filter=y.highlight,Fe.dashStyle=y.border&&y.border.dashStyle||"solid",delete Fe.r,Fe},_applyMarkerClipRect:function(y){y["clip-path"]=null},_setGroupsSettings:function(y,H){var Oe={};Eu._setGroupsSettings.apply(this,arguments),y&&H?Oe=this._getAffineCoordOptions():y||(Oe={scaleX:1,scaleY:1,translateX:0,translateY:0}),this._markersGroup.attr(Oe)},_drawPoint:function(y){y.hasAnimation=y.hasAnimation&&!y.firstDrawing,y.firstDrawing=!1,Eu._drawPoint.call(this,y)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(y){var H,Z=(0,O.Dz)(y.color,!0)||this._getMainColor(),Oe=null===(H=y.color)||void 0===H?void 0:H.fillId,Fe=y.hoverStyle||{},Ye=y.selectionStyle||{};return Oe&&this._turnOffHatching(Fe,Ye),{labelColor:Z,normal:this._parsePointStyle(y,Z,Z),hover:this._parsePointStyle(Fe,Oe||Z,Z),selection:this._parsePointStyle(Ye,Oe||Z,Z)}},_updatePointsVisibility:function(){var y=this._options.visible;(0,E.__)(this._points,function(H,Z){Z._options.visible=y})},_getOptionsForPoint:function(){return this._options},_animate:function(y){var H=this;H._animatePoints(y,function(){H._animateComplete()},function(Z,Oe){var Fe=Z.length-1;o_(Z||[],function(Ye,bt){bt.animate(Ye===Fe?Oe:void 0,bt.getMarkerCoords())})})},getValueRangeInitialValue:yp.getValueRangeInitialValue,_patchMarginOptions:function(y){var H;return y.checkInterval=!this.useAggregation()||(null===(H=this.getArgumentAxis())||void 0===H?void 0:H.aggregatedPointBetweenTicks()),y},_defaultAggregator:"sum",_defineDrawingState(){},usePointsToDefineAutoHiding:()=>!1};Bc.bar=Rf({},Eu,_l,{_getAffineCoordOptions:function(){var y=this._options.rotated,Z={scaleX:y?.001:1,scaleY:y?1:.001};return Z["translate"+(y?"X":"Y")]=this.getValueAxis().getTranslator().translate("canvas_position_default"),Z},_animatePoints:function(y,H,Z){this._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,H),y||Z(this._drawnPoints,H)},checkSeriesViewportCoord(y,H){if(!Eu.checkSeriesViewportCoord.call(this))return!1;if(y.isArgumentAxis)return!0;var Z=y.getTranslator(),Oe=this.getViewport(),Fe=Z.translate(Oe.categories?Oe.categories[0]:Oe.min),Ye=Z.translate(Oe.categories?Oe.categories[Oe.categories.length-1]:Oe.max),bt=this.getOptions().rotated,$t=y.getOptions().inverted;return bt&&!$t||!bt&&$t?H>=Fe&&H<=Ye:H>=Ye&&H<=Fe},getSeriesPairCoord(y,H){for(var Z=null,{rotated:Oe}=this._options,Fe=!H&&!Oe||H&&Oe,Ye=Fe?"vy":"vx",bt=Fe?"vx":"vy",$t=this.getPoints(),_i=0;_i<$t.length;_i++){var bn,Ii=$t[_i];if(bn=H?Ii.getCenterCoord()[Ye[1]]===y?Ii[bt]:void 0:Ii[Ye]===y?Ii[bt]:void 0,this._checkAxisVisibleAreaCoord(!H,bn)){Z=bn;break}}return Z}}),Mh.bar=Rf({},am,_l,{_animatePoints:function(y,H,Z){Z(this._drawnPoints,H)},_setGroupsSettings:Eu._setGroupsSettings,_drawPoint:function(y,H,Z){Eu._drawPoint.call(this,y,H,Z)},_parsePointStyle:function(y){var H=_l._parsePointStyle.apply(this,arguments);return H.opacity=y.opacity,H},_createGroups:Eu._createGroups,_setMarkerGroupSettings:function(){var y=this._createPointStyles(this._getMarkerGroupOptions()).normal;y.class="dxc-markers",this._applyMarkerClipRect(y);var H=Rf({},y);delete H.opacity,this._markersGroup.attr(H)},getSeriesPairCoord(y,H){for(var Z=null,Oe=H?"argument":"radius",Fe=this.getVisiblePoints(),Ye=this.getArgumentAxis(),bt=Ye.getAngles()[0],$t=0;$t<Fe.length;$t++){var _i=Fe[$t],Ii=(0,R.O9)(_i[Oe])&&(0,R.O9)(y[Oe])&&_i[Oe].valueOf()===y[Oe].valueOf()?(0,O.Wb)(Ye.getCenter(),bt,-Ye.getTranslatedAngle(_i.angle),_i.radius):void 0;if((0,R.O9)(Ii)){Z=Ii;break}}return Z},_createLegendState:yp._createLegendState});var _d=o.X,pc=Lc.area,Oh={},Mu={areErrorBarsVisible:j.lQ,_createErrorBarGroup:j.lQ,_checkData:function(y,H){var Z=this.getValueFields();return ld._checkData.call(this,y,H,{minValue:Z[0],value:Z[1]})&&y.minValue==y.minValue},getValueRangeInitialValue:ld.getValueRangeInitialValue,_getPointDataSelector:function(y){var H=this.getValueFields(),Z=H[0],Oe=H[1],Fe=this.getTagField(),Ye=this.getArgumentField();return bt=>({tag:bt[Fe],minValue:this._processEmptyValue(bt[Z]),value:this._processEmptyValue(bt[Oe]),argument:bt[Ye],data:bt})},_defaultAggregator:"range",_aggregators:{range(y,H){var{intervalStart:Z,intervalEnd:Oe,data:Fe}=y;if(Fe.length){var Ye=H.getValueFields(),bt=Ye[0],$t=Ye[1],_i=Fe.reduce((Ii,bn)=>{var Yn=bn[bt],Mr=bn[$t];return!(0,R.O9)(Yn)||!(0,R.O9)(Mr)||(Ii[bt]=Math.min(Ii[bt],Math.min(Yn,Mr)),Ii[$t]=Math.max(Ii[$t],Math.max(Yn,Mr))),Ii},{[bt]:1/0,[$t]:-1/0,[H.getArgumentField()]:H._getIntervalCenter(Z,Oe)});if(!isFinite(_i[bt])||!isFinite(_i[$t])){if(Fe.filter(Ii=>null===Ii[bt]&&null===Ii[$t]).length!==Fe.length)return;_i[bt]=_i[$t]=null}return _i}}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]},getSeriesPairCoord(y,H){for(var Z=null,{rotated:Oe}=this._options,Fe=!H&&!Oe||H&&Oe,Ye=Fe?"vy":"vx",bt=Oe?"minX":"minY",$t=Fe?"vx":"vy",_i=this.getPoints(),Ii=0;Ii<_i.length;Ii++){var bn=_i[Ii],Yn=void 0;if(H)Yn=bn.getCenterCoord()[Ye[1]]===y?bn[$t]:void 0;else{var Mr=[Math.min(bn[Ye],bn[bt]),Math.max(bn[Ye],bn[bt])];Yn=y>=Mr[0]&&y<=Mr[1]?bn[$t]:void 0}if(this._checkAxisVisibleAreaCoord(!H,Yn)){Z=Yn;break}}return Z}};Oh.rangebar=_d({},Bc.bar,Mu),Oh.rangearea=_d({},pc,{_drawPoint:function(y){var H=y.point;H.isInVisibleArea()?(H.clearVisibility(),H.draw(this._renderer,y.groups),this._drawnPoints.push(H),H.visibleTopMarker||H.hideMarker("top"),H.visibleBottomMarker||H.hideMarker("bottom")):H.setInvisibility()},_prepareSegment:function(y,H){var Z=this._processSinglePointsAreaSegment(y,H),Oe=(0,O.Tj)(Z,function(Fe){return Fe.getCoords(!0)});return{line:Z,bottomLine:Oe,area:(0,O.Tj)(Z,function(Fe){return Fe.getCoords()}).concat(Oe.slice().reverse()),singlePointSegment:Z!==y}},_getDefaultSegment:function(y){var H=pc._getDefaultSegment.call(this,y);return H.bottomLine=H.line,H},_removeElement:function(y){pc._removeElement.call(this,y),y.bottomLine&&y.bottomLine.remove()},_drawElement:function(y,H){var Z=pc._drawElement.call(this,y,H);return Z.bottomLine=this._bordersGroup&&this._createBorderElement(y.bottomLine,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),Z},_applyStyle:function(y){var H=this._elementsGroup,Z=this._bordersGroup;H&&H.smartAttr(y.elements),Z&&Z.attr(y.border),(this._graphics||[]).forEach(function(Oe){Oe.line&&Oe.line.attr({"stroke-width":y.border["stroke-width"]}),Oe.bottomLine&&Oe.bottomLine.attr({"stroke-width":y.border["stroke-width"]})})},_updateElement:function(y,H,Z,Oe){var Fe={points:H.bottomLine},Ye=y.bottomLine;pc._updateElement.apply(this,arguments),Ye&&(Z?Ye.animate(Fe):Ye.attr(Fe))}},Mu);var Nm=Lc.area,hg=Bc.bar,pg=Mh.bar,s_=E.__,Pf=j.lQ,mv={};mv.bubble=(0,o.X)({},ld,{_calculateErrorBars:Pf,_getMainColor:hg._getMainColor,_createPointStyles:hg._createPointStyles,_updatePointsVisibility:hg._updatePointsVisibility,_getOptionsForPoint:hg._getOptionsForPoint,_applyMarkerClipRect:Sl.line._applyElementsClipRect,_parsePointStyle:pg._parsePointStyle,_createLegendState:Nm._createLegendState,_getColorId:Nm._getColorId,_setMarkerGroupSettings:pg._setMarkerGroupSettings,areErrorBarsVisible:Pf,_createErrorBarGroup:Pf,_checkData:function(y,H){return ld._checkData.call(this,y,H,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(y,H){var Z=this.getSizeField(),Oe=ld._getPointDataSelector.call(this);return Fe=>{var Ye=Oe(Fe);return Ye.size=Fe[Z],Ye}},_aggregators:{avg(y,H){var{data:Z,intervalStart:Oe,intervalEnd:Fe}=y;if(Z.length){var Ye=H.getValueFields()[0],bt=H.getSizeField(),$t=Z.reduce((_i,Ii)=>(_i[0]+=Ii[Ye],_i[1]+=Ii[bt],_i[2]++,_i),[0,0,0]);return{[Ye]:$t[0]/$t[2],[bt]:$t[1]/$t[2],[H.getArgumentField()]:H._getIntervalCenter(Oe,Fe)}}}},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},_animate:function(){var y=this,H=y._drawnPoints.length-1,Z=y._labelsGroup,Oe=function(){Z&&Z.animate({opacity:1},{duration:y._defaultDuration})};s_(y._drawnPoints||[],function(Fe,Ye){Ye.animate(Fe===H?Oe:void 0,{r:Ye.bubbleSize,translateX:Ye.x,translateY:Ye.y})})},_patchMarginOptions:function(y){return y.processBubbleSize=!0,y}});var Ng=ld,om=Bc.bar,Hu=E.__,uf=j.lQ,sm=O.Tj,Lp=isFinite,Mc=Math.max,zu=(0,o.X)({},om,{_setGroupsSettings:function(){Ng._setGroupsSettings.apply(this,arguments),this._labelsGroup.attr({"pointer-events":null})},_createErrorBarGroup:uf,_drawPoint:function(y){var H=y.point,Z=this._legendCallback;Ng._drawPoint.call(this,y),!H.isVisible()&&H.setInvisibility(),H.isSelected()&&Z()},_getOldPoint:function(y,H,Z){var Oe=(this._points||[])[Z];return Oe&&(H[Oe.argument.valueOf()]=H[Oe.argument.valueOf()].filter(Fe=>Fe!==Oe)),Oe},adjustLabels:function(y){return(this._points||[]).reduce((H,Z)=>{if(Z._label.isVisible())return Z.setLabelTrackerData(),H=Z.applyWordWrap(y)||H,Z.updateLabelCoord(y),H},!1)},_applyElementsClipRect:uf,getColor:uf,areErrorBarsVisible:uf,drawLabelsWOPoints:function(){return"inside"!==this._options.label.position&&(this._labelsGroup.append(this._extGroups.labelsGroup),(this._points||[]).forEach(function(y){y.drawLabel()}),!0)},getPointsCount:function(){return this._data.filter(y=>this._checkData(y)).length},setMaxPointsCount:function(y){this._pointsCount=y},_getCreatingPointOptions:function(y,H){return this._getPointOptions(y,H)},_updateOptions:function(y){this.labelSpace=0,this.innerRadius="pie"===this.type?0:y.innerRadius},_checkData:function(y,H){var Z=om._checkData.call(this,y,H,{value:this.getValueFields()[0]});return this._options.paintNullPoints?Z:Z&&null!==y.value},_createGroups:Ng._createGroups,_setMarkerGroupSettings:function(){this._markersGroup.attr({class:"dxc-markers"})},_getMainColor(y,H){var Z=this.getPointsByArg(y.argument),Oe=H?Z.indexOf(H):Z.length;return this._options.mainSeriesColor(y.argument,Oe,this._pointsCount)},_getPointOptions:function(y){return this._parsePointOptions(this._preparePointOptions(),this._options.label,y)},_getRangeData:function(){return this._rangeData},_createPointStyles:function(y,H,Z){var Oe,Fe=(0,O.Dz)(y.color,!0)||this._getMainColor(H,Z),Ye=null===(Oe=y.color)||void 0===Oe?void 0:Oe.fillId,bt=y.hoverStyle||{},$t=y.selectionStyle||{};return Ye&&this._turnOffHatching(bt,$t),{labelColor:Fe,normal:this._parsePointStyle(y,Fe,Fe),hover:this._parsePointStyle(bt,Ye||Fe,Fe),selection:this._parsePointStyle($t,Ye||Fe,Fe),legendStyles:{normal:this._createLegendState(y,Fe),hover:this._createLegendState(bt,Ye||Fe),selection:this._createLegendState($t,Ye||Fe)}}},_getArrangeMinShownValue:function(y,H){var Z=this._options.minSegmentSize,Oe=0,Fe=0;return H=H||y.length,Hu(y,function(Ye,bt){bt.isVisible()&&(bt.normalInitialValue<Z*H/360?Oe+=Z:Fe+=bt.normalInitialValue)}),Oe<360?Z*Fe/(360-Oe):0},_applyArrangeCorrection:function(y,H,Z){var Oe=this._options,Fe="anticlockwise"!==Oe.segmentsDirection,Ye=Lp(Oe.startAngle)?(0,O.n0)(Oe.startAngle):0,bt=Oe.minSegmentSize,_i=0,Ii=0;0===Z&&(Z=y.filter(function(bn){return bn.isVisible()}).length,Ii=1),Hu(Fe?y:y.concat([]).reverse(),function(bn,Yn){var ma,Mr=Yn.isVisible()?Ii||Yn.normalInitialValue:0;bt&&Yn.isVisible()&&Mr<H&&(ma=H),Yn.correctValue(_i,Mr/Z,Ii+(ma||0)),Yn.shiftedAngle=Ye,_i+=ma||Mr}),this._rangeData={val:{min:0,max:_i}}},_removePoint:function(y){var H=this.getPointsByArg(y.argument);H.splice(H.indexOf(y),1),y.dispose()},arrangePoints:function(){for(var Oe,y=this,H=y._points||[],Z=y._options.minSegmentSize,Fe=!0,Ye=0,bt=H.length;Ye<bt&&Fe;)Fe=H[Ye].value<=0,Ye++;var $t=y._points=sm(H,function(bn){return null===bn.value||!Fe&&bn.value<0?(y._removePoint(bn),null):bn}),_i=$t.reduce(function(bn,Yn){return Mc(bn,Math.abs(Yn.initialValue))},0);$t.forEach(function(bn){bn.normalInitialValue=bn.initialValue/(0!==_i?_i:1)});var Ii=$t.reduce(function(bn,Yn){return bn+(Yn.isVisible()?Yn.normalInitialValue:0)},0);Z&&(Oe=this._getArrangeMinShownValue($t,Ii)),y._applyArrangeCorrection($t,Oe,Ii)},correctPosition:function(y,H){Hu(this._points,function(Z,Oe){Oe.correctPosition(y)}),this.setVisibleArea(H)},correctRadius:function(y){this._points.forEach(function(H){H.correctRadius(y)})},correctLabelRadius:function(y){this._points.forEach(function(H){H.correctLabelRadius(y)})},setVisibleArea:function(y){this._visibleArea={minX:y.left,maxX:y.width-y.right,minY:y.top,maxY:y.height-y.bottom}},_applyVisibleArea:uf,_animate:function(y){var H=this,Z=H._points,Oe=Z&&Z.length,Fe=function(){H._animateComplete()};Z.forEach(y?function(bt,$t){bt.animate($t===Oe-1?Fe:void 0,.7,(1-.7)*$t/(Oe-1))}:function(bt,$t){bt.animate($t===Oe-1?Fe:void 0)})},getVisiblePoints:function(){return sm(this._points,function(y){return y.isVisible()?y:null})},getPointsByKeys:function(y,H){var Z=this.getPointsByArg(y);return Z[H]&&[Z[H]]||[]}}),Ff=zu,Vm=zu,Th=Bc.bar,Bf=(0,o.X)({},ld,{_animate:j.lQ,_applyMarkerClipRect:function(y){y["clip-path"]=this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},_updatePointsVisibility:Th._updatePointsVisibility,_getOptionsForPoint:Th._getOptionsForPoint,_createErrorBarGroup:j.lQ,areErrorBarsVisible:j.lQ,_createGroups:ld._createGroups,_setMarkerGroupSettings:function(){var y=this._markersGroup,H=this._createPointStyles(this._getMarkerGroupOptions()),Z=(0,o.X)(H.normal,{class:"default-markers"}),Oe=(0,o.X)(H.positive.normal,{class:"default-positive-markers"}),Fe=(0,o.X)(H.reduction.normal,{class:"reduction-markers"}),Ye=(0,o.X)(H.reductionPositive.normal,{class:"reduction-positive-markers"}),bt={class:"dxc-markers"};this._applyMarkerClipRect(bt),y.attr(bt),this._createGroup("defaultMarkersGroup",y,y,Z),this._createGroup("reductionMarkersGroup",y,y,Fe),this._createGroup("defaultPositiveMarkersGroup",y,y,Oe),this._createGroup("reductionPositiveMarkersGroup",y,y,Ye)},_setGroupsSettings:function(){ld._setGroupsSettings.call(this,!1)},_getCreatingPointOptions:function(){var y,H=this._predefinedPointOptions;return H||(y=this._getPointOptions(),this._predefinedPointOptions=H=(0,o.X)(!0,{styles:{}},y),H.styles.normal=H.styles.positive.normal=H.styles.reduction.normal=H.styles.reductionPositive.normal={"stroke-width":y.styles&&y.styles.normal&&y.styles.normal["stroke-width"]}),H},_checkData:function(y,H){var Z=this.getValueFields();return ld._checkData.call(this,y,H,{openValue:Z[0],highValue:Z[1],lowValue:Z[2],closeValue:Z[3]})&&y.highValue==y.highValue&&y.lowValue==y.lowValue},_getPointDataSelector:function(y,H){var Oe,bn,Z=this,Fe=Z.getValueFields(),Ye=Z.getArgumentField(),bt=Fe[0],$t=Fe[1],_i=Fe[2],Ii=Fe[3];switch(Z.level=Z._options.reduction.level,(0,O.NU)(Z.level)){case"open":Oe=bt;break;case"high":Oe=$t;break;case"low":Oe=_i;break;default:Oe=Ii,Z.level="close"}return Yn=>{var Mr=Yn[Oe],ma=!1;return(0,R.O9)(Mr)&&((0,R.O9)(bn)&&(ma=Mr<bn),bn=Mr),{argument:Yn[Ye],highValue:this._processEmptyValue(Yn[$t]),lowValue:this._processEmptyValue(Yn[_i]),closeValue:this._processEmptyValue(Yn[Ii]),openValue:this._processEmptyValue(Yn[bt]),reductionValue:Mr,tag:Yn[Z.getTagField()],isReduction:ma,data:Yn}}},_parsePointStyle:function(y,H,Z){var Oe=(0,O.Dz)(y.color,!0);return{stroke:Oe||H,"stroke-width":y.width,fill:Oe||Z}},_getDefaultStyle:function(y){var H=(0,O.Dz)(y.color,!0)||this._options.mainSeriesColor;return{normal:this._parsePointStyle(y,H,H),hover:this._parsePointStyle(y.hoverStyle,H,H),selection:this._parsePointStyle(y.selectionStyle,H,H)}},_getReductionStyle:function(y){var H=y.reduction.color;return{normal:this._parsePointStyle({color:H,width:y.width,hatching:y.hatching},H,H),hover:this._parsePointStyle(y.hoverStyle,H,H),selection:this._parsePointStyle(y.selectionStyle,H,H)}},_createPointStyles:function(y){var H=this._options.innerColor,Z=this._getDefaultStyle(y),Oe=(0,o.X)(!0,{},Z),Fe=this._getReductionStyle(y),Ye=(0,o.X)(!0,{},Fe);return Oe.normal.fill=Oe.hover.fill=Oe.selection.fill=H,Ye.normal.fill=Ye.hover.fill=Ye.selection.fill=H,Z.positive=Oe,Z.reduction=Fe,Z.reductionPositive=Ye,Z.labelColor=this._options.mainSeriesColor,Z},_endUpdateData:function(){delete this._predefinedPointOptions},_defaultAggregator:"ohlc",_aggregators:{ohlc:(y,H)=>{var{intervalStart:Z,intervalEnd:Oe,data:Fe}=y;if(Fe.length){var Ye={},bt=H.getValueFields(),$t=bt[1],_i=bt[2];return Ye[$t]=-1/0,Ye[_i]=1/0,(Ye=Fe.reduce(function(Ii,bn){return null!==bn[$t]&&(Ii[$t]=Math.max(Ii[$t],bn[$t])),null!==bn[_i]&&(Ii[_i]=Math.min(Ii[_i],bn[_i])),Ii},Ye))[bt[0]]=Fe[0][bt[0]],Ye[bt[3]]=Fe[Fe.length-1][bt[3]],isFinite(Ye[$t])||(Ye[$t]=null),isFinite(Ye[_i])||(Ye[_i]=null),Ye[H.getArgumentField()]=H._getIntervalCenter(Z,Oe),Ye}}},getValueFields:function(){var y=this._options;return[y.openValueField||"open",y.highValueField||"high",y.lowValueField||"low",y.closeValueField||"close"]},getArgumentField:function(){return this._options.argumentField||"date"},_patchMarginOptions:function(y){var Z=this._getCreatingPointOptions().styles,Oe=[Z.normal,Z.hover,Z.selection].reduce(function(Fe,Ye){return Math.max(Fe,Ye["stroke-width"])},0);return y.size=10+Oe,y.sizePointNormalState=10,y},getSeriesPairCoord(y,H){for(var Z=null,Oe=this.getVisiblePoints(),Fe=0;Fe<Oe.length;Fe++){var Ye=Oe[Fe],bt=void 0;if(H)bt=Ye.vx===y?(Ye.openY+Ye.closeY)/2:void 0;else{var $t=[Math.min(Ye.lowY,Ye.highY),Math.max(Ye.lowY,Ye.highY)];bt=y>=$t[0]&&y<=$t[1]?Ye.vx:void 0}if(this._checkAxisVisibleAreaCoord(!H,bt)){Z=bt;break}}return Z},usePointsToDefineAutoHiding:()=>!1}),lm=(0,o.X)({},Bf,{_parsePointStyle:function(y,H,Z){var Oe=(0,O.Dz)(y.color,!0)||Z,Fe=Bf._parsePointStyle.call(this,y,H,Oe);return Fe.fill=Oe,Fe.hatching=y.hatching,Fe}}),dm=Lc.area,Hm=Bc.bar,Ih={_calculateErrorBars:j.lQ,_updateOptions:function(y){this._stackName="axis_"+(y.axis||"default")}},Uu={},xm={};Uu.stackedline=(0,o.X)({},Sl.line,Ih,{}),Uu.stackedspline=(0,o.X)({},Sl.spline,Ih,{}),Uu.fullstackedline=(0,o.X)({},Sl.line,Ih,{getValueRangeInitialValue:Lc.area.getValueRangeInitialValue}),Uu.fullstackedspline=(0,o.X)({},Sl.spline,Ih,{getValueRangeInitialValue:Lc.area.getValueRangeInitialValue});var P_=Uu.stackedbar=(0,o.X)({},Hm,Ih,{_updateOptions:function(y){Ih._updateOptions.call(this,y),this._stackName=this._stackName+"_stack_"+(y.stack||"default")}});function Fp(y,H,Z,Oe){return(y=(0,on.o8)(y)).value=H,y.minValue=Z,y.translate(),y.argument=y.argument+Oe,y}function Hg(y){for(var Z,Fe,H=0,Oe=[],Ye=y.length;H<Ye;)Fe=[Z=y[H]],Z.leftHole&&(Fe=[Fp(Z,Z.leftHole,Z.minLeftHole,"left"),Z]),Z.rightHole&&Fe.push(Fp(Z,Z.rightHole,Z.minRightHole,"right")),Oe.push(Fe),H++;return[].concat.apply([],Oe)}Uu.fullstackedbar=(0,o.X)({},Hm,Ih,{_updateOptions:P_._updateOptions}),Uu.stackedarea=(0,o.X)({},dm,Ih,{_prepareSegment:function(y,H){return dm._prepareSegment.call(this,Hg(y),H)},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup).toBackground()}}),Uu.stackedsplinearea=(0,o.X)({},Lc.splinearea,Ih,{_prepareSegment:function(y,H){var Oe,Z=this;if(y=Hg(y),this._prevSeries&&1!==y.length){for(var Fe=Sl.spline._calculateBezierPoints(y,H),Ye=(0,O.Tj)(y,function(bn){var Yn=bn.getCoords(!0);return Yn.argument=bn.argument,Yn}),bt=[],$t={},_i=0,Ii=Z._prevSeries._segments.length;_i<Ii;)bt=bt.concat(Z._prevSeries._segments[_i].line),_i++;(0,E.__)(bt,function(bn,Yn){if(null!==Yn.argument){var Mr=Yn.argument.valueOf();$t[Mr]?$t[Mr].push(Yn):$t[Mr]=[Yn]}}),Z._prevSeries._segmentByArg=$t,Ye=Sl.spline._calculateBezierPoints(Ye,H),(0,E.__)(Ye,function(bn,Yn){var ma,Mr=Yn.argument.valueOf();bn%3==0&&(ma=$t[Mr]||function zm(y,H){for(var Z;!Z&&y;)Z=y._segmentByArg&&y._segmentByArg[H],y=y._prevSeries;return Z}(Z._prevSeries,Mr),ma&&(Ye[bn-1]&&ma[0]&&(Ye[bn-1]=ma[0]),Ye[bn+1]&&(Ye[bn+1]=ma[2]||Yn)))}),Oe={line:Fe,area:Fe.concat(Ye.reverse())},Z._areaPointsToSplineAreaPoints(Oe.area)}else Oe=Lc.splinearea._prepareSegment.call(this,y,H);return Oe},_appendInGroup:Uu.stackedarea._appendInGroup}),Uu.fullstackedarea=(0,o.X)({},dm,Ih,{_prepareSegment:Uu.stackedarea._prepareSegment,_appendInGroup:Uu.stackedarea._appendInGroup}),Uu.fullstackedsplinearea=(0,o.X)({},Lc.splinearea,Ih,{_prepareSegment:Uu.stackedsplinearea._prepareSegment,_appendInGroup:Uu.stackedarea._appendInGroup}),xm.stackedbar=(0,o.X)({},Mh.bar,Ih,{_updateOptions:function(y){Ih._updateOptions.call(this,y),this._stackName=this._stackName+"_stack_"+(y.stack||"default")}});var np={},Gu=b.A.states,Bp="discrete",Um=Gu.selectedMark,mg=Gu.hoverMark,hf=Gu.hover,Wv=Gu.normal,rp=Gu.selection,Np=Gu.applySelected,pf=Gu.applyHover,zg=Gu.resetItem,Gm="none",gg="seriesSelectionChanged",L_="pointSelectionChanged",_g="seriesHoverChanged",F_="pointHoverChanged",Nf="allseriespoints",Wm="allargumentpoints",B_="pointHover",vg="clearPointHover",Vf="seriesSelect",Ou="pointSelect",Cm="pointDeselect";function jm(y,H,Z){y&&y.trigger(H,Z)}function Ym(y){return"includepoints"===(y=(0,O.NU)(y))||y===Nf}function d_(y,H){var Z=(0,o.X)({},y,H);return Z.border=(0,o.X)({},y&&y.border,H&&H.border),Z}function yg(y,H){this.fullState=0,this._extGroups=y,this._renderer=y.renderer,this._group=y.renderer.g().attr({class:"dxc-series"}),this._eventTrigger=y.eventTrigger,this._eventPipe=y.eventPipe,this._incidentOccurred=y.incidentOccurred,this._legendCallback=j.lQ,this.updateOptions(H,y)}function c_(y){return y.data}function u_(y,H){return H&&"logarithmic"===y&&!1===H.getOptions().allowNegatives?Z=>Z>0:()=>!0}np.mixins={chart:{},pie:{},polar:{}},np.mixins.chart.scatter=ld,np.mixins.polar.scatter=nm,(0,o.X)(np.mixins.pie,d),(0,o.X)(np.mixins.chart,Sl,Lc,Bc,Oh,mv,L,Uu),(0,o.X)(np.mixins.polar,Ip,Td,Mh,xm),yg.prototype={constructor:yg,_createLegendState:j.lQ,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(y){var H=y.mainSeriesColor,Z=this._getColorId(y),Oe=y.hoverStyle||{},Fe=y.selectionStyle||{};Z&&this._turnOffHatching(Oe,Fe),this._styles={labelColor:H,normal:this._parseStyle(y,H,H),hover:this._parseStyle(Oe,Z||H,H),selection:this._parseStyle(Fe,Z||H,H),legendStyles:{normal:this._createLegendState(y,Z||H),hover:this._createLegendState(Oe,Z||H),selection:this._createLegendState(Fe,Z||H)}}},setClippingParams(y,H,Z){var Oe=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._paneClipRectID=y,this._widePaneClipRectID=H,this._forceClipping=Z,this._clipLabels=Oe},applyClip:function(){this._group.attr({"clip-path":this._paneClipRectID})},resetClip:function(){this._group.attr({"clip-path":null})},getTagField:function(){return this._options.tagField||"tag"},getValueFields:j.lQ,getSizeField:j.lQ,getArgumentField:j.lQ,getPoints:function(){return this._points},getPointsInViewPort:function(){return ki.A.getPointsInViewPort(this)},_createPoint:function(y,H,Z){y.index=H;var Oe=this.pointsByArgument,Fe=this._getCreatingPointOptions(y),Ye=y.argument.valueOf(),bt=Z;bt?bt.update(y,Fe):(bt=new mt(this,y,Fe),this.isSelected()&&Ym(this.lastSelectionMode)&&bt.setView(rp));var $t=Oe[Ye];return $t?$t.push(bt):Oe[Ye]=[bt],bt.hasValue()&&this.customizePoint(bt,y),bt},getRangeData:function(){return this._visible?this._getRangeData():{arg:{},val:{}}},getArgumentRange:function(){return this._visible?ki.A.getArgumentRange(this):{arg:{},val:{}}},getViewport:function(){return ki.A.getViewport(this)},_deleteGroup:function(y){var H=this[y];H&&(H.dispose(),this[y]=null)},updateOptions(y,H){var Z=y.widgetType,Oe=this.type,Fe=y.type;if(this.type=Fe&&(0,O.NU)(Fe.toString()),!this._checkType(Z)||this._checkPolarBarType(Z,y))return this.dispose(),void(this.isUpdated=!1);Oe!==this.type?(this._firstDrawing=!0,this._resetType(Oe,Z),this._setType(this.type,Z)):this._defineDrawingState(),this._options=y,this._pointOptions=null,this.name=y.name,this.pane=y.pane,this.tag=y.tag,H&&(this._seriesModes=H.commonSeriesModes||this._seriesModes,this._valueAxis=H.valueAxis||this._valueAxis,this.axis=this._valueAxis&&this._valueAxis.name,this._argumentAxis=H.argumentAxis||this._argumentAxis),this._createStyles(y),this._stackName=null,this._updateOptions(y),this._visible=y.visible,this.isUpdated=!0,this.stack=y.stack,this.barOverlapGroup=y.barOverlapGroup,this._createGroups(),this._processEmptyValue=y.ignoreEmptyPoints?Ye=>null===Ye?void 0:Ye:Ye=>Ye},_defineDrawingState(){this._firstDrawing=!0},_disposePoints:function(y){(0,E.__)(y||[],function(H,Z){Z.dispose()})},updateDataType:function(y){return this.argumentType=y.argumentType,this.valueType=y.valueType,this.argumentAxisType=y.argumentAxisType,this.valueAxisType=y.valueAxisType,this.showZero=y.showZero,this._argumentChecker=u_(y.argumentAxisType,this.getArgumentAxis()),this._valueChecker=u_(y.valueAxisType,this.getValueAxis()),this},_argumentChecker:function(){return!0},_valueChecker:function(){return!0},getOptions:function(){return this._options},_getOldPoint:function(y,H,Z){var Oe=y.argument&&y.argument.valueOf(),Fe=(H[Oe]||[])[0];return Fe&&H[Oe].splice(0,1),Fe},updateData:function(y){var H=this._options,Z=H.nameField;(y=y||[]).length&&(this._canRenderCompleteHandle=!0);var Oe=this._getPointDataSelector(),Fe=0;this._data=y.reduce((Ye,bt,$t)=>{var _i=Oe(bt);return(0,R.O9)(_i.argument)?(!Z||bt[Z]===H.nameFieldValue)&&(_i.index=$t,Ye.push(_i)):Fe++,Ye},[]),Fe&&Fe===y.length&&this._incidentOccurred("W2002",[this.name,this.getArgumentField()]),this._endUpdateData()},_getData(){var y=this._data||[];if(this.useAggregation()){var H=this.argumentAxisType!==Bp?this.getArgumentRange():{},Z=this.getArgumentAxis().getAggregationInfo(this._useAllAggregatedPoints,H);y=this._resample(Z,y)}return y},useAggregation:function(){var y=this.getOptions().aggregation;return y&&y.enabled},autoHidePointMarkersEnabled:j.lQ,usePointsToDefineAutoHiding:j.lQ,createPoints(y){this._normalizeUsingAllAggregatedPoints(y),this._createPoints()},_normalizeUsingAllAggregatedPoints:function(y){this._useAllAggregatedPoints=this.useAggregation()&&(this.argumentAxisType===Bp||(this._data||[]).length>1&&!!y)},_createPoints:function(){var y=this,H=y.pointsByArgument||{},Z=y._getData();y.pointsByArgument={},y._calculateErrorBars(Z);var Oe={},Fe=Z.reduce((bt,$t)=>{if(y._checkData($t,Oe)){var _i=bt.length,Ii=y._getOldPoint($t,H,_i),bn=y._createPoint($t,_i,Ii);bt.push(bn)}return bt},[]);for(var Ye in Oe)Oe[Ye]===Z.length&&y._incidentOccurred("W2002",[y.name,Ye]);Object.keys(H).forEach(bt=>y._disposePoints(H[bt])),y._points=Fe},_removeOldSegments:function(){var y=this,H=y._segments.length;(0,E.__)(y._graphics.splice(H,y._graphics.length)||[],function(Z,Oe){y._removeElement(Oe)}),y._trackers&&(0,E.__)(y._trackers.splice(H,y._trackers.length)||[],function(Z,Oe){Oe.remove()})},_prepareSegmentsPosition(){var y=this._points||[],H=y[0]&&y[0].hasValue()&&this._options.closed,Z=y.reduce(function(Oe,Fe){var Ye=Oe.at(-1);return Fe.translated||Fe.setDefaultCoords(),Fe.hasValue()&&Fe.hasCoords()?Ye.push(Fe):!Fe.hasValue()&&Ye.length&&Oe.push([]),Oe},[[]]);this._drawSegments(Z,H,!1)},_drawElements(y,H){var Z=this,Oe=Z._points||[],Fe=Oe[0]&&Oe[0].hasValue()&&Z._options.closed,Ye={markers:Z._markersGroup,errorBars:Z._errorBarGroup};Z._drawnPoints=[],Z._graphics=Z._graphics||[],Z._segments=[];var bt=Oe.reduce(function($t,_i){var Ii=$t.at(-1);return _i.hasValue()&&_i.hasCoords()?(Z._drawPoint({point:_i,groups:Ye,hasAnimation:y,firstDrawing:H}),Ii.push(_i)):_i.hasValue()?_i.setInvisibility():Ii.length&&$t.push([]),$t},[[]]);Z._drawSegments(bt,Fe,y),Z._firstDrawing=!Oe.length,Z._removeOldSegments(),y&&Z._animate(H)},_drawSegments(y,H,Z){y.forEach((Oe,Fe)=>{Oe.length&&this._drawSegment(Oe,Z,Fe,H&&Fe===y.length-1)})},draw(y,H,Z){var Oe=this._firstDrawing;this._legendCallback=Z||this._legendCallback,this._visible?(this._appendInGroup(),this._isAllPointsTranslated||this.prepareCoordinatesForPoints(),this._setGroupsSettings(y,Oe),!Oe&&!this._resetApplyingAnimation&&this._prepareSegmentsPosition(),this._drawElements(y,Oe),H&&this.hideLabels(),this.isSelected()?this._changeStyle(this.lastSelectionMode,void 0,!0):this.isHovered()?this._changeStyle(this.lastHoverMode,void 0,!0):this._applyStyle(this._styles.normal),this._isAllPointsTranslated=!1,this._resetApplyingAnimation=!1):this._group.remove()},_translatePoints(){var y;(null!==(y=this._points)&&void 0!==y?y:[]).forEach(Z=>{Z.translate()})},prepareCoordinatesForPoints(){this._applyVisibleArea(),this._translatePoints(),this._isAllPointsTranslated=!0},_setLabelGroupSettings:function(y){var H={class:"dxc-labels","pointer-events":"none"};this._clipLabels&&this._applyElementsClipRect(H),this._applyClearingSettings(H),y&&(H.opacity=.001),this._labelsGroup.attr(H).append(this._extGroups.labelsGroup)},_checkType:function(y){return!!np.mixins[y][this.type]},_checkPolarBarType:function(y,H){return"polar"===y&&H.spiderWidget&&-1!==this.type.indexOf("bar")},_resetType:function(y,H){var Z;if(y)for(Z in np.mixins[H][y])delete this[Z]},_setType:function(y,H){var Z,Oe=np.mixins[H][y];for(Z in Oe)this[Z]=Oe[Z]},_setPointsView:function(y,H){this.getPoints().forEach(function(Z){H!==Z&&Z.setView(y)})},_resetPointsView:function(y,H){this.getPoints().forEach(function(Z){H!==Z&&Z.resetView(y)})},_resetNearestPoint:function(){this._nearestPoint&&null!==this._nearestPoint.series&&this._nearestPoint.resetView(hf),this._nearestPoint=null},_setSelectedState:function(y){this.lastSelectionMode=(0,O.NU)(y||this._options.selectionMode),this.fullState=this.fullState|Um,this._resetNearestPoint(),this._changeStyle(this.lastSelectionMode),this.lastSelectionMode!==Gm&&this.isHovered()&&Ym(this.lastHoverMode)&&this._resetPointsView(hf)},_releaseSelectedState:function(){this.fullState=this.fullState&~Um,this._changeStyle(this.lastSelectionMode,rp),this.lastSelectionMode!==Gm&&this.isHovered()&&Ym(this.lastHoverMode)&&this._setPointsView(hf)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},resetApplyingAnimation:function(y){this._resetApplyingAnimation=!0,y&&(this._firstDrawing=!0)},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&(0,O.NU)(this._options.hoverMode)!==Gm},_changeStyle:function(y,H,Z){var Oe=this.fullState,Fe=[Wv,hf,rp,rp];"none"===this.lastHoverMode&&(Oe&=~mg),"none"===this.lastSelectionMode&&(Oe&=~Um),Ym(y)&&!Z&&(H?this._resetPointsView(H):this._setPointsView(Fe[Oe])),this._legendCallback([zg,pf,Np,Np][Oe]),this._applyStyle(this._styles[Fe[Oe]])},updateHover:function(y,H){var Z=this._nearestPoint,Oe=this.isHovered()&&"nearestpoint"===this.lastHoverMode&&this.getNeighborPoint(y,H);Oe!==Z&&(!this.isSelected()||this.lastSelectionMode===Gm)&&(this._resetNearestPoint(),Oe&&(Oe.setView(hf),this._nearestPoint=Oe))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!(0,R.O9)(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function(y,H){var Fe,Ye,bt,$t,Ii,bn,Z=this._options,Oe=Z.customizePoint,_i=Z.customizeLabel;_i&&_i.call&&((Fe=(0,o.X)({seriesName:this.name},H)).series=this,bt=(Ii=(bt=_i.call(Fe,Fe))&&!(0,R.RI)(bt))?(0,o.X)(!0,{},Z.label,bt):null),Oe&&Oe.call&&((Fe=Fe||(0,o.X)({seriesName:this.name},H)).series=this,bn=($t=Oe.call(Fe,Fe))&&!(0,R.RI)($t)),(Ii||bn)&&((Ye=this._parsePointOptions(this._preparePointOptions($t),bt||Z.label,H,y)).styles.useLabelCustomOptions=Ii,Ye.styles.usePointCustomOptions=bn,y.updateOptions(Ye))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(y){this._visible=this._options.visible=y,this._updatePointsVisibility(),this.hidePointTooltip(),this._options.visibilityChanged(this)},_updatePointsVisibility:j.lQ,hideLabels:function(){(0,E.__)(this._points,function(y,H){H._label.draw(!1)})},_turnOffHatching(y,H){y.hatching&&(y.hatching.direction="none"),H.hatching&&(H.hatching.direction="none")},_parsePointOptions:function(y,H,Z,Oe){var Fe=this._options,Ye=this._createPointStyles(y,Z,Oe),bt=(0,o.X)({},y,{type:Fe.type,rotated:Fe.rotated,styles:Ye,widgetType:Fe.widgetType,visibilityChanged:Fe.visibilityChanged});return bt.label=function lh(y,H){var Z=y||{},Oe=(0,o.X)({},Z.font)||{},Fe=Z.border||{},Ye=Z.connector||{},bt={fill:Z.backgroundColor||H,"stroke-width":Fe.visible&&Fe.width||0,stroke:Fe.visible&&Fe.width?Fe.color:"none",dashStyle:Fe.dashStyle},$t={stroke:Ye.visible&&Ye.width?Ye.color||H:"none","stroke-width":Ye.visible&&Ye.width||0};return Oe.color="none"===Z.backgroundColor&&"#ffffff"===(0,O.NU)(Oe.color)&&"inside"!==Z.position?H:Oe.color,{alignment:Z.alignment,format:Z.format,argumentFormat:Z.argumentFormat,customizeText:(0,R.Tn)(Z.customizeText)?Z.customizeText:void 0,attributes:{font:Oe},visible:0!==Oe.size&&Z.visible,showForZeroValues:Z.showForZeroValues,horizontalOffset:Z.horizontalOffset,verticalOffset:Z.verticalOffset,radialOffset:Z.radialOffset,background:bt,position:Z.position,connector:$t,rotationAngle:Z.rotationAngle,wordWrap:Z.wordWrap,textOverflow:Z.textOverflow,cssClass:Z.cssClass,displayFormat:Z.displayFormat}}(H,Ye.labelColor),this.areErrorBarsVisible()&&(bt.errorBars=Fe.valueErrorBar),bt},_preparePointOptions:function(y){var H=this._getOptionsForPoint();return y?function gv(y,H){var Z=d_(y,H);return Z.image=(0,o.X)(!0,{},y.image,H.image),Z.selectionStyle=d_(y.selectionStyle,H.selectionStyle),Z.hoverStyle=d_(y.hoverStyle,H.hoverStyle),Z}(H,y):H},_getMarkerGroupOptions:function(){return(0,o.X)(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(y,H){var Z=this.getOptions().aggregation,Oe=(0,O.NU)(Z.method);return"custom"===Oe&&Z.calculate||(y&&!H?bt=>{var{data:$t}=bt;return $t[0]}:this._aggregators[Oe]||this._aggregators[this._defaultAggregator])},_resample(y,H){var{interval:Z,ticks:Oe,aggregateByCategory:Fe}=y,Ye=this,bt=Ye.argumentAxisType===Bp||Ye.valueAxisType===Bp,$t=0,_i=this._getPointDataSelector(),Ii=Ye.getOptions(),bn=(cd,Js,Bl)=>{if(Js){var Tc=Sm=>{var Ld=Sm&&_i(Sm,Ii);Ld&&Ye._checkData(Ld)&&(Ld.aggregationInfo=Bl,cd.push(Ld))};Array.isArray(Js)?Js.forEach(Tc):Tc(Js)}},Yn=this._getAggregationMethod(bt,Fe);if(bt){if(Fe){var Mr=this.getArgumentAxis().getTranslator().getBusinessRange().categories,ma=Mr.reduce((cd,Js)=>(cd[Js.valueOf()]=[],cd),{});return H.forEach(cd=>{ma[cd.argument.valueOf()].push(cd)}),Mr.reduce((cd,Js)=>(bn(cd,Yn({aggregationInterval:null,intervalStart:Js,intervalEnd:Js,data:ma[Js.valueOf()].map(c_)},Ye)),cd),[])}return H.reduce((cd,Js,Bl,Tc)=>{if(cd[1].push(Js),Bl===Tc.length-1||(Bl+1)%Z==0){var Ld={aggregationInterval:Z,data:cd[1].map(c_)};bn(cd[0],Yn(Ld,Ye)),cd[1]=[]}return cd},[[],[]])[0]}var io=[];if(1===Oe.length){var Ua={intervalStart:Oe[0],intervalEnd:Oe[0],aggregationInterval:null,data:H.map(c_)};bn(io,Yn(Ua,Ye),Ua)}else for(var Wo=1;Wo<Oe.length;Wo++){for(var Fl=Oe[Wo],_c=Oe[Wo-1],fu=[];H[$t]&&H[$t].argument<Fl;)H[$t].argument>=_c&&fu.push(H[$t]),$t++;var $u={intervalStart:_c,intervalEnd:Fl,aggregationInterval:Z,data:fu.map(c_)};bn(io,Yn($u,Ye),$u)}return Ye._endUpdateData(),io},canRenderCompleteHandle:function(){var y=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!y},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(y){return this._createAllAggregatedPoints(),(this._points||[])[y]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(y){y.isSelected()||(function bg(y,H){y.fullState|=Um,y.applyView(H)}(y,this._legendCallback),this._eventPipe({action:Ou,target:y}),this._eventTrigger(L_,{target:y}))},deselectPoint:function(y){y.isSelected()&&(function l_(y,H){y.fullState&=~Um,y.applyView(H)}(y,this._legendCallback),this._eventPipe({action:Cm,target:y}),this._eventTrigger(L_,{target:y}))},hover:function(y){var H=this._eventTrigger;this.isHovered()||(this.lastHoverMode=(0,O.NU)(y||this._options.hoverMode),this.fullState=this.fullState|mg,this._changeStyle(this.lastHoverMode,void 0,this.isSelected()&&this.lastSelectionMode!==Gm),H(_g,{target:this}))},clearHover:function(){var y=this._eventTrigger;this.isHovered()&&(this._resetNearestPoint(),this.fullState=this.fullState&~mg,this._changeStyle(this.lastHoverMode,hf,this.isSelected()&&this.lastSelectionMode!==Gm),y(_g,{target:this}))},hoverPoint:function(y){y.isHovered()||(y.clearHover(),function Ug(y,H){y.fullState|=mg,y.applyView(H)}(y,this._legendCallback),this._canChangeView()&&this._applyStyle(this._styles.hover),this._eventPipe({action:B_,target:y}),this._eventTrigger(F_,{target:y}))},clearPointHover:function(){var y=this;y.getPoints().some(function(H){return!!H.isHovered()&&(function N_(y,H){y.fullState&=~mg,y.applyView(H),y.releaseHoverState()}(H,y._legendCallback),y._canChangeView()&&y._applyStyle(y._styles.normal),y._eventPipe({action:vg,target:H}),y._eventTrigger(F_,{target:H}),!0)})},showPointTooltip:function(y){jm(this._extGroups.seriesGroup,"showpointtooltip",y)},hidePointTooltip:function(y){jm(this._extGroups.seriesGroup,"hidepointtooltip",y)},select:function(){this.isSelected()||(this._setSelectedState(this._options.selectionMode),this._eventPipe({action:Vf,target:this}),this._group.toForeground(),this._eventTrigger(gg,{target:this}))},clearSelection:function(){this.isSelected()&&(this._releaseSelectedState(),this._eventTrigger(gg,{target:this}))},getPointsByArg:function(y,H){var Z=y.valueOf(),Oe=this.pointsByArgument[Z];return!Oe&&!H&&this._createAllAggregatedPoints()&&(Oe=this.pointsByArgument[Z]),Oe||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints||(this.createPoints(!0),0))},getPointsByKeys:function(y){return this.getPointsByArg(y)},notify:function(y){var H=this,Z=y.action,Oe=H._seriesModes,Fe=y.target,Ye=Fe.getOptions(),bt=(0,O.NU)(Ye.hoverMode),$t=(0,O.NU)(Ye.selectionMode);Z===B_?H._hoverPointHandler(Fe,bt,y.notifyLegend):Z===vg?H._clearPointHoverHandler(Fe,bt,y.notifyLegend):Z===Vf?Fe!==H&&"single"===Oe.seriesSelectionMode&&H.clearSelection():Z===Ou?("single"===Oe.pointSelectionMode&&H.getPoints().some(function(_i){return!(_i===Fe||!_i.isSelected()||(H.deselectPoint(_i),0))}),H._selectPointHandler(Fe,$t)):Z===Cm&&H._deselectPointHandler(Fe,$t)},_selectPointHandler:function(y,H){H===Nf?y.series===this&&this._setPointsView(rp,y):H===Wm&&this.getPointsByKeys(y.argument,y.argumentIndex).forEach(function(Z){Z!==y&&Z.setView(rp)})},_deselectPointHandler:function(y,H){H===Nf?y.series===this&&this._resetPointsView(rp,y):H===Wm&&this.getPointsByKeys(y.argument,y.argumentIndex).forEach(function(Z){Z!==y&&Z.resetView(rp)})},_hoverPointHandler:function(y,H,Z){y.series!==this&&H===Wm?(this.getPointsByKeys(y.argument,y.argumentIndex).forEach(function(Oe){Oe.setView(hf)}),Z&&this._legendCallback(y)):H===Nf&&y.series===this&&this._setPointsView(hf,y)},_clearPointHoverHandler:function(y,H,Z){H===Wm?(y.series!==this&&this.getPointsByKeys(y.argument,y.argumentIndex).forEach(function(Oe){Oe.resetView(hf)}),Z&&this._legendCallback(y)):H===Nf&&y.series===this&&this._resetPointsView(hf,y)},_deletePoints:function(){this._disposePoints(this._points),this._points=this._drawnPoints=null},_deleteTrackers:function(){(0,E.__)(this._trackers||[],function(y,H){H.remove()}),this._trackersGroup&&this._trackersGroup.dispose(),this._trackers=this._trackersGroup=null},dispose:function(){this._deletePoints(),this._group.dispose(),this._labelsGroup&&this._labelsGroup.dispose(),this._errorBarGroup&&this._errorBarGroup.dispose(),this._deleteTrackers(),this._group=this._extGroups=this._markersGroup=this._elementsGroup=this._bordersGroup=this._labelsGroup=this._errorBarGroup=this._graphics=this._rangeData=this._renderer=this._styles=this._options=this._pointOptions=this._drawnPoints=this.pointsByArgument=this._segments=this._prevSeries=null},correctPosition:j.lQ,drawTrackers:j.lQ,getNeighborPoint:j.lQ,areErrorBarsVisible:j.lQ,_getColorId:j.lQ,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getBarOverlapGroup:function(){return this._options.barOverlapGroup},getPointByCoord:function(y,H){var Z=this.getNeighborPoint(y,H);return null!=Z&&Z.coordsIn(y,H)?Z:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup(){return this._markersGroup},getRenderer(){return this._renderer},removePointElements(){this._markersGroup&&((0,E.__)(this._points,(y,H)=>H.deleteMarker()),this._markersGroup.dispose(),this._markersGroup=null)},removeGraphicElements(){var y=this;y._elementsGroup&&(y._elementsGroup.dispose(),y._elementsGroup=null),(0,E.__)(y._graphics||[],(H,Z)=>{y._removeElement(Z)}),y._graphics=null},removeBordersGroup(){this._bordersGroup&&(this._bordersGroup.dispose(),this._bordersGroup=null)}};var Pe=D(23862),Ke=D(38365),xt=D(70370);const Ai=(0,D(6161).A)(f.A.ERROR_MESSAGES,{E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'The "{0}" data source field contains data of unsupported type',E2004:'The "{0}" data source field is inconsistent',E2005:'The value field "{0}" is absent in the data source or all its values are negative',E2006:"A cycle is detected in provided data",E2007:'The value field "{0}" is absent in the data source',E2008:'The value field "{0}" must be a string',E2009:'The value field "{0}" must be a positive numeric value',E2101:"Unknown series type: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'The "{0}" option is given an invalid value. Assign a function instead',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2202:"Invalid {0} scale value",E2203:"The range you are trying to set is invalid",W2002:"The {0} series cannot be drawn because the {1} data field is missing",W2003:"Tick interval is too small",W2101:'The "{0}" pane does not exist; the last pane is used by default',W2102:'A value axis with the "{0}" name was created automatically',W2103:"The chart title was hidden due to the container size",W2104:"The legend was hidden due to the container size",W2105:'The title of the "{0}" axis was hidden due to the container size',W2106:'The labels of the "{0}" axis were hidden due to the container size',W2107:"The export menu was hidden due to the container size",W2108:"The browser does not support exporting images to {0} format.",W2301:"Invalid value range"});var Hi=D(10348),Gi=D(17558),Zi=Ai.ERROR_MESSAGES;var hr=!(0,Qa.Vd)();function qr(){this.reset()}function Wr(y,H){return y!==H?(0,o.X)({},y,H):(0,o.X)({},y)}function Zn(y,H){return y!==H?y.concat(H):y.slice()}function nr(y){y._totalChangesOrder=y._optionChangesOrder.concat(y._layoutChangesOrder,y._customChangesOrder)}function da(y){var H=this.prototype,Z=y.code;H["_change_"+Z]=y.handler,y.isThemeDependent&&H._themeDependentChanges.push(Z),y.option&&(H._optionChangesMap[y.option]=Z),(y.isOptionChange?H._optionChangesOrder:H._customChangesOrder).push(Z),nr(H)}function ya(){var y=function H(){var Z,Fe,Oe=H._chain.length;for(Z=0;Z<Oe;++Z)Fe=H._chain[Z].apply(this,arguments);return Fe};return y._chain=[],y.add=function(H){y._chain.push(H)},y.copy=function(H){y._chain=H._chain.slice()},y}function xo(y){var H=this.prototype;H._plugins.push(y),y.fontFields&&H._fontFields.push.apply(H._fontFields,y.fontFields),y.members&&(0,o.X)(this.prototype,y.members),y.customize&&y.customize(this),y.extenders&&Object.keys(y.extenders).forEach(function(Z){!function Qr(y,H,Z){var Oe=y[H];Oe?Oe.add?(!1===Object.prototype.hasOwnProperty.call(y,H)&&(Oe=ya()).copy(y[H]),Oe.add(Z)):((Oe=ya()).add(y[H]),Oe.add(Z)):Oe=Z,y[H]=Oe}(H,Z,y.extenders[Z])},this)}qr.prototype={constructor:qr,add:function(y){var H,Z=y.length,Oe=this._flags;for(H=0;H<Z;++H)Oe[y[H]]=1},has:function(y){return this._flags[y]>0},count:function(){return Object.keys(this._flags).length},reset:function(){this._flags={}}};var to=hr?function(y){var H=y.inherit;y.inherit=function(){var Z=H.apply(this,arguments),Oe=Z.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach(function(Fe){Oe[Fe]={}}),Z.addPlugin=j.lQ,Z},y.addChange=j.lQ,y.addPlugin=j.lQ}:function(y){var H=y.inherit;y.inherit=function(){var Z=this.prototype,Oe=Z._plugins,Fe=Z._fontFields,Ye=Z._eventsMap,bt=Z._initialChanges,$t=Z._themeDependentChanges,_i=Z._optionChangesMap,Ii=Z._partialOptionChangesMap,bn=Z._partialOptionChangesPath,Yn=Z._optionChangesOrder,Mr=Z._layoutChangesOrder,ma=Z._customChangesOrder,io=H.apply(this,arguments);return(Z=io.prototype)._plugins=Zn(Oe,Z._plugins),Z._fontFields=Zn(Fe,Z._fontFields),Z._eventsMap=Wr(Ye,Z._eventsMap),Z._initialChanges=Zn(bt,Z._initialChanges),Z._themeDependentChanges=Zn($t,Z._themeDependentChanges),Z._optionChangesMap=Wr(_i,Z._optionChangesMap),Z._partialOptionChangesMap=Wr(Ii,Z._partialOptionChangesMap),Z._partialOptionChangesPath=Wr(bn,Z._partialOptionChangesPath),Z._optionChangesOrder=Zn(Yn,Z._optionChangesOrder),Z._layoutChangesOrder=Zn(Mr,Z._layoutChangesOrder),Z._customChangesOrder=Zn(ma,Z._customChangesOrder),nr(Z),io.addPlugin=xo,io},y.prototype._plugins=[],y.prototype._fontFields=[],y.addChange=da,y.addPlugin=xo},ao=Math.min,Ul=Math.max,Gl=Math.round,ca={left:0,center:1,right:2},Co={top:0,center:1,bottom:2},cl={horizontal:0,vertical:1},pu={};function dh(y,H,Z){var Oe=(0,O.NU)(y);return Oe in H?H[Oe]:Z}function Dl(y){var H=dh(y.side,cl,1),Z=[dh(y.horizontalAlignment,ca,1),dh(y.verticalAlignment,Co,0)];return{side:H,primary:Oc(Z[H]),secondary:Z[1-H],weak:y.weak,priority:y.priority||0,header:y.header,position:y.position}}function Oc(y){return y<2?0:2}function bl(y,H){return(y>0?-1:1)*H}function Vo(y,H,Z){var Oe=y.side,Fe=y.element.measure([H[2]-H[0],H[3]-H[1]]),bt=Fe[Oe]<H[2+Oe]-H[Oe]-("indside"===y.position?0:Z[Oe]);return bt&&("inside"!==y.position&&(H[y.primary+Oe]+=bl(y.primary,Fe[Oe])),y.size=Fe),bt}function Wu(y,H,Z){var Oe=y.side,Fe=function ys(y){return 1-y}(Oe),Ye=[],bt=function Ts(y,H,Z,Oe){return pu[y](H,Z,Oe)}(y.secondary,Z[Fe],Z[2+Fe],y.size[Fe]);return Ye[Oe]=Gl(Ye[2+Oe]=H[y.primary+Oe]+("inside"===y.position?bl(y.primary,y.size[Oe]):0)),Ye[y.primary+Oe]=Gl(H[y.primary+Oe]-bl(y.primary,y.size[Oe])),"inside"!==y.position&&(H[y.primary+Oe]=Ye[y.primary+Oe]),Ye[Fe]=Gl(bt[0]),Ye[2+Fe]=Gl(bt[1]),Ye}function op(y,H,Z,Oe,Fe,Ye){var bt=Wu(y,H,Z),$t=Wu(y,Oe,Oe);Fe[y.side]>0?(Fe[y.side]-=y.size[y.side],Ye[y.primary+y.side]=bt[y.primary+y.side],y.element.freeSpace()):y.element.move(bt,$t)}function mc(){this._targets=[]}function ff(y,H){var Z=H.slice(),Oe=Wu(y,Z,Z);return Oe[y.side]=H[y.side],Oe[2+y.side]=H[2+y.side],Oe}function zf(y,H){var Z=y.side,Oe=y.primary;return{side:Z,primary:Oe,secondary:y.secondary,priority:0,element:{measure:function(Ye){var bt=Ye.slice(),$t=H.element.measure(Ye.slice());Ye[Oe]-=$t[Oe];var _i=y.element.measure(Ye.slice());return bt[Z]=$t[Z]=_i[Z]=Math.max(_i[Z],$t[Z]),H.size=$t,y.size=_i,bt},move:function(Ye,bt){if(bt[2]-bt[0]<y.size[0]+H.size[0]-2)this.freeSpace();else{var $t=ff(H,bt);bt[2+H.primary]=$t[H.primary];var _i=ff(y,bt);bt[2+H.primary]<Ye[2+H.primary]&&y.size[y.primary]>Ye[2+y.primary]-Ye[y.primary]&&(Ye[2+H.primary]=bt[2+H.primary]);var Ii=ff(y,Ye);Ii[2+H.primary]>bt[2+H.primary]&&(Ye[2+H.primary]=bt[2+H.primary],Ii=ff(y,Ye)),H.element.move($t),y.element.move(Ii,_i)}},freeSpace:function(){y.element.freeSpace(),H.element.freeSpace()}}}}pu[0]=function(y,H,Z){return[y,ao(H,y+Z)]},pu[1]=function(y,H,Z){return[Ul(y,(y+H-Z)/2),ao(H,(y+H+Z)/2)]},pu[2]=function(y,H,Z){return[Ul(y,H-Z),H]},mc.prototype={constructor:mc,dispose:function(){this._targets=null},add:function(y){this._targets.push(y)},forward:function(y,H){var Fe,Z=y.slice(),Oe=function ju(y){var H,Fe,Z=y.length,Oe=[];for(H=0;H<Z;++H)(Fe=y[H].layoutOptions())&&((Fe=Dl(Fe)).element=y[H],Oe.push(Fe));return Oe.sort(function(Ye,bt){return bt.side-Ye.side||Ye.priority-bt.priority}),Oe=function Hf(y){var Z,H=y.filter(function(Oe){return!0===Oe.weak})[0];return H&&(Z=y.filter(function(Oe){return H.primary===Oe.primary&&Oe.side===H.side&&Oe!==H})[0]),H&&Z?[zf(Z,H)].concat(y.filter(function(Oe){return!(Oe===Z||Oe===H)})):y}(Oe),Oe}(this._targets),Ye=Oe.length,bt=[];for(Fe=0;Fe<Ye;++Fe)Vo(Oe[Fe],Z,H)?bt.push(Oe[Fe]):Oe[Fe].element.freeSpace();return this._cache=bt.reverse(),Z},backward:function(y,H){var $t,_i,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],Oe=y.slice(),Fe=y.slice(),Ye=this._cache,bt=0,Ii=Ye.length;for(_i=0;_i<Ii;++_i)($t=Ye[_i]).side!==bt&&(Oe=y.slice()),op($t,Oe,H,Fe,Z,y),bt=$t.side;return Z}};const $d=mc;var xg=D(69490),$m={};var{log:Vp}=Ai,gc="rtlEnabled",Yu="dx-sized-element",Gg=Ke.A.prototype.option;function Hp(){return!0}function Gf(){return!1}function Km(y){y.component._eventsStrategy.hasEvent("incidentOccurred")||Vp.apply(null,[y.target.id].concat(y.target.args||[]))}function Ns(y){return y.reduce((H,Z)=>Z>0&&!H?Z:H,0)}function Xm(y){y.forEach(H=>H())}var H,Z,h_=(0,Qa.Vd)()?Ke.A.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred",actionSettings:{excludeValidators:["disabled"]}},onDrawn:{name:"drawn",actionSettings:{excludeValidators:["disabled"]}}},_getDefaultOptions(){return(0,o.X)(this.callBase(),{onIncidentOccurred:Km})},_useLinks:!0,_init(){this._$element.children(".".concat(Yu)).remove(),this._graphicObjects={},this.callBase(...arguments),this._changesLocker=0,this._optionChangedLocker=0,this._asyncFirstDrawing=!0,this._changes=function Bo(){return new qr}(),this._suspendChanges(),this._themeManager=this._createThemeManager(),this._themeManager.setCallback(()=>{this._requestChange(this._themeDependentChanges)}),this._renderElementAttributes(),this._initRenderer();var y=this._useLinks;y&&this._renderer.root.enableLinks().virtualLink("core").virtualLink("peripheral"),this._renderVisibilityChange(),this._attachVisibilityChangeHandlers(),this._toggleParentsScrollSubscription(this._isVisible()),this._initEventTrigger(),this._incidentOccurred=function(y,H){return function(Z,Oe){H("incidentOccurred",{target:{id:Z,type:"E"===Z[0]?"error":"warning",args:Oe,text:xt.GP.apply(null,[Zi[Z]].concat(Oe||[])),widget:y,version:Le.r}})}}(this.NAME,this._eventTrigger),this._layout=new $d,y&&this._renderer.root.linkAfter("core"),this._initPlugins(),this._initCore(),y&&this._renderer.root.linkAfter(),this._change(this._initialChanges)},_createThemeManager(){return new Ol(this._getThemeManagerOptions())},_getThemeManagerOptions(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins(){(0,E.__)(this._plugins,(y,H)=>{H.init.call(this)})},_disposePlugins(){(0,E.__)(this._plugins.slice().reverse(),(y,H)=>{H.dispose.call(this)})},_change(y){this._changes.add(y)},_suspendChanges(){this._changesLocker+=1},_resumeChanges(){0==--this._changesLocker&&this._changes.count()>0&&!this._applyingChanges&&(this._renderer.lock(),this._applyingChanges=!0,this._applyChanges(),this._changes.reset(),this._applyingChanges=!1,this._changesApplied(),this._renderer.unlock(),this._optionsQueue&&this._applyQueuedOptions(),this.resolveItemsDeferred(this._legend?[this._legend]:[]),this._optionChangedLocker+=1,this._notify(),this._optionChangedLocker-=1)},resolveItemsDeferred(y){this._resolveDeferred(this._getTemplatesItems(y))},_collectTemplatesFromItems:y=>y.reduce((H,Z)=>({items:H.items.concat(Z.getTemplatesDef()),groups:H.groups.concat(Z.getTemplatesGroups())}),{items:[],groups:[]}),_getTemplatesItems(y){var H=this._collectTemplatesFromItems(y),Z=this._getExtraTemplatesItems();return{items:Z.items.concat(H.items),groups:Z.groups.concat(H.groups),launchRequest:[Z.launchRequest],doneRequest:[Z.doneRequest]}},_getExtraTemplatesItems:()=>({items:[],groups:[],launchRequest:()=>{},doneRequest:()=>{}}),_resolveDeferred(y){var{items:H,launchRequest:Z,doneRequest:Oe,groups:Fe}=y;if(this._setGroupsVisibility(Fe,"hidden"),this._changesApplying)return this._changesApplying=!1,void Xm(Oe);var Ye=!0;ir.z7.apply(this,H).done(()=>{if(Ye)this._setGroupsVisibility(Fe,"visible");else{Xm(Z),this._changesApplying=!0;var bt=["LAYOUT","FULL_RENDER"];this._asyncFirstDrawing?(bt.push("FORCE_FIRST_DRAWING"),this._asyncFirstDrawing=!1):bt.push("FORCE_DRAWING"),this._requestChange(bt),this._setGroupsVisibility(Fe,"visible")}}),Ye=!1},_setGroupsVisibility(y,H){y.forEach(Z=>Z.attr({visibility:H}))},_applyQueuedOptions(){var y=this._optionsQueue;this._optionsQueue=null,this.beginUpdate(),(0,E.__)(y,(H,Z)=>{Z()}),this.endUpdate()},_requestChange(y){this._suspendChanges(),this._change(y),this._resumeChanges()},_applyChanges(){for(var y=this._changes,H=this._totalChangesOrder,Z=H.length,Oe=0;Oe<Z;Oe+=1)y.has(H[Oe])&&this["_change_".concat(H[Oe])]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["ELEMENT_ATTR","CONTAINER_SIZE","LAYOUT"],_customChangesOrder:["DISABLED"],_change_EVENTS(){this._eventTrigger.applyChanges()},_change_THEME(){this._setThemeAndRtl()},_change_RENDERER(){this._setRendererOptions()},_change_RESIZE_HANDLER(){this._setupResizeHandler()},_change_ELEMENT_ATTR(){this._renderElementAttributes(),this._change(["CONTAINER_SIZE"])},_change_CONTAINER_SIZE(){this._updateSize()},_change_LAYOUT(){this._setContentSize()},_change_DISABLED(){var y=this._renderer,{root:H}=y;this.option("disabled")?(this._initDisabledState=H.attr("pointer-events"),H.attr({"pointer-events":"none",filter:y.getGrayScaleFilter().id})):"none"===H.attr("pointer-events")&&H.attr({"pointer-events":(0,R.O9)(this._initDisabledState)?this._initDisabledState:null,filter:null})},_themeDependentChanges:["RENDERER"],_initRenderer(){var y=this._calculateRawCanvas();this._canvas=(0,xg.YN)(y),this._renderer=new Bn.A4({cssClass:"".concat(this._rootClassPrefix," ").concat(this._rootClass),pathModified:this.option("pathModified"),container:this._$element[0]}),this._renderer.resize(this._canvas.width,this._canvas.height)},_disposeRenderer(){this._renderer.dispose()},_disposeGraphicObjects(){Object.keys(this._graphicObjects).forEach(y=>{this._graphicObjects[y].dispose()}),this._graphicObjects=null},_getAnimationOptions:j.lQ,render(){this._requestChange(["CONTAINER_SIZE"]);var y=this._isVisible();this._toggleParentsScrollSubscription(y),!y&&this._stopCurrentHandling()},_toggleParentsScrollSubscription(y){var H=(0,Sa.A)(this._renderer.root.element).parents();"generic"===Pe.A.real().platform&&(H=H.add((0,Qa.zk)())),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(){this._stopCurrentHandling()}.bind(this),m.A.off((0,Sa.A)("").add(this._$prevRootParents),"scroll.viz_widgets",this._proxiedTargetParentsScrollHandler),y&&(m.A.on(H,"scroll.viz_widgets",this._proxiedTargetParentsScrollHandler),this._$prevRootParents=H)},_stopCurrentHandling:j.lQ,_dispose(){this._disposed||(this.callBase(...arguments),this._toggleParentsScrollSubscription(!1),this._removeResizeHandler(),this._layout.dispose(),this._eventTrigger.dispose(),this._disposeCore(),this._disposePlugins(),this._disposeGraphicObjects(),this._disposeRenderer(),this._themeManager.dispose(),this._themeManager=null,this._renderer=null,this._eventTrigger=null)},_initEventTrigger(){this._eventTrigger=function dn(y,H){var Oe,Z={};return(0,E.__)(y,function(bt,$t){$t.name&&Fe(bt)}),Ye.change=function(bt){var $t=y[bt];return $t&&((Oe=Oe||{})[bt]=$t),!!$t},Ye.applyChanges=function(){Oe&&((0,E.__)(Oe,function(bt,$t){Fe($t.newName||bt)}),Oe=null)},Ye.dispose=function(){y=H=Z=null},Ye;function Fe(bt){var $t=y[bt];Z[$t.name]=H(bt,$t.actionSettings)}function Ye(bt,$t,_i){Z[bt]($t),_i&&_i()}}(this._eventsMap,(y,H)=>this._createActionByOption(y,H))},_calculateRawCanvas(){var y=this.option("size")||{},H=this.option("margin")||{},Z=this._getDefaultSize()||{},Oe=($t,_i,Ii)=>{if(function Yv(y){return(0,R.O9)(y)&&y>0}($t[_i])||!(0,Qa.Vd)())return 0;var bn=Ii(this._$element);return bn<=1?0:bn},Fe=Oe(y,"width",$t=>(0,Vn.RG)($t)),Ye=Oe(y,"height",$t=>(0,Vn.Oq)($t)),bt={width:y.width<=0?0:Ns([y.width,Fe,Z.width]),height:y.height<=0?0:Ns([y.height,Ye,Z.height]),left:Ns([H.left,Z.left]),top:Ns([H.top,Z.top]),right:Ns([H.right,Z.right]),bottom:Ns([H.bottom,Z.bottom])};return(bt.width-bt.left-bt.right<=0||bt.height-bt.top-bt.bottom<=0)&&(bt={width:0,height:0}),bt},_updateSize(){var y=this._calculateRawCanvas();((0,xg.yf)(this._canvas,y)||this.__forceRender)&&(this._canvas=(0,xg.YN)(y),this._recreateSizeDependentObjects(!0),this._renderer.resize(this._canvas.width,this._canvas.height),this._change(["LAYOUT"]))},_recreateSizeDependentObjects:j.lQ,_getMinSize:()=>[0,0],_getAlignmentRect:j.lQ,_setContentSize(){var y=this._canvas,H=this._layout,Z=y.width>0&&y.height>0?[y.left,y.top,y.width-y.right,y.height-y.bottom]:[0,0,0,0];Z=H.forward(Z,this._getMinSize());var Oe=this._applySize(Z)||Z;H.backward(Oe,this._getAlignmentRect()||Oe)},_getOption(y,H){var Z=this._themeManager.theme(y),Oe=this.option(y);return H?void 0!==Oe?Oe:Z:(0,o.X)(!0,{},Z,Oe)},_setupResizeHandler(){var y=(0,O.Qj)(this._getOption("redrawOnResize",!0),!0);this._disposeResizeHandler&&this._removeResizeHandler(),this._disposeResizeHandler=function Er(y,H,Z){var Oe,Fe=function er(y){return(H,Z)=>{var{handler:Oe,dispose:Fe}=function Ar(y,H){var Z,Oe=function(){clearTimeout(Z),Z=setTimeout(y,100)};return{handler:Oe,dispose(){clearTimeout(Z),H(Oe)}}}(y,Z);return H(Oe),Fe}}(Z);return"windowonly"===(0,O.NU)(H)?Oe=Fe(Ye=>Hi.A.add(Ye),Ye=>Hi.A.remove(Ye)):!0===H&&(Oe=Fe(Ye=>Gi.A.observe(y,Ye),()=>Gi.A.unobserve(y))),Oe}(this._$element[0],y,()=>this._requestChange(["CONTAINER_SIZE"]))},_removeResizeHandler(){this._disposeResizeHandler&&(this._disposeResizeHandler(),this._disposeResizeHandler=null)},_onBeginUpdate:j.lQ,beginUpdate(){return this._initialized&&this._isUpdateAllowed()&&(this._onBeginUpdate(),this._suspendChanges()),this.callBase(...arguments),this},endUpdate(){return this.callBase(),this._isUpdateAllowed()&&this._resumeChanges(),this},option(y){if(!(this._initialized&&this._applyingChanges&&(arguments.length>1||(0,R.Gv)(y))))return Gg.apply(this,arguments);this._optionsQueue=this._optionsQueue||[],this._optionsQueue.push(this._getActionForUpdating(arguments))},_getActionForUpdating(y){return()=>{Gg.apply(this,y)}},_clean:j.lQ,_render:j.lQ,_optionChanged(y){if(!this._optionChangedLocker){var H=this.getPartialChangeOptionsName(y),Z=[];H.length>0?H.forEach(Oe=>Z.push(this._partialOptionChangesMap[Oe])):Z.push(this._optionChangesMap[y.name]),Z=Z.filter(Oe=>!!Oe),this._eventTrigger.change(y.name)?this._change(["EVENTS"]):Z.length>0?this._change(Z):this.callBase.apply(this,arguments)}},_notify:j.lQ,_changesApplied:j.lQ,_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_partialOptionChangesMap:{},_partialOptionChangesPath:{},getPartialChangeOptionsName(y){var{fullName:H}=y,Z=H.split(/[.]/),{name:Oe}=y,{value:Fe}=y,Ye=this._partialOptionChangesPath[Oe],bt=[];return Ye&&(!0===Ye?bt.push(Oe):(Ye.forEach($t=>{H.indexOf($t)>=0&&bt.push($t)}),1===Z.length&&("object"===(0,R.NW)(Fe)?this._addOptionsNameForPartialUpdate(Fe,Ye,bt):"array"===(0,R.NW)(Fe)&&Fe.length>0&&Fe.every($t=>this._checkOptionsForPartialUpdate($t,Ye))&&Fe.forEach($t=>{this._addOptionsNameForPartialUpdate($t,Ye,bt)})))),bt.filter(($t,_i,Ii)=>Ii.indexOf($t)===_i)},_checkOptionsForPartialUpdate:(y,H)=>!Object.keys(y).some(Z=>-1===H.indexOf(Z)),_addOptionsNameForPartialUpdate(y,H,Z){var Oe=Object.keys(y);this._checkOptionsForPartialUpdate(y,H)&&Oe.forEach(Fe=>H.indexOf(Fe)>-1&&Z.push(Fe))},_visibilityChanged(){this.render()},_setThemeAndRtl(){this._themeManager.setTheme(this.option("theme"),this.option(gc))},_getRendererOptions(){return{rtl:this.option(gc),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions(){this._renderer.setOptions(this._getRendererOptions())},svg(){return this._renderer.svg()},getSize(){var y=this._canvas||{};return{width:y.width,height:y.height}},isReady:Gf,_dataIsReady:Hp,_resetIsReady(){this.isReady=Gf},_renderGraphicObjects(){var y=this._renderer,H=$m;Object.keys(H).forEach(Z=>{if(!this._graphicObjects[Z]){var{type:Oe,colors:Fe,rotationAngle:Ye,template:bt,width:$t,height:_i}=H[Z];switch(Oe){case"linear":this._graphicObjects[Z]=y.linearGradient(Fe,Z,Ye);break;case"radial":this._graphicObjects[Z]=y.radialGradient(Fe,Z);break;case"pattern":this._graphicObjects[Z]=y.customPattern(Z,this._getTemplate(bt),$t,_i)}}})},_drawn(){this.isReady=Gf,this._dataIsReady()&&this._renderer.onEndAnimation(()=>{this.isReady=Hp}),this._eventTrigger("drawn",{})}}):(H=Ke.A.inherit({_initTemplates(){},ctor(Oe,Fe){this.callBase(Oe,Fe);var Ye=h.A.createElement("div"),bt=Fe&&(0,R.kf)(Fe.width)?"".concat(Fe.width,"px"):"100%",$t=Fe&&(0,R.kf)(Fe.height)?"".concat(Fe.height,"px"):"".concat(this._getDefaultSize().height,"px");h.A.setStyle(Ye,"width",bt),h.A.setStyle(Ye,"height",$t),h.A.setClass(Ye,Yu,!1),h.A.insertElement(Oe,Ye)}}),Z=H.inherit,H.inherit=function(Oe){return Object.keys(Oe).forEach(Fe=>{((0,R.Tn)(Oe[Fe])&&"_"!==Fe.substr(0,1)&&"option"!==Fe||"_dispose"===Fe||"_optionChanged"===Fe)&&(Oe[Fe]=j.lQ)}),Z.call(this,Oe)},H);const zp=h_;to(h_);class Y0{constructor(H,Z,Oe){var Fe=H.getBoundingRect(),{x:Ye}=Fe,{y:bt}=Fe,$t=Fe.x+Fe.width,_i=Fe.y+Fe.height;this.labels=[H],this.shiftFunction=Oe,this.bBox={start:Z?Ye:bt,width:Z?Fe.width:Fe.height,end:Z?$t:_i,oppositeStart:Z?bt:Ye,oppositeEnd:Z?_i:$t},this.initialPosition=Z?Fe.x:Fe.y}toChain(H){var Z=H.getBoundingRect();H.shift(Z.start-this.bBox.end),this.changeBoxWidth(Z.width),this.labels=this.labels.concat(H.labels)}getBoundingRect(){return this.bBox}shift(H){this.labels.forEach(Z=>{var Oe=Z.getBoundingRect(),Fe=this.shiftFunction(Oe,H);Z.hideInsideLabel(Fe)||Z.shift(Fe.x,Fe.y)}),this.bBox.end-=H,this.bBox.start-=H}setRollingStockInCanvas(H){this.bBox.end>H.end&&this.shift(this.bBox.end-H.end)}getLabels(){return this.labels}value(){return this.labels[0].getData().value}getInitialPosition(){return this.initialPosition}changeBoxWidth(H){this.bBox.end+=H,this.bBox.width+=H}}var{isArray:p_}=Array,V_="_reinit",Ph="_forceRender",Jm="_resize",cm=[V_,"_updateDataSource","_dataInit",Ph,Jm],gf="font";function f_(y){var H=y.reduce((Oe,Fe,Ye)=>{if(!Fe)return Oe;var bt=Fe.value();return bt<Oe.value?{value:bt,rollingStock:Fe,index:Ye}:Oe},{rollingStock:void 0,value:1/0,index:void 0});H.rollingStock.getLabels()[0].draw(!1);var{width:Z}=H.rollingStock.getBoundingRect();return y[H.index]=null,Z}function m_(y,H,Z){if(y&&H){var Oe=y.getBoundingRect(),Fe=H.getBoundingRect();return Oe.end>Fe.start&&(!Z||Oe.oppositeStart<=Fe.oppositeStart&&Oe.oppositeEnd>Fe.oppositeStart||Fe.oppositeStart<=Oe.oppositeStart&&Fe.oppositeEnd>Oe.oppositeStart)}}function qm(y,H){return y.getBoundingRect().end>H.end}function eg(y,H){return(y.x<=H.x&&H.x<=y.x+y.width||y.x>=H.x&&y.x<=H.x+H.width)&&(y.y<=H.y&&H.y<=y.y+y.height||y.y>=H.y&&y.y<=H.y+H.height)}var sp={resolveLabelOverlappingInOneDirection:function bv(y,H,Z,Oe,Fe){var Ii,Ye=arguments.length>5&&void 0!==arguments[5]?arguments[5]:()=>0,bt=[],$t={start:Z?H.left:H.top,end:Z?H.width-H.right:H.height-H.bottom},_i=!1;if(y.forEach(Yn=>{Yn&&(_i=_i||Yn.series.isStackedSeries()||Yn.series.isFullStackedSeries(),Yn.getLabels().forEach(Mr=>{Mr.isVisible()&&bt.push(new Y0(Mr,Z,Fe))}))}),_i)+!Z^Number(Oe)&&bt.reverse(),Ii=Oe?bt:function yv(y){var H=[],Z=[];return y.forEach(Oe=>{Oe.value()>0?H.push(Oe):Z.unshift(Oe)}),H.concat(Z)}(bt);else{var bn=bt.slice();Ii=bt.sort((Yn,Mr)=>Ye(Yn,Mr)||Yn.getInitialPosition()-Mr.getInitialPosition()||bn.indexOf(Yn)-bn.indexOf(Mr))}return!!function _f(y){var H,Z,Oe,Fe,Ye=!1;for(H=0,Oe=y.length-1;H<Oe;H++){for(Z=H+1,Fe=y.length;Z<Fe;Z++)if(H!==Z&&m_(y[H],y[Z],!0)){Ye=!0;break}if(Ye)break}return Ye}(Ii)&&(function Qm(y,H){var Z=H.end-H.start,Oe=0;for(y.forEach(Fe=>{Oe+=Fe.getBoundingRect().width});Z<Oe;)Oe-=f_(y)}(Ii,$t),function Zm(y){for(var H,Z=0;Z<y.length-1;Z+=1){var Oe=H||y[Z];m_(Oe,y[Z+1])?(Oe.toChain(y[Z+1]),y[Z+1]=null,H=Oe):H=y[Z+1]||Oe}}(Ii),Ii.reverse(),function As(y,H){for(var Z=0;Z<y.length;Z+=1){var Oe=y[Z],Fe=!0;if(null!==Oe&&qm(Oe,H))for(var Ye=Oe.getBoundingRect(),bt=Z+1;bt<y.length;bt+=1){var $t=y[bt];if($t&&$t.getBoundingRect().end>Ye.start-(Ye.end-H.end)){$t.toChain(Oe),Fe=!1;break}}Fe&&Oe?.setRollingStockInCanvas(H)}}(Ii,$t),!0)}},Nc=zp.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done",actionSettings:{excludeValidators:["disabled"]}},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_fontFields:["legend.".concat(gf),"legend.title.".concat(gf),"legend.title.subtitle.".concat(gf),"commonSeriesSettings.label.".concat(gf)],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions(){var y=this.callBase.apply(this,arguments);return y.options=this.option(),y},_createThemeManager(){var y=this.option(),H=new au(this._getThemeManagerOptions());return H.setTheme(y.theme,y.rtlEnabled),H},_initCore(){this._canvasClipRect=this._renderer.clipRect(),this._createHtmlStructure(),this._createLegend(),this._createTracker(),this._needHandleRenderComplete=!0,this.layoutManager=new v.A,this._createScrollBar(),m.A.on(this._$element,"contextmenu",y=>{((0,_.kH)(y)||(0,_.EE)(y))&&y.preventDefault()}),m.A.on(this._$element,"MSHoldVisual",y=>{y.preventDefault()})},_getLayoutItems:j.lQ,_layoutManagerOptions(){return this._themeManager.getOptions("adaptiveLayout")},_reinit(){(0,O.FG)(this._canvas),this._reinitAxes(),this._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:j.lQ,_createHtmlStructure(){var y=this._renderer,{root:H}=y,Z=function(){return y.g().attr({class:"dxc-constant-lines-group"}).linkOn(H,"constant-lines")};this._constantLinesGroup={dispose(){this.under.dispose(),this.above.dispose()},linkOff(){this.under.linkOff(),this.above.linkOff()},clear(){this.under.linkRemove().clear(),this.above.linkRemove().clear()},linkAppend(){this.under.linkAppend(),this.above.linkAppend()}},this._labelsAxesGroup=y.g().attr({class:"dxc-elements-axes-group"});var Oe=()=>{this._labelsAxesGroup.linkOn(H,"elements")};this._backgroundRect=y.rect().attr({fill:"gray",opacity:1e-4}).append(H),this._panesBackgroundGroup=y.g().attr({class:"dxc-background"}).append(H),this._stripsGroup=y.g().attr({class:"dxc-strips-group"}).linkOn(H,"strips"),this._gridGroup=y.g().attr({class:"dxc-grids-group"}).linkOn(H,"grids"),this._panesBorderGroup=y.g().attr({class:"dxc-border"}).linkOn(H,"border"),this._axesGroup=y.g().attr({class:"dxc-axes-group"}).linkOn(H,"axes"),this._executeAppendBeforeSeries(Oe),this._stripLabelAxesGroup=y.g().attr({class:"dxc-strips-labels-group"}).linkOn(H,"strips-labels"),this._constantLinesGroup.under=Z(),this._seriesGroup=y.g().attr({class:"dxc-series-group"}).linkOn(H,"series"),this._executeAppendAfterSeries(Oe),this._constantLinesGroup.above=Z(),this._scaleBreaksGroup=y.g().attr({class:"dxc-scale-breaks"}).linkOn(H,"scale-breaks"),this._labelsGroup=y.g().attr({class:"dxc-labels-group"}).linkOn(H,"labels"),this._crosshairCursorGroup=y.g().attr({class:"dxc-crosshair-cursor"}).linkOn(H,"crosshair"),this._legendGroup=y.g().attr({class:"dxc-legend","clip-path":this._getCanvasClipRectID()}).linkOn(H,"legend").linkAppend(H).enableLinks(),this._scrollBarGroup=y.g().attr({class:"dxc-scroll-bar"}).linkOn(H,"scroll-bar")},_executeAppendBeforeSeries(){},_executeAppendAfterSeries(){},_disposeObjectsInArray(y,H){(this[y]||[]).forEach(Z=>{H&&Z?H.forEach(Oe=>{var Fe;null===(Fe=Z[Oe])||void 0===Fe||Fe.dispose()}):Z?.dispose()}),this[y]=null},_disposeCore(){var y=Oe=>{this[Oe]&&(this[Oe].dispose(),this[Oe]=null)},H=Oe=>{this[Oe].linkOff()},Z=this._disposeObjectsInArray;this._renderer.stopAllAnimations(),Z.call(this,"series"),y("_tracker"),y("_crosshair"),this.layoutManager=this._userOptions=this._canvas=this._groupsData=null,H("_stripsGroup"),H("_gridGroup"),H("_axesGroup"),H("_constantLinesGroup"),H("_stripLabelAxesGroup"),H("_panesBorderGroup"),H("_seriesGroup"),H("_labelsGroup"),H("_crosshairCursorGroup"),H("_legendGroup"),H("_scrollBarGroup"),H("_scaleBreaksGroup"),y("_canvasClipRect"),y("_panesBackgroundGroup"),y("_backgroundRect"),y("_stripsGroup"),y("_gridGroup"),y("_axesGroup"),y("_constantLinesGroup"),y("_stripLabelAxesGroup"),y("_panesBorderGroup"),y("_seriesGroup"),y("_labelsGroup"),y("_crosshairCursorGroup"),y("_legendGroup"),y("_scrollBarGroup"),y("_scaleBreaksGroup")},_getAnimationOptions(){return this._themeManager.getOptions("animation")},_getDefaultSize:()=>({width:400,height:400}),_getOption(y){return this._themeManager.getOptions(y)},_applySize(y){this._rect=y.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData(Jm)},_resize(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker(){this._tracker=new r[this._trackerType]({seriesGroup:this._seriesGroup,renderer:this._renderer,tooltip:this._tooltip,legend:this._legend,eventTrigger:this._eventTrigger})},_getTrackerSettings(){return(0,o.X)({chart:this},this._getSelectionModes())},_getSelectionModes(){var y=this._themeManager;return{seriesSelectionMode:y.getOptions("seriesSelectionMode"),pointSelectionMode:y.getOptions("pointSelectionMode")}},_updateTracker(y){this._tracker.update(this._getTrackerSettings()),this._tracker.setCanvases({left:0,right:this._canvas.width,top:0,bottom:this._canvas.height},y)},_createCanvasFromRect(y){var H=this._canvas;return(0,O.FG)({left:y[0],top:y[1],right:H.width-y[2],bottom:H.height-y[3],width:H.width,height:H.height})},_doRender(y){if(0!==this._canvas.width||0!==this._canvas.height){this._resetIsReady();var H=this._prepareDrawOptions(y),{recreateCanvas:Z}=H;this._preserveOriginalCanvas(),Z?this.__currentCanvas=this._canvas:this._canvas=this.__currentCanvas,Z&&this._updateCanvasClipRect(this._canvas),this._canvas=this._createCanvasFromRect(this._rect),this._renderer.stopAllAnimations(!0),this._cleanGroups();var Oe=new Date;this._renderElements(H),this._lastRenderingTime=Number(new Date)-Number(Oe)}},_preserveOriginalCanvas(){this.__originalCanvas=this._canvas,this._canvas=(0,o.X)({},this._canvas)},_layoutAxes:j.lQ,_renderElements(y){var Ye,bt,$t,H=this._prepareToRender(y),Z=this._isRotated(),Oe=this._isLegendInside(),Fe=[];(0,o.X)({},this._canvas),this._renderer.lock(),y.drawLegend&&this._legend&&this._legendGroup.linkAppend(),this.layoutManager.setOptions(this._layoutManagerOptions());var _i=this._getLayoutTargets();this._layoutAxes(Ii=>{var bn=Ii?(0,o.X)({},y,{animate:!1,recreateCanvas:!0}):y,Yn=this._renderAxes(bn,H);this._shrinkAxes(Ii,Yn)}),this._applyClipRects(H),this._appendSeriesGroups(),this._createCrosshairCursor(),_i.forEach(Ii=>{var{canvas:bn}=Ii;Fe.push({left:bn.left,right:bn.width-bn.right,top:bn.top,bottom:bn.height-bn.bottom})}),this._scrollBar&&("discrete"===(Ye=this._argumentAxes[0].getTranslator().getBusinessRange()).axisType&&Ye.categories&&Ye.categories.length<=1||"discrete"!==Ye.axisType&&Ye.min===Ye.max?bt=$t=void 0:(bt=Ye.minVisible,$t=Ye.maxVisible),this._scrollBar.init(Ye,!this._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(bt,$t)),this._updateTracker(Fe),this._updateLegendPosition(y,Oe),this._applyPointMarkersAutoHiding(),this._renderSeries(y,Z,Oe),this._renderGraphicObjects(),this._renderer.unlock()},_updateLegendPosition:j.lQ,_createCrosshairCursor:j.lQ,_appendSeriesGroups(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries(y,H,Z){this._calculateSeriesLayout(y,H),this._renderSeriesElements(y,Z)},_calculateSeriesLayout(y,H){y.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),H)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(y)},_getArgFilter:()=>()=>!0,_getValFilter:()=>()=>!0,_getPointsToAnimation(y){var H=this._getArgFilter();return y.map(Z=>{var Oe=this._getValFilter(Z);return Z.getPoints().filter(Fe=>Fe.getOptions().visible&&H(Fe.argument)&&(Oe(Fe.getMinValue(!0))||Oe(Fe.getMaxValue(!0)))).length})},_renderSeriesElements(y,H){var{series:Z}=this,Oe=this._themeManager.getOptions("resolveLabelOverlapping"),Fe=this._getPointsToAnimation(Z);Z.forEach((Ye,bt)=>{this._applyExtraSettings(Ye,y);var $t=y.animate&&Fe[bt]<=y.animationPointsLimit&&this._renderer.animationEnabled();Ye.draw($t,y.hideLayoutLabels,this._getLegendCallBack(Ye))}),"none"===Oe?this._adjustSeriesLabels(!1):this._locateLabels(Oe),this._renderTrackers(H),this._tracker.repairTooltip(),this._renderExtraElements(),this._clearCanvas(),this._seriesElementsDrawn=!0},_changesApplied(){this._seriesElementsDrawn&&(this._seriesElementsDrawn=!1,this._drawn(),this._renderCompleteHandler())},_locateLabels(y){this._resolveLabelOverlapping(y)},_renderExtraElements(){},_clearCanvas(){this._canvas=this.__originalCanvas},_resolveLabelOverlapping(y){var H;switch(y){case"stack":H=this._resolveLabelOverlappingStack;break;case"hide":H=this._resolveLabelOverlappingHide;break;case"shift":H=this._resolveLabelOverlappingShift}return(0,R.Tn)(H)&&H.call(this)},_getVisibleSeries(){return(0,j.VM)(this.getAllSeries(),y=>y.isVisible())},_resolveLabelOverlappingHide(){var H,Z,Oe,Ye,bt,$t,y=[],_i=this._getVisibleSeries();for(Ye=0;Ye<_i.length;Ye++)for($t=_i[Ye].getVisiblePoints(),bt=0;bt<$t.length;bt++)y.push.apply(y,$t[bt].getLabels());for(Ye=0;Ye<y.length;Ye++)if((H=y[Ye]).isVisible())for(Oe=H.getBoundingRect(),bt=Ye+1;bt<y.length;bt++)eg(Oe,(Z=y[bt]).getBoundingRect())&&Z.draw(!1)},_cleanGroups(){this._stripsGroup.linkRemove().clear(),this._gridGroup.linkRemove().clear(),this._axesGroup.linkRemove().clear(),this._constantLinesGroup.clear(),this._stripLabelAxesGroup.linkRemove().clear(),this._labelsGroup.linkRemove().clear(),this._crosshairCursorGroup.linkRemove().clear(),this._scaleBreaksGroup.linkRemove().clear()},_allowLegendInsidePosition:()=>!1,_createLegend(){var y=function H_(y){var H=function vf(y){return{nameField:"".concat(y,"Name"),colorField:"".concat(y,"Color"),indexField:"".concat(y,"Index")}}(y);return{getFormatObject(Z){var Oe={};return Oe[H.indexField]=Z.id,Oe[H.colorField]=Z.states.normal.fill,Oe[H.nameField]=Z.text,Oe},textField:H.nameField}}(this._legendDataField);this._legend=new xl({renderer:this._renderer,widget:this,group:this._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",titleGroupClass:"dxc-title",textField:y.textField,getFormatObject:y.getFormatObject,allowInsidePosition:this._allowLegendInsidePosition()}),this._updateLegend(),this._layout.add(this._legend)},_updateLegend(){var y=this._themeManager,H=y.getOptions("legend"),Z=this._getLegendData();H.containerBackgroundColor=y.getOptions("containerBackgroundColor"),H._incidentOccurred=this._incidentOccurred,this._legend.update(Z,H,y.theme("legend").title),this._change(["LAYOUT"])},_prepareDrawOptions(y){var H=this._getAnimationOptions(),Z=(0,o.X)({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:H.enabled,animationPointsLimit:H.maxPointCountSupported},y,this.__renderOptions);return(0,R.O9)(Z.recreateCanvas)||(Z.recreateCanvas=Z.adjustAxes&&Z.drawLegend&&Z.drawTitle),Z},_processRefreshData(y){var H=cm.indexOf(this._currentRefreshData),Z=cm.indexOf(y);(!this._currentRefreshData||H>=0&&Z<H)&&(this._currentRefreshData=y),this._requestChange(["REFRESH"])},_getLegendData(){return(0,O.Tj)(this._getLegendTargets(),y=>{var{legendData:H}=y,Z=y.getLegendStyles,{opacity:Oe}=Z.normal;y.visible||((!(0,R.O9)(Oe)||Oe>.3)&&(Oe=.3),H.textOpacity=.3);var Fe={opacity:Oe};return H.states={hover:(0,o.X)({},Z.hover,Fe),selection:(0,o.X)({},Z.selection,Fe),normal:(0,o.X)({},Z.normal,Fe)},H})},_getLegendOptions(y){return{legendData:{text:y[this._legendItemTextField],id:y.index,visible:!0},getLegendStyles:y.getLegendStyles(),visible:y.isVisible()}},_disposeSeries(y){var H;this.series&&((0,R.O9)(y)?(this.series[y].dispose(),this.series.splice(y,1)):(this.series.forEach(Z=>Z.dispose()),this.series.length=0)),null!==(H=this.series)&&void 0!==H&&H.length||(this.series=[])},_disposeSeriesFamilies(){(this.seriesFamilies||[]).forEach(y=>{y.dispose()}),this.seriesFamilies=null,this._needHandleRenderComplete=!0},_optionChanged(y){this._themeManager.resetOptions(y.name),this.callBase.apply(this,arguments)},_applyChanges(){this._themeManager.update(this._options.silent()),this.callBase(...arguments)},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"FORCE_DATA_INIT",seriesTemplate:"FORCE_DATA_INIT",export:"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",commonPaneSettings:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",containerBackgroundColor:"AXES_AND_PANES",rotated:"ROTATED",autoHidePointMarkers:"REFRESH_SERIES_REINIT",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_optionChangesOrder:["ROTATED","PALETTE","REFRESH_SERIES_REINIT","USE_SPIDER_WEB","AXES_AND_PANES","INIT","REINIT","DATA_SOURCE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_DATA_INIT","REFRESH_AXES","CORRECT_AXIS"],_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","FORCE_FIRST_DRAWING","FORCE_DRAWING","FORCE_RENDER","VISUAL_RANGE","SCROLL_BAR","REINIT","REFRESH","FULL_RENDER"],_change_ANIMATION(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE(){this._needHandleRenderComplete=!0,this._updateDataSource()},_change_PALETTE(){this._themeManager.updatePalette(),this._refreshSeries("DATA_INIT")},_change_REFRESH_SERIES_DATA_INIT(){this._refreshSeries("DATA_INIT")},_change_DATA_INIT(){(!this.series||this.needToPopulateSeries)&&!this._changes.has("FORCE_DATA_INIT")&&this._dataInit()},_change_FORCE_DATA_INIT(){this._dataInit()},_change_REFRESH_SERIES_FAMILIES(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData(Ph)},_change_FORCE_RENDER(){this._processRefreshData(Ph)},_change_AXES_AND_PANES(){this._refreshSeries("INIT")},_change_ROTATED(){this._createScrollBar(),this._refreshSeries("INIT")},_change_REFRESH_SERIES_REINIT(){this._refreshSeries("INIT")},_change_REFRESH_AXES(){(0,O.FG)(this._canvas),this._reinitAxes(),this._requestChange(["CORRECT_AXIS","FULL_RENDER"])},_change_SCROLL_BAR(){this._createScrollBar(),this._processRefreshData(Ph)},_change_REINIT(){this._processRefreshData(V_)},_change_FORCE_DRAWING(){this._resetComponentsAnimation()},_change_FORCE_FIRST_DRAWING(){this._resetComponentsAnimation(!0)},_resetComponentsAnimation(y){this.series.forEach(H=>{H.resetApplyingAnimation(y)}),this._resetAxesAnimation(y)},_resetAxesAnimation:j.lQ,_refreshSeries(y){this.needToPopulateSeries=!0,this._requestChange([y])},_change_CORRECT_AXIS(){this._correctAxes()},_doRefresh(){var y=this._currentRefreshData;y&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[y]())},_updateCanvasClipRect(y){var H=Math.max(y.width-y.left-y.right,0),Z=Math.max(y.height-y.top-y.bottom,0);this._canvasClipRect.attr({x:y.left,y:y.top,width:H,height:Z}),this._backgroundRect.attr({x:y.left,y:y.top,width:H,height:Z})},_getCanvasClipRectID(){return this._canvasClipRect.id},_dataSourceChangedHandler(){this._changes.has("INIT")?this._requestChange(["DATA_INIT"]):this._requestChange(["FORCE_DATA_INIT"])},_dataInit(){this._dataSpecificInit(!0)},_processSingleSeries(y){y.createPoints(!1)},_handleSeriesDataUpdated(){this._getVisibleSeries().some(y=>y.useAggregation())&&this._populateMarginOptions(),this.series.forEach(y=>this._processSingleSeries(y),this)},_dataSpecificInit(y){(!this.series||this.needToPopulateSeries)&&(this.series=this._populateSeries()),this._repopulateSeries(),this._seriesPopulatedHandlerCore(),this._populateBusinessRange(),this._tracker.updateSeries(this.series,this._changes.has("INIT")),this._updateLegend(),y&&this._requestChange(["FULL_RENDER"])},_forceRender(){this._doRender({force:!0})},_repopulateSeries(){var y=this._themeManager,H=this._dataSourceItems(),Z=y.getOptions("dataPrepareSettings");y.getOptions("seriesTemplate")&&this._populateSeries(H),this._groupSeries();var Fe=hh(H,this._groupsData,this._incidentOccurred,Z);y.resetPalette(),this.series.forEach(Ye=>{Ye.updateData(Fe[Ye.getArgumentField()])}),this._handleSeriesDataUpdated()},_renderCompleteHandler(){var y=!0;this._needHandleRenderComplete&&(this.series.forEach(H=>{y=y&&H.canRenderCompleteHandle()}),y&&(this._needHandleRenderComplete=!1,this._eventTrigger("done",{target:this})))},_dataIsReady(){return(0,R.O9)(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions(y){for(var bt,$t,H=this._themeManager,Z=H.getOptions("seriesTemplate"),Oe=Z?(0,O.Nc)(Z,y||[]):this.option("series"),Fe=p_(Oe)?Oe:Oe?[Oe]:[],Ye=this._getExtraOptions(),_i=[],Ii=Yn=>{this._specialProcessSeries(),this._populateBusinessRange(Yn&&Yn.getValueAxis(),!0),this._renderer.stopAllAnimations(!0),this._updateLegend(),this._requestChange(["FULL_RENDER"])},bn=0;bn<Fe.length;bn++)bt=(0,o.X)(!0,{},Fe[bn],Ye),(!(0,R.O9)(bt.name)||""===bt.name)&&(bt.name="Series ".concat((bn+1).toString())),bt.rotated=this._isRotated(),bt.customizePoint=H.getOptions("customizePoint"),bt.customizeLabel=H.getOptions("customizeLabel"),bt.visibilityChanged=Ii,bt.incidentOccurred=this._incidentOccurred,$t=H.getOptions("series",bt,Fe.length),this._checkPaneName($t)&&_i.push($t);return _i},_populateSeries(y){var H,Ye,Z=[],Oe=this._incidentOccurred,Fe=this._populateSeriesOptions(y),bt=!1;this.needToPopulateSeries=!1,Fe.forEach(_i=>{var Ii,bn=null===(Ii=this.series)||void 0===Ii?void 0:Ii.find(Yn=>Yn.name===_i.name&&!Z.map(Mr=>Mr.series).includes(Yn));bn&&bn.type===_i.type?Z.push({series:bn,options:_i}):(Z.push({options:_i}),bt=!0)}),0!==(null===(H=this.series)||void 0===H?void 0:H.length)&&this._tracker.clearHover(),(0,E.iW)(this.series,(_i,Ii)=>{Z.some(bn=>Ii===bn.series)||(this._disposeSeries(_i),bt=!0)}),!bt&&(bt=Z.some(_i=>_i.series.name!==Fe[_i.series.index].name)),this.series=[],bt&&this._disposeSeriesFamilies(),this._themeManager.resetPalette();var $t=_i=>{this.series.forEach(Ii=>{Ii.notify(_i)})};return Z.forEach(_i=>{var Ii,bn,Yn=_i.options,Mr=null!==(bn=null===(Ii=this._argumentAxes)||void 0===Ii?void 0:Ii.filter(io=>io.pane===Yn.pane)[0])&&void 0!==bn?bn:this.getArgumentAxis(),ma={commonSeriesModes:this._getSelectionModes(),argumentAxis:Mr,valueAxis:this._getValueAxis(Yn.pane,Yn.axis)};_i.series?(Ye=_i.series).updateOptions(Yn,ma):Ye=new yg((0,o.X)({renderer:this._renderer,seriesGroup:this._seriesGroup,labelsGroup:this._labelsGroup,eventTrigger:this._eventTrigger,eventPipe:$t,incidentOccurred:Oe},ma),Yn),Ye.isUpdated?(Ye.index=this.series.length,this.series.push(Ye)):Oe("E2101",[Yn.type])}),this.series},getStackedPoints(y){var H=y.series.getStackName();return this._getVisibleSeries().reduce((Z,Oe)=>((!(0,R.O9)(Oe.getStackName())||!(0,R.O9)(H)||H===Oe.getStackName())&&(Z=Z.concat(Oe.getPointsByArg(y.argument))),Z),[])},getAllSeries:function(){return(this.series||[]).slice()},getSeriesByName:function(y){var H=(this.series||[]).find(Z=>Z.name===y);return H||null},getSeriesByPos:function(y){return(this.series||[])[y]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip(){this._tracker._hideTooltip()},clearHover(){this._tracker.clearHover()},render(y){return this.__renderOptions=y,this.__forceRender=y&&y.force,this.callBase.apply(this,arguments),this.__renderOptions=this.__forceRender=null,this},refresh(){this._disposeSeries(),this._disposeSeriesFamilies(),this._requestChange(["CONTAINER_SIZE","REFRESH_SERIES_REINIT"])},_getMinSize(){var y=this._layoutManagerOptions();return[y.width,y.height]},_change_REFRESH(){this._changes.has("INIT")?this._currentRefreshData=null:this._doRefresh()},_change_FULL_RENDER(){this._forceRender()},_change_INIT(){this._reinit()},_stopCurrentHandling(){this._disposed||this._tracker.stopCurrentHandling()}});["series","commonSeriesSettings","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","synchronizeMultiAxes","resolveLabelsOverlapping"].forEach(y=>{Nc.prototype._optionChangesMap[y]="REFRESH_SERIES_DATA_INIT"}),["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","stickyHovering"].forEach(y=>{Nc.prototype._optionChangesMap[y]="FORCE_RENDER"}),["minBubbleSize","maxBubbleSize","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"].forEach(y=>{Nc.prototype._optionChangesMap[y]="REFRESH_SERIES_FAMILIES"}),Nc.addPlugin(ro),Nc.addPlugin(Ei),Nc.addPlugin(eu),Nc.addPlugin(Sp.I),Nc.addPlugin(nl);var{_change_TITLE:z_}=Nc.prototype;Nc.prototype._change_TITLE=function(){z_.apply(this,arguments),this._change(["FORCE_RENDER"])}},55581:(ei,rt,D)=>{"use strict";D.d(rt,{u:()=>_,x:()=>m});var r=D(14435),d=D(435),L=(0,r.Vd)()?(0,r.zk)():{},o=function(v){return setTimeout(v,16.666666666666668)},E=function(v){clearTimeout(v)},R=(0,d.A)(function(){var v=L.requestAnimationFrame||L.webkitRequestAnimationFrame||L.mozRequestAnimationFrame||L.oRequestAnimationFrame||L.msRequestAnimationFrame,h=L.cancelAnimationFrame||L.webkitCancelAnimationFrame||L.mozCancelAnimationFrame||L.oCancelAnimationFrame||L.msCancelAnimationFrame;v&&h&&(o=v,E=h)});function m(){return R(),o.apply(L,arguments)}function _(){R(),E.apply(L,arguments)}},3930:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>an});var r=D(24292),d=D(14435),L=D(91269),j=D(87550),o=D(60181),E=D(87951),R=D(72463),m=D(12101),_=D(12824),v=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,h={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},b={},O=function(xi){var Ht,Je=(xi=h[xi]||xi).match(v);Je||(Je=h[Ht="linear"].match(v)),Je=Je.slice(1,5);for(var gi=0;gi<Je.length;gi++)Je[gi]=parseFloat(Je[gi]);var Ti=Ht||"cubicbezier_"+Je.join("_").replace(/\./g,"p");return(0,R.Tn)(b[Ti])||(b[Ti]=function(ni,wi,ui,cn,Ui){return cn*function(xi,Je,Ht,gi){var Ti=3*xi,ni=3*(Ht-xi)-Ti,wi=1-Ti-ni,ui=3*Je,cn=3*(gi-Je)-ui,Ui=1-ui-cn,Xi=function(Ut){return Ut*(Ti+Ut*(ni+Ut*wi))},Qi=function(Ut){return Ti+Ut*(2*ni+3*Ut*wi)};return function(Ut){return(It=function(It){for(var st,yt=It,pt=0;pt<14&&(st=Xi(yt)-It,!(Math.abs(st)<.001));)yt-=st/Qi(yt),pt++;return yt}(Ut))*(ui+It*(cn+It*Ui));var It}}(Je[0],Je[1],Je[2],Je[3])(wi/Ui)+ui}),Ti},k=D(55581),I=D(19900),x=D(4441),g=D(20675),C=D(49104),F=D(12984),Y=D(5042),Q=(0,d.zk)(),se=(0,C.b4)(g.N,"dxFX"),ie=/^([+-])=(.*)/i,ee="dxAnimData",re="dxAnimQueue",ne="transform",_e={initAnimation:function(xi,Je){xi.css({transitionProperty:"none"}),"string"==typeof Je.from?xi.addClass(Je.from):Tt(xi,Je.from);var Ht=this,gi=new F.cY,Ti=Je.cleanupWhen;Je.transitionAnimation={deferred:gi,finish:function(){Ht._finishTransition(xi),Ti?(0,F.z7)(gi,Ti).always(function(){Ht._cleanup(xi,Je)}):Ht._cleanup(xi,Je),gi.resolveWith(xi,[Je,xi])}},this._completeAnimationCallback(xi,Je).done(function(){Je.transitionAnimation.finish()}).fail(function(){gi.rejectWith(xi,[Je,xi])}),Je.duration||Je.transitionAnimation.finish(),xi.css("transform")},animate:function(xi,Je){return this._startAnimation(xi,Je),Je.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(xi,Je){var ui,Ht=this,gi=Date.now()+Je.delay,Ti=new F.cY,ni=new F.cY,wi=new F.cY,cn=(0,I.transitionEndEventName)()+".dxFX";Je.transitionAnimation.cleanup=function(){clearTimeout(ui),clearTimeout(Ui),L.A.off(xi,cn),L.A.off(xi,se)},L.A.one(xi,cn,function(){Date.now()-gi>=Je.duration&&ni.reject()}),L.A.off(xi,se),L.A.on(xi,se,function(){Ht.stop(xi,Je),Ti.reject()});var Ui=setTimeout(function(){ui=setTimeout(function(){wi.reject()},Je.duration+Je.delay+li._simulatedTransitionEndDelay),(0,F.z7)(ni,wi).fail(function(){Ti.resolve()}.bind(this))});return Ti.promise()},_startAnimation:function(xi,Je){xi.css({transitionProperty:"all",transitionDelay:Je.delay+"ms",transitionDuration:Je.duration+"ms",transitionTimingFunction:Je.easing}),"string"==typeof Je.to?xi[0].className+=" "+Je.to:Je.to&&Tt(xi,Je.to)},_finishTransition:function(xi){xi.css("transition","none")},_cleanup:function(xi,Je){Je.transitionAnimation.cleanup(),"string"==typeof Je.from&&(xi.removeClass(Je.from),xi.removeClass(Je.to))},stop:function(xi,Je,Ht){Je&&(Ht?Je.transitionAnimation.finish():((0,R.Qd)(Je.to)&&(0,m.__)(Je.to,function(gi){xi.css(gi,xi.css(gi))}),this._finishTransition(xi),this._cleanup(xi,Je)))}},be={initAnimation:function(xi,Je){Tt(xi,Je.from)},animate:function(xi,Je){var Ht=new F.cY,gi=this;return Je?((0,m.__)(Je.to,function(Ti){void 0===Je.from[Ti]&&(Je.from[Ti]=gi._normalizeValue(xi.css(Ti)))}),Je.to[ne]&&(Je.from[ne]=gi._parseTransform(Je.from[ne]),Je.to[ne]=gi._parseTransform(Je.to[ne])),Je.frameAnimation={to:Je.to,from:Je.from,currentValue:Je.from,easing:O(Je.easing),duration:Je.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),(0,k.u)(Je.frameAnimation.animationFrameId),Ht.resolve()},draw:function(){if(Je.draw)Je.draw(this.currentValue);else{var Ti=(0,E.X)({},this.currentValue);Ti[ne]&&(Ti[ne]=(0,m.Tj)(Ti[ne],function(ni,wi){return"translate"===wi?(0,_.Oj)(ni):"scale"===wi?"scale("+ni+")":"rotate"===wi.substr(0,wi.length-1)?wi+"("+ni+"deg)":void 0}).join(" ")),xi.css(Ti)}}},Je.delay?(Je.frameAnimation.startTime+=Je.delay,Je.frameAnimation.delayTimeout=setTimeout(function(){gi._startAnimation(xi,Je)},Je.delay)):gi._startAnimation(xi,Je),Ht.promise()):Ht.reject().promise()},_startAnimation:function(xi,Je){L.A.off(xi,se),L.A.on(xi,se,function(){Je.frameAnimation&&(0,k.u)(Je.frameAnimation.animationFrameId)}),this._animationStep(xi,Je)},_parseTransform:function(xi){var Je={};return(0,m.__)(xi.match(/\w+\d*\w*\([^)]*\)\s*/g),function(Ht,gi){var Ti=(0,_.g)(gi),ni=gi.match(/scale\((.+?)\)/),wi=gi.match(/(rotate.)\((.+)deg\)/);Ti&&(Je.translate=Ti),ni&&ni[1]&&(Je.scale=parseFloat(ni[1])),wi&&wi[1]&&(Je[wi[1]]=parseFloat(wi[2]))}),Je},stop:function(xi,Je,Ht){var gi=Je&&Je.frameAnimation;gi&&((0,k.u)(gi.animationFrameId),clearTimeout(gi.delayTimeout),Ht&&gi.finish(),delete Je.frameAnimation)},_animationStep:function(xi,Je){var Ht=Je&&Je.frameAnimation;if(Ht){var gi=(new Date).valueOf();if(gi>=Ht.startTime+Ht.duration)return void Ht.finish();Ht.currentValue=this._calcStepValue(Ht,gi-Ht.startTime),Ht.draw();var Ti=this;Ht.animationFrameId=(0,k.x)(function(){Ti._animationStep(xi,Je)})}},_calcStepValue:function(xi,Je){return function Ht(gi,Ti){var ni=Array.isArray(Ti)?[]:{};return(0,m.__)(Ti,function(wi,ui){if("string"==typeof ui&&!1===parseFloat(ui))return!0;var cn,Ui,Xi,Qi,Ut,It;ni[wi]="object"==typeof ui?Ht(gi[wi],ui):(Ui=Je/xi.duration,Xi=Je,Qi=1*gi[cn=wi],Ut=Ti[cn]-gi[cn],It=xi.duration,function f(xi){return b[xi]}(xi.easing)(Ui,Xi,Qi,Ut,It))}),ni}(xi.from,xi.to)},_normalizeValue:function(xi){var Je=parseFloat(xi);return!1===Je?xi:Je}},oe={initAnimation:function(){},animate:function(){return(new F.cY).resolve().promise()},stop:Y.lQ,isSynchronous:!0},we=function(xi,Je,Ht,gi){(0,m.__)(["from","to"],function(){if(!Ht(xi[this]))throw j.A.Error("E0010",Je,this,gi)})},N=function(xi,Je){return we(xi,Je,function(Ht){return(0,R.Qd)(Ht)},"a plain object")},X={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},q={validateConfig:function(xi){N(xi,"slide")},setup:function(xi,Je){var Ht=(0,_.x5)(xi);if("slide"!==Je.type){var gi="slideIn"===Je.type?Je.from:Je.to;gi.position=(0,E.X)({of:Q},X[Je.direction]),ot(xi,gi)}this._setUpConfig(Ht,Je.from),this._setUpConfig(Ht,Je.to),(0,_.IL)(xi)},_setUpConfig:function(xi,Je){Je.left="left"in Je?Je.left:"+=0",Je.top="top"in Je?Je.top:"+=0",this._initNewPosition(xi,Je)},_initNewPosition:function(xi,Je){var Ht={left:Je.left,top:Je.top};delete Je.left,delete Je.top;var gi=this._getRelativeValue(Ht.left);void 0!==gi?Ht.left=gi+xi.left:Je.left=0,void 0!==(gi=this._getRelativeValue(Ht.top))?Ht.top=gi+xi.top:Je.top=0,Je[ne]=(0,_.Oj)({x:Ht.left,y:Ht.top})},_getRelativeValue:function(xi){var Je;if("string"==typeof xi&&(Je=ie.exec(xi)))return parseInt(Je[1]+"1")*Je[2]}},ye={setup:function(xi,Je){var Ht,gi,Ti=Je.from,ni=Je.to,wi="fadeOut"===Je.type?1:0,ui="fadeOut"===Je.type?0:1,cn=(0,R.Qd)(Ti)?String(null!==(Ht=Ti.opacity)&&void 0!==Ht?Ht:wi):String(Ti),Ui=(0,R.Qd)(ni)?String(null!==(gi=ni.opacity)&&void 0!==gi?gi:ui):String(ni);switch(Je.skipElementInitialStyles||(cn=xi.css("opacity")),Je.type){case"fadeIn":Ui=1;break;case"fadeOut":Ui=0}Je.from={visibility:"visible",opacity:cn},Je.to={opacity:Ui}}},ge={custom:{setup:function(){}},slide:q,slideIn:q,slideOut:q,fade:ye,fadeIn:ye,fadeOut:ye,pop:{validateConfig:function(xi){N(xi,"pop")},setup:function(xi,Je){var Ht=Je.from,gi=Je.to,Ti="opacity"in Ht?Ht.opacity:xi.css("opacity"),ni="opacity"in gi?gi.opacity:1,wi="scale"in Ht?Ht.scale:0,ui="scale"in gi?gi.scale:1;Je.from={opacity:Ti};var cn=(0,_.ro)(xi);Je.from[ne]=this._getCssTransform(cn,wi),Je.to={opacity:ni},Je.to[ne]=this._getCssTransform(cn,ui)},_getCssTransform:function(xi,Je){return(0,_.Oj)(xi)+"scale("+Je+")"}},css:{validateConfig:function(xi){!function(xi,Je){we(xi,"css",function(Ht){return"string"==typeof Ht},"a string")}(xi)},setup:function(){}}},he={type:"custom",from:{},to:{},duration:400,start:Y.lQ,complete:Y.lQ,easing:"ease",delay:0},Ie={duration:400,easing:"ease",delay:0};function ce(){var xi=this.element,Je=this.config;if(ot(xi,Je.from),ot(xi,Je.to),this.configurator.setup(xi,Je),xi.data(ee,this),li.off&&(Je.duration=0,Je.delay=0),this.strategy.initAnimation(xi,Je),Je.start){var Ht=(0,o.c)(xi);Je.start.apply(this,[Ht,Je])}}var pe=function(){var xi=this,Je=xi.element,Ht=xi.config;return xi.isStarted=!0,xi.strategy.animate(Je,Ht).done(function(){!function(xi){var Je=xi.element,Ht=xi.config;if(Je.removeData(ee),Ht.complete){var gi=(0,o.c)(Je);Ht.complete.apply(this,[gi,Ht])}xi.deferred.resolveWith(this,[Je,Ht])}(xi)}).fail(function(){xi.deferred.rejectWith(this,[Je,Ht])})},Be=function(xi){var Je=this.element,Ht=this.config;clearTimeout(this.startTimeout),this.isStarted||this.start(),this.strategy.stop(Je,Ht,xi)},We=(0,C.b4)(g.N,"dxFXStartAnimation"),vt=function(xi,Je){var gi=(0,E.X)(!0,{},"css"===Je.type?Ie:he,Je),Ti=function(xi){var Je=ge[xi.type];if(!Je)throw j.A.Error("E0011",xi.type);return Je}(gi),ni=function(xi){xi=xi||{};var Je={transition:(0,I.transition)()?_e:be,frame:be,noAnimation:oe},Ht=xi.strategy||"transition";return"css"===xi.type&&!(0,I.transition)()&&(Ht="noAnimation"),Je[Ht]}(gi),wi={element:(0,r.A)(xi),config:gi,configurator:Ti,strategy:ni,isSynchronous:ni.isSynchronous,setup:ce,start:pe,stop:Be,deferred:new F.cY};return(0,R.Tn)(Ti.validateConfig)&&Ti.validateConfig(gi),function(xi){L.A.off(xi.element,We),L.A.on(xi.element,We,function(){li.stop(xi.element)}),xi.deferred.always(function(){L.A.off(xi.element,We)})}(wi),wi};function Qe(xi){return xi.data(re)||[]}var Lt=function(xi){xi.removeData(re)};function wt(xi){return!!xi.data(ee)}function Mt(xi,Je){if((Je=Qe(xi)).length){var Ht=Je.shift();0===Je.length&&Lt(xi),function Ge(xi){return xi.setup(),li.off||xi.isSynchronous?xi.start():xi.startTimeout=setTimeout(function(){xi.start()}),xi.deferred.promise()}(Ht).done(function(){wt(xi)||Mt(xi)})}}function ot(xi,Je){if(Je&&Je.position){var Ht=(0,r.A)(Q),gi=0,Ti=0,ni=x.A.calculate(xi,Je.position),wi=xi.offset(),ui=xi.position();ui.top>wi.top&&(Ti=Ht.scrollTop()),ui.left>wi.left&&(gi=Ht.scrollLeft()),(0,E.X)(Je,{left:ni.h.location-wi.left+ui.left-gi,top:ni.v.location-wi.top+ui.top-Ti}),delete Je.position}}function Tt(xi,Je){(0,m.__)(Je,function(Ht,gi){try{xi.css(Ht,(0,R.Tn)(gi)?gi():gi)}catch{}})}var li={off:!1,animationTypes:ge,animate:function(xi,Je){var Ht=(0,r.A)(xi);if(!Ht.length)return(new F.cY).resolve().promise();var gi=vt(Ht,Je);return function Nt(xi,Je){var Ht=Qe(xi);(function Et(xi,Je){xi.data(re,Je)})(xi,Ht),Ht.push(Je),wt(xi)||Mt(xi,Ht)}(Ht,gi),gi.deferred.promise()},createAnimation:vt,isAnimating:wt,stop:function(xi,Je){var Ht=(0,r.A)(xi),gi=Qe(Ht);(0,m.__)(gi,function(ni,wi){wi.config.delay=0,wi.config.duration=0,wi.isSynchronous=!0}),wt(Ht)||Mt(Ht,gi);var Ti=Ht.data(ee);Ti&&Ti.stop(Je),Ht.removeData(ee),Lt(Ht)},_simulatedTransitionEndDelay:100};const an=li},4441:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>z});var _e,r=D(80186),d=D(24292),L=D(5042),j=D(12101),o=D(14435),E=D(17669),R=D(72463),m=D(87951),_=D(50448),v=D(29263),h=D(12824),s=D(19900),b=D(23862),O=D(5918),w=(0,o.zk)(),f=/left|right/,k=/top|bottom/,I=/fit|flip|none/,x=/scale\(.+?\)/,g=v.A.safari,C=function(X){var q={h:"center",v:"center"},ye=(0,L.T6)(X);return ye&&(0,j.__)(ye,function(){var xe=String(this).toLowerCase();f.test(xe)?q.h=xe:k.test(xe)&&(q.v=xe)}),q},F=function(X,q){return(0,L.Li)(X,q)},Q=function(X){switch(X){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},se=function(X){switch(X){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return X}},ie=function(X,q){var ye=0;return X.myLocation<q.min&&(ye+=q.min-X.myLocation),X.myLocation>q.max&&(ye+=X.myLocation-q.max),ye},ee=function(X,q,ye){return q.myLocation<ye.min?"h"===X?"left":"top":q.myLocation>ye.max?"h"===X?"right":"bottom":"none"},re=function(X){X.myLocation=X.atLocation+Q(X.atAlign)*X.atSize-Q(X.myAlign)*X.mySize+X.offset},ne={fit:function(X,q){var ye=!1;X.myLocation>q.max&&(X.myLocation=q.max,ye=!0),X.myLocation<q.min&&(X.myLocation=q.min,ye=!0),X.fit=ye},flip:function(X,q){if(X.flip=!1,("center"!==X.myAlign||"center"!==X.atAlign)&&(X.myLocation<q.min||X.myLocation>q.max)){var ye=(0,m.X)({},X,{myAlign:se(X.myAlign),atAlign:se(X.atAlign),offset:-X.offset});re(ye),ye.oversize=ie(ye,q),(ye.myLocation>=q.min&&ye.myLocation<=q.max||X.oversize>ye.oversize)&&(X.myLocation=ye.myLocation,X.oversize=ye.oversize,X.flip=!0)}},flipfit:function(X,q){this.flip(X,q),this.fit(X,q)},none:function(X){X.oversize=0}},be=function(){var X=(0,d.A)("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo((0,d.A)("body")),q=X.get(0).offsetWidth-X.get(0).clientWidth;X.remove(),_e=q},oe={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},me=function(X,q){var ye=(0,d.A)(X),xe=ye.offset(),ge=(0,m.X)(!0,{},oe,{h:{location:xe.left},v:{location:xe.top}});if(!q)return ge;var Ee=C(q.my),he=C(q.at),Ie=(0,d.A)(q.of).length&&q.of||w,ce=F(q.offset,q.precise),de=function(X){var q=(0,L.T6)(X),ye=String(q&&q[0]).toLowerCase(),xe=String(q&&q[1]).toLowerCase();return I.test(ye)||(ye="none"),I.test(xe)||(xe=ye),{h:ye,v:xe}}(q.collision),pe=q.boundary,Be=F(q.boundaryOffset,q.precise),We={mySize:(0,r.Ot)(ye),myAlign:Ee.h,atAlign:he.h,offset:ce.h,collision:de.h,boundaryOffset:Be.h},tt={mySize:(0,r.P$)(ye),myAlign:Ee.v,atAlign:he.v,offset:ce.v,collision:de.v,boundaryOffset:Be.v};if(Ie.preventDefault)We.atLocation=Ie.pageX,tt.atLocation=Ie.pageY,We.atSize=0,tt.atSize=0;else if(Ie=(0,d.A)(Ie),(0,R.l6)(Ie[0]))We.atLocation=Ie.scrollLeft(),tt.atLocation=Ie.scrollTop(),"phone"===b.A.real().deviceType&&Ie[0].visualViewport?(We.atLocation=Math.max(We.atLocation,Ie[0].visualViewport.offsetLeft),tt.atLocation=Math.max(tt.atLocation,Ie[0].visualViewport.offsetTop),We.atSize=Ie[0].visualViewport.width,tt.atSize=Ie[0].visualViewport.height):(We.atSize=Ie[0].innerWidth>Ie[0].outerWidth?Ie[0].innerWidth:(0,r.RG)(Ie),tt.atSize=Ie[0].innerHeight>Ie[0].outerHeight||g?Ie[0].innerHeight:(0,r.Oq)(Ie));else if(9===Ie[0].nodeType)We.atLocation=0,tt.atLocation=0,We.atSize=(0,r.RG)(Ie),tt.atSize=(0,r.Oq)(Ie);else{var vt=(0,_.N)(Ie.get(0)),Xt=N(Ie);We.atLocation=Xt.left,tt.atLocation=Xt.top,We.atSize=Math.max(vt.width,(0,r.Ot)(Ie)),tt.atSize=Math.max(vt.height,(0,r.P$)(Ie))}re(We),re(tt);var Nt=function(){var Et=(0,d.A)(w),Lt=(0,r.RG)(Et),wt=(0,r.Oq)(Et),Mt=Et.scrollLeft(),Ge=Et.scrollTop(),ot=E.A.getDocumentElement(),Tt=s.touch?ot.clientWidth/Lt:1,jt=s.touch?ot.clientHeight/wt:1;void 0===_e&&be();var li=Lt,an=wt;if(pe&&!(0,R.l6)(pe)){var xi=(0,d.A)(pe),Je=xi.offset();Mt=Je.left,Ge=Je.top,li=(0,r.RG)(xi),an=(0,r.Oq)(xi)}return{h:{min:Mt+We.boundaryOffset,max:Mt+li/Tt-We.mySize-We.boundaryOffset},v:{min:Ge+tt.boundaryOffset,max:Ge+an/jt-tt.mySize-tt.boundaryOffset}}}();We.oversize=ie(We,Nt.h),tt.oversize=ie(tt,Nt.v),We.collisionSide=ee("h",We,Nt.h),tt.collisionSide=ee("v",tt,Nt.v),ne[We.collision]&&ne[We.collision](We,Nt.h),ne[tt.collision]&&ne[tt.collision](tt,Nt.v);var Qe=function(Et){return q.precise?Et:Math.round(Et)};return(0,m.X)(!0,ge,{h:{location:Qe(We.myLocation),oversize:Qe(We.oversize),fit:We.fit,flip:We.flip,collisionSide:We.collisionSide},v:{location:Qe(tt.myLocation),oversize:Qe(tt.oversize),fit:tt.fit,flip:tt.flip,collisionSide:tt.collisionSide},precise:q.precise}),ge},we=function(X,q,ye,xe){var ge=(0,R.O9)(X.style)&&!E.A.isNode(X.style),Ee=xe?ye.replace(q,""):ye;if(ge)(0,O.eC)(X,Ee,!1);else{var he=E.A.createAttribute("style");he.value=Ee,X.setAttributeNode(he)}},N=function X(q){var ye,xe,ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q,Ee=ge.get(0);if(!Ee)return q.offset();var ce,he=(null===(ye=Ee.getAttribute)||void 0===ye?void 0:ye.call(Ee,"style"))||"",Ie=null===(xe=he.match(x))||void 0===xe?void 0:xe[0];return Ie?(we(Ee,Ie,he,!0),ce=X(q,ge.parent()),we(Ee,Ie,he,!1)):ce=X(q,ge.parent()),ce},G=function(X,q){var ye=(0,d.A)(X);if(!q)return ye.offset();(0,h.fw)(ye,!0);var xe=N(ye),ge=q.h&&q.v?q:me(ye,q),Ee=function(he){return q.precise?he:Math.round(he)};return(0,h.Cy)(ye,{left:ge.h.location-Ee(xe.left),top:ge.v.location-Ee(xe.top)}),ge};G.inverseAlign||(G.inverseAlign=se),G.normalizeAlign||(G.normalizeAlign=C);const z={calculateScrollbarWidth:be,calculate:me,setup:G,offset:function(X){return X=(0,d.A)(X).get(0),(0,R.l6)(X)?null:X&&"pageY"in X&&"pageX"in X?{top:X.pageY,left:X.pageX}:(0,d.A)(X).offset()}}},12824:(ei,rt,D)=>{"use strict";D.d(rt,{Cy:()=>b,IL:()=>v,Oj:()=>h,fw:()=>O,g:()=>w,ro:()=>s,x5:()=>R});var r=D(24292),d=D(98332),L=D(72463),j="dxTranslator",o=/matrix(3d)?\((.+?)\)/,E=/translate(?:3d)?\((.+?)\)/,R=function(f){f=(0,r.A)(f);var k=s(f);return{left:k.x,top:k.y}};function m(f){return"string"===(0,L.NW)(f)&&"%"===f[f.length-1]}function _(f,k){f.length&&(0,d.p)(f.get(0),j,k)}var v=function(f){f.length&&(0,d.jf)(f.get(0),j)},h=function(f){return f.x=f.x||0,f.y=f.y||0,"translate("+(m(f.x)?f.x:f.x+"px")+", "+(m(f.y)?f.y:f.y+"px")+")"},s=function(f){var k=f.length?(0,d.p)(f.get(0),j):null;if(!k){var x=(f.css("transform")||h({x:0,y:0})).match(o),g=x&&x[1];x?(x=x[2].split(","),"3d"===g?x=x.slice(12,15):(x.push(0),x=x.slice(4,7))):x=[0,0,0],_(f,k={x:parseFloat(x[0]),y:parseFloat(x[1]),z:parseFloat(x[2])})}return k},b=function(f,k){f=(0,r.A)(f);var g,I=k.left,x=k.top;void 0===I?(g=s(f)).y=x||0:void 0===x?(g=s(f)).x=I||0:_(f,g={x:I||0,y:x||0,z:0}),f.css({transform:h(g)}),(m(I)||m(x))&&v(f)},O=function(f,k){f=(0,r.A)(f);var I,x={left:0,top:0,transform:"none"};k&&(I=f.css("transition"),x.transition="none"),f.css(x),v(f),k&&(f.get(0),f.css("transition",I))},w=function(f){var k=f.match(E);if(k&&k[1])return k=k[1].split(","),{x:parseFloat(k[0]),y:parseFloat(k[1]),z:parseFloat(k[2])}}},34090:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>I});var r={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",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"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",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightslategrey:"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",slategrey:"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"},d=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(x){return[parseInt(x[1],10),parseInt(x[2],10),parseInt(x[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(x){return[parseInt(x[1],10),parseInt(x[2],10),parseInt(x[3],10),parseFloat(x[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(x){return[parseInt(x[1],16),parseInt(x[2],16),parseInt(x[3],16)]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(x){return[parseInt(x[1],16),parseInt(x[2],16),parseInt(x[3],16),Number((parseInt(x[4],16)/255).toFixed(2))]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(x){return[parseInt(x[1]+x[1],16),parseInt(x[2]+x[2],16),parseInt(x[3]+x[3],16),Number((parseInt(x[4]+x[4],16)/255).toFixed(2))]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(x){return[parseInt(x[1]+x[1],16),parseInt(x[2]+x[2],16),parseInt(x[3]+x[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(x){var g=parseInt(x[1],10),C=parseInt(x[2],10),F=parseInt(x[3],10),Y=_(g,C,F);return[Y[0],Y[1],Y[2],1,[g,C,F]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(x){var g=parseInt(x[1],10),C=parseInt(x[2],10),F=parseInt(x[3],10),Y=w(g,C,F);return[Y[0],Y[1],Y[2],1,null,[g,C,F]]}}],L=Math.round;function j(x){var g;this.baseColor=x,x&&(g=String(x).toLowerCase().replace(/ /g,""),g=function o(x){if("transparent"===x)return[0,0,0,0];for(var F,g=0,C=d.length;g<C;++g)if(F=d[g].re.exec(x))return d[g].process(F);return null}(g=r[g]?"#"+r[g]:g)),g||(this.colorIsInvalid=!0),this.r=E((g=g||{})[0]),this.g=E(g[1]),this.b=E(g[2]),this.a=E(g[3],1,1),this.hsv=g[4]?{h:g[4][0],s:g[4][1],v:g[4][2]}:function m(x,g,C){var se,ie,F=Math.max(x,g,C),Y=Math.min(x,g,C),Q=F-Y,ee=F;if(ie=0===F?0:1-Y/F,F===Y)se=0;else switch(F){case x:se=(g-C)/Q*60,g<C&&(se+=360);break;case g:se=(C-x)/Q*60+120;break;case C:se=(x-g)/Q*60+240}return ie*=100,ee*=100/255,{h:Math.round(se),s:Math.round(ie),v:Math.round(ee)}}(this.r,this.g,this.b),this.hsl=g[5]?{h:g[5][0],s:g[5][1],l:g[5][2]}:function h(x,g,C){x=f(x,255),g=f(g,255),C=f(C,255);var se,ie,F=Math.max(x,g,C),Y=Math.min(x,g,C),Q=F+Y,ee=Q/2;if(F===Y)se=ie=0;else{var re=F-Y;ie=ee>.5?re/(2-Q):re/Q,se=function v(x,g,C,F){switch(Math.max(x,g,C)){case x:return(g-C)/F+(g<C?6:0);case g:return(C-x)/F+2;case C:return(x-g)/F+4}}(x,g,C,re),se/=6}return{h:L(360*se),s:L(100*ie),l:L(100*ee)}}(this.r,this.g,this.b)}function E(x,g,C){return g=g||0,C=C||255,x<0||isNaN(x)?g:x>C?C:x}function _(x,g,C){var ee,re,ne,Y=(100-g)*C/100,Q=x%60/60*(C-Y),se=Y+Q,ie=C-Q;switch(Math.floor(x%360/60)){case 0:ee=C,re=se,ne=Y;break;case 1:ee=ie,re=C,ne=Y;break;case 2:ee=Y,re=C,ne=se;break;case 3:ee=Y,re=ie,ne=C;break;case 4:ee=se,re=Y,ne=C;break;case 5:ee=C,re=Y,ne=ie}return[Math.round(2.55*ee),Math.round(2.55*re),Math.round(2.55*ne)]}function s(x,g){var C=g;return"r"===x&&(C=g+1/3),"b"===x&&(C=g-1/3),C}function O(x,g,C){return C=function b(x){return x<0&&(x+=1),x>1&&(x-=1),x}(C),C<1/6?x+6*(g-x)*C:C<.5?g:C<2/3?x+(g-x)*(2/3-C)*6:x}function w(x,g,C){var F,Y,Q;if(x=f(x,360),g=f(g,100),C=f(C,100),0===g)F=Y=Q=C;else{var se=C<.5?C*(1+g):C+g-C*g,ie=2*C-se;F=O(ie,se,s("r",x)),Y=O(ie,se,s("g",x)),Q=O(ie,se,s("b",x))}return[L(255*F),L(255*Y),L(255*Q)]}function f(x,g){return x=Math.min(g,Math.max(0,parseFloat(x))),Math.abs(x-g)<1e-6?1:x%g/parseFloat(g)}function k(x,g,C){return g=g||0,C=C||255,!(x%1!=0||x<g||x>C||"number"!=typeof x||isNaN(x))}j.prototype={constructor:j,highlight:function(x){return this.alter(x=x||10).toHex()},darken:function(x){return this.alter(-(x=x||10)).toHex()},alter:function(x){var g=new j;return g.r=E(this.r+x),g.g=E(this.g+x),g.b=E(this.b+x),g},blend:function(x,g){var C=x instanceof j?x:new j(x),F=new j;return F.r=E(L(this.r*(1-g)+C.r*g)),F.g=E(L(this.g*(1-g)+C.g*g)),F.b=E(L(this.b*(1-g)+C.b*g)),F},toHex:function(){return function R(x,g,C){return"#"+(16777216|x<<16|g<<8|C).toString(16).slice(1)}(this.r,this.g,this.b)},getPureColor:function(){return new j("rgb("+_(this.hsv.h,100,100).join(",")+")")},isValidHex:function(x){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(x)},isValidRGB:function(x,g,C){return!(!k(x)||!k(g)||!k(C))},isValidAlpha:function(x){return!(isNaN(x)||x<0||x>1||"number"!=typeof x)},colorIsInvalid:!1,fromHSL:function(x){var g=new j,C=w(x.h,x.s,x.l);return g.r=C[0],g.g=C[1],g.b=C[2],g}};const I=j},75135:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>o});var r=D(24292),d=D(14435),L=D(72463),j=D(12101);let o=(()=>{class R{constructor(_,v){v=v||{},this._action=_,this._context=v.context||(0,d.zk)(),this._beforeExecute=v.beforeExecute,this._afterExecute=v.afterExecute,this._component=v.component,this._validatingTargetName=v.validatingTargetName;var h=this._excludeValidators={};if(v.excludeValidators)for(var s=0;s<v.excludeValidators.length;s++)h[v.excludeValidators[s]]=!0}execute(){var _={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},v=this._beforeExecute,h=this._afterExecute,s=_.args[0]||{};if(this._validateAction(_)&&(v?.call(this._context,_),!_.cancel)){var b=this._executeAction(_);if(!s.cancel)return h?.call(this._context,_),b}}_validateAction(_){var v=this._excludeValidators,{executors:h}=R;for(var s in h)if(!v[s]){var b,O=h[s];if(null===(b=O.validate)||void 0===b||b.call(O,_),_.cancel)return!1}return!0}_executeAction(_){var v,{executors:h}=R;for(var s in h){var b,O=h[s];if(null===(b=O.execute)||void 0===b||b.call(O,_),_.handled){v=_.result;break}}return v}static registerExecutor(_,v){(0,L.Qd)(_)?(0,j.__)(_,R.registerExecutor):R.executors[_]=v}static unregisterExecutor(){for(var _=arguments.length,v=new Array(_),h=0;h<_;h++)v[h]=arguments[h];(0,j.__)(v,function(){delete R.executors[this]})}}return R.executors={},R})();var E=R=>m=>{if(m.args.length){var _=m.args[0],v=_[m.validatingTargetName]||_.element;v&&R((0,r.A)(v))&&(m.cancel=!0)}};o.registerExecutor({disabled:{validate:E(R=>R.is(".dx-state-disabled, .dx-state-disabled *"))},readOnly:{validate:E(R=>R.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)"))},undefined:{execute:R=>{R.action||(R.result=void 0,R.handled=!0)}},func:{execute:R=>{(0,L.Tn)(R.action)&&(R.result=R.action.call(R.context,R.args[0]),R.handled=!0)}}})},56221:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>h});var r=D(87550),d=D(72463),L=function(s,b,O){return function(){var w=this.callBase;this.callBase=s[b];try{return O.apply(this,arguments)}finally{this.callBase=w}}},o=function(s){var O,w;if(!s)return this;for(O in s)w=s[O],this.prototype[O]="function"==typeof this.prototype[O]&&"function"==typeof w?L(this.parent.prototype,O,w):w;return this},E=function(){var b,O,w,s=this,f=Object.prototype.hasOwnProperty.bind(s);for(!f("_includedCtors")&&!f("_includedPostCtors")&&(s._includedCtors=s._includedCtors.slice(0),s._includedPostCtors=s._includedPostCtors.slice(0)),w=0;w<arguments.length;w++)for(O in(b=arguments[w]).ctor&&s._includedCtors.push(b.ctor),b.postCtor&&s._includedPostCtors.push(b.postCtor),b)"ctor"===O||"postCtor"===O||"default"===O||(s.prototype[O]=b[O]);return s},R=function(s){if(!Object.prototype.hasOwnProperty.bind(this)("parent")&&this.parent){var w=Object.getPrototypeOf(this);return w===s||w.subclassOf(s)}return this.parent===s||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(s)},m=function(){throw r.A.Error("E0001")},_=function(){var s=Object.prototype.hasOwnProperty;return function(b,O){for(var w in b){if(!s.call(b,w))return;O[w]=b[w]}}}(),v=function(){};v.inherit=function(s){var b=function(){if(!this||(0,d.l6)(this)||"function"!=typeof this.constructor)throw r.A.Error("E0003");var I,O=this,w=O.ctor,f=O.constructor._includedCtors,k=O.constructor._includedPostCtors;for(I=0;I<f.length;I++)f[I].call(O);for(w&&w.apply(O,arguments),I=0;I<k.length;I++)k[I].call(O)};return b.prototype=function(s){var b=function(){};return b.prototype=s.prototype,new b}(this),_(this,b),b.inherit=this.inherit,b.abstract=m,b.redefine=o,b.include=E,b.subclassOf=R,b.parent=this,b._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],b._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],b.prototype.constructor=b,b.redefine(s),b},v.abstract=m;const h=v},64905:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>m});var r=D(24292);const L=new(D(57544).A);var j=D(87550),o=D(9690);L.add(function(_,v){r.A.fn[_]=function(h){var b;if("string"==typeof h){var O=h,w=[].slice.call(arguments).slice(1);this.each(function(){var f=v.getInstance(this);if(!f)throw j.A.Error("E0009",_);var I=f[O].apply(f,w);void 0===b&&(b=I)})}else this.each(function(){var f=v.getInstance(this);f?f.option(h):new v(this,h)}),b=this;return b}});const m=function(_,v,h){h?v[_]=h:h=v,(0,o.UU)(h,_),L.fire(_,h)}},83771:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>R});var r=D(87951),d=D(87550),L={rtlEnabled:!1,defaultCurrency:"USD",defaultUseCurrencyAccountingStyle:!0,oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",label:"",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,shading:!1,direction:"auto"},optionsParser:m=>{"{"!==m.trim().charAt(0)&&(m="{"+m+"}");try{return JSON.parse(m)}catch(_){try{return JSON.parse(j(m))}catch{throw d.A.Error("E3018",_,m)}}}},j=m=>m.replace(/'/g,'"').replace(/,\s*([\]}])/g,"$1").replace(/([{,])\s*([^":\s]+)\s*:/g,'$1"$2":'),o=["decimalSeparator","thousandsSeparator"],E=function(){if(!arguments.length)return L;var m=arguments.length<=0?void 0:arguments[0];o.forEach(_=>{if(m[_]){var v="Now, the ".concat(_," is selected based on the specified locale.");d.A.log("W0003","config",_,"19.2",v)}}),(0,r.X)(L,m)};typeof DevExpress<"u"&&DevExpress.config&&E(DevExpress.config);const R=E},23862:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>F});var r=D(80186),d=D(24292),L=D(14435),j=D(87951),o=D(72463),E=D(87550),R=D(34423),m=D(72535),_=D(10348),v=D(17278),h=D(92378),s=D(3558),b=D(83771),O=(0,L.zk)(),w={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},f={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},k={generic(Y){var Q=/windows phone/i.test(Y)||Y.match(/WPDesktop/),se=!Q&&/Windows(.*)arm(.*)Tablet PC/i.test(Y),ie=!Q&&!se&&/msapphost/i.test(Y),ee=/((intel|ppc) mac os x)/.test(Y.toLowerCase());return Q||se||ie||ee?{deviceType:Q?"phone":se?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:ee}:null},appleTouchDevice(Y){var Q=(0,L.w3)(),se=/Macintosh/i.test(Y)&&Q?.maxTouchPoints>2;if(!/ip(hone|od|ad)/i.test(Y)&&!se)return null;var ee=/ip(hone|od)/i.test(Y),re=Y.match(/os\s{0,}X? (\d+)_(\d+)_?(\d+)?/i);return{deviceType:ee?"phone":"tablet",platform:"ios",version:re?[parseInt(re[1],10),parseInt(re[2],10),parseInt(re[3]||0,10)]:[],grade:480===O.screen.height?"B":"A"}},android(Y){var Q=/android|htc_|silk/i.test(Y),se=/windows phone/i.test(Y);if(!Q||se)return null;var ie=/mobile/i.test(Y),ee=Y.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),re=ee?[parseInt(ee[1],10),parseInt(ee[2]||0,10),parseInt(ee[3]||0,10)]:[];return{deviceType:ie?"phone":"tablet",platform:"android",version:re,grade:re.length>1&&(re[0]<4||4===re[0]&&re[1]<4)?"B":"A"}}},I=[k.appleTouchDevice,k.android,k.generic],g=new class x{constructor(Q){this._window=Q?.window||O,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new v.h(this),this.changed=(0,R.A)(),(0,L.Vd)()&&(m.A.add(this._recalculateOrientation.bind(this)),_.A.add(this._recalculateOrientation.bind(this)))}current(Q){if(Q)return this._currentDevice=this._getDevice(Q),this._forced=!0,void this.changed.fire();if(!this._currentDevice){Q=void 0;try{Q=this._getDeviceOrNameFromWindowScope()}catch{Q=this._getDeviceNameFromSessionStorage()}finally{Q||(Q=this._getDeviceNameFromSessionStorage()),Q&&(this._forced=!0)}this._currentDevice=this._getDevice(Q)}return this._currentDevice}real(Q){return(0,j.X)({},this._realDevice)}orientation(){return this._currentOrientation}isForced(){return this._forced}isRippleEmulator(){return!!this._window.tinyHippos}_getCssClasses(Q){var se=[],ie=this._realDevice;return(Q=Q||this.current()).deviceType&&(se.push("dx-device-".concat(Q.deviceType)),"desktop"!==Q.deviceType&&se.push("dx-device-mobile")),se.push("dx-device-".concat(ie.platform)),ie.version&&ie.version.length&&se.push("dx-device-".concat(ie.platform,"-").concat(ie.version[0])),this.isSimulator()&&se.push("dx-simulator"),(0,b.A)().rtlEnabled&&se.push("dx-rtl"),se}attachCssClasses(Q,se){this._deviceClasses=this._getCssClasses(se).join(" "),(0,d.A)(Q).addClass(this._deviceClasses)}detachCssClasses(Q){(0,d.A)(Q).removeClass(this._deviceClasses)}isSimulator(){try{return this._isSimulator||(0,L.Vd)()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch{return!1}}forceSimulator(){this._isSimulator=!0}_getDevice(Q){if("genericPhone"===Q&&(Q={deviceType:"phone",platform:"generic",generic:!0}),(0,o.Qd)(Q))return this._fromConfig(Q);var se;if(Q){if(!(se=w[Q]))throw E.A.Error("E0005")}else se=(0,L.w3)().userAgent;return this._fromUA(se)}_getDeviceOrNameFromWindowScope(){var Q;return(0,L.Vd)()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(Q=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),Q}_getDeviceNameFromSessionStorage(){var Q=(0,h.s)();if(Q){var se=Q.getItem("dx-force-device");try{return JSON.parse(se)}catch{return se}}}_fromConfig(Q){var se=(0,j.X)({},f,this._currentDevice,Q);return(0,j.X)(se,{phone:"phone"===se.deviceType,tablet:"tablet"===se.deviceType,android:"android"===se.platform,ios:"ios"===se.platform,generic:"generic"===se.platform})}_fromUA(Q){for(var se=0;se<I.length;se+=1){var ee=(0,I[se])(Q);if(ee)return this._fromConfig(ee)}return f}_changeOrientation(){var Q=(0,d.A)(this._window),se=(0,r.Oq)(Q)>(0,r.RG)(Q)?"portrait":"landscape";this._currentOrientation!==se&&(this._currentOrientation=se,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:se}]))}_recalculateOrientation(){var Q=(0,r.RG)(this._window);this._currentWidth!==Q&&(this._currentWidth=Q,this._changeOrientation())}on(Q,se){return this._eventsStrategy.on(Q,se),this}off(Q,se){return this._eventsStrategy.off(Q,se),this}},C=(0,s.Uq)();C&&g.attachCssClasses(C),s.WV.add((Y,Q)=>{g.detachCssClasses(Q),g.attachCssClasses(Y)});const F=g},17669:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>_});var r=D(37041),d=D(5042),L=D(14852),m={querySelectorAll:(v,h)=>v.querySelectorAll(h),elementMatches(v,h){return(v.matches||v.matchesSelector||v.mozMatchesSelector||v.msMatchesSelector||v.oMatchesSelector||v.webkitMatchesSelector||(b=>{var O=v.document||v.ownerDocument;if(!O)return!1;for(var w=this.querySelectorAll(O,b),f=0;f<w.length;f++)if(w[f]===v)return!0})).call(v,h)},createElement(v,h){return(h=h||this._document).createElement(v)},createElementNS(v,h,s){return(s=s||this._document).createElementNS(v,h)},createTextNode(v,h){return(h=h||this._document).createTextNode(v)},createAttribute(v,h){return(h=h||this._document).createAttribute(v)},isNode:v=>v&&"object"==typeof v&&"nodeType"in v&&"nodeName"in v,isElementNode:v=>v&&1===v.nodeType,isTextNode:v=>v&&3===v.nodeType,isDocument:v=>v&&9===v.nodeType,isDocumentFragment:v=>v&&11===v.nodeType,removeElement(v){var h=v&&v.parentNode;h&&h.removeChild(v)},insertElement(v,h,s){v&&h&&v!==h&&(s?v.insertBefore(h,s):v.appendChild(h))},getAttribute:(v,h)=>v.getAttribute(h),setAttribute(v,h,s){"style"===h?v.style.cssText=s:v.setAttribute(h,s)},removeAttribute(v,h){v.removeAttribute(h)},setProperty(v,h,s){v[h]=s},setText(v,h){v&&(v.textContent=h)},setClass(v,h,s){1===v.nodeType&&h&&(s?v.classList.add(h):v.classList.remove(h))},setStyle(v,h,s){v.style[h]=s||""},_document:typeof document>"u"?void 0:document,getDocument(){return this._document},getActiveElement(v){return this.getRootNode(v).activeElement},getRootNode(v){var h,s;return null!==(h=null==v||null===(s=v.getRootNode)||void 0===s?void 0:s.call(v))&&void 0!==h?h:this._document},getBody(){return this._document.body},createDocumentFragment(){return this._document.createDocumentFragment()},getDocumentElement(){return this._document.documentElement},getLocation(){return this._document.location},getSelection(){return this._document.selection},getReadyState(){return this._document.readyState},getHead(){return this._document.head},hasDocumentProperty(v){return v in this._document},listen:(v,h,s,b)=>v&&"addEventListener"in v?(v.addEventListener(h,s,b),()=>{v.removeEventListener(h,s)}):d.lQ,elementsFromPoint(v,h,s){var b=this.getRootNode(s);return b.host?(0,L.c)(v,h,b):b.elementsFromPoint(v,h)}};const _=(0,r.A)(m)},38365:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>yt});var r=D(24292),d=D(83771),L=D(87550),j=D(10348),o=D(87951),E=D(58168),R=D(72463),m=D(5042),_=D(39407),v=D(17669),b=D(51557),O={},w={};class f{constructor(st,Wt){this._options=st,this._optionsByReference=Wt}_setByReference(st,Wt){for(var Vt in(0,o.X)(!0,st,Wt),this._optionsByReference)Object.prototype.hasOwnProperty.call(Wt,Vt)&&(st[Vt]=Wt[Vt])}_setPreparedValue(st,Wt,Vt,ci){var bi=this.get(this._options,st,!1);if(!function(pt,st){return pt=(0,_.ao)(pt,!0),st=(0,_.ao)(st,!0),pt&&st&&(0,R.Kb)(pt)&&(0,R.Kb)(st)?st.is(pt):!(pt==pt||st==st)||(0===pt&&0===st?function(pt,st){return 1/pt==1/st}(pt,st):!(null!==pt&&"object"==typeof pt&&!v.A.isElementNode(pt))&&pt===st)}(bi,Wt)){var gt=(0,_.u7)(st);!ci&&this._changingCallback(st,bi,Wt),w[st]=w[st]||(0,_.vL)(st),w[st](this._options,Wt,{functionsAsIs:!0,merge:(0,R.O9)(Vt)?Vt:!this._optionsByReference[st],unwrapObservables:gt.length>1&&!!this._optionsByReference[gt[0]]}),!ci&&this._changedCallback(st,Wt,bi)}}_prepareRelevantNames(st,Wt,Vt,ci){if((0,R.Qd)(Vt))for(var bi in Vt)this._prepareRelevantNames(st,"".concat(Wt,".").concat(bi),Vt[bi]);this._namePreparedCallbacks(st,Wt,Vt,ci)}get(){var st=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,Wt=arguments.length>1?arguments[1]:void 0,Vt=arguments.length>2?arguments[2]:void 0;return O[Wt]=O[Wt]||(0,_.Hz)(Wt),O[Wt](st,{functionsAsIs:!0,unwrapObservables:Vt})}set(st,Wt,Vt,ci){for(var bi in st=(0,b.a5)(st,Wt))this._prepareRelevantNames(st,bi,st[bi],ci);for(var gt in st)this._setPreparedValue(gt,st[gt],Vt,ci)}onRelevantNamesPrepared(st){this._namePreparedCallbacks=st}onChanging(st){this._changingCallback=st}onChanged(st){this._changedCallback=st}dispose(){this._changingCallback=m.lQ,this._changedCallback=m.lQ}}class k{constructor(st,Wt,Vt,ci){this._default=Wt,this._deprecated=ci,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new f(st,Vt),this._optionManager.onRelevantNamesPrepared((bi,gt,ai,kt)=>this._setRelevantNames(bi,gt,ai,kt)),this._cachedOptions={},this._rules=[]}set _initial(st){this._initialOptions=st}get _initial(){if(!this._initialOptions){var st=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,st)}return this._initialOptions}_initDeprecatedNames(){for(var st in this._deprecated)this._deprecatedNames.push(st)}_getByRules(st){return st=Array.isArray(st)?this._rules.concat(st):this._rules,(0,b.a6)(st)}_notifyDeprecated(st){var Wt=this._deprecated[st];Wt&&this._deprecatedCallback(st,Wt)}_setRelevantNames(st,Wt,Vt,ci){if(Wt){var bi=this._normalizeName(Wt,ci);bi&&bi!==Wt&&(this._setField(st,bi,Vt),this._clearField(st,Wt))}}_setField(st,Wt,Vt){var ci="",bi=null;do{ci=ci?".".concat(ci):"",ci=(0,b.MO)(Wt)+ci,bi=(Wt=(0,b.E1)(Wt))?this._optionManager.get(st,Wt,!1):st}while(!bi);bi[ci]=Vt}_clearField(st,Wt){delete st[Wt];var Vt=(0,b.E1)(Wt),ci=Vt?this._optionManager.get(st,Vt,!1):st;ci&&delete ci[(0,b.MO)(Wt)]}_normalizeName(st,Wt){if(this._deprecatedNames.length&&st)for(var Vt=0;Vt<this._deprecatedNames.length;Vt++)if(this._deprecatedNames[Vt]===st){var ci=this._deprecated[st];if(ci)return!Wt&&this._notifyDeprecated(st),ci.alias||st}return st}addRules(st){this._rules=st.concat(this._rules)}applyRules(st){var Wt=this._getByRules(st);this.silent(Wt)}dispose(){this._deprecatedCallback=m.lQ,this._startChangeCallback=m.lQ,this._endChangeCallback=m.lQ,this._optionManager.dispose()}onChanging(st){this._optionManager.onChanging(st)}onChanged(st){this._optionManager.onChanged(st)}onDeprecated(st){this._deprecatedCallback=st}onStartChange(st){this._startChangeCallback=st}onEndChange(st){this._endChangeCallback=st}isInitial(st){var Wt=this.silent(st),Vt=this.initial(st);return(0,R.Tn)(Wt)&&(0,R.Tn)(Vt)?Wt.toString()===Vt.toString():(0,m.RL)(Wt,Vt)}initial(st){return(0,b.Ov)(this._initial,st)}option(st,Wt){if(arguments.length<2&&"object"!==(0,R.NW)(st))return this._optionManager.get(void 0,this._normalizeName(st));this._startChangeCallback();try{this._optionManager.set(st,Wt)}finally{this._endChangeCallback()}}silent(st,Wt){if(arguments.length<2&&"object"!==(0,R.NW)(st))return this._optionManager.get(void 0,st,void 0,!0);this._optionManager.set(st,Wt,void 0,!0)}reset(st){if(st){var Vt=(0,_.u7)(st).reduce((bi,gt)=>bi?bi[gt]:this.initial(gt),null),ci=(0,R.Gv)(Vt)?(0,E.A)({},Vt):Vt;this._optionManager.set(st,ci,!1)}}getAliasesByName(st){return Object.keys(this._deprecated).filter(Wt=>st===this._deprecated[Wt].alias)}isDeprecated(st){return Object.prototype.hasOwnProperty.call(this._deprecated,st)}cache(st,Wt){if(arguments.length<2)return this._cachedOptions[st];this._cachedOptions[st]=(0,o.X)(this._cachedOptions[st],Wt)}}var I=D(56221),x=D(75135),g=D(34423),C=D(17278),F=D(9690),Y=D(12984);class Q{constructor(){this._postponedOperations={}}add(st,Wt,Vt){if(st in this._postponedOperations)Vt&&this._postponedOperations[st].promises.push(Vt);else{var ci=new Y.cY;this._postponedOperations[st]={fn:Wt,completePromise:ci,promises:Vt?[Vt]:[]}}return this._postponedOperations[st].completePromise.promise()}callPostponedOperations(){for(var st in this._postponedOperations){var Wt=this._postponedOperations[st];(0,R.O9)(Wt)&&(Wt.promises&&Wt.promises.length?(0,Y.z7)(...Wt.promises).done(Wt.fn).then(Wt.completePromise.resolve):Wt.fn().done(Wt.completePromise.resolve))}this._postponedOperations={}}}var se=pt=>pt.charAt(2).toLowerCase()+pt.substr(3),ie=pt=>0===pt.indexOf("_",0),ee=I.A.inherit({_setDeprecatedOptions(){this._deprecatedOptions={}},_getDeprecatedOptions(){return this._deprecatedOptions},_getDefaultOptions:()=>({onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}),_defaultOptionsRules:()=>[],_setOptionsByDevice(pt){this._options.applyRules(pt)},_convertRulesToOptions:pt=>(0,b.a6)(pt),_isInitialOptionValue(pt){return this._options.isInitial(pt)},_setOptionsByReference(){this._optionsByReference={}},_getOptionsByReference(){return this._optionsByReference},ctor(){var pt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{_optionChangedCallbacks:st,_disposingCallbacks:Wt}=pt;this.NAME=(0,F.UU)(this.constructor),this._eventsStrategy=C.h.create(this,pt.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=st||(0,g.A)(),this._disposingCallbacks=Wt||(0,g.A)(),this.postponedOperations=new Q,this._createOptions(pt)},_createOptions(pt){this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new k(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging((st,Wt,Vt)=>this._initialized&&this._optionChanging(st,Wt,Vt)),this._options.onDeprecated((st,Wt)=>this._logDeprecatedOptionWarning(st,Wt)),this._options.onChanged((st,Wt,Vt)=>this._notifyOptionChanged(st,Wt,Vt)),this._options.onStartChange(()=>this.beginUpdate()),this._options.onEndChange(()=>this.endUpdate()),this._options.addRules(this._defaultOptionsRules()),pt&&pt.onInitializing&&pt.onInitializing.apply(this,[pt]),this._setOptionsByDevice(pt.defaultOptionsRules),this._initOptions(pt)}finally{this.endUpdate()}},_initOptions(pt){this.option(pt)},_init(){this._createOptionChangedAction(),this.on("disposing",pt=>{this._disposingCallbacks.fireWith(this,[pt])})},_logDeprecatedOptionWarning(pt,st){var Wt=st.message||"Use the '".concat(st.alias,"' option instead");L.A.log("W0001",this.NAME,pt,st.since,Wt)},_logDeprecatedComponentWarning(pt,st){L.A.log("W0000",this.NAME,pt,"Use the '".concat(st,"' widget instead"))},_createOptionChangedAction(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged(pt){switch(pt.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._eventsStrategy.dispose(),this._options.dispose(),this._disposed=!0},_lockUpdate(){this._updateLockCount++},_unlockUpdate(){this._updateLockCount=Math.max(this._updateLockCount-1,0)},_isUpdateAllowed(){return 0===this._updateLockCount},_isInitializingRequired(){return!this._initializing&&!this._initialized},isInitialized(){return this._initialized},_commitUpdate(){this.postponedOperations.callPostponedOperations(),this._isInitializingRequired()&&this._initializeComponent()},_initializeComponent(){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._lockUpdate(),this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._unlockUpdate(),this._initialized=!0}},instance(){return this},beginUpdate:function(){this._lockUpdate()},endUpdate:function(){this._unlockUpdate(),this._isUpdateAllowed()&&this._commitUpdate()},_optionChanging:m.lQ,_notifyOptionChanged(pt,st,Wt){if(this._initialized)for(var Vt=[pt].concat(this._options.getAliasesByName(pt)),ci=0;ci<Vt.length;ci++){var bi=Vt[ci],gt={name:(0,_.u7)(bi)[0],fullName:bi,value:st,previousValue:Wt};ie(bi)||(this._optionChangedCallbacks.fireWith(this,[(0,o.X)(this._defaultActionArgs(),gt)]),this._optionChangedAction((0,o.X)({},gt))),!this._disposed&&this._cancelOptionChange!==bi&&this._optionChanged(gt)}},initialOption(pt){return this._options.initial(pt)},_defaultActionConfig(){return{context:this,component:this}},_defaultActionArgs(){return{component:this}},_createAction(pt,st){var Wt;return Vt=>((0,R.O9)(Vt)||(Vt={}),(0,R.Qd)(Vt)||(Vt={actionValue:Vt}),(Wt=Wt||new x.A(pt,(0,o.X)({},st,this._defaultActionConfig()))).execute.call(Wt,(0,o.X)(Vt,this._defaultActionArgs())))},_createActionByOption(pt,st){var Vt,ci,bi,Wt=this;st=(0,o.X)({},st);var gt=function(){if(!ci){if(st=st||{},"string"!=typeof pt)throw L.A.Error("E0008");0===pt.indexOf("on")&&(ci=se(pt)),bi=Wt.option(pt)}if(Vt||bi||st.beforeExecute||st.afterExecute||Wt._eventsStrategy.hasEvent(ci)){if(!Vt){var kt=st.beforeExecute;st.beforeExecute=function(){for(var Ur=arguments.length,ar=new Array(Ur),na=0;na<Ur;na++)ar[na]=arguments[na];kt&&kt.apply(Wt,ar),Wt._eventsStrategy.fireEvent(ci,ar[0].args)},Vt=Wt._createAction(bi,st)}for(var mi=arguments.length,Kt=new Array(mi),qi=0;qi<mi;qi++)Kt[qi]=arguments[qi];return(0,d.A)().wrapActionsBeforeExecute?((Wt.option("beforeActionExecute")||m.lQ)(Wt,Vt,st)||Vt).apply(Wt,Kt):Vt.apply(Wt,Kt)}};return(0,d.A)().wrapActionsBeforeExecute?gt:(this.option("onActionCreated")||m.lQ)(this,gt,st)||gt},on(pt,st){return this._eventsStrategy.on(pt,st),this},off(pt,st){return this._eventsStrategy.off(pt,st),this},hasActionSubscription:function(pt){return!!this._options.silent(pt)||this._eventsStrategy.hasEvent(se(pt))},isOptionDeprecated(pt){return this._options.isDeprecated(pt)},_setOptionWithoutOptionChange(pt,st){this._cancelOptionChange=pt,this.option(pt,st),this._cancelOptionChange=!1},_getOptionValue(pt,st){var Wt=this.option(pt);return(0,R.Tn)(Wt)?Wt.bind(st)():Wt},option(){return this._options.option(...arguments)},resetOption(pt){this.beginUpdate(),this._options.reset(pt),this.endUpdate()}}),re=D(63798),ne=D(67465),_e=D(53468),N=new re.l(pt=>{var{model:st,parent:Wt}=pt,Vt=st.widget;if(!Vt)return(0,r.A)();var ci=(0,r.A)("<div>"),bi=st.options||{};return Wt?Wt._createComponent(ci,Vt,bi):ci[Vt](bi),ci});class G{constructor(st,Wt){this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=Wt||"template",this._createElement=st||_e.SN,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}static createDefaultOptions(){return{integrationOptions:{watchMethod:function(st,Wt){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipImmediate||Wt(st()),m.lQ},templates:{"dx-polymorph-widget":N},useDeferUpdateForTemplates:!0}}}get anonymousTemplateName(){return this._anonymousTemplateName}addDefaultTemplates(st){this._defaultTemplates=(0,o.X)({},this._defaultTemplates,st)}dispose(){this._tempTemplates.forEach(st=>{st.template.dispose&&st.template.dispose()}),this._tempTemplates=[]}extractTemplates(st){return{templates:this._extractTemplates(st),anonymousTemplateMeta:this._extractAnonymousTemplate(st)}}_extractTemplates(st){var Wt=(0,_e.zD)(st,"dxTemplate"),Vt=(0,_e.pK)(Wt);return Wt.forEach(ci=>{var{element:bi,options:{name:gt}}=ci;bi===Vt[gt]?(0,r.A)(bi).addClass("dx-template-wrapper").detach():(0,r.A)(bi).remove()}),Object.keys(Vt).map(ci=>({name:ci,template:this._createTemplate(Vt[ci])}))}_extractAnonymousTemplate(st){var Wt=st.contents().detach();return Wt.filter((ci,bi)=>{var gt=3===bi.nodeType,ai=(0,r.A)(bi).text().trim().length<1;return!(gt&&ai)}).length>0?{template:this._createTemplate(Wt),name:this._anonymousTemplateName}:{}}_createTemplateIfNeeded(st){var Wt=this._tempTemplates.filter(ci=>ci.source===(0,_e.AY)(st))[0];if(Wt)return Wt.template;var Vt=this._createTemplate(st);return this._tempTemplates.push({template:Vt,source:(0,_e.AY)(st)}),Vt}_createTemplate(st){return this._createElement((0,_e.I3)(st))}getTemplate(st,Wt,Vt,ci){var{isAsyncTemplate:bi,skipTemplates:gt}=Vt;return(0,R.Tn)(st)?new re.l(ai=>{var kt=st.apply(ci,(0,_e.jJ)(ai));if(!(0,R.O9)(kt))return new ne.A;var mi=!1,Kt=(0,_e.Xl)(kt,Wi=>Wi.nodeType||(0,R.Kb)(Wi)&&!(0,r.A)(Wi).is("script")?new re.l(()=>Wi):(mi=!0,this._createTemplate(Wi)),Wt,bi,gt,this._defaultTemplates),qi=Kt.render(ai);return mi&&Kt.dispose&&Kt.dispose(),qi}):(0,_e.Xl)(st,this._createTemplateIfNeeded,Wt,bi,gt,this._defaultTemplates)}}var W=D(14852),z=D(98332),X=D(12101),q=D(60181),ye=D(14435),xe=D(8257),ge=D(21721);function Ee(pt){return new Uint8Array(atob(pt).split("").map(st=>st.charCodeAt(0)))}function We(pt,st){return(pt<<st|pt>>>32-st)>>>0}function tt(pt,st){var Wt=new Uint8Array(pt.length+st.length);return Wt.set(pt,0),Wt.set(st,pt.length),Wt}var Mt,pt,vt={e:65537,n:new Uint8Array([200,219,153,203,140,7,228,253,193,243,62,137,139,60,68,242,48,142,113,88,185,235,253,105,80,74,32,170,96,74,111,250,7,205,154,3,146,115,153,53,45,132,123,56,61,208,184,201,63,24,109,223,0,179,169,102,139,224,73,233,45,173,138,66,98,88,69,76,177,111,113,218,192,33,101,152,25,134,34,173,32,82,230,44,247,200,253,170,192,246,30,12,96,205,100,249,181,93,0,231])},Nt="3021300906052b0e03021a05000414";function Qe(pt){var st=(8*vt.n.length+6)/8,Wt=tt(function he(pt){var st,Wt;return new Uint8Array(null!==(Wt=null===(st=pt.match(/.{1,2}/g))||void 0===st?void 0:st.map(Vt=>parseInt(Vt,16)))&&void 0!==Wt?Wt:[])}(Nt),pt);if(Wt.length+10>st)throw Error("Key is too short for SHA1 signing algorithm");var Vt=new Uint8Array(st-Wt.length);return Vt.fill(255,0,Vt.length-1),Vt[0]=0,Vt[1]=1,Vt[Vt.length-1]=0,tt(Vt,Wt)}function wt(pt){for(var st=function Lt(pt){var st=new Uint8Array(pt.length+1);st.set(function Ie(pt){for(var st=new Uint8Array(pt.length),Wt=0;Wt<pt.length;Wt+=1)st[Wt]=255&pt.charCodeAt(Wt);return st}(pt)),st[st.length-1]=128;var Wt=function de(pt){for(var st=new Uint32Array(1+(pt.length-1>>2)),Wt=0;Wt<pt.length;Wt+=1)st[Wt>>2]|=pt[Wt]<<8*(3-Wt%4);return st}(new Uint8Array(st)),Vt=new Uint32Array(16*Math.ceil((Wt.length+2)/16));return Vt.set(Wt,0),Vt[Vt.length-1]=8*(st.length-1),Vt}(pt),Wt=new Uint32Array([1732584193,4023233417,2562383102,271733878,3285377520]),Vt=0;Vt<st.length;Vt+=16){for(var ci=new Uint32Array(80),bi=0;bi<16;bi+=1)ci[bi]=st[Vt+bi];for(var gt=16;gt<80;gt+=1){var ai=ci[gt-3]^ci[gt-8]^ci[gt-14]^ci[gt-16];ci[gt]=ai<<1|ai>>>31}for(var kt=Wt[0],mi=Wt[1],Kt=Wt[2],qi=Wt[3],Wi=Wt[4],yn=0;yn<80;yn+=1){var[Ur,ar]=yn<20?[mi&Kt|~mi&qi,1518500249]:yn<40?[mi^Kt^qi,1859775393]:yn<60?[mi&Kt|mi&qi|Kt&qi,2400959708]:[mi^Kt^qi,3395469782],na=We(kt,5)+Ur+Wi+ar+ci[yn];Wi=qi,qi=Kt,Kt=We(mi,30),mi=kt,kt=na}Wt[0]+=kt,Wt[1]+=mi,Wt[2]+=Kt,Wt[3]+=qi,Wt[4]+=Wi}return function ce(pt){for(var st=new Uint8Array(4*pt.length),Wt=0;Wt<st.length;Wt+=1)st[Wt]=pt[Wt>>2]>>>8*(3-Wt%4);return st}(Wt)}(pt=Mt||(Mt={})).corrupted="corrupted",pt.verified="verified",pt.internal="internal";var li={kind:Mt.corrupted,error:"general"},an={kind:Mt.corrupted,error:"verification"},xi={kind:Mt.corrupted,error:"decoding"},Je={kind:Mt.corrupted,error:"deserialization"},Ht={kind:Mt.corrupted,error:"payload"},gi={kind:Mt.corrupted,error:"version"},Ti=!1;function ui(pt){var{licenseKey:st,version:Wt}=pt,Vt=!1;try{var[ci,bi,gt]=Wt.split(".").map(Number);if(Vt=isNaN(gt)||gt<3,!st)return{preview:Vt,error:"W0019"};var ai=function wi(pt){if(void 0===pt)return li;var st=pt.split(".");if(2!==st.length||0===st[0].length||0===st[1].length)return li;if(!function ni(pt){var{text:st,signature:Wt}=pt;return function Et(pt){try{var st=BigInt(0),Wt=BigInt(1),Vt=BigInt(8),ci=Kt=>Kt.reduce((qi,Wi)=>(qi<<Vt)+BigInt(Wi),st),bi=ci(pt.actual);return((Kt,qi,Wi)=>{for(var yn=Wt,Ur=Kt,ar=qi;ar;)ar&Wt&&(yn=yn*Ur%Wi),Ur=Ur*Ur%Wi,ar>>=Wt;return yn})(ci(pt.signature),BigInt(pt.key.e),ci(pt.key.n))===bi}catch{return!0}}({key:vt,signature:Ee(Wt),actual:Qe(wt(st))})}({text:st[0],signature:st[1]}))return an;var Wt="";try{Wt=atob(st[0])}catch{return xi}var Vt={};try{Vt=JSON.parse(Wt)}catch{return Je}var{customerId:ci,maxVersionAllowed:bi,format:gt,internalUsageId:ai}=Vt,kt=function(pt,st){var Wt={};for(var Vt in pt)Object.prototype.hasOwnProperty.call(pt,Vt)&&st.indexOf(Vt)<0&&(Wt[Vt]=pt[Vt]);if(null!=pt&&"function"==typeof Object.getOwnPropertySymbols){var ci=0;for(Vt=Object.getOwnPropertySymbols(pt);ci<Vt.length;ci++)st.indexOf(Vt[ci])<0&&Object.prototype.propertyIsEnumerable.call(pt,Vt[ci])&&(Wt[Vt[ci]]=pt[Vt[ci]])}return Wt}(Vt,["customerId","maxVersionAllowed","format","internalUsageId"]);return void 0!==ai?{kind:Mt.internal,internalUsageId:ai}:void 0===ci||void 0===bi||void 0===gt?Ht:1!==gt?gi:{kind:Mt.verified,payload:(0,E.A)({customerId:ci,maxVersionAllowed:bi},kt)}}(st);return ai.kind===Mt.corrupted?{preview:Vt,error:"W0021"}:ai.kind===Mt.internal?{preview:Vt,internal:!0,error:"69TSOoEH906KD-NeCsJyLg"===ai.internalUsageId?void 0:"W0020"}:ci&&bi?10*ci+bi>ai.payload.maxVersionAllowed?{preview:Vt,error:"W0020"}:{preview:Vt,error:void 0}:{preview:Vt,error:"W0021"}}catch{return{preview:Vt,error:"W0021"}}}function Ui(){return Ti}const Qi_validateLicense=function cn(pt){var st=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge.r;if(!Ti){Ti=!0;var{preview:Wt,internal:Vt,error:ci}=ui({licenseKey:pt,version:st});if(ci)return void L.A.log(Wt?"W0022":ci);Wt&&!Vt&&L.A.log("W0022")}};var{abstract:Ut}=ee,It=ee.inherit({_getDefaultOptions(){return(0,o.X)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,d.A)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?G.createDefaultOptions():{})},ctor(pt,st){this._customClass=null,this._createElement(pt),(0,F.UK)(this._$element,this,this._dispose),this.callBase(st);var Wt=Ui();Qi_validateLicense((0,d.A)().licenseKey),!Wt&&Ui()&&(0,d.A)({licenseKey:""})},_createElement(pt){this._$element=(0,r.A)(pt)},_getSynchronizableOptionsForCreateComponent:()=>["rtlEnabled","disabled","templatesRenderAsynchronously"],_checkFunctionValueDeprecation:function(pt){this.option("_ignoreFunctionValueDeprecation")||pt.forEach(st=>{(0,R.Tn)(this.option(st))&&L.A.log("W0017",st)})},_visibilityChanged:Ut,_dimensionChanged:Ut,_init(){this.callBase(),this._checkFunctionValueDeprecation(["width","height","maxHeight","maxWidth","minHeight","minWidth","popupHeight","popupWidth"]),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice(pt){this.callBase([].concat(this.constructor._classCustomRules||[],pt||[]))},_isInitialOptionValue(pt){return!(this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),pt))&&this.callBase(pt)},_attachWindowResizeCallback(){if(this._isDimensionChangeSupported()){var pt=this._windowResizeCallBack=this._dimensionChanged.bind(this);j.A.add(pt)}},_isDimensionChangeSupported(){return this._dimensionChanged!==Ut},_renderComponent(){this._initMarkup(),(0,ye.Vd)()&&this._render()},_initMarkup(){var{rtlEnabled:pt}=this.option()||{};this._renderElementAttributes(),this._toggleRTLDirection(pt),this._renderVisibilityChange(),this._renderDimensions()},_render(){this._attachVisibilityChangeHandlers(),(0,W.m)(this.$element())},_renderElementAttributes(){var{elementAttr:pt}=this.option()||{},st=(0,o.X)({},pt),Wt=st.class;delete st.class,this.$element().attr(st).removeClass(this._customClass).addClass(Wt),this._customClass=Wt},_renderVisibilityChange(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions(){var pt=this.$element(),st=pt.get(0),Wt=this._getOptionValue("width",st),Vt=this._getOptionValue("height",st);this._isCssUpdateRequired(st,Vt,Wt)&&pt.css({width:null===Wt?"":Wt,height:null===Vt?"":Vt})},_isCssUpdateRequired:(pt,st,Wt)=>!!((0,R.O9)(Wt)||(0,R.O9)(st)||pt.style.width||pt.style.height),_attachDimensionChangeHandlers(){var pt=this.$element(),st="".concat(this.NAME,"VisibilityChange");xe.XR.off(pt,{namespace:st}),xe.XR.on(pt,()=>this._dimensionChanged(),{namespace:st})},_attachVisibilityChangeHandlers(){if(this._isVisibilityChangeSupported()){var pt=this.$element(),st="".concat(this.NAME,"VisibilityChange");this._isHidden=!this._isVisible(),xe.XD.off(pt,{namespace:st}),xe.XD.on(pt,()=>this._checkVisibilityChanged("shown"),()=>this._checkVisibilityChanged("hiding"),{namespace:st})}},_isVisible(){return this.$element().is(":visible")},_checkVisibilityChanged(pt){this._isVisible()&&("hiding"!==pt||this._isHidden?"shown"===pt&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported(){return this._visibilityChanged!==Ut&&(0,ye.Vd)()},_clean:m.lQ,_modelByElement(){var{modelByElement:pt}=this.option(),st=this.$element();return pt?pt(st):void 0},_invalidate(){if(this._isUpdateAllowed())throw L.A.Error("E0007");this._requireRefresh=!0},_refresh(){this._clean(),this._renderComponent()},_dispose(){this._templateManager&&this._templateManager.dispose(),this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback(){this._isDimensionChangeSupported()&&j.A.remove(this._windowResizeCallBack)},_toggleRTLDirection(pt){this.$element().toggleClass("dx-rtl",pt)},_createComponent(pt,st){var Wt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Vt=(0,m.VM)(this._getSynchronizableOptionsForCreateComponent(),Kt=>!(Kt in Wt)),{integrationOptions:ci}=this.option(),{nestedComponentOptions:bi}=this.option(),gt=(0,o.X)({integrationOptions:ci},(bi=bi||m.lQ)(this));Vt.forEach(Kt=>gt[Kt]=this.option(Kt)),this._extendConfig(Wt,gt);var ai=void 0;if((0,R.Kg)(st)){var kt=(0,r.A)(pt)[st](Wt);ai=kt[st]("instance")}else pt&&((ai=st.getInstance(pt))?ai.option(Wt):ai=new st(pt,Wt));if(ai){var mi=Kt=>{var{name:qi,value:Wi}=Kt;Vt.includes(qi)&&ai.option(qi,Wi)};this.on("optionChanged",mi),ai.on("disposing",()=>this.off("optionChanged",mi))}return ai},_extendConfig(pt,st){(0,X.__)(st,(Wt,Vt)=>{!Object.prototype.hasOwnProperty.call(pt,Wt)&&(pt[Wt]=Vt)})},_defaultActionConfig(){var pt=this.$element(),st=this._modelByElement(pt);return(0,o.X)(this.callBase(),{context:st})},_defaultActionArgs(){var pt=this.$element(),st=this._modelByElement(pt),Wt=this.element();return(0,o.X)(this.callBase(),{element:Wt,model:st})},_optionChanged(pt){switch(pt.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(pt)}},_removeAttributes(pt){for(var st=pt.attributes,Wt=st.length-1;Wt>=0;Wt--){var Vt=st[Wt];if(Vt){var{name:ci}=Vt;(!ci.indexOf("aria-")||-1!==ci.indexOf("dx-")||"role"===ci||"style"===ci||"tabindex"===ci)&&pt.removeAttribute(ci)}}},_removeClasses(pt){pt.className=pt.className.split(" ").filter(st=>0!==st.lastIndexOf("dx-",0)).join(" ")},_updateDOMComponent(pt){pt?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate(){var pt=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(pt)},$element(){return this._$element},element(){var pt=this.$element();return(0,q.c)(pt)},dispose(){var pt=this.$element().get(0);(0,z.Gf)(pt,!0),pt.textContent="",this._removeAttributes(pt),this._removeClasses(pt)},resetOption(pt){if(this.callBase(pt),"width"===pt||"height"===pt){var st=this.initialOption(pt);!(0,R.O9)(st)&&this.$element().css(pt,"")}},_getAnonymousTemplateName(){},_initTemplateManager(){if(!this._templateManager&&this._useTemplates()){var{integrationOptions:pt={}}=this.option(),{createTemplate:st}=pt;this._templateManager=new G(st,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates(){var{templates:pt,anonymousTemplateMeta:st}=this._templateManager.extractTemplates(this.$element()),Wt=this.option("integrationOptions.templates.".concat(st.name));pt.forEach(Vt=>{var{name:ci,template:bi}=Vt;this._options.silent("integrationOptions.templates.".concat(ci),bi)}),st.name&&!Wt&&(this._options.silent("integrationOptions.templates.".concat(st.name),st.template),this._options.silent("_hasAnonymousTemplateContent",!0))},_getTemplateByOption(pt){return this._getTemplate(this.option(pt))},_getTemplate(pt){var st=this.option("integrationOptions.templates"),Wt=this.option("templatesRenderAsynchronously"),Vt=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(pt,st,{isAsyncTemplate:Wt,skipTemplates:Vt},this)},_saveTemplate(pt,st){this._setOptionWithoutOptionChange("integrationOptions.templates."+pt,this._templateManager._createTemplate(st))},_useTemplates:()=>!0});It.getInstance=function(pt){return(0,F.pV)((0,r.A)(pt),this)},It.defaultOptions=function(pt){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(pt)};const yt=It},60181:(ei,rt,D)=>{"use strict";D.d(rt,{c:()=>d});var r=function(j){return j&&j.get(0)};function d(j){return r(j)}},98332:(ei,rt,D)=>{"use strict";D.d(rt,{Gf:()=>f,jf:()=>w,p:()=>h,z:()=>s});var o,r=D(17669),d=D(91269),L=D(57544),j=new WeakMap,E=new L.A,R=function(){};function h(){return o.data.apply(this,arguments)}function s(k){R=k}function w(k,I){return o.removeData.call(this,k,I)}function f(k,I){if(r.A.isElementNode(k)){var x=k.getElementsByTagName("*");o.cleanData(x),I&&o.cleanData([k])}}!function(k){E.fire(k);var I=(o=k).cleanData;o.cleanData=function(x){return R(x),I.call(this,x)}}({data:function(){var k=arguments[0],I=arguments[1],x=arguments[2];if(k){var g=j.get(k);return g||j.set(k,g={}),void 0===I?g:2===arguments.length?g[I]:(g[I]=x,x)}},removeData:function(k,I){if(k)if(void 0===I)j.delete(k);else{var x=j.get(k);x&&delete x[I]}},cleanData:function(k){for(var I=0;I<k.length;I++)d.A.off(k[I]),j.delete(k[I])}})},87550:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>d});const d=(0,D(6161).A)({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' parameter of the 'onCustomItemCreating' function is empty or contains invalid data. Assign a custom object or a Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v{2}. {3}.',W0017:'Setting the "{0}" property with a function is deprecated since v21.2',W0018:'Setting the "position" property with a function is deprecated since v21.2',W0019:"DevExtreme: Unable to Locate a Valid License Key.\n\nIf you are using a 30-day trial version of DevExtreme, you must uninstall all copies of DevExtreme once your 30-day trial period expires. For terms and conditions that govern use of DevExtreme UI components/libraries, please refer to the DevExtreme End User License Agreement: https://js.devexpress.com/EULAs/DevExtremeComplete.\n\nTo use DevExtreme in a commercial project, you must purchase a license. For pricing/licensing options, please visit: https://js.devexpress.com/Buy.\n\nIf you have licensing-related questions or need help with a purchase, please email clientservices@devexpress.com.\n\n",W0020:"DevExtreme: License Key Has Expired.\n\nA mismatch exists between the license key used and the DevExtreme version referenced in this project.\n\nTo proceed, you can:\n\u2022 use a version of DevExtreme linked to your license key: https://www.devexpress.com/ClientCenter/DownloadManager\n\u2022 renew your DevExpress Subscription: https://www.devexpress.com/buy/renew (once you renew your subscription, you will be entitled to product updates and support service as defined in the DevExtreme End User License Agreement)\n\nIf you have licensing-related questions or need help with a renewal, please email clientservices@devexpress.com.\n\n",W0021:"DevExtreme: License Key Verification Has Failed.\n\nTo verify your DevExtreme license, make certain to specify a correct key in the GlobalConfig. If you continue to encounter this error, please visit https://www.devexpress.com/ClientCenter/DownloadManager to obtain a valid license key.\n\nIf you have a valid license and this problem persists, please submit a support ticket via the DevExpress Support Center. We will be happy to follow-up: https://supportcenter.devexpress.com/ticket/create.\n\n",W0022:"DevExtreme: Pre-release software. Not suitable for commercial use.\n\nPre-release software may contain deficiencies and as such, should not be considered for use or integrated in any mission critical application.\n\n"})},17278:(ei,rt,D)=>{"use strict";D.d(rt,{h:()=>j});var r=D(34423),d=D(12101),L=D(72463);class j{constructor(E){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._events={},this._owner=E,this._options=R}static create(E,R){return R?(0,L.Tn)(R)?R(E):R:new j(E)}hasEvent(E){var R=this._events[E];return!!R&&R.has()}fireEvent(E,R){var m=this._events[E];return m&&m.fireWith(this._owner,R),this._owner}on(E,R){if((0,L.Qd)(E))(0,d.__)(E,(v,h)=>{this.on(v,h)});else{var m=this._events[E];m||(m=(0,r.A)({syncStrategy:this._options.syncStrategy}),this._events[E]=m),(m.originalAdd||m.add).call(m,R)}}off(E,R){var m=this._events[E];m&&((0,L.Tn)(R)?m.remove(R):m.empty())}dispose(){(0,d.__)(this._events,(E,R)=>{R.empty()})}}},13992:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>L});const L=D(56221).A.inherit({ctor:function(j){j&&(j=String(j)),this._value=this._normalize(j||this._generate())},_normalize:function(j){for(j=j.replace(/[^a-f0-9]/gi,"").toLowerCase();j.length<32;)j+="0";return[j.substr(0,8),j.substr(8,4),j.substr(12,4),j.substr(16,4),j.substr(20,12)].join("-")},_generate:function(){for(var j="",o=0;o<32;o++)j+=Math.round(15*Math.random()).toString(16);return j},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}})},207:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>o});var r=D(14435),d=D(37041),L=(0,r.zk)();const o=(0,d.A)({getXhr:function(){return new L.XMLHttpRequest}})},57544:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>L});var r=D(12101),d=D(34423);class L{constructor(){this.memory=[],this.callbacks=(0,d.A)()}add(o){(0,r.__)(this.memory,(E,R)=>o.apply(o,R)),this.callbacks.add(o)}remove(o){this.callbacks.remove(o)}fire(){for(var o=arguments.length,E=new Array(o),R=0;R<o;R++)E[R]=arguments[R];this.memory.push(E),this.callbacks.fire.apply(this.callbacks,E)}}},51557:(ei,rt,D)=>{"use strict";D.d(rt,{E1:()=>h,MO:()=>v,Ov:()=>s,a5:()=>m,a6:()=>R,gO:()=>b});var r=D(23862),d=D(72463),L=D(5042),j=D(87951),o=D(39407),E={},R=O=>{var w=r.A.current();return O.reduce((f,k)=>{var{device:I,options:x}=k,g=I||{};return((0,d.Tn)(g)?g(w):_(w,g))&&(0,j.X)(!0,f,x),f},{})},m=(O,w)=>"string"!=typeof O?O:{[O]:w},_=(O,w)=>(0,d.RI)(w)||(0,L.hm)(O,[w]).length>0,v=O=>O.substr(O.lastIndexOf(".")+1),h=O=>O.substr(0,O.lastIndexOf(".")),s=function(O,w){return E[w]=E[w]||(0,o.Hz)(w),E[w](O,{functionsAsIs:!0})},b=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}},24292:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>x});var _,r=D(98332),d=D(17669),L=D(14435),j=D(72463),o=D(5918),E=D(80186),R=D(41242),m=(0,L.zk)(),v=function(g,C){return g?"string"==typeof g?"body"===g?(this[0]=C?C.body:d.A.getBody(),this.length=1,this):(C=C||d.A.getDocument(),"<"===g[0]?(this[0]=d.A.createElement(g.slice(1,-1),C),this.length=1,this):([].push.apply(this,d.A.querySelectorAll(C,g)),this)):d.A.isNode(g)||(0,j.l6)(g)?(this[0]=g,this.length=1,this):Array.isArray(g)?([].push.apply(this,g),this):_(g.toArray?g.toArray():[g]):(this.length=0,this)};(_=function(g,C){return new v(g,C)}).fn={dxRenderer:!0};var h=function(g,C){for(var F=0;F<this.length;F++){var Y=_(this[F]);Y[g].apply(Y,C)}return this},s=function(g,C,F){null!=F&&!1!==F?d.A.setAttribute(g,C,F):d.A.removeAttribute(g,C)};(v.prototype=_.fn).show=function(){return this.toggle(!0)},v.prototype.hide=function(){return this.toggle(!1)},v.prototype.toggle=function(g){return this[0]&&this.toggleClass("dx-state-invisible",!g),this},v.prototype.attr=function(g,C){if(this.length>1&&arguments.length>1)return h.call(this,"attr",arguments);if(!this[0])return(0,j.Gv)(g)||void 0!==C?this:void 0;if(!this[0].getAttribute)return this.prop(g,C);if("string"==typeof g&&1===arguments.length)return this[0].getAttribute(g)??void 0;if((0,j.Qd)(g))for(var Y in g)this.attr(Y,g[Y]);else s(this[0],g,C);return this},v.prototype.removeAttr=function(g){return this[0]&&d.A.removeAttribute(this[0],g),this},v.prototype.prop=function(g,C){if(!this[0])return this;if("string"==typeof g&&1===arguments.length)return this[0][g];if((0,j.Qd)(g))for(var F in g)this.prop(F,g[F]);else d.A.setProperty(this[0],g,C);return this},v.prototype.addClass=function(g){return this.toggleClass(g,!0)},v.prototype.removeClass=function(g){return this.toggleClass(g,!1)},v.prototype.hasClass=function(g){if(!this[0]||void 0===this[0].className)return!1;for(var C=g.split(" "),F=0;F<C.length;F++)if(this[0].classList){if(this[0].classList.contains(C[F]))return!0}else if((((0,j.Kg)(this[0].className)?this[0].className:d.A.getAttribute(this[0],"class"))||"").split(" ").indexOf(C[F])>=0)return!0;return!1},v.prototype.toggleClass=function(g,C){if(this.length>1)return h.call(this,"toggleClass",arguments);if(!this[0]||!g)return this;C=void 0===C?!this.hasClass(g):C;for(var F=g.split(" "),Y=0;Y<F.length;Y++)d.A.setClass(this[0],F[Y],C);return this},v.prototype.html=function(g){return arguments.length?(this.empty(),"string"==typeof g&&!(0,R.a)(g)||"number"==typeof g?(this[0].innerHTML=g,this):this.append((0,R.B)(g))):this[0].innerHTML};var b=function(g,C){if(this[0]&&g){"string"==typeof g?g=(0,R.B)(g):g.nodeType?g=[g]:(0,j.kf)(g)&&(g=[d.A.createTextNode(g)]);for(var F=0;F<g.length;F++){var Y=g[F],Q=this[0];"TABLE"===Q.tagName&&"TR"===Y.tagName&&Q.tBodies&&Q.tBodies.length&&(Q=Q.tBodies[0]),d.A.insertElement(Q,Y.nodeType?Y:Y[0],C)}}},O=function(g,C){if(this[0]&&this[0].style&&!(null===C||"number"==typeof C&&isNaN(C))){g=(0,o.jA)(g);for(var F=0;F<this.length;F++)this[F].style[g]=(0,o.CC)(g,C)}};v.prototype.css=function(g,C){if((0,j.Kg)(g)){if(2!==arguments.length){if(!this[0])return;g=(0,o.jA)(g);var F=m.getComputedStyle(this[0])[g]||this[0].style[g];return(0,j.kf)(F)?F.toString():F}O.call(this,g,C)}else if((0,j.Qd)(g))for(var Y in g)O.call(this,Y,g[Y]);return this},v.prototype.prepend=function(g){if(arguments.length>1){for(var C=0;C<arguments.length;C++)this.prepend(arguments[C]);return this}return b.apply(this,[g,this[0].firstChild]),this},v.prototype.append=function(g){if(arguments.length>1){for(var C=0;C<arguments.length;C++)this.append(arguments[C]);return this}return b.apply(this,[g]),this},v.prototype.prependTo=function(g){if(this.length>1){for(var C=this.length-1;C>=0;C--)_(this[C]).prependTo(g);return this}return(g=_(g))[0]&&d.A.insertElement(g[0],this[0],g[0].firstChild),this},v.prototype.appendTo=function(g){return this.length>1?h.call(this,"appendTo",arguments):(d.A.insertElement(_(g)[0],this[0]),this)},v.prototype.insertBefore=function(g){return g&&g[0]&&d.A.insertElement(g[0].parentNode,this[0],g[0]),this},v.prototype.insertAfter=function(g){return g&&g[0]&&d.A.insertElement(g[0].parentNode,this[0],g[0].nextSibling),this},v.prototype.before=function(g){return this[0]&&d.A.insertElement(this[0].parentNode,g[0],this[0]),this},v.prototype.after=function(g){return this[0]&&d.A.insertElement(this[0].parentNode,g[0],this[0].nextSibling),this},v.prototype.wrap=function(g){if(this[0]){var C=_(g);C.insertBefore(this),C.append(this)}return this},v.prototype.wrapInner=function(g){var C=this.contents();return C.length?C.wrap(g):this.append(g),this},v.prototype.replaceWith=function(g){if(g&&g[0])return g.is(this)?this:(g.insertBefore(this),this.remove(),g)},v.prototype.remove=function(){return this.length>1?h.call(this,"remove",arguments):((0,r.Gf)(this[0],!0),d.A.removeElement(this[0]),this)},v.prototype.detach=function(){return this.length>1?h.call(this,"detach",arguments):(d.A.removeElement(this[0]),this)},v.prototype.empty=function(){return this.length>1?h.call(this,"empty",arguments):((0,r.Gf)(this[0]),d.A.setText(this[0],""),this)},v.prototype.clone=function(){for(var g=[],C=0;C<this.length;C++)g.push(this[C].cloneNode(!0));return _(g)},v.prototype.text=function(g){if(!arguments.length){for(var C="",F=0;F<this.length;F++)C+=this[F]&&this[F].textContent||"";return C}var Y=(0,j.Tn)(g)?g():g;return(0,r.Gf)(this[0],!1),d.A.setText(this[0],(0,j.O9)(Y)?Y:""),this},v.prototype.val=function(g){return 1===arguments.length?this.prop("value",(0,j.O9)(g)?g:""):this.prop("value")},v.prototype.contents=function(){if(!this[0])return _();var g=[];return g.push.apply(g,this[0].childNodes),_(g)},v.prototype.find=function(g){var C=_();if(!g)return C;var Y,F=[];if("string"==typeof g)for(g=g.trim(),Y=0;Y<this.length;Y++){var Q=this[Y];if(d.A.isElementNode(Q)){var se=Q.getAttribute("id"),ie=se||"dx-query-children";se||s(Q,"id",ie);var ee=(ie="[id='"+ie+"'] ")+g.replace(/([^\\])(,)/g,"$1, "+ie);F.push.apply(F,d.A.querySelectorAll(Q,ee)),s(Q,"id",se)}else(d.A.isDocument(Q)||d.A.isDocumentFragment(Q))&&F.push.apply(F,d.A.querySelectorAll(Q,g))}else for(Y=0;Y<this.length;Y++)g=d.A.isNode(g)?g:g[0],this[Y]!==g&&this[Y].contains(g)&&F.push(g);return C.add(F)};var w=function(g,C){var F;return!(C=null!==(F=C.host)&&void 0!==F?F:C).nodeType||!!(C.offsetWidth||C.offsetHeight||C.getClientRects().length)};v.prototype.filter=function(g){if(!g)return _();if(":visible"===g)return this.filter(w);if(":hidden"===g)return this.filter(function(se,ie){return!w(0,ie)});for(var C=[],F=0;F<this.length;F++){var Y=this[F];if(d.A.isElementNode(Y)&&"string"===(0,j.NW)(g))d.A.elementMatches(Y,g)&&C.push(Y);else if(d.A.isNode(g)||(0,j.l6)(g))g===Y&&C.push(Y);else if((0,j.Tn)(g))g.call(Y,F,Y)&&C.push(Y);else for(var Q=0;Q<g.length;Q++)g[Q]===Y&&C.push(Y)}return _(C)},v.prototype.not=function(g){for(var C=[],F=this.filter(g).toArray(),Y=0;Y<this.length;Y++)-1===F.indexOf(this[Y])&&C.push(this[Y]);return _(C)},v.prototype.is=function(g){return!!this.filter(g).length},v.prototype.children=function(g){for(var C=[],F=0;F<this.length;F++)for(var Y=this[F]?this[F].childNodes:[],Q=0;Q<Y.length;Q++)d.A.isElementNode(Y[Q])&&C.push(Y[Q]);return C=_(C),g?C.filter(g):C},v.prototype.siblings=function(){var g=this[0];if(!g||!g.parentNode)return _();for(var C=[],F=g.parentNode.childNodes||[],Y=0;Y<F.length;Y++){var Q=F[Y];d.A.isElementNode(Q)&&Q!==g&&C.push(Q)}return _(C)},v.prototype.each=function(g){for(var C=0;C<this.length&&!1!==g.call(this[C],C,this[C]);C++);},v.prototype.index=function(g){return g?(g=_(g),this.toArray().indexOf(g[0])):this.parent().children().index(this)},v.prototype.get=function(g){return this[g<0?this.length+g:g]},v.prototype.eq=function(g){return _(this[g=g<0?this.length+g:g])},v.prototype.first=function(){return this.eq(0)},v.prototype.last=function(){return this.eq(-1)},v.prototype.select=function(){for(var g=0;g<this.length;g+=1)this[g].select&&this[g].select();return this},v.prototype.parent=function(g){if(!this[0])return _();var C=_(this[0].parentNode);return!g||C.is(g)?C:_()},v.prototype.parents=function(g){for(var C=[],F=this.parent();F&&F[0]&&!d.A.isDocument(F[0]);)d.A.isElementNode(F[0])&&(!g||F.is(g))&&C.push(F.get(0)),F=F.parent();return _(C)},v.prototype.closest=function(g){if(this.is(g))return this;for(var C=this.parent();C&&C.length;){if(C.is(g))return C;C=C.parent()}return _()},v.prototype.next=function(g){if(!this[0])return _();var C=_(this[0].nextSibling);if(!arguments.length)return C;for(;C&&C.length;){if(C.is(g))return C;C=C.next()}return _()},v.prototype.prev=function(){return this[0]?_(this[0].previousSibling):_()},v.prototype.add=function(g){for(var C=_(g),F=this.toArray(),Y=0;Y<C.length;Y++){var Q=C[Y];-1===F.indexOf(Q)&&F.push(Q)}return _(F)};var f=[];v.prototype.splice=function(){return _(f.splice.apply(this,arguments))},v.prototype.slice=function(){return _(f.slice.apply(this,arguments))},v.prototype.toArray=function(){return f.slice.call(this)},v.prototype.offset=function(){if(this[0])return(0,E.A3)(this[0])},v.prototype.offsetParent=function(){if(!this[0])return _();for(var g=_(this[0].offsetParent);g[0]&&"static"===g.css("position");)g=_(g[0].offsetParent);return g[0]?g:_(d.A.getDocumentElement())},v.prototype.position=function(){if(this[0]){var g,C=parseFloat(this.css("marginTop")),F=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return{top:(g=this[0].getBoundingClientRect()).top-C,left:g.left-F};g=this.offset();var Y=this.offsetParent(),Q={top:0,left:0};return"HTML"!==Y[0].nodeName&&(Q=Y.offset()),Q={top:Q.top+parseFloat(Y.css("borderTopWidth")),left:Q.left+parseFloat(Y.css("borderLeftWidth"))},{top:g.top-Q.top-C,left:g.left-Q.left-F}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(g,C){g.scrollTo(C,g.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(g,C){g.scrollTo(g.pageXOffset,C)}}].forEach(function(g){var C=g.name;v.prototype[C]=function(F){if(this[0]){var Y=(0,E.OP)(this[0]);return void 0===F?Y?Y[g.offsetProp]:this[0][C]:(Y?g.scrollWindow(Y,F):this[0][C]=F,this)}}}),v.prototype.data=function(g,C){if(this[0])return arguments.length<2?r.p.call(_,this[0],g):(r.p.call(_,this[0],g,C),this)},v.prototype.removeData=function(g){return this[0]&&(0,r.jf)(this[0],g),this};var k=function(){return _.apply(this,arguments)};Object.defineProperty(k,"fn",{enumerable:!0,configurable:!0,get:function(){return _.fn},set:function(g){_.fn=g}});const x=k},17558:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>R});var r=D(5042),d=D(14435),L=(0,d.zk)(),j={observe:r.lQ,unobserve:r.lQ,disconnect:r.lQ};const R=new class o{constructor(){if(!(0,d.Vd)()||!L.ResizeObserver)return j;this._callbacksMap=new Map,this._observer=new L.ResizeObserver(_=>{_.forEach(v=>{var h;null===(h=this._callbacksMap.get(v.target))||void 0===h||h(v)})})}observe(_,v){this._callbacksMap.set(_,v),this._observer.observe(_)}unobserve(_){this._callbacksMap.delete(_),this._observer.unobserve(_)}disconnect(){this._callbacksMap.clear(),this._observer.disconnect()}}},56311:(ei,rt,D)=>{"use strict";D.d(rt,{U:()=>R});var r=D(24292),d=D(52663),L=D(91269),j=D(20675),o=D(72463);class R extends d.o{constructor(_,v,h,s){super(),this._render=_,this._fields=v,this._fieldsMap=s||{},this._watchMethod=h}_renderCore(_){var v=(0,r.A)(_.container),h=function(m,_,v,h,s){var b,w,O=(w=m,_(()=>w,function(w){var f,k,I,x,g,C,F,Y;b&&b(),(0,o.sO)(w)?s(w):(f=w,k=_,x=h,g=s,C={},F=(I=v).slice(),Y=I.map(function(Q){var se=x[Q];return k(se?()=>se(f):()=>f[Q],function(ie){if(C[Q]=ie,F.length){var ee=F.indexOf(Q);ee>=0&&F.splice(ee,1)}F.length||g(C)})}),b=function(){Y.forEach(Q=>Q())})}));return function(){b&&b(),O&&O()}}(_.model,this._watchMethod,this._fields,this._fieldsMap,s=>{v.empty(),this._render(v,s,_.model)});return L.A.on(v,j.N,h),v.contents()}}},89902:(ei,rt,D)=>{"use strict";D.d(rt,{M:()=>d});var r=D(52663);class d extends r.o{constructor(j){super(),this.name=j}}},67465:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>L});var r=D(24292),d=D(52663);class L extends d.o{_renderCore(){return(0,r.A)()}}},63798:(ei,rt,D)=>{"use strict";D.d(rt,{l:()=>L});var r=D(52663),d=D(7963);class L extends r.o{constructor(o){super(),this._render=o}_renderCore(o){return(0,d.ki)(this._render(o))}}},52663:(ei,rt,D)=>{"use strict";D.d(rt,{o:()=>m});var r=D(24292),d=D(17669),L=D(34423),j=D(7963),o=D(65822),E=D(87550),R=(0,L.A)({syncStrategy:!0});class m{render(v){var s,h=(v=v||{}).onRendered;return delete v.onRendered,s=v.renovated&&v.transclude&&this._element?(0,r.A)("<div>").append(this._element).contents():this._renderCore(v),this._ensureResultInContainer(s,v.container),R.fire(s,v.container),h&&h(),s}_ensureResultInContainer(v,h){if(h){var s=(0,r.A)(h),b=(0,j.gR)(s.get(0),v.get(0));s.append(v),b||d.A.getBody().contains(s.get(0))&&(0,o.I9)(v)}}_renderCore(){throw E.A.Error("E0001")}}},94461:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>me});var r=D(12984),d=D(17669),L=D(207),j=D(14435),o=D(87951),E=D(72463),R=D(37041),m=(0,j.zk)(),_="success",v="error",k=function(we){var N=d.A.createElement("script");for(var G in we)N[G]=we[G];return N},I=function(we){we.parentNode.removeChild(we)},x=function(we){return d.A.getHead().appendChild(we)},g=function(we){var N=k({text:we});x(N),I(N)};function _e(we){return(we.method||"GET").toUpperCase()}const me=(0,R.A)({sendRequest:function(we){var ye,N=L.A.getXhr(),G=new r.cY,W=G.promise(),z=!(0,E.O9)(we.async)||we.async,X=we.dataType,q=we.timeout||0;we.crossDomain=function(we){if(!(0,j.Vd)())return!0;var N=!1,G=d.A.createElement("a"),W=d.A.createElement("a");G.href=m.location.href;try{W.href=we,W.href=W.href,N=G.protocol+"//"+G.host!=W.protocol+"//"+W.host}catch{N=!0}return N}(we.url);var xe="jsonp"===X||"script"===X;void 0===we.cache&&(we.cache=!xe);var ge=function(we){if("jsonp"===we.dataType){var N=Math.random().toString().replace(/\D/g,""),G=we.jsonpCallback||"dxCallback"+Date.now()+"_"+N,W=we.jsonp||"callback";return we.data=we.data||{},we.data[W]=G,G}}(we),Ee=function(we){var N=we.headers||{};return N["Content-Type"]=N["Content-Type"]||function(we){var N;return we.data&&!we.upload&&"GET"!==_e(we)&&(N="application/x-www-form-urlencoded;charset=utf-8"),we.contentType||N}(we),N.Accept=N.Accept||function(we){var N=we.dataType||"*",G="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",W={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:G,script:G};return(0,o.a)(W,we.accepts,!0),W[N]?W[N]+("*"!==N?", */*; q=0.01":""):W["*"]}(we),!we.crossDomain&&!N["X-Requested-With"]&&(N["X-Requested-With"]="XMLHttpRequest"),N}(we),he=function(we,N){var G=we.data,W="string"==typeof G,z=we.url||m.location.href;return!W&&!we.cache&&((G=G||{})._=Date.now()),G&&!we.upload&&(W||(G=function(we){var N=[];for(var G in we){var W=we[G];void 0!==W&&(null===W&&(W=""),"function"==typeof W&&(W=W()),N.push(encodeURIComponent(G)+"="+encodeURIComponent(W)))}return N.join("&")}(G)),"GET"===_e(we)?(""!==G&&(z+=(z.indexOf("?")>-1?"&":"?")+G),G=null):N["Content-Type"]&&N["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(G=G.replace(/%20/g,"+"))),{url:z,parameters:G}}(we,Ee),Ie=he.url,ce=he.parameters;if(ge&&(m[ge]=function(Be){G.resolve(Be,_,N)}),we.crossDomain&&xe)return function(we){var N=k({src:we});return new Promise(function(G,W){var z={load:G,error:W},X=function(ye){z[ye.type](),I(N)};for(var q in z)d.A.listen(N,q,X);x(N)})}(Ie).then(function(){"jsonp"!==X&&G.resolve(null,_,N)},function(){G.reject(N,v)}),W;if(we.crossDomain&&!("withCredentials"in N))return G.reject(N,v),W;if(N.open(_e(we),Ie,z,we.username,we.password),z&&(N.timeout=q,ye=function(we,N){return we&&setTimeout(function(){N.customStatus="timeout",N.abort()},we)}(q,N)),N.onreadystatechange=function(Be){4===N.readyState&&(clearTimeout(ye),function(we){return 200<=we&&we<300}(N.status)?function(we){return 204!==we}(N.status)?function(we,N,G){var W=function(we){return we.responseType&&"text"!==we.responseType||"string"!=typeof we.responseText?we.response:we.responseText}(N);switch(G){case"jsonp":g(W);break;case"script":g(W),we.resolve(W,_,N);break;case"json":try{we.resolve(JSON.parse(W),_,N)}catch(z){we.reject(N,"parsererror",z)}break;default:we.resolve(W,_,N)}}(G,N,X):G.resolve(null,"nocontent",N):G.reject(N,N.customStatus||v))},we.upload&&(N.upload.onprogress=we.upload.onprogress,N.upload.onloadstart=we.upload.onloadstart,N.upload.onabort=we.upload.onabort),we.xhrFields)for(var de in we.xhrFields)N[de]=we.xhrFields[de];for(var pe in"arraybuffer"===we.responseType&&(N.responseType=we.responseType),Ee)Object.prototype.hasOwnProperty.call(Ee,pe)&&(0,E.O9)(Ee[pe])&&N.setRequestHeader(pe,Ee[pe]);return we.beforeSend&&we.beforeSend(N),N.send(ce),W.abort=function(){N.abort()},W}})},89518:(ei,rt,D)=>{"use strict";D.d(rt,{$z:()=>v,BO:()=>o,Gn:()=>E,Il:()=>_,R3:()=>m});var r=D(72463),d=D(95652),L=D(83771);var o=function(h){return Array.isArray(h)?h:[h]},E=function(h){return[...new Set(h)]},m=function(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],b=function j(h){return h.reduce((s,b)=>{var O,w=(null!==(O=s.get(b))&&void 0!==O?O:0)+1;return s.set(b,w),s},new Map)}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]);return h.filter(O=>{var w=b.get(O);return w&&b.set(O,w-1),!w})},_=function(h,s,b,O){var w={},{useLegacyVisibleIndex:f}=(0,L.A)(),k=0,I=x=>!(0,r.O9)(x[s])&&(!O||O(x));h.forEach(x=>{var g=x[s];g>=0?(w[g]=w[g]||[],x===b?w[g].unshift(x):w[g].push(x)):x[s]=void 0}),f||h.forEach(x=>{if(I(x)){for(;w[k];)k++;w[k]=[x],k++}}),k=0,(0,d.ap)(w,function(x,g){g.forEach(C=>{x>=0&&(C[s]=k++)})}),f&&h.forEach(x=>{I(x)&&(x[s]=k++)})},v=(h,s)=>h.reduce((b,O)=>{var w,f=s(O);return b[f]=null!==(w=b[f])&&void 0!==w?w:[],b[f].push(O),b},{})},94014:(ei,rt,D)=>{"use strict";D.d(rt,{V:()=>j,p:()=>o});var r=D(72463),d=function(E,R){var m=R(E);if((0,r.Gv)(m))try{return JSON.stringify(m)}catch{return m}return m},L=function(E,R,m,_){return R[m[d(E,_)]]},j=function(E,R){if(E.length!==R.length)return!1;for(var m=0;m<R.length;m++)if(E[m]!==R[m])return!1;return!0},o=function(E,R,m,_){var v={},h={},s=0,b=0,O=[];E.forEach(function(Q,se){var ie=d(Q,m);v[ie]=se}),R.forEach(function(Q,se){var ie=d(Q,m);h[ie]=se});for(var w=Math.max(E.length,R.length),f=0;f<w+s;f++){var k=R[f],I=f-s+b,x=E[I];if(!k||x&&!L(x,R,h,m))x&&(O.push({type:"remove",key:m(x),index:f,oldItem:x}),b++,f--);else{var C=d(k,m),F=v[C],Y=E[F];if(Y){if(F!==I)return;_(Y,k)||O.push({type:"update",data:k,key:m(k),index:f,oldItem:Y})}else s++,O.push({type:"insert",data:k,index:f})}}return O}},29263:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>R});var r=D(87951),L=(0,D(14435).w3)(),j=/(webkit)[ /]([\w.]+)/,o=/(mozilla)(?:.*? rv:([\w.]+))/,E=m=>{m=m.toLowerCase();var _={},v=j.exec(m)||m.indexOf("compatible")<0&&o.exec(m)||[],h=v[1],s=v[2];return"webkit"===h&&(_.webkit=!0,m.indexOf("chrome")>=0||m.indexOf("crios")>=0?(h="chrome",s=(s=/(?:chrome|crios)\/(\d+\.\d+)/.exec(m))&&s[1]):m.indexOf("fxios")>=0?(h="mozilla",s=(s=/fxios\/(\d+\.\d+)/.exec(m))&&s[1]):m.indexOf("safari")>=0&&/version|phantomjs/.test(m)?(h="safari",s=(s=/(?:version|phantomjs)\/([0-9.]+)/.exec(m))&&s[1]):(h="unknown",s=(s=/applewebkit\/([0-9.]+)/.exec(m))&&s[1])),h&&(_[h]=!0,_.version=s),_};const R=(0,r.X)({_fromUA:E},E(L.userAgent))},435:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>d});const d=function(L){var j,o=function(){return j=L.apply(this,arguments),o=function(){return j},j};return function(){return o.apply(this,arguments)}}},34423:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>L});var r=function(j){this._options=j||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};r.prototype._fireCore=function(j,o){var E=this._firingIndexes,R=this._list,m=this._options.stopOnFalse,_=E.length;for(E[_]=0;E[_]<R.length&&(!1!==R[E[_]].apply(j,o)||!m);E[_]++);E.pop()},r.prototype.add=function(j){return"function"==typeof j&&(!this._options.unique||!this.has(j))&&this._list.push(j),this},r.prototype.remove=function(j){var o=this._list,E=this._firingIndexes,R=o.indexOf(j);if(R>-1&&(o.splice(R,1),this._firing&&E.length))for(var m=0;m<E.length;m++)R<=E[m]&&E[m]--;return this},r.prototype.has=function(j){var o=this._list;return j?o.indexOf(j)>-1:!!o.length},r.prototype.empty=function(j){return this._list=[],this},r.prototype.fireWith=function(j,o){var E=this._queue;if(o=(o=o||[]).slice?o.slice():o,this._options.syncStrategy)this._firing=!0,this._fireCore(j,o);else{if(E.push([j,o]),this._firing)return;for(this._firing=!0;E.length;){var R=E.shift();this._fireCore(R[0],R[1])}}return this._firing=!1,this._fired=!0,this},r.prototype.fire=function(){this.fireWith(this,arguments)},r.prototype.fired=function(){return this._fired};const L=function(j){return new r(j)}},5042:(ei,rt,D)=>{"use strict";D.d(rt,{EG:()=>ee,GP:()=>se,Li:()=>Q,Mb:()=>k,Nt:()=>ie,OX:()=>f,RL:()=>N,T6:()=>C,TA:()=>ne,VM:()=>_e,YD:()=>m,a0:()=>I,hm:()=>x,lQ:()=>re,uG:()=>_,zE:()=>w});var b,r=D(58168),d=D(83771),L=D(13992),j=D(12984),o=D(39407),E=D(12101),R=D(72463),m=function(G,W){return(0,R.O9)(G)?G:W},_=function(G,W){var z=new j.cY,X=W||this,q={promise:z.promise(),abort:function(){clearTimeout(xe),z.rejectWith(X)}},xe=(arguments[2]||setTimeout)(function(){var ge=G.call(X);ge&&ge.done&&(0,R.Tn)(ge.done)?ge.done(function(){z.resolveWith(X)}):z.resolveWith(X)},"number"==typeof W?W:0);return q},v=[],h=[],s=[],O=function(G,W,z){if(b&&b!==G)return v.push(W),h.push(G),z=z||new j.cY,s.push(z),z;var X=b,q=s.length;b=G;var ye=W();return ye||(s.length>q?ye=j.z7.apply(this,s.slice(q)):z&&z.resolve()),b=X,z&&ye&&ye.done&&ye.done(z.resolve).fail(z.reject),!b&&v.length&&("render"===h.shift()?w:f)(v.shift(),s.shift()),ye||(0,j.z7)()},w=function(G,W){return O("render",G,W)},f=function(G,W){return O("update",G,W)},k=function(G){return function(){var W=this;return O("render",function(){return G.call(W)})}},I=function(G){return function(){var W=this;return O("update",function(){return G.call(W)})}},x=function(G,W,z){var X=[],q=0;return(0,E.__)(W,(ye,xe)=>{var ge=0,Ee=z?z(xe):xe;(0,E.__)(G,(he,Ie)=>{var ce=Ee[he];if(void 0!==ce)return g(ce,Ie)?void ge++:(ge=-1,!1)}),!(ge<q)&&(ge>q&&(X.length=0,q=ge),X.push(xe))}),X},g=function(G,W){if(Array.isArray(G)&&Array.isArray(W)){var z=!1;return(0,E.__)(G,(X,q)=>{if(q!==W[X])return z=!0,!1}),!z}return G===W},C=function(G){var W,z;switch((0,R.NW)(G)){case"string":return G.split(/\s+/,2);case"object":return[null!==(W=G.x)&&void 0!==W?W:G.h,null!==(z=G.y)&&void 0!==z?z:G.v];case"number":return[G];case"array":return G;default:return null}},Q=function(G,W){var z=C(G),X=W?parseFloat(z&&z[0]):parseInt(z&&z[0],10),q=W?parseFloat(z&&z[1]):parseInt(z&&z[1],10);return isFinite(X)||(X=0),isFinite(q)||(q=X),{h:X,v:q}},se=function(G){if(G instanceof L.A)return G.toString();if((0,R.Gv)(G)||Array.isArray(G))try{var W=JSON.stringify(G);return"{}"===W?G:W}catch{return G}return G},ie=function(G){return G.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},ee=function(G){var W=(0,d.A)().serverDecimalSeparator;return(0,R.O9)(G)&&(G=G.toString().replace(".",W)),G},re=function(){},ne=function(){return(new j.cY).resolve().promise()},_e=function(G,W,z){for(var X=[],ye=!z,xe=0;xe<G.length;xe++)!!W(G[xe],xe)===ye&&X.push(G[xe]);return X},me={maxDepth:3,strict:!0},we=(G,W,z,X)=>{var{strict:q,maxDepth:ye}=X,xe=(0,o.ao)(G,!0),ge=(0,o.ao)(W,!0);switch(!0){case q?xe===ge:xe==ge:case z>=ye:return!0;case(0,R.Gv)(xe)&&(0,R.Gv)(ge):return((G,W,z,X)=>{var q=Object.keys(G),ye=Object.keys(W);if(q.length!==ye.length)return!1;var xe=new Set(ye);return!q.some(ge=>!xe.has(ge)||!we(G[ge],W[ge],z+1,X))})(xe,ge,z,X);case Array.isArray(xe)&&Array.isArray(ge):return((G,W,z,X)=>G.length===W.length&&!G.some((q,ye)=>!we(q,W[ye],z+1,(0,r.A)({},X,{strict:!0}))))(xe,ge,z,X);default:return!1}},N=function(G,W){var X=(0,r.A)({},me,arguments.length>2&&void 0!==arguments[2]?arguments[2]:me);return we(G,W,0,X)}},85978:(ei,rt,D)=>{"use strict";D.d(rt,{v:()=>j});var r=D(72463),d=function(){},L=function(E){return typeof console>"u"||!(0,r.Tn)(console[E])?d:console[E].bind(console)},j={log:L("log"),info:L("info"),warn:L("warn"),error:L("error")}},39407:(ei,rt,D)=>{"use strict";D.d(rt,{Hz:()=>f,ao:()=>g,u7:()=>h,vL:()=>x});var r=D(87550),d=D(56221),L=D(95652),j=D(72463),o=D(12101),E=D(78059),R=E.A.unwrap,m=E.A.isWrapped,_=E.A.assign,h=function(C){return function(C){return C.replace(/\[/g,".").replace(/\]/g,"")}(C).split(".")},b=function(C,F,Y,Q){if("this"===F)throw new r.A.Error("E4016");var se=C[F];Q.unwrapObservables&&m(se)?_(se,Y):C[F]=Y},O=function(C){return(C=C||{}).unwrapObservables=void 0===C.unwrapObservables||C.unwrapObservables,C};function w(C,F){return F.unwrapObservables?R(C):C}var f=function(C){if(arguments.length>1&&(C=[].slice.call(arguments)),!C||"this"===C)return function(Y){return Y};if("string"==typeof C){var F=h(C);return function(Y,Q){for(var se=(Q=O(Q)).functionsAsIs,ie=("defaultValue"in Q),ee=w(Y,Q),re=0;re<F.length;re++){if(!ee){if(null==ee&&ie)return Q.defaultValue;break}var ne=F[re];if(ie&&(0,j.Gv)(ee)&&!(ne in ee))return Q.defaultValue;var _e=w(ee[ne],Q);!se&&(0,j.Tn)(_e)&&(_e=_e.call(ee)),ee=_e}return ee}}return Array.isArray(C)?function k(C){for(var F={},Y=0,Q=C.length;Y<Q;Y++){var se=C[Y];F[se]=f(se)}return function(ie,ee){var re;return(0,o.__)(F,function(ne){var _e=this(ie,ee);if(void 0!==_e){for(var be=re||(re={}),oe=ne.split("."),me=oe.length-1,we=0;we<me;we++){var N=oe[we];N in be||(be[N]={}),be=be[N]}be[oe[me]]=_e}}),re}}(C):(0,j.Tn)(C)?C:void 0},I=function(C,F,Y,Q){if((0,j.O9)(Y))return Y;var se={};return b(C,F,se,Q),se},x=function(C){var F=(C=h(C||"this")).length-1;return function(Y,Q,se){var ie=w(Y,se=O(se));C.forEach(function(ee,re){var ne=function(C,F,Y){return w("this"===F?C:C[F],Y=Y||{})}(ie,ee,se),_e=!se.functionsAsIs&&(0,j.Tn)(ne)&&!m(ne);re===F?se.merge&&(0,j.Qd)(Q)&&(!(0,j.O9)(ne)||(0,j.Qd)(ne))?(ne=I(ie,ee,ne,se),(0,L.tm)(ne,Q,!1,!0)):_e?ie[ee](Q):b(ie,ee,Q,se):(ne=I(ie,ee,ne,se),_e&&(ne=ne.call(ie)),ie=ne)})}},g=function(C,F){var Q,Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return C instanceof Date?C.getTime():C&&C instanceof d.A&&C.valueOf?C.valueOf():F||"string"!=typeof C?C:("base"===(null==Y||null===(Q=Y.collatorOptions)||void 0===Q?void 0:Q.sensitivity)&&(C=C.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),null!=Y&&Y.locale?C.toLocaleLowerCase(Y.locale):C.toLowerCase())}},91437:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>Ti});var r=D(72463),d=D(22209),L=D(12101),j=D(48745),o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,quarter:7776e6,year:31536e6};function E(ni){return o[ni]}var R=7,h=["millisecond","second","minute","hour","day","week","month","quarter","year"],O=function(ni){var wi,ui,cn,Ui=["millisecond","second","minute","hour","day","month","year"],Xi={};for(wi=Ui.length-1;wi>=0;wi--)cn=Ui[wi],(ui=Math.floor(ni/E(cn)))>0&&(Xi[cn+"s"]=ui,ni-=f(cn,ui));return Xi};function f(ni,wi){return E(ni)*wi}function k(ni){var ui,wi=-1;return(0,r.Kg)(ni)?ni:(0,r.Gv)(ni)?((0,L.__)(ni,function(cn,Ui){for(ui=0;ui<h.length;ui++)Ui&&(cn===h[ui]+"s"||cn===h[ui])&&wi<ui&&(wi=ui)}),h[wi]):""}var I={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},g=function(ni){return Math.floor(ni/3)},C=function(ni){return 3*g(ni)};function F(ni,wi,ui,cn){ni=new Date(ni.getTime());var Xi,Qi,Ui=new Date(ni.getTime()),Ut=k(wi);switch(Ut){case"second":ni=new Date(1e3*Math.floor(Ui.getTime()/1e3));break;case"minute":ni=new Date(6e4*Math.floor(Ui.getTime()/6e4));break;case"hour":ni=new Date(36e5*Math.floor(Ui.getTime()/36e5));break;case"year":ni.setMonth(0);case"month":ni.setDate(1);case"day":ni.setHours(0,0,0,0);break;case"week":(ni=Be(ni,cn||0)).setHours(0,0,0,0);break;case"quarter":Xi=C(ni.getMonth()),Qi=ni.getMonth(),ni.setDate(1),ni.setHours(0,0,0,0),Qi!==Xi&&ni.setMonth(Xi)}return ui&&"hour"!==Ut&&"minute"!==Ut&&"second"!==Ut&&Tt(Ui,ni),ni}function Y(ni){return F(ni,"day")}function ie(ni,wi,ui){var cn=new Date(ni.getTime()),Ui=(0,r.Kg)(wi)?z(wi.toLowerCase()):(0,r.kf)(wi)?O(wi):wi;return Ui.years&&cn.setFullYear(cn.getFullYear()+Ui.years*ui),Ui.quarters&&cn.setMonth(cn.getMonth()+3*Ui.quarters*ui),Ui.months&&cn.setMonth(cn.getMonth()+Ui.months*ui),Ui.weeks&&cn.setDate(cn.getDate()+7*Ui.weeks*ui),Ui.days&&cn.setDate(cn.getDate()+Ui.days*ui),Ui.hours&&cn.setTime(cn.getTime()+36e5*Ui.hours*ui),Ui.minutes&&cn.setTime(cn.getTime()+6e4*Ui.minutes*ui),Ui.seconds&&cn.setTime(cn.getTime()+1e3*Ui.seconds*ui),Ui.milliseconds&&cn.setTime(cn.getTime()+Ui.milliseconds*ui),cn}var ee=function(ni,wi,ui){var cn=ui?-1:1;return(0,r.$P)(ni)?ie(ni,wi,cn):(0,d.Ai)(ni+wi*cn,wi)};function me(ni){return Je(ni.getFullYear(),ni.getMonth()+1,0).getDate()}function z(ni){var wi={};switch(ni){case"year":wi.years=1;break;case"month":wi.months=1;break;case"quarter":wi.months=3;break;case"week":wi.weeks=1;break;case"day":wi.days=1;break;case"hour":wi.hours=1;break;case"minute":wi.minutes=1;break;case"second":wi.seconds=1;break;case"millisecond":wi.milliseconds=1}return wi}function q(ni,wi){return ye(ni,wi)&&ni.getMonth()===wi.getMonth()}function ye(ni,wi){return ni&&wi&&ni.getFullYear()===wi.getFullYear()}function he(ni){return ni&&ni.getFullYear()-ni.getFullYear()%100}function Ie(ni){return ni&&ni.getFullYear()-ni.getFullYear()%10}function Be(ni,wi){var ui=(ni.getDay()-wi+R)%R,cn=new Date(ni);return cn.setDate(ni.getDate()-ui),cn}function We(ni){return Date.UTC(ni.getFullYear(),ni.getMonth(),ni.getDate())}function vt(ni){return new Date(ni,0,1)}function Xt(ni){return new Date(ni,11,31)}function Nt(ni,wi){var ui=ni.getDay()-wi+1;return ui<=0&&(ui+=R),ui}function ot(ni,wi,ui){var cn=ni;return(0,r.O9)(ni)?((0,r.O9)(wi)&&ni<wi&&(cn=wi),(0,r.O9)(ui)&&ni>ui&&(cn=ui),cn):ni}function Tt(ni,wi){if((0,r.O9)(ni)){var ui=wi.getHours()-ni.getHours();if(0!==ui){var cn=1===ui||-23===ui?-1:1,Ui=new Date(wi.getTime()+36e5*cn);(cn>0||Ui.getDate()===wi.getDate())&&wi.setTime(Ui.getTime())}}}function li(ni,wi){return 60*(wi.getTimezoneOffset()-ni.getTimezoneOffset())*1e3}var Je=function(ni){var wi=new Date(...arguments);return wi.setFullYear(ni),wi},gi={dateUnitIntervals:h,convertMillisecondsToDateUnits:O,dateToMilliseconds:function(ni){var wi=0;return(0,r.Gv)(ni)&&(0,L.__)(ni,function(ui,cn){wi+=f(ui.substr(0,ui.length-1),cn)}),(0,r.Kg)(ni)&&(wi=f(ni,1)),wi},getNextDateUnit:function(ni,wi){switch(k(ni)){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return wi?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:f,getDateUnitInterval:k,getDateFormatByTickInterval:function x(ni){return I[k(ni)]||""},getDatesDifferences:function(ni,wi){var ui=0,cn={year:ni.getFullYear()!==wi.getFullYear(),month:ni.getMonth()!==wi.getMonth(),day:ni.getDate()!==wi.getDate(),hour:ni.getHours()!==wi.getHours(),minute:ni.getMinutes()!==wi.getMinutes(),second:ni.getSeconds()!==wi.getSeconds(),millisecond:ni.getMilliseconds()!==wi.getMilliseconds()};return(0,L.__)(cn,function(Ui,Xi){Xi&&ui++}),0===ui&&0!==li(ni,wi)&&(cn.hour=!0,ui++),cn.count=ui,cn},correctDateWithUnitBeginning:F,trimTime:Y,setToDayEnd:function(ni){var wi=Y(ni);return wi.setDate(wi.getDate()+1),new Date(wi.getTime()-1)},roundDateByStartDayHour:function(ni,wi){var ui=this.dateTimeFromDecimal(wi),cn=new Date(ni);return(ni.getHours()===ui.hours&&ni.getMinutes()<ui.minutes||ni.getHours()<ui.hours)&&cn.setHours(ui.hours,ui.minutes,0,0),cn},dateTimeFromDecimal:function(ni){return{hours:Math.floor(ni),minutes:ni%1*60}},addDateInterval:ie,addInterval:ee,getSequenceByInterval:function(ni,wi,ui){var Ui,cn=[];for(cn.push((0,r.$P)(ni)?new Date(ni.getTime()):ni),Ui=ni;Ui<wi;)Ui=ee(Ui,ui),cn.push(Ui);return cn},getDateIntervalByString:z,sameHoursAndMinutes:function xe(ni,wi){return ni&&wi&&ni.getHours()===wi.getHours()&&ni.getMinutes()===wi.getMinutes()},sameDate:function X(ni,wi){return q(ni,wi)&&ni.getDate()===wi.getDate()},sameMonthAndYear:q,sameMonth:q,sameYear:ye,sameDecade:function(ni,wi){if((0,r.O9)(ni)&&(0,r.O9)(wi)){var ui=ni.getFullYear()-ni.getFullYear()%10,cn=wi.getFullYear()-wi.getFullYear()%10;return ni&&wi&&ui===cn}},sameCentury:function(ni,wi){if((0,r.O9)(ni)&&(0,r.O9)(wi)){var ui=ni.getFullYear()-ni.getFullYear()%100,cn=wi.getFullYear()-wi.getFullYear()%100;return ni&&wi&&ui===cn}},getDifferenceInMonth:function(ni){var wi=1;return"year"===ni&&(wi=12),"decade"===ni&&(wi=120),"century"===ni&&(wi=1200),wi},getDifferenceInMonthForCells:function(ni){var wi=1;return"decade"===ni&&(wi=12),"century"===ni&&(wi=120),wi},getFirstYearInDecade:Ie,getFirstDecadeInCentury:he,getShortDateFormat:function(){return"yyyy/MM/dd"},getViewFirstCellDate:function(ni,wi){return"month"===ni?Je(wi.getFullYear(),wi.getMonth(),1):"year"===ni?Je(wi.getFullYear(),0,wi.getDate()):"decade"===ni?Je(Ie(wi),wi.getMonth(),wi.getDate()):"century"===ni?Je(he(wi),wi.getMonth(),wi.getDate()):void 0},getViewLastCellDate:function(ni,wi){return"month"===ni?Je(wi.getFullYear(),wi.getMonth(),me(wi)):"year"===ni?Je(wi.getFullYear(),11,wi.getDate()):"decade"===ni?Je(Ie(wi)+9,wi.getMonth(),wi.getDate()):"century"===ni?Je(he(wi)+90,wi.getMonth(),wi.getDate()):void 0},getViewDown:function(ni){switch(ni){case"century":return"decade";case"decade":return"year";case"year":return"month"}},getViewUp:function(ni){switch(ni){case"month":return"year";case"year":return"decade";case"decade":return"century"}},getLastMonthDay:me,getLastMonthDate:function(ni){if((0,r.O9)(ni))return Je(ni.getFullYear(),ni.getMonth()+1,0)},getFirstMonthDate:function(ni){if((0,r.O9)(ni))return Je(ni.getFullYear(),ni.getMonth(),1)},getFirstWeekDate:Be,getWeekNumber:function Qe(ni,wi,ui){var cn=Nt(vt(ni.getFullYear()),wi),Ui=Nt(Xt(ni.getFullYear()),wi),Xi=R-cn+1,Qi=Math.ceil((function tt(ni){var wi=We(ni)-We(vt(ni.getFullYear()));return 1+Math.floor(wi/E("day"))}(ni)-Xi)/7);switch(ui){case"fullWeek":return Xi===R&&Qi++,0===Qi?Qe(Xt(ni.getFullYear()-1),wi,ui):Qi;case"firstDay":return Xi>0&&Qi++,(Qi>52&&!(7===cn||7===Ui)||54===Qi)&&(Qi=1),Qi;case"firstFourDays":return Xi>3&&Qi++,Qi>52&&!(4===cn||4===Ui)&&(Qi=1),0===Qi?Qe(Xt(ni.getFullYear()-1),wi,ui):Qi}},normalizeDateByWeek:function(ni,wi){var ui=gi.getDatesInterval(ni,wi,"day"),cn=new Date(ni);return ui>=6&&(cn=new Date(cn.setDate(cn.getDate()+7))),cn},getQuarter:g,getFirstQuarterMonth:C,dateInRange:function(ni,wi,ui,cn){return"date"===cn&&(wi=wi&&gi.correctDateWithUnitBeginning(wi,"day"),ui=ui&&gi.correctDateWithUnitBeginning(ui,"day"),ni=ni&&gi.correctDateWithUnitBeginning(ni,"day")),ot(ni,wi,ui)===ni},intervalsOverlap:function(ni){var{firstMin:wi,firstMax:ui,secondMin:cn,secondMax:Ui}=ni;return wi<=cn&&cn<=ui||wi>cn&&wi<Ui||wi<Ui&&ui>Ui},roundToHour:function(ni){var wi=new Date(ni.getTime());return wi.setHours(wi.getHours()+1),wi.setMinutes(0),wi},normalizeDate:ot,getViewMinBoundaryDate:function(ni,wi){var ui=Je(wi.getFullYear(),wi.getMonth(),1);return"month"===ni||(ui.setMonth(0),"year"===ni)||("decade"===ni&&ui.setFullYear(Ie(wi)),"century"===ni&&ui.setFullYear(he(wi))),ui},getViewMaxBoundaryDate:function(ni,wi){var ui=new Date(wi);return ui.setDate(me(wi)),"month"===ni||(ui.setMonth(11),ui.setDate(me(ui)),"year"===ni)||("decade"===ni&&ui.setFullYear(Ie(wi)+9),"century"===ni&&ui.setFullYear(he(wi)+99)),ui},fixTimezoneGap:Tt,getTimezonesDifference:li,makeDate:function(ni){return new Date(ni)},getDatesInterval:function(ni,wi,ui){var cn=wi.getTime()-ni.getTime(),Ui=E(ui)||1;return Math.floor(cn/Ui)},getDatesOfInterval:function(ni,wi,ui){for(var cn=[],Ui=new Date(ni.getTime());Ui<wi;)cn.push(new Date(Ui.getTime())),Ui=this.addInterval(Ui,ui);return cn},createDateWithFullYear:Je,getMachineTimezoneName:()=>typeof Intl<"u"?Intl.DateTimeFormat().resolvedOptions().timeZone:null,sameView:function(ni,wi,ui){return gi[(0,j.PT)("same "+ni)](wi,ui)}};const Ti=gi},39504:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>C});var r=D(83771),d=D(56773),L=D(50410),j=D(72463),o="number",E="yyyy/MM/dd",m=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,_=/^(\d{2}):(\d{2})(:(\d{2}))?$/,v=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],h=/^(\d{4})\/(\d{2})\/(\d{2})$/,b=function(F,Y){var Q;return(0,j.Kg)(F)&&!Y&&(Q=function f(F){var Y=F.match(m);if(!Y)return(Y=F.match(_))?new Date(0,0,0,O(Y[1]),O(Y[2]),O(Y[4])):void 0;var Q=O(Y[1]),se=--Y[3],ie=Y[5],ee=0,re=0;ee=O(Y[14]),re=O(Y[16]),"-"===Y[13]&&(ee=-ee,re=-re);var we,_e=O(Y[6])-ee,be=O(Y[8])-re,oe=O(Y[10]),me=O(we=(we=Y[11])||"")*Math.pow(10,3-we.length);return(we=>(Q<100&&we.setFullYear(Q),we))(Y[12]?new Date(Date.UTC(Q,se,ie,_e,be,oe,me)):new Date(Q,se,ie,_e,be,oe,me))}(F)),Q||function w(F){var Y=g(F)===E,Q=!(0,j.$P)(F)&&Date.parse(F);if(!Q&&Y){var se=F.match(h);if(se){var ie=new Date(O(se[1]),O(se[2]),O(se[3]));return ie.setFullYear(O(se[1])),ie.setMonth(O(se[2])-1),ie.setDate(O(se[3])),ie}}return(0,j.kf)(Q)?new Date(Q):F}(F)};function O(F){return+F||0}var g=function(F){return"number"==typeof F?o:(0,j.Kg)(F)?((0,r.A)().forceIsoDateParsing&&(Y=function(F,Y){var Q=F.match(m),se="";if(!Q)return(Q=F.match(_))?Q[3]?"HH:mm:ss":"HH:mm":void 0;for(var ie=1;ie<v.length;ie++)Q[ie]&&(se+=v[ie]||Q[ie]);return"Z"===Q[12]&&(se+="'Z'"),Q[14]&&(se+=Q[15]?"xxx":Q[16]?"xx":"x"),se}(F)),Y||(F.indexOf(":")>=0?"yyyy/MM/dd HH:mm:ss":E)):F?null:void 0;var Y};const C={dateParser:b,deserializeDate:function(F){return"number"==typeof F?new Date(F):b(F,!(0,r.A)().forceIsoDateParsing)},serializeDate:function(F,Y){return Y?(0,j.$P)(F)?Y===o?F&&F.valueOf?F.valueOf():null:(0,d.f)(Y,L.A)(F):null:F},getDateSerializationFormat:g}},12984:(ei,rt,D)=>{"use strict";D.d(rt,{Sx:()=>E,cY:()=>_,z7:()=>v});var r=D(72463),d=D(87951),L=D(34423),j=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],o=function(){var h=this;this._state="pending",this._promise={},j.forEach(function(s){var b=s.method;this[b+"Callbacks"]=(0,L.A)(),this[b]=function(){return this[b+"With"](this._promise,arguments)}.bind(this),this._promise[s.handler]=function(O){if(!O)return this;var w=h[b+"Callbacks"];return w.fired()?O.apply(h[b+"Context"],h[b+"Args"]):w.add(function(f,k){O.apply(f,k)}.bind(this)),this}}.bind(this)),this._promise.always=function(s){return this.done(s).fail(s)},this._promise.catch=function(s){return this.then(null,s)},this._promise.then=function(s,b){var O=new o;return["done","fail"].forEach(function(w){var f="done"===w?s:b;this[w](function(){if(f){var k=f&&f.apply(this,arguments);(0,r.uF)(k)?k.done(O.resolve).fail(O.reject):(0,r.yL)(k)?k.then(O.resolve,O.reject):O.resolve.apply(this,(0,r.O9)(k)?[k]:arguments)}else O["done"===w?"resolve":"reject"].apply(this,arguments)})}.bind(this)),O.promise()},this._promise.state=function(){return h._state},this._promise.promise=function(s){return s?(0,d.X)(s,h._promise):h._promise},this._promise.promise(this)};function E(h,s){if((0,r.uF)(h))return h;if((0,r.yL)(h)){var b=new o;return h.then(function(){b.resolveWith.apply(b,[s].concat([[].slice.call(arguments)]))},function(){b.rejectWith.apply(b,[s].concat([[].slice.call(arguments)]))}),b}return(new o).resolveWith(s,[h])}j.forEach(function(h){var s=h.method,b=h.state;o.prototype[s+"With"]=function(O,w){var f=this[s+"Callbacks"];return"pending"===this.state()&&(this[s+"Args"]=w,this[s+"Context"]=O,b&&(this._state=b),f.fire(O,w)),this}});var R=function(){if(1===arguments.length)return E(arguments[0]);for(var h=[].slice.call(arguments),s=[],b=0,O=new o,w=function(k){return function(I){s[k]=this,h[k]=arguments.length>1?[].slice.call(arguments):I,++b===h.length&&O.resolveWith(s,h)}},f=0;f<h.length;f++)(0,r.uF)(h[f])?h[f].promise().done(w(f)).fail(O.reject):b++;return b===h.length&&O.resolveWith(s,h),O.promise()};function _(){return new o}function v(){return R.apply(this,arguments)}},37041:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>o});var r=D(87951),d=D(72463),L=D(12101),j=D(56221);function o(E){var R=j.A.inherit(E),m=R,_=new m(E),v={},h=function(s,b){(0,L.__)(s,function(O){(0,d.Tn)(_[O])?(b||!E[O])&&(E[O]=function(){return _[O].apply(E,arguments)}):(b&&(v[O]=E[O]),E[O]=_[O])})};return h(E,!0),E.inject=function(s){m=m.inherit(s),_=new m,h(s)},E.resetInjection=function(){(0,r.X)(E,v),m=R,_=new R},E}},7963:(ei,rt,D)=>{"use strict";D.d(rt,{A1:()=>I,D2:()=>w,GX:()=>m,KR:()=>b,bG:()=>k,gR:()=>O,ki:()=>s,tc:()=>v,wr:()=>_});var r=D(17669),d=D(24292),L=D(12101),j=D(72463),o=D(14435),E=(0,o.zk)(),m=()=>{var g,x=r.A.getActiveElement();x&&x!==r.A.getBody()&&(null===(g=x.blur)||void 0===g||g.call(x))},_=()=>{var x=E.getSelection();if(x&&"Caret"!==x.type)if(x.empty)x.empty();else if(x.removeAllRanges)try{x.removeAllRanges()}catch{}},v=(x,g)=>{var C=(0,d.A)(x),F=(0,d.A)(g);if(C[0]===F[0])return C[0];for(var Y=C.parents(),Q=F.parents(),ie=-Math.min(Y.length,Q.length);ie<0;ie++)if(Y.get(ie)===Q.get(ie))return Y.get(ie)},s=x=>{var g=(0,j.O9)(x)&&(x.nodeType||(0,j.Kb)(x))?(0,d.A)(x):(0,d.A)("<div>").html(x).contents();return 1===g.length&&(g.is("script")?g=s(g.html().trim()):g.is("table")&&(g=g.children("tbody").contents())),g},b=(x,g)=>{var C=x.originalEvent&&x.originalEvent.clipboardData||E.clipboardData;if(!g)return C&&C.getData("Text");C&&C.setData("Text",g)},O=(x,g)=>!!g&&((0,j.l6)(x)?O(x.document,g):x.contains(g)||O(x,(x=>{if(x.getRootNode){var g=x.getRootNode().host;if(!(0,j.Kg)(g))return g}})(g))),w=(x,g,C)=>{var F=E.getComputedStyle((0,d.A)(x).get(0)),Y=C&&C.includePaddings;return(0,d.A)("<div>").text(g).css({fontStyle:F.fontStyle,fontVariant:F.fontVariant,fontWeight:F.fontWeight,fontSize:F.fontSize,fontFamily:F.fontFamily,letterSpacing:F.letterSpacing,border:F.border,paddingTop:Y?F.paddingTop:"",paddingRight:Y?F.paddingRight:"",paddingBottom:Y?F.paddingBottom:"",paddingLeft:Y?F.paddingLeft:"",visibility:"hidden",whiteSpace:"pre",position:"absolute",float:"left"})},k=(x,g)=>{if(g&&g[0])return g.is(x)?x:((0,L.__)(g,(C,F)=>{((x,g)=>{g&&r.A.insertElement(x.parentNode,g,x)})(x[0],F)}),x.remove(),g)},I=x=>{var g=x?.get(0),C=g?.getRootNode().host;return!!(0,d.A)(C||g).closest((0,o.zk)().document).length}},6161:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>E});var r=D(87951),d=D(85978),L=D(70370),o="https://js.devexpress.com/error/"+D(21721).r.split(".").slice(0,2).join("_")+"/";function E(R,m){var _={ERROR_MESSAGES:(0,r.X)(m,R),Error:function(){return function b(w){var f=w[0],k=h(f,w=w.slice(1)),I=O(f),x=s(f,k);return(0,r.X)(new Error(x),{__id:f,__details:k,url:I})}([].slice.call(arguments))},log:function(w){var f="log";/^E\d+$/.test(w)?f="error":/^W\d+$/.test(w)&&(f="warn"),d.v[f]("log"===f?w:function v(w){var f=w[0];return s(f,h(f,w=w.slice(1)))}([].slice.call(arguments)))}};function h(w,f){return f=[_.ERROR_MESSAGES[w]].concat(f),L.GP.apply(this,f).replace(/\.*\s*?$/,"")}function s(w,f){var k=null!=w&&w.startsWith("W")?"warning":"error";return L.GP.apply(this,["{0} - {1}.\n\nFor additional information on this {2} message, see: {3}",w,f,k,O(w)])}function O(w){return o+w}return _}},87951:(ei,rt,D)=>{"use strict";D.d(rt,{X:()=>L,a:()=>d});var r=D(72463),d=function(j,o,E){for(var R in j=j||{},o)Object.prototype.hasOwnProperty.call(o,R)&&(!(R in j)||E)&&(j[R]=o[R]);return j},L=function j(o){var E=1,R=!1;for("boolean"==typeof(o=o||{})&&(R=o,o=arguments[1]||{},E++);E<arguments.length;E++){var m=arguments[E];if(null!=m)for(var _ in m){var v=o[_],h=m[_],s=!1,b=void 0;"__proto__"===_||"constructor"===_||o===h||(R&&h&&((0,r.Qd)(h)||(s=Array.isArray(h)))?(b=s?v&&Array.isArray(v)?v:[]:v&&(0,r.Qd)(v)?v:{},o[_]=j(R,b,h)):void 0!==h&&(o[_]=h))}}return o}},41242:(ei,rt,D)=>{"use strict";D.d(rt,{B:()=>j,a:()=>o});var r=D(17669),d=/<([a-z][^/\0>\x20\t\r\n\f]+)/i,L={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};L.tbody=L.colgroup=L.caption=L.tfoot=L.thead,L.th=L.td;var j=function(E){if("string"!=typeof E)return null;var m=r.A.createDocumentFragment().appendChild(r.A.createElement("div")),_=d.exec(E),v=_&&_[1].toLowerCase(),h=L[v]||L.default;m.innerHTML=h.startTags+E+h.endTags;for(var s=0;s<h.tagsCount;s++)m=m.lastChild;return[...m.childNodes]},o=function(E){var R=d.exec(E);return R&&R[1]in L}},86018:(ei,rt,D)=>{"use strict";D.d(rt,{F:()=>j,N:()=>o});var r=D(24292),d="dx-icon",j=E=>!(!E||"string"!=typeof E)&&(/^\s*<svg[^>]*>(.|\r?\n)*?<\/svg>\s*$/i.test(E)?"svg":/data:.*base64|\.|[^<\s]\/{1,1}/.test(E)?"image":/^[\w-_]+$/.test(E)?"dxIcon":!!/^\s?([\w-_:]\s?)+$/.test(E)&&"fontIcon"),o=E=>{switch(j(E)){case"image":return(0,r.A)("<img>").attr("src",E).addClass(d);case"fontIcon":return(0,r.A)("<i>").addClass("".concat(d," ").concat(E));case"dxIcon":return(0,r.A)("<i>").addClass("".concat(d," ").concat(d,"-").concat(E));case"svg":return(0,r.A)("<i>").addClass("".concat(d," ").concat("dx-svg-icon")).append(E);default:return null}}},48745:(ei,rt,D)=>{"use strict";D.d(rt,{Bc:()=>h,I3:()=>m,Ns:()=>_,PT:()=>R,_k:()=>o});var r=D(12101),d=function(s){return null==s?"":String(s)},L=function(s){return d(s).charAt(0).toUpperCase()+s.substr(1)},j=function(s){return d(s).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},o=function(s){return(0,r.Tj)(j(s),function(b){return b.toLowerCase()}).join("-")},R=function(s,b){return(0,r.Tj)(j(s),function(O,w){return O=O.toLowerCase(),(b||w>0)&&(O=L(O)),O}).join("")},m=function(s){return L(o(s).replace(/-/g," "))},_=function(s){return(0,r.Tj)(j(s),function(b){return L(b.toLowerCase())}).join(" ")},v=["0","1","2","3","4","5","6","7","8","9"],h=function(s){var O,w,b=[],f=!1,k=!1;for(O=0;O<s.length;O++)k=(w=s.charAt(O))===w.toUpperCase()&&"-"!==w&&")"!==w&&"/"!==w||w in v,"_"===w||"."===w?(w=" ",k=!0):0===O?(w=w.toUpperCase(),k=!0):!f&&k&&b.length>0&&b.push(" "),b.push(w),f=k;return b.join("")}},12101:(ei,rt,D)=>{"use strict";D.d(rt,{Tj:()=>r,__:()=>d,iW:()=>L});var r=(j,o)=>{if(Array.isArray(j))return j.map(o);var E=[];for(var R in j)E.push(o(j[R],R));return E},d=(j,o)=>{if(j){if("length"in j)for(var E=0;E<j.length&&!1!==o.call(j[E],E,j[E]);E++);else for(var R in j)if(!1===o.call(j[R],R,j[R]))break;return j}},L=(j,o)=>{if(j&&"length"in j&&0!==j.length)for(var E=j.length-1;E>=0&&!1!==o.call(j[E],E,j[E]);E--);}},22209:(ei,rt,D)=>{"use strict";D.d(rt,{Ai:()=>_,BU:()=>b,Ke:()=>o,T0:()=>R,XV:()=>v,_S:()=>d,cB:()=>s,df:()=>L,r4:()=>j});var r=D(72463),d=function(k){return 0===k?0:k/Math.abs(k)},L=function(k,I,x){var g=!I&&0!==I,C=!x&&0!==x;return g&&(I=C?k:Math.min(k,x)),C&&(x=g?k:Math.max(k,I)),Math.min(Math.max(k,I),x)},j=function(k,I,x){return k>=I&&k<=x};function o(k){return Math.abs(parseInt(k.toExponential().split("e")[1]))}function R(k,I){var x=function E(k){var I=k.toExponential().split("e"),x=parseFloat(I[0]);return{exponent:parseInt(I[1]),mantissa:x}}(k);return parseFloat("".concat(x.mantissa,"e").concat(x.exponent+I))}function _(k,I){var Y,x=v(I||0)+2,g=k.toString().split("."),C=k,F=Math.abs(k),Q=(0,r.O4)(k),se=F>1?10:0;return 1===g.length?k:(Q||((0,r.O4)(I)&&(x=g[0].length+o(I)),k=(k=F)-Math.floor(k)+se),x=function m(){return"0.000300"!==3e-4.toPrecision(3)}()&&o(k)>6||x>7?15:7,Q||(Y=parseFloat(k.toPrecision(x)).toString().split("."))[0]!==se.toString()?parseFloat(C.toPrecision(x)):parseFloat(g[0]+"."+Y[1]))}function v(k){var I=k.toString();if(I.indexOf(".")<0)return 0;var x=I.split("."),g=x[1].indexOf("e");return g>=0?g:x[1].length}function h(k,I){if(k<0&&I%2!=1)return NaN;var x=Math.pow(Math.abs(k),1/I);return I%2==1&&k<0?-x:x}function s(k,I,x,g){if(Math.abs(k)<1e-8){if(k=I,I=x,x=g,Math.abs(k)<1e-8)return k=I,I=x,Math.abs(k)<1e-8?[]:[-I/k];var C=I*I-4*k*x;return Math.abs(C)<1e-8?[-I/(2*k)]:C>0?[(-I+Math.sqrt(C))/(2*k),(-I-Math.sqrt(C))/(2*k)]:[]}var Q,se,F=(3*k*x-I*I)/(3*k*k),Y=(2*I*I*I-9*k*I*x+27*k*k*g)/(27*k*k*k);if(Math.abs(F)<1e-8)Q=[h(-Y,3)];else if(Math.abs(Y)<1e-8)Q=[0].concat(F<0?[Math.sqrt(-F),-Math.sqrt(-F)]:[]);else{var ie=Y*Y/4+F*F*F/27;if(Math.abs(ie)<1e-8)Q=[-1.5*Y/F,3*Y/F];else if(ie>0)Q=[(se=h(-Y/2-Math.sqrt(ie),3))-F/(3*se)];else{se=2*Math.sqrt(-F/3);var ee=Math.acos(3*Y/F/se)/3,re=2*Math.PI/3;Q=[se*Math.cos(ee),se*Math.cos(ee-re),se*Math.cos(ee-2*re)]}}for(var ne=0;ne<Q.length;ne++)Q[ne]-=I/(3*k);return Q}function b(k){return Math.trunc?Math.trunc(k):k>0?Math.floor(k):Math.ceil(k)}},95652:(ei,rt,D)=>{"use strict";D.d(rt,{ap:()=>j,o8:()=>L,tm:()=>E});var r=D(72463),d=D(78059),L=function(){function R(){}return function(m){return R.prototype=m,new R}}(),j=function(R,m){var v,h,_=[];for(v in R)Object.prototype.hasOwnProperty.call(R,v)&&_.push(v);for(_.sort(function(s,b){var O=(0,r.kf)(s),w=(0,r.kf)(b);return O&&w?s-b:O&&!w?-1:!O&&w?1:s<b?-1:s>b?1:0}),h=0;h<_.length;h++)m(v=_[h],R[v])},o=function(R,m,_,v){!v&&d.A.isWrapped(R[m])?d.A.assign(R[m],_):R[m]=_},E=function R(m,_,v,h){var s,b;for(var O in _)s=m[O],b=_[O],"__proto__"!==O&&"constructor"!==O&&m!==b&&((0,r.Qd)(b)&&(b=R((v?(0,r.Gv)(s):(0,r.Qd)(s))?s:{},b,v,h)),void 0!==b&&s!==b&&o(m,O,b,h));return m}},50448:(ei,rt,D)=>{"use strict";D.d(rt,{N:()=>j,n:()=>L});var r=D(83771),d=D(72463),L=o=>o??(0,r.A)().rtlEnabled?"right":"left",j=o=>(0,d.l6)(o)?{width:o.outerWidth,height:o.outerHeight}:o.getBoundingClientRect()},9690:(ei,rt,D)=>{"use strict";D.d(rt,{UK:()=>v,UU:()=>_,pV:()=>h});var r=D(98332),d=D(91269),L=D(72463),j=D(20675),o="dxComponents",R=new WeakMap,m=0,_=function(s,b){if(!(0,L.O9)(b)){if(!R.has(s)){var O="dxPrivateComponent"+m++;return R.set(s,O),O}return R.get(s)}R.set(s,b)};function v(s,b,O){var w=(0,r.p)(s.get(0)),f=_(b.constructor);w[f]=b,O&&d.A.one(s,j.N,function(){O.call(b)}),w[o]||(w[o]=[]),w[o].push(f)}function h(s,b){var O=_(b);return(0,r.p)(s.get(0),O)}},72535:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>m});var r=D(17669),d=D(37041),L=D(14435),j=D(435),o=[],E=(0,j.A)(()=>{var _=r.A.listen(r.A.getDocument(),"DOMContentLoaded",()=>{R.fire(),_()})}),R={add:_=>{var v=(0,L.Vd)();v&&"loading"!==r.A.getReadyState()?_():(o.push(_),v&&E())},fire:()=>{o.forEach(_=>_()),o=[]}};const m=(0,d.A)(R)},10348:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>R});var r=D(14435),d=D(17669),L=D(34423),j=D(72535),o=D(435);const R=function(){var m,_=(0,L.A)(),v=_.add,h=_.remove;if(!(0,r.Vd)())return _;var w,s=function(){var f=(0,r.zk)();return{width:f.innerWidth,height:f.innerHeight}},b=function(){var k,f=s();f.width===m.width&&f.height===m.height||(f.width===m.width&&(k="height"),f.height===m.height&&(k="width"),m=f,_.fire(k))},O=(0,o.A)(function(){m=s()});return _.add=function(){var f=v.apply(_,arguments);return O(),j.A.add(function(){!w&&_.has()&&(w=d.A.listen((0,r.zk)(),"resize",b))}),f},_.remove=function(){var f=h.apply(_,arguments);return!_.has()&&w&&(w(),w=void 0),f},_}()},14852:(ei,rt,D)=>{"use strict";D.d(rt,{c:()=>_,m:()=>E});var r="dx-",d=null;function L(v){try{return new CSSStyleSheet}catch{var h=v.ownerDocument.createElement("style");return v.appendChild(h),h.sheet}}function j(v,h,s){for(var b=0;b<h.length;b++){var O=h[b];try{for(var w=0;w<O.cssRules.length;w++)o(v,O.cssRules[w],s)}catch{}}}function o(v,h,s){var b,O,w,f,k,I;(s||(null===(b=h.selectorText)||void 0===b?void 0:b.includes(r))||(null===(O=h.cssRules)||void 0===O||null===(w=O[0])||void 0===w||null===(f=w.selectorText)||void 0===f?void 0:f.includes(r))||(null===(k=h.name)||void 0===k?void 0:k.startsWith(r))||"DXIcons"===(null===(I=h.style)||void 0===I?void 0:I.fontFamily))&&v.insertRule(h.cssText,v.cssRules.length)}function E(v){var h,s=v.get(0),b=null===(h=s.getRootNode)||void 0===h?void 0:h.call(s);if(null!=b&&b.host){d||j(d=L(b),s.ownerDocument.styleSheets,!1);var O=L(b);j(O,b.styleSheets,!0),b.adoptedStyleSheets=[d,O]}}function R(v,h,s){var b=v.getBoundingClientRect();return b&&h>=b.left&&h<b.right&&s>=b.top&&s<b.bottom}function _(v,h,s){for(var b=function m(){var v=0,h=[];return{push(s){return h.push(s),this},shift:()=>(v++,h[v-1]),get length(){return h.length-v},get items(){return h}}}().push(s);b.length;)for(var O=b.shift(),w=0;w<O.childNodes.length;w++){var f=O.childNodes[w];f.nodeType===Node.ELEMENT_NODE&&R(f,v,h)&&"none"!==getComputedStyle(f).pointerEvents&&b.push(f)}var k=b.items.reverse();return k.pop(),k}},80186:(ei,rt,D)=>{"use strict";D.d(rt,{A3:()=>W,NG:()=>_e,OP:()=>G,Oq:()=>se,Ot:()=>ee,P$:()=>ne,RG:()=>Y,d6:()=>I,dh:()=>k,gP:()=>g,hh:()=>be,iT:()=>re,k$:()=>ie,pD:()=>x,yV:()=>me,zj:()=>Q});var r=D(14435),d=D(17669),L=D(72463),j=(0,r.zk)(),o=["auto","none","inherit","initial"],E=function(z,X){var q=0;return X.forEach(function(ye){q+=parseFloat(z[ye])||0}),q},R=function(z,X){var q="width"===z?"Left":"Top",ye="width"===z?"Right":"Bottom";return{padding:E(X,["padding"+q,"padding"+ye]),border:E(X,["border"+q+"Width","border"+ye+"Width"]),margin:E(X,["margin"+q,"margin"+ye])}},m=function(z){var X,q=(null==z||null===(X=z.ownerDocument)||void 0===X?void 0:X.defaultView)||j;return q.getComputedStyle&&q.getComputedStyle(z)},_=function(z,X,q,ye){var xe;return X?.[q]||(null===(xe=z.style)||void 0===xe?void 0:xe[q])||ye},v={content:0,padding:1,border:2,margin:3,"content-box":0,"border-box":2},h={width:["left","right"],height:["top","bottom"]};function s(z,X,q,ye){var xe=(Ee,he,Ie)=>parseFloat(_(Ee,he,Ie,"0"))||0,ge="border"===q?"-width":"";return xe(z,ye,"".concat(q,"-").concat(h[X][0]).concat(ge))+xe(z,ye,"".concat(q,"-").concat(h[X][1]).concat(ge))}var f=function(z,X,q){return z?o.indexOf(z)>-1?X?null:z:((0,L.Kg)(z)&&(z=function(z,X,q){return z.indexOf("px")>0?z=parseInt(z.replace("px","")):z.indexOf("%")>0?z=parseInt(z.replace("%",""))*function(z){return(0,L.l6)(z)?z.innerHeight:z.offsetHeight}(X)/100:isNaN(z)?z.indexOf("vh")>0?z=j.innerHeight/100*parseInt(z.replace("vh","")):q&&z.indexOf("em")>0&&(z=parseFloat(z.replace("em",""))*parseFloat(j.getComputedStyle(q).fontSize)):z=parseInt(z),z}(z,q)),(0,L.kf)(z)?Math.max(0,z+X):"calc("+z+(X<0?" - ":" ")+Math.abs(X)+"px)"):null},k=function(z,X,q){var ye=f(z,X,q);return null!==ye?ye:"none"},I=function(z,X,q){var ye=f(z,X,q);return null!==ye?ye:0},x=function(z,X){if(!z)return 0;var q=R("height",j.getComputedStyle(z));return q.padding+q.border+(X?q.margin:0)},g=function(z){if(z){var X=z.getBoundingClientRect();if(X.height)return X.height}return 0};function F(z,X,q){return 2===arguments.length?N(X,z):N(X,z,q)}var Y=z=>function(){for(var z=arguments.length,X=new Array(z),q=0;q<z;q++)X[q]=arguments[q];return F("width",...X)}(z),Q=(z,X)=>function(){for(var z=arguments.length,X=new Array(z),q=0;q<z;q++)X[q]=arguments[q];return F("width",...X)}(z,X),se=z=>function(){for(var z=arguments.length,X=new Array(z),q=0;q<z;q++)X[q]=arguments[q];return F("height",...X)}(z),ie=(z,X)=>function(){for(var z=arguments.length,X=new Array(z),q=0;q<z;q++)X[q]=arguments[q];return F("height",...X)}(z,X),ee=(z,X)=>function(){for(var z=arguments.length,X=new Array(z),q=0;q<z;q++)X[q]=arguments[q];return F("outerWidth",...X)}(z,X||!1),re=(z,X)=>function(){for(var z=arguments.length,X=new Array(z),q=0;q<z;q++)X[q]=arguments[q];return F("outerWidth",...X)}(z,X),ne=(z,X)=>function(){for(var z=arguments.length,X=new Array(z),q=0;q<z;q++)X[q]=arguments[q];return F("outerHeight",...X)}(z,X||!1),_e=(z,X)=>function(){for(var z=arguments.length,X=new Array(z),q=0;q<z;q++)X[q]=arguments[q];return F("outerHeight",...X)}(z,X),be=z=>function(){for(var z=arguments.length,X=new Array(z),q=0;q<z;q++)X[q]=arguments[q];return F("innerWidth",...X)}(z),me=z=>function(){for(var z=arguments.length,X=new Array(z),q=0;q<z;q++)X[q]=arguments[q];return F("innerHeight",...X)}(z),N=function z(X,q,ye){var xe=q.toLowerCase().indexOf("width")>=0?"Width":"Height",ge=xe.toLowerCase(),Ee=0===q.indexOf("outer"),he=0===q.indexOf("inner"),Ie=2===arguments.length||"boolean"==typeof ye;if((0,L.Kb)(X)){if(X.length>1&&!Ie){for(var ce=0;ce<X.length;ce++)z(X[ce],q,ye);return}X=X[0]}if(X){if((0,L.l6)(X))return Ee?X["inner"+xe]:d.A.getDocumentElement()["client"+xe];if(d.A.isDocument(X)){var de=d.A.getDocumentElement(),pe=d.A.getBody();return Math.max(pe["scroll"+xe],pe["offset"+xe],de["scroll"+xe],de["offset"+xe],de["client"+xe])}if(Ie){var Be="content";return Ee&&(Be=ye?"margin":"border"),he&&(Be="padding"),function(z,X,q){var ye="width"===X?"offsetWidth":"offsetHeight",xe=m(z),ge=_(z,xe,X);(""===ge||"auto"===ge)&&(ge=z[ye]),ge=parseFloat(ge)||0;var Ee=_(z,xe,"boxSizing","content-box"),Ie=v[q||Ee],ce=v[Ee];if(void 0===Ie||void 0===ce)throw new Error;if(ce===Ie)return ge;var de=Math.sign(Ie-ce),pe=!1,Be=!1,We=!1,tt=!1;1===de&&(Ie+=1,ce+=1);for(var vt=ce;vt!==Ie;vt+=de)switch(vt){case v.content:break;case v.padding:pe=de*s(z,X,"padding",xe);break;case v.border:Be=de*s(z,X,"border",xe);break;case v.margin:We=de*s(z,X,"margin",xe)}if(pe||Be){var Xt=(!1===pe?de*s(z,X,"padding",xe):pe)+(!1===Be?de*s(z,X,"border",xe):Be);tt=de*Math.max(0,Math.floor(z[ye]-ge-de*Xt))||0}return ge+We+pe+Be+tt}(X,ge,Be)}if((0,L.kf)(ye)){var We=m(X),tt=R(ge,We),vt="border-box"===We.boxSizing;ye=Number(ye),Ee?ye-=vt?0:tt.border+tt.padding:he?ye+=vt?tt.border:-tt.padding:vt&&(ye+=tt.border+tt.padding)}return ye+=(0,L.kf)(ye)?"px":"",d.A.setStyle(X,ge,ye),null}},G=z=>(0,L.l6)(z)?z:z.defaultView,W=z=>{if(!z.getClientRects().length)return{top:0,left:0};var X=z.getBoundingClientRect(),q=G(z.ownerDocument),ye=z.ownerDocument.documentElement;return{top:X.top+q.pageYOffset-ye.clientTop,left:X.left+q.pageXOffset-ye.clientLeft}}},92378:(ei,rt,D)=>{"use strict";D.d(rt,{s:()=>L});var d=(0,D(14435).zk)(),L=function(){var j;try{j=d.sessionStorage}catch{}return j}},70370:(ei,rt,D)=>{"use strict";D.d(rt,{GP:()=>o,Im:()=>E,o4:()=>d,oN:()=>j});var R,r=D(72463),d=(R=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")],function(m){return String(m).replace(R[0],"&").replace(R[1],""").replace(R[2],"'").replace(R[3],"<").replace(R[4],">")}),j=function(R){var m=function(R){switch(typeof R){case"string":return R.split(/\s+/,4);case"object":return[R.x||R.h||R.left,R.y||R.v||R.top,R.x||R.h||R.right,R.y||R.v||R.bottom];case"number":return[R];default:return R}}(R),_=parseInt(m&&m[0],10),v=parseInt(m&&m[1],10),h=parseInt(m&&m[2],10),s=parseInt(m&&m[3],10);return isFinite(_)||(_=0),isFinite(v)||(v=_),isFinite(h)||(h=_),isFinite(s)||(s=v),{top:v,right:h,bottom:s,left:_}};function o(R){for(var m=arguments.length,_=new Array(m>1?m-1:0),v=1;v<m;v++)_[v-1]=arguments[v];return(0,r.Tn)(R)?R(..._):(_.forEach((h,s)=>{(0,r.Kg)(h)&&(h=h.replace(/\$/g,"$$$$"));var b=new RegExp("\\{"+s+"\\}","gm");R=R.replace(b,h)}),R)}var E=function(){var R=/\s/g;return function(m){return!m||!m.replace(R,"")}}()},5918:(ei,rt,D)=>{"use strict";D.d(rt,{CC:()=>b,Rb:()=>v,eC:()=>k,jA:()=>_,k$:()=>f,zj:()=>w});var r=D(48745),d=D(435),L=D(72463),j=D(17669),o=["","Webkit","Moz","O","Ms"],E={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},R=(0,d.A)(function(){return j.A.createElement("dx").style}),_=function(I){if(I in R())return I;var x=I;I=I.charAt(0).toUpperCase()+I.substr(1);for(var g=1;g<o.length;g++){var C=o[g].toLowerCase()+I;if(C in R())return C}return x},v=function(I){return function(I,x){I=(0,r.PT)(I,!0);for(var g,C=0,F=o.length;C<F;C++){var Y=o[C],Q=Y+I;if(void 0===(g=x((0,r.PT)(Q),Y))&&(g=x(Q,Y)),void 0!==g)break}return g||""}(I,function(x,g){if(x in R())return E[g]})},h=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],b=function(I,x){return(0,L.kf)(x)&&-1===h.indexOf(I)&&(x+="px"),x},O=function(I,x,g){if(I){g=(0,L.kf)(g)?g+="px":g;for(var C=0;C<I.length;++C)I[C].style[x]=g}},w=function(I,x){O(I,"width",x)},f=function(I,x){O(I,"height",x)},k=function(I,x){arguments.length>2&&void 0!==arguments[2]&&!arguments[2]||[].slice.call(I.style).forEach(F=>{I.style.removeProperty(F)}),x.split(";").forEach(F=>{var Y=F.split(":").map(ie=>ie.trim());if(2===Y.length){var[Q,se]=Y;I.style[Q]=se}})}},19900:(ei,rt,D)=>{"use strict";D.r(rt),D.d(rt,{animation:()=>x,inputType:()=>v,nativeScrolling:()=>g,pointerEvents:()=>O,styleProp:()=>o.jA,stylePropPrefix:()=>o.Rb,supportProp:()=>m,touch:()=>f,touchEvents:()=>b,transition:()=>k,transitionEndEventName:()=>I});var C,F,r=D(17669),d=D(435),L=D(14435),j=D(23862),o=D(5918),{maxTouchPoints:E}=(0,L.w3)(),R={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},m=function(C){return!!(0,o.jA)(C)},v=function(C){if("text"===C)return!0;var F=r.A.createElement("input");try{return F.setAttribute("type",C),F.value="wrongValue",!F.value}catch{return!1}},b=(F=E,((C=L.i5)("ontouchstart")||!!F)&&!C("callPhantom")),O=function(C){return C("PointerEvent")}(L.i5),f=b||O&&!!E,k=(0,d.A)(function(){return m("transition")}),I=(0,d.A)(function(){return R[(0,o.jA)("transition")]}),x=(0,d.A)(function(){return m("animation")}),g=function(){var{platform:C,mac:F}=j.A.real();return"ios"===C||"android"===C||F}()},12473:(ei,rt,D)=>{"use strict";D.d(rt,{G0:()=>m,RY:()=>v,XC:()=>_});var r=D(17669),d=D(14435),L=D(24292),j=(0,d.zk)(),m="hidden-for-export";function _(h,s){return function E(h){var s=!0;return-1===h.indexOf("xmlns:xlink")&&(h=h.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),(h=h.replace(/xmlns="[\s\S]*?"/gi,function(b){return s?(s=!1,b):""})).replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}(function R(h){return h.replace(/"/gi,""").replace(/&/gi,"&").replace(/'/gi,"'").replace(/</gi,"<").replace(/>/gi,">").replace(/ /gi," ").replace(/­/gi,"­")}(function o(h,s){var b=r.A.createElement("div"),O=h.cloneNode(!0);return s&&(0,L.A)(O).css("backgroundColor",s),b.appendChild(O),b.innerHTML}(h,s)))}function v(h){return r.A.isNode(h)?h:(new j.DOMParser).parseFromString(h,"image/svg+xml").childNodes[0]}},53468:(ei,rt,D)=>{"use strict";D.d(rt,{Xl:()=>_e,SN:()=>re,zD:()=>C,jJ:()=>se,pK:()=>F,AY:()=>ee,I3:()=>ie});var b,r=D(58168),d=D(83771),L=D(23862),j=D(60181),o=D(87550),E=D(24292),R=D(89902),m=D(67465),_=D(52663),v=D(7963),h=D(72463),s={};function f(){return b}(function O(be,oe){s[be]=oe})("default",{compile:be=>(0,v.ki)(be),render:(be,oe,me)=>be.clone()}),function w(be){if((0,h.Kg)(be)){if(!(b=s[be]))throw o.A.Error("E0020",be)}else b=be}("default");class k extends _.o{constructor(oe){super(),this._element=oe}_renderCore(oe){var me=oe.transclude;return!me&&!this._compiledTemplate&&(this._compiledTemplate=f().compile(this._element)),(0,E.A)("<div>").append(me?this._element:f().render(this._compiledTemplate,oe.model,oe.index)).contents()}source(){return(0,E.A)(this._element).clone()}}var I=D(89518),x=D(5042),g=D(87951),C=(be,oe)=>{var me=(0,E.A)(be).contents().filter("[".concat("data-options",'*="').concat(oe,'"]'));return[].slice.call(me).map(we=>{var N=(0,E.A)(we).attr("data-options")||"";return{element:we,options:(0,d.A)().optionsParser(N)[oe]}}).filter(we=>!!we.options)},F=be=>{var oe=(0,I.$z)(be,we=>we.options.name);if(oe[void 0])throw o.A.Error("E0023");var me={};return Object.keys(oe).forEach(we=>{var N,G=null===(N=(0,x.hm)(L.A.current(),oe[we],W=>W.options)[0])||void 0===N?void 0:N.element;G&&(me[we]=G)}),me},Y=be=>{var oe=be.render.bind(be);return(0,g.X)({},be,{render(me){var we=oe(me);return me&&me.onRendered&&me.onRendered(),we}})},se=be=>{var oe=[];return"model"in be&&oe.push(be.model),"index"in be&&oe.push(be.index),oe.push(be.container),oe},ie=be=>"string"==typeof be?(0,v.ki)(be):be,ee=be=>(0,h.Kb)(be)&&be[0]||be,re=be=>new k(be),_e=(be,oe,me,we,N,G)=>null==be?new m.A:be instanceof R.M?G[be.name]:be instanceof _.o?be:(0,h.Tn)(be.render)&&!(0,h.Kb)(be)?we?be:Y(be):be.nodeType||(0,h.Kb)(be)?oe((0,E.A)(be)):((be,oe,me,we)=>{var N=null;return(!we||-1===we.indexOf(be))&&(N=oe[be])&&!(N instanceof _.o)&&((0,h.Tn)(N.render)&&(N=(be=>{var oe=be.render.bind(be);return(0,g.X)({},be,{render(me){var we=(0,E.A)(me.container);return oe((0,r.A)({},me,{container:(0,j.c)(we)}))}})})(N)),me||(N=Y(N))),N})(be,me,we,N)||G[be]||oe(be)},72463:(ei,rt,D)=>{"use strict";D.d(rt,{$P:()=>o,Gv:()=>v,Kb:()=>w,Kg:()=>m,Lm:()=>L,NW:()=>d,O4:()=>j,O9:()=>E,Qd:()=>s,RI:()=>h,Tn:()=>R,kf:()=>_,l6:()=>O,sO:()=>b,uF:()=>k,xH:()=>I,yL:()=>f});var r={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string"},d=function(x){if(null===x)return"null";var g=Object.prototype.toString.call(x);return"object"==typeof x?r[g]||"object":typeof x},L=function(x){return"boolean"==typeof x},j=function(x){return _(x)&&-1!==x.toString().indexOf("e")},o=function(x){return"date"===d(x)},E=function(x){return null!=x},R=function(x){return"function"==typeof x},m=function(x){return"string"==typeof x},_=function(x){return"number"==typeof x&&isFinite(x)||!isNaN(x-parseFloat(x))},v=function(x){return"object"===d(x)},h=function(x){var g;for(g in x)return!1;return!0},s=function(x){if(!x||"object"!==d(x))return!1;var g=Object.getPrototypeOf(x);if(!g)return!0;var C=Object.hasOwnProperty.call(g,"constructor")&&g.constructor;return"function"==typeof C&&Object.toString.call(C)===Object.toString.call(Object)},b=function(x){return-1===["object","array","function"].indexOf(d(x))},O=function(x){return null!=x&&x===x.window},w=function(x){return!(!x||!x.jquery&&!x.dxRenderer)},f=function(x){return!!x&&R(x.then)},k=function(x){return!!x&&R(x.done)&&R(x.fail)},I=function(x){return!(!x||!x.preventDefault)}},78059:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>L});var r=D(85978);const L=(0,D(37041).A)({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(j){return j},unwrap:function(j){return j},assign:function(){r.v.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},39011:(ei,rt,D)=>{"use strict";function r(d,L,j){function o(v){return"string"==typeof v?v.split("."):"number"==typeof v?[v]:v}d=o(d),L=o(L);var E=Math.max(d.length,L.length);isFinite(j)&&(E=Math.min(E,j));for(var R=0;R<E;R++){var m=parseInt(d[R]||0,10),_=parseInt(L[R]||0,10);if(m<_)return-1;if(m>_)return 1}return 0}D.d(rt,{U:()=>r})},3558:(ei,rt,D)=>{"use strict";D.d(rt,{Uq:()=>R,WV:()=>o,s$:()=>m});var r=D(24292),d=D(72535),L=D(34423),j=d.A.add,o=(0,L.A)(),E=(0,r.A)(),R=function(){var _;return function(v){if(!arguments.length)return _;var h=(0,r.A)(v);E=h;var s=!!h.length,b=R();_=s?h:(0,r.A)("body"),o.fire(s?R():(0,r.A)(),b)}}();function m(){return E}j(function(){R(".dx-viewport")})},14435:(ei,rt,D)=>{"use strict";D.d(rt,{Vd:()=>L,i5:()=>R,ne:()=>_,w3:()=>v,zY:()=>m,zk:()=>o});var r=D(17669),d=typeof window<"u",L=()=>d,j=L()?window:void 0;j||((j={}).window=j);var o=()=>j,R=h=>L()&&h in j,m=h=>h<768?"xs":h<992?"sm":h<1200?"md":"lg",_=h=>(h||m)(r.A.getDocumentElement().clientWidth),v=()=>L()?j.navigator:{userAgent:""}},21721:(ei,rt,D)=>{"use strict";D.d(rt,{r:()=>r});var r="23.2.6"},44168:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>f});var r=D(58168),d=D(56221),L=D(17278),j=D(12101),o=D(81591),E=D(25571),R=D(39407),m=D(37514),_=D(12984),v=D(5042),h=D(72463),s=d.A.abstract,b=m.A.queryByOptions,O={},w=d.A.inherit({_langParams:{},ctor:function(k){var I=this;k=k||{},this._eventsStrategy=new L.h(this),(0,j.__)(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(x,g){g in k&&I.on(g.slice(2).toLowerCase(),k[g])}),this._key=k.key,this._errorHandler=k.errorHandler,this._useDefaultSearch=!0},_clearCache:v.lQ,_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(k){return this._keyGetter||(this._keyGetter=(0,R.Hz)(this.key())),this._keyGetter(k)},_requireKey:function(){if(!this.key())throw o.sO.Error("E4005")},load:function(k){var I=this;return this._eventsStrategy.fireEvent("loading",[k=k||{}]),this._withLock(this._loadImpl(k)).done(function(x){I._eventsStrategy.fireEvent("loaded",[x,k])})},_loadImpl:function(k){return(0,h.RI)(this._langParams)||((k=k||{})._langParams=(0,r.A)({},this._langParams,k._langParams)),b(this.createQuery(k),k).enumerate()},_withLock:function(k){var I=new _.cY;return k.done(function(){var x=this,g=arguments;E.D9.promise().done(function(){I.resolveWith(x,g)})}).fail(function(){I.rejectWith(this,arguments)}),I},createQuery:s,totalCount:function(k){return this._totalCountImpl(k)},_totalCountImpl:function(k){return b(this.createQuery(k),k,!0).count()},byKey:function(k,I){return this._addFailHandlers(this._withLock(this._byKeyImpl(k,I)))},_byKeyImpl:s,insert:function(k){var I=this;return I._eventsStrategy.fireEvent("modifying"),I._eventsStrategy.fireEvent("inserting",[k]),I._addFailHandlers(I._insertImpl(k).done(function(x,g){I._eventsStrategy.fireEvent("inserted",[x,g]),I._eventsStrategy.fireEvent("modified")}))},_insertImpl:s,update:function(k,I){var x=this;return x._eventsStrategy.fireEvent("modifying"),x._eventsStrategy.fireEvent("updating",[k,I]),x._addFailHandlers(x._updateImpl(k,I).done(function(){x._eventsStrategy.fireEvent("updated",[k,I]),x._eventsStrategy.fireEvent("modified")}))},_updateImpl:s,push:function(k){var I={changes:k,waitFor:[]};this._eventsStrategy.fireEvent("beforePushAggregation",[I]),(0,_.z7)(...I.waitFor).done(()=>{this._pushImpl(k),this._eventsStrategy.fireEvent("beforePush",[{changes:k}]),this._eventsStrategy.fireEvent("push",[k])})},_pushImpl:v.lQ,remove:function(k){var I=this;return I._eventsStrategy.fireEvent("modifying"),I._eventsStrategy.fireEvent("removing",[k]),I._addFailHandlers(I._removeImpl(k).done(function(x){I._eventsStrategy.fireEvent("removed",[x]),I._eventsStrategy.fireEvent("modified")}))},_removeImpl:s,_addFailHandlers:function(k){return k.fail(this._errorHandler).fail(o.H4)},on(k,I){return this._eventsStrategy.on(k,I),this},off(k,I){return this._eventsStrategy.off(k,I),this}});w.create=function(k,I){if(!(k in O))throw o.sO.Error("E4020",k);return new O[k](I)},w.registerClass=function(k,I){return I&&(O[I]=k),k},w.inherit=function(k){return function(I,x){var g=k.apply(this,[I]);return w.registerClass(g,x),g}}(w.inherit);const f=w},14472:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>g});var r=D(56221),d=D(72463),L=D(12101),j=D(39407),o=D(12984),E=D(81591),R=D(25571),m=r.A.inherit({toArray:function(){var C=[];for(this.reset();this.next();)C.push(this.current());return C},countable:function(){return!1}}),_=m.inherit({ctor:function(C){this.array=C,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),v=m.inherit({ctor:function(C){this.iter=C},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),h=v.inherit({ctor:function(C,F){this.callBase(C),this.index=-1,this.mapper=F},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var C=this.callBase();return C&&this.index++,C}}),b=m.inherit({ctor:function(C,F,Y,Q){this.langParams=C.langParams,C instanceof h||((C=new h(C,this._wrap)).langParams=this.langParams),this.iter=C,this.rules=[{getter:F,desc:Y,compare:Q,langParams:this.langParams}]},thenBy:function(C,F,Y){var Q=new b(this.sortedIter||this.iter,C,F,Y);return this.sortedIter||(Q.rules=this.rules.concat(Q.rules)),Q},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var C=this;C.sortedIter||((0,L.__)(C.rules,function(){this.getter=(0,j.Hz)(this.getter)}),C.sortedIter=new h(new _(this.iter.toArray().sort(function(F,Y){return C._compare(F,Y)})),C._unwrap))},_wrap:function(C,F){return{index:F,value:C}},_unwrap:function(C){return C.value},_getDefaultCompare:C=>(F,Y)=>function(C,F,Y){return(0,d.Kg)(C)&&(0,d.Kg)(F)&&(null!=Y&&Y.locale||null!=Y&&Y.collatorOptions)?new Intl.Collator(Y?.locale||void 0,Y?.collatorOptions||void 0).compare(C,F):(C=(0,j.ao)(C,!1,Y),F=(0,j.ao)(F,!1,Y),null===C&&null!==F?-1:null!==C&&null===F||void 0===C&&void 0!==F?1:void 0!==C&&void 0===F||C<F?-1:C>F?1:0)}(F,Y,C),_compare:function(C,F){var Y=C.index,Q=F.index;if((C=C.value)===(F=F.value))return Y-Q;for(var se=0,ie=this.rules.length;se<ie;se++){var ee=this.rules[se],re=ee.getter(C),ne=ee.getter(F),be=(ee.compare||this._getDefaultCompare(ee.langParams))(re,ne);if(be)return ee.desc?-be:be}return Y-Q}}),O=function(){var C={},F=ee=>(0,j.ao)(ee,!1,C),Q=function(ee){var re;return(0,d.O9)(ee)?null!==(re=C)&&void 0!==re&&re.locale?ee.toLocaleString(C.locale):ee.toString():""};function se(ee,re,ne){return function(_e){_e=F(ee(_e));var be=ie(re)?_e===re:_e==re;return ne&&(be=!be),be}}function ie(ee){return""===ee||0===ee||!1===ee}return function(ee,re){return C=re||{},(0,d.Tn)(ee)?ee:(0,R.$A)(ee)?function(ee){if((0,R.Im)(ee))return oe=(0,j.Hz)((be=ee)[0][0]),me=be.reduce((we,N,G)=>(G%2==0&&we.push(F(N[2])),we),[]),we=>{var N=F(oe(we));return me.some(G=>ie(G)?N===G:N==G)};var be,oe,me,re=[],ne=!1,_e=!1;return(0,L.__)(ee,function(){if(Array.isArray(this)||(0,d.Tn)(this)){if(re.length>1&&ne!==_e)throw new E.sO.Error("E4019");re.push(O(this,C)),ne=_e,_e=!0}else _e=(0,R.LO)(this)}),function(be){for(var oe=ne,me=0;me<re.length;me++)if(re[me](be)!==ne){oe=!ne;break}return oe}}(ee):(0,R.bF)(ee)?function(ne){var _e=ne[0],be=O(ne[1],C);if("!"===_e)return function(oe){return!be(oe)};throw E.sO.Error("E4003",_e)}(ee):function(ne){ne=(0,R.aE)(ne);var _e=(0,j.Hz)(ne[0]),be=ne[1],oe=ne[2];oe=F(oe);var me=(we,N)=>(we=F(_e(we)),(null!=oe&&null!=we||oe===we)&&N(we,oe));switch(be.toLowerCase()){case"=":return se(_e,oe);case"<>":return se(_e,oe,!0);case">":return we=>me(we,(N,G)=>N>G);case"<":return we=>me(we,(N,G)=>N<G);case">=":return we=>me(we,(N,G)=>N>=G);case"<=":return we=>me(we,(N,G)=>N<=G);case"startswith":return function(we){return 0===F(Q(_e(we))).indexOf(oe)};case"endswith":return function(we){var N=F(Q(_e(we))),G=Q(oe);if(N.length<G.length)return!1;var W=N.lastIndexOf(oe);return-1!==W&&W===N.length-oe.length};case"contains":return function(we){return F(Q(_e(we))).indexOf(oe)>-1};case"notcontains":return function(we){return-1===F(Q(_e(we))).indexOf(oe)}}throw E.sO.Error("E4003",be)}(ee)}}(),w=v.inherit({ctor:function(C,F){this.callBase(C),this.langParams=C.langParams,this.criteria=O(F,this.langParams)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),f=m.inherit({ctor:function(C,F){this.iter=C,this.getter=F},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var C={},F=[],Y=this.iter,Q=(0,j.Hz)(this.getter);for(Y.reset();Y.next();){var se=Y.current(),ie=Q(se);ie in C?C[ie].push(se):(C[ie]=[se],F.push(ie))}this.groupedIter=new _((0,L.Tj)(F,function(ee){return{key:ee,items:C[ee]}}))}}}),k=v.inherit({ctor:function(C,F){this.callBase(C),this.getter=(0,j.Hz)(F)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),I=v.inherit({ctor:function(C,F,Y){this.callBase(C),this.skip=Math.max(0,F),this.take=Math.max(0,Y),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}});const g=function C(F,Y){Y=Y||{},F instanceof m||(F=new _(F)),Y.langParams&&(F.langParams=Y.langParams);var Q=function(_e){var be=Y.errorHandler;be&&be(_e),(0,E.H4)(_e)},se=function(_e){var be=(new o.cY).fail(Q),me=_e.step,we=_e.finalize;try{F.reset();for(var N=("seed"in _e?_e.seed:F.next()?F.current():NaN);F.next();)N=me(N,F.current());be.resolve(we?we(N):N)}catch(G){be.reject(G)}return be.promise()},ie=function(_e){return se(R.zL[_e])},ee=function(_e){return!(0,d.Tn)(_e)&&!Array.isArray(_e)&&(_e=[].slice.call(arguments)),ne(new k(F,_e))},re=function(_e){return ee((0,j.Hz)(_e))};function ne(_e){return C(_e,Y)}return{toArray:function(){return F.toArray()},enumerate:function(){var _e=(new o.cY).fail(Q);try{_e.resolve(F.toArray())}catch(be){_e.reject(be)}return _e.promise()},setLangParams(_e){F.langParams=_e},sortBy:function(_e,be,oe){return ne(new b(F,_e,be,oe))},thenBy:function(_e,be,oe){if(F instanceof b)return ne(F.thenBy(_e,be,oe));throw E.sO.Error("E4004")},filter:function(_e){return Array.isArray(_e)||(_e=[].slice.call(arguments)),ne(new w(F,_e))},slice:function(_e,be){return void 0===be&&(be=Number.MAX_VALUE),ne(new I(F,_e,be))},select:ee,groupBy:function(_e){return ne(new f(F,_e))},aggregate:function(_e,be,oe){return se(arguments.length<2?{step:arguments[0]}:{seed:_e,step:be,finalize:oe})},count:function(){if(F.countable()){var _e=(new o.cY).fail(Q);try{_e.resolve(F.count())}catch(be){_e.reject(be)}return _e.promise()}return ie("count")},sum:function(_e){return _e?re(_e).sum():ie("sum")},min:function(_e){return _e?re(_e).min():ie("min")},max:function(_e){return _e?re(_e).max():ie("max")},avg:function(_e){return _e?re(_e).avg():ie("avg")}}}},2097:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>R});var r=D(25571),d=D(59845),L=D(81591),j=D(44168),o=D(69393);const R=j.A.inherit({ctor:function(m){m=Array.isArray(m)?{data:m}:m||{},this.callBase(m);var _=m.data;if(_&&!Array.isArray(_))throw L.sO.Error("E4006");this._array=_||[]},createQuery:function(){return(0,d.A)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(m){var _=(0,o.Xb)(this,this._array,m);return-1===_?(0,r.OE)(L.sO.Error("E4009")):(0,r.DO)(this._array[_])},_insertImpl:function(m){return(0,o.Yr)(this,this._array,m)},_pushImpl:function(m){(0,o.VK)({keyInfo:this,data:this._array,changes:m})},_updateImpl:function(m,_){return(0,o.yo)(this,this._array,m,_)},_removeImpl:function(m){return(0,o.TF)(this,this._array,m)},clear:function(){this._eventsStrategy.fireEvent("modifying"),this._array=[],this._eventsStrategy.fireEvent("modified")}},"array")},69393:(ei,rt,D)=>{"use strict";D.d(rt,{TF:()=>Q,VK:()=>x,Xb:()=>se,Yr:()=>Y,lj:()=>I,yo:()=>F});var r=D(58168),d=D(72463),L=D(83771),j=D(13992),o=D(87951),E=D(81591),R=D(95652),_=(D(39407),D(25571));function h(ie,ee,re,ne){var be;if(ne){for(var oe=0;oe<ee.length;oe++)if(be=h(ie,ee[oe].items||ee[oe].collapsedItems||[]||[],re,ne-1))return be}else if(se(ie,ee,re)>=0)return ee}function s(ie,ee,re,ne){return ne?h(ie,ee,re,ne)||[]:ee}function f(ie,ee,re){ie._dataByKeyMap&&(ie._dataByKeyMap[JSON.stringify(ee)]=re,ie._dataByKeyMapLength+=re?1:-1)}function k(ie,ee,re){re=re||new WeakMap;var ne=ie?Object.create(Object.getPrototypeOf(ie)):{};ie&&re.set(ie,ne);var _e=(0,r.A)({},ie);for(var be in(0,R.tm)(ne,_e,!0,!0),_e){var oe=_e[be],me=ee?.[be];(0,d.Gv)(oe)&&!(0,d.Qd)(oe)&&(0,d.Gv)(me)&&!re.has(oe)&&(ne[be]=k(oe,me,re))}for(var we in ne){var N=ne[we];(0,d.Gv)(N)&&re.has(N)&&(ne[we]=re.get(N))}return ne}function I(ie,ee){var re=k(ie,ee);return(0,R.tm)(re,ee,!0,!0)}function x(ie){var{keyInfo:ee,data:re,changes:ne,groupCount:_e,useInsertIndex:be,immutable:oe,disableCache:me,logError:we,skipCopying:N}=ie,G=!0===oe?[...re]:re;return ne.forEach(W=>{var z="insert"===W.type?G:s(ee,G,W.key,_e);switch(!me&&function b(ie,ee){if(ie.key()&&(!ee._dataByKeyMap||ee._dataByKeyMapLength!==ee.length)){for(var re={},ne=ee.length,_e=0;_e<ne;_e++)re[JSON.stringify(ie.keyOf(ee[_e]))]=ee[_e];ee._dataByKeyMap=re,ee._dataByKeyMapLength=ne}}(ee,z),W.type){case"update":F(ee,z,W.key,W.data,!0,oe,we);break;case"insert":Y(ee,z,W.data,be&&(0,d.O9)(W.index)?W.index:-1,!0,we,N);break;case"remove":Q(ee,z,W.key,!0,we)}}),G}function g(ie,ee,re){return ie?ee&&E.sO.log(re):(0,_.OE)(E.sO.Error(re))}function F(ie,ee,re,ne,_e,be,oe){var me,we=ie.key();if(we){if(function v(ie,ee){for(var ne="string"==typeof ee?ee.split():ee.slice();ne.length;)if(ne.shift()in ie)return!0;return!1}(ne,we)&&!(0,_.t7)(we,re,ie.keyOf(ne)))return g(_e,oe,"E4017");if(me=function O(ie,ee){if(ie._dataByKeyMap)return ie._dataByKeyMap[JSON.stringify(ee)]}(ee,re),!me){var N=se(ie,ee,re);if(N<0)return g(_e,oe,"E4009");if(me=ee[N],!0===be&&(0,d.O9)(me)){var G=I(me,ne);return ee[N]=G,!_e&&(0,_.DO)(G,re)}}}else me=re;if((0,R.tm)(me,ne,!0),!_e)return(0,L.A)().useLegacyStoreResult?(0,_.DO)(re,ne):(0,_.DO)(me,re)}function Y(ie,ee,re,ne,_e,be,oe){var me,we=ie.key(),N=(0,d.Qd)(re)&&!oe?(0,o.X)({},re):re;if(we){if(void 0===(me=ie.keyOf(N))||"object"==typeof me&&(0,d.RI)(me)){if(Array.isArray(we))throw E.sO.Error("E4007");me=N[we]=String(new j.A)}else if(void 0!==ee[se(ie,ee,me)])return g(_e,be,"E4008")}else me=N;if(ne>=0?ee.splice(ne,0,N):ee.push(N),f(ee,me,N),!_e)return(0,_.DO)((0,L.A)().useLegacyStoreResult?re:N,me)}function Q(ie,ee,re,ne,_e){var be=se(ie,ee,re);return be>-1&&(ee.splice(be,1),f(ee,re,null)),ne?be<0?g(ne,_e,"E4009"):void 0:(0,_.DO)(re)}function se(ie,ee,re){var ne=ie.key();if(!function w(ie,ee){return!ie._dataByKeyMap||ie._dataByKeyMap[JSON.stringify(ee)]}(ee,re))return-1;for(var _e=0,be=ee.length;_e<be;_e++)if((0,_.t7)(ne,ie.keyOf(ee[_e]),re))return _e;return-1}},6305:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>ne});var r=D(24292),d=D(25571),L=D(69393),j=D(72463),o=D(83771),E=D(81591),R=D(44168),m=D(14472),_=D(37514),v=D(12984),h="totalCount",s="load",b="byKey",O="insert",w="update",f="remove";function k(_e){return _e&&(0,j.Tn)(_e.then)}function I(_e){return(new v.cY).resolve(_e).promise()}function x(_e,be){if(!(0,j.Tn)(be))throw E.sO.Error("E4011",_e)}function g(_e){throw E.sO.Error("E4012",_e)}function C(_e){return function(oe){var me;(me=oe instanceof Error?oe:new Error(function be(oe){var me=oe[0];return me&&me.getResponseHeader?(0,d.m9)(me,oe[1]):null}(arguments)||oe&&String(oe)||"Unknown error")).message!==d.SR&&_e.reject(me)}}function F(_e,be){var me,oe=_e._loadFunc;return x(s,oe),me=oe.apply(_e,[be]),Array.isArray(me)?me=I(me):null==me?me=I([]):k(me)||g(s),(0,v.Sx)(me)}function se(_e,be,oe,me){if(be.__rawData)me(be.__rawData);else{var we=be.__rawDataPromise||F(be,oe);be._cacheRawData&&(be.__rawDataPromise=we),we.always(function(){delete be.__rawDataPromise}).done(function(N){be._cacheRawData&&(be.__rawData=N),me(N)}).fail(N=>{var G,W=C(_e);null===(G=be._errorHandler)||void 0===G||G.call(be,N),W(N)})}}function ie(_e,be,oe,me){var we={};"userData"in(oe=oe||{})&&(we.userData=oe.userData),se(_e,be,we,function(N){var W,z,q,ye,G=(0,m.A)(N,{errorHandler:be._errorHandler}),X=[];me||((W=_.A.queryByOptions(G,oe))===G?q=N.slice(0):X.push(W.enumerate().done(function(xe){q=xe}))),(oe.requireTotalCount||me)&&((z=_.A.queryByOptions(G,oe,!0))===G?ye=N.length:X.push(z.count().done(function(xe){ye=xe}))),v.z7.apply(r.A,X).done(function(){me?_e.resolve(ye):oe.requireTotalCount?_e.resolve(q,{totalCount:ye}):_e.resolve(q)}).fail(function(xe){_e.reject(xe)})})}const ne=R.A.inherit({ctor:function(_e){this.callBase(_e=_e||{}),this._useDefaultSearch=!!_e.useDefaultSearch||"raw"===_e.loadMode,this._loadMode=_e.loadMode,this._cacheRawData=!1!==_e.cacheRawData,this._loadFunc=_e[s],this._totalCountFunc=_e[h],this._byKeyFunc=_e[b],this._insertFunc=_e[O],this._updateFunc=_e[w],this._removeFunc=_e[f]},_clearCache(){delete this.__rawData},createQuery:function(){throw E.sO.Error("E4010")},clearRawDataCache:function(){this._clearCache()},_totalCountImpl:function(_e){var be=new v.cY;return"raw"!==this._loadMode||this._totalCountFunc?(function Y(_e,be){var me,oe=_e._totalCountFunc;if(!(0,j.Tn)(oe))throw E.sO.Error("E4021");return k(me=oe.apply(_e,[be]))||(me=Number(me),isFinite(me)||g(h),me=I(me)),(0,v.Sx)(me)}(this,_e).done(function(oe){be.resolve(Number(oe))}).fail(C(be)),be=this._addFailHandlers(be)):ie(be,this,_e,!0),be.promise()},_pushImpl:function(_e){this.__rawData&&(0,L.VK)({keyInfo:this,data:this.__rawData,changes:_e})},_loadImpl:function(_e){var be=new v.cY;return"raw"===this._loadMode?ie(be,this,_e,!1):(F(this,_e).done(function(oe,me){be.resolve(oe,me)}).fail(C(be)),be=this._addFailHandlers(be)),be.promise()},_byKeyImpl:function(_e,be){var oe=new v.cY;return this._byKeyViaLoad()?(this._requireKey(),function ee(_e,be,oe){se(_e,be,{},function(me){for(var N,we=be.key(),G=0,W=me.length;G<W;G++)if(N=me[G],(0,d.t7)(we,be.keyOf(me[G]),oe))return void _e.resolve(N);_e.reject(E.sO.Error("E4009"))})}(oe,this,_e)):function Q(_e,be,oe){var we,me=_e._byKeyFunc;return x(b,me),k(we=me.apply(_e,[be,oe]))||(we=I(we)),(0,v.Sx)(we)}(this,_e,be).done(function(me){oe.resolve(me)}).fail(C(oe)),oe.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(_e){var me,be=this,oe=be._insertFunc,we=new v.cY;return x(O,oe),k(me=oe.apply(be,[_e]))||(me=I(me)),(0,v.Sx)(me).done(function(N){(0,o.A)().useLegacyStoreResult?we.resolve(_e,N):we.resolve(N||_e,be.keyOf(N))}).fail(C(we)),we.promise()},_updateImpl:function(_e,be){var me,oe=this._updateFunc,we=new v.cY;return x(w,oe),k(me=oe.apply(this,[_e,be]))||(me=I(me)),(0,v.Sx)(me).done(function(N){(0,o.A)().useLegacyStoreResult?we.resolve(_e,be):we.resolve(N||be,_e)}).fail(C(we)),we.promise()},_removeImpl:function(_e){var oe,be=this._removeFunc,me=new v.cY;return x(f,be),k(oe=be.apply(this,[_e]))||(oe=I()),(0,v.Sx)(oe).done(function(){me.resolve(_e)}).fail(C(me)),me.promise()}})},75333:(ei,rt,D)=>{"use strict";D.d(rt,{q:()=>I});var r=D(58168),d=D(56221),L=D(87951),j=D(5042),o=D(12101),E=D(72463),R=D(25571),m=D(69393),_=D(6305),v=D(17278),h=D(81591),s=D(87550),b=D(12984);function O(x){var g=[],C=!1;function F(){for(;g.length;){C=!0;var Q=g.shift()();if(void 0!==Q){if(Q.then)return void(0,b.z7)(Q).always(F);throw s.A.Error("E0015")}}C=!1}return{add:function(Y,Q){x?(g[0]&&Q&&Q(g[0]),g=[Y]):g.push(Y),C||F()},busy:function(){return C}}}O();var f=D(61076);class k{constructor(){this._counter=-1,this._deferreds={}}add(g){return this._counter++,this._deferreds[this._counter]=g,this._counter}remove(g){return delete this._deferreds[g]}cancel(g){return g in this._deferreds&&(this._deferreds[g].reject(f.uK),!0)}cancelAll(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--}}var I=d.A.inherit({ctor(x){var g;if(x=(0,f.ho)(x),this._eventsStrategy=new v.h(this,{syncStrategy:!0}),this._store=x.store,this._changedTime=0,0!==x.pushAggregationTimeout){var Y,Q,se=(0,R.oK)(ie=>{Y.resolve(),(0,b.z7)(...Q).done(()=>this._onPush(ie)),Q=void 0,Y=void 0},void 0===x.pushAggregationTimeout?()=>5*this._changedTime:x.pushAggregationTimeout);this._onPushHandler=ie=>{this._aggregationTimeoutId=se(ie.changes),Y||(Y=new b.cY),Q=ie.waitFor,ie.waitFor.push(Y.promise())},this._store.on("beforePushAggregation",this._onPushHandler)}else this._onPushHandler=ie=>this._onPush(ie),this._store.on("push",this._onPushHandler);this._storeLoadOptions=this._extractLoadOptions(x),this._mapFunc=x.map,this._postProcessFunc=x.postProcess,this._pageIndex=void 0!==x.pageIndex?x.pageIndex:0,this._pageSize=void 0!==x.pageSize?x.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in x?x.searchValue:null,this._searchOperation=x.searchOperation||"contains",this._searchExpr=x.searchExpr,this._paginate=x.paginate,this._reshapeOnPush=null!==(g=x.reshapeOnPush)&&void 0!==g&&g,(0,o.__)(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],(ie,ee)=>{ee in x&&this.on(ee.substr(2,1).toLowerCase()+ee.substr(3),x[ee])}),this._operationManager=new k,this._init()},_init(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,(0,E.O9)(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose(){var x;this._store.off("beforePushAggregation",this._onPushHandler),this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),null===(x=this._delayedLoadTask)||void 0===x||x.abort(),this._operationManager.cancelAll(),delete this._store,delete this._items,delete this._delayedLoadTask,this._disposed=!0},_extractLoadOptions(x){var g={},C=["sort","filter","langParams","select","group","requireTotalCount"],F=this._store._customLoadOptions();return F&&(C=C.concat(F)),(0,o.__)(C,function(){g[this]=x[this]}),g},loadOptions(){return this._storeLoadOptions},items(){return this._items},pageIndex(x){if(!(0,E.kf)(x))return this._pageIndex;this._pageIndex=x,this._isLastPage=!this._paginate},paginate(x){if(!(0,E.Lm)(x))return this._paginate;this._paginate!==x&&(this._paginate=x,this.pageIndex(0))},pageSize(x){if(!(0,E.kf)(x))return this._pageSize;this._pageSize=x},isLastPage(){return this._isLastPage},generateStoreLoadOptionAccessor(x){return g=>{var C=(0,f.Rc)(g);if(void 0===C)return this._storeLoadOptions[x];this._storeLoadOptions[x]=C}},sort(){for(var x=arguments.length,g=new Array(x),C=0;C<x;C++)g[C]=arguments[C];return this.generateStoreLoadOptionAccessor("sort")(g)},filter(){var x=(0,f.Rc)(arguments);if(void 0===x)return this._storeLoadOptions.filter;this._storeLoadOptions.filter=x,this.pageIndex(0)},group(){for(var x=arguments.length,g=new Array(x),C=0;C<x;C++)g[C]=arguments[C];return this.generateStoreLoadOptionAccessor("group")(g)},select(){for(var x=arguments.length,g=new Array(x),C=0;C<x;C++)g[C]=arguments[C];return this.generateStoreLoadOptionAccessor("select")(g)},requireTotalCount(x){if(!(0,E.Lm)(x))return this._storeLoadOptions.requireTotalCount;this._storeLoadOptions.requireTotalCount=x},searchValue(x){if(arguments.length<1)return this._searchValue;this._searchValue=x,this.pageIndex(0)},searchOperation(x){if(!(0,E.Kg)(x))return this._searchOperation;this._searchOperation=x,this.pageIndex(0)},searchExpr(x){var g=arguments.length;if(0===g)return this._searchExpr;g>1&&(x=[].slice.call(arguments)),this._searchExpr=x,this.pageIndex(0)},store(){return this._store},key(){var x;return null===(x=this._store)||void 0===x?void 0:x.key()},totalCount(){return this._totalCount},isLoaded(){return this._isLoaded},isLoading(){return this._loadingCount>0},beginLoading(){this._changeLoadingCount(1)},endLoading(){this._changeLoadingCount(-1)},_createLoadQueue:()=>O(),_changeLoadingCount(x){var g=this.isLoading();this._loadingCount+=x;var C=this.isLoading();g^C&&this._eventsStrategy.fireEvent("loadingChanged",[C])},_scheduleLoadCallbacks(x){this.beginLoading(),x.always(()=>{this.endLoading()})},_scheduleFailCallbacks(x){var g=this;x.fail(function(){for(var C=arguments.length,F=new Array(C),Y=0;Y<C;Y++)F[Y]=arguments[Y];F[0]!==f.uK&&g._eventsStrategy.fireEvent("loadError",F)})},_fireChanged(x){var g=new Date;this._eventsStrategy.fireEvent("changed",x),this._changedTime=new Date-g},_scheduleChangedCallbacks(x){x.done(()=>this._fireChanged())},loadSingle(x,g){var C=new b.cY,F=this.key(),Y=this._store,Q=this._createStoreLoadOptions();return this._scheduleFailCallbacks(C),arguments.length<2&&(g=x,x=F),delete Q.skip,delete Q.group,delete Q.refresh,delete Q.pageIndex,delete Q.searchString,(x===F||Y instanceof _.A&&!Y._byKeyViaLoad()?Y.byKey(g,Q):(Q.take=1,Q.filter=Q.filter?[Q.filter,[x,g]]:[x,g],Y.load(Q))).fail(C.reject).done(se=>{var ie=Array.isArray(se)&&!se.length;!(0,E.O9)(se)||ie?C.reject(new h.sO.Error("E4009")):(Array.isArray(se)||(se=[se]),C.resolve(this._applyMapFunction(se)[0]))}),C.promise()},load(){var x=new b.cY,g=()=>{if(!this._disposed&&(0,f.mm)(x))return this._loadFromStore(C,x)};this._scheduleLoadCallbacks(x),this._scheduleFailCallbacks(x),this._scheduleChangedCallbacks(x);var C=this._createLoadOperation(x);return this._eventsStrategy.fireEvent("customizeStoreLoadOptions",[C]),this._loadQueue.add(()=>("number"==typeof C.delay?this._delayedLoadTask=(0,j.uG)(g,C.delay):g(),x.promise())),x.promise({operationId:C.operationId})},_onPush(x){if(this._reshapeOnPush)this.load();else{var g={changes:x};this._eventsStrategy.fireEvent("changing",[g]);var C=this.group(),F=this.items(),Y=0,Q=this.paginate()||C?x.filter(se=>"update"===se.type):x;C&&(Y=Array.isArray(C)?C.length:1),this._mapFunc&&Q.forEach(se=>{"insert"===se.type&&(se.data=this._mapFunc(se.data))}),g.postProcessChanges&&(Q=g.postProcessChanges(Q)),(0,m.VK)({keyInfo:this.store(),data:F,changes:Q,groupCount:Y,useInsertIndex:!0}),this._fireChanged([{changes:x}])}},_createLoadOperation(x){var g=this._operationManager.add(x),C=this._createStoreLoadOptions();return this._store&&!(0,E.RI)(C?.langParams)&&(this._store._langParams=(0,r.A)({},this._store._langParams,C.langParams)),x.always(()=>this._operationManager.remove(g)),{operationId:g,storeLoadOptions:C}},reload(){return this.store()._clearCache(),this._init(),this.load()},cancel(x){return this._operationManager.cancel(x)},cancelAll(){return this._operationManager.cancelAll()},_addSearchOptions(x){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(x):(x.searchOperation=this._searchOperation,x.searchValue=this._searchValue,x.searchExpr=this._searchExpr))},_createStoreLoadOptions(){var x=(0,L.X)({},this._storeLoadOptions);return this._addSearchOptions(x),this._paginate&&this._pageSize&&(x.skip=this._pageIndex*this._pageSize,x.take=this._pageSize),x.userData=this._userData,x},_addSearchFilter(x){var g=this._searchValue,C=this._searchOperation,F=this._searchExpr,Y=[];g&&(F||(F="this"),Array.isArray(F)||(F=[F]),(0,o.__)(F,function(Q,se){Y.length&&Y.push("or"),Y.push([se,C,g])}),x.filter=x.filter?[Y,x.filter]:Y)},_loadFromStore(x,g){var C=(F,Y)=>{if(!this._disposed&&(0,f.mm)(g)){var Q=(0,L.X)((0,f.Xp)(F,Y),x);this._eventsStrategy.fireEvent("customizeLoadResult",[Q]),(0,b.z7)(Q.data).done(se=>{Q.data=se,this._processStoreLoadResult(Q,g)}).fail(g.reject)}};return x.data?(new b.cY).resolve(x.data).done(C):this.store().load(x.storeLoadOptions).done(C).fail(g.reject)},_processStoreLoadResult(x,g){var C=x.data,F=x.extra,Y=x.storeLoadOptions,Q=()=>(this._isLoaded=!0,this._totalCount=isFinite(F.totalCount)?F.totalCount:-1,g.resolve(C,F));this._disposed||(C=this._applyPostProcessFunction(this._applyMapFunction(C)),(0,E.Gv)(F)||(F={}),this._items=C,(!C.length||!this._paginate||this._pageSize&&C.length<this._pageSize)&&(this._isLastPage=!0),Y.requireTotalCount&&!isFinite(F.totalCount)?this.store().totalCount(Y).done(function(se){F.totalCount=se,Q()}).fail(g.reject):Q())},_applyMapFunction(x){return this._mapFunc?(0,f.Kl)(x,this._mapFunc,this.group()):x},_applyPostProcessFunction(x){return this._postProcessFunc?this._postProcessFunc(x):x},on(x,g){return this._eventsStrategy.on(x,g),this},off(x,g){return this._eventsStrategy.off(x,g),this}})},61076:(ei,rt,D)=>{"use strict";D.d(rt,{Kl:()=>k,Rc:()=>O,Xp:()=>I,ho:()=>F,mm:()=>b,uK:()=>s});var r=D(58168),d=D(98587),L=D(94461),j=D(44168),o=D(2097),E=D(12101),R=D(6305),m=D(87951),_=D(72463),v=D(25571),h=["items"],s="canceled",b=Y=>"pending"===Y.state(),O=Y=>{switch(Y.length){case 0:return;case 1:return Y[0]}return[].slice.call(Y)},f=(Y,Q,se)=>Array.isArray(Y)?Q?((Y,Q,se)=>(0,E.Tj)(Y,ie=>{var ee=(0,d.A)(ie,h);return(0,r.A)({},ee,{items:f(ie.items,Q-1,se)})}))(Y,Q,se):(0,E.Tj)(Y,se):Y,k=(Y,Q,se)=>{var ie=se?(0,v.st)(se).length:0;return f(Y,ie,Q)},I=(Y,Q)=>{var se;return null!==(se=Y)&&void 0!==se&&se.data&&(Q=Y,Y=Y.data),Array.isArray(Y)||(Y=[Y]),{data:Y,extra:Q}},x=Y=>{var Q={};return(0,E.__)(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){Q[this]=Y[this],delete Y[this]}),new R.A(Q)},C=(Y,Q)=>new R.A({load:()=>L.A.sendRequest({url:Y,dataType:"json"}),loadMode:Q?.fromUrlLoadMode}),F=(Y,Q)=>{var se;return"string"==typeof Y&&(Y={paginate:!1,store:C(Y,Q)}),void 0===Y&&(Y=[]),void 0===(Y=Array.isArray(Y)||Y instanceof j.A?{store:Y}:(0,m.X)({},Y)).store&&(Y.store=[]),se=Y.store,"load"in Y?se=x(Y):Array.isArray(se)?se=new o.A(se):(0,_.Qd)(se)&&(se=(Y=>{var Q=Y.type;return delete Y.type,j.A.create(Q,Y)})((0,m.X)({},se))),Y.store=se,Y}},81591:(ei,rt,D)=>{"use strict";D.d(rt,{H4:()=>o,sO:()=>L});var r=D(6161),d=D(87550),L=(0,r.A)(d.A.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",E4024:"String function {0} cannot be used with the data field {1} of type {2}.",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),o=function(R){var m;null===(m=null)||void 0===m||m(R)}},59845:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>h});var r=D(14472);const d={};var L=D(81591),j=D(12101),o=D(72463),E=D(12984),_={array:r.A,remote:function s(b,O,w){w=w||[],O=O||{};var f=function(x,g){return{name:x,args:g}},k=function(x){var C,F,Y,Q,se,ne,_e,g=new E.cY,ie=function(ne){var _e=O.errorHandler;_e&&_e(ne),(0,L.H4)(ne),g.reject(ne)};function ee(ne){switch(ne.name){case"sortBy":return se=[ne.args],!0;case"thenBy":if(!se)throw L.sO.Error("E4004");return se.push(ne.args),!0}return!1}try{(0,o.Tn)(C=O.adapter)||(C=d[C]),F=C(O),Y=[].concat(w).concat(x);var re=F.optimize;for(re&&re(Y);Y.length;){if(!ee(Q=Y[0])){if(se){Y.unshift(f("multiSort",[se])),se=null;continue}if("enumerate"!==String(Q.name)&&(!F[Q.name]||!1===F[Q.name].apply(F,Q.args)))break}Y.shift()}_e=[],(ne=Y[0])&&"multiSort"===ne.name&&(Y.shift(),(0,j.__)(ne.args[0],function(){_e.push(f(_e.length?"thenBy":"sortBy",this))})),Y=_e.concat(Y),F.exec(b).done(function(ne,_e){if(Y.length){var be=(0,r.A)(ne,{errorHandler:O.errorHandler});(0,j.__)(Y,function(){be=be[this.name].apply(be,this.args)}),be.done(g.resolve).fail(g.reject)}else g.resolve(ne,_e)}).fail(ie)}catch(ne){ie(ne)}return g.promise()},I={};return(0,j.__)(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var x=String(this);I[x]=function(){return s(b,O,w.concat(f(x,arguments)))}}),(0,j.__)(["count","min","max","sum","avg","aggregate","enumerate"],function(){var x=String(this);I[x]=function(){return k.call(this,f(x,arguments))}}),I}};const h=function(){var s=Array.isArray(arguments[0])?"array":"remote";return _[s].apply(this,arguments)}},37514:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>_});var r=D(5042),d=D(87951),L=D(12101),j=D(14472),o=D(25571);function E(v,h){return v=v.groupBy(h[0].selector),h.length>1&&(v=v.select(function(s){return(0,d.X)({},s,{items:E((0,j.A)(s.items),h.slice(1)).toArray()})})),v}function R(v,h){var s=[];return(0,L.__)(v,function(b,O){(0,r.VM)(h,function(f){return O.selector===f.selector}).length<1&&s.push(O)}),s.concat(h)}const _={multiLevelGroup:E,arrangeSortingInfo:R,queryByOptions:function m(v,h,s){var b,w,f,O=(h=h||{}).filter;if(null!==(b=h)&&void 0!==b&&b.langParams&&(null===(w=(f=v).setLangParams)||void 0===w||w.call(f,h.langParams)),O&&(v=v.filter(O)),s)return v;var k=h.sort,I=h.select,x=h.group,g=h.skip,C=h.take;return x&&((x=(0,o.st)(x)).keepInitialKeyOrder=!!h.group.keepInitialKeyOrder),(k||x)&&(k=(0,o.st)(k||[]),x&&!x.keepInitialKeyOrder&&(k=R(x,k)),(0,L.__)(k,function(F){v=v[F?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),I&&(v=v.select(I)),x&&(v=E(v,x)),(C||g)&&(v=v.slice(g||0,C)),v}}},25571:(ei,rt,D)=>{"use strict";D.d(rt,{$A:()=>Q,D9:()=>O,DO:()=>se,Im:()=>Y,LO:()=>f,OE:()=>ie,SR:()=>_,aE:()=>v,bF:()=>C,m9:()=>s,oK:()=>re,st:()=>h,t7:()=>k,zL:()=>b});var _e,ne,r=D(72463),d=D(17669),L=D(72535),j=D(14435),o=D(12101),E=D(12984),R=D(5042),_="DEVEXTREME_XHR_ERROR_UNLOAD",v=function(ne){return[ne[0],ne.length<3?"=":String(ne[1]).toLowerCase(),ne.length<2||ne[ne.length-1]]},h=function(ne){return Array.isArray(ne)||(ne=[ne]),(0,o.Tj)(ne,function(_e){var be={selector:(0,r.Tn)(_e)||"string"==typeof _e?_e:_e.getter||_e.field||_e.selector,desc:!(!_e.desc&&"d"!==String(_e.dir).charAt(0).toLowerCase())};return _e.compare&&(be.compare=_e.compare),be})},s=(ne={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},(0,L.A.add)(function(){var be=(0,j.zk)();d.A.listen(be,"beforeunload",function(){_e=!0})}),function(be,oe){return _e?_:be.status<400?ne[me=oe]||me:be.statusText;var me}),b={count:{seed:0,step:function(ne){return 1+ne}},sum:{seed:0,step:function(ne,_e){return ne+_e}},min:{step:function(ne,_e){return _e<ne?_e:ne}},max:{step:function(ne,_e){return _e>ne?_e:ne}},avg:{seed:[0,0],step:function(ne,_e){return[ne[0]+_e,ne[1]+1]},finalize:function(ne){return ne[1]?ne[0]/ne[1]:NaN}}},O=function(){var _e,ne=0;return{obtain:function(){0===ne&&(_e=new E.cY),ne++},release:function(){--ne<1&&_e.resolve()},promise:function(){return(0===ne?(new E.cY).resolve():_e).promise()},reset:function(){ne=0,_e&&_e.resolve()}}}();function f(ne){return/^(and|&&|&)$/i.test(ne)}var k=function(ne,_e,be){if(Array.isArray(ne)){for(var me,oe=(0,o.Tj)(_e,function(N,G){return G}),we=0;we<oe.length;we++)if(!(0,R.RL)(_e[me=oe[we]],be[me],{strict:!1}))return!1;return!0}return(0,R.RL)(_e,be,{strict:!1})},C=function(ne){return"!"===ne[0]&&Array.isArray(ne[1])},Y=function(ne){if(ne.length>2&&Array.isArray(ne[0])&&"or"===ne[1]&&"string"==typeof ne[0][0]&&"="===ne[0][1]){var[_e]=ne[0];return!ne.find((be,oe)=>oe%2!=0?"or"!==be:!Array.isArray(be)||3!==be.length||be[0]!==_e||"="!==be[1])}return!1},Q=function(ne){var _e=ne[0],be=ne[1];return!!(Array.isArray(_e)||(0,r.Tn)(_e)&&(Array.isArray(be)||(0,r.Tn)(be)||function(ne){return"and"===ne||"or"===ne}(be)))},se=function(){var ne=new E.cY;return ne.resolve.apply(ne,arguments).promise()},ie=function(){var ne=new E.cY;return ne.reject.apply(ne,arguments).promise()};function re(ne,_e){var be=[],oe=function ee(ne,_e){var be;return function(){return be||(be=setTimeout(()=>{be=void 0,ne.call(this)},(0,r.Tn)(_e)?_e():_e)),be}}(function(){ne.call(this,be),be=[]},_e);return function(me){return Array.isArray(me)&&be.push(...me),oe.call(this,be)}}},82236:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>b});var r=D(75333),d=D(87951),L=D(61076),j=D(66208),o="_dataSourceOptions",E="_dataSourceChangedHandler",R="_dataSourceLoadErrorHandler",m="_dataSourceLoadingChangedHandler",_="_dataSourceFromUrlLoadMode",v="_getSpecificDataSourceOption",h="_normalizeDataSource";const b={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var w,f,O=v in this?this[v]():this.option("dataSource");this._disposeDataSource(),O&&(O instanceof r.q?(this._isSharedDataSource=!0,this._dataSource=O):(w=o in this?this[o]():{},f=this._dataSourceType?this._dataSourceType():r.q,O=(0,L.ho)(O,{fromUrlLoadMode:_ in this&&this[_]()}),this._dataSource=new f((0,d.X)(!0,{},w,O))),h in this&&(this._dataSource=this[h](this._dataSource)),this._addDataSourceHandlers(),this._initDataController())},_initDataController:function(){var O,w=null===(O=this.option)||void 0===O?void 0:O.call(this,"_dataController");this._dataController=w||new j.A(this._dataSource)},_addDataSourceHandlers:function(){E in this&&this._addDataSourceChangeHandler(),R in this&&this._addDataSourceLoadErrorHandler(),m in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this.readyWatcher=function(O){this._ready&&this._ready(!O)}.bind(this),this._dataSource.on("loadingChanged",this.readyWatcher)},_addDataSourceChangeHandler:function(){var O=this._dataSource;this._proxiedDataSourceChangedHandler=function(w){this[E](O.items(),w)}.bind(this),O.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[R].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[m].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){var O=this._dataSource;O&&(O.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():O.load())},_loadSingle:function(O,w){return O="this"===O?this._dataSource.key()||"this":O,this._dataSource.loadSingle(O,w)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler),this._dataSource._eventsStrategy&&this._dataSource._eventsStrategy.off("loadingChanged",this.readyWatcher)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}}},18060:(ei,rt,D)=>{"use strict";D.d(rt,{U:()=>w});var r=D(24292),d=D(91269),L=D(23862),j=D(17669),o=D(7963),R=(D(55581),D(49104)),m=D(20675);function _(F){return F&&[F.target,F.delegateTarget,F.relatedTarget,F.currentTarget].filter(Y=>!!Y)}var s=D(24159),b=D(94469),O=D(98642),w="dxclick",k=null,I=null,x=()=>{I=null},g=function(F){var Y=F.originalEvent;(!F.which||1===F.which)&&!k&&!(I===Y||Y&&Y.DXCLICK_FIRED)&&(Y&&(Y.DXCLICK_FIRED=!0),((F,Y)=>{d.A.off(_(F),m.N,Y)})(I,x),((F,Y)=>{d.A.one(_(F),m.N,Y)})(I=Y,x),(0,R.rC)({type:w,originalEvent:F}))},C=b.A.inherit({ctor:function(F){this.callBase(F),d.A.on(this.getElement(),"click",g)},start:function(F){k=null},cancel:function(){k=!0},dispose:function(){d.A.off(this.getElement(),"click",g)}});(function(){if(!L.A.real().generic){var Y=null,Q=!1,se=j.A.getDocument();d.A.subscribeGlobal(se,(0,R.b4)(s.A.down,"NATIVE_CLICK_FIXER"),function(ie){Y=ie.target,Q=ie.isDefaultPrevented()}),d.A.subscribeGlobal(se,(0,R.b4)("click","NATIVE_CLICK_FIXER"),function(ie){var ee=function(ne){var _e,be=ne.originalEvent;if(null!=be&&null!==(_e=be.target)&&void 0!==_e&&_e.shadowRoot){var oe,me,we=null!==(oe=be.path)&&void 0!==oe?oe:null===(me=be.composedPath)||void 0===me?void 0:me.call(be);return(0,r.A)(we[0])}return(0,r.A)(ne.target)}(ie);!Q&&Y&&!ee.is(Y)&&!(0,r.A)(Y).is("label")&&(0,r.A)(ee).is("input, textarea, select, button ,:focus, :focus *")&&(0,o.GX)(),Y=null,Q=!1})}})(),(0,O.A)({emitter:C,bubble:!0,events:[w]})},94935:(ei,rt,D)=>{"use strict";D.d(rt,{U:()=>O});var r=D(24292),d=D(91269),L=D(19900),j=D(23862),o=D(56221),E=D(90396),R=D(49104),m=D(44602),_="dxContexMenu",v=(0,R.b4)("contextmenu",_),h=(0,R.b4)(m.A.name,_),s="dxcontextmenu",b=o.A.inherit({setup:function(w){var f=(0,r.A)(w);d.A.on(f,v,this._contextMenuHandler.bind(this)),(L.touch||j.A.isSimulator())&&d.A.on(f,h,this._holdHandler.bind(this))},_holdHandler:function(w){(0,R.Er)(w)&&!j.A.isSimulator()||this._fireContextMenu(w)},_contextMenuHandler:function(w){this._fireContextMenu(w)},_fireContextMenu:function(w){return(0,R.rC)({type:s,originalEvent:w})},teardown:function(w){d.A.off(w,"."+_)}});(0,E.A)(s,new b);var O=s},55424:(ei,rt,D)=>{"use strict";D.d(rt,{s2:()=>f,vu:()=>_});var O,r=D(56221),d=D(5042),L=D(7963),j=D(23862),o=D(49104),E=D(24159),R=D(94469),m=D(98642),_="dxactive",v="dxinactive",b=r.A.inherit({ctor:function(k,I){this._timeout=k,this._fire=I},start:function(){var k=this;this._schedule(function(){k.force()})},_schedule:function(k){this.stop(),this._timer=setTimeout(k,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),w=R.A.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new b(0,d.lQ),this._inactive=new b(0,d.lQ)},configure:function(k,I){switch(I){case _:k.activeTimeout=k.timeout;break;case v:k.inactiveTimeout=k.timeout}this.callBase(k)},start:function(k){if(O){var I=(0,L.gR)(this.getElement().get(0),O.getElement().get(0)),x=!O._active.fired();if(I&&x)return void this._cancel();O._inactive.force()}O=this,this._initEvents(k),this._active.start()},_initEvents:function(k){var I=this,x=this._getEmitterTarget(k),g=(0,o.Er)(k),F=j.A.isSimulator()||!g,Y=(0,d.YD)(this.activeTimeout,30),Q=(0,d.YD)(this.inactiveTimeout,400);this._active=new b(F?Y:0,function(){I._fireEvent(_,k,{target:x})}),this._inactive=new b(F?Q:0,function(){I._fireEvent(v,k,{target:x}),O=null})},cancel:function(k){this.end(k)},end:function(k){var I=k.type!==E.A.up;I?this._active.stop():this._active.force(),this._inactive.start(),I&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),O===this&&(O=null),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),O=null,this._cancel(),this._inactive.force.bind(this._inactive)}});w.lock=function(k){var I=O?O.lockInactive():d.lQ;k.done(I)},(0,m.A)({emitter:w,events:[_,v]});var f=w.lock},94469:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>m});var r=D(24292),d=D(5042),L=D(56221),j=D(34423),o=D(87951),E=D(49104);const m=L.A.inherit({ctor:function(_){this._$element=(0,r.A)(_),this._cancelCallback=(0,j.A)(),this._acceptCallback=(0,j.A)()},getElement:function(){return this._$element},validate:function(_){return!(0,E.X1)(_)},validatePointers:function(_){return 1===(0,E.Ic)(_)},allowInterruptionByMouseWheel:function(){return!0},configure:function(_){(0,o.X)(this,_)},addCancelCallback:function(_){this._cancelCallback.add(_)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(_){this._cancelCallback.fire(this,_)},addAcceptCallback:function(_){this._acceptCallback.add(_)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(_){this._acceptCallback.fire(this,_)},_requestAccept:function(_){this._acceptRequestEvent=_},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:d.lQ,move:d.lQ,end:d.lQ,cancel:d.lQ,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(_,v,h){var s=(0,o.X)({type:_,originalEvent:v,target:this._getEmitterTarget(v),delegateTarget:this.getElement().get(0)},h);return(v=(0,E.rC)(s)).cancel&&this._cancel(v),v},_getEmitterTarget:function(_){return(this.delegateSelector?(0,r.A)(_.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:d.lQ})},98642:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>x});var r=D(24292),d=D(72535),L=D(17669),j=D(91269),o=D(98332),E=D(56221),R=D(87951),m=D(12101),_=D(90396),v=D(49104),h=D(24159),s=D(39544),b="dxEventManager",O="dxEmitter",f=new(E.A.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){d.A.add(function(){var g=L.A.getDocument();j.A.subscribeGlobal(g,(0,v.b4)(h.A.down,b),this._pointerDownHandler.bind(this)),j.A.subscribeGlobal(g,(0,v.b4)(h.A.move,b),this._pointerMoveHandler.bind(this)),j.A.subscribeGlobal(g,(0,v.b4)([h.A.up,h.A.cancel].join(" "),b),this._pointerUpHandler.bind(this)),j.A.subscribeGlobal(g,(0,v.b4)(s.U,b),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(g){for(var C=this._activeEmitters||[],F=0;C.length>F;){var Y=C[F];if(!1===g(Y))break;C[F]===Y&&F++}},_applyToEmitters:function(g,C){this._eachEmitter(function(F){F[g].call(F,C)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(g){this._proxiedCancelHandler(g)},_pointerDownHandler:function(g){(0,v.Er)(g)&&g.which>1||this._updateEmitters(g)},_updateEmitters:function(g){this._isSetChanged(g)&&(this._cleanEmitters(g),this._fetchEmitters(g))},_isSetChanged:function(g){var C=this._closestEmitter(g),F=this._emittersSet||[],Y=C.length!==F.length;return(0,m.__)(C,function(Q,se){return!(Y=Y||F[Q]!==se)}),this._emittersSet=C,Y},_closestEmitter:function(g){var C=this,F=[],Y=(0,r.A)(g.target);function Q(ie,ee){ee&&ee.validatePointers(g)&&ee.validate(g)&&(ee.addCancelCallback(C._proxiedCancelHandler),ee.addAcceptCallback(C._proxiedAcceptHandler),F.push(ee))}for(;Y.length;){var se=(0,o.p)(Y.get(0),O)||[];(0,m.__)(se,Q),Y=Y.parent()}return F},_acceptHandler:function(g,C){var F=this;this._eachEmitter(function(Y){Y!==g&&F._cancelEmitter(Y,C)})},_cancelHandler:function(g,C){this._cancelEmitter(g,C)},_cancelEmitter:function(g,C){var F=this._activeEmitters;C?g.cancel(C):g.reset(),g.removeCancelCallback(),g.removeAcceptCallback();var Y=F.indexOf(g);Y>-1&&F.splice(Y,1)},_cleanEmitters:function(g){this._applyToEmitters("end",g),this.reset(g)},_fetchEmitters:function(g){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",g)},_pointerMoveHandler:function(g){this._applyToEmitters("move",g)},_pointerUpHandler:function(g){this._updateEmitters(g)},_mouseWheelHandler:function(g){this._allowInterruptionByMouseWheel()&&(g.pointers=[null],this._pointerDownHandler(g),this._adjustWheelEvent(g),this._pointerMoveHandler(g),g.pointers=[],this._pointerUpHandler(g))},_allowInterruptionByMouseWheel:function(){var g=!0;return this._eachEmitter(function(C){return g=C.allowInterruptionByMouseWheel()&&g}),g},_adjustWheelEvent:function(g){var C=null;if(this._eachEmitter(function(se){if(se.gesture){var ie=se.getDirection(g);if("horizontal"!==ie&&!g.shiftKey||"vertical"!==ie&&g.shiftKey)return C=se,!1}}),C){var F=C.getDirection(g);g["both"===F&&!g.shiftKey||"vertical"===F?"pageY":"pageX"]+=g.delta}},isActive:function(g){var C=!1;return this._eachEmitter(function(F){C=C||F.getElement().is(g)}),C}})),k="dxEmitterSubscription";const x=function(g){var C=g.emitter,F=g.events[0],Y=g.events;(0,m.__)(Y,function(Q,se){(0,_.A)(se,{noBubble:!g.bubble,setup:function(ie){var ee=(0,o.p)(ie,k)||{},re=(0,o.p)(ie,O)||{},ne=re[F]||new C(ie);ee[se]=!0,re[F]=ne,(0,o.p)(ie,O,re),(0,o.p)(ie,k,ee)},add:function(ie,ee){(0,o.p)(ie,O)[F].configure((0,R.X)({delegateSelector:ee.selector},ee.data),ee.type)},teardown:function(ie){var ee=(0,o.p)(ie,k),re=(0,o.p)(ie,O),ne=re[F];delete ee[se];var _e=!0;(0,m.__)(Y,function(be,oe){return _e=_e&&!ee[oe]}),_e&&(f.isActive(ie)&&f.resetEmitter(ne),ne&&ne.dispose(),delete re[F])}})})}},90396:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>j});var r=D(12101),d=D(35343),L=function(o,E){var R={};"noBubble"in E&&(R.noBubble=E.noBubble),"bindType"in E&&(R.bindType=E.bindType),"delegateType"in E&&(R.delegateType=E.delegateType),(0,r.__)(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(m,_){E[_]&&(R[_]=function(){var v=[].slice.call(arguments);return v.unshift(this),E[_].apply(E,v)})}),d.A.fire(o,R)};L.callbacks=d.A;const j=L},35343:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>d});const d=new(D(57544).A)},91269:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>Ie});var r=D(58168),d=D(35343),L=D(87951),j=D(17669),o=D(14435),E=D(37041),R=D(72463),m=D(34423),_=D(87550),v=["pageX","pageY","screenX","screenY","clientX","clientY"],b=D(435),O=(0,o.zk)(),w="dxEmptyEventType",f={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},k={focusin:"focus",focusout:"blur"},I=["blur","focus","load"],x=["touchmove","wheel","mousewheel","touchstart"];function C(ce,de){return!(0,R.l6)(ce)&&"#document"!==ce.nodeName&&j.A.elementMatches(ce,de)}var Q,ce,F=new WeakMap,Y=0,se=(ce={},d.A.add(function(de,pe){ce[de]=pe}),{getField:function(de,pe){return ce[de]&&ce[de][pe]},callMethod:function(de,pe,Be,We){return ce[de]&&ce[de][pe]&&ce[de][pe].apply(Be,We)}}),ie=(0,E.A)({on:re(N(X(function(ce,de,pe,Be,We){oe(ce,de).addHandler(We,pe,Be)}))),one:re(N(function(ce,de,pe,Be,We){ie.on(ce,de,pe,Be,function tt(){ie.off(ce,de,pe,tt),We.apply(this,arguments)})})),off:re(function G(ce){return function(de,pe,Be,We){"function"==typeof Be&&(We=Be,Be=void 0),ce(de,pe,Be,We)}}(X(function(ce,de,pe,Be){oe(ce,de).removeHandler(Be,pe)}))),trigger:re(W(function(ce,de,pe){var Be=de.type,We=oe(ce,de.type);if(se.callMethod(Be,"trigger",ce,[de,pe]),We.callHandlers(de,pe),!se.getField(Be,"noBubble")&&!de.isPropagationStopped()&&-1===I.indexOf(Be)){var vt=[];(function Qe(Et){var Lt,wt=null!==(Lt=Et.parentNode)&&void 0!==Lt?Lt:(0,R.Gv)(Et.host)?Et.host:null;wt&&(vt.push(wt),Qe(wt))})(ce),vt.push(O);for(var Xt=0;vt[Xt]&&!de.isPropagationStopped();)oe(vt[Xt],de.type).callHandlers((0,L.X)(de,{currentTarget:vt[Xt]}),pe),Xt++}(ce.nodeType||(0,R.l6)(ce))&&(se.callMethod(Be,"_default",ce,[de,pe]),function q(ce,de){var pe=k[ce]||ce;(function(Be,We){return"click"===Be&&"a"===We.localName})(ce,de)||(0,R.Tn)(de[pe])&&(Q=ce,de[pe](),Q=void 0)}(Be,ce))})),triggerHandler:re(W(function(ce,de,pe){oe(ce,de.type).callHandlers(de,pe)}))});function ee(ce,de){var pe=ce[0];if(pe)if(j.A.isNode(pe)||(0,R.l6)(pe))de.apply(ie,ce);else{if((0,R.Kg)(pe)||!("length"in pe))throw _.A.Error("E0025");var Be=Array.prototype.slice.call(ce,0);Array.prototype.forEach.call(pe,function(We){Be[0]=We,ee(Be,de)})}}function re(ce){return function(){ee(arguments,ce)}}var _e=(0,b.A)(function ne(){var ce=!1;try{var de=Object.defineProperty({},"passive",{get:function(){return ce=!0,!0}});O.addEventListener("test",null,de)}catch{}return ce}),be=(ce,de)=>(0,R.l6)(ce)?be(ce.document,de):ce.contains?ce.contains(de):!!(de.compareDocumentPosition(ce)&de.DOCUMENT_POSITION_CONTAINS);function oe(ce,de){var pe=F.get(ce),Be=(de=de||"").split("."),We=Be.slice(1),tt=!!Be[0];de=Be[0]||w,pe||F.set(ce,pe={}),pe[de]||(pe[de]={handleObjects:[],nativeHandler:null});var vt=pe[de];return{addHandler:function(Xt,Nt,Qe){var Et=function(ot,Tt){var xi,Je,jt=[ot],li=ot.currentTarget,an=ot.relatedTarget;de in f&&(xi=an&&li&&(an===li||be(li,an))),void 0!==Tt&&jt.push(Tt),se.callMethod(de,"handle",ce,[ot,Qe]),xi||(Je=Xt.apply(li,jt)),!1===Je&&(ot.preventDefault(),ot.stopPropagation())},Lt={handler:Xt,wrappedHandler:function(ot,Tt){if(!Q||ot.type!==Q)if(ot.data=Qe,ot.delegateTarget=ce,Nt)for(var jt=ot.target;jt&&jt!==ce;)C(jt,Nt)&&(ot.currentTarget=jt,Et(ot,Tt)),jt=jt.parentNode;else ot.currentTarget=ot.delegateTarget||ot.target,Et(ot,Tt)},selector:Nt,type:de,data:Qe,namespace:We.join("."),namespaces:We,guid:++Y};vt.handleObjects.push(Lt);var Ge,Mt=1===vt.handleObjects.length&&tt;Mt&&(Mt=!se.callMethod(de,"setup",ce,[Qe,We,Xt])),Mt&&(vt.nativeHandler=function me(ce){return function(de,pe){var Be=oe(this,ce);de=ie.Event(de),Be.callHandlers(de,pe)}}(de),_e()&&x.indexOf(de)>-1&&(Ge={passive:!1}),vt.removeListener=j.A.listen(ce,f[de]||de,vt.nativeHandler,Ge)),se.callMethod(de,"add",ce,[Lt])},removeHandler:function(Xt,Nt){var Qe=function(wt){var Ge,Mt=pe[wt];Mt.handleObjects.length?(Mt.handleObjects=Mt.handleObjects.filter(function(jt){var li=We.length&&!we(jt.namespaces,We)||Xt&&jt.handler!==Xt||Nt&&jt.selector!==Nt;return li||(Ge=jt.handler,se.callMethod(wt,"remove",ce,[jt])),li}),!Mt.handleObjects.length&&wt!==w&&(se.callMethod(wt,"teardown",ce,[We,Ge]),Mt.nativeHandler&&Mt.removeListener(),delete pe[wt])):delete pe[wt]};if(tt)Qe(de);else for(var Et in pe)Qe(Et);0===Object.keys(pe).length&&F.delete(ce)},callHandlers:function(Xt,Nt){var Qe=!1,Et=function(Lt){Qe||(!We.length||we(Lt.namespaces,We))&&(Lt.wrappedHandler(Xt,Nt),Qe=Xt.isImmediatePropagationStopped())};vt.handleObjects.forEach(Et),We.length&&pe[w]&&pe[w].handleObjects.forEach(Et)}}}function we(ce,de){for(var pe=0;pe<de.length;pe++)if(ce.indexOf(de[pe])<0)return!1;return!0}function N(ce){return function(de,pe,Be,We,tt){tt||(tt=We,We=void 0),"string"!=typeof Be&&(We=Be,Be=void 0),!tt&&"string"==typeof pe&&(tt=We||Be,Be=void 0,We=void 0),ce(de,pe,Be,We,tt)}}function W(ce){return function(de,pe,Be){"string"==typeof pe&&(pe={type:pe}),pe.target||(pe.target=de),pe.currentTarget=de,pe.delegateTarget||(pe.delegateTarget=de),!pe.type&&pe.originalEvent&&(pe.type=pe.originalEvent.type),ce(de,pe instanceof ie.Event?pe:ie.Event(pe),Be)}}function X(ce){var de=function(pe,Be){if(Be&&Be.indexOf(" ")>-1){var We=Array.prototype.slice.call(arguments,0);Be.split(" ").forEach(function(tt){We[1]=tt,ce.apply(this,We)})}else ce.apply(this,arguments)};return function(pe,Be){if("object"==typeof Be){var We=Array.prototype.slice.call(arguments,0);for(var tt in Be)We[1]=tt,We[We.length-1]=Be[tt],de.apply(this,We)}else de.apply(this,arguments)}}function ye(ce){return null==(de=ce).which&&0===de.type.indexOf("key")?null!=ce.charCode?ce.charCode:ce.keyCode:function(de){return!de.which&&void 0!==de.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(de.type)}(ce)?{1:1,2:3,3:1,4:2}[ce.button]:ce.which;var de}function xe(ce){ce&&(ie.Event=ce,ie.Event.prototype=ce.prototype)}function ge(ce,de,pe){Object.defineProperty(pe||ie.Event.prototype,ce,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&de(this.originalEvent)},set:function(Be){Object.defineProperty(this,ce,{enumerable:!0,configurable:!0,writable:!0,value:Be})}})}xe(function z(ce){return ie.Event=function(de,pe){if(!(this instanceof ie.Event))return new ie.Event(de,pe);de||(de={}),"string"==typeof de&&(de={type:de}),pe||(pe={}),ce.call(this,de,pe)},(0,r.A)(ie.Event.prototype,{_propagationStopped:!1,_immediatePropagationStopped:!1,_defaultPrevented:!1,isPropagationStopped:function(){return!!(this._propagationStopped||this.originalEvent&&this.originalEvent.propagationStopped)},stopPropagation:function(){this._propagationStopped=!0,this.originalEvent&&this.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return this._immediatePropagationStopped},stopImmediatePropagation:function(){this.stopPropagation(),this._immediatePropagationStopped=!0,this.originalEvent&&this.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(this._defaultPrevented||this.originalEvent&&this.originalEvent.defaultPrevented)},preventDefault:function(){this._defaultPrevented=!0,this.originalEvent&&this.originalEvent.preventDefault()}}),ie.Event}(function(ce,de){var pe;ce instanceof ie.Event||(0,o.Vd)()&&ce instanceof O.Event||(null===(pe=ce.view)||void 0===pe?void 0:pe.Event)&&ce instanceof ce.view.Event?(this.originalEvent=ce,this.type=ce.type,this.currentTarget=void 0,Object.prototype.hasOwnProperty.call(ce,"isTrusted")&&(this.isTrusted=ce.isTrusted),this.timeStamp=ce.timeStamp||Date.now()):(0,r.A)(this,ce),ge("which",ye,this),0===ce.type.indexOf("touch")&&(delete de.pageX,delete de.pageY),(0,r.A)(this,de),this.guid=++Y})),["target","relatedTarget","delegateTarget","altKey","bubbles","cancelable","changedTouches","ctrlKey","detail","eventPhase","metaKey","shiftKey","view","char","code","charCode","key","keyCode","button","buttons","offsetX","offsetY","pointerId","pointerType","targetTouches","toElement","touches"].forEach(ce=>ge(ce,de=>de[ce])),function s(ce){v.forEach(function(de){ce(de,function(pe){return function(ce,de){if(de[ce]&&!de.touches||!de.touches)return de[ce];var pe=de.touches.length?de.touches:de.changedTouches;return pe.length?pe[0][ce]:void 0}(de,pe)})},this)}(ge);var Ee=(0,m.A)(),he=(0,m.A)();ie.set=function(ce){Ee.fire(),ie.inject(ce),xe(ce.Event),he.fire()},ie.subscribeGlobal=function(){ee(arguments,N(function(){var ce=arguments;ie.on.apply(this,ce),Ee.add(function(){var de=Array.prototype.slice.call(ce,0);de.splice(3,1),ie.off.apply(this,de)}),he.add(function(){ie.on.apply(this,ce)})}))},ie.forcePassiveFalseEventNames=x,ie.passiveEventHandlersSupported=_e;const Ie=ie},6297:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>h});var r=D(24292),d=D(91269),L=D(56221),j=D(49104),o="compositionstart",m="KeyboardProcessor",_=s=>({keyName:(0,j.YD)(s),key:s.key,code:s.code,ctrl:s.ctrlKey,location:s.location,metaKey:s.metaKey,shift:s.shiftKey,alt:s.altKey,which:s.which,originalEvent:s}),v=L.A.inherit({_keydown:(0,j.b4)("keydown",m),_compositionStart:(0,j.b4)(o,m),_compositionEnd:(0,j.b4)("compositionend",m),ctor:function(s){(s=s||{}).element&&(this._element=(0,r.A)(s.element)),s.focusTarget&&(this._focusTarget=s.focusTarget),this._handler=s.handler,this._element&&(this._processFunction=b=>{var O=(0,r.A)(this._focusTarget).toArray(),w=this._focusTarget&&this._focusTarget!==b.target&&!O.includes(b.target),f=this._isComposingJustFinished&&229===b.which||this._isComposing||w;this._isComposingJustFinished=!1,f||this.process(b)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),d.A.on(this._element,this._keydown,this._processFunction),d.A.on(this._element,this._compositionStart,this._toggleProcessingWithContext),d.A.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(d.A.off(this._element,this._keydown,this._processFunction),d.A.off(this._element,this._compositionStart,this._toggleProcessingWithContext),d.A.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(s){this._handler(_(s))},toggleProcessing:function(s){var{type:b}=s;this._isComposing=b===o,this._isComposingJustFinished=!this._isComposing}});v.createKeyDownOptions=_;const h=v},39544:(ei,rt,D)=>{"use strict";D.d(rt,{U:()=>o});var r=D(24292),d=D(91269),L=D(90396),j=D(49104),o="dxmousewheel",E="dxWheel",v={setup:function(h){var s=(0,r.A)(h);d.A.on(s,(0,j.b4)("wheel",E),v._wheelHandler.bind(v))},teardown:function(h){d.A.off(h,".".concat(E))},_wheelHandler:function(h){var{deltaMode:s,deltaY:b,deltaX:O,deltaZ:w}=h.originalEvent;(0,j.rC)({type:o,originalEvent:h,delta:this._normalizeDelta(b,s),deltaX:O,deltaY:b,deltaZ:w,deltaMode:s,pointerType:"mouse"}),h.stopPropagation()},_normalizeDelta(h){return 0===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)?-h:-30*h}};(0,L.A)(o,v)},1707:(ei,rt,D)=>{"use strict";D.d(rt,{U:()=>R});var r=D(56221),d=D(17669),L=D(7963),j=D(18060),o=D(91269),E=D(49104),R="dxdblclick",_=(0,E.b4)(j.U,"dxDblClick"),s=new(r.A.inherit({ctor(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick(){this._firstClickTarget=null,this._lastClickTimeStamp=-300},add(){this._handlerCount<=0&&o.A.on(d.A.getDocument(),_,this._clickHandler.bind(this)),this._handlerCount+=1},_clickHandler(O){var w=O.timeStamp||Date.now(),f=w-this._lastClickTimeStamp;!(f<0)&&f<300?((0,E.rC)({type:R,target:(0,L.tc)(this._firstClickTarget,O.target),originalEvent:O}),this._forgetLastClick()):(this._firstClickTarget=O.target,this._lastClickTimeStamp=w)},remove(){this._handlerCount-=1,this._handlerCount<=0&&(this._forgetLastClick(),o.A.off(d.A.getDocument(),_,void 0),this._handlerCount=0)}}));(0,D(90396).A)(R,s)},99393:(ei,rt,D)=>{"use strict";D.d(rt,{Cy:()=>h,Ve:()=>b,_N:()=>s,ni:()=>v,qG:()=>O});var r=D(24292),d=D(98332),L=D(89518),j=D(12101),o=D(7963),E=D(90396),R=D(49104),m=D(19776),_=D(98642),v="dxdragstart",h="dxdrag",s="dxdragend",b="dxdragenter",O="dxdragleave",w="dxdrop",f="dxDragEventsCount",k=[],I=[],x=[],g={setup:function(ie,ee){k.includes(ie)||(k.push(ie),I.push([]),x.push(ee||{}))},add:function(ie,ee){var re=k.indexOf(ie);this.updateEventsCounter(ie,ee.type,1);var ne=ee.selector;I[re].includes(ne)||I[re].push(ne)},updateEventsCounter:function(ie,ee,re){if([b,O,w].indexOf(ee)>-1){var ne=(0,d.p)(ie,f)||0;(0,d.p)(ie,f,Math.max(0,ne+re))}},remove:function(ie,ee){this.updateEventsCounter(ie,ee.type,-1)},teardown:function(ie){if(!(0,d.p)(ie,f)){var re=k.indexOf(ie);k.splice(re,1),I.splice(re,1),x.splice(re,1),(0,d.jf)(ie,f)}}};(0,E.A)(b,g),(0,E.A)(O,g),(0,E.A)(w,g);var se=m.A.inherit({ctor:function(ie){this.callBase(ie),this.direction="both"},_init:function(ie){this._initEvent=ie},_start:function(ie){if(ie=this._fireEvent(v,this._initEvent),this._maxLeftOffset=ie.maxLeftOffset,this._maxRightOffset=ie.maxRightOffset,this._maxTopOffset=ie.maxTopOffset,this._maxBottomOffset=ie.maxBottomOffset,ie.targetElements||null===ie.targetElements){var ee=(0,L.BO)(ie.targetElements||[]);this._dropTargets=j.Tj(ee,function(re){return(0,r.A)(re).get(0)})}else this._dropTargets=k},_move:function(ie){var ee=(0,R.rw)(ie),re=this._calculateOffset(ee);ie=this._fireEvent(h,ie,{offset:re}),this._processDropTargets(ie),ie._cancelPreventDefault||ie.preventDefault()},_calculateOffset:function(ie){return{x:this._calculateXOffset(ie),y:this._calculateYOffset(ie)}},_calculateXOffset:function(ie){return"vertical"!==this.direction?this._fitOffset(ie.x-this._startEventData.x,this._maxLeftOffset,this._maxRightOffset):0},_calculateYOffset:function(ie){return"horizontal"!==this.direction?this._fitOffset(ie.y-this._startEventData.y,this._maxTopOffset,this._maxBottomOffset):0},_fitOffset:function(ie,ee,re){return null!=ee&&(ie=Math.max(ie,-ee)),null!=re&&(ie=Math.min(ie,re)),ie},_processDropTargets:function(ie){var ee=this._findDropTarget(ie);ee===this._currentDropTarget||(this._fireDropTargetEvent(ie,O),this._currentDropTarget=ee,this._fireDropTargetEvent(ie,b))},_fireDropTargetEvent:function(ie,ee){if(this._currentDropTarget){var re={type:ee,originalEvent:ie,draggingElement:this._$element.get(0),target:this._currentDropTarget};(0,R.rC)(re)}},_findDropTarget:function(ie){var re,ee=this;return j.__(k,function(ne,_e){if(ee._checkDropTargetActive(_e)){var be=(0,r.A)(_e);j.__(function(ie){var ee=k.indexOf(ie.get(0)),re=I[ee].filter(_e=>_e),ne=ie.find(re.join(", "));return I[ee].includes(void 0)&&(ne=ne.add(ie)),ne}(be),function(oe,me){var we=(0,r.A)(me);ee._checkDropTarget(function(ie){var ee=k.indexOf(ie.get(0));return x[ee]}(be),we,(0,r.A)(re),ie)&&(re=me)})}}),re},_checkDropTargetActive:function(ie){var ee=!1;return j.__(this._dropTargets,function(re,ne){return!(ee=ee||ne===ie||(0,o.gR)(ne,ie))}),ee},_checkDropTarget:function(ie,ee,re,ne){if(ee.get(0)===(0,r.A)(ne.target).get(0))return!1;var be=function(ie,ee){return ie.itemPositionFunc?ie.itemPositionFunc(ee):ee.offset()}(ie,ee);if(ne.pageX<be.left||ne.pageY<be.top)return!1;var oe=function(ie,ee){return ie.itemSizeFunc?ie.itemSizeFunc(ee):{width:ee.get(0).getBoundingClientRect().width,height:ee.get(0).getBoundingClientRect().height}}(ie,ee);return!(ne.pageX>be.left+oe.width||ne.pageY>be.top+oe.height||re.length&&re.closest(ee).length||ie.checkDropTarget&&!ie.checkDropTarget(ee,ne))&&ee},_end:function(ie){var ee=(0,R.rw)(ie);this._fireEvent(s,ie,{offset:this._calculateOffset(ee)}),this._fireDropTargetEvent(ie,w),delete this._currentDropTarget}});(0,_.A)({emitter:se,events:[v,h,s]})},19776:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>se});var r=D(24292),d=D(91269),L=D(23862),j=D(5918),o=D(435),E=D(7963),R=D(72535),m=D(22209),_=D(5042),v=D(72463),h=D(49104),s=D(94469),b=R.A.add,O=Math.abs,I=10,F=(0,o.A)(function(){var ie="desktop"===L.A.real().deviceType;if(!(0,j.jA)("pointer-events")||!ie)return _.lQ;var ee=(0,r.A)("<div>").addClass("dx-gesture-cover").css("pointerEvents","none");return d.A.subscribeGlobal(ee,"dxmousewheel",function(re){re.preventDefault()}),b(function(){ee.appendTo("body")}),function(re,ne){ee.css("pointerEvents",re?"all":"none"),re&&ee.css("cursor",ne)}}),Q=s.A.inherit({gesture:!0,configure:function(ie){this.getElement().css("msTouchAction",ie.immediate?"pinch-zoom":""),this.callBase(ie)},allowInterruptionByMouseWheel:function(){return 2!==this._stage},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=0},start:function(ie){ie._needSkipEvent||(0,h.eT)(ie)?this._cancel(ie):(this._startEvent=(0,h.lh)(ie),this._startEventData=(0,h.rw)(ie),this._stage=1,this._init(ie),this._setupImmediateTimer())},_setupImmediateTimer:function(){var ie;if(clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate){if(0===this.immediateTimeout)return void(this._immediateAccepted=!0);this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),null!==(ie=this.immediateTimeout)&&void 0!==ie?ie:180)}},move:function(ie){if(1===this._stage&&this._directionConfirmed(ie)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(ie),this._adjustStartEvent(ie),this._start(this._startEvent),0===this._stage)return;this._requestAccept(ie),this._move(ie),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(ie),this._move(ie))},_directionConfirmed:function(ie){var ee=this._getTouchBoundary(ie),re=(0,h.nm)(this._startEventData,(0,h.rw)(ie)),ne=O(re.x),_e=O(re.y),be=this._validateMove(ee,ne,_e),oe=this._validateMove(ee,_e,ne),me=this.getDirection(ie);return"both"===me&&(be||oe)||"horizontal"===me&&be||"vertical"===me&&oe||this._immediateAccepted},_validateMove:function(ie,ee,re){return ee&&ee>=ie&&(!this.immediate||ee>=re)},_getTouchBoundary:function(ie){return this.immediate||(0,h.X1)(ie)?0:I},_adjustStartEvent:function(ie){var ee=this._getTouchBoundary(ie),re=(0,h.nm)(this._startEventData,(0,h.rw)(ie));this._startEvent.pageX+=(0,m._S)(re.x)*ee,this._startEvent.pageY+=(0,m._S)(re.y)*ee},_resetActiveElement:function(){"ios"===L.A.real().platform&&this.getElement().find(":focus").length&&(0,E.GX)()},_toggleGestureCover:function(ie){this._toggleGestureCoverImpl(ie)},_toggleGestureCoverImpl:function(ie){2===this._stage&&function(ie,ee){F()(ie,ee)}(ie,this.getElement().css("cursor"))},_clearSelection:function(ie){(0,h.X1)(ie)||(0,h.kH)(ie)||(0,E.wr)()},end:function(ie){this._toggleGestureCover(!1),2===this._stage?this._end(ie):1===this._stage&&this._stop(ie),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:_.lQ,_start:_.lQ,_move:_.lQ,_stop:_.lQ,_end:_.lQ});Q.initialTouchBoundary=I,Q.touchBoundary=function(ie){if(!(0,v.O9)(ie))return I;I=ie};const se=Q},26961:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>F});var Y,r=D(91269),d=D(56221),L=D(49104),j=D(19776),o=D(98642),E=D(55581),R=D(23862),m=d.A.abstract,_=R.A.real(),v="scroll",h="dxscrollinit",s="dxscrollstart",b="dxscroll",O="dxscrollend",w="dxscrollstop",f="dxscrollcancel",k=d.A.inherit((Y=(0,L.b4)(v,"dxScrollEmitter"),{ctor:function(Q){this._element=Q,this._locked=!1,this._proxiedScroll=se=>{this._disposed||this._scroll(se)},r.A.on(this._element,Y,this._proxiedScroll)},_scroll:m,check:function(Q,se){this._locked&&se()},dispose:function(){this._disposed=!0,r.A.off(this._element,Y,this._proxiedScroll)}})),I=k.inherit({ctor:function(Y,Q){this.callBase(Y),this._timeout=Q},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var Y=this;this._timer=setTimeout(function(){Y._clearTimer()},this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),x=I.inherit({ctor:function(Y){this.callBase(Y,400),this._lastWheelDirection=null},check:function(Y,Q){this._checkDirectionChanged(Y),this.callBase(Y,Q)},_checkDirectionChanged:function(Y){if((0,L.X1)(Y)){var Q=Y.shiftKey||!1,se=null!==this._lastWheelDirection&&Q!==this._lastWheelDirection;this._lastWheelDirection=Q,this._locked=this._locked&&!se}else this._lastWheelDirection=null}}),g=I.inherit({ctor:function(Y){this.callBase(Y,400)}});!function(){var{ios:Y,android:Q}=_;(Y||Q)&&(g=k.inherit({_scroll:function(){this._locked=!0;var se=this;(0,E.u)(this._scrollFrame),this._scrollFrame=(0,E.x)(function(){se._locked=!1})},check:function(se,ie){(0,E.u)(this._scrollFrame),(0,E.u)(this._checkFrame);var ee=this,re=this.callBase;this._checkFrame=(0,E.x)(function(){re.call(ee,se,ie),ee._locked=!1})},dispose:function(){this.callBase(),(0,E.u)(this._scrollFrame),(0,E.u)(this._checkFrame)}}))}();var C=j.A.inherit(function(){var Y=Math.round(16.666666666666668);return{ctor:function(Q){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new g(Q),this._wheelLocker=new x(Q)},validate:function(){return!0},configure:function(Q){Q.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new g(Q.scrollTarget),this._wheelLocker=new x(Q.scrollTarget)),this.callBase(Q)},_init:function(Q){this._wheelLocker.check(Q,function(){(0,L.X1)(Q)&&this._accept(Q)}.bind(this)),this._pointerLocker.check(Q,function(){var se=this.isNative&&(0,L.Er)(Q);!(0,L.X1)(Q)&&!se&&this._accept(Q)}.bind(this)),this._fireEvent(h,Q),this._prevEventData=(0,L.rw)(Q)},move:function(Q){this.callBase.apply(this,arguments),Q.isScrollingEvent=this.isNative||Q.isScrollingEvent},_start:function(Q){this._savedEventData=(0,L.rw)(Q),this._fireEvent(s,Q),this._prevEventData=(0,L.rw)(Q)},_move:function(Q){var se=(0,L.rw)(Q);this._fireEvent(b,Q,{delta:(0,L.nm)(this._prevEventData,se)}),(0,L.nm)(this._savedEventData,se).time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=(0,L.rw)(Q)},_end:function(Q){var se=(0,L.nm)(this._prevEventData,(0,L.rw)(Q)),ie={x:0,y:0};if(!(0,L.X1)(Q)&&se.time<100){var ee=(0,L.nm)(this._savedEventData,this._prevEventData),re=Y/ee.time;ie={x:ee.x*re,y:ee.y*re}}this._fireEvent(O,Q,{velocity:ie})},_stop:function(Q){this._fireEvent(w,Q)},cancel:function(Q){this.callBase.apply(this,arguments),this._fireEvent(f,Q)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}());(0,o.A)({emitter:C,events:[h,s,b,O,w,f]});const F={init:h,start:s,move:b,end:O,stop:w,cancel:f,scroll:v}},62273:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>b});var r=D(24361),d=D(91269),L=D(38365),j=D(12101),o=D(49104),E=D(87951),R=D(9690),m="dxSwipeable",v={onStart:r.ni,onUpdated:r.By,onEnd:r._N,onCancel:"dxswipecancel"},s=L.A.inherit({_getDefaultOptions:function(){return(0,E.X)(this.callBase(),{elastic:!0,immediate:!1,immediateTimeout:180,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass("dx-swipeable"),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var O=this.NAME;this._createEventData(),(0,j.__)(v,function(w,f){var k=this._createActionByOption(w,{context:this});f=(0,o.b4)(f,O),d.A.on(this.$element(),f,this._eventData,function(I){return k({event:I})})}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate"),immediateTimeout:this.option("immediateTimeout")}},_detachEventHandlers:function(){d.A.off(this.$element(),"."+m)},_optionChanged:function(O){switch(O.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(O)}},_useTemplates:function(){return!1}});(0,R.UU)(s,m);const b=s},44602:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>_});var r=D(49104),d=D(94469),L=D(98642),j=Math.abs,o="dxhold",m=d.A.inherit({start:function(v){this._startEventData=(0,r.rw)(v),this._startTimer(v)},_startTimer:function(v){var h="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(v),this._fireEvent(o,v,{target:v.target}),this._forgetAccept()}.bind(this),h)},move:function(v){this._touchWasMoved(v)&&this._cancel(v)},_touchWasMoved:function(v){var h=(0,r.nm)(this._startEventData,(0,r.rw)(v));return j(h.x)>5||j(h.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});(0,L.A)({emitter:m,bubble:!0,events:[o]});const _={name:o}},14017:(ei,rt,D)=>{"use strict";D.d(rt,{_:()=>s,n:()=>_});var r=D(91269),d=D(98332),L=D(56221),j=D(23862),o=D(90396),E=D(49104),R=D(24159),m="dxHoverStart",_="dxhoverstart",v=(0,E.b4)(R.A.enter,m),h="dxHoverEnd",s="dxhoverend",b=(0,E.b4)(R.A.leave,h),O=L.A.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(k){(0,d.p)(k,this._handlerArrayKeyPath,{})},add:function(k,I){var x=this,g=function(C){x._handler(C)};r.A.on(k,this._originalEventName,I.selector,g),(0,d.p)(k,this._handlerArrayKeyPath)[I.guid]=g},_handler:function(k){(0,E.kH)(k)||j.A.isSimulator()||(0,E.rC)({type:this._eventName,originalEvent:k,delegateTarget:k.delegateTarget})},remove:function(k,I){var x=(0,d.p)(k,this._handlerArrayKeyPath)[I.guid];r.A.off(k,this._originalEventName,I.selector,x)},teardown:function(k){(0,d.jf)(k,this._handlerArrayKeyPath)}}),w=O.inherit({ctor:function(){this._eventNamespace=m,this._eventName=_,this._originalEventName=v,this.callBase()},_handler:function(k){(k.pointers||[]).length||this.callBase(k)}}),f=O.inherit({ctor:function(){this._eventNamespace=h,this._eventName=s,this._originalEventName=b,this.callBase()}});(0,o.A)(_,new w),(0,o.A)(s,new f)},24159:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>q});var r=D(83771),d=D(19900),L=D(12101),j=D(23862),o=D(90396),E=D(87951),R=D(91269),m=D(29263),_=D(17669),v=D(56221),h=D(49104),s="dxPointerEvents";const O=v.A.inherit({ctor:function(ye,xe){this._eventName=ye,this._originalEvents=(0,h.b4)(xe,s),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var ye=this._eventName;return"dxpointerenter"===ye||"dxpointerleave"===ye},_handler:function(ye){var xe,ge=this._getDelegateTarget(ye),Ee={type:this._eventName,pointerType:ye.pointerType||(0,h.KN)(ye),originalEvent:ye,delegateTarget:ge,timeStamp:m.A.mozilla?(new Date).getTime():ye.timeStamp},he=ye.originalEvent;if(null!=he&&null!==(xe=he.target)&&void 0!==xe&&xe.shadowRoot){var Ie,ce,de=null!==(Ie=he.path)&&void 0!==Ie?Ie:null===(ce=he.composedPath)||void 0===ce?void 0:ce.call(he);Ee.target=de[0]}return this._fireEvent(Ee)},_getDelegateTarget:function(ye){var xe;return this.noBubble&&(xe=ye.delegateTarget),xe},_fireEvent:function(ye){return(0,h.rC)(ye)},_setSelector:function(ye){this._selector=this.noBubble&&ye?ye.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(ye,xe){if(this._handlerCount<=0||this.noBubble){ye=this.noBubble?ye:_.A.getDocument(),this._setSelector(xe);var ge=this;R.A.on(ye,this._originalEvents,this._getSelector(),function(Ee){ge._handler(Ee)})}this.noBubble||this._handlerCount++},remove:function(ye){this._setSelector(ye),this.noBubble||this._handlerCount--},teardown:function(ye){this._handlerCount&&!this.noBubble||(ye=this.noBubble?ye:_.A.getDocument(),this._originalEvents!=="."+s&&R.A.off(ye,this._originalEvents,this._getSelector()))},dispose:function(ye){ye=this.noBubble?ye:_.A.getDocument(),R.A.off(ye,this._originalEvents)}});var f=function(ye){var xe=[];return(0,L.__)(ye.touches,function(ge,Ee){xe.push((0,E.X)({pointerId:Ee.identifier},Ee))}),{pointers:xe,pointerId:ye.changedTouches[0].identifier}},I=O.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(ye){if(function(ye){return"ios"===j.A.real().platform&&("dxpointerdown"===ye||"dxpointerup"===ye)}(this._eventName)){var xe=ye.changedTouches[0];if(this._pointerId===xe.identifier&&0!==this._pointerId)return;this._pointerId=xe.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(ye){return this.callBase((0,E.X)(f(ye.originalEvent),ye))}});I.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},I.normalize=f;const x=I;var g=D(72535),C=function(ye,xe){g.A.add(function(){ye.split(" ").forEach(function(ge){_.A.listen(_.A.getDocument(),ge,xe,!0)})})};const Y=function(ye,xe,ge){ge=ge||function(){};var Ee=[],he=function(ce){var de=-1;return(0,L.__)(Ee,function(pe,Be){return!xe(ce,Be)||(de=pe,!1)}),de},Ie=function(ce){var de=he(ce);de>-1&&Ee.splice(de,1)};C(ye.dxpointerdown,function(ce){-1===he(ce)&&(ge(ce),Ee.push(ce))}),C(ye.dxpointermove,function(ce){Ee[he(ce)]=ce}),C(ye.dxpointerup,Ie),C(ye.dxpointercancel,Ie),this.pointers=function(){return Ee},this.reset=function(){Ee=[]}};var ie,Q={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},se=function(ye){return ye.pointerId=1,{pointers:ie.pointers(),pointerId:1}},ee=!1,re=function(){ee||(ie=new Y(Q,function(){return!0}),ee=!0)},ne=O.inherit({ctor:function(){this.callBase.apply(this,arguments),re()},_fireEvent:function(ye){return this.callBase((0,E.X)(se(ye.originalEvent),ye))}});ne.map=Q,ne.normalize=se,ne.activate=re,ne.resetObserver=function(){ie.reset()};const _e=ne;var oe=!1,we=O.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),oe||(_e.activate(),oe=!0)},_handler:function(ye){var xe=(0,h.Er)(ye);if(xe||(this._skipNextEvents=!0),!xe||!this._mouseLocked){if(xe&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var ge=this;return void(this._unlockMouseTimer=setTimeout(function(){ge._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(ye)}},_fireEvent:function(ye){var xe=(0,h.Er)(ye.originalEvent)?_e.normalize:x.normalize;return this.callBase((0,E.X)(xe(ye.originalEvent),ye))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});we.map={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},we.resetObserver=_e.resetObserver;const N=we;var W=((ye,xe)=>{var{tablet:ge,phone:Ee}=xe,he=function X(){var ye=(0,r.A)().pointerEventStrategy;return{"mouse-and-touch":N,touch:x,mouse:_e}[ye]}();return he||(!ye.touch||ge||Ee?ye.touch?x:_e:N)})(d,j.A.real());(0,L.__)(W.map,(ye,xe)=>{(0,o.A)(ye,new W(ye,xe))});const q={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"}},20675:(ei,rt,D)=>{"use strict";D.d(rt,{N:()=>o});var r=D(24292),d=D(98332),L=D(91269),j=D(90396),o="dxremove",E="dxRemoveEvent";(0,d.z)(function(R){R=[].slice.call(R);for(var m=0;m<R.length;m++){var _=(0,r.A)(R[m]);_.prop(E)&&(_[0][E]=null,L.A.triggerHandler(_,o))}}),(0,j.A)(o,{noBubble:!0,setup:function(R){(0,r.A)(R).prop(E,!0)}})},8257:(ei,rt,D)=>{"use strict";D.d(rt,{PT:()=>m,QJ:()=>f,Rz:()=>h,XC:()=>v,XD:()=>_,XR:()=>R,jM:()=>s,vu:()=>E});var r=D(91269),d=D(6297),L=D(49104);function j(k,I){return I?(0,L.b4)(k,I):k}function o(k,I){return"function"==typeof k?k(I):k.execute(I)}var E={on:(k,I,x,g)=>{var{selector:C,showTimeout:F,hideTimeout:Y,namespace:Q}=g;r.A.on(k,j("dxactive",Q),C,{timeout:F},se=>o(I,{event:se,element:se.currentTarget})),r.A.on(k,j("dxinactive",Q),C,{timeout:Y},se=>o(x,{event:se,element:se.currentTarget}))},off:(k,I)=>{var{namespace:x,selector:g}=I;r.A.off(k,j("dxactive",x),g),r.A.off(k,j("dxinactive",x),g)}},R={on:function(k,I){var{namespace:x}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.A.on(k,j("dxresize",x),I)},off:function(k){var{namespace:I}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.A.off(k,j("dxresize",I))}},m={on:(k,I,x,g)=>{var{selector:C,namespace:F}=g;r.A.on(k,j("dxhoverend",F),C,Y=>x(Y)),r.A.on(k,j("dxhoverstart",F),C,Y=>o(I,{element:Y.target,event:Y}))},off:(k,I)=>{var{selector:x,namespace:g}=I;r.A.off(k,j("dxhoverstart",g),x),r.A.off(k,j("dxhoverend",g),x)}},_={on:(k,I,x,g)=>{var{namespace:C}=g;r.A.on(k,j("dxhiding",C),x),r.A.on(k,j("dxshown",C),I)},off:(k,I)=>{var{namespace:x}=I;r.A.off(k,j("dxhiding",x)),r.A.off(k,j("dxshown",x))}},v={on:(k,I,x,g)=>{var{namespace:C}=g;r.A.on(k,j("focusin",C),I),r.A.on(k,j("focusout",C),x)},off:(k,I)=>{var{namespace:x}=I;r.A.off(k,j("focusin",x)),r.A.off(k,j("focusout",x))},trigger:k=>r.A.trigger(k,"focus")},h={on:function(k,I){var{namespace:x}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.A.on(k,j("dxclick",x),I)},off:function(k){var{namespace:I}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.A.off(k,j("dxclick",I))}},s={on:function(k,I){var{namespace:x}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.A.on(k,j("click",x),I)},off:function(k){var{namespace:I}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.A.off(k,j("click",I))}},b=0,O={},f={on:(k,I,x)=>{var g="keyboardProcessorId".concat(b++);return O[g]=new d.A({element:k,focusTarget:I,handler:x}),g},off:k=>{k&&O[k]&&(O[k].dispose(),delete O[k])},_getProcessor:k=>O[k]}},24361:(ei,rt,D)=>{"use strict";D.d(rt,{By:()=>E,_N:()=>R,ni:()=>o});var r=D(80186),d=D(49104),L=D(19776),j=D(98642),o="dxswipestart",E="dxswipe",R="dxswipeend",v={horizontal:{defaultItemSizeFunc:function(){return(0,r.RG)(this.getElement())},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(s){return((0,d.rw)(s).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,s)},isFastSwipe:function(s){var b=(0,d.rw)(s);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(b.x-this._tickData.x)>=b.time-this._tickData.time}},vertical:{defaultItemSizeFunc:function(){return(0,r.Oq)(this.getElement())},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(s){return((0,d.rw)(s).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,s)},isFastSwipe:function(s){var b=(0,d.rw)(s);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(b.y-this._tickData.y)>=b.time-this._tickData.time}}},h=L.A.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(s){this.callBase(s),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return v[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(s){this._tickData=(0,d.rw)(s)},_start:function(s){this._savedEventData=(0,d.rw)(s),(s=this._fireEvent(o,s)).cancel||(this._maxLeftOffset=s.maxLeftOffset,this._maxRightOffset=s.maxRightOffset,this._maxTopOffset=s.maxTopOffset,this._maxBottomOffset=s.maxBottomOffset)},_move:function(s){var b=this._getStrategy(),O=(0,d.rw)(s),w=b.calcOffsetRatio.call(this,s);w=this._fitOffset(w,this.elastic),O.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=O),this._fireEvent(E,s,{offset:w}),!1!==s.cancelable&&s.preventDefault()},_end:function(s){var b=this._getStrategy(),O=b.calcOffsetRatio.call(this,s),w=b.isFastSwipe.call(this,s),f=O,k=this._calcTargetOffset(O,w);f=this._fitOffset(f,this.elastic),k=this._fitOffset(k,!1),this._fireEvent(R,s,{offset:f,targetOffset:k})},_fitOffset:function(s,b){var w=this._getStrategy().getBounds.call(this);return s<-w[0]?b?(-2*w[0]+s)/3:-w[0]:s>w[1]?b?(2*w[1]+s)/3:w[1]:s},_calcTargetOffset:function(s,b){var O;return b?(O=Math.ceil(Math.abs(s)),s<0&&(O=-O)):O=Math.round(s),O}});(0,j.A)({emitter:h,events:[o,E,R]})},49104:(ei,rt,D)=>{"use strict";D.d(rt,{b4:()=>G,lh:()=>oe,rw:()=>Q,nm:()=>se,KN:()=>k,rC:()=>me,Pg:()=>N,Ic:()=>ie,By:()=>W,X1:()=>g,Er:()=>x,EE:()=>I,kH:()=>C,eT:()=>_e,YD:()=>we});var r=D(24292),d=D(87550),L=(z,X)=>{if(!X)throw d.A.Error("E0017");return Array.isArray(z)?z.map(q=>L(q,X)).join(" "):-1!==z.indexOf(" ")?L(z.split(/\s+/g),X):"".concat(z,".").concat(X)};const j=L;var o=D(91269),E=D(12101),R=D(87951),m=D(31063),_={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift"},v={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},h={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},O=z=>"dx"===k(z),f=z=>"touch"===k(z),k=z=>{var{type:X}=z,q="other";return(0,E.__)(h,function(ye){if(this.test(X))return q=ye,!1}),q},I=z=>"pointer"===k(z),x=z=>(z=>"mouse"===k(z))(z)||(I(z)||O(z))&&"mouse"===z.pointerType,g=z=>z&&"dxmousewheel"===z.type,C=z=>f(z)||(I(z)||O(z))&&"touch"===z.pointerType,Q=z=>{var{pageX:X,pageY:q,timeStamp:ye}=z;return{x:X,y:q,time:ye}},se=(z,X)=>({x:X.x-z.x,y:X.y-z.y,time:X.time-z.time||1}),ie=z=>{var{originalEvent:X,pointers:q}=z;return f(z)?(X.touches||[]).length:O(z)?(q||[]).length:0},_e=z=>{var{target:X}=z,q=(0,r.A)(X),ye=X?.isContentEditable||X?.hasAttribute("contenteditable"),xe=q.is("input, textarea, select")||ye;return g(z)?!(q.is("textarea")&&q.hasClass("dx-texteditor-input")||ye)&&q.is("input[type='number'], textarea, select")&&q.is(":focus"):x(z)?xe||z.which>1:C(z)?xe&&(0,m.in)(q):void 0},oe=(z,X)=>{var q=(z=>o.A.Event(z,z))(z);return X&&(0,R.X)(q,X),q},me=z=>{var{originalEvent:X,delegateTarget:q}=z,ye=oe(X,z);return o.A.trigger(q||ye.target,ye),ye},we=z=>{var{key:X,which:q}=z,ye=_[X?.toLowerCase()]||X,xe=v[q];return xe&&ye===X?xe:!ye&&q?String.fromCharCode(q):ye},N=z=>{var{key:X,which:q}=z;return X||String.fromCharCode(q)},G=j,W=z=>{var{ctrlKey:X,metaKey:q}=z;return X||q}},65822:(ei,rt,D)=>{"use strict";D.d(rt,{EH:()=>o,I9:()=>j,ho:()=>E});var r=D(24292),d=D(91269),L=function(R){return function(m){for(var _=(0,r.A)(m||"body"),v=_.filter(".dx-visibility-change-handler").add(_.find(".dx-visibility-change-handler")),h=0;h<v.length;h++)d.A.triggerHandler(v[h],R)}},j=L("dxshown"),o=L("dxhiding"),E=L("dxresize")},45:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>R});var r=D(72463),d=D(91437),L=D(15655),j=D(69259),o=D(37041);D(21364);const R=(0,o.A)({format:function(m,_){var v=(0,r.Kg)(_)&&""!==_||(0,r.Qd)(_)||(0,r.Tn)(_),h=(0,r.kf)(m)||(0,r.$P)(m);return v&&h?(0,r.Tn)(_)?_(m):((0,r.Kg)(_)&&(_={type:_}),(0,r.kf)(m)?L.A.format(m,_):(0,r.$P)(m)?j.A.format(m,_):void 0):(0,r.O9)(m)?m.toString():""},getTimeFormat:function(m){return m?"longtime":"shorttime"},_normalizeFormat:function(m){return Array.isArray(m)?1===m.length?m[0]:function(_){return m.map(function(v){return j.A.format(_,v)}).join(" ")}:m},getDateFormatByDifferences:function(m,_){var v=[],h=_&&m.millisecond&&!(m.year||m.month||m.day);return h?v.push(function(s){return s.getSeconds()+s.getMilliseconds()/1e3+"s"}):m.millisecond&&v.push("millisecond"),(m.hour||m.minute||!h&&m.second)&&v.unshift(this.getTimeFormat(m.second)),m.year&&m.month&&m.day?_&&"month"===_?"monthandyear":(v.unshift("shortdate"),this._normalizeFormat(v)):m.year&&m.month?"monthandyear":m.year&&m.quarter?"quarterandyear":m.year?"year":m.quarter?"quarter":m.month&&m.day?(v.unshift(_?function(s){return j.A.getMonthNames("abbreviated")[s.getMonth()]+" "+j.A.format(s,"day")}:"monthandday"),this._normalizeFormat(v)):m.month?"month":m.day?(v.unshift(_?"day":function(s){return j.A.format(s,"dayofweek")+", "+j.A.format(s,"day")}),this._normalizeFormat(v)):this._normalizeFormat(v)},getDateFormatByTicks:function(m){var _,v,h;if(m.length>1)for(_=d.A.getDatesDifferences(m[0],m[1]),h=1;h<m.length-1;h++)v=d.A.getDatesDifferences(m[h],m[h+1]),_.count<v.count&&(_=v);else _={year:!0,month:!0,day:!0,hour:m[0].getHours()>0,minute:m[0].getMinutes()>0,second:m[0].getSeconds()>0,millisecond:m[0].getMilliseconds()>0};return this.getDateFormatByDifferences(_)},getDateFormatByTickInterval:function(m,_,v){var h,s=function(w,f,k){switch(f){case"year":case"quarter":w.month=k;case"month":w.day=k;case"week":case"day":w.hour=k;case"hour":w.minute=k;case"minute":w.second=k;case"second":w.millisecond=k}};v=(0,r.Kg)(v)?v.toLowerCase():v;var w,f,k,b=d.A.getDatesDifferences(m,_);return m!==_&&(w=b,f=m>_?_:m,!(k=m>_?m:_).getMilliseconds()&&k.getSeconds()?k.getSeconds()-f.getSeconds()==1&&(w.millisecond=!0,w.second=!1):!k.getSeconds()&&k.getMinutes()?k.getMinutes()-f.getMinutes()==1&&(w.second=!0,w.minute=!1):!k.getMinutes()&&k.getHours()?k.getHours()-f.getHours()==1&&(w.minute=!0,w.hour=!1):!k.getHours()&&k.getDate()>1?k.getDate()-f.getDate()==1&&(w.hour=!0,w.day=!1):1===k.getDate()&&k.getMonth()?k.getMonth()-f.getMonth()==1&&(w.day=!0,w.month=!1):!k.getMonth()&&k.getFullYear()&&k.getFullYear()-f.getFullYear()==1&&(w.month=!0,w.year=!1)),s(b,d.A.getDateUnitInterval(b),!0),s(b,h=d.A.getDateUnitInterval(v||"second"),!1),b[{week:"day"}[h]||h]=!0,this.getDateFormatByDifferences(b)}})},93120:(ei,rt,D)=>{"use strict";D.d(rt,{Hg:()=>E,Yq:()=>h,ZV:()=>_,fH:()=>R});var r=D(33437),d=D(20736),L=D(15655),j=D(69259),E=(D(21364),r.A.locale.bind(r.A)),R=d.A.load.bind(d.A),_=(d.A.format.bind(d.A),L.A.format.bind(L.A)),h=(L.A.parse.bind(L.A),j.A.format.bind(j.A));j.A.parse.bind(j.A)},33437:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>E});var r=D(37041);const d={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MV":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","hi-Latn":"en-IN","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"},j=(R,m)=>{var _=R[m];return _?"root"!==_&&_:m.substr(0,m.lastIndexOf("-"))};var o="en";const E=(0,r.A)({locale:(()=>{var R=o;return m=>{if(!m)return R;R=m}})(),getValueByClosestLocale:function(R){for(var v,m=this.locale(),_=R(m);!_&&!v;)(m=j(d,m))?_=R(m):v=!0;return void 0===_&&m!==o?R(o):_}})},21364:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>d});var r=D(87951);const d={_formatNumberCore:function(L,j,o){if("currency"===j){o.precision=o.precision||0;var E=this.format(L,(0,r.X)({},o,{type:"fixedpoint"})),R=this.getCurrencySymbol().symbol.replace(/\$/g,"$$$$");return E.replace(/^(\D*)(\d.*)/,"$1"+R+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}}},69259:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>we});var r=D(37041),d=D(72463),L=D(12101),j=D(87550),o=D(56773),E=D(65276),R=D(27336),m=D(50410);const _={"af-NA":1,agq:1,ak:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-MV":5,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,"ff-Adlm":1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nds:1,nl:1,nmg:1,nnh:1,no:1,nus:1,nyn:1,os:1,pcm:1,pl:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,sc:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tr:1,tt:1,twq:1,tzm:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,zgh:1};var v=D(33437),h=D(15655),s=D(87951),b=/[\u200E\u200F]/g,O=/[\u202F]/g,w=N=>G=>{if(!N.timeZoneName){var W=G.getFullYear(),z=String(W).length<3,q=new Date(Date.UTC(z?W+400:W,G.getMonth(),G.getDate(),G.getHours(),G.getMinutes(),G.getSeconds(),G.getMilliseconds()));return z&&q.setFullYear(W),I(q,(0,s.X)({timeZone:"UTC"},N))}return I(G,N)},f={},k=N=>{var G=v.A.locale()+"/"+JSON.stringify(N);return f[G]||(f[G]=new Intl.DateTimeFormat(v.A.locale(),N).format),f[G]};function I(N,G){return k(G)(N).replace(b,"").replace(O," ")}var x=N=>new Intl.NumberFormat(v.A.locale()).format(N),g=(()=>{var N={};return G=>{if(!(G in N)){if("0"===x(0))return N[G]=!1,!1;N[G]={};for(var W=0;W<10;++W)N[G][x(W)]=W}return N[G]}})(),C=N=>{var G=g(v.A.locale());return G?N.split("").map(W=>W in G?String(G[W]):W).join(""):N},F=N=>N.replace(/(\D)0+(\d)/g,"$1$2"),Q=N=>N.replace("d\u2019","de "),se={day:{day:"numeric"},dayofweek:{weekday:"long"},longdate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},longdatelongtime:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},longtime:{hour:"numeric",minute:"numeric",second:"numeric"},month:{month:"long"},monthandday:{month:"long",day:"numeric"},monthandyear:{year:"numeric",month:"long"},shortdate:{},shorttime:{hour:"numeric",minute:"numeric"},shortyear:{year:"2-digit"},year:{year:"numeric"}};Object.defineProperty(se,"shortdateshorttime",{get:function(){var N=Intl.DateTimeFormat(v.A.locale()).resolvedOptions();return{year:N.year,month:N.month,day:N.day,hour:"numeric",minute:"numeric"}}});var ee={standalone:function(N,G){var W=new Date(1999,N,13,1);return w({month:G})(W)},format:function(N,G){var W=new Date(0,N,13,1),X=Q(w({day:"numeric",month:G})(W)).split(" ").filter(q=>q.indexOf("13")<0);return 1===X.length?X[0]:2===X.length?X[0].length>X[1].length?X[0]:X[1]:ee.standalone(N,G)}};const re={engine:function(){return"intl"},getMonthNames:function(N,G){var W={wide:"long",abbreviated:"short",narrow:"narrow"}[N||"wide"];return G="format"===G?G:"standalone",Array.apply(null,new Array(12)).map((z,X)=>ee[G](X,W))},getDayNames:function(N){var W;return W={wide:"long",abbreviated:"short",short:"narrow",narrow:"narrow"}[N||"wide"],Array.apply(null,new Array(7)).map((z,X)=>w({weekday:W})(new Date(0,0,X)))},getPeriodNames:function(){var N=w({hour:"numeric",hour12:!0});return[1,13].map(G=>{var W=x(1),z=N(new Date(0,0,1,G)).split(W);return 2!==z.length?"":(z[0].length>z[1].length?z[0]:z[1]).trim()})},format:function(N,G){if(N){if(!G)return N;"function"!=typeof G&&!G.formatter&&(G=G.type||G);var W=(N=>"string"==typeof N&&se[N.toLowerCase()])(G);if(W)return w(W)(N);var z=typeof G;return G.formatter||"function"===z||"string"===z?this.callBase.apply(this,arguments):w(G)(N)}},parse:function(N,G){var W;return G&&!G.parser&&"string"==typeof N&&(N=Q(N),W=z=>Q(this.format(z,G))),this.callBase(N,W||G)},_parseDateBySimpleFormat:function(N,G){N=C(N);var W=this.getFormatParts(G),z=N.split(/\D+/).filter(ye=>ye.length>0);if(W.length===z.length){var X=this._generateDateArgs(W,z),q=ye=>{var ge,xe=(ge=X,new Date(ge.year,ge.month,ge.day,(ge.hours+(ye?12:0))%24,ge.minutes,ge.seconds));if(((N,G)=>F(N)===F(G))(C(this.format(xe,G)),N))return xe};return q(!1)||q(!0)}},_generateDateArgs:function(N,G){var W=new Date,z={year:W.getFullYear(),month:W.getMonth(),day:W.getDate(),hours:0,minutes:0,seconds:0};return N.forEach((X,q)=>{var xe=parseInt(G[q],10);"month"===X&&(xe-=1),z[X]=xe}),z},formatUsesMonthName:function(N){return"object"!=typeof N||N.type||N.format?this.callBase.apply(this,arguments):"long"===N.month},formatUsesDayName:function(N){return"object"!=typeof N||N.type||N.format?this.callBase.apply(this,arguments):"long"===N.weekday},getTimeSeparator:function(){return C(I(new Date(2001,1,1,11,11),{hour:"numeric",minute:"numeric",hour12:!1})).replace(/\d/g,"")},getFormatParts:function(N){if("string"==typeof N)return this.callBase(N);var G=(0,s.X)({},se[N.toLowerCase()]),W=new Date(2001,2,4,5,6,7),z=w(G)(W);return z=C(z),[{name:"year",value:1},{name:"month",value:3},{name:"day",value:4},{name:"hours",value:5},{name:"minutes",value:6},{name:"seconds",value:7}].map(X=>({name:X.name,index:z.indexOf(X.value)})).filter(X=>X.index>-1).sort((X,q)=>X.index-q.index).map(X=>X.name)}};var _e=typeof Intl<"u",be={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},oe={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},me=(0,r.A)({engine:function(){return"base"},_getPatternByFormat:function(N){return be[N.toLowerCase()]},_expandPattern:function(N){return this._getPatternByFormat(N)||N},formatUsesMonthName:function(N){return-1!==this._expandPattern(N).indexOf("MMMM")},formatUsesDayName:function(N){return-1!==this._expandPattern(N).indexOf("EEEE")},getFormatParts:function(N){var G=this._getPatternByFormat(N)||N,W=[];return(0,L.__)(G.split(/\W+/),(z,X)=>{(0,L.__)(oe,(q,ye)=>{ye.includes(X)&&W.push(q)})}),W},getMonthNames:function(N){return m.A.getMonthNames(N)},getDayNames:function(N){return m.A.getDayNames(N)},getQuarterNames:function(N){return m.A.getQuarterNames(N)},getPeriodNames:function(N){return m.A.getPeriodNames(N)},getTimeSeparator:function(){return":"},is24HourFormat:function(N){for(var G=new Date(2017,0,20,11,0,0,0),W=new Date(2017,0,20,23,0,0,0),z=this.format(G,N),X=this.format(W,N),q=0;q<z.length;q++)if(z[q]!==X[q])return!isNaN(parseInt(z[q]))},format:function(N,G){if(N){if(!G)return N;var W;if("function"==typeof G)W=G;else if(G.formatter)W=G.formatter;else if((0,d.Kg)(G=G.type||G))return G=be[G.toLowerCase()]||G,h.A.convertDigits((0,o.f)(G,this)(N));if(W)return W(N)}},parse:function(N,G){var z,X,W=this;if(N){if(!G)return this.parse(N,"shortdate");if(G.parser)return G.parser(N);if("string"!=typeof G||be[G.toLowerCase()]){X=ye=>{var xe=W.format(ye,G);return h.A.convertDigits(xe,!0)};try{z=(0,E.g)(X)}catch{}}else z=G;if(z)return N=h.A.convertDigits(N,!0),(0,R.SQ)(z,this)(N);j.A.log("W0012");var q=new Date(N);if(q&&!isNaN(q.getTime()))return q}},firstDayOfWeekIndex:function(){var N=v.A.getValueByClosestLocale(G=>_[G]);return void 0===N?0:N}});_e&&me.inject(re);const we=me},50410:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>R});var r=D(12101),d=["January","February","March","April","May","June","July","August","September","October","November","December"],L=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],j=["AM","PM"],o=["Q1","Q2","Q3","Q4"],E=(m,_)=>{var v={abbreviated:3,short:2,narrow:1};return(0,r.Tj)(m,h=>h.substr(0,v[_]))};const R={getMonthNames:function(m){return E(d,m)},getDayNames:function(m){return E(L,m)},getQuarterNames:function(m){return o},getPeriodNames:function(m){return j}}},65276:(ei,rt,D)=>{"use strict";D.d(rt,{g:()=>O});var r=D(15655),L=" .,:;/\\<>()-[]\u060c",o=function(w){var f=w&&r.A.convertDigits(w,!1).charCodeAt(0),k=r.A.convertDigits("0",!1).charCodeAt(0);return k<=f&&f<k+10},E=function(w,f,k,I){var x=w[k],g=w[k+1];if(!I&&("."===x||" "===x&&". m."===w.slice(k-1,k+3)||"-"===x&&!o(g)))return!0;var C=I&&f.some(F=>w[k]!==F[k]);return L.indexOf(x)<0&&I===o(x)&&(!I||C)},R=function(w,f){if(!o(w[f]))for(;f>0&&!o(w[f-1])&&("."===w[f-1]||L.indexOf(w[f-1])<0);)f--;return f},h=function(w,f){return Array.isArray(w)?w.map(function(k){return(f(k)||"").toString()}):(f(w)||"").toString()},s=/[a-zA-Z]/g,O=function(w){var f=[],k=h(new Date(2009,8,8,6,5,4),w),I=k.split("").map(function(F,Y){return Y}),x=k,g={},C=[{date:new Date(2009,8,8,6,5,4,111),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(x&&(C.forEach(function(F){var Y=function(w,f,k,I){var x=0,g=[],C=function(F){return w[x]!==F[x]&&(void 0===I||o(w[x])===I)};for(Array.isArray(f)||(f=[f]),x=0;x<w.length;x++)if(k.indexOf(x)<0&&f.filter(C).length){x=R(w,x);do{if(I=o(w[x]),!g.length&&!I&&o(f[0][x]))break;g.push(x),k.unshift(x),x++}while(w[x]&&E(w,f,x,I));break}return 1===g.length&&("0"===w[k[0]-1]||"\u0660"===w[k[0]-1])&&k.unshift(k[0]-1),g}(k,h(F.date,w),f,F.isDigit),Q="M"!==F.pattern||g.d?F.pattern:"L";x=function(w,f,k,I){var x,g,C;if(!o(w[f[0]]||"0")){for(var F=Math.max(f.length<=3?3:4,k.length);f.length>F;){for(C=I[g=f.pop()],I[g]=-1,x=g+1;x<I.length;x++)I[x]--;w=w.substr(0,C)+w.substr(C+1)}for(C=(g=f[f.length-1]+1)<I.length?I[g]:g;f.length<F;){for(f.push(f[f.length-1]+1),x=g;x<I.length;x++)I[x]++;w=w.substr(0,C)+" "+w.substr(C)}}return w=function(w,f,k,I){var x=f[0],g=x<I.length?I[x]:x;return f.forEach(function(C,F){w=w.substr(0,g+F)+(k.length>1?k[F]:k)+w.substr(g+F+1)}),1===f.length&&(w=(w=w.replace("0"+k,k+k)).replace("\u0660"+k,k+k)),w}(w,f,k,I),w}(x,Y,Q,I),g[Q]=Y.length}),x=function(w,f,k,I){var x=f.split("").map(function(g,C){return k.indexOf(C)<0&&(g.match(s)||"'"===g)?I[C]:-1});return w.split("").map(function(g,C){var F=g,Y=x.indexOf(C)>=0,Q=C>0&&x.indexOf(C-1)>=0,se=x.indexOf(C+1)>=0;return Y&&(Q||(F="'"+F),se||(F+="'")),F}).join("")}(x,k,f,I),f.length))return x}},56773:(ei,rt,D)=>{"use strict";function r(o,E){for(;o.length<E;)o="0"+o;return o}D.d(rt,{f:()=>j});var d={3:"abbreviated",4:"wide",5:"narrow"},L={y:function(o,E,R){var m=o[R?"getUTCFullYear":"getFullYear"]();return 2===E&&(m%=100),r(m.toString(),E)},M:function(o,E,R,m){var _=o[R?"getUTCMonth":"getMonth"](),v=d[E];return v?m.getMonthNames(v,"format")[_]:r((_+1).toString(),Math.min(E,2))},L:function(o,E,R,m){var _=o[R?"getUTCMonth":"getMonth"](),v=d[E];return v?m.getMonthNames(v,"standalone")[_]:r((_+1).toString(),Math.min(E,2))},Q:function(o,E,R,m){var _=o[R?"getUTCMonth":"getMonth"](),v=Math.floor(_/3),h=d[E];return h?m.getQuarterNames(h)[v]:r((v+1).toString(),Math.min(E,2))},E:function(o,E,R,m){var _=o[R?"getUTCDay":"getDay"]();return m.getDayNames(d[E<3?3:E])[_]},a:function(o,E,R,m){var v=o[R?"getUTCHours":"getHours"]()<12?0:1;return m.getPeriodNames(d[E])[v]},d:function(o,E,R){return r(o[R?"getUTCDate":"getDate"]().toString(),Math.min(E,2))},H:function(o,E,R){return r(o[R?"getUTCHours":"getHours"]().toString(),Math.min(E,2))},h:function(o,E,R){return r((o[R?"getUTCHours":"getHours"]()%12||12).toString(),Math.min(E,2))},m:function(o,E,R){return r(o[R?"getUTCMinutes":"getMinutes"]().toString(),Math.min(E,2))},s:function(o,E,R){return r(o[R?"getUTCSeconds":"getSeconds"]().toString(),Math.min(E,2))},S:function(o,E,R){return r(o[R?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,E)},x:function(o,E,R){var m=R?0:o.getTimezoneOffset(),_=m>0?"-":"+",v=Math.abs(m),s=v%60,b=r(Math.floor(v/60).toString(),2),O=r(s.toString(),2);return _+b+(E>=3?":":"")+(E>1||s?O:"")},X:function(o,E,R){return R||!o.getTimezoneOffset()?"Z":L.x(o,E,R)},Z:function(o,E,R){return L.X(o,E>=5?3:2,R)}},j=function(o,E){return function(R){var m,_,v,b,h=0,s=!1,O="";if(!R)return null;if(!o)return R;var w="Z"===o[o.length-1]||"'Z'"===o.slice(-3);for(m=0;m<o.length;m++)_=L[v=o[m]],h++,(b=v===o[m+1])||(_&&!s&&(O+=_(R,h,w,E)),h=0),"'"!==v||b?(s||!_)&&(O+=v):s=!s,"'"===v&&b&&m++;return O}}},27336:(ei,rt,D)=>{"use strict";D.d(rt,{SQ:()=>Y,rt:()=>k,wu:()=>O});var r=D(5042),d=D(85978),L={3:"abbreviated",4:"wide",5:"narrow"},j=function(Q,se){return Q>2?Object.keys(L).map(function(ie){return["format","standalone"].map(function(ee){return se.getMonthNames(L[ie],ee).join("|")}).join("|")}).join("|"):2===Q?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},o={":":function(Q,se){var ie=Q>1?"{".concat(Q,"}"):"",ee=(0,r.Nt)(se.getTimeSeparator());return":"!==ee&&(ee="".concat(ee,"|:")),"".concat(ee).concat(ie)},y:function(Q){return 2===Q?"[0-9]{".concat(Q,"}"):"[0-9]+?"},M:j,L:j,Q:function(Q,se){return Q>2?se.getQuarterNames(L[Q],"format").join("|"):"0?[1-4]"},E:function(Q,se){return"\\D*"},a:function(Q,se){return se.getPeriodNames(L[Q<3?3:Q],"format").join("|")},d:function(Q){return 2===Q?"3[01]|[12][0-9]|0?[1-9]":"0??[1-9]|[12][0-9]|3[01]"},H:function(Q){return 2===Q?"2[0-3]|1[0-9]|0?[0-9]":"0??[0-9]|1[0-9]|2[0-3]"},h:function(Q){return 2===Q?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},m:function(Q){return 2===Q?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},s:function(Q){return 2===Q?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},S:function(Q){return"[0-9]{1,".concat(Q,"}")},w:function(Q){return 2===Q?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"}},E=Number,R=function(Q,se){return Q.map(ie=>ie.toLowerCase()).indexOf(se.toLowerCase())},m=function(Q,se,ie){return se>2?["format","standalone"].map(function(ee){return Object.keys(L).map(function(re){var ne=ie.getMonthNames(L[re],ee);return R(ne,Q)})}).reduce(function(ee,re){return ee.concat(re)}).filter(function(ee){return ee>=0})[0]:E(Q)-1},_={y:function(Q,se){var ie=E(Q);return 2===se?ie<30?2e3+ie:1900+ie:ie},M:m,L:m,Q:function(Q,se,ie){return se>2?ie.getQuarterNames(L[se],"format").indexOf(Q):E(Q)-1},E:function(Q,se,ie){var ee=ie.getDayNames(L[se<3?3:se],"format");return R(ee,Q)},a:function(Q,se,ie){var ee=ie.getPeriodNames(L[se<3?3:se],"format");return R(ee,Q)},d:E,H:E,h:E,m:E,s:E,S:function(Q,se){for(se=Math.max(se,3),Q=Q.slice(0,3);se<3;)Q+="0",se++;return E(Q)}},v=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(Q,se,ie){var ee=Q.getHours(),re=ie.h;void 0!==re&&re!==ee&&ee--,se||12!==ee?se&&12!==ee&&(ee+=12):ee=0,Q.setHours(ee)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},s=function(Q,se){var ie=Q[se];if(!ie)return 0;var ee=0;do{se++,ee++}while(Q[se]===ie);return ee},b=function(Q,se){for(var ie="",ee=0;ee<se;ee++)ie+=Q;return ie},O=function(Q,se){for(var re,ie="",ee="",ne=[],_e=function(){ee&&(ne.push("'".concat(ee,"'")),ie+="".concat((0,r.Nt)(ee),")"),ee="")},be=0;be<Q.length;be++){var oe=Q[be],we=o[oe];if("'"!==oe||(re=!re,"'"===Q[be-1]))if(we&&!re){var N=s(Q,be),G=b(oe,N);_e(),ne.push(G),ie+="(".concat(we(N,se),")"),be+=N-1}else ee||(ie+="("),ee+=oe}return _e(),f(ne)||d.v.warn("The following format may be parsed incorrectly: ".concat(Q,".")),{patterns:ne,regexp:new RegExp("^".concat(ie,"$"),"i")}},w=["d","H","h","m","s","w","M","L","Q"],f=function(Q){var se=re=>{if(!re)return!1;var ne=re[0];return["y","S"].includes(ne)||w.includes(ne)&&re.length<3},ie=!0,ee=0;return Q.every((re,ne,_e)=>{return se(re)&&("S"!==(be=re)[0]&&2!==be.length&&(ie=++ee<2),se(_e[ne+1])||(ee=0)),ie;var be})},k=function(){return h},Y=function(Q,se){var ie=O(Q,se);return function(ee){var re=ie.regexp.exec(ee);if(re){var ne=new Date,_e=new Date(ne.getFullYear(),0,1),be=function(Q){return Q.map(function(se){return"'"===se[0]?"":"H"===se[0]?"h":se[0]})}(ie.patterns),oe=function(Q){var se=Q.map(function(ie){return v.indexOf(ie)});return Math.max.apply(Math,se)}(be),me=function(Q){var se=Q.filter(function(ie){return v.indexOf(ie)<0});return v.concat(se)}(be),we={};return me.forEach(function(N,G){if(N&&!(G<v.length&&G>oe)){var W=be.indexOf(N);W>=0?function(Q,se,ie,ee,re){var ne=se[0],_e=h[ne],be=_[ne];if(_e&&be){var oe=be(ie,se.length,ee);re[se]=oe,Q[_e]?Q[_e](oe):_e(Q,oe,re)}}(_e,ie.patterns[W],re[W+1],se,we):function(Q,se,ie){var ee=h[se],ne=ie["g"+ee.substr(1)]();Q[ee](ne)}(_e,N,ne)}}),_e}return null}}},14360:(ei,rt,D)=>{"use strict";D.d(rt,{f:()=>I,g:()=>F});var r=D(22209),d=D(50018),L={thousandsSeparator:",",decimalSeparator:"."},j="'",o=15,E=2;function _(Y){return Y.toString().split("").reverse().join("")}function h(Y){return Y.replace(/'.+'/g,"")}function s(Y){if(!Y)return 0;var Q=h(Y);return Q.length-Q.replace(/[#]/g,"").length}function b(Y){if(!Y)return 0;var Q=h(Y);return Q.length-Q.replace(/[0]/g,"").length}function O(Y,Q,se){if(!Y)return"";for(Y.length>se&&(Y=Y.substr(0,se));Y.length>Q&&"0"===Y.slice(-1);)Y=Y.substr(0,Y.length-1);for(;Y.length<Q;)Y+="0";return Y}function f(Y,Q){return Y.split(j).map(function(se,ie){var ee=ie%2;return!se&&ee?j:ee?se:se.replace(/[,#0]+/,Q)}).join("")}function I(Y,Q){return Q=Q||L,function(se){if("number"!=typeof se||isNaN(se))return"";var ie=function m(Y){var Q=Y.split(";");return 1===Q.length&&Q.push("-"+Q[0]),Q}(Y),re=se>0||1/se==1/0,ne=ie[re?0:1],_e=function k(Y){for(var Q=!1,se=0;se<Y.length;se++)if("'"===Y[se]&&(Q=!Q),"."===Y[se]&&!Q)return se;return Y.length}(ne),be=[ne.substr(0,_e),ne.substr(_e+1)],oe=b(be[1]),me=oe+s(be[1]);(function v(Y){return-1!==Y.indexOf("%")&&!Y.match(/'[^']*%[^']*'/g)})(ne)&&(se=(0,r.T0)(se,E)),re||(se=-se);var we=b(be[0]),N=s(be[0])||Q.unlimitedIntegerDigits?void 0:we,G=Math.floor(se).toString().length,W=(0,r.df)(me,0,o-G),z=function R(Y){return Y.split(",").slice(1).map(function(Q){var se=0;return Q.split("").filter(function(ie,ee){return se+="'"===ie,!("#"!==ie&&"0"!==ie||se%2)}).length})}(be[0]).reverse(),X=(0,d.M)(se,W<0?0:W).split("."),q=O(_(X[0]),we,N),ye=O(X[1],oe,me);q=function w(Y,Q,se){if(!Q.length)return Y;for(var ie=[],ee=0;Y;){var re=Q[ee];if(!re)break;ie.push(Y.slice(0,re)),Y=Y.slice(re),ee<Q.length-1&&ee++}return ie.join(se)}(q,z,Q.thousandsSeparator);var xe=_(f(_(be[0]),q)),ge=me?f(be[1],ye):"";return xe+(ge.match(/\d/)?Q.decimalSeparator:"")+ge}}function x(Y,Q,se){var ie=(Q?.01:1)*parseFloat(Y)||0;return se?-ie:ie}function g(Y,Q,se,ie){var re,ne,_e,ee=Y;do{_e&&(re=ne.length===_e.length?"0":"1",Y=ie?re+Y:Y+re),ne=_e||Q(x(ee,se)),_e=Q(x(ee=ie?"1"+ee:ee+"1",se))}while(ne!==_e&&(ie?ne.length===_e.length:ne.length<=_e.length));if(ie&&_e.length>ne.length){var be=-1===Q(12345).indexOf("12345");do{Y="1"+Y}while(be&&x(Y,se)<1e5)}return Y}function C(Y,Q,se,ie){var ee=Q(x(Y,se,ie)),re=Y.split("."),be=Q(x(re[0]+".3"+re[1].slice(1),se,ie)).indexOf("3")-1;return ee=ee.replace(/(\d)\D(\d)/g,"$1,$2"),be>=0&&(ee=ee.slice(0,be)+"."+ee.slice(be+1)),ee=ee.replace(/1+/,"1").replace(/1/g,"#"),se||(ee=ee.replace(/%/g,"'%'")),ee}function F(Y){var Q=".",se=Y(1).indexOf("100")>=0;Q=g(Q,Y,se,!0);var ie=C(Q=g(Q,Y,se,!1),Y,se,!1),ee=C(Q,Y,se,!0);return ee==="-"+ie?ie:ie+";"+ee}},20736:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>h});var r=D(37041),d=D(87951),L=D(70370),j=D(48745),o=D(33437),R=(0,d.X)(!0,{},{en:{Yes:"Yes",No:"No",Cancel:"Cancel",Close:"Close",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-async":"Value is invalid","validation-async-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxDateRangeBox-invalidStartDateMessage":"Start value must be a date","dxDateRangeBox-invalidEndDateMessage":"End value must be a date","dxDateRangeBox-startDateOutOfRangeMessage":"Start date is out of range","dxDateRangeBox-endDateOutOfRangeMessage":"End date is out of range","dxDateRangeBox-startDateLabel":"Start Date","dxDateRangeBox-endDateLabel":"End Date","dxFileUploader-selectFile":"Select a file","dxFileUploader-dropFile":"or Drop a file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"KB","dxFileUploader-Mb":"MB","dxFileUploader-Gb":"GB","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadAbortedMessage":"Upload cancelled","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","dxDataGrid-emptyHeaderWithColumnChooserText":"Use {0} to display columns","dxDataGrid-emptyHeaderWithGroupPanelText":"Drag a column from the group panel here","dxDataGrid-emptyHeaderWithColumnChooserAndGroupPanelText":"Use {0} or drag a column from the group panel","dxDataGrid-emptyHeaderColumnChooserText":"column chooser","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-ariaSearchBox":"Search box","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-ariaNotSortedColumn":"Not sorted column","dxDataGrid-ariaSortedAscendingColumn":"Column sorted in ascending order","dxDataGrid-ariaSortedDescendingColumn":"Column sorted in descending order","dxDataGrid-ariaSortIndex":"Sort index {0}","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-exporting":"Exporting...","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows to {0}","dxDataGrid-exportAll":"Export all data to {0}","dxDataGrid-headerFilterLabel":"Filter options","dxDataGrid-headerFilterIndicatorLabel":"Show filter options for column '{0}'","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaAdaptiveCollapse":"Hide additional data","dxDataGrid-ariaAdaptiveExpand":"Display additional data","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaColumnHeader":"Column header","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaError":"Error","dxDataGrid-ariaRevertButton":"Press Escape to discard the changes","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaModifiedCell":"Modified","dxDataGrid-ariaDeletedCell":"Deleted","dxDataGrid-ariaEditableCell":"Editable","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaCollapsedRow":"Collapsed row","dxDataGrid-ariaExpandedRow":"Expanded row","dxDataGrid-ariaDataGrid":"Data grid with {0} rows and {1} columns","dxDataGrid-ariaSearchInGrid":"Search in the data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-ariaToolbar":"Data grid toolbar","dxDataGrid-ariaEditForm":"Edit form","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list with {0} rows and {1} columns","dxTreeList-ariaSearchInGrid":"Search in the tree list","dxTreeList-ariaToolbar":"Tree list toolbar","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPager-pageSize":"Items per page: {0}","dxPager-pageSizesAllText":"All","dxPager-page":"Page {0}","dxPager-prevPage":"Previous Page","dxPager-nextPage":"Next Page","dxPager-ariaLabel":"Page Navigation","dxPager-ariaPageSize":"Page size","dxPager-ariaPageNumber":"Page number","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceMinutely":"Every minute","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditTitle":"Edit Recurring Appointment","dxScheduler-confirmRecurrenceDeleteTitle":"Delete Recurring Appointment","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxCalendar-previousMonthButtonLabel":"Previous month","dxCalendar-previousYearButtonLabel":"Previous year","dxCalendar-previousDecadeButtonLabel":"Previous decade","dxCalendar-previousCenturyButtonLabel":"Previous century","dxCalendar-nextMonthButtonLabel":"Next month","dxCalendar-nextYearButtonLabel":"Next year","dxCalendar-nextDecadeButtonLabel":"Next decade","dxCalendar-nextCenturyButtonLabel":"Next century","dxCalendar-captionMonthLabel":"Month selection","dxCalendar-captionYearLabel":"Year selection","dxCalendar-captionDecadeLabel":"Decade selection","dxCalendar-captionCenturyLabel":"Century selection","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-dialogInsertTableRowsField":"Rows","dxHtmlEditor-dialogInsertTableColumnsField":"Columns","dxHtmlEditor-dialogInsertTableCaption":"Insert Table","dxHtmlEditor-dialogUpdateImageCaption":"Update Image","dxHtmlEditor-dialogImageUpdateButton":"Update","dxHtmlEditor-dialogImageAddButton":"Add","dxHtmlEditor-dialogImageSpecifyUrl":"From the Web","dxHtmlEditor-dialogImageSelectFile":"From This Device","dxHtmlEditor-dialogImageKeepAspectRatio":"Keep Aspect Ratio","dxHtmlEditor-dialogImageEncodeToBase64":"Encode to Base64","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxHtmlEditor-background":"Background Color","dxHtmlEditor-bold":"Bold","dxHtmlEditor-color":"Font Color","dxHtmlEditor-font":"Font","dxHtmlEditor-italic":"Italic","dxHtmlEditor-link":"Add Link","dxHtmlEditor-image":"Add Image","dxHtmlEditor-size":"Size","dxHtmlEditor-strike":"Strikethrough","dxHtmlEditor-subscript":"Subscript","dxHtmlEditor-superscript":"Superscript","dxHtmlEditor-underline":"Underline","dxHtmlEditor-blockquote":"Blockquote","dxHtmlEditor-header":"Header","dxHtmlEditor-increaseIndent":"Increase Indent","dxHtmlEditor-decreaseIndent":"Decrease Indent","dxHtmlEditor-orderedList":"Ordered List","dxHtmlEditor-bulletList":"Bullet List","dxHtmlEditor-alignLeft":"Align Left","dxHtmlEditor-alignCenter":"Align Center","dxHtmlEditor-alignRight":"Align Right","dxHtmlEditor-alignJustify":"Align Justify","dxHtmlEditor-codeBlock":"Code Block","dxHtmlEditor-variable":"Add Variable","dxHtmlEditor-undo":"Undo","dxHtmlEditor-redo":"Redo","dxHtmlEditor-clear":"Clear Formatting","dxHtmlEditor-insertTable":"Insert Table","dxHtmlEditor-insertHeaderRow":"Insert Header Row","dxHtmlEditor-insertRowAbove":"Insert Row Above","dxHtmlEditor-insertRowBelow":"Insert Row Below","dxHtmlEditor-insertColumnLeft":"Insert Column Left","dxHtmlEditor-insertColumnRight":"Insert Column Right","dxHtmlEditor-deleteColumn":"Delete Column","dxHtmlEditor-deleteRow":"Delete Row","dxHtmlEditor-deleteTable":"Delete Table","dxHtmlEditor-cellProperties":"Cell Properties","dxHtmlEditor-tableProperties":"Table Properties","dxHtmlEditor-insert":"Insert","dxHtmlEditor-delete":"Delete","dxHtmlEditor-border":"Border","dxHtmlEditor-style":"Style","dxHtmlEditor-width":"Width","dxHtmlEditor-height":"Height","dxHtmlEditor-borderColor":"Color","dxHtmlEditor-tableBackground":"Background","dxHtmlEditor-dimensions":"Dimensions","dxHtmlEditor-alignment":"Alignment","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertical","dxHtmlEditor-paddingVertical":"Vertical Padding","dxHtmlEditor-paddingHorizontal":"Horizontal Padding","dxHtmlEditor-pixels":"Pixels","dxHtmlEditor-list":"List","dxHtmlEditor-ordered":"Ordered","dxHtmlEditor-bullet":"Bullet","dxHtmlEditor-align":"Align","dxHtmlEditor-center":"Center","dxHtmlEditor-left":"Left","dxHtmlEditor-right":"Right","dxHtmlEditor-indent":"Indent","dxHtmlEditor-justify":"Justify","dxHtmlEditor-borderStyleNone":"none","dxHtmlEditor-borderStyleHidden":"hidden","dxHtmlEditor-borderStyleDotted":"dotted","dxHtmlEditor-borderStyleDashed":"dashed","dxHtmlEditor-borderStyleSolid":"solid","dxHtmlEditor-borderStyleDouble":"double","dxHtmlEditor-borderStyleGroove":"groove","dxHtmlEditor-borderStyleRidge":"ridge","dxHtmlEditor-borderStyleInset":"inset","dxHtmlEditor-borderStyleOutset":"outset","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access Denied. Operation could not be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-errorDirectoryOpenFailed":"The directory cannot be opened","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move to","dxFileManager-commandCopy":"Copy to","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClearSelection":"Clear selection","dxFileManager-commandShowNavPane":"Toggle navigation pane","dxFileManager-dialogDirectoryChooserMoveTitle":"Move to","dxFileManager-dialogDirectoryChooserMoveButtonText":"Move","dxFileManager-dialogDirectoryChooserCopyTitle":"Copy to","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copy","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-dialogDeleteItemTitle":"Delete","dxFileManager-dialogDeleteItemButtonText":"Delete","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Are you sure you want to delete {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Are you sure you want to delete {0} items?","dxFileManager-dialogButtonCancel":"Cancel","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory was not created","dxFileManager-editingCreateCommonErrorMessage":"Directory was not created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item was not renamed","dxFileManager-editingRenameCommonErrorMessage":"Item was not renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item was not deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items were not deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items were not deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item was not moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items were not moved","dxFileManager-editingMoveCommonErrorMessage":"Some items were not moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item was not copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items were not copied","dxFileManager-editingCopyCommonErrorMessage":"Some items were not copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item was not uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items were not uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-editingDownloadSingleItemErrorMessage":"Item was not downloaded","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} items were not downloaded","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Org Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Font Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandLineWidth":"Line Width","dxDiagram-commandLineStyle":"Line Style","dxDiagram-commandLineStyleSolid":"Solid","dxDiagram-commandLineStyleDotted":"Dotted","dxDiagram-commandLineStyleDashed":"Dashed","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandFitToContent":"Fit to Content","dxDiagram-commandFitToWidth":"Fit to Width","dxDiagram-commandAutoZoomByContent":"Auto Zoom by Content","dxDiagram-commandAutoZoomByWidth":"Auto Zoom by Width","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-commandLayoutLeftToRight":"Left-to-right","dxDiagram-commandLayoutRightToLeft":"Right-to-left","dxDiagram-commandLayoutTopToBottom":"Top-to-bottom","dxDiagram-commandLayoutBottomToTop":"Bottom-to-top","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop a file here","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Properties","dxDiagram-uiSettings":"Settings","dxDiagram-uiShowToolbox":"Show Toolbox","dxDiagram-uiSearch":"Search","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Tree","dxDiagram-uiLayoutLayered":"Layered","dxDiagram-uiDiagram":"Diagram","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Object","dxDiagram-uiConnector":"Connector","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Cross","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamond","dxDiagram-shapeHeart":"Heart","dxDiagram-shapePentagon":"Pentagon","dxDiagram-shapeHexagon":"Hexagon","dxDiagram-shapeOctagon":"Octagon","dxDiagram-shapeStar":"Star","dxDiagram-shapeArrowLeft":"Left Arrow","dxDiagram-shapeArrowUp":"Up Arrow","dxDiagram-shapeArrowRight":"Right Arrow","dxDiagram-shapeArrowDown":"Down Arrow","dxDiagram-shapeArrowUpDown":"Up Down Arrow","dxDiagram-shapeArrowLeftRight":"Left Right Arrow","dxDiagram-shapeProcess":"Process","dxDiagram-shapeDecision":"Decision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Predefined Process","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Multiple Documents","dxDiagram-shapeManualInput":"Manual Input","dxDiagram-shapePreparation":"Preparation","dxDiagram-shapeData":"Data","dxDiagram-shapeDatabase":"Database","dxDiagram-shapeHardDisk":"Hard Disk","dxDiagram-shapeInternalStorage":"Internal Storage","dxDiagram-shapePaperTape":"Paper Tape","dxDiagram-shapeManualOperation":"Manual Operation","dxDiagram-shapeDelay":"Delay","dxDiagram-shapeStoredData":"Stored Data","dxDiagram-shapeDisplay":"Display","dxDiagram-shapeMerge":"Merge","dxDiagram-shapeConnector":"Connector","dxDiagram-shapeOr":"Or","dxDiagram-shapeSummingJunction":"Summing Junction","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertical Container","dxDiagram-shapeHorizontalContainer":"Horizontal Container","dxDiagram-shapeCardDefaultText":"Person's Name","dxDiagram-shapeCardWithImageOnLeft":"Card with Image on the Left","dxDiagram-shapeCardWithImageOnTop":"Card with Image on the Top","dxDiagram-shapeCardWithImageOnRight":"Card with Image on the Right","dxGantt-dialogTitle":"Title","dxGantt-dialogStartTitle":"Start","dxGantt-dialogEndTitle":"End","dxGantt-dialogProgressTitle":"Progress","dxGantt-dialogResourcesTitle":"Resources","dxGantt-dialogResourceManagerTitle":"Resource Manager","dxGantt-dialogTaskDetailsTitle":"Task Details","dxGantt-dialogEditResourceListHint":"Edit Resource List","dxGantt-dialogEditNoResources":"No resources","dxGantt-dialogButtonAdd":"Add","dxGantt-contextMenuNewTask":"New Task","dxGantt-contextMenuNewSubtask":"New Subtask","dxGantt-contextMenuDeleteTask":"Delete Task","dxGantt-contextMenuDeleteDependency":"Delete Dependency","dxGantt-dialogTaskDeleteConfirmation":"Deleting a task also deletes all its dependencies and subtasks. Are you sure you want to delete this task?","dxGantt-dialogDependencyDeleteConfirmation":"Are you sure you want to delete the dependency from the task?","dxGantt-dialogResourcesDeleteConfirmation":"Deleting a resource also deletes it from tasks to which this resource is assigned. Are you sure you want to delete these resources? Resources: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. How would you like to proceed?","dxGantt-dialogCancelOperationMessage":"Cancel the operation","dxGantt-dialogDeleteDependencyMessage":"Delete the dependency","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Move the task and keep the dependency","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. How would you like to proceed?","dxGantt-dialogDeleteDependenciesMessage":"Delete the dependency relations","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Move the task and keep the dependencies","dxGantt-undo":"Undo","dxGantt-redo":"Redo","dxGantt-expandAll":"Expand All","dxGantt-collapseAll":"Collapse All","dxGantt-addNewTask":"Add New Task","dxGantt-deleteSelectedTask":"Delete Selected Task","dxGantt-zoomIn":"Zoom In","dxGantt-zoomOut":"Zoom Out","dxGantt-fullScreen":"Full Screen","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Sort Ascending","dxGantt-sortingDescendingText":"Sort Descending","dxGantt-sortingClearText":"Clear Sorting","dxGantt-showResources":"Show Resources","dxGantt-showDependencies":"Show Dependencies","dxGantt-dialogStartDateValidation":"Start date must be after {0}","dxGantt-dialogEndDateValidation":"End date must be after {0}","dxGallery-itemName":"Gallery item","dxMultiView-elementAriaRoleDescription":"MultiView","dxMultiView-elementAriaLabel":"Use the arrow keys or swipe to navigate between views","dxMultiView-itemAriaRoleDescription":"View","dxMultiView-itemAriaLabel":"{0} of {1}"}}),_={};const h=(0,r.A)({engine:function(){return"base"},_dictionary:R,load:function(s){(0,d.X)(!0,this._dictionary,s)},_localizablePrefix:"@",setup:function(s){this._localizablePrefix=s},localizeString:function(s){var b=this,O=new RegExp("(^|[^a-zA-Z_0-9"+b._localizablePrefix+"-]+)("+b._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),w=b._localizablePrefix+b._localizablePrefix;return s.replace(O,(f,k,I,x)=>{var C,g=b._localizablePrefix+x;return I!==w&&(C=b.format(x)),C||(_[x]=(0,j.I3)(x)),k+(C||g)})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(s){return s?_:(0,d.X)({},_,this.getMessagesByLocales()[o.A.locale()])},getFormatter:function(s){return this._getFormatterBase(s)||this._getFormatterBase(s,"en")},_getFormatterBase:function(s,b){var O=o.A.getValueByClosestLocale(w=>((s,b)=>{var O;return s[b]||b?.toLowerCase&&(null===(O=Object.entries(s).find(w=>{var[f]=w;return f.toLowerCase()===b.toLowerCase()}))||void 0===O?void 0:O[1])||{}})(this._dictionary,w)[s]);if(O)return function(){var w=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return w.unshift(O),L.GP.apply(this,w)}},format:function(s){var b=this.getFormatter(s),O=Array.prototype.slice.call(arguments,1);return b&&b.apply(this,O)||""}})},15655:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>ee});var r=D(37041),d=D(5042),L=D(12101),j=D(72463),o=D(14360),E=D(83771),R=D(87550),m=D(50018),_=D(21364),v=D(33437);const s={af:"\xa4#,##0.00;(\xa4#,##0.00)","af-NA":"\xa4#,##0.00;(\xa4#,##0.00)",agq:"#,##0.00\xa4",ak:"\xa4#,##0.00",am:"\xa4#,##0.00;(\xa4#,##0.00)",ar:"\xa4#,##0.00;(\xa4#,##0.00)","ar-AE":"\xa4#,##0.00;(\xa4#,##0.00)","ar-BH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DZ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EG":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-ER":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IL":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IQ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-JO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KW":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LB":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MR":"\xa4#,##0.00;(\xa4#,##0.00)","ar-OM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-PS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-QA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TN":"\xa4#,##0.00;(\xa4#,##0.00)","ar-YE":"\xa4#,##0.00;(\xa4#,##0.00)",as:"\xa4\xa0#,##,##0.00",asa:"#,##0.00\xa0\xa4",ast:"#,##0.00\xa0\xa4",az:"#,##0.00\xa0\xa4","az-Cyrl":"#,##0.00\xa0\xa4","az-Latn":"#,##0.00\xa0\xa4",bas:"#,##0.00\xa0\xa4",be:"#,##0.00\xa0\xa4","be-tarask":"#,##0.00\xa0\xa4",bem:"\xa4#,##0.00;(\xa4#,##0.00)",bez:"#,##0.00\xa4",bg:"0.00\xa0\xa4;(0.00\xa0\xa4)",bm:"\xa4#,##0.00;(\xa4#,##0.00)",bn:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","bn-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",bo:"\xa4\xa0#,##0.00","bo-IN":"\xa4\xa0#,##0.00",br:"#,##0.00\xa0\xa4",brx:"\xa4\xa0#,##,##0.00",bs:"#,##0.00\xa0\xa4","bs-Cyrl":"#,##0.00\xa0\xa4","bs-Latn":"#,##0.00\xa0\xa4",ca:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-AD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-ES-valencia":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-FR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-IT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ccp:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","ccp-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",ce:"#,##0.00\xa0\xa4",ceb:"\xa4#,##0.00;(\xa4#,##0.00)",cgg:"\xa4#,##0.00",chr:"\xa4#,##0.00;(\xa4#,##0.00)",ckb:"\xa4\xa0#,##0.00","ckb-IR":"\xa4\xa0#,##0.00",cs:"#,##0.00\xa0\xa4",cy:"\xa4#,##0.00;(\xa4#,##0.00)",da:"#,##0.00\xa0\xa4","da-GL":"#,##0.00\xa0\xa4",dav:"\xa4#,##0.00;(\xa4#,##0.00)",de:"#,##0.00\xa0\xa4","de-AT":"#,##0.00\xa0\xa4","de-BE":"#,##0.00\xa0\xa4","de-CH":"#,##0.00\xa0\xa4","de-IT":"#,##0.00\xa0\xa4","de-LI":"#,##0.00\xa0\xa4","de-LU":"#,##0.00\xa0\xa4",dje:"#,##0.00\xa4",doi:"\xa4#,##0.00",dsb:"#,##0.00\xa0\xa4",dua:"#,##0.00\xa0\xa4",dyo:"#,##0.00\xa0\xa4",dz:"\xa4#,##,##0.00",ebu:"\xa4#,##0.00;(\xa4#,##0.00)",ee:"\xa4#,##0.00;(\xa4#,##0.00)","ee-TG":"\xa4#,##0.00;(\xa4#,##0.00)",el:"#,##0.00\xa0\xa4","el-CY":"#,##0.00\xa0\xa4",en:"\xa4#,##0.00;(\xa4#,##0.00)","en-001":"\xa4#,##0.00;(\xa4#,##0.00)","en-150":"#,##0.00\xa0\xa4","en-AE":"\xa4#,##0.00;(\xa4#,##0.00)","en-AG":"\xa4#,##0.00;(\xa4#,##0.00)","en-AI":"\xa4#,##0.00;(\xa4#,##0.00)","en-AS":"\xa4#,##0.00;(\xa4#,##0.00)","en-AT":"\xa4\xa0#,##0.00","en-AU":"\xa4#,##0.00;(\xa4#,##0.00)","en-BB":"\xa4#,##0.00;(\xa4#,##0.00)","en-BE":"#,##0.00\xa0\xa4","en-BI":"\xa4#,##0.00;(\xa4#,##0.00)","en-BM":"\xa4#,##0.00;(\xa4#,##0.00)","en-BS":"\xa4#,##0.00;(\xa4#,##0.00)","en-BW":"\xa4#,##0.00;(\xa4#,##0.00)","en-BZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-CA":"\xa4#,##0.00;(\xa4#,##0.00)","en-CC":"\xa4#,##0.00;(\xa4#,##0.00)","en-CH":"\xa4\xa0#,##0.00;\xa4-#,##0.00","en-CK":"\xa4#,##0.00;(\xa4#,##0.00)","en-CM":"\xa4#,##0.00;(\xa4#,##0.00)","en-CX":"\xa4#,##0.00;(\xa4#,##0.00)","en-CY":"\xa4#,##0.00;(\xa4#,##0.00)","en-DE":"#,##0.00\xa0\xa4","en-DG":"\xa4#,##0.00;(\xa4#,##0.00)","en-DK":"#,##0.00\xa0\xa4","en-DM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ER":"\xa4#,##0.00;(\xa4#,##0.00)","en-FI":"#,##0.00\xa0\xa4","en-FJ":"\xa4#,##0.00;(\xa4#,##0.00)","en-FK":"\xa4#,##0.00;(\xa4#,##0.00)","en-FM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GB":"\xa4#,##0.00;(\xa4#,##0.00)","en-GD":"\xa4#,##0.00;(\xa4#,##0.00)","en-GG":"\xa4#,##0.00;(\xa4#,##0.00)","en-GH":"\xa4#,##0.00;(\xa4#,##0.00)","en-GI":"\xa4#,##0.00;(\xa4#,##0.00)","en-GM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GU":"\xa4#,##0.00;(\xa4#,##0.00)","en-GY":"\xa4#,##0.00;(\xa4#,##0.00)","en-HK":"\xa4#,##0.00;(\xa4#,##0.00)","en-IE":"\xa4#,##0.00;(\xa4#,##0.00)","en-IL":"\xa4#,##0.00;(\xa4#,##0.00)","en-IM":"\xa4#,##0.00;(\xa4#,##0.00)","en-IN":"\xa4#,##0.00;(\xa4#,##0.00)","en-IO":"\xa4#,##0.00;(\xa4#,##0.00)","en-JE":"\xa4#,##0.00;(\xa4#,##0.00)","en-JM":"\xa4#,##0.00;(\xa4#,##0.00)","en-KE":"\xa4#,##0.00;(\xa4#,##0.00)","en-KI":"\xa4#,##0.00;(\xa4#,##0.00)","en-KN":"\xa4#,##0.00;(\xa4#,##0.00)","en-KY":"\xa4#,##0.00;(\xa4#,##0.00)","en-LC":"\xa4#,##0.00;(\xa4#,##0.00)","en-LR":"\xa4#,##0.00;(\xa4#,##0.00)","en-LS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MG":"\xa4#,##0.00;(\xa4#,##0.00)","en-MH":"\xa4#,##0.00;(\xa4#,##0.00)","en-MO":"\xa4#,##0.00;(\xa4#,##0.00)","en-MP":"\xa4#,##0.00;(\xa4#,##0.00)","en-MS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MT":"\xa4#,##0.00;(\xa4#,##0.00)","en-MU":"\xa4#,##0.00;(\xa4#,##0.00)","en-MV":"\xa4\xa0#,##0.00","en-MW":"\xa4#,##0.00;(\xa4#,##0.00)","en-MY":"\xa4#,##0.00;(\xa4#,##0.00)","en-NA":"\xa4#,##0.00;(\xa4#,##0.00)","en-NF":"\xa4#,##0.00;(\xa4#,##0.00)","en-NG":"\xa4#,##0.00;(\xa4#,##0.00)","en-NL":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","en-NR":"\xa4#,##0.00;(\xa4#,##0.00)","en-NU":"\xa4#,##0.00;(\xa4#,##0.00)","en-NZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-PG":"\xa4#,##0.00;(\xa4#,##0.00)","en-PH":"\xa4#,##0.00;(\xa4#,##0.00)","en-PK":"\xa4#,##0.00;(\xa4#,##0.00)","en-PN":"\xa4#,##0.00;(\xa4#,##0.00)","en-PR":"\xa4#,##0.00;(\xa4#,##0.00)","en-PW":"\xa4#,##0.00;(\xa4#,##0.00)","en-RW":"\xa4#,##0.00;(\xa4#,##0.00)","en-SB":"\xa4#,##0.00;(\xa4#,##0.00)","en-SC":"\xa4#,##0.00;(\xa4#,##0.00)","en-SD":"\xa4#,##0.00;(\xa4#,##0.00)","en-SE":"#,##0.00\xa0\xa4","en-SG":"\xa4#,##0.00;(\xa4#,##0.00)","en-SH":"\xa4#,##0.00;(\xa4#,##0.00)","en-SI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","en-SL":"\xa4#,##0.00;(\xa4#,##0.00)","en-SS":"\xa4#,##0.00;(\xa4#,##0.00)","en-SX":"\xa4#,##0.00;(\xa4#,##0.00)","en-SZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-TC":"\xa4#,##0.00;(\xa4#,##0.00)","en-TK":"\xa4#,##0.00;(\xa4#,##0.00)","en-TO":"\xa4#,##0.00;(\xa4#,##0.00)","en-TT":"\xa4#,##0.00;(\xa4#,##0.00)","en-TV":"\xa4#,##0.00;(\xa4#,##0.00)","en-TZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-UG":"\xa4#,##0.00;(\xa4#,##0.00)","en-UM":"\xa4#,##0.00;(\xa4#,##0.00)","en-VC":"\xa4#,##0.00;(\xa4#,##0.00)","en-VG":"\xa4#,##0.00;(\xa4#,##0.00)","en-VI":"\xa4#,##0.00;(\xa4#,##0.00)","en-VU":"\xa4#,##0.00;(\xa4#,##0.00)","en-WS":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZA":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZW":"\xa4#,##0.00;(\xa4#,##0.00)",eo:"\xa4\xa0#,##0.00",es:"#,##0.00\xa0\xa4","es-419":"\xa4#,##0.00","es-AR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-BO":"\xa4#,##0.00","es-BR":"\xa4#,##0.00","es-BZ":"\xa4#,##0.00","es-CL":"\xa4#,##0.00","es-CO":"\xa4#,##0.00","es-CR":"\xa4#,##0.00","es-CU":"\xa4#,##0.00","es-DO":"\xa4#,##0.00;(\xa4#,##0.00)","es-EA":"#,##0.00\xa0\xa4","es-EC":"\xa4#,##0.00","es-GQ":"#,##0.00\xa0\xa4","es-GT":"\xa4#,##0.00","es-HN":"\xa4#,##0.00","es-IC":"#,##0.00\xa0\xa4","es-MX":"\xa4#,##0.00","es-NI":"\xa4#,##0.00","es-PA":"\xa4#,##0.00","es-PE":"\xa4#,##0.00","es-PH":"#,##0.00\xa0\xa4","es-PR":"\xa4#,##0.00","es-PY":"\xa4#,##0.00","es-SV":"\xa4#,##0.00","es-US":"\xa4#,##0.00","es-UY":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-VE":"\xa4#,##0.00",et:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",eu:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ewo:"#,##0.00\xa0\xa4",fa:"\u200e\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)","fa-AF":"\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)",ff:"#,##0.00\xa0\xa4","ff-Adlm":"\xa4\xa0#,##0.00","ff-Adlm-BF":"\xa4\xa0#,##0.00","ff-Adlm-CM":"\xa4\xa0#,##0.00","ff-Adlm-GH":"\xa4\xa0#,##0.00","ff-Adlm-GM":"\xa4\xa0#,##0.00","ff-Adlm-GW":"\xa4\xa0#,##0.00","ff-Adlm-LR":"\xa4\xa0#,##0.00","ff-Adlm-MR":"\xa4\xa0#,##0.00","ff-Adlm-NE":"\xa4\xa0#,##0.00","ff-Adlm-NG":"\xa4\xa0#,##0.00","ff-Adlm-SL":"\xa4\xa0#,##0.00","ff-Adlm-SN":"\xa4\xa0#,##0.00","ff-Latn":"#,##0.00\xa0\xa4","ff-Latn-BF":"#,##0.00\xa0\xa4","ff-Latn-CM":"#,##0.00\xa0\xa4","ff-Latn-GH":"#,##0.00\xa0\xa4","ff-Latn-GM":"#,##0.00\xa0\xa4","ff-Latn-GN":"#,##0.00\xa0\xa4","ff-Latn-GW":"#,##0.00\xa0\xa4","ff-Latn-LR":"#,##0.00\xa0\xa4","ff-Latn-MR":"#,##0.00\xa0\xa4","ff-Latn-NE":"#,##0.00\xa0\xa4","ff-Latn-NG":"#,##0.00\xa0\xa4","ff-Latn-SL":"#,##0.00\xa0\xa4",fi:"#,##0.00\xa0\xa4",fil:"\xa4#,##0.00;(\xa4#,##0.00)",fo:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fo-DK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GP":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-HT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-KM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-ML":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SY":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-VU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-WF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-YT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fur:"\xa4\xa0#,##0.00",fy:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",ga:"\xa4#,##0.00;(\xa4#,##0.00)","ga-GB":"\xa4#,##0.00;(\xa4#,##0.00)",gd:"\xa4#,##0.00;(\xa4#,##0.00)",gl:"#,##0.00\xa0\xa4",gsw:"#,##0.00\xa0\xa4","gsw-FR":"#,##0.00\xa0\xa4","gsw-LI":"#,##0.00\xa0\xa4",gu:"\xa4#,##,##0.00;(\xa4#,##,##0.00)",guz:"\xa4#,##0.00;(\xa4#,##0.00)",gv:"\xa4#,##0.00",ha:"\xa4\xa0#,##0.00","ha-GH":"\xa4\xa0#,##0.00","ha-NE":"\xa4\xa0#,##0.00",haw:"\xa4#,##0.00;(\xa4#,##0.00)",he:"#,##0.00\xa0\xa4",hi:"\xa4#,##,##0.00","hi-Latn":"\xa4#,##,##0.00",hr:"#,##0.00\xa0\xa4","hr-BA":"#,##0.00\xa0\xa4",hsb:"#,##0.00\xa0\xa4",hu:"#,##0.00\xa0\xa4",hy:"#,##0.00\xa0\xa4",ia:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",id:"\xa4#,##0.00",ig:"\xa4#,##0.00;(\xa4#,##0.00)",ii:"\xa4\xa0#,##0.00",is:"#,##0.00\xa0\xa4",it:"#,##0.00\xa0\xa4","it-CH":"#,##0.00\xa0\xa4","it-SM":"#,##0.00\xa0\xa4","it-VA":"#,##0.00\xa0\xa4",ja:"\xa4#,##0.00;(\xa4#,##0.00)",jgo:"\xa4\xa0#,##0.00",jmc:"\xa4#,##0.00",jv:"\xa4\xa0#,##0.00",ka:"#,##0.00\xa0\xa4",kab:"#,##0.00\xa4",kam:"\xa4#,##0.00;(\xa4#,##0.00)",kde:"\xa4#,##0.00;(\xa4#,##0.00)",kea:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kgp:"\xa4\xa0#,##0.00",khq:"#,##0.00\xa4",ki:"\xa4#,##0.00;(\xa4#,##0.00)",kk:"#,##0.00\xa0\xa4",kkj:"\xa4\xa0#,##0.00",kl:"\xa4#,##0.00;\xa4-#,##0.00",kln:"\xa4#,##0.00;(\xa4#,##0.00)",km:"#,##0.00\xa4;(#,##0.00\xa4)",kn:"\xa4#,##0.00;(\xa4#,##0.00)",ko:"\xa4#,##0.00;(\xa4#,##0.00)","ko-KP":"\xa4#,##0.00;(\xa4#,##0.00)",kok:"\xa4#,##0.00;(\xa4#,##0.00)",ks:"\xa4#,##0.00","ks-Arab":"\xa4#,##0.00","ks-Deva":"\xa4\xa0#,##0.00",ksb:"#,##0.00\xa4",ksf:"#,##0.00\xa0\xa4",ksh:"#,##0.00\xa0\xa4",ku:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kw:"\xa4#,##0.00",ky:"#,##0.00\xa0\xa4",lag:"\xa4\xa0#,##0.00",lb:"#,##0.00\xa0\xa4",lg:"#,##0.00\xa4",lkt:"\xa4\xa0#,##0.00",ln:"#,##0.00\xa0\xa4","ln-AO":"#,##0.00\xa0\xa4","ln-CF":"#,##0.00\xa0\xa4","ln-CG":"#,##0.00\xa0\xa4",lo:"\xa4#,##0.00;\xa4-#,##0.00",lrc:"\xa4\xa0#,##0.00","lrc-IQ":"\xa4\xa0#,##0.00",lt:"#,##0.00\xa0\xa4",lu:"#,##0.00\xa4",luo:"#,##0.00\xa4",luy:"\xa4#,##0.00;\xa4-\xa0#,##0.00",lv:"#,##0.00\xa0\xa4",mai:"\xa4\xa0#,##0.00",mas:"\xa4#,##0.00;(\xa4#,##0.00)","mas-TZ":"\xa4#,##0.00;(\xa4#,##0.00)",mer:"\xa4#,##0.00;(\xa4#,##0.00)",mfe:"\xa4\xa0#,##0.00",mg:"\xa4#,##0.00",mgh:"\xa4\xa0#,##0.00",mgo:"\xa4\xa0#,##0.00",mi:"\xa4\xa0#,##0.00",mk:"#,##0.00\xa0\xa4",ml:"\xa4#,##0.00;(\xa4#,##0.00)",mn:"\xa4\xa0#,##0.00",mni:"\xa4\xa0#,##0.00","mni-Beng":"\xa4\xa0#,##0.00",mr:"\xa4#,##0.00;(\xa4#,##0.00)",ms:"\xa4#,##0.00;(\xa4#,##0.00)","ms-BN":"\xa4#,##0.00;(\xa4#,##0.00)","ms-ID":"\xa4#,##0.00","ms-SG":"\xa4#,##0.00;(\xa4#,##0.00)",mt:"\xa4#,##0.00",mua:"\xa4#,##0.00;(\xa4#,##0.00)",my:"\xa4\xa0#,##0.00",mzn:"\xa4\xa0#,##0.00",naq:"\xa4#,##0.00",nb:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nb-SJ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nd:"\xa4#,##0.00;(\xa4#,##0.00)",nds:"\xa4\xa0#,##0.00","nds-NL":"\xa4\xa0#,##0.00",ne:"\xa4\xa0#,##,##0.00","ne-IN":"\xa4\xa0#,##,##0.00",nl:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-AW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BE":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BQ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-CW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SX":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nmg:"#,##0.00\xa0\xa4",nn:"#,##0.00\xa0\xa4",nnh:"\xa4\xa0#,##0.00",no:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nus:"\xa4#,##0.00;(\xa4#,##0.00)",nyn:"\xa4#,##0.00",om:"\xa4#,##0.00","om-KE":"\xa4#,##0.00",or:"\xa4#,##0.00;(\xa4#,##0.00)",os:"\xa4\xa0#,##0.00","os-RU":"\xa4\xa0#,##0.00",pa:"\xa4\xa0#,##0.00","pa-Arab":"\xa4\xa0#,##0.00","pa-Guru":"\xa4\xa0#,##0.00",pcm:"\xa4#,##0.00",pl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ps:"\xa4#,##0.00;(\xa4#,##0.00)","ps-PK":"\xa4#,##0.00;(\xa4#,##0.00)",pt:"\xa4\xa0#,##0.00","pt-AO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CV":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-PT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-ST":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-TL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",qu:"\xa4\xa0#,##0.00","qu-BO":"\xa4\xa0#,##0.00","qu-EC":"\xa4\xa0#,##0.00",rm:"#,##0.00\xa0\xa4",rn:"#,##0.00\xa4",ro:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ro-MD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",rof:"\xa4#,##0.00",ru:"#,##0.00\xa0\xa4","ru-BY":"#,##0.00\xa0\xa4","ru-KG":"#,##0.00\xa0\xa4","ru-KZ":"#,##0.00\xa0\xa4","ru-MD":"#,##0.00\xa0\xa4","ru-UA":"#,##0.00\xa0\xa4",rw:"\xa4\xa0#,##0.00",rwk:"#,##0.00\xa4",sa:"\xa4\xa0#,##0.00",sah:"#,##0.00\xa0\xa4",saq:"\xa4#,##0.00;(\xa4#,##0.00)",sat:"\xa4\xa0#,##0.00","sat-Olck":"\xa4\xa0#,##0.00",sbp:"#,##0.00\xa4",sc:"#,##0.00\xa0\xa4",sd:"\xa4\xa0#,##0.00","sd-Arab":"\xa4\xa0#,##0.00","sd-Deva":"\xa4\xa0#,##0.00",se:"#,##0.00\xa0\xa4","se-FI":"#,##0.00\xa0\xa4","se-SE":"#,##0.00\xa0\xa4",seh:"#,##0.00\xa4",ses:"#,##0.00\xa4",sg:"\xa4#,##0.00;\xa4-#,##0.00",shi:"#,##0.00\xa4","shi-Latn":"#,##0.00\xa4","shi-Tfng":"#,##0.00\xa4",si:"\xa4#,##0.00;(\xa4#,##0.00)",sk:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",smn:"#,##0.00\xa0\xa4",sn:"\xa4#,##0.00;(\xa4#,##0.00)",so:"\xa4#,##0.00;(\xa4#,##0.00)","so-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","so-ET":"\xa4#,##0.00;(\xa4#,##0.00)","so-KE":"\xa4#,##0.00;(\xa4#,##0.00)",sq:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-MK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",su:"\xa4#,##0.00","su-Latn":"\xa4#,##0.00",sv:"#,##0.00\xa0\xa4","sv-AX":"#,##0.00\xa0\xa4","sv-FI":"#,##0.00\xa0\xa4",sw:"\xa4\xa0#,##0.00","sw-CD":"\xa4\xa0#,##0.00","sw-KE":"\xa4\xa0#,##0.00","sw-UG":"\xa4\xa0#,##0.00",ta:"\xa4#,##0.00;(\xa4#,##0.00)","ta-LK":"\xa4#,##0.00;(\xa4#,##0.00)","ta-MY":"\xa4#,##0.00;(\xa4#,##0.00)","ta-SG":"\xa4#,##0.00;(\xa4#,##0.00)",te:"\xa4#,##0.00;(\xa4#,##0.00)",teo:"\xa4#,##0.00;(\xa4#,##0.00)","teo-KE":"\xa4#,##0.00;(\xa4#,##0.00)",tg:"#,##0.00\xa0\xa4",th:"\xa4#,##0.00;(\xa4#,##0.00)",ti:"\xa4#,##0.00","ti-ER":"\xa4#,##0.00",tk:"#,##0.00\xa0\xa4",to:"\xa4\xa0#,##0.00",tr:"\xa4#,##0.00;(\xa4#,##0.00)","tr-CY":"\xa4#,##0.00;(\xa4#,##0.00)",tt:"#,##0.00\xa0\xa4",twq:"#,##0.00\xa4",tzm:"#,##0.00\xa0\xa4",ug:"\xa4#,##0.00;(\xa4#,##0.00)",uk:"#,##0.00\xa0\xa4",und:"\xa4\xa0#,##0.00",ur:"\xa4#,##0.00;(\xa4#,##0.00)","ur-IN":"\xa4#,##0.00;(\xa4#,##0.00)",uz:"#,##0.00\xa0\xa4","uz-Arab":"\xa4\xa0#,##0.00","uz-Cyrl":"#,##0.00\xa0\xa4","uz-Latn":"#,##0.00\xa0\xa4",vai:"\xa4#,##0.00;(\xa4#,##0.00)","vai-Latn":"\xa4#,##0.00;(\xa4#,##0.00)","vai-Vaii":"\xa4#,##0.00;(\xa4#,##0.00)",vi:"#,##0.00\xa0\xa4",vun:"\xa4#,##0.00",wae:"\xa4\xa0#,##0.00",wo:"\xa4\xa0#,##0.00",xh:"\xa4#,##0.00",xog:"#,##0.00\xa0\xa4",yav:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",yi:"\xa4\xa0#,##0.00",yo:"\xa4#,##0.00;(\xa4#,##0.00)","yo-BJ":"\xa4#,##0.00;(\xa4#,##0.00)",yrl:"\xa4\xa0#,##0.00","yrl-CO":"\xa4\xa0#,##0.00","yrl-VE":"\xa4\xa0#,##0.00",yue:"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hant":"\xa4#,##0.00;(\xa4#,##0.00)",zgh:"#,##0.00\xa4",zh:"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-MO":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-SG":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-MO":"\xa4#,##0.00;(\xa4#,##0.00)",zu:"\xa4#,##0.00;(\xa4#,##0.00)"};var b=["standard","accounting"],w=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,f={},k=re=>{var ne=v.A.locale()+"/"+JSON.stringify(re);return f[ne]||(f[ne]=new Intl.NumberFormat(v.A.locale(),re).format),f[ne]};const x={engine:function(){return"intl"},_formatNumberCore:function(re,ne,_e){return"exponential"===ne?this.callBase.apply(this,arguments):k(this._normalizeFormatConfig(ne,_e,re))(re)},_normalizeFormatConfig:function(re,ne,_e){var be;if("decimal"===re){var oe=String(_e).split(".")[1];be={minimumIntegerDigits:ne.precision||void 0,useGrouping:!1,maximumFractionDigits:oe&&oe.length,round:_e<0?"ceil":"floor"}}else be=this._getPrecisionConfig(ne.precision);if("percent"===re)be.style="percent";else if("currency"===re){var me,we=null!==(me=ne.useCurrencyAccountingStyle)&&void 0!==me?me:(0,E.A)().defaultUseCurrencyAccountingStyle;be.style="currency",be.currency=ne.currency||(0,E.A)().defaultCurrency,be.currencySign=b[+we]}return be},_getPrecisionConfig:function(re){return null===re?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:re||0,maximumFractionDigits:re||0}},format:function(re,ne){return"number"!=typeof re?re:("default"===(ne=this._normalizeFormat(ne)).currency&&(ne.currency=(0,E.A)().defaultCurrency),ne&&("function"==typeof ne||ne.type||ne.formatter)?this.callBase.apply(this,arguments):k(ne)(re))},_getCurrencySymbolInfo:function(re){var ne=(re=>new Intl.NumberFormat(v.A.locale(),{style:"currency",currency:re}))(re);return this._extractCurrencySymbolInfo(ne.format(0))},_extractCurrencySymbolInfo:function(re){var ne=w.exec(re)||[];return{position:ne[1]?"before":"after",symbol:ne[1]||ne[4]||"",delimiter:ne[2]||ne[3]||""}},getCurrencySymbol:function(re){return re||(re=(0,E.A)().defaultCurrency),{symbol:this._getCurrencySymbolInfo(re).symbol}},getOpenXmlCurrencyFormat:function(re){var ne=re||(0,E.A)().defaultCurrency;return((re,ne)=>{if(ne){var _e=re;if("string"==typeof re){_e="";for(var be=0;be<re.length;be++)"$"!==re[be]&&(_e+="\\"),_e+=re[be]}for(var oe={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':""","\\\xa4":_e},me=ne.split(";"),we=0;we<me.length;we++)for(var N in oe)Object.prototype.hasOwnProperty.call(oe,N)&&(me[we]=me[we].replace(new RegExp(N,"g"),oe[N]));return 2===me.length?me[0]+"_);"+me[1]:me[0]}})(this._getCurrencySymbolInfo(ne).symbol,v.A.getValueByClosestLocale(oe=>s[oe]))}};var g=typeof Intl<"u",Y=["currency","fixedpoint","exponential","percent","decimal"],Q={1:"K",2:"M",3:"B",4:"T"},se={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},ie=(0,r.A)({engine:function(){return"base"},numericFormats:Y,defaultLargeNumberFormatPostfixes:Q,_parseNumberFormatString:function(re){var ne={};if(re&&"string"==typeof re){var _e=re.toLowerCase().split(" ");if((0,L.__)(_e,(be,oe)=>{Y.includes(oe)?ne.formatType=oe:oe in se&&(ne.power=se[oe])}),ne.power&&!ne.formatType&&(ne.formatType="fixedpoint"),ne.formatType)return ne}},_calculateNumberPower:function(re,ne,_e,be){var oe=Math.abs(re),me=0;if(oe>1)for(;oe&&oe>=ne&&(void 0===be||me<be);)me++,oe/=ne;else if(oe>0&&oe<1)for(;oe<1&&(void 0===_e||me>_e);)me--,oe*=ne;return me},_getNumberByPower:function(re,ne,_e){for(var be=re;ne>0;)be/=_e,ne--;for(;ne<0;)be*=_e,ne++;return be},_formatNumber:function(re,ne,_e){"auto"===ne.power&&(ne.power=this._calculateNumberPower(re,1e3,0,4)),ne.power&&(re=this._getNumberByPower(re,ne.power,1e3));var be=this.defaultLargeNumberFormatPostfixes[ne.power]||"",oe=this._formatNumberCore(re,ne.formatType,_e);return oe.replace(/(\d|.$)(\D*)$/,"$1"+be+"$2")},_formatNumberExponential:function(re,ne){var _e=this._calculateNumberPower(re,10),be=this._getNumberByPower(re,_e,10);void 0===ne.precision&&(ne.precision=1),be.toFixed(ne.precision||0)>=10&&(_e++,be/=10);var oe=(_e>=0?"+":"")+_e.toString();return this._formatNumberCore(be,"fixedpoint",ne)+"E"+oe},_addZeroes:function(re,ne){for(var _e=Math.pow(10,ne),be=re<0?"-":"",oe=(re=(Math.abs(re)*_e>>>0)/_e).toString();oe.length<ne;)oe="0"+oe;return be+oe},_addGroupSeparators:function(re){var ne=re.toString().split(".");return ne[0].replace(/\B(?=(\d{3})+(?!\d))/g,(0,E.A)().thousandsSeparator)+(ne[1]?(0,E.A)().decimalSeparator+ne[1]:"")},_formatNumberCore:function(re,ne,_e){return"exponential"===ne?this._formatNumberExponential(re,_e):("decimal"!==ne&&null!==_e.precision&&(_e.precision=_e.precision||0),"percent"===ne&&(re*=100),void 0!==_e.precision&&(re="decimal"===ne?this._addZeroes(re,_e.precision):null===_e.precision?re.toPrecision():(0,m.M)(re,_e.precision)),re="decimal"!==ne?this._addGroupSeparators(re):re.toString().replace(".",(0,E.A)().decimalSeparator),"percent"===ne&&(re+="%"),re)},_normalizeFormat:function(re){return re?("function"==typeof re||(0,j.Qd)(re)||(re={type:re}),re):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e4,"fixedPoint")[2]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(re,ne){var _e=this.format(90,"decimal");if("string"!=typeof re||"0"===_e[1])return re;var be=ne?_e[1]:"0",oe=ne?"0":_e[1],we=new RegExp("["+be+"-"+(ne?_e[0]:"9")+"]","g");return re.replace(we,N=>String.fromCharCode(N.charCodeAt(0)+(oe.charCodeAt(0)-be.charCodeAt(0))))},getNegativeEtalonRegExp:function(re){var ne=this._getSeparators(),_e=new RegExp("[0-9"+(0,d.Nt)(ne.decimalSeparator+ne.thousandsSeparator)+"]+","g"),be=this.format(-1,re).replace(_e,"1");return["\\","(",")","[","]","*","+","$","^","?","|","{","}"].forEach(oe=>{be=be.replace(new RegExp("\\".concat(oe),"g"),"\\".concat(oe))}),be=(be=be.replace(/ /g,"\\s")).replace(/1/g,".*"),new RegExp(be,"g")},getSign:function(re,ne){if(!ne)return"-"===re.replace(/[^0-9-]/g,"").charAt(0)?-1:1;var _e=this.getNegativeEtalonRegExp(ne);return re.match(_e)?-1:1},format:function(re,ne){if("number"!=typeof re||"number"==typeof ne)return re;if("function"==typeof(ne=ne&&ne.formatter||ne))return ne(re);(ne=this._normalizeFormat(ne)).type||(ne.type="decimal");var _e=this._parseNumberFormatString(ne.type);if(!_e){var be=this._getSeparators();return be.unlimitedIntegerDigits=ne.unlimitedIntegerDigits,this.convertDigits((0,o.f)(ne.type,be)(re))}return this._formatNumber(re,_e,ne)},parse:function(re,ne){if(re){if(ne&&ne.parser)return ne.parser(re);re=this.convertDigits(re,!0),ne&&"string"!=typeof ne&&R.A.log("W0011");var _e=this.getDecimalSeparator(),be=new RegExp("[^0-9"+(0,d.Nt)(_e)+"]","g"),oe=re.replace(be,"").replace(_e,".").replace(/\.$/g,"");if("."===oe||""===oe)return null;if(this._calcSignificantDigits(oe)>15)return NaN;var me=+oe*this.getSign(re,ne);ne=this._normalizeFormat(ne);var we=this._parseNumberFormatString(ne.type),N=we?.power;if(N){if("auto"===N){var G=re.match(/\d(K|M|B|T)/);G&&(N=Object.keys(Q).find(W=>Q[W]===G[1]))}me*=Math.pow(10,3*N)}return"percent"===we?.formatType&&(me/=100),me}},_calcSignificantDigits:function(re){var[ne,_e]=re.split("."),be=me=>{for(var we=-1,N=0;N<me.length;N++)if("0"!==me[N]){we=N;break}return we>-1?me.length-we:0},oe=0;return ne&&(oe+=be(ne.split(""))),_e&&(oe+=be(_e.split("").reverse())),oe}});ie.inject(_.A),g&&ie.inject(x);const ee=ie},50018:(ei,rt,D)=>{"use strict";D.d(rt,{M:()=>o});var r=D(22209),d=10;function o(E,R){var m=R||0;return(m>0?function j(E,R){var m=Math.pow(d,R);return function L(E){return(0,r._S)(E)*Math.round(Math.abs(E))}((0,r.T0)(E,R))/m}(...arguments):E).toFixed(m)}},23435:(ei,rt,D)=>{"use strict";D.d(rt,{Q:()=>d});var d=(0,D(56806).q6)(void 0)},18887:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>me});var r=D(58168),d=D(1522),L=D(6297),j=D(56806),o=D(55937),E=D(17669),R=D(98332),m=D(37041),_=we=>{var{parentNode:N}=we;if(N){var G=we.nextSibling;(0,R.Gf)(we),N.$V=we.$V,(0,d.XX)(null,N),N.insertBefore(we,G),we.innerHTML="",delete N.$V}delete we.$V};const v=(0,m.A)({createElement:(we,N)=>(0,o.n)(we,N),remove:_,onAfterRender:()=>{j.R3.callEffects()},onPreRender:()=>{j.R3.lock()},render:(we,N,G,W)=>{if(W)(0,d.XX)((0,o.n)(we,N),G);else{var{parentNode:z}=G,X=G?.nextSibling,q=E.A.createElement("div");q.appendChild(G);var ye=E.A.createDocumentFragment().appendChild(q);!!G.$V&&_(G),(0,j.Qv)((0,o.n)(we,N),ye),G.$V=ye.$V,z&&z.insertBefore(G,X)}}});var h=D(24292),s=D(38365),b=D(87951),O=D(60181),w=D(72463),f=D(98587),k=D(7963),I=(we,N)=>Object.keys(we).length===Object.keys(N).length&&Object.keys(we).every(G=>we[G]===N[G]),x=["isEqual"];class Q extends j.JP{constructor(N){super(N),this.renderTemplate=this.renderTemplate.bind(this)}renderTemplate(){var N=(0,d.UV)(this.$LI,!0);if(null==N||!N.parentNode)return()=>{};var G=N.parentNode,W=(0,h.A)(G),z=W.contents().toArray(),X=function F(we,N){var G,{data:W,index:z}=null!==(G=we.model)&&void 0!==G?G:{data:{}};W&&Object.keys(W).forEach(q=>{W[q]&&E.A.isNode(W[q])&&(W[q]=(0,O.c)((0,h.A)(W[q])))});var X=we.template.render((0,r.A)({container:N,transclude:we.transclude},{renovated:we.renovated},we.transclude?{}:{model:W},!we.transclude&&Number.isFinite(z)?{index:z}:{}));return void 0===X?[]:function g(we){return!!we.toArray}(X)?X.toArray():[(0,h.A)(X).get(0)]}(this.props,(0,O.c)(W));return(0,k.bG)((0,h.A)(N),(0,h.A)(X)),()=>{var q=(0,h.A)(G).contents().toArray();(function Y(we,N){N.forEach(G=>{!we.find(z=>G===z)&&G.parentNode&&(0,h.A)(G).remove()})})(z,q),G.appendChild(N)}}shouldComponentUpdate(N){var{model:G,template:W}=this.props,{isEqual:z,model:X,template:q}=N,ye=z??I;if(W!==q)return!0;if(!(0,w.O9)(G)||!(0,w.O9)(X))return G!==X;var{data:xe,index:ge}=G,{data:Ee,index:he}=X;return ge!==he||!ye(xe,Ee)}createEffects(){return[new j.Lt(this.renderTemplate,[this.props.template,this.props.model])]}updateEffects(){this._effects[0].update([this.props.template,this.props.model])}componentWillUnmount(){}render(){return null}}var se=D(39407);function ie(we){return Array.isArray(we)?[...we]:(0,r.A)({},we)}function ee(we,N,G){var W=ie(G.length>0&&N&&we!==N?N:we),z=G[0];return G.length>1?W[z]=ee(we[z],N?.[z],G.slice(1)):z&&(W[z]=(0,w.Qd)(we[z])?ie(we[z]):we[z]),W}function re(we,N,G,W){var z=N[G],X=we[G];we[G]=(0,w.Qd)(z)||G!==W&&Array.isArray(z)?ee(z,X,(0,se.u7)(W).slice(1)):z}D(18060),D(55424),D(14017);var oe=(we,N)=>G=>{Object.prototype.hasOwnProperty.call(we,G)&&void 0===we[G]&&(we[G]=N(G))};let me=(()=>{class we extends s.A{constructor(G,W){super(G,W),this._shouldRaiseContentReady=!1,this.validateKeyDownHandler()}get _propsInfo(){return{allowNull:[],twoWay:[],elements:[],templates:[],props:[]}}validateKeyDownHandler(){if(this.getSupportedKeyNames().length>0&&"function"!=typeof this._viewComponent.prototype.keyDown)throw Error("Component's declaration must have 'keyDown' method.")}get viewRef(){var G;return null===(G=this._viewRef)||void 0===G?void 0:G.current}_checkContentReadyOption(G){var W=this._getContentReadyOptions().reduce((z,X)=>(z[X]=!0,z),{});return this._checkContentReadyOption=z=>!!W[z],this._checkContentReadyOption(G)}_getContentReadyOptions(){return["rtlEnabled"]}_fireContentReady(){this._actionsMap.onContentReady({})}_getDefaultOptions(){var G=this._getViewComponentDefaultProps();return(0,b.X)(!0,super._getDefaultOptions(),G,this._propsInfo.twoWay.reduce((W,z)=>{var[X,q,ye]=z;return(0,r.A)({},W,{[X]:G[q],[ye]:xe=>this.option(X,xe)})},{}),this._propsInfo.templates.reduce((W,z)=>(0,r.A)({},W,{[z]:null}),{}))}_getUnwrappedOption(){var G={};return Object.keys(this.option()).forEach(W=>{G[W]=this.option(W)}),G}_initializeComponent(){var G;super._initializeComponent(),null===(G=this._templateManager)||void 0===G||G.addDefaultTemplates(this.getDefaultTemplates());var W=this._getUnwrappedOption();this._props=this._optionsWithDefaultTemplates(W),this._propsInfo.templates.forEach(z=>{this._componentTemplates[z]=this._createTemplateComponent(this._props[z])}),Object.keys(this._getActionConfigsFull()).forEach(z=>this._addAction(z)),this._viewRef=(0,d._3)(),this.defaultKeyHandlers=this._createDefaultKeyHandlers()}_initMarkup(){var G=this.getProps();this._renderWrapper(G)}_renderWrapper(G){var W=this.$element()[0];this._isNodeReplaced||v.onPreRender(),v.render(this._viewComponent,G,W,this._isNodeReplaced),this._isNodeReplaced||(this._isNodeReplaced=!0,v.onAfterRender(),this._shouldRaiseContentReady=!0),this._shouldRaiseContentReady&&(this._fireContentReady(),this._shouldRaiseContentReady=!1)}_silent(G,W){this._options.silent(G,W)}_render(){}_removeWidget(){v.remove(this.$element()[0])}_dispose(){this._removeWidget(),super._dispose()}get elementAttr(){var G=this.$element()[0];if(!this._elementAttr){var{attributes:W}=G,z=Array.from(W).filter(xe=>{var ge;return!this._propsInfo.templates.includes(xe.name)&&(null===(ge=W[xe.name])||void 0===ge?void 0:ge.specified)}).reduce((xe,ge)=>{var{name:Ee,value:he}=ge,Ie=xe;return Ie[Ee]=""===he&&Ee in G?G[Ee]:he,Ie},{});this._elementAttr=z,this._storedClasses=G.getAttribute("class")||""}for(var X=G.style,q={},ye=0;ye<X.length;ye+=1)q[X[ye]]=X.getPropertyValue(X[ye]);return this._elementAttr.style=q,this._elementAttr.class=this._storedClasses,this._elementAttr}_getAdditionalActionConfigs(){return{onContentReady:{excludeValidators:["disabled","readOnly"]}}}_getAdditionalProps(){return[]}_patchOptionValues(G){var{allowNull:W,elements:z,props:X,twoWay:q}=this._propsInfo,ye=this._getViewComponentDefaultProps(),xe=Object.keys(ye),ge=this._getDefaultOptions(),{children:Ee,onKeyboardHandled:he,ref:Ie}=G,de={ref:Ie,children:Ee,onKeyDown:he?(pe,Be)=>{he(Be)}:void 0};return[...X,...this._getAdditionalProps()].forEach(pe=>{Object.prototype.hasOwnProperty.call(G,pe)&&(de[pe]=G[pe])}),W.forEach(oe(de,()=>null)),xe.forEach(oe(de,pe=>ge[pe])),q.forEach(pe=>{var[Be,We]=pe;oe(de,()=>ge[We])(Be)}),z.forEach(pe=>{if(pe in de){var Be=de[pe];(0,w.Kb)(Be)&&(de[pe]=this._patchElementParam(Be))}}),de}getSupportedKeyNames(){return[]}prepareStyleProp(G){return"string"==typeof G.style?(0,r.A)({},G,{style:{},cssText:G.style}):G}getProps(){var G,W,{elementAttr:z}=this.option(),X=this._patchOptionValues((0,r.A)({},this._props,{ref:this._viewRef,children:this._extractDefaultSlot(),aria:this._aria}));return this._propsInfo.templates.forEach(q=>{X[q]=this._componentTemplates[q]}),this.prepareStyleProp((0,r.A)({},X,this.elementAttr,z,{className:[...(null!==(G=this.elementAttr.class)&&void 0!==G?G:"").split(" "),...(null!==(W=z?.class)&&void 0!==W?W:"").split(" ")].filter((q,ye,xe)=>q&&xe.indexOf(q)===ye).join(" ").trim(),class:""},this._actionsMap))}_getActionConfigs(){return{}}_getActionConfigsFull(){return(0,r.A)({},this._getActionConfigs(),this._getAdditionalActionConfigs())}getDefaultTemplates(){var G=Object.values(this._templatesInfo),W={};return G.forEach(z=>{W[z]="dx-renovation-template-mock"}),W}get _templatesInfo(){return{}}_optionsWithDefaultTemplates(G){var W=Object.entries(this._templatesInfo).reduce((z,X)=>{var q,[ye,xe]=X;return(0,r.A)({},z,{[ye]:null!==(q=G[ye])&&void 0!==q?q:xe})},{});return(0,r.A)({},G,W)}_init(){super._init(),this.customKeyHandlers={},this._actionsMap={},this._aria={},this._componentTemplates={}}_createDefaultKeyHandlers(){var G={};return this.getSupportedKeyNames().forEach(z=>{G[z]=X=>this.viewRef.keyDown(L.A.createKeyDownOptions(X))}),G}_addAction(G,W){var z=W;if(!z){var X=this._createActionByOption(G,this._getActionConfigsFull()[G]);z=q=>(Object.keys(q).forEach(ye=>{(0,w.O9)(q[ye])&&E.A.isNode(q[ye])&&(q[ye]=(0,O.c)((0,h.A)(q[ye])))}),X(q))}this._actionsMap[G]=z}_optionChanged(G){var{fullName:W,name:z,previousValue:X,value:q}=G;re(this._props,this.option(),z,W),this._propsInfo.templates.includes(z)&&q!==X&&(this._componentTemplates[z]=this._createTemplateComponent(q)),z&&this._getActionConfigsFull()[z]&&this._addAction(z),this._shouldRaiseContentReady=this._shouldRaiseContentReady||this._checkContentReadyOption(W),super._optionChanged(G),this._invalidate()}_extractDefaultSlot(){return this.option("_hasAnonymousTemplateContent")?v.createElement(Q,{template:this._getTemplate(this._templateManager.anonymousTemplateName),transclude:!0,renovated:!0}):null}_createTemplateComponent(G){if(G){var W=this._getTemplate(G);if(!(0,w.Kg)(W)||"dx-renovation-template-mock"!==W)return z=>v.createElement(Q,function C(we,N){var G,W={template:N,model:(0,r.A)({},we)},z=null!==(G=we.data)&&void 0!==G?G:{},{isEqual:X}=z,q=(0,f.A)(z,x);return X&&(W.model.data=q,W.isEqual=X),W}(z,W))}}_wrapKeyDownHandler(G){return W=>{var{keyName:z,originalEvent:X,which:q}=W,ye=this.customKeyHandlers,xe=ye[z]||ye[q];return void 0===xe||xe.bind(this)(X,W)?G?.(X,W):(X.cancel=!0,X)}}_toPublicElement(G){return(0,O.c)((0,h.A)(G))}_patchElementParam(G){try{var W=(0,h.A)(G),z=W?.get(0);return null!=z&&z.nodeType?z:G}catch{return G}}repaint(){this._isNodeReplaced=!1,this._shouldRaiseContentReady=!0,this._removeWidget(),this._refresh()}_supportedKeys(){return(0,r.A)({},this.defaultKeyHandlers,this.customKeyHandlers)}registerKeyHandler(G,W){this.customKeyHandlers[G]=W}setAria(G,W){this._aria[G]=W,this._initMarkup()}_getViewComponentDefaultProps(){return this._viewComponent.defaultProps||{}}}return we.IS_RENOVATED_WIDGET=!1,we.IS_RENOVATED_WIDGET=!0,we})()},63440:(ei,rt,D)=>{"use strict";D.d(rt,{s:()=>r});var r={className:"",activeStateEnabled:!1,disabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,tabIndex:0,visible:!0}},8854:(ei,rt,D)=>{"use strict";D.d(rt,{FU:()=>C});var r=D(98587),d=D(58168),L=D(1522),j=D(56806),o=D(23435),E=D(72463),R=["dataSource","selectedRowKeys"],m={integrationOptions:!0};function _(F,Y,Q){return{path:F,value:Y,previousValue:Q}}function v(F,Y,Q,se,ie,ee){if(!m[se]){var re=(0,E.NW)(Y),ne=(0,E.NW)(Q);if(Y!==Q)if(re!==ne)F.push(_(se,Q,Y));else if("object"===re)if((0,E.Qd)(Q)){var _e=s(Y,Q,ie,ee);F.push(..._e.map(me=>(0,d.A)({},me,{path:"".concat(se,".").concat(me.path)})))}else F.push(_(se,Q,Y));else if("array"===re)if(ee.some(me=>ie.includes(me))&&Y!==Q)F.push(_(se,Q,Y));else if(Y.length!==Q.length)F.push(_(se,Q,Y));else{var oe=s(Y,Q,ie,ee);[].push.apply(F,oe.map(me=>(0,d.A)({},me,{path:"".concat(se).concat(me.path)})))}else F.push(_(se,Q,Y))}}var h=F=>(Y,Q,se,ie)=>{var ee=[],re=Array.isArray(Y)?ne=>{v(ee,Y[ne],Q[ne],"[".concat(ne,"]"),"".concat(se,".").concat(ne),ie)}:ne=>{v(ee,Y[ne],Q[ne],ne,"".concat(se,".").concat(ne),ie)};return F(Y).forEach(re),Object.keys(Q).filter(ne=>!Object.prototype.hasOwnProperty.call(Y,ne)&&Y[ne]!==Q[ne]).forEach(ne=>{ee.push({path:ne,value:Q[ne],previousValue:Y[ne]})}),ee},s=h(F=>Object.keys(F)),b={key:!0,ref:!0,children:!0,style:!0},O=h(F=>Object.keys(F).filter(Y=>!b[Y])),f=["valueChange"],k=["componentProps","componentType","templateNames"],I=F=>Object.keys(F).reduce((Y,Q)=>(void 0!==F[Q]&&(Y[Q]=F[Q]),Y),{}),g={};let C=(()=>{class F extends j.JP{constructor(Q){super(Q),this.state={},this.widgetRef=(0,L._3)(),this.getInstance=this.getInstance.bind(this),this.setupWidget=this.setupWidget.bind(this),this.updateWidget=this.updateWidget.bind(this)}get config(){return this.context[o.Q.id]?this.context[o.Q.id]:o.Q.defaultValue}createEffects(){return[new j.Lt(this.setupWidget,[]),new j.Lt(this.updateWidget,[this.props.componentProps,this.config,this.props.templateNames])]}updateEffects(){var Q;null===(Q=this._effects[1])||void 0===Q||Q.update([this.props.componentProps,this.config,this.props.templateNames])}setupWidget(){var Q=new this.props.componentType(this.widgetRef.current,this.properties);return this.instance=Q,()=>{Q.dispose(),this.instance=null}}updateWidget(){var Q=this.getInstance();if(Q){var se=function w(F,Y){return O(F,Y,"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:R)}(this.prevProps||{},this.properties);se.length&&(Q.beginUpdate(),se.forEach(ie=>{var{path:ee,value:re}=ie;Q.option(ee,re)}),Q.endUpdate()),this.prevProps=this.properties}}get properties(){var Q,se=I(this.props.componentProps),{valueChange:ie}=se,ee=(0,r.A)(se,f),re=(0,d.A)({rtlEnabled:!(null===(Q=this.config)||void 0===Q||!Q.rtlEnabled),isRenovated:!0},ee);return ie&&(re.onValueChanged=_e=>{var{value:be}=_e;return ie(be)}),this.props.templateNames.forEach(_e=>{(0,j.rJ)(_e,re,this)&&(re[_e]=(be,oe,me)=>{(0,j.Xm)(this.props.componentProps[_e],{item:be,index:oe,container:me},this)})}),re}get restAttributes(){return(0,r.A)(this.props,k)}getInstance(){return this.instance}render(){return(F=>{var{props:{componentProps:{className:Y}},restAttributes:Q,widgetRef:se}=F;return I((0,L.bF)(1,"div",Y,null,1,(0,d.A)({},Q),null,se))})({props:(0,d.A)({},this.props),widgetRef:this.widgetRef,config:this.config,properties:this.properties,restAttributes:this.restAttributes})}}return F.defaultProps=g,F})()},7476:(ei,rt,D)=>{"use strict";D.d(rt,{x0:()=>be,b7:()=>_e});var r=D(98587),d=D(58168),L=D(1522),j=D(56806),R=(D(18060),D(14017),D(72463)),m=D(8257),_=D(40410),v=D(92243),h=D(87951),s=D(5918),b=D(63440),O=D(23435),w=["children","rtlEnabled"],k={};let I=(()=>{class oe extends j.eh{constructor(we){super(we),this.state={},this.__getterCache={}}getChildContext(){return(0,d.A)({},this.context,{[O.Q.id]:this.config||O.Q.defaultValue})}get config(){return void 0!==this.__getterCache.config?this.__getterCache.config:this.__getterCache.config={rtlEnabled:this.props.rtlEnabled}}get restAttributes(){return(0,r.A)(this.props,w)}componentWillUpdate(we,N,G){this.props.rtlEnabled!==we.rtlEnabled&&(this.__getterCache.config=void 0)}render(){return(oe=>oe.props.children)({props:(0,d.A)({},this.props),config:this.config,restAttributes:this.restAttributes})}}return oe.defaultProps=k,oe})();var x=D(83771),F=D(10348),Y=D(87550),Q=D(17669),se=["_feedbackHideTimeout","_feedbackShowTimeout","accessKey","activeStateEnabled","activeStateUnit","addWidgetClass","aria","children","className","classes","cssText","disabled","focusStateEnabled","height","hint","hoverStateEnabled","name","onActive","onClick","onDimensionChanged","onFocusIn","onFocusOut","onHoverEnd","onHoverStart","onInactive","onKeyDown","onRootElementRendered","onVisibilityChange","rootElementRef","rtlEnabled","tabIndex","visible","width"],_e=Object.create(Object.prototype,(0,d.A)(Object.getOwnPropertyDescriptors(b.s),Object.getOwnPropertyDescriptors({_feedbackHideTimeout:400,_feedbackShowTimeout:30,cssText:"",aria:Object.freeze({}),classes:"",name:"",addWidgetClass:!0})));let be=(()=>{class oe extends j.oe{constructor(we){super(we),this.widgetElementRef=(0,L._3)(),this.state={active:!1,focused:!1,hovered:!1},this.setRootElementRef=this.setRootElementRef.bind(this),this.activeEffect=this.activeEffect.bind(this),this.inactiveEffect=this.inactiveEffect.bind(this),this.clickEffect=this.clickEffect.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.focusInEffect=this.focusInEffect.bind(this),this.focusOutEffect=this.focusOutEffect.bind(this),this.hoverStartEffect=this.hoverStartEffect.bind(this),this.hoverEndEffect=this.hoverEndEffect.bind(this),this.keyboardEffect=this.keyboardEffect.bind(this),this.resizeEffect=this.resizeEffect.bind(this),this.windowResizeEffect=this.windowResizeEffect.bind(this),this.visibilityEffect=this.visibilityEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.applyCssTextEffect=this.applyCssTextEffect.bind(this)}get config(){return this.context[O.Q.id]?this.context[O.Q.id]:O.Q.defaultValue}createEffects(){return[new j.Lt(this.setRootElementRef,[]),new j.Lt(this.activeEffect,[this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),new j.Lt(this.inactiveEffect,[this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),new j.Lt(this.clickEffect,[this.props.disabled,this.props.name,this.props.onClick]),new j.Lt(this.focusInEffect,[this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),new j.Lt(this.focusOutEffect,[this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),new j.Lt(this.hoverStartEffect,[this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),new j.Lt(this.hoverEndEffect,[this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),new j.Lt(this.keyboardEffect,[this.props.focusStateEnabled,this.props.onKeyDown]),new j.Lt(this.resizeEffect,[this.props.name,this.props.onDimensionChanged]),new j.Lt(this.windowResizeEffect,[this.props.onDimensionChanged]),new j.Lt(this.visibilityEffect,[this.props.name,this.props.onVisibilityChange]),new j.Lt(this.checkDeprecation,[this.props.height,this.props.width]),new j.Lt(this.applyCssTextEffect,[this.props.cssText]),(0,j.h2)()]}updateEffects(){var we,N,G,W,z,X,q,ye,xe,ge,Ee,he,Ie;null===(we=this._effects[1])||void 0===we||we.update([this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),null===(N=this._effects[2])||void 0===N||N.update([this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),null===(G=this._effects[3])||void 0===G||G.update([this.props.disabled,this.props.name,this.props.onClick]),null===(W=this._effects[4])||void 0===W||W.update([this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),null===(z=this._effects[5])||void 0===z||z.update([this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),null===(X=this._effects[6])||void 0===X||X.update([this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),null===(q=this._effects[7])||void 0===q||q.update([this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),null===(ye=this._effects[8])||void 0===ye||ye.update([this.props.focusStateEnabled,this.props.onKeyDown]),null===(xe=this._effects[9])||void 0===xe||xe.update([this.props.name,this.props.onDimensionChanged]),null===(ge=this._effects[10])||void 0===ge||ge.update([this.props.onDimensionChanged]),null===(Ee=this._effects[11])||void 0===Ee||Ee.update([this.props.name,this.props.onVisibilityChange]),null===(he=this._effects[12])||void 0===he||he.update([this.props.height,this.props.width]),null===(Ie=this._effects[13])||void 0===Ie||Ie.update([this.props.cssText])}setRootElementRef(){var{onRootElementRendered:we,rootElementRef:N}=this.props;N&&(N.current=this.widgetElementRef.current),we?.(this.widgetElementRef.current)}activeEffect(){var{_feedbackShowTimeout:we,activeStateEnabled:N,activeStateUnit:G,disabled:W,onActive:z}=this.props;if(N&&!W)return(0,_.wD)(this.widgetElementRef.current,q=>{this.setState(ye=>({active:!0})),z?.(q)},{timeout:we,selector:G},"UIFeedback")}inactiveEffect(){var{_feedbackHideTimeout:we,activeStateEnabled:N,activeStateUnit:G,onInactive:W}=this.props;if(N)return(0,_.Lh)(this.widgetElementRef.current,X=>{this.state.active&&(this.setState(q=>({active:!1})),W?.(X))},{timeout:we,selector:G},"UIFeedback")}clickEffect(){var{disabled:we,name:N,onClick:G}=this.props,W=N;if(G&&!we)return m.Rz.on(this.widgetElementRef.current,G,{namespace:W}),()=>m.Rz.off(this.widgetElementRef.current,{namespace:W})}focusInEffect(){var{disabled:we,focusStateEnabled:N,name:G,onFocusIn:W}=this.props,z="".concat(G,"Focus");if(N&&!we)return(0,_.lT)(this.widgetElementRef.current,X=>{X.isDefaultPrevented()||(this.setState(q=>({focused:!0})),W?.(X))},null,z)}focusOutEffect(){var{focusStateEnabled:we,name:N,onFocusOut:G}=this.props,W="".concat(N,"Focus");if(we)return(0,_.oo)(this.widgetElementRef.current,z=>{!z.isDefaultPrevented()&&this.state.focused&&(this.setState(X=>({focused:!1})),G?.(z))},null,W)}hoverStartEffect(){var{activeStateUnit:we,disabled:N,hoverStateEnabled:G,onHoverStart:W}=this.props;if(G&&!N)return(0,_.mg)(this.widgetElementRef.current,X=>{!this.state.active&&this.setState(q=>({hovered:!0})),W?.(X)},{selector:we},"UIFeedback")}hoverEndEffect(){var{activeStateUnit:we,hoverStateEnabled:N,onHoverEnd:G}=this.props;if(N)return(0,_.Jj)(this.widgetElementRef.current,z=>{this.state.hovered&&(this.setState(X=>({hovered:!1})),G?.(z))},{selector:we},"UIFeedback")}keyboardEffect(){var{focusStateEnabled:we,onKeyDown:N}=this.props;if(we&&N){var G=m.QJ.on(this.widgetElementRef.current,this.widgetElementRef.current,W=>N(W));return()=>m.QJ.off(G)}}resizeEffect(){var we="".concat(this.props.name,"VisibilityChange"),{onDimensionChanged:N}=this.props;if(N)return m.XR.on(this.widgetElementRef.current,N,{namespace:we}),()=>m.XR.off(this.widgetElementRef.current,{namespace:we})}windowResizeEffect(){var{onDimensionChanged:we}=this.props;if(we)return F.A.add(we),()=>{F.A.remove(we)}}visibilityEffect(){var{name:we,onVisibilityChange:N}=this.props,G="".concat(we,"VisibilityChange");if(N)return m.XD.on(this.widgetElementRef.current,()=>N(!0),()=>N(!1),{namespace:G}),()=>m.XD.off(this.widgetElementRef.current,{namespace:G})}checkDeprecation(){var{height:we,width:N}=this.props;(0,R.Tn)(N)&&Y.A.log("W0017","width"),(0,R.Tn)(we)&&Y.A.log("W0017","height")}applyCssTextEffect(){var{cssText:we}=this.props;""!==we&&(this.widgetElementRef.current.style.cssText=we)}get shouldRenderConfigProvider(){var{rtlEnabled:we}=this.props;return function C(oe,me){var we=(0,R.O9)(oe),N=(0,R.O9)((0,x.A)().rtlEnabled)&&!we&&!(0,R.O9)(me?.rtlEnabled);return we&&oe!==me?.rtlEnabled||N}(we,this.config)}get rtlEnabled(){var{rtlEnabled:we}=this.props;return function g(oe,me){return void 0!==oe?oe:void 0!==me?.rtlEnabled?me.rtlEnabled:(0,x.A)().rtlEnabled}(we,this.config)}get attributes(){var{aria:we,disabled:N,focusStateEnabled:G,visible:W}=this.props,z=G&&!N&&this.props.accessKey;return(0,d.A)({},(0,h.X)({},z&&{accessKey:z}),(oe=>Object.keys(oe).reduce((me,we)=>oe[we]?(0,d.A)({},me,{["role"===we||"id"===we?we:"aria-".concat(we)]:String(oe[we])}):me,{}))((0,d.A)({},we,{disabled:N,hidden:!W})),(0,h.X)({},this.restAttributes))}get styles(){var{height:we,width:N}=this.props,G=this.restAttributes.style||{},W=(0,s.CC)("width",(0,R.Tn)(N)?N():N),z=(0,s.CC)("height",(0,R.Tn)(we)?we():we);return(0,d.A)({},G,{height:z??G.height,width:W??G.width})}get cssClasses(){var{activeStateEnabled:we,addWidgetClass:N,className:G,classes:W,disabled:z,focusStateEnabled:X,hoverStateEnabled:q,onVisibilityChange:ye,visible:xe}=this.props,ge=!!X&&!z,Ee=!!q&&!z,he=!!we&&!z,Ie={"dx-widget":!!N,[String(W)]:!!W,[String(G)]:!!G,"dx-state-disabled":!!z,"dx-state-invisible":!xe,"dx-state-focused":!!this.state.focused&&ge,"dx-state-active":!!this.state.active&&he,"dx-state-hover":!!this.state.hovered&&Ee&&!this.state.active,"dx-rtl":!!this.rtlEnabled,"dx-visibility-change-handler":!!ye};return(0,v.g)(Ie)}get tabIndex(){var{disabled:we,focusStateEnabled:N,tabIndex:G}=this.props;return N&&!we?G:void 0}get restAttributes(){return(0,r.A)(this.props,se)}focus(){m.XC.trigger(this.widgetElementRef.current)}blur(){var we=Q.A.getActiveElement(this.widgetElementRef.current);this.widgetElementRef.current===we&&we.blur()}activate(){this.setState(we=>({active:!0}))}deactivate(){this.setState(we=>({active:!1}))}render(){return(oe=>{var me=(0,L._B)((0,L.bF)(1,"div",oe.cssClasses,oe.props.children,0,(0,d.A)({},oe.attributes,{tabIndex:oe.tabIndex,title:oe.props.hint,style:(0,j.gs)(oe.styles)}),null,oe.widgetElementRef));return oe.shouldRenderConfigProvider?(0,L.sO)(2,I,{rtlEnabled:oe.rtlEnabled,children:me}):me})({props:(0,d.A)({},this.props),active:this.state.active,focused:this.state.focused,hovered:this.state.hovered,widgetElementRef:this.widgetElementRef,config:this.config,shouldRenderConfigProvider:this.shouldRenderConfigProvider,rtlEnabled:this.rtlEnabled,attributes:this.attributes,styles:this.styles,cssClasses:this.cssClasses,tabIndex:this.tabIndex,restAttributes:this.restAttributes})}}return oe.defaultProps=_e,oe})()},49060:(ei,rt,D)=>{"use strict";D.d(rt,{KE:()=>C,eH:()=>x});var r=D(98587),d=D(58168),L=D(1522),j=D(56806),o=D(13992),E=D(7476),R=D(63440),m=D(92243),_=D(79465),v=D(8854),h=["accessKey","activeStateEnabled","boundary","className","contentId","disabled","focusStateEnabled","height","hint","hoverStateEnabled","mode","offset","onClick","onKeyDown","positionSide","rtlEnabled","tabIndex","target","validationErrors","visible","visualContainer","width"],b=Object.create(Object.prototype,(0,d.A)(Object.getOwnPropertyDescriptors(R.s),Object.getOwnPropertyDescriptors({mode:"auto",positionSide:"top",offset:Object.freeze({h:0,v:0}),isReactComponentWrapper:!0})));let O=(()=>{class se extends j.eh{constructor(ee){super(ee),this.state={}}get componentProps(){return this.props}get restAttributes(){return(0,r.A)(this.props,h)}render(){return(se=>{var{componentProps:ie,restAttributes:ee}=se;return(0,L._B)((0,L.sO)(2,v.FU,(0,d.A)({componentType:_.A,componentProps:ie,templateNames:[]},ee)))})({props:(0,d.A)({},this.props),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return se.defaultProps=b,se})();D(51557);var f=["accessKey","activeStateEnabled","aria","children","className","classes","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","inputAttr","isDirty","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],x=Object.create(Object.prototype,(0,d.A)(Object.getOwnPropertyDescriptors(R.s),Object.getOwnPropertyDescriptors({readOnly:!1,name:"",validationError:null,validationErrors:null,validationMessageMode:"auto",validationMessagePosition:"bottom",validationStatus:"valid",isValid:!0,isDirty:!1,inputAttr:Object.freeze({}),defaultValue:null,valueChange:()=>{}}))),g={get readOnly(){return x.readOnly},get name(){return x.name},get validationError(){return x.validationError},get validationErrors(){return x.validationErrors},get validationMessageMode(){return x.validationMessageMode},get validationMessagePosition(){return x.validationMessagePosition},get validationStatus(){return x.validationStatus},get isValid(){return x.isValid},get isDirty(){return x.isDirty},get inputAttr(){return x.inputAttr},get defaultValue(){return x.defaultValue},get valueChange(){return x.valueChange},get className(){return x.className},get activeStateEnabled(){return x.activeStateEnabled},get disabled(){return x.disabled},get focusStateEnabled(){return x.focusStateEnabled},get hoverStateEnabled(){return x.hoverStateEnabled},get tabIndex(){return x.tabIndex},get visible(){return x.visible},get aria(){return E.b7.aria},get classes(){return E.b7.classes}};class C extends j.oe{constructor(ie){super(ie),this.widgetRef=(0,L._3)(),this.rootElementRef=(0,L._3)(),this.__getterCache={},this.state={validationMessageGuid:"dx-".concat(new o.A),isValidationMessageVisible:!1,value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.updateValidationMessageVisibility=this.updateValidationMessageVisibility.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onFocusIn=this.onFocusIn.bind(this)}createEffects(){return[new j.Lt(this.updateValidationMessageVisibility,[this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors]),(0,j.h2)()]}updateEffects(){var ie;null===(ie=this._effects[0])||void 0===ie||ie.update([this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors])}updateValidationMessageVisibility(){this.setState(ie=>({isValidationMessageVisible:this.shouldShowValidationMessage}))}onFocusIn(ie){var{onFocusIn:ee}=this.props;ee?.(ie)}get cssClasses(){return"".concat((se=>{var{classes:ie,isValid:ee,readOnly:re}=se,ne={"dx-state-readonly":!!re,"dx-invalid":!ee,["".concat(ie)]:!!ie};return(0,m.g)(ne)})((0,d.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})))}get shouldShowValidationMessage(){var ie,{isValid:ee,validationStatus:re}=this.props,ne=null!==(ie=this.validationErrors)&&void 0!==ie?ie:[];return!(ee&&"invalid"!==re)&&ne.length>0}get aria(){var{isValid:ie,readOnly:ee}=this.props,re={readonly:ee?"true":"false",invalid:ie?"false":"true"};return this.shouldShowValidationMessage&&(re.describedBy=this.state.validationMessageGuid),(0,d.A)({},re,this.props.aria)}get validationErrors(){return void 0!==this.__getterCache.validationErrors?this.__getterCache.validationErrors:this.__getterCache.validationErrors=(()=>{var{validationError:ie,validationErrors:ee}=this.props,re=ee&&[...ee];return!re&&ie&&(re=[(0,d.A)({},ie)]),re})()}get validationMessageTarget(){var ie;return null===(ie=this.rootElementRef)||void 0===ie?void 0:ie.current}get restAttributes(){var ie=(0,d.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,r.A)(ie,f)}focus(){this.widgetRef.current.focus()}blur(){this.widgetRef.current.blur()}componentWillUpdate(ie,ee,re){super.componentWillUpdate(),(this.props.validationError!==ie.validationError||this.props.validationErrors!==ie.validationErrors)&&(this.__getterCache.validationErrors=void 0)}render(){return(se=>{var{aria:ie,cssClasses:ee,isValidationMessageVisible:re,onFocusIn:ne,props:{accessKey:_e,activeStateEnabled:be,children:oe,className:me,disabled:we,focusStateEnabled:N,height:G,hint:W,hoverStateEnabled:z,onClick:X,onKeyDown:q,rtlEnabled:ye,tabIndex:xe,validationMessageMode:ge,validationMessagePosition:Ee,visible:he,width:Ie},restAttributes:ce,rootElementRef:de,validationErrors:pe,validationMessageGuid:Be,validationMessageTarget:We,widgetRef:tt}=se;return(0,L._B)((0,L.sO)(2,E.x0,(0,d.A)({rootElementRef:de,aria:ie,classes:ee,activeStateEnabled:be,focusStateEnabled:N,hoverStateEnabled:z,accessKey:_e,className:me,rtlEnabled:ye,hint:W,disabled:we,height:G,width:Ie,onFocusIn:ne,onClick:X,onKeyDown:q,tabIndex:xe,visible:he},ce,{children:(0,L.nl)([oe,re&&(0,L.sO)(2,O,{validationErrors:pe,mode:ge,positionSide:Ee,rtlEnabled:ye,target:We,boundary:We,visualContainer:We,contentId:Be})],0)}),null,tt))})({props:(0,d.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),validationMessageGuid:this.state.validationMessageGuid,isValidationMessageVisible:this.state.isValidationMessageVisible,rootElementRef:this.rootElementRef,widgetRef:this.widgetRef,onFocusIn:this.onFocusIn,cssClasses:this.cssClasses,shouldShowValidationMessage:this.shouldShowValidationMessage,aria:this.aria,validationErrors:this.validationErrors,validationMessageTarget:this.validationMessageTarget,restAttributes:this.restAttributes})}}C.defaultProps=g},98500:(ei,rt,D)=>{"use strict";D.d(rt,{JU:()=>E,fK:()=>L,ig:()=>j,lm:()=>d});var d="vertical",L="horizontal",j="both",E="dx-scrollable-content"},78221:(ei,rt,D)=>{"use strict";function r(d,L){for(var j={left:0,top:0},o=L;null!==(E=o)&&void 0!==E&&E.offsetParent&&!o.classList.contains(d);){var E,R=o.offsetParent,m=o.getBoundingClientRect(),_=R.getBoundingClientRect();j.left+=m.left-_.left,j.top+=m.top-_.top,o=o.offsetParent}return j}D.d(rt,{Y:()=>r})},89193:(ei,rt,D)=>{"use strict";D.d(rt,{D:()=>d});var r=D(98500);class d{constructor(j){this.DIRECTION_HORIZONTAL="horizontal",this.DIRECTION_VERTICAL="vertical",this.DIRECTION_BOTH="both",this.direction=j??r.lm}get isHorizontal(){return this.direction===r.fK||this.direction===r.ig}get isVertical(){return this.direction===r.lm||this.direction===r.ig}get isBoth(){return this.direction===r.ig}}},92243:(ei,rt,D)=>{"use strict";function r(d){return Object.keys(d).filter(L=>d[L]).join(" ")}D.d(rt,{g:()=>r})},10505:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>d});var r=D(14435);function d(L){var j,o=(0,r.zk)();return L?null===(j=o.getComputedStyle)||void 0===j?void 0:j.call(o,L):null}},40410:(ei,rt,D)=>{"use strict";D.d(rt,{Ao:()=>R,Jj:()=>Q,Lh:()=>F,lT:()=>se,mg:()=>Y,oo:()=>ie,wD:()=>C});var r=D(91269),d=D(18060),L=D(49104),j=D(26961),o=D(24159);function E(ee){return(re,ne,_e,be)=>{var oe=be?(0,L.b4)(ee,be):ee;if(ne)return r.A.on(re,oe,_e,ne),()=>{r.A.off(re,oe,ne)}}}var R=E(d.U),C=(E(j.A.scroll),E(j.A.init),E(j.A.start),E(j.A.move),E(j.A.end),E(j.A.stop),E(j.A.cancel),E(o.A.down),E(o.A.up),E(o.A.move),E("mouseenter"),E("mouseleave"),E("keydown"),E("dxactive")),F=E("dxinactive"),Y=E("dxhoverstart"),Q=E("dxhoverend"),se=E("focusin"),ie=E("focusout")},99228:(ei,rt,D)=>{"use strict";function r(d){return d?Number(d.replace("px","")):0}D.d(rt,{R:()=>r})},26543:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>ie});var r=D(64905),d=D(24292),L=D(87951),j=D(48745),o=D(12101),E=D(5918),R=D(72463),m=D(14435),_=D(14874),v=D(12338),O="dxBoxItemData",f={row:"minWidth",col:"minHeight"},k={row:"maxWidth",col:"maxHeight"},I={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},x={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},g={row:"row",col:"column"},C=(ee,re,ne)=>{if(ne=(0,E.CC)(re,ne),ee.style[(0,E.jA)(re)]=ne,!(0,m.Vd)()){if(""===ne||!(0,R.O9)(ne))return;var _e=(0,j._k)(re),be="".concat(_e,": ").concat(ne,";");(0,E.eC)(ee,be,!1)}};class F extends v.A{_renderVisible(re,ne){super._renderVisible(re),(0,R.O9)(ne)&&this._options.fireItemStateChangedAction({name:"visible",state:re,oldState:ne})}}class Y{constructor(re,ne){this._$element=re,this._option=ne}renderBox(){this._$element.css({display:"".concat((0,E.Rb)("flexDirection"),"flex")}),C(this._$element.get(0),"flexDirection",g[this._option("direction")])}renderAlign(){this._$element.css({justifyContent:this._normalizedAlign()})}_normalizedAlign(){var re=this._option("align");return re in I?I[re]:re}renderCrossAlign(){this._$element.css({alignItems:this._normalizedCrossAlign()})}_normalizedCrossAlign(){var re=this._option("crossAlign");return re in x?x[re]:re}renderItems(re){var ne=(0,E.Rb)("flexDirection"),_e=this._option("direction");(0,o.__)(re,function(){var be=(0,d.A)(this),oe=be.data(O);be.css({display:"".concat(ne,"flex")}).css(k[_e],oe.maxSize||"none").css(f[_e],oe.minSize||"0"),C(be.get(0),"flexBasis",oe.baseSize||0),C(be.get(0),"flexGrow",oe.ratio),C(be.get(0),"flexShrink",(0,R.O9)(oe.shrink)?oe.shrink:1),be.children().each((me,we)=>{(0,d.A)(we).css({width:"auto",height:"auto",display:"".concat((0,E.Rb)("flexDirection"),"flex"),flexBasis:0}),C(we,"flexGrow",1),C(we,"flexDirection",(0,d.A)(we)[0].style.flexDirection||"column")})})}}let Q=(()=>{class ee extends _.A{_getDefaultOptions(){return(0,L.X)(super._getDefaultOptions(),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_queue:void 0})}_itemClass(){return"dx-box-item"}_itemDataKey(){return O}_itemElements(){return this._itemContainer().children(this._itemSelector())}_init(){super._init(),this.$element().addClass("dx-box-flex"),this._initLayout(),this._initBoxQueue()}_initLayout(){this._layout=new Y(this.$element(),this.option.bind(this))}_initBoxQueue(){this._queue=this.option("_queue")||[]}_queueIsNotEmpty(){return!this.option("_queue")&&!!this._queue.length}_pushItemToQueue(ne,_e){this._queue.push({$item:ne,config:_e})}_shiftItemFromQueue(){return this._queue.shift()}_initMarkup(){this.$element().addClass("dx-box"),this._layout.renderBox(),super._initMarkup(),this._renderAlign(),this._renderActions()}_renderActions(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}_renderAlign(){this._layout.renderAlign(),this._layout.renderCrossAlign()}_renderItems(ne){for(super._renderItems(ne);this._queueIsNotEmpty();){var _e=this._shiftItemFromQueue();this._createComponent(_e.$item,ee,(0,L.X)({itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},_e.config))}this._layout.renderItems(this._itemElements())}_renderItemContent(ne){var _e=ne.itemData&&ne.itemData.node;return _e?this._renderItemContentByNode(ne,_e):super._renderItemContent(ne)}_postprocessRenderItem(ne){var _e=ne.itemData.box;_e&&this._pushItemToQueue(ne.itemContent,_e)}_createItemByTemplate(ne,_e){return _e.itemData.box?ne.source?ne.source():(0,d.A)():super._createItemByTemplate(ne,_e)}_itemOptionChanged(ne,_e,be,oe){"visible"===_e&&this._onItemStateChanged({name:_e,state:be,oldState:!1!==oe}),super._itemOptionChanged(ne,_e,be)}_optionChanged(ne){switch(ne.name){case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:super._optionChanged(ne)}}_itemOptions(){var ne=super._itemOptions();return ne.fireItemStateChangedAction=_e=>{this._onItemStateChanged(_e)},ne}}return ee.ItemClass=F,ee})();(0,r.A)("dxBox",Q);const ie=Q},2839:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>q});var r=D(64905),d=D(58168),L=D(79130),j=D(18887),o=D(86018);class E extends j.A{get _validationGroupConfig(){return L.A.getGroupConfig(this._findGroup())}getDefaultTemplateNames(){return["content"]}getSupportedKeyNames(){return["space","enter"]}getProps(){var xe=super.getProps();return xe.onClick=Ee=>{var{event:he}=Ee;this._clickAction({event:he,validationGroup:this._validationGroupConfig})},"svg"===(0,o.F)(xe.icon)&&(xe.iconTemplate=this._createTemplateComponent(()=>xe.icon)),xe}get _templatesInfo(){return{template:"content"}}_toggleActiveState(xe,ge){var Ee=this.viewRef;ge?Ee.activate():Ee.deactivate()}_getSubmitAction(){var xe=!0,ge="valid";return this._createAction(Ee=>{var{event:he,submitInput:Ie}=Ee;if(xe){var ce=this._validationGroupConfig;if(void 0!==ce&&""!==ce){var de=ce.validate();ge=de.status,"pending"===de.status&&(xe=!1,this.option("disabled",!0),de.complete.then(pe=>{var{status:Be}=pe;this.option("disabled",!1),"valid"===(ge=Be)&&Ie.click(),xe=!0}))}}"valid"!==ge&&he.preventDefault(),he.stopPropagation()})}_initializeComponent(){super._initializeComponent(),this._addAction("onSubmit",this._getSubmitAction()),this._clickAction=this._createClickAction()}_initMarkup(){super._initMarkup();var xe=this.$element().find(".dx-button-content").first(),ge=xe.children().filter(".dx-template-wrapper"),Ee=xe.children().filter(".dx-button-submit-input");ge.length&&(ge.addClass("dx-button-content"),ge.append(Ee),xe.replaceWith(ge))}_patchOptionValues(xe){return super._patchOptionValues((0,d.A)({},xe,{templateData:xe._templateData}))}_findGroup(){var xe=this.$element(),ge=this.option("validationGroup");return void 0!==ge&&""!==ge?ge:L.A.findGroup(xe,this._modelByElement(xe))}_createClickAction(){return this._createActionByOption("onClick",{excludeValidators:["readOnly"]})}_optionChanged(xe){"onClick"===xe.name&&(this._clickAction=this._createClickAction()),super._optionChanged(xe)}}var R=D(98587),m=D(1522),_=D(56806),v=D(51557),h=D(23862),s=D(11299),b=D(8257),O=D(92243),w=D(48745),f=["iconTemplate","position","source"],I={position:"left",source:""},x=ye=>ye&&(ye.defaultProps?xe=>(0,m._B)((0,m.sO)(2,ye,(0,d.A)({},xe))):ye);let g=(()=>{class ye extends _.eh{constructor(ge){super(ge),this.state={}}get sourceType(){return(0,o.F)(this.props.source)}get cssClass(){return"left"!==this.props.position?"dx-icon-right":""}get iconClassName(){var ge={"dx-icon":!0,[this.cssClass]:!!this.cssClass},{source:Ee}=this.props;return"dxIcon"===this.sourceType?(0,O.g)((0,d.A)({},ge,{["dx-icon-".concat(Ee)]:!0})):"fontIcon"===this.sourceType?(0,O.g)((0,d.A)({},ge,{[String(Ee)]:!!Ee})):"image"===this.sourceType?(0,O.g)(ge):"svg"===this.sourceType?(0,O.g)((0,d.A)({},ge,{"dx-svg-icon":!0})):""}get restAttributes(){return(0,R.A)(this.props,f)}render(){var ge=this.props;return(ye=>{var{iconClassName:xe,props:{iconTemplate:ge,source:Ee},sourceType:he}=ye;return(0,m.nl)(["dxIcon"===he&&(0,m.bF)(1,"i",xe),"fontIcon"===he&&(0,m.bF)(1,"i",xe),"image"===he&&(0,m.bF)(1,"img",xe,null,1,{alt:"",src:Ee}),ge&&(0,m.bF)(1,"i",xe,ge({}),0)],0)})({props:(0,d.A)({},ge,{iconTemplate:x(ge.iconTemplate)}),sourceType:this.sourceType,cssClass:this.cssClass,iconClassName:this.iconClassName,restAttributes:this.restAttributes})}}return ye.defaultProps=I,ye})();var C=D(26115),F=["config"],Q={config:Object.freeze({})};let se=(()=>{class ye extends _.eh{constructor(ge){super(ge),this.state={},this.__getterCache={},this.hideWave=this.hideWave.bind(this),this.showWave=this.showWave.bind(this)}get getConfig(){return void 0!==this.__getterCache.getConfig?this.__getterCache.getConfig:this.__getterCache.getConfig=(()=>{var{config:ge}=this.props;return(0,C.pw)(ge)})()}get restAttributes(){return(0,R.A)(this.props,F)}hideWave(ge){(0,C.SK)(this.getConfig,ge)}showWave(ge){(0,C.vF)(this.getConfig,ge)}componentWillUpdate(ge,Ee,he){this.props.config!==ge.config&&(this.__getterCache.getConfig=void 0)}render(){return(ye=>(0,m._B)((0,m.bF)(1,"div","dx-inkripple",null,1,(0,d.A)({},ye.restAttributes))))({props:(0,d.A)({},this.props),getConfig:this.getConfig,restAttributes:this.restAttributes})}}return ye.defaultProps=Q,ye})();var ie=D(7476),ee=D(63440),re=D(20736),ne=["accessKey","activeStateEnabled","children","className","disabled","focusStateEnabled","height","hint","hoverStateEnabled","icon","iconPosition","iconTemplate","onClick","onKeyDown","onSubmit","pressed","rtlEnabled","stylingMode","tabIndex","template","templateData","text","type","useInkRipple","useSubmitBehavior","visible","width"],_e=["outlined","text","contained"],me=Object.create(Object.prototype,(0,d.A)(Object.getOwnPropertyDescriptors(ee.s),Object.getOwnPropertyDescriptors({activeStateEnabled:!0,hoverStateEnabled:!0,icon:"",iconPosition:"left",stylingMode:"contained",text:"",type:"normal",useInkRipple:!1,useSubmitBehavior:!1,templateData:Object.freeze({})}))),we=(0,v.gO)([{device:()=>"desktop"===h.A.real().deviceType&&!h.A.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,s.gx)((0,s.ss)()),options:{useInkRipple:!0}}]),N=ye=>ye&&(ye.defaultProps?xe=>(0,m._B)((0,m.sO)(2,ye,(0,d.A)({},xe))):ye);class G extends _.oe{constructor(xe){super(xe),this.state={},this.contentRef=(0,m._3)(),this.inkRippleRef=(0,m._3)(),this.submitInputRef=(0,m._3)(),this.widgetRef=(0,m._3)(),this.__getterCache={},this.focus=this.focus.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.submitEffect=this.submitEffect.bind(this),this.onActive=this.onActive.bind(this),this.onInactive=this.onInactive.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this),this.emitClickEvent=this.emitClickEvent.bind(this)}createEffects(){return[new _.Lt(this.submitEffect,[this.props.onSubmit,this.props.useSubmitBehavior]),(0,_.h2)()]}updateEffects(){var xe;null===(xe=this._effects[0])||void 0===xe||xe.update([this.props.onSubmit,this.props.useSubmitBehavior])}submitEffect(){var{onSubmit:xe,useSubmitBehavior:ge}=this.props;if(ge&&xe)return b.jM.on(this.submitInputRef.current,Ee=>xe({event:Ee,submitInput:this.submitInputRef.current}),{namespace:"UIFeedback"}),()=>b.jM.off(this.submitInputRef.current,{namespace:"UIFeedback"})}onActive(xe){var{useInkRipple:ge}=this.props;ge&&this.inkRippleRef.current.showWave({element:this.contentRef.current,event:xe})}onInactive(xe){var{useInkRipple:ge}=this.props;ge&&this.inkRippleRef.current.hideWave({element:this.contentRef.current,event:xe})}onWidgetClick(xe){var{onClick:ge,useSubmitBehavior:Ee}=this.props;ge?.({event:xe}),Ee&&this.submitInputRef.current.click()}keyDown(xe){var{onKeyDown:ge}=this.props,{keyName:Ee,originalEvent:he,which:Ie}=xe,ce=ge?.(xe);if(null!=ce&&ce.cancel)return ce;("space"===Ee||"space"===Ie||"enter"===Ee||"enter"===Ie)&&(he.preventDefault(),this.emitClickEvent())}emitClickEvent(){this.contentRef.current.click()}get aria(){var{icon:xe,text:ge}=this.props,Ee=ge??"";if(!ge&&xe)switch((0,o.F)(xe)){case"image":Ee=!xe.includes("base64")&&/^(?!(?:https?:\/\/)|(?:ftp:\/\/)|(?:www\.))[^\s]+$/.test(xe)?xe.replace(/.+\/([^.]+)\..+$/,"$1"):"";break;case"dxIcon":Ee=re.A.format((0,w.PT)(xe,!0))||xe;break;case"fontIcon":Ee=xe;break;case"svg":var ce,de;Ee=null!==(ce=null===(de=/<title>(.*?)<\/title>/.exec(xe))||void 0===de?void 0:de[1])&&void 0!==ce?ce:""}return(0,d.A)({role:"button"},Ee?{label:Ee}:{})}get cssClasses(){return(ye=>{var{icon:xe,iconPosition:ge,stylingMode:Ee,text:he,type:Ie}=ye,ce=Ee&&_e.includes(Ee),de={"dx-button":!0,["dx-button-mode-".concat(ce?Ee:"contained")]:!0,["dx-button-".concat(Ie??"normal")]:!0,"dx-button-has-text":!!he,"dx-button-has-icon":!!xe,"dx-button-icon-right":"left"!==ge};return(0,O.g)(de)})(this.props)}get iconSource(){var{icon:xe}=this.props;return xe??""}get inkRippleConfig(){return void 0!==this.__getterCache.inkRippleConfig?this.__getterCache.inkRippleConfig:this.__getterCache.inkRippleConfig=(()=>{var{icon:xe,text:ge}=this.props;return!ge&&xe?{isCentered:!0,useHoldAnimation:!1,waveSizeCoefficient:1}:{}})()}get buttonTemplateData(){var{icon:xe,templateData:ge,text:Ee}=this.props;return(0,d.A)({icon:xe,text:Ee},ge)}get restAttributes(){return(0,R.A)(this.props,ne)}focus(){this.widgetRef.current.focus()}activate(){this.widgetRef.current.activate()}deactivate(){this.widgetRef.current.deactivate()}componentWillUpdate(xe,ge,Ee){super.componentWillUpdate(),(this.props.icon!==xe.icon||this.props.text!==xe.text)&&(this.__getterCache.inkRippleConfig=void 0)}render(){var xe=this.props;return(ye=>{var{children:xe,iconPosition:ge,iconTemplate:Ee,template:he,text:Ie}=ye.props,ce=!ye.props.template&&!xe&&""!==Ie,de="left"===ge,pe=!ye.props.template&&!xe&&(ye.iconSource||ye.props.iconTemplate)&&(0,m.sO)(2,g,{source:ye.iconSource,position:ge,iconTemplate:Ee});return(0,m._B)((0,m.sO)(2,ie.x0,(0,d.A)({accessKey:ye.props.accessKey,activeStateEnabled:ye.props.activeStateEnabled,aria:ye.aria,className:ye.props.className,classes:ye.cssClasses,disabled:ye.props.disabled,focusStateEnabled:ye.props.focusStateEnabled,height:ye.props.height,hint:ye.props.hint,hoverStateEnabled:ye.props.hoverStateEnabled,onActive:ye.onActive,onClick:ye.onWidgetClick,onInactive:ye.onInactive,onKeyDown:ye.keyDown,rtlEnabled:ye.props.rtlEnabled,tabIndex:ye.props.tabIndex,visible:ye.props.visible,width:ye.props.width},ye.restAttributes,{children:(0,m.bF)(1,"div","dx-button-content",[ye.props.template&&he({data:ye.buttonTemplateData}),!ye.props.template&&xe,de&&pe,ce&&(0,m.bF)(1,"span","dx-button-text",Ie,0),!de&&pe,ye.props.useSubmitBehavior&&(0,m.bF)(64,"input","dx-button-submit-input",null,1,{type:"submit",tabIndex:-1},null,ye.submitInputRef),ye.props.useInkRipple&&(0,m.sO)(2,se,{config:ye.inkRippleConfig},null,ye.inkRippleRef)],0,null,null,ye.contentRef)}),null,ye.widgetRef))})({props:(0,d.A)({},xe,{template:N(xe.template),iconTemplate:N(xe.iconTemplate)}),contentRef:this.contentRef,submitInputRef:this.submitInputRef,inkRippleRef:this.inkRippleRef,widgetRef:this.widgetRef,onActive:this.onActive,onInactive:this.onInactive,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,emitClickEvent:this.emitClickEvent,aria:this.aria,cssClasses:this.cssClasses,iconSource:this.iconSource,inkRippleConfig:this.inkRippleConfig,buttonTemplateData:this.buttonTemplateData,restAttributes:this.restAttributes})}}G.defaultProps=Object.create(Object.prototype,(0,d.A)(Object.getOwnPropertyDescriptors(me),Object.getOwnPropertyDescriptors((0,d.A)({},(0,v.a6)(we)))));var W=[];class X extends E{getProps(){var xe=super.getProps();return xe.onKeyDown=this._wrapKeyDownHandler(xe.onKeyDown),xe}focus(){var xe;return null===(xe=this.viewRef)||void 0===xe?void 0:xe.focus(...arguments)}activate(){var xe;return null===(xe=this.viewRef)||void 0===xe?void 0:xe.activate(...arguments)}deactivate(){var xe;return null===(xe=this.viewRef)||void 0===xe?void 0:xe.deactivate(...arguments)}_getActionConfigs(){return{onClick:{excludeValidators:["readOnly"]},onSubmit:{}}}get _propsInfo(){return{twoWay:[],allowNull:[],elements:["onSubmit"],templates:["template","iconTemplate"],props:["activeStateEnabled","hoverStateEnabled","icon","iconPosition","onClick","onSubmit","pressed","stylingMode","template","iconTemplate","text","type","useInkRipple","useSubmitBehavior","templateData","className","accessKey","disabled","focusStateEnabled","height","hint","onKeyDown","rtlEnabled","tabIndex","visible","width"]}}get _viewComponent(){return G}}(0,r.A)("dxButton",X),X.defaultOptions=function z(ye){W.push(ye),G.defaultProps=Object.create(Object.prototype,(0,d.A)(Object.getOwnPropertyDescriptors(G.defaultProps),Object.getOwnPropertyDescriptors((0,v.a6)(we)),Object.getOwnPropertyDescriptors((0,v.a6)(W))))};const q=X},89454:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>Be});var r=D(64905),d=D(72463),L=D(18887),j=D(79130),o=D(87951),E=D(24292),R=D(98332),m=D(34423),_=D(44831),h="dx-invalid-message-auto",s="dx-validation-target";class b extends L.A{getProps(){var tt=super.getProps();return tt.onFocusIn=()=>{if("auto"===this.option("validationMessageMode")){var Xt=(0,E.A)(function v(We,tt){var vt,Xt;return(null!==(vt=null===(Xt=We.getRootNode)||void 0===Xt?void 0:Xt.call(We))&&void 0!==vt?vt:document).querySelector(tt)}(this.element(),".dx-invalid-message.dx-overlay-wrapper"));Xt?.removeClass(h),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>{Xt?.addClass(h)},150)}},tt.saveValueChangeEvent=vt=>{this._valueChangeEventInstance=vt},tt}_createElement(tt){super._createElement(tt),this.showValidationMessageTimeout=void 0,this.validationRequest=(0,m.A)(),(0,R.p)(this.$element()[0],s,this)}_render(){var tt;null===(tt=this.option("_onMarkupRendered"))||void 0===tt||tt()}_init(){super._init(),this._initialValue=this.option("value")}_initializeComponent(){super._initializeComponent(),this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})}_initOptions(tt){super._initOptions(tt),this.option(j.A.initValidationOptions(tt))}_getDefaultOptions(){return(0,o.X)(super._getDefaultOptions(),{validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})}_bindInnerWidgetOptions(tt,vt){var Xt=(0,o.X)({},tt.option()),Nt=()=>this._silent(vt,Xt);Nt(),tt.on("optionChanged",Nt)}_raiseValidation(tt,vt){var Xt=!(0,d.O9)(tt)&&!(0,d.O9)(vt);tt!==vt&&!Xt&&this.validationRequest.fire({value:tt,editor:this})}_raiseValueChangeAction(tt,vt){var Xt;null===(Xt=this._valueChangeAction)||void 0===Xt||Xt.call(this,{element:this.$element(),previousValue:vt,value:tt,event:this._valueChangeEventInstance}),this._valueChangeEventInstance=void 0}_optionChanged(tt){var{name:vt,previousValue:Xt,value:Nt}=tt;switch(vt&&void 0!==this._getActionConfigs()[vt]&&this._addAction(vt),vt){case"value":this._raiseValidation(Nt,Xt),this.option("isDirty",this._initialValue!==Nt),this._raiseValueChangeAction(Nt,Xt);break;case"onValueChanged":this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]});break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(j.A.synchronizeValidationOptions(tt,this.option()))}super._optionChanged(tt)}clear(){var{value:tt}=this._getDefaultOptions();this.option({value:tt})}reset(){arguments.length&&(this._initialValue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0),this.option("value",this._initialValue),this.option("isDirty",!1),this.option("isValid",!0)}_dispose(){super._dispose(),(0,R.p)(this.element(),s,null),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout)}}var O=_.A.isEditor,w=We=>O(We)||We instanceof b;b.isEditor=w,_.A.isEditor=w;class f extends b{_useTemplates(){return!1}_isFocused(){return this.$element()[0].classList.contains("dx-state-focused")}getSupportedKeyNames(){return["space"]}getProps(){var tt=super.getProps();return null!==tt.value&&(tt.value=!!tt.value),tt}}var k=D(98587),I=D(58168),x=D(1522),g=D(56806),C=D(23862),F=D(49060),Y=D(92243),Q=D(10505),se=D(14435),ie=D(5918),ee=D(11299),re=[[22,16],[18,16]],ne=[[[12,8],[20,18]],[[16,10],[16,14]]];function _e(){var We=(0,ee.ss)();return{isMaterialTheme:(0,ee.gx)(We),isCompactTheme:(0,ee.ip)(We)}}var we=["isChecked","size"],G={isChecked:!1};let W=(()=>{class We extends g.JP{constructor(vt){super(vt),this.state={},this.elementRef=(0,x._3)(),this.__getterCache={},this.updateFontSize=this.updateFontSize.bind(this),this.setIconFontSize=this.setIconFontSize.bind(this),this.getIconSize=this.getIconSize.bind(this),this.getComputedIconSize=this.getComputedIconSize.bind(this)}createEffects(){return[new g.Lt(this.updateFontSize,[this.props.isChecked,this.props.size])]}updateEffects(){var vt;null===(vt=this._effects[0])||void 0===vt||vt.update([this.props.isChecked,this.props.size])}updateFontSize(){var{isChecked:vt,size:Xt}=this.props;if((0,se.Vd)()&&Xt){var Qe=function me(We,tt){var vt=function oe(We){var{isCompactTheme:tt,isMaterialTheme:vt}=_e();return ne[+We][+vt][+tt]}(tt),Xt=function be(){var{isCompactTheme:We,isMaterialTheme:tt}=_e();return re[+tt][+We]}();return Math.ceil(vt/Xt*We)}(this.getIconSize(Xt),vt);this.setIconFontSize(Qe)}}setIconFontSize(vt){this.elementRef.current.style.fontSize="".concat(vt,"px")}getIconSize(vt){return(0,d.kf)(vt)?vt:vt.endsWith("px")?parseInt(vt,10):this.getComputedIconSize()}getComputedIconSize(){var Xt=(0,Q.A)(this.elementRef.current);return parseInt(Xt?.width,10)}get cssStyles(){return void 0!==this.__getterCache.cssStyles?this.__getterCache.cssStyles:this.__getterCache.cssStyles=(()=>{var{size:vt}=this.props,Xt=(0,ie.CC)("width",vt);return{height:(0,ie.CC)("height",vt),width:Xt}})()}get restAttributes(){return(0,k.A)(this.props,we)}componentWillUpdate(vt,Xt,Nt){super.componentWillUpdate(),this.props.size!==vt.size&&(this.__getterCache.cssStyles=void 0)}render(){return(We=>{var{cssStyles:tt,elementRef:vt}=We;return(0,x.bF)(1,"span","dx-checkbox-icon",null,1,{style:(0,g.gs)(tt)},null,vt)})({props:(0,I.A)({},this.props),elementRef:this.elementRef,setIconFontSize:this.setIconFontSize,getIconSize:this.getIconSize,getComputedIconSize:this.getComputedIconSize,cssStyles:this.cssStyles,restAttributes:this.restAttributes})}}return We.defaultProps=G,We})();var z=D(7476),X=D(51557),q=["accessKey","activeStateEnabled","aria","className","defaultValue","disabled","enableThreeStateBehavior","focusStateEnabled","height","hint","hoverStateEnabled","iconSize","inputAttr","isDirty","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","saveValueChangeEvent","tabIndex","text","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],ge=Object.create(Object.prototype,(0,I.A)(Object.getOwnPropertyDescriptors(F.eH),Object.getOwnPropertyDescriptors({text:"",enableThreeStateBehavior:!1,activeStateEnabled:!0,hoverStateEnabled:!0,get focusStateEnabled(){return"desktop"===C.A.real().deviceType&&!C.A.isSimulator()},defaultValue:!1,valueChange:()=>{}}))),Ee={get text(){return ge.text},get enableThreeStateBehavior(){return ge.enableThreeStateBehavior},get activeStateEnabled(){return ge.activeStateEnabled},get hoverStateEnabled(){return ge.hoverStateEnabled},get focusStateEnabled(){return ge.focusStateEnabled},get defaultValue(){return ge.defaultValue},get valueChange(){return ge.valueChange},get readOnly(){return ge.readOnly},get name(){return ge.name},get validationError(){return ge.validationError},get validationErrors(){return ge.validationErrors},get validationMessageMode(){return ge.validationMessageMode},get validationMessagePosition(){return ge.validationMessagePosition},get validationStatus(){return ge.validationStatus},get isValid(){return ge.isValid},get isDirty(){return ge.isDirty},get inputAttr(){return ge.inputAttr},get className(){return ge.className},get disabled(){return ge.disabled},get tabIndex(){return ge.tabIndex},get visible(){return ge.visible},get aria(){return z.b7.aria}};class he extends g.oe{constructor(tt){super(tt),this.editorRef=(0,x._3)(),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[(0,g.h2)()]}onWidgetClick(tt){var{enableThreeStateBehavior:vt,readOnly:Xt,saveValueChangeEvent:Nt}=this.props;if(!Xt)if(Nt?.(tt),vt){var Qe;this.setState(Lt=>({value:Qe=null===(void 0!==this.props.value?this.props.value:Lt.value)||!(void 0!==this.props.value?this.props.value:Lt.value)&&null})),this.props.valueChange(Qe)}else{var Et;this.setState(Lt=>{var wt;return{value:Et=!(null!==(wt=void 0!==this.props.value?this.props.value:Lt.value)&&void 0!==wt&&wt)}}),this.props.valueChange(Et)}}keyDown(tt){var{onKeyDown:vt}=this.props,{keyName:Xt,originalEvent:Nt,which:Qe}=tt,Et=vt?.(tt);if(null!=Et&&Et.cancel)return Et;("space"===Xt||"space"===Qe)&&(Nt.preventDefault(),this.onWidgetClick(Nt))}get cssClasses(){return(We=>{var{text:tt,value:vt}=We;return(0,Y.g)({"dx-checkbox":!0,"dx-checkbox-checked":!0===vt,"dx-checkbox-has-text":!!tt,"dx-checkbox-indeterminate":null===vt})})((0,I.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}))}get aria(){var Xt={role:"checkbox",checked:null===(void 0!==this.props.value?this.props.value:this.state.value)?"mixed":"".concat(!0===(void 0!==this.props.value?this.props.value:this.state.value))};return(0,I.A)({},Xt,this.props.aria)}get restAttributes(){var tt=(0,I.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,k.A)(tt,q)}focus(){this.editorRef.current.focus()}blur(){this.editorRef.current.blur()}render(){return(We=>{var{aria:tt,cssClasses:vt,editorRef:Xt,keyDown:Nt,onWidgetClick:Qe,props:{accessKey:Et,activeStateEnabled:Lt,className:wt,disabled:Mt,focusStateEnabled:Ge,height:ot,hint:Tt,hoverStateEnabled:jt,iconSize:li,isValid:an,name:xi,onFocusIn:Je,readOnly:Ht,rtlEnabled:gi,tabIndex:Ti,text:ni,validationError:wi,validationErrors:ui,validationMessageMode:cn,validationMessagePosition:Ui,validationStatus:Xi,value:Qi,visible:Ut,width:It},restAttributes:yt}=We;return(0,x._B)((0,x.sO)(2,F.KE,(0,I.A)({aria:tt,classes:vt,onClick:Qe,onKeyDown:Nt,accessKey:Et,activeStateEnabled:Lt,focusStateEnabled:Ge,hoverStateEnabled:jt,className:wt,disabled:Mt,readOnly:Ht,hint:Tt,height:ot,width:It,rtlEnabled:gi,tabIndex:Ti,visible:Ut,validationError:wi,validationErrors:ui,validationMessageMode:cn,validationMessagePosition:Ui,validationStatus:Xi,isValid:an,onFocusIn:Je},yt,{children:(0,x.nl)([(0,x._B)((0,x.bF)(64,"input",null,null,1,(0,I.A)({type:"hidden",value:"".concat(Qi)},xi&&{name:xi}))),(0,x.bF)(1,"div","dx-checkbox-container",[(0,x.sO)(2,W,{size:li,isChecked:!0===Qi}),ni&&(0,x.bF)(1,"span","dx-checkbox-text",ni,0)],0)],4)}),null,Xt))})({props:(0,I.A)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),editorRef:this.editorRef,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,cssClasses:this.cssClasses,aria:this.aria,restAttributes:this.restAttributes})}}he.defaultProps=Ee;var ce=[];class pe extends f{getProps(){var tt=super.getProps();return tt.onKeyDown=this._wrapKeyDownHandler(tt.onKeyDown),tt}focus(){var tt;return null===(tt=this.viewRef)||void 0===tt?void 0:tt.focus(...arguments)}blur(){var tt;return null===(tt=this.viewRef)||void 0===tt?void 0:tt.blur(...arguments)}_getActionConfigs(){return{onFocusIn:{},onClick:{}}}get _propsInfo(){return{twoWay:[["value","defaultValue","valueChange"]],allowNull:["defaultValue","validationError","validationErrors","value"],elements:[],templates:[],props:["text","iconSize","enableThreeStateBehavior","activeStateEnabled","hoverStateEnabled","focusStateEnabled","saveValueChangeEvent","defaultValue","valueChange","readOnly","name","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","isValid","isDirty","inputAttr","onFocusIn","className","accessKey","disabled","height","hint","onClick","onKeyDown","rtlEnabled","tabIndex","visible","width","aria","value"]}}get _viewComponent(){return he}}(0,r.A)("dxCheckBox",pe),pe.defaultOptions=function de(We){ce.push(We),he.defaultProps=Object.create(Object.prototype,(0,I.A)(Object.getOwnPropertyDescriptors(he.defaultProps),Object.getOwnPropertyDescriptors(function Ie(We){var tt=["value"];return Object.keys(We).reduce((vt,Xt)=>{var Nt=We[Xt];return vt[tt.some(Et=>Et===Xt)?"default"+Xt.charAt(0).toUpperCase()+Xt.slice(1):Xt]=Nt,vt},{})}((0,X.a6)(ce)))))};const Be=pe},66208:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>o});var r=D(5042),d=D(12984),L={load:()=>(0,d.cY)().reject(),loadSingle:()=>(0,d.cY)().reject(),loadFromStore:()=>(0,d.cY)().reject(),loadNextPage:()=>(0,d.cY)().reject(),loadOptions:r.lQ,userData:r.lQ,cancel:r.lQ,cancelAll:r.lQ,filter:r.lQ,addSearchFilter:r.lQ,group:r.lQ,paginate:r.lQ,pageSize:r.lQ,pageIndex:r.lQ,resetDataSourcePageIndex:r.lQ,totalCount:r.lQ,isLastPage:r.lQ,isLoading:r.lQ,isLoaded:r.lQ,searchValue:r.lQ,searchOperation:r.lQ,searchExpr:r.lQ,select:r.lQ,key:r.lQ,keyOf:r.lQ,store:r.lQ,items:r.lQ,applyMapFunction:r.lQ,getDataSource:r.lQ,reload:r.lQ,on:r.lQ,off:r.lQ};const o=class j{constructor(R){if(!R)return L;this._dataSource=R}load(){return this._dataSource.load()}loadSingle(R,m){return arguments.length<2&&(m=R,R=this.key()),this._dataSource.loadSingle(R,m)}loadFromStore(R){return this.store().load(R)}loadNextPage(){return this.pageIndex(1+this.pageIndex()),this.load()}loadOptions(){return this._dataSource.loadOptions()}userData(){return this._dataSource._userData}cancel(R){this._dataSource.cancel(R)}cancelAll(){this._dataSource.cancelAll()}filter(R){return this._dataSource.filter(R)}addSearchFilter(R){this._dataSource._addSearchFilter(R)}group(R){return this._dataSource.group(R)}paginate(){return this._dataSource.paginate()}pageSize(){return this._dataSource._pageSize}pageIndex(R){return this._dataSource.pageIndex(R)}resetDataSourcePageIndex(){this.pageIndex()&&(this.pageIndex(0),this.load())}totalCount(){return this._dataSource.totalCount()}isLastPage(){return this._dataSource.isLastPage()||!this._dataSource._pageSize}isLoading(){return this._dataSource.isLoading()}isLoaded(){return this._dataSource.isLoaded()}searchValue(R){return arguments.length?this._dataSource.searchValue(R):this._dataSource.searchValue()}searchOperation(R){return this._dataSource.searchOperation(R)}searchExpr(R){return arguments.length?this._dataSource.searchExpr(R):this._dataSource.searchExpr()}select(){return this._dataSource.select(...arguments)}key(){return this._dataSource.key()}keyOf(R){return this.store().keyOf(R)}store(){return this._dataSource.store()}items(){return this._dataSource.items()}applyMapFunction(R){return this._dataSource._applyMapFunction(R)}getDataSource(){return this._dataSource||null}reload(){return this._dataSource.reload()}on(R,m){this._dataSource.on(R,m)}off(R,m){this._dataSource.off(R,m)}}},12338:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>v});var r=D(24292),d=D(56221),L=D(12101),j=D(9690),_=d.A.inherit({ctor:function(h,s,b){this._$element=h,this._options=s,this._rawData=b,(0,j.UK)(h,this,this._dispose),this._render()},_render:function(){var h=(0,r.A)("<div>").addClass("dx-item-content-placeholder");this._$element.append(h),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(h,s){var b=this._rawData,O=this._options.fieldGetter(h),w=function(h,s,b){var w,O=function(f){w!==f&&(b(f,w),w=f)};return{dispose:h(s,O),force:function(){O(s())}}}(this._options.watchMethod(),function(){return O(b)},function(f,k){this._dirty=!0,s(f,k)}.bind(this));this._watchers.push(w)},setDataField:function(){if(this._dirty=!1,(0,L.__)(this._watchers,function(h,s){s.force()}),this._dirty)return!0},_renderDisabled:function(h,s){this._$element.toggleClass("dx-state-disabled",!!h),this._$element.attr("aria-disabled",!!h),this._updateOwnerFocus(h)},_updateOwnerFocus:function(h){var s=this._options.owner;s&&h&&s._resetItemFocus(this._$element)},_renderVisible:function(h,s){this._$element.toggleClass("dx-state-invisible",void 0!==h&&!h)},_dispose:function(){(0,L.__)(this._watchers,function(h,s){s.dispose()})}});_.getInstance=function(h){return(0,j.pV)(h,this)};const v=_},14874:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>Mt});var r=D(24292),d=D(91269),L=D(58168),j=D(80186),o=D(5042),E=D(53468),R=D(60181),m=D(17669),_=D(72463),v=D(12984),h=D(87951),s=D(12101),b=D(75135),O=D(13992),w=D(98041),f=D(49104),k=D(24159),I=D(82236),x=D(12338),g=D(31063),C=D(20736),F=D(44602),Y=D(39407),Q=D(18060),se=D(94935),ie=D(56311),re="dx-item",ne="-content",_e="dx-item-content-placeholder",z="dx-template-wrapper",X=/^([^.]+\[\d+\]\.)+([\w.]+)$/,xe="down",pe=w.A.inherit({_activeStateUnit:"."+re,_supportedKeys:function(){var Ge=function(ot,Tt){(0,f.By)(Tt)||(Tt.preventDefault(),Tt.stopPropagation(),this._moveFocus(ot,Tt))};return(0,h.X)(this.callBase(),{space:function(ot){ot.preventDefault(),this._enterKeyHandler(ot)},enter:this._enterKeyHandler,leftArrow:Ge.bind(this,"left"),rightArrow:Ge.bind(this,"right"),upArrow:Ge.bind(this,"up"),downArrow:Ge.bind(this,xe),pageUp:Ge.bind(this,"up"),pageDown:Ge.bind(this,xe),home:Ge.bind(this,"first"),end:Ge.bind(this,"last")})},_enterKeyHandler:function(Ge){var ot=(0,r.A)(this.option("focusedElement"));if(ot.length){var Tt=this._getItemData(ot);null!=Tt&&Tt.onClick&&this._itemEventHandlerByHandler(ot,Tt.onClick,{event:Ge}),this._itemClickHandler((0,h.X)({},Ge,{target:ot.get(0),currentTarget:ot.get(0)}))}},_getDefaultOptions:function(){return(0,h.X)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:C.A.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,dataSource:null,_dataController:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(Ge){return Ge?Ge.disabled:void 0},visibleExpr:function(Ge){return Ge?Ge.visible:void 0}})},_init:function(){this._compileDisplayGetter(),this._initDataController(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var Ge=this.option("displayExpr");this._displayGetter=Ge?(0,Y.Hz)(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:function(){return"item"},_initDefaultItemTemplate:function(){var Ge=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new ie.U(function(ot,Tt){(0,_.Qd)(Tt)?this._prepareDefaultItemTemplate(Tt,ot):(Ge&&(0,_.Tn)(Ge.text)&&(Tt=Ge.text(Tt)),ot.text(String((0,o.YD)(Tt,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),Ge)})},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(Ge,ot){(0,_.O9)(Ge.text)&&ot.text(Ge.text),(0,_.O9)(Ge.html)&&ot.html(Ge.html)},_initItemsFromMarkup:function(){var Ge=(0,E.zD)(this.$element(),"dxItem");if(Ge.length&&!this.option("items").length){var ot=Ge.map(Tt=>{var{element:jt,options:li}=Tt;return/\S/.test(jt.innerHTML)&&!li.template?li.template=this._prepareItemTemplate(jt):(0,r.A)(jt).remove(),li});this.option("items",ot)}},_prepareItemTemplate:function(Ge){var ot="tmpl-"+new O.A,Tt=(0,r.A)(Ge).detach().clone().removeAttr("data-options").addClass(z);return this._saveTemplate(ot,Tt),ot},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(Ge){if(this.callBase.apply(this,arguments),this._isFocusTarget(Ge.target)){var ot=(0,r.A)(this.option("focusedElement"));if(ot.length)this._setFocusedItem(ot);else{var Tt=this._getActiveItem();Tt.length&&this.option("focusedElement",(0,R.c)(Tt))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var Ge=(0,r.A)(this.option("focusedElement"));this._updateFocusedItemState(Ge,!1)},_findActiveTarget(Ge){return Ge.find(this._activeStateUnit)},_getActiveItem:function(Ge){var ot=(0,r.A)(this.option("focusedElement"));if(ot.length)return ot;var Tt=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,jt=this._getActiveElement();return Tt<0&&(Tt=Ge?jt.length-1:0),jt.eq(Tt)},_moveFocus:function(Ge){var Tt,ot=this._getAvailableItems();switch(Ge){case"pageup":case"up":Tt=this._prevItem(ot);break;case"pagedown":case xe:Tt=this._nextItem(ot);break;case"right":Tt=this.option("rtlEnabled")?this._prevItem(ot):this._nextItem(ot);break;case"left":Tt=this.option("rtlEnabled")?this._nextItem(ot):this._prevItem(ot);break;case"first":Tt=ot.first();break;case"last":Tt=ot.last();break;default:return!1}0!==Tt.length&&this.option("focusedElement",(0,R.c)(Tt))},_getVisibleItems:function(Ge){return(Ge=Ge||this._itemElements()).filter(":visible")},_getAvailableItems:function(Ge){return this._getVisibleItems(Ge)},_prevItem:function(Ge){var ot=this._getActiveItem(),Tt=Ge.index(ot),jt=Ge.last(),li=(0,r.A)(Ge[Tt-1]),an=this.option("loopItemFocus");return 0===li.length&&an&&(li=jt),li},_nextItem:function(Ge){var ot=this._getActiveItem(!0),Tt=Ge.index(ot),jt=Ge.first(),li=(0,r.A)(Ge[Tt+1]),an=this.option("loopItemFocus");return 0===li.length&&an&&(li=jt),li},_selectFocusedItem:function(Ge){this.selectItem(Ge)},_updateFocusedItemState:function(Ge,ot,Tt){var jt=(0,r.A)(Ge);jt.length&&(this._refreshActiveDescendant(),this._refreshItemId(jt,Tt),this._toggleFocusClass(ot,jt)),this._updateParentActiveDescendant()},_refreshActiveDescendant:function(Ge){this.setAria("activedescendant",(0,_.O9)(this.option("focusedElement"))?this.getFocusedItemId():null,Ge)},_refreshItemId:function(Ge,ot){!ot&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),Ge):this.setAria("id",null,Ge)},_isDisabled:Ge=>Ge&&"true"===(0,r.A)(Ge).attr("aria-disabled"),_setFocusedItem:function(Ge){if(Ge&&Ge.length){this._updateFocusedItemState(Ge,!0),this.onFocusedItemChanged(this.getFocusedItemId());var{selectOnFocus:ot}=this.option(),Tt=this._isDisabled(Ge);ot&&!Tt&&this._selectFocusedItem(Ge)}},_findItemElementByItem:function(Ge){var ot=(0,r.A)(),Tt=this;return this.itemElements().each(function(){var jt=(0,r.A)(this);if(jt.data(Tt._itemDataKey())===Ge)return ot=jt,!1}),ot},_getIndexByItem:function(Ge){return this.option("items").indexOf(Ge)},_itemOptionChanged:function(Ge,ot,Tt,jt){var li=this._findItemElementByItem(Ge);li.length&&(this.constructor.ItemClass.getInstance(li).setDataField(ot,Tt)||this._refreshItem(li,Ge),"disabled"===ot&&Tt&&this._resetItemFocus(li))},_resetItemFocus(Ge){Ge.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(Ge){var ot=this._getItemData(Ge),Tt=Ge.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+Tt,ot,null,Ge)},_updateParentActiveDescendant:o.lQ,_optionChanged:function(Ge){if("items"===Ge.name){var ot=Ge.fullName.match(X);if(ot&&ot.length){var Tt=ot[ot.length-1],jt=Ge.fullName.replace("."+Tt,""),li=this.option(jt);return void this._itemOptionChanged(li,Tt,Ge.value,Ge.previousValue)}}switch(Ge.name){case"items":case"_itemAttributes":case"itemTemplateProperty":case"useItemTextAsTitle":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":case"encodeNoDataText":this._renderEmptyMessage();break;case"itemTemplate":case"visibleExpr":case"disabledExpr":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"focusedElement":this._updateFocusedItemState(Ge.previousValue,!1,!0),this._setFocusedItem((0,r.A)(Ge.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;default:this.callBase(Ge)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){return this._expectNextPageLoading(),this._dataController.loadNextPage()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(Ge){var ot=this.option("items");this._initialized&&ot&&this._shouldAppendItems()?(this._renderedItemsCount=ot.length,(!this._isLastPage()||-1!==this._startIndexForAppendedItems)&&(this.option().items=ot.concat(Ge.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",Ge.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer(),this._inkRipple&&delete this._inkRipple,this._resetActiveState()},_cleanItemContainer:function(){(0,r.A)(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return re},_itemContentClass:function(){return this._itemClass()+ne},_selectedItemClass:function(){return"dx-item-selected"},_itemResponseWaitClass:function(){return"dx-item-response-wait"},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return"dxItemData"},_itemIndexKey:function(){return"dxItemIndex"},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass("dx-collection"),this._prepareContent()},_prepareContent:(0,o.Mb)(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_getPointerEvent:()=>k.A.down,_attachClickEvent(){var Ge=this._itemSelector(),ot=this._getPointerEvent(),Tt=(0,f.b4)(Q.U,this.NAME),jt=(0,f.b4)(ot,this.NAME),li=new b.A(an=>{var{event:xi}=an;this._itemPointerDownHandler(xi)});d.A.off(this._itemContainer(),Tt,Ge),d.A.off(this._itemContainer(),jt,Ge),d.A.on(this._itemContainer(),Tt,Ge,an=>this._itemClickHandler(an)),d.A.on(this._itemContainer(),jt,Ge,an=>{li.execute({element:(0,r.A)(an.target),event:an})})},_itemClickHandler:function(Ge,ot,Tt){this._itemDXEventHandler(Ge,"onItemClick",ot,Tt)},_itemPointerDownHandler:function(Ge){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!Ge.isDefaultPrevented()){var ot=(0,r.A)(Ge.target),Tt=ot.closest(this._itemElements()),jt=this._closestFocusable(ot);Tt.length&&this._isFocusTarget(jt?.get(0))&&this.option("focusedElement",(0,R.c)(Tt))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(Ge){if(Ge.is(g.nq))return Ge;for(Ge=Ge.parent();Ge.length&&!m.A.isDocument(Ge.get(0))&&!m.A.isDocumentFragment(Ge.get(0));){if(Ge.is(g.nq))return Ge;Ge=Ge.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var Ge=this._itemContainer(),ot=this._itemSelector(),Tt=(0,f.b4)(F.A.name,this.NAME);d.A.off(Ge,Tt,ot),d.A.on(Ge,Tt,ot,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(Ge){this._shouldFireHoldEvent()?this._itemDXEventHandler(Ge,"onItemHold"):Ge.cancel=!0},_attachContextMenuEvent:function(){var Ge=this._itemContainer(),ot=this._itemSelector(),Tt=(0,f.b4)(se.U,this.NAME);d.A.off(Ge,Tt,ot),d.A.on(Ge,Tt,ot,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(Ge){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(Ge,"onItemContextMenu"):Ge.cancel=!0},_renderContentImpl:function(){var Ge=this.option("items")||[];this._renderItems(this._renderedItemsCount?Ge.slice(this._renderedItemsCount):Ge)},_renderItems:function(Ge){Ge.length&&(0,s.__)(Ge,function(ot,Tt){this._renderItem(this._renderedItemsCount+ot,Tt)}.bind(this)),this._renderEmptyMessage()},_getItemsContainer:function(){return this._itemContainer()},_setAttributes(Ge){var ot=(0,L.A)({},this.option("_itemAttributes")),{class:Tt}=ot;if(Tt){var jt=Ge.get(0).className;ot.class=[jt,Tt].join(" ")}Ge.attr(ot)},_renderItem:function(Ge,ot,Tt,jt){var li,an=null!==(li=Ge?.item)&&void 0!==li?li:Ge;Tt=Tt||this._getItemsContainer();var xi=this._renderItemFrame(an,ot,Tt,jt);this._setElementData(xi,ot,an),this._setAttributes(xi),this._attachItemClickEvent(ot,xi);var Je=this._getItemContent(xi),Ht=this._renderItemContent({index:an,itemData:ot,container:(0,R.c)(Je),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),gi=this;return(0,v.z7)(Ht).done(function(Ti){gi._postprocessRenderItem({itemElement:xi,itemContent:Ti,itemData:ot,itemIndex:an}),gi._executeItemRenderAction(Ge,ot,(0,R.c)(xi))}),xi},_getItemContent:function(Ge){var ot=Ge.find("."+_e);return ot.removeClass(_e),ot},_attachItemClickEvent:function(Ge,ot){!Ge||!Ge.onClick||d.A.on(ot,Q.U,function(Tt){this._itemEventHandlerByHandler(ot,Ge.onClick,{event:Tt})}.bind(this))},_renderItemContent:function(Ge){var ot=this._getItemTemplateName(Ge),Tt=this._getTemplate(ot);this._addItemContentClasses(Ge);var jt=(0,r.A)(this._createItemByTemplate(Tt,Ge));return jt.hasClass(z)?this._renderItemContentByNode(Ge,jt):Ge.container},_renderItemContentByNode:function(Ge,ot){return(0,r.A)(Ge.container).replaceWith(ot),Ge.container=(0,R.c)(ot),this._addItemContentClasses(Ge),ot},_addItemContentClasses:function(Ge){var ot=[re+ne,Ge.contentClass];(0,r.A)(Ge.container).addClass(ot.join(" "))},_appendItemToContainer:function(Ge,ot,Tt){ot.appendTo(Ge)},_renderItemFrame:function(Ge,ot,Tt,jt){var li=(0,r.A)("<div>");if(new this.constructor.ItemClass(li,this._itemOptions(),ot||{}),jt&&jt.length?jt.replaceWith(li):this._appendItemToContainer.call(this,Tt,li,Ge),this.option("useItemTextAsTitle")){var an=this._displayGetter?this._displayGetter(ot):ot;li.attr("title",an)}return li},_itemOptions:function(){var Ge=this;return{watchMethod:function(){return Ge.option("integrationOptions.watchMethod")},owner:Ge,fieldGetter:function(ot){var Tt=Ge.option(ot+"Expr");return(0,Y.Hz)(Tt)}}},_postprocessRenderItem:o.lQ,_executeItemRenderAction:function(Ge,ot,Tt){this._getItemRenderAction()({itemElement:Tt,itemIndex:Ge,itemData:ot})},_setElementData:function(Ge,ot,Tt){Ge.addClass([re,this._itemClass()].join(" ")).data(this._itemDataKey(),ot).data(this._itemIndexKey(),Tt)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(Ge){var ot=Ge.itemData,Tt=Ge.templateProperty||this.option("itemTemplateProperty");return ot&&ot[Tt]||Ge.defaultTemplateName},_createItemByTemplate:function(Ge,ot){return Ge.render({model:ot.itemData,container:ot.container,index:ot.index,onRendered:this._onItemTemplateRendered(Ge,ot)})},_onItemTemplateRendered:function(){return o.lQ},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(Ge){Ge=Ge||this.option("items");var ot=this.option("noDataText"),Tt=!ot||Ge&&Ge.length||this._dataController.isLoading();Tt&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),Tt||(this._$noData=this._$noData||(0,r.A)("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()),this.option("encodeNoDataText")?this._$noData.text(ot):this._$noData.html(ot)),this.$element().toggleClass("dx-empty-collection",!Tt)},_itemDXEventHandler:function(Ge,ot,Tt,jt){this._itemEventHandler(Ge.target,ot,(0,h.X)(Tt,{event:Ge}),jt)},_itemEventHandler:function(Ge,ot,Tt,jt){var li=this._createActionByOption(ot,(0,h.X)({validatingTargetName:"itemElement"},jt));return this._itemEventHandlerImpl(Ge,li,Tt)},_itemEventHandlerByHandler:function(Ge,ot,Tt,jt){var li=this._createAction(ot,(0,h.X)({validatingTargetName:"itemElement"},jt));return this._itemEventHandlerImpl(Ge,li,Tt)},_itemEventHandlerImpl:function(Ge,ot,Tt){var jt=this._closestItemElement((0,r.A)(Ge)),li=(0,h.X)({},Tt);return ot((0,h.X)(Tt,this._extendActionArgs(jt),li))},_extendActionArgs:function(Ge){return{itemElement:(0,R.c)(Ge),itemIndex:this._itemElements().index(Ge),itemData:this._getItemData(Ge)}},_closestItemElement:function(Ge){return(0,r.A)(Ge).closest(this._itemSelector())},_getItemData:function(Ge){return(0,r.A)(Ge).data(this._itemDataKey())},_getSummaryItemsSize(Ge,ot,Tt){var jt=0;return ot&&(0,s.__)(ot,function(li,an){"width"===Ge?jt+=(0,j.Ot)(an,Tt||!1):"height"===Ge&&(jt+=(0,j.P$)(an,Tt||!1))}),jt},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new O.A),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(I.A);pe.ItemClass=x.A;const Be=pe;var We=D(87310),tt=D(14407),vt=D(75333),Xt=D(61076),Nt=D(63789),Qe="dxItemDeleting",Lt=function(Ge){return-1!==Ge};const Mt=Be.inherit({_setOptionsByReference:function(){this.callBase(),(0,h.X)(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return(0,h.X)(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:-1,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(Ge,ot){this._userOptions=ot||{},this.callBase(Ge,ot)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule()},_initKeyGetter:function(){this._keyGetter=(0,Y.Hz)(this.option("keyExpr"))},_getKeysByItems:function(Ge){return this._editStrategy.getKeysByItems(Ge)},_getItemsByKeys:function(Ge,ot){return this._editStrategy.getItemsByKeys(Ge,ot)},_getKeyByIndex:function(Ge){return this._editStrategy.getKeyByIndex(Ge)},_getIndexByKey:function(Ge){return this._editStrategy.getIndexByKey(Ge)},_getIndexByItemData:function(Ge){return this._editStrategy.getIndexByItemData(Ge)},_isKeySpecified:function(){return!!this._dataController.key()},_getCombinedFilter:function(){return this._dataController.filter()},key:function(){return this.option("keyExpr")?this.option("keyExpr"):this._dataController.key()},keyOf:function(Ge){var ot=Ge;return this.option("keyExpr")?ot=this._keyGetter(Ge):this._dataController.store()&&(ot=this._dataController.keyOf(Ge)),ot},_nullValueSelectionSupported:function(){return!1},_initSelectionModule:function(){var Ge=this,ot=Ge._editStrategy.itemsGetter;this._selection=new Nt.A({allowNullValue:this._nullValueSelectionSupported(),mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(Tt){(Tt.addedItemKeys.length||Tt.removedItemKeys.length)&&(Ge.option("selectedItems",Ge._getItemsByKeys(Tt.selectedItemKeys,Tt.selectedItems)),Ge._updateSelectedItems(Tt))},filter:Ge._getCombinedFilter.bind(Ge),totalCount:function(){var Tt=Ge.option("items"),jt=Ge._dataController.totalCount();return jt>=0?jt:Ge._getItemsCount(Tt)},key:Ge.key.bind(Ge),keyOf:Ge.keyOf.bind(Ge),load:function(Tt){var jt,li=Ge._dataController;return Tt.customQueryParams=null===(jt=li.loadOptions())||void 0===jt?void 0:jt.customQueryParams,Tt.userData=li.userData(),li.store()?li.loadFromStore(Tt).done(function(an){if(!Ge._disposed){var xi=(0,Xt.Xp)(an).data;li.applyMapFunction(xi)}}):(new v.cY).resolve(this.plainItems())},dataFields:function(){return Ge._dataController.select()},plainItems:ot.bind(Ge._editStrategy)})},_getItemsCount:function(Ge){return Ge.reduce((ot,Tt)=>ot+(Tt.items?this._getItemsCount(Tt.items):1),0)},_initEditStrategy:function(){this._editStrategy=new(0,tt.A)(this)},_getSelectedItemIndices:function(Ge){var ot=this,Tt=[];return Ge=Ge||this._selection.getSelectedItemKeys(),ot._editStrategy.beginCache(),(0,s.__)(Ge,function(jt,li){var an=ot._getIndexByKey(li);Lt(an)&&Tt.push(an)}),ot._editStrategy.endCache(),Tt},_initMarkup:function(){this._rendering=!0,this._dataController.isLoading()||this._syncSelectionOptions().done(()=>this._normalizeSelectedItems()),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(Ge){var ot,Tt,jt,li;switch(Ge=Ge||this._chooseSelectOption()){case"selectedIndex":ot=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,_.O9)(ot)?(this._setOptionWithoutOptionChange("selectedItems",[ot]),this._setOptionWithoutOptionChange("selectedItem",ot),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([ot]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(Tt=(li=this.option("selectedItems")||[]).length?this._editStrategy.getIndexByItemData(li[0]):-1,this.option("selectionRequired")&&!Lt(Tt))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",li[0]),this._setOptionWithoutOptionChange("selectedIndex",Tt),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(li));break;case"selectedItem":if(ot=this.option("selectedItem"),Tt=this._editStrategy.getIndexByItemData(ot),this.option("selectionRequired")&&!Lt(Tt))return this._syncSelectionOptions("selectedIndex");(0,_.O9)(ot)?(this._setOptionWithoutOptionChange("selectedItems",[ot]),this._setOptionWithoutOptionChange("selectedIndex",Tt),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([ot]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",-1));break;case"selectedItemKeys":if(jt=this.option("selectedItemKeys"),this.option("selectionRequired")){var an=this._getIndexByKey(jt[0]);if(!Lt(an))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(jt)}return(new v.cY).resolve().promise()},_chooseSelectOption:function(){var Ge="selectedIndex",ot=function(Tt){var jt=this.option(Tt);return(0,_.O9)(jt)&&jt.length||Tt in this._userOptions}.bind(this);return ot("selectedItems")?Ge="selectedItems":ot("selectedItem")?Ge="selectedItem":ot("selectedItemKeys")&&(Ge="selectedItemKeys"),Ge},_compareKeys:function(Ge,ot){if(Ge.length!==ot.length)return!1;for(var Tt=0;Tt<ot.length;Tt++)if(Ge[Tt]!==ot[Tt])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var Ge=this.option("selectedItems");if(Ge.length>1||!Ge.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var ot=this._selection.getSelectedItems(),Tt=void 0===Ge[0]?ot[0]:Ge[0];return void 0===Tt&&(Tt=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&Tt&&Tt.items&&(Tt.items=[Tt.items[0]]),this._selection.setSelection(this._getKeysByItems([Tt])),this._setOptionWithoutOptionChange("selectedItems",[Tt]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(Ge))}else{var jt=this._getKeysByItems(this.option("selectedItems")),li=this._selection.getSelectedItemKeys();this._compareKeys(li,jt)||this._selection.setSelection(jt)}return(new v.cY).resolve().promise()},_itemClickHandler:function(Ge){var ot=(new v.cY).resolve(),Tt=this.callBase;this._createAction(function(jt){var li;ot=null!==(li=this._itemSelectHandler(jt.event))&&void 0!==li?li:ot}.bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,r.A)(Ge.currentTarget),event:Ge}),ot.always(()=>{Tt.apply(this,arguments)})},_itemSelectHandler:function(Ge){var ot,Tt;if(this.option("selectByClick"))return this.isItemSelected(Ge.currentTarget)?this.unselectItem(Ge.currentTarget):Tt=this.selectItem(Ge.currentTarget),null===(ot=Tt)||void 0===ot?void 0:ot.promise()},_selectedItemElement:function(Ge){return this._itemElements().eq(Ge)},_postprocessRenderItem:function(Ge){if("none"!==this.option("selectionMode")){var ot=(0,r.A)(Ge.itemElement),Tt=this._editStrategy.getNormalizedIndex(ot),jt=this._isItemSelected(Tt);this._processSelectableItem(ot,jt)}},_processSelectableItem:function(Ge,ot){Ge.toggleClass(this._selectedItemClass(),ot),this._setAriaSelectionAttribute(Ge,String(ot))},_updateSelectedItems:function(Ge){var ot=this,Tt=Ge.addedItemKeys,jt=Ge.removedItemKeys;if(ot._rendered&&(Tt.length||jt.length)){var li=ot._selectionChangePromise;if(!ot._rendering){var xi,an=[],Je=[];ot._editStrategy.beginCache();for(var Ht=0;Ht<Tt.length;Ht++)xi=ot._getIndexByKey(Tt[Ht]),an.push(xi),ot._addSelection(xi);for(var gi=0;gi<jt.length;gi++)xi=ot._getIndexByKey(jt[gi]),Je.push(xi),ot._removeSelection(xi);ot._editStrategy.endCache(),ot._updateSelection(an,Je)}(0,v.z7)(li).done(function(){ot._fireSelectionChangeEvent(Ge.addedItems,Ge.removedItems)})}},_fireSelectionChangeEvent:function(Ge,ot){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:Ge,removedItems:ot})},_updateSelection:o.lQ,_setAriaSelectionAttribute:function(Ge,ot){this.setAria("selected",ot,Ge)},_removeSelection:function(Ge){var ot=this._editStrategy.getItemElement(Ge);Lt(Ge)&&(this._processSelectableItem(ot,!1),d.A.triggerHandler(ot,"stateChanged",!1))},_addSelection:function(Ge){var ot=this._editStrategy.getItemElement(Ge);Lt(Ge)&&(this._processSelectableItem(ot,!0),d.A.triggerHandler(ot,"stateChanged",!0))},_isItemSelected:function(Ge){var ot=this._getKeyByIndex(Ge);return this._selection.isItemSelected(ot,{checkPending:!0})},_optionChanged:function(Ge){switch(Ge.name){case"selectionMode":this._invalidate();break;case"dataSource":(!Ge.value||Array.isArray(Ge.value)&&!Ge.value.length)&&this.option("selectedItemKeys",[]),this.callBase(Ge);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(Ge.name).done(()=>this._normalizeSelectedItems());break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(Ge)}},_clearSelectedItems:function(){this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(Ge){if(Ge.data(Qe))return(new v.cY).resolve().promise();Ge.data(Qe,!0);var ot=new v.cY,Tt={cancel:!1},jt=this._itemEventHandler(Ge,"onItemDeleting",Tt,{excludeValidators:["disabled","readOnly"]});return(0,v.z7)(jt).always(function(li){var an=!jt,xi=!an&&"resolved"===jt.state(),Ht=an||xi&&!arguments.length||xi&&li;(0,v.z7)((0,v.Sx)(Tt.cancel)).always(function(){Ge.data(Qe,!1)}).done(function(gi){Ht&&!gi?ot.resolve():ot.reject()}).fail(ot.reject)}.bind(this)),ot.promise()},_deleteItemFromDS:function(Ge){var ot=this._dataController,Tt=new v.cY,jt=this.option("disabled"),li=ot.store();if(!li)return(new v.cY).resolve().promise();if(!li.remove)throw We.A.Error("E1011");return this.option("disabled",!0),li.remove(ot.keyOf(this._getItemData(Ge))).done(function(an){void 0!==an?Tt.resolve():Tt.reject()}).fail(function(){Tt.reject()}),Tt.always(function(){this.option("disabled",jt)}.bind(this)),Tt},_tryRefreshLastPage:function(){var Ge=new v.cY;return this._isLastPage()||this.option("grouped")?Ge.resolve():this._refreshLastPage().done(function(){Ge.resolve()}),Ge.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataController.load()},_updateSelectionAfterDelete:function(Ge){var ot=this._getKeyByIndex(Ge);this._selection.deselect([ot])},_updateIndicesAfterIndex:function(Ge){for(var ot=this._itemElements(),Tt=Ge+1;Tt<ot.length;Tt++)(0,r.A)(ot[Tt]).data(this._itemIndexKey(),Tt-1)},_simulateOptionChange:function(Ge){var ot=this.option(Ge);ot instanceof vt.q||this._optionChangedAction({name:Ge,fullName:Ge,value:ot})},isItemSelected:function(Ge){return this._isItemSelected(this._editStrategy.getNormalizedIndex(Ge))},selectItem:function(Ge){if("none"!==this.option("selectionMode")){var ot=this._editStrategy.getNormalizedIndex(Ge);if(Lt(ot)){var Tt=this._getKeyByIndex(ot);if(!this._selection.isItemSelected(Tt)){if("single"===this.option("selectionMode"))return this._selection.setSelection([Tt]);var jt=this.option("selectedItemKeys")||[];return this._selection.setSelection([...jt,Tt],[Tt])}}}},unselectItem:function(Ge){var ot=this._editStrategy.getNormalizedIndex(Ge);if(Lt(ot)){var Tt=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&Tt.length<=1)){var jt=this._getKeyByIndex(ot);this._selection.isItemSelected(jt,{checkPending:!0})&&this._selection.deselect([jt])}}},_deleteItemElementByIndex:function(Ge){this._updateSelectionAfterDelete(Ge),this._updateIndicesAfterIndex(Ge),this._editStrategy.deleteItemAtIndex(Ge)},_afterItemElementDeleted:function(Ge,ot){var Tt=this._dataController.getDataSource()?"dataSource":"items";this._simulateOptionChange(Tt),this._itemEventHandler(Ge,"onItemDeleted",ot,{beforeExecute:function(){Ge.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(Ge){var ot=this,Tt=new v.cY,jt=this._editStrategy.getItemElement(Ge),li=this._editStrategy.getNormalizedIndex(Ge),an=this._itemResponseWaitClass();return Lt(li)?this._waitDeletingPrepare(jt).done(function(){jt.addClass(an);var xi=ot._extendActionArgs(jt);ot._deleteItemFromDS(jt).done(function(){ot._deleteItemElementByIndex(li),ot._afterItemElementDeleted(jt,xi),ot._tryRefreshLastPage().done(function(){Tt.resolveWith(ot)})}).fail(function(){jt.removeClass(an),Tt.rejectWith(ot)})}).fail(function(){Tt.rejectWith(ot)}):Tt.rejectWith(ot),Tt.promise()},reorderItem:function(Ge,ot){var Tt=new v.cY,jt=this,li=this._editStrategy,an=li.getItemElement(Ge),xi=li.getItemElement(ot),Je=li.getNormalizedIndex(Ge),Ht=li.getNormalizedIndex(ot),gi=this._dataController.getDataSource()?"dataSource":"items";return Lt(Je)&&Lt(Ht)&&Je!==Ht?Tt.resolveWith(this):Tt.rejectWith(this),Tt.promise().done(function(){xi[li.itemPlacementFunc(Je,Ht)](an),li.moveItemAtIndexToIndex(Je,Ht),this._updateIndicesAfterIndex(Je),jt.option("selectedItems",jt._getItemsByKeys(jt._selection.getSelectedItemKeys(),jt._selection.getSelectedItems())),"items"===gi&&jt._simulateOptionChange(gi),jt._itemEventHandler(an,"onItemReordered",{fromIndex:li.getIndex(Je),toIndex:li.getIndex(Ht)},{excludeValidators:["disabled","readOnly"]})})}})},14407:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>v});var r=D(24292),d=D(56221),L=D(5042),j=D(17669),o=D(72463),E=d.A.abstract;const v=d.A.inherit({ctor:function(h){this._collectionWidget=h},getIndexByItemData:E,getItemDataByIndex:E,getKeysByItems:E,getItemsByKeys:E,itemsGetter:E,getKeyByIndex:function(h){var s=this._denormalizeItemIndex(h);return this.getKeysByItems([this.getItemDataByIndex(s)])[0]},_equalKeys:function(h,s){return this._collectionWidget._isKeySpecified()?(0,L.RL)(h,s):h===s},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:E,getNormalizedIndex:function(h){return this._isNormalizedItemIndex(h)?h:this._isItemIndex(h)?this._normalizeItemIndex(h):this._isNode(h)?this._getNormalizedItemIndex(h):this._normalizeItemIndex(this.getIndexByItemData(h))},getIndex:function(h){return this._isNormalizedItemIndex(h)?this._denormalizeItemIndex(h):this._isItemIndex(h)?h:this._isNode(h)?this._denormalizeItemIndex(this._getNormalizedItemIndex(h)):this.getIndexByItemData(h)},getItemElement:function(h){if(this._isNormalizedItemIndex(h))return this._getItemByNormalizedIndex(h);if(this._isItemIndex(h))return this._getItemByNormalizedIndex(this._normalizeItemIndex(h));if(this._isNode(h))return(0,r.A)(h);var s=this._normalizeItemIndex(this.getIndexByItemData(h));return this._getItemByNormalizedIndex(s)},_isNode:h=>j.A.isNode(h&&(0,o.Kb)(h)?h.get(0):h),deleteItemAtIndex:E,itemPlacementFunc:function(h,s){return this._itemsFromSameParent(h,s)&&h<s?"after":"before"},moveItemAtIndexToIndex:E,_isNormalizedItemIndex:function(h){return"number"==typeof h&&Math.round(h)===h},_isItemIndex:E,_getNormalizedItemIndex:E,_normalizeItemIndex:E,_denormalizeItemIndex:E,_getItemByNormalizedIndex:E,_itemsFromSameParent:E}).inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(h){var s=this._collectionWidget.keyOf.bind(this._collectionWidget);return s?this.getIndexByKey(s(h)):this._getPlainItems().indexOf(h)},getItemDataByIndex:function(h){return this._getPlainItems()[h]},deleteItemAtIndex:function(h){this._getPlainItems().splice(h,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(h){var s=this._collectionWidget.keyOf.bind(this._collectionWidget),b=h;if(s){b=[];for(var O=0;O<h.length;O++)b.push(s(h[O]))}return b},getIndexByKey:function(h){var s=this._cache,b=s&&s.keys||this.getKeysByItems(this._getPlainItems());if(s&&!s.keys&&(s.keys=b),"object"!=typeof h)return b.indexOf(h);for(var O=0,w=b.length;O<w;O++)if(this._equalKeys(h,b[O]))return O;return-1},getItemsByKeys:function(h,s){return(s||h).slice()},moveItemAtIndexToIndex:function(h,s){var b=this._getPlainItems(),O=b[h];b.splice(h,1),b.splice(s,0,O)},_isItemIndex:function(h){return"number"==typeof h&&Math.round(h)===h},_getNormalizedItemIndex:function(h){return this._collectionWidget._itemElements().index(h)},_normalizeItemIndex:function(h){return h},_denormalizeItemIndex:function(h){return h},_getItemByNormalizedIndex:function(h){return h>-1?this._collectionWidget._itemElements().eq(h):null},_itemsFromSameParent:function(){return!0}})},2636:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>s});var r=D(24292),d=D(14874),L=D(87951),j=D(12101),o=D(69393),E=D(25571),R=D(12984),m=D(94014),_=D(17669),v=D(5042),h="__dx_key__";const s=d.A.inherit({_getDefaultOptions:function(){return(0,L.X)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var b;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=O=>{this._dataController.getDataSource()&&!this._dataController.isLoaded()&&(this._correctionIndex=0),this._correctionIndex&&O.storeLoadOptions&&(O.storeLoadOptions.skip+=this._correctionIndex)},null===(b=this._dataController)||void 0===b||b.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(b){var O=(0,r.A)(),w=this.key();return this.itemElements().each((f,k)=>{var I=(0,r.A)(k),x=this._getItemData(I);if(w?(0,E.t7)(w,this.keyOf(x),b):this._isItemEquals(x,b))return O=I,!1}),O},_dataSourceChangedHandler:function(b,O){null!=O&&O.changes?this._modifyByChanges(O.changes):(this.callBase(b,O),this._refreshItemsCache())},_isItemEquals:function(b,O){b&&b[h]&&(b=b.data);try{return JSON.stringify(b)===JSON.stringify(O)}catch{return b===O}},_isItemStrictEquals:function(b,O){return this._isItemEquals(b,O)},_shouldAddNewGroup:function(b,O){var w=!1;return this.option("grouped")&&(b.length||(w=!0),(0,j.__)(b,(f,k)=>{"insert"===k.type&&(w=!0,(0,j.__)(O,(I,x)=>{if(void 0!==k.data.key&&k.data.key===x.key)return w=!1,!1}))})),w},_partialRefresh:function(){if(this.option("repaintChangesOnly")){var b=(0,m.p)(this._itemsCache,this._editStrategy.itemsGetter(),O=>O&&void 0!==O[h]?O[h]:this.keyOf(O),this._isItemStrictEquals.bind(this));if(b&&this._itemsCache.length&&!this._shouldAddNewGroup(b,this._itemsCache))return this._modifyByChanges(b,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var b=this._editStrategy.itemsGetter();try{this._itemsCache=(0,L.X)(!0,[],b),this.key()||(this._itemsCache=this._itemsCache.map((O,w)=>({[h]:b[w],data:O})))}catch{this._itemsCache=(0,L.X)([],b)}}},_dispose:function(){this._dataController.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(b,O,w,f){if(f)this._renderItem(w.index,w.data,null,this._findItemElementByKey(w.key));else{var k=O[(0,o.Xb)(b,O,w.key)];k&&(0,o.yo)(b,O,w.key,w.data).done(()=>{this._renderItem(O.indexOf(k),k,null,this._findItemElementByKey(w.key))})}},_insertByChange:function(b,O,w,f){(0,R.z7)(f||(0,o.Yr)(b,O,w.data,w.index)).done(()=>{var k;this._beforeItemElementInserted(w),this._renderItem(null!==(k=w.index)&&void 0!==k?k:O.length,w.data),this._afterItemElementInserted(),this._correctionIndex++})},_updateSelectionAfterRemoveByChange:function(b){var O=this.option("selectedIndex");O>b?this.option("selectedIndex",O-1):O===b&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(b){var O=this.option("selectedIndex");b.index<=O&&this.option("selectedIndex",O+1)},_afterItemElementInserted:v.lQ,_removeByChange:function(b,O,w,f){var k=f?w.index:(0,o.Xb)(b,O,w.key);if(f?w.oldItem:O[k]){var x=this._findItemElementByKey(w.key),g=this._extendActionArgs(x);this._waitDeletingPrepare(x).done(()=>{f?(this._updateIndicesAfterIndex(k-1),this._afterItemElementDeleted(x,g),this._updateSelectionAfterRemoveByChange(k)):(this._deleteItemElementByIndex(k),this._afterItemElementDeleted(x,g))}),this._correctionIndex--}},_modifyByChanges:function(b,O){var w=this._editStrategy.itemsGetter(),f={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},k=this._dataController,I=k.paginate(),x=k.group();(I||x)&&(b=b.filter(g=>"insert"!==g.type||void 0!==g.index)),b.forEach(g=>this["_".concat(g.type,"ByChange")](f,w,g,O)),this._renderedItemsCount=w.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(b,O,w){var f=b.children(this._itemSelector()).get(w);_.A.insertElement(b.get(0),O.get(0),f)},_optionChanged:function(b){switch(b.name){case"items":this._partialRefresh(b.value)||this.callBase(b);break;case"dataSource":(!this.option("repaintChangesOnly")||!b.value)&&this.option("items",[]),this.callBase(b);break;case"repaintChangesOnly":break;default:this.callBase(b)}}})},61214:(ei,rt,D)=>{"use strict";var Ve,r=D(64905),d=D(49104),L=D(72463),j=D(7963),o=D(87951),E=D(22209),R=D(91269),m=D(27336),_=D(5042),v=Ve=>Ve.getMonth()+1,h=(Ve,qe)=>{var Yt=Ve.getDate(),Fi=f("M",Ve),_n=(0,E.df)(parseInt(qe),Fi.min,Fi.max);Ve.setMonth(_n-1,1);var{min:dr,max:ea}=f("dM",Ve),Wa=(0,E.df)(Yt,dr,ea);Ve.setDate(Wa)},s={a:Ve=>Ve.getHours()<12?0:1,E:"getDay",y:"getFullYear",M:v,L:v,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},b=(0,o.X)({},(0,m.rt)(),{a:(Ve,qe)=>{var Yt=Ve.getHours();Yt>=12!=!!parseInt(qe)&&Ve.setHours((Yt+12)%24)},d:(Ve,qe)=>{qe>f("dM",Ve).max&&Ve.setMonth(Ve.getMonth()+1),Ve.setDate(qe)},h:(Ve,qe)=>{var Yt=Ve.getHours()>=12;Ve.setHours(+qe%12+(Yt?12:0))},M:h,L:h,E:(Ve,qe)=>{qe<0||Ve.setDate(Ve.getDate()-Ve.getDay()+parseInt(qe))},y:(Ve,qe)=>{var Yt=Ve.getFullYear(),Fi=String(qe).length,_n=String(f("y",Ve).max).length,dr=parseInt(String(Yt).substr(0,_n-Fi)+qe);Ve.setFullYear(dr)}}),f=(Ve,qe,Yt)=>{var Fi={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(qe.getFullYear(),qe.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:1,max:12},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return Fi[Yt||Ve]||Fi.getAmPm},I=D(69259),x=D(65276),g=D(14435),C=D(12101),F=D(19900),Y=D(23862),Q=D(29263),se=D(83771),ie=D(91437),ee=D(24292),re=D(39504),ne=["year","day","month","day"],_e=["hours","minutes","seconds","milliseconds"],N={SUPPORTED_FORMATS:["date","time","datetime"],ONE_MINUTE:6e4,ONE_DAY:864e5,ONE_YEAR:31536e6,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:(Ve=new Date,new Date(Ve.getFullYear()+50,Ve.getMonth(),Ve.getDate(),23,59,59)),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:ne},time:{getStandardPattern:function(){return"HH:mm"},components:_e},datetime:{getStandardPattern:function(){var Ve,qe;return(qe=(0,ee.A)("<input>").attr("type","datetime")).val("2000-01-01T01:01Z"),qe.val()&&(Ve="yyyy-MM-ddTHH:mmZ"),Ve||(Ve="yyyy-MM-ddTHH:mm:ssZ"),N.FORMATS_INFO.datetime.getStandardPattern=function(){return Ve},Ve},components:[...ne,..._e]},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:[...ne,"hours","minutes","seconds"]}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(Ve,qe){var Yt=N.FORMATS_INFO[qe].getStandardPattern();return re.A.serializeDate(Ve,Yt)},fromStandardDateFormat:function(Ve){var qe=re.A.dateParser(Ve);return(0,L.$P)(qe)?qe:void 0},getMaxMonthDay:function(Ve,qe){return new Date(Ve,qe+1,0).getDate()},mergeDates:function(Ve,qe,Yt){if(!qe)return qe||null;if(!Ve||isNaN(Ve.getTime())){var Fi=new Date(null);Ve=new Date(Fi.getFullYear(),Fi.getMonth(),Fi.getDate())}var _n=new Date(Ve.valueOf());return(0,C.__)(N.FORMATS_INFO[Yt].components,function(){var ea=N.DATE_COMPONENTS_INFO[this];_n[ea.setter](qe[ea.getter]())}),_n},getLongestCaptionIndex:function(Ve){var Fi,qe=0,Yt=0;for(Fi=0;Fi<Ve.length;++Fi)Ve[Fi].length>Yt&&(qe=Fi,Yt=Ve[Fi].length);return qe},formatUsesMonthName:function(Ve){return I.A.formatUsesMonthName(Ve)},formatUsesDayName:function(Ve){return I.A.formatUsesDayName(Ve)},getLongestDate:function(Ve,qe,Yt){var Fi=function(Ve){var qe=typeof Ve;return"string"===qe?"format":"object"===qe&&void 0!==Ve.type?Ve.type:null}(Ve),_n=9;(!Fi||N.formatUsesMonthName(Fi))&&(_n=N.getLongestCaptionIndex(qe));var dr=new Date(1888,_n,21,23,59,59,999);if(!Fi||N.formatUsesDayName(Fi)){var ea=dr.getDate()-dr.getDay()+N.getLongestCaptionIndex(Yt);dr.setDate(ea)}return dr},normalizeTime:function(Ve){Ve.setSeconds(0),Ve.setMilliseconds(0)}};N.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(Ve,qe){var Yt=new Date(qe.getTime());return Yt.setFullYear(Ve),I.A.format(Yt,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(Ve,qe){var Yt=new Date(qe.getTime());return Yt.setDate(Ve),I.A.format(Yt,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(Ve){return I.A.getMonthNames()[Ve]},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(Ve){return I.A.format(new Date(0,0,0,Ve),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(Ve){return I.A.format(new Date(0,0,0,0,Ve),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(Ve){return I.A.format(new Date(0,0,0,0,0,Ve),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(Ve){return I.A.format(new Date(0,0,0,0,0,0,Ve),"millisecond")},startValue:0,endValue:999}};const G=N;var W=D(47642),z=D(20736),X=D(58168),q=D(80186),ye=D(13992),xe=D(2839),ge=D(44831),Ee=D(62273),he=D(98041),Ie=D(11299);const Qe=class Nt extends he.A{_getDefaultOptions(){return(0,o.X)(super._getDefaultOptions(),{onClick:null,onCaptionClick:null,type:"normal",stylingMode:"outlined",text:""})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return(0,Ie.gx)()},options:{type:"default",stylingMode:"text"}},{device:function(){return(0,Ie.Ft)()},options:{type:"normal",stylingMode:"text"}}])}_init(){super._init(),this._initActions()}_initActions(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")}_initMarkup(){super._initMarkup(),this.$element().addClass("dx-calendar-navigator"),this._renderButtons(),this._renderCaption()}_renderButtons(){var{rtlEnabled:qe,type:Yt,stylingMode:Fi,focusStateEnabled:_n}=this.option();this._prevButton=this._createComponent((0,ee.A)("<div>"),xe.A,{focusStateEnabled:_n,icon:qe?"chevronright":"chevronleft",onClick:Io=>{this._clickAction({direction:-1,event:Io})},type:Yt,stylingMode:Fi,integrationOptions:{}});var dr=this._prevButton.$element().addClass("dx-calendar-navigator-previous-view").addClass("dx-calendar-navigator-previous-month");this._nextButton=this._createComponent((0,ee.A)("<div>"),xe.A,{focusStateEnabled:_n,icon:qe?"chevronleft":"chevronright",onClick:Io=>{this._clickAction({direction:1,event:Io})},type:Yt,stylingMode:Fi,integrationOptions:{}});var ea=this._nextButton.$element().addClass("dx-calendar-navigator-next-view").addClass("dx-calendar-navigator-next-month");this._caption=this._createComponent((0,ee.A)("<div>").addClass("dx-calendar-caption-button"),xe.A,{focusStateEnabled:_n,onClick:Io=>{this._captionClickAction({event:Io})},type:Yt,stylingMode:Fi,template:(Io,Xo)=>{var{text:Ys}=this.option();Ys.split(" - ").forEach(td=>{(0,ee.A)(Xo).append((0,ee.A)("<span>").addClass("dx-button-text").text(td))})},integrationOptions:{}});var Wa=this._caption.$element();this.$element().append(dr,Wa,ea)}_renderCaption(){this._caption.option("text",this.option("text"))}toggleButton(qe,Yt){var _n=this["_"+qe+"Button"];_n&&(_n.option("disabled",Yt),_n.$element().toggleClass("dx-calendar-disabled-navigator-link",Yt))}_optionChanged(qe){"text"===qe.name?this._renderCaption():super._optionChanged(qe)}};var Et=D(17669),Lt=D(98332),wt=D(60181),Mt=D(18060),Ge=D(14017),{abstract:ot}=he.A,jt="dx-calendar-cell",Ht="dx-calendar-week-number-cell",gi="dx-calendar-empty-cell",ni="dx-calendar-selected-date",wi="dx-calendar-cell-in-range",ui="dx-calendar-cell-range-hover",cn="dx-calendar-cell-range-hover-start",Ui="dx-calendar-cell-range-hover-end",Xi="dx-calendar-range-start-date",Qi="dx-calendar-range-end-date",Ut="dx-calendar-contoured-date",It="td:not(.".concat(Ht,")"),yt=(0,d.b4)(Mt.U,"dxCalendar"),pt=(0,d.b4)(Ge.n,"dxCalendar"),st="dxDateValueKey",Vt=he.A.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return(0,o.X)(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,onCellHover:null,onWeekNumberClick:null,rowCount:3,colCount:4,allowValueSelection:!0,_todayDate:()=>new Date})},_initMarkup:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this.$element().append(this._createTable()),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderRange(),this._renderEvents()},_createTable:function(){this._$table=(0,ee.A)("<table>");var Ve=z.A.format("dxCalendar-ariaWidgetName");return this.setAria({label:Ve,role:"grid"},this._$table),this._$table},_renderBody:function(){this.$body=(0,ee.A)("<tbody>").appendTo(this._$table);for(var Ve={cellDate:this._getFirstCellData(),prevCellDate:null},qe=0,Yt=this.option("rowCount");qe<Yt;qe++){Ve.row=this._createRow();for(var Fi=0,_n=this.option("colCount");Fi<_n;Fi++)this._renderCell(Ve,Fi);this._renderWeekNumberCell(Ve)}},_createRow:function(){var Ve=Et.A.createElement("tr");return this.setAria("role","row",(0,ee.A)(Ve)),this.$body.get(0).appendChild(Ve),Ve},_createCell:function(Ve,qe){var Yt=Et.A.createElement("td"),Fi=(0,ee.A)(Yt);return Yt.className=this._getClassNameByDate(Ve,qe),Yt.setAttribute("data-value",re.A.serializeDate(Ve,ie.A.getShortDateFormat())),(0,Lt.p)(Yt,st,Ve),this.setAria({role:"gridcell",label:this.getCellAriaLabel(Ve)},Fi),{cell:Yt,$cell:Fi}},_renderCell:function(Ve,qe){var{cellDate:Yt,prevCellDate:Fi,row:_n}=Ve;Fi&&ie.A.fixTimezoneGap(Fi,Yt),Ve.prevCellDate=Yt;var{cell:dr,$cell:ea}=this._createCell(Yt,qe),Wa=this.option("cellTemplate");(0,ee.A)(_n).append(dr),Wa?Wa.render(this._prepareCellTemplateData(Yt,qe,ea)):dr.innerHTML=this._getCellText(Yt),Ve.cellDate=this._getNextCellData(Yt)},_getClassNameByDate:function(Ve,qe){var Yt=jt;return this._isTodayCell(Ve)&&(Yt+=" ".concat("dx-calendar-today")),(this._isDateOutOfRange(Ve)||this.isDateDisabled(Ve))&&(Yt+=" ".concat(gi)),this._isOtherView(Ve)&&(Yt+=" ".concat("dx-calendar-other-view")),"range"===this.option("selectionMode")&&(0===qe&&(Yt+=" ".concat("dx-calendar-cell-start-in-row")),qe===this.option("colCount")-1&&(Yt+=" ".concat("dx-calendar-cell-end-in-row")),this._isStartDayOfMonth(Ve)&&(Yt+=" ".concat("dx-calendar-cell-start")),this._isEndDayOfMonth(Ve)&&(Yt+=" ".concat("dx-calendar-cell-end"))),Yt},_prepareCellTemplateData:function(Ve,qe,Yt){var Fi=Ve instanceof Date;return{model:{text:Fi?this._getCellText(Ve):Ve,date:Fi?Ve:void 0,view:this._getViewName()},container:(0,wt.c)(Yt),index:qe}},_renderEvents:function(){this._createCellClickAction(),R.A.off(this._$table,yt),R.A.on(this._$table,yt,It,qe=>{(0,ee.A)(qe.currentTarget).hasClass(gi)||this._cellClickAction({event:qe,value:(0,ee.A)(qe.currentTarget).data(st)})});var{selectionMode:Ve}=this.option();R.A.off(this._$table,pt),"range"===Ve&&(this._createCellHoverAction(),R.A.on(this._$table,pt,It,qe=>{(0,ee.A)(qe.currentTarget).hasClass(gi)||this._cellHoverAction({event:qe,value:(0,ee.A)(qe.currentTarget).data(st)})})),"single"!==Ve&&(this._createWeekNumberCellClickAction(),R.A.on(this._$table,yt,".".concat(Ht),qe=>{var Yt=(0,ee.A)(qe.currentTarget).closest("tr"),Fi=Yt.find(".".concat(jt)).first().data(st),_n=Yt.find(".".concat(jt)).last().data(st),dr=[...ie.A.getDatesOfInterval(Fi,_n,864e5),_n];this._weekNumberCellClickAction({event:qe,rowDates:dr})}))},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createCellHoverAction:function(){this._cellHoverAction=this._createActionByOption("onCellHover")},_createWeekNumberCellClickAction:function(){this._weekNumberCellClickAction=this._createActionByOption("onWeekNumberClick")},_createDisabledDatesHandler:function(){var Ve=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(Ve)?this._getDefaultDisabledDatesHandler(Ve):Ve||_.lQ},_getDefaultDisabledDatesHandler:function(Ve){return _.lQ},_isTodayCell:ot,_isDateOutOfRange:ot,isDateDisabled:function(Ve){var qe={date:Ve,view:this._getViewName()};return this._disabledDatesHandler(qe)},_isOtherView:ot,_isStartDayOfMonth:ot,_isEndDayOfMonth:ot,_getCellText:ot,_getFirstCellData:ot,_getNextCellData:ot,_renderContouredDate:function(Ve){if(this.option("focusStateEnabled")){Ve=Ve||this.option("contouredDate");var qe=this._getContouredCell(),Yt=this._getCellByDate(Ve);qe.removeClass(Ut),Ve&&Yt.addClass(Ut)}},_getContouredCell:function(){return this._$table.find(".".concat(Ut))},_renderValue:function(){if(this.option("allowValueSelection")){var Ve=this.option("value");Array.isArray(Ve)||(Ve=[Ve]),this._updateSelectedClass(Ve)}},_updateSelectedClass:function(Ve){var qe;this._isRangeMode()&&!this._isMonthView()||(null===(qe=this._$selectedCells)||void 0===qe||qe.forEach(Yt=>{Yt.removeClass(ni)}),this._$selectedCells=Ve.map(Yt=>this._getCellByDate(Yt)),this._$selectedCells.forEach(Yt=>{Yt.addClass(ni)}))},_renderRange:function(){var Ve,qe,Yt,Fi,_n,dr,ea,Wa,{allowValueSelection:Io,value:Xo,range:Ys}=this.option();!Io||!this._isRangeMode()||!this._isMonthView()||(null===(Ve=this._$rangeCells)||void 0===Ve||Ve.forEach(ol=>{ol.removeClass(wi)}),null===(qe=this._$hoveredRangeCells)||void 0===qe||qe.forEach(ol=>{ol.removeClass(ui)}),null===(Yt=this._$rangeStartHoverCell)||void 0===Yt||Yt.removeClass(cn),null===(Fi=this._$rangeEndHoverCell)||void 0===Fi||Fi.removeClass(Ui),null===(_n=this._$rangeStartDateCell)||void 0===_n||_n.removeClass(Xi),null===(dr=this._$rangeEndDateCell)||void 0===dr||dr.removeClass(Qi),this._$rangeCells=Ys.map(ol=>this._getCellByDate(ol)),this._$rangeStartDateCell=this._getCellByDate(Xo[0]),this._$rangeEndDateCell=this._getCellByDate(Xo[1]),this._$rangeCells.forEach(ol=>{ol.addClass(wi)}),null===(ea=this._$rangeStartDateCell)||void 0===ea||ea.addClass(Xi),null===(Wa=this._$rangeEndDateCell)||void 0===Wa||Wa.addClass(Qi))},_renderHoveredRange(){var Ve,qe,Yt,Fi,_n,{allowValueSelection:dr,hoveredRange:ea}=this.option();!dr||!this._isRangeMode()||!this._isMonthView()||(null===(Ve=this._$hoveredRangeCells)||void 0===Ve||Ve.forEach(Wa=>{Wa.removeClass(ui)}),null===(qe=this._$rangeStartHoverCell)||void 0===qe||qe.removeClass(cn),null===(Yt=this._$rangeEndHoverCell)||void 0===Yt||Yt.removeClass(Ui),this._$hoveredRangeCells=ea.map(Wa=>this._getCellByDate(Wa)),this._$rangeStartHoverCell=this._getCellByDate(ea[0]),this._$rangeEndHoverCell=this._getCellByDate(ea[ea.length-1]),this._$hoveredRangeCells.forEach(Wa=>{Wa.addClass(ui)}),null===(Fi=this._$rangeStartHoverCell)||void 0===Fi||Fi.addClass(cn),null===(_n=this._$rangeEndHoverCell)||void 0===_n||_n.addClass(Ui))},_isMonthView:function(){return"month"===this.option("zoomLevel")},_isRangeMode:function(){return"range"===this.option("selectionMode")},getCellAriaLabel:function(Ve){return this._getCellText(Ve)},_getFirstAvailableDate:function(){var Ve=this.option("date"),qe=this.option("min");return Ve=ie.A.getViewFirstCellDate(this._getViewName(),Ve),new Date(qe&&Ve<qe?qe:Ve)},_getCellByDate:ot,isBoundary:ot,_optionChanged:function(Ve){var{name:qe,value:Yt}=Ve;switch(qe){case"value":this._renderValue();break;case"range":this._renderRange();break;case"hoveredRange":this._renderHoveredRange();break;case"contouredDate":this._renderContouredDate(Yt);break;case"onCellClick":this._createCellClickAction();break;case"onCellHover":this._createCellHoverAction();break;case"min":case"max":case"disabledDates":case"cellTemplate":case"selectionMode":this._invalidate();break;case"_todayDate":this._renderBody();break;default:this.callBase(Ve)}}});const ci=Vt;var mi={month:ci.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return(0,o.X)(this.callBase(),{firstDayOfWeek:0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find(".".concat("dx-calendar-other-view")).addClass("dx-calendar-other-month")},_renderFocusTarget:_.lQ,getCellAriaLabel:function(Ve){return I.A.format(Ve,"longdate")},_renderHeader:function(){var Ve=(0,ee.A)("<tr>"),qe=(0,ee.A)("<thead>").append(Ve);this._$table.prepend(qe);for(var Yt=0,Fi=this.option("colCount");Yt<Fi;Yt++)this._renderHeaderCell(Yt,Ve);this.option("showWeekNumbers")&&this._renderWeekHeaderCell(Ve)},_renderHeaderCell:function(Ve,qe){var{firstDayOfWeek:Yt}=this.option(),{full:Fi,abbreviated:_n}=this._getDayCaption(Yt+Ve),dr=(0,ee.A)("<th>").attr({scope:"col",abbr:Fi}).text(_n);qe.append(dr)},_renderWeekHeaderCell:function(Ve){var qe=(0,ee.A)("<th>").attr({scope:"col",abbr:"WeekNumber",class:"dx-week-number-header"});Ve.prepend(qe)},_renderWeekNumberCell:function(Ve){var{showWeekNumbers:qe,cellTemplate:Yt,selectionMode:Fi,selectWeekOnClick:_n}=this.option();if(qe){var dr=this._getWeekNumber(Ve.prevCellDate),ea=Et.A.createElement("td"),Wa=(0,ee.A)(ea);ea.className="dx-calendar-week-number-cell","single"!==Fi&&_n&&Wa.addClass("dx-calendar-week-selection"),Yt?Yt.render(this._prepareCellTemplateData(dr,-1,Wa)):ea.innerHTML=dr,Ve.row.prepend(ea),this.setAria({role:"gridcell",label:"Week ".concat(dr)},Wa)}},_getWeekNumber:function(Ve){var{weekNumberRule:qe,firstDayOfWeek:Yt}=this.option();return ie.A.getWeekNumber(Ve,Yt,"auto"===qe?1===Yt?"firstFourDays":"firstDay":qe)},getNavigatorCaption:function(){return I.A.format(this.option("date"),"monthandyear")},_isTodayCell:function(Ve){var qe=this.option("_todayDate")();return ie.A.sameDate(Ve,qe)},_isDateOutOfRange:function(Ve){var qe=this.option("min"),Yt=this.option("max");return!ie.A.dateInRange(Ve,qe,Yt,"date")},_isOtherView:function(Ve){return Ve.getMonth()!==this.option("date").getMonth()},_isStartDayOfMonth:function(Ve){return ie.A.sameDate(Ve,ie.A.getFirstMonthDate(this.option("date")))},_isEndDayOfMonth:function(Ve){return ie.A.sameDate(Ve,ie.A.getLastMonthDate(this.option("date")))},_getCellText:function(Ve){return I.A.format(Ve,"d")},_getDayCaption:function(Ve){var Yt=Ve%this.option("colCount");return{full:I.A.getDayNames()[Yt],abbreviated:I.A.getDayNames("abbreviated")[Yt]}},_getFirstCellData:function(){var{firstDayOfWeek:Ve}=this.option(),qe=ie.A.getFirstMonthDate(this.option("date")),Yt=Ve-qe.getDay(),Fi=this.option("colCount");return Yt>=0&&(Yt-=Fi),qe.setDate(qe.getDate()+Yt),qe},_getNextCellData:function(Ve){return(Ve=new Date(Ve)).setDate(Ve.getDate()+1),Ve},_getCellByDate:function(Ve){return this._$table.find("td[data-value='".concat(re.A.serializeDate(Ve,ie.A.getShortDateFormat()),"']"))},isBoundary:function(Ve){return ie.A.sameMonthAndYear(Ve,this.option("min"))||ie.A.sameMonthAndYear(Ve,this.option("max"))},_getDefaultDisabledDatesHandler:function(Ve){return function(qe){if(Ve.some(function(Fi){return ie.A.sameDate(Fi,qe.date)}))return!0}}}),year:ci.inherit({_getViewName:function(){return"year"},_isTodayCell:function(Ve){var qe=this.option("_todayDate")();return ie.A.sameMonthAndYear(Ve,qe)},_isDateOutOfRange:function(Ve){return!ie.A.dateInRange(Ve,ie.A.getFirstMonthDate(this.option("min")),ie.A.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_isStartDayOfMonth:function(){return!1},_isEndDayOfMonth:function(){return!1},_getCellText:function(Ve){return I.A.getMonthNames("abbreviated")[Ve.getMonth()]},_getFirstCellData:function(){var Ve=this.option("date"),qe=new Date(Ve);return qe.setDate(1),qe.setMonth(0),qe},_getNextCellData:function(Ve){return(Ve=new Date(Ve)).setMonth(Ve.getMonth()+1),Ve},_getCellByDate:function(Ve){var qe=new Date(Ve);return qe.setDate(1),this._$table.find("td[data-value='".concat(re.A.serializeDate(qe,ie.A.getShortDateFormat()),"']"))},getCellAriaLabel:function(Ve){return I.A.format(Ve,"monthandyear")},getNavigatorCaption:function(){return I.A.format(this.option("date"),"yyyy")},isBoundary:function(Ve){return ie.A.sameYear(Ve,this.option("min"))||ie.A.sameYear(Ve,this.option("max"))},_renderWeekNumberCell:_.lQ}),decade:ci.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(Ve){var qe=this.option("_todayDate")();return ie.A.sameYear(Ve,qe)},_isDateOutOfRange:function(Ve){var qe=this.option("min"),Yt=this.option("max");return!ie.A.dateInRange(Ve.getFullYear(),qe&&qe.getFullYear(),Yt&&Yt.getFullYear())},_isOtherView:function(Ve){var qe=new Date(Ve);return qe.setMonth(1),!ie.A.sameDecade(qe,this.option("date"))},_isStartDayOfMonth:function(){return!1},_isEndDayOfMonth:function(){return!1},_getCellText:function(Ve){return I.A.format(Ve,"yyyy")},_getFirstCellData:function(){var Ve=ie.A.getFirstYearInDecade(this.option("date"))-1;return ie.A.createDateWithFullYear(Ve,0,1)},_getNextCellData:function(Ve){return(Ve=new Date(Ve)).setFullYear(Ve.getFullYear()+1),Ve},getNavigatorCaption:function(){var Ve=this.option("date"),qe=ie.A.getFirstYearInDecade(Ve),Yt=new Date(Ve),Fi=new Date(Ve);return Yt.setFullYear(qe),Fi.setFullYear(qe+9),I.A.format(Yt,"yyyy")+"-"+I.A.format(Fi,"yyyy")},_isValueOnCurrentView:function(Ve,qe){return ie.A.sameDecade(Ve,qe)},_getCellByDate:function(Ve){var qe=new Date(Ve);return qe.setDate(1),qe.setMonth(0),this._$table.find("td[data-value='".concat(re.A.serializeDate(qe,ie.A.getShortDateFormat()),"']"))},isBoundary:function(Ve){return ie.A.sameDecade(Ve,this.option("min"))||ie.A.sameDecade(Ve,this.option("max"))},_renderWeekNumberCell:_.lQ}),century:ci.inherit({_getViewName:function(){return"century"},_isTodayCell:function(Ve){var qe=this.option("_todayDate")();return ie.A.sameDecade(Ve,qe)},_isDateOutOfRange:function(Ve){var qe=ie.A.getFirstYearInDecade(Ve),Yt=ie.A.getFirstYearInDecade(this.option("min")),Fi=ie.A.getFirstYearInDecade(this.option("max"));return!ie.A.dateInRange(qe,Yt,Fi)},_isOtherView:function(Ve){var qe=new Date(Ve);return qe.setMonth(1),!ie.A.sameCentury(qe,this.option("date"))},_isStartDayOfMonth:function(){return!1},_isEndDayOfMonth:function(){return!1},_getCellText:function(Ve){var qe=I.A.format(Ve,"yyyy"),Yt=new Date(Ve);return Yt.setFullYear(Yt.getFullYear()+9),qe+" - "+I.A.format(Yt,"yyyy")},_getFirstCellData:function(){var Ve=ie.A.getFirstDecadeInCentury(this.option("date"))-10;return ie.A.createDateWithFullYear(Ve,0,1)},_getNextCellData:function(Ve){return(Ve=new Date(Ve)).setFullYear(Ve.getFullYear()+10),Ve},_getCellByDate:function(Ve){var qe=new Date(Ve);return qe.setDate(1),qe.setMonth(0),qe.setFullYear(ie.A.getFirstYearInDecade(qe)),this._$table.find("td[data-value='".concat(re.A.serializeDate(qe,ie.A.getShortDateFormat()),"']"))},getNavigatorCaption:function(){var Ve=this.option("date"),qe=ie.A.getFirstDecadeInCentury(Ve),Yt=new Date(Ve),Fi=new Date(Ve);return Yt.setFullYear(qe),Fi.setFullYear(qe+99),I.A.format(Yt,"yyyy")+"-"+I.A.format(Fi,"yyyy")},isBoundary:function(Ve){return ie.A.sameCentury(Ve,this.option("min"))||ie.A.sameCentury(Ve,this.option("max"))},_renderWeekNumberCell:_.lQ})};const Kt=mi;var qi=D(12824),Wi=D(3930),yn=D(63798);const ar=class Ur{constructor(qe){this.calendar=qe}dateOption(qe){return this.calendar._dateOption(qe)}dateValue(qe,Yt){this.calendar._dateValue(qe,Yt)}skipNavigate(){this.calendar._skipNavigate=!0}updateAriaSelected(qe,Yt){this.calendar._updateAriaSelected(qe,Yt),qe[0]&&this.calendar.option("currentDate").getTime()===qe[0].getTime()&&this.calendar._updateAriaId(qe[0])}processValueChanged(qe,Yt){var Fi,_n;(0,L.O9)(qe)&&!Array.isArray(qe)&&(qe=[qe]),(0,L.O9)(Yt)&&!Array.isArray(Yt)&&(Yt=[Yt]),qe=(null===(Fi=qe)||void 0===Fi?void 0:Fi.map(dr=>this._convertToDate(dr)))||[],Yt=(null===(_n=Yt)||void 0===_n?void 0:_n.map(dr=>this._convertToDate(dr)))||[],this._updateViewsValue(qe),this.updateAriaSelected(qe,Yt),this._currentDateChanged||this.calendar._initCurrentDate(),this._currentDateChanged=!1}_isDateDisabled(qe){var Yt=this.calendar._dateOption("min"),Fi=this.calendar._dateOption("max"),_n=(0,L.O9)(Yt)&&qe<Yt&&!ie.A.sameDate(Yt,qe),dr=(0,L.O9)(Fi)&&qe>Fi&&!ie.A.sameDate(Fi,qe);return this.calendar._view.isDateDisabled(qe)||_n||dr}_getLowestDateInArray(qe){if(qe.length)return new Date(Math.min(...qe))}_convertToDate(qe){return this.calendar._convertToDate(qe)}_isMaxZoomLevel(){return this.calendar._isMaxZoomLevel()}_updateViewsOption(qe,Yt){this.calendar._updateViewsOption(qe,Yt)}_updateViewsValue(qe){this._updateViewsOption("value",qe)}_updateCurrentDate(qe){this.calendar.option("currentDate",qe??new Date)}_shouldHandleWeekNumberClick(){var{selectionMode:qe,selectWeekOnClick:Yt}=this.calendar.option();return Yt&&"single"!==qe}};var uo="dx-calendar",Pi="dx-calendar-view",ji=(0,d.b4)(Ge._,"dxCalendar"),wn={month:3,year:2,decade:1,century:0},En={SingleSelection:class na extends ar{constructor(qe){super(qe),this.NAME="SingleSelection"}getViewOptions(){return{value:this.dateOption("value"),range:[],selectionMode:"single"}}selectValue(qe,Yt){this.skipNavigate(),this.dateValue(qe,Yt)}updateAriaSelected(qe,Yt){var Fi,_n;null!==(Fi=qe)&&void 0!==Fi||(qe=[this.dateOption("value")]),null!==(_n=Yt)&&void 0!==_n||(Yt=[]),super.updateAriaSelected(qe,Yt)}getDefaultCurrentDate(){return this.dateOption("value")}restoreValue(){this.calendar.option("value",null)}_updateViewsValue(qe){this._updateViewsOption("value",qe[0])}},MultipleSelection:class sa extends ar{constructor(qe){super(qe),this.NAME="MultiSelection"}getViewOptions(){return{value:this.dateOption("value"),range:[],selectionMode:"multi",onWeekNumberClick:this._shouldHandleWeekNumberClick()?this._weekNumberClickHandler.bind(this):null}}selectValue(qe,Yt){var Fi=[...this.dateOption("value")],_n=Fi.findIndex(dr=>dr?.toDateString()===qe.toDateString());_n>-1?Fi.splice(_n,1):Fi.push(qe),this.skipNavigate(),this._updateCurrentDate(qe),this._currentDateChanged=!0,this.dateValue(Fi,Yt)}updateAriaSelected(qe,Yt){var Fi,_n;null!==(Fi=qe)&&void 0!==Fi||(qe=this.dateOption("value")),null!==(_n=Yt)&&void 0!==_n||(Yt=[]),super.updateAriaSelected(qe,Yt)}getDefaultCurrentDate(){var qe=this.dateOption("value").filter(Yt=>Yt);return this._getLowestDateInArray(qe)}restoreValue(){this.calendar.option("value",[])}_weekNumberClickHandler(qe){var{rowDates:Yt,event:Fi}=qe,_n=Yt.filter(dr=>!this._isDateDisabled(dr));this.dateValue(_n,Fi)}},RangeSelection:class ja extends ar{constructor(qe){super(qe),this.NAME="RangeSelection"}getViewOptions(){var qe=this._getValue();return{value:qe,range:this._getDaysInRange(qe[0],qe[1]),selectionMode:"range",onCellHover:this._cellHoverHandler.bind(this),onWeekNumberClick:this._shouldHandleWeekNumberClick()?this._weekNumberClickHandler.bind(this):null}}selectValue(qe,Yt){var[Fi,_n]=this._getValue();this.skipNavigate(),this._updateCurrentDate(qe),this._currentDateChanged=!0,!0===this.calendar.option("_allowChangeSelectionOrder")?(this.calendar._valueSelected=!0,"startDate"===this.calendar.option("_currentSelection")?this.calendar._convertToDate(qe)>this.calendar._convertToDate(_n)?this.dateValue([qe,null],Yt):this.dateValue([qe,_n],Yt):this.calendar._convertToDate(qe)>=this.calendar._convertToDate(Fi)?this.dateValue([Fi,qe],Yt):this.dateValue([qe,null],Yt)):this.dateValue(!Fi||_n?[qe,null]:Fi<qe?[Fi,qe]:[qe,Fi],Yt)}updateAriaSelected(qe,Yt){var Fi,_n;null!==(Fi=qe)&&void 0!==Fi||(qe=this._getValue()),null!==(_n=Yt)&&void 0!==_n||(Yt=[]),super.updateAriaSelected(qe,Yt)}processValueChanged(qe,Yt){super.processValueChanged(qe,Yt);var Fi=this._getRange();this._updateViewsOption("range",Fi)}getDefaultCurrentDate(){var{_allowChangeSelectionOrder:qe,_currentSelection:Yt}=this.calendar.option(),Fi=this.dateOption("value");if(qe){if("startDate"===Yt&&Fi[0])return Fi[0];if("endDate"===Yt&&Fi[1])return Fi[1]}var _n=Fi.filter(dr=>dr);return this._getLowestDateInArray(_n)}restoreValue(){this.calendar.option("value",[null,null])}_getValue(){var qe=this.dateOption("value");if(!qe.length)return qe;var[Yt,Fi]=qe;return Yt&&Fi&&Yt>Fi&&([Yt,Fi]=[Fi,Yt]),[Yt,Fi]}_getRange(){var[qe,Yt]=this._getValue();return this._getDaysInRange(qe,Yt)}_getDaysInRange(qe,Yt){if(!qe||!Yt)return[];var{currentDate:Fi,viewsCount:_n}=this.calendar.option(),dr=this.calendar._isAdditionalViewDate(Fi),ea=ie.A.getFirstMonthDate(ie.A.addDateInterval(Fi,"month",dr?-2:-1)),Wa=ie.A.getLastMonthDate(ie.A.addDateInterval(Fi,"month",dr?1:_n)),Io=new Date(Math.max(ea,qe)),Xo=new Date(Math.min(Wa,Yt));return[...ie.A.getDatesOfInterval(Io,Xo,864e5),Xo]}_cellHoverHandler(qe){var Yt=this._isMaxZoomLevel(),[Fi,_n]=this._getValue(),{_allowChangeSelectionOrder:dr,_currentSelection:ea}=this.calendar.option();if(Yt){if(!Fi||_n||dr&&"startDate"===ea){if(Fi||!_n||dr&&"endDate"===ea){if(Fi&&_n){if("startDate"===ea&&qe.value<Fi)return void this._updateViewsOption("hoveredRange",this._getDaysInRange(qe.value,Fi));if("endDate"===ea&&qe.value>_n)return void this._updateViewsOption("hoveredRange",this._getDaysInRange(_n,qe.value))}}else if(qe.value<_n)return void this._updateViewsOption("hoveredRange",this._getDaysInRange(qe.value,_n))}else if(qe.value>Fi)return void this._updateViewsOption("hoveredRange",this._getDaysInRange(Fi,qe.value));this._updateViewsOption("hoveredRange",[])}}_weekNumberClickHandler(qe){var{rowDates:Yt,event:Fi}=qe,_n=Yt.filter(ea=>!this._isDateDisabled(ea));this.dateValue(_n.length?[_n[0],_n[_n.length-1]]:[null,null],Fi)}}},_r=ge.A.inherit({_activeStateUnit:".dx-calendar-cell",_getDefaultOptions:function(){return(0,o.X)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,viewsCount:1,zoomLevel:"month",maxZoomLevel:"month",minZoomLevel:"century",selectionMode:"single",selectWeekOnClick:!0,showTodayButton:!1,showWeekNumbers:!1,weekNumberRule:"auto",cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,skipFocusCheck:!1,_todayDate:()=>new Date})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===Y.A.real().deviceType&&!Y.A.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return(0,o.X)(this.callBase(),{rightArrow:function(Ve){Ve.preventDefault(),(0,d.By)(Ve)?this._waitRenderView(1):this._moveCurrentDateByOffset(1*this._getRtlCorrection())},leftArrow:function(Ve){Ve.preventDefault(),(0,d.By)(Ve)?this._waitRenderView(-1):this._moveCurrentDateByOffset(-1*this._getRtlCorrection())},upArrow:function(Ve){if(Ve.preventDefault(),(0,d.By)(Ve))this._navigateUp();else{if(Wi.A.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(-1*this._view.option("colCount"))}},downArrow:function(Ve){if(Ve.preventDefault(),(0,d.By)(Ve))this._navigateDown();else{if(Wi.A.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(1*this._view.option("colCount"))}},home:function(Ve){Ve.preventDefault();var qe=this.option("zoomLevel"),Yt=this.option("currentDate"),Fi=this._dateOption("min");if(!this._view.isDateDisabled(Yt)){var _n=ie.A.sameView(qe,Yt,Fi)?Fi:ie.A.getViewFirstCellDate(qe,Yt);this._moveToClosestAvailableDate(_n)}},end:function(Ve){Ve.preventDefault();var qe=this.option("zoomLevel"),Yt=this.option("currentDate"),Fi=this._dateOption("max");if(!this._view.isDateDisabled(Yt)){var _n=ie.A.sameView(qe,Yt,Fi)?Fi:ie.A.getViewLastCellDate(qe,Yt);this._moveToClosestAvailableDate(_n)}},pageUp:function(Ve){Ve.preventDefault(),this._waitRenderView(-1*this._getRtlCorrection())},pageDown:function(Ve){Ve.preventDefault(),this._waitRenderView(1*this._getRtlCorrection())},tab:_.lQ,enter:this._enterKeyHandler})},_enterKeyHandler:function(Ve){if(this._isMaxZoomLevel()){if(!this._view.isDateDisabled(this.option("currentDate"))){var qe=this._updateTimeComponent(this.option("currentDate"));this._selectionStrategy.selectValue(qe,Ve)}}else this._navigateDown()},_getSerializationFormat:function(Ve){var qe=this.option(Ve||"value");return this.option("dateSerializationFormat")?this.option("dateSerializationFormat"):(0,L.kf)(qe)?"number":(0,L.Kg)(qe)?re.A.getDateSerializationFormat(qe):void 0},_convertToDate:function(Ve){return re.A.deserializeDate(Ve)},_dateValue:function(Ve,qe){if(qe){if("keydown"===qe.type){var Yt=this._view._getContouredCell().get(0);qe.target=Yt}this._saveValueChangeEvent(qe)}this._dateOption("value",Ve)},_dateOption:function(Ve,qe){var Yt="value"===Ve&&!this._isSingleMode(),Fi=this.option("value");if(1===arguments.length)return Yt?(Fi??[]).map(ea=>this._convertToDate(ea)):this._convertToDate(this.option(Ve));var _n=this._getSerializationFormat(Ve),dr=Yt?qe?.map(ea=>re.A.serializeDate(ea,_n))||[]:re.A.serializeDate(qe,_n);this.option(Ve,dr)},_isSingleMode:function(){return"single"===this.option("selectionMode")},_shiftDate:function(Ve,qe,Yt,Fi){switch(Ve){case"month":qe.setDate(qe.getDate()+Yt*Fi);break;case"year":qe.setMonth(qe.getMonth()+Yt*Fi);break;case"decade":qe.setFullYear(qe.getFullYear()+Yt*Fi);break;case"century":qe.setFullYear(qe.getFullYear()+10*Yt*Fi)}},_moveCurrentDateByOffset:function(Ve){var qe=this.option("currentDate"),Yt=new Date(qe),Fi=this.option("zoomLevel");this._shiftDate(Fi,Yt,Ve,1);for(var _n=this._getMaxDate(),dr=this._getMinDate(),ea=this._areDatesInNeighborView(Fi,Yt,qe),Wa=(0,E.r4)(Yt,dr,_n)&&ea,Io=new Date(Yt);Wa;){if(!this._view.isDateDisabled(Io)){Yt=Io;break}this._shiftDate(Fi,Io,Ve,1),ea=this._areDatesInNeighborView(Fi,Io,qe),Wa=(0,E.r4)(Io,dr,_n)&&ea}if(this._view.isDateDisabled(qe)||this._view.isDateDisabled(Yt)){var Xo=Ve>0?1:-1;(1===Xo?this._isNextViewDisabled():this._isPrevViewDisabled())?this._moveToClosestAvailableDate(Yt):this._waitRenderView(Xo)}else this._skipNavigate=!0,this.option("currentDate",Yt)},_isNextViewDisabled(){return this._navigator._nextButton.option("disabled")},_isPrevViewDisabled(){return this._navigator._prevButton.option("disabled")},_areDatesInSameView(Ve,qe,Yt){switch(Ve){case"month":return qe.getMonth()===Yt.getMonth();case"year":return qe.getYear()===Yt.getYear();case"decade":return parseInt(qe.getYear()/10)===parseInt(Yt.getYear()/10);case"century":return parseInt(qe.getYear()/100)===parseInt(Yt.getYear()/100)}},_areDatesInNeighborView(Ve,qe,Yt){switch(Ve){case"month":return Fi=qe.getMonth(),_n=Yt.getMonth(),dr=Math.abs(Fi-_n),Math.min(dr,12-dr)<=1;case"year":return Math.abs(qe.getYear()-Yt.getYear())<=1;case"decade":return Math.abs(qe.getYear()-Yt.getYear())<=10;case"century":return Math.abs(qe.getYear()-Yt.getYear())<=100}var Fi,_n,dr},_moveToClosestAvailableDate:function(){var ea,Wa,Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("currentDate"),qe=new Date(Ve),Yt=this.option("zoomLevel"),Fi=!this._isDateNotAvailable(qe),_n=Fi,dr=Fi,Io=new Date(qe),Xo=new Date(qe);do{if(_n){qe=Io;break}if(dr){qe=Xo;break}this._shiftDate(Yt,Io,1,1),this._shiftDate(Yt,Xo,1,-1),ea=this._areDatesInSameView(Yt,Io,Ve),Wa=this._areDatesInSameView(Yt,Xo,Ve),_n=ea&&!this._isDateNotAvailable(Io),dr=Wa&&!this._isDateNotAvailable(Xo)}while(ea||Wa);this.option("currentDate",qe)},_isDateNotAvailable:function(Ve){var qe=this._getMaxDate(),Yt=this._getMinDate();return!(0,E.r4)(Ve,Yt,qe)||this._view.isDateDisabled(Ve)},_init:function(){this.callBase(),this._initSelectionStrategy(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_initSelectionStrategy:function(){var Ve=this._getSelectionStrategyName();(!this._selectionStrategy||this._selectionStrategy.NAME!==Ve)&&(this._selectionStrategy=new(0,En[Ve])(this))},_refreshSelectionStrategy:function(){this._initSelectionStrategy(),this._selectionStrategy.restoreValue(),this._refresh()},_getSelectionStrategyName:function(){switch(this.option("selectionMode")){case"multiple":return"MultipleSelection";case"range":return"RangeSelection";default:return"SingleSelection"}},_correctZoomLevel:function(){var Ve=this.option("minZoomLevel"),qe=this.option("maxZoomLevel"),Yt=this.option("zoomLevel");wn[qe]<wn[Ve]||(wn[Yt]>wn[qe]?this.option("zoomLevel",qe):wn[Yt]<wn[Ve]&&this.option("zoomLevel",Ve))},_initCurrentDate:function(){var Ve,qe=null!==(Ve=this._getNormalizedDate(this._selectionStrategy.getDefaultCurrentDate()))&&void 0!==Ve?Ve:this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",qe)},_getNormalizedDate:function(Ve){return Ve=ie.A.normalizeDate(Ve,this._getMinDate(),this._getMaxDate()),(0,L.O9)(Ve)?this._getDate(Ve):Ve},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this._templateManager.addDefaultTemplates({cell:new yn.l(function(Ve){var qe=Ve.model;(0,ee.A)(Ve.container).append((0,ee.A)("<span>").text(qe&&qe.text||String(qe)))})}),this.callBase()},_updateCurrentDate:function(Ve){if(Wi.A.isAnimating(this._$viewsWrapper)&&Wi.A.stop(this._$viewsWrapper,!0),this._getMinDate()>this._getMaxDate())this.option("currentDate",new Date);else{var Fi=this._getNormalizedDate(Ve);if(Ve.getTime()===Fi.getTime()){var _n=this._getViewsOffset(this._view.option("date"),Fi);0!==_n&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(_n=0),this._view&&0!==_n&&!this._suppressNavigation?this._additionalView?_n>2||_n<-1?(this._refreshViews(),this._setViewContoured(Fi),this._updateAriaId(Fi),this._renderNavigator()):1===_n&&this._skipNavigate?(this._setViewContoured(Fi),this._updateAriaId(Fi)):this._navigate(_n,Fi):this._navigate(_n,Fi):(this._renderNavigator(),this._setViewContoured(Fi),this._updateAriaId(Fi)),this._skipNavigate=!1}else this.option("currentDate",new Date(Fi))}},_isAdditionalViewDate(Ve){return!!this._additionalView&&Ve>=this._additionalView._getFirstAvailableDate()},_getActiveView:function(Ve){return this._isAdditionalViewDate(Ve)?this._additionalView:this._view},_setViewContoured:function(Ve){var qe;(this.option("skipFocusCheck")||(0,ee.A)(this._$viewsWrapper).is(":focus"))&&(this._view.option("contouredDate",null),null===(qe=this._additionalView)||void 0===qe||qe.option("contouredDate",null),(this._isAdditionalViewDate(Ve)?this._additionalView:this._view).option("contouredDate",Ve))},_getMinDate:function(){return this.option("_rangeMin")||(this.min||(this.min=this._dateOption("min")||new Date(1e3,0)),this.min)},_getMaxDate:function(){return this.option("_rangeMax")||(this.max||(this.max=this._dateOption("max")||new Date(3e3,0)),this.max)},_getViewsOffset:function(Ve,qe){var Fi,Yt=this.option("zoomLevel");if("month"===Yt)return this._getMonthsOffset(Ve,qe);switch(Yt){case"century":Fi=100;break;case"decade":Fi=10;break;default:Fi=1}return parseInt(qe.getFullYear()/Fi)-parseInt(Ve.getFullYear()/Fi)},_getMonthsOffset:function(Ve,qe){return 12*(qe.getFullYear()-Ve.getFullYear())+(qe.getMonth()-Ve.getMonth())},_waitRenderView:function(Ve){if(!this._alreadyViewRender){this._alreadyViewRender=!0;var qe=this._getDateByOffset(Ve*this._getRtlCorrection());this._moveToClosestAvailableDate(qe),this._waitRenderViewTimeout=setTimeout(()=>{this._alreadyViewRender=!1})}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(Ve,qe){var Yt,Fi=(qe=this._getDate(null!==(Yt=qe)&&void 0!==Yt?Yt:this.option("currentDate"))).getDate(),_n=ie.A.getDifferenceInMonth(this.option("zoomLevel"))*Ve;qe.setDate(1),qe.setMonth(qe.getMonth()+_n);var dr=ie.A.getLastMonthDate(qe).getDate();return qe.setDate(Fi>dr?dr:Fi),qe},_focusTarget:function(){return this._$viewsWrapper},_focusEventTarget(){return this.$element()},_initMarkup:function(){this._renderSubmitElement();var Ve=this.$element();Ve.addClass(uo),Ve.toggleClass("dx-calendar-range","range"===this.option("selectionMode")),this._renderBody(),Ve.append(this.$body),this._renderViews(),this._renderNavigator(),this.callBase(),this._renderEvents(),Ve.prepend(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this._selectionStrategy.updateAriaSelected(),this._updateAriaId(),this._updateNavigatorLabels(),this.setAria("role","application"),this._moveToClosestAvailableDate()},_render:function(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody:function(){this._$viewsWrapper||(this.$body=(0,ee.A)("<div>").addClass("dx-calendar-body"),this._$viewsWrapper=(0,ee.A)("<div>").addClass("dx-calendar-views-wrapper"),this.$body.append(this._$viewsWrapper))},_getKeyboardListeners(){return this.callBase().concat([this._view])},_renderViews:function(){this.$element().addClass(Pi+"-"+this.option("zoomLevel"));var{currentDate:Ve,viewsCount:qe}=this.option();if(this.$element().toggleClass("dx-calendar-multiview",qe>1),this._view=this._renderSpecificView(Ve),(0,g.Vd)()){var Yt=this._getDateByOffset(-1,Ve);this._beforeView=this._isViewAvailable(Yt)?this._renderSpecificView(Yt):null;var Fi=this._getDateByOffset(qe,Ve);Fi.setDate(1),this._afterView=this._isViewAvailable(Fi)?this._renderSpecificView(Fi):null}qe>1&&(this._additionalView=this._renderSpecificView(this._getDateByOffset(1,Ve))),this._translateViews()},_renderSpecificView:function(Ve){var{zoomLevel:qe}=this.option(),Yt=Kt[qe],Fi=(0,ee.A)("<div>").appendTo(this._$viewsWrapper),_n=this._viewConfig(Ve);return this._createComponent(Fi,Yt,_n)},_viewConfig:function(Ve){var qe,Yt=this.option("disabledDates");return Yt=(0,L.Tn)(Yt)?this._injectComponent(Yt.bind(this)):Yt,(0,X.A)({},this._selectionStrategy.getViewOptions(),{date:Ve,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:null!==(qe=this.option("firstDayOfWeek"))&&void 0!==qe?qe:I.A.firstDayOfWeekIndex(),showWeekNumbers:this.option("showWeekNumbers"),selectWeekOnClick:this.option("selectWeekOnClick"),weekNumberRule:this.option("weekNumberRule"),zoomLevel:this.option("zoomLevel"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:Yt,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel(),_todayDate:this.option("_todayDate")})},_renderEvents(){R.A.off(this._$viewsWrapper,ji),"range"===this.option("selectionMode")&&R.A.on(this._$viewsWrapper,ji,null,Ve=>{this._updateViewsOption("hoveredRange",[])})},_injectComponent:function(Ve){var qe=this;return function(Yt){return(0,o.X)(Yt,{component:qe}),Ve(Yt)}},_isViewAvailable:function(Ve){var qe=this.option("zoomLevel"),Yt=ie.A.getViewMinBoundaryDate(qe,this._getMinDate()),Fi=ie.A.getViewMaxBoundaryDate(qe,this._getMaxDate());return ie.A.dateInRange(Ve,Yt,Fi)},_translateViews:function(){var{viewsCount:Ve}=this.option();(0,qi.Cy)(this._view.$element(),{left:0,top:0}),this._moveViewElement(this._beforeView,-1),this._moveViewElement(this._afterView,Ve),this._moveViewElement(this._additionalView,1)},_moveViewElement(Ve,qe){Ve&&(0,qi.Cy)(Ve.$element(),{left:this._getViewPosition(qe),top:0})},_getViewPosition:function(Ve){return 100*Ve*(this.option("rtlEnabled")?-1:1)+"%"},_cellClickHandler:function(Ve){var qe=this.option("zoomLevel"),Yt=ie.A.getViewDown(qe),Fi=this._isMaxZoomLevel();if(Yt&&!Fi)this._navigateDown(Ve.event.currentTarget);else{var _n=this._updateTimeComponent(Ve.value);this._selectionStrategy.selectValue(_n,Ve.event),this._cellClickAction(Ve)}},_updateTimeComponent:function(Ve){var qe=new Date(Ve),Yt=this._dateOption("value");return Yt&&this._isSingleMode()&&(qe.setHours(Yt.getHours()),qe.setMinutes(Yt.getMinutes()),qe.setSeconds(Yt.getSeconds()),qe.setMilliseconds(Yt.getMilliseconds())),qe},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(Ve){var qe=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var Yt=ie.A.getViewDown(qe);if(Yt){var Fi=this._view.option("contouredDate")||this._view.option("date");Ve&&(Fi=(0,ee.A)(Ve).data("dxDateValueKey")),this._isOtherViewCellClicked=!0,this.option("currentDate",Fi),this.option("zoomLevel",Yt),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate")))}}},_renderNavigator:function(){this._navigator||(this._navigator=new Qe((0,ee.A)("<div>"),this._navigatorConfig())),this._navigator.option("text",this._getViewsCaption(this._view,this._additionalView)),this._updateButtonsVisibility()},_navigatorConfig:function(){var{focusStateEnabled:Ve,rtlEnabled:qe}=this.option();return{text:this._getViewsCaption(this._view,this._additionalView),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),focusStateEnabled:Ve,rtlEnabled:qe,tabIndex:void 0}},_navigatorClickHandler:function(Ve){var{currentDate:qe,viewsCount:Yt}=this.option(),Fi=Ve.direction;if(Yt>1){var _n=this._isAdditionalViewDate(qe);(_n&&Fi<0||!_n&&Fi>0)&&(Fi*=2)}var ea=this._getDateByOffset(Fi,qe);this._moveToClosestAvailableDate(ea)},_navigateUp:function(){var Ve=this.option("zoomLevel"),qe=ie.A.getViewUp(Ve);!qe||this._isMinZoomLevel(Ve)||(this.option("zoomLevel",qe),this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate"))))},_isMinZoomLevel:function(Ve){var qe=this._getMinDate(),Yt=this._getMaxDate();return ie.A.sameView(Ve,qe,Yt)||this.option("minZoomLevel")===Ve},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!(0,L.O9)(this._afterView)),this._navigator.toggleButton("prev",!(0,L.O9)(this._beforeView))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),Ee.A,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(Ve){Wi.A.stop(this._$viewsWrapper,!0);var{viewsCount:qe}=this.option();this._toggleGestureCoverCursor("grabbing"),Ve.event.maxLeftOffset=this._getRequiredView("next")?1/qe:0,Ve.event.maxRightOffset=this._getRequiredView("prev")?1/qe:0},_toggleGestureCoverCursor:function(Ve){(0,ee.A)(".".concat("dx-gesture-cover")).css("cursor",Ve)},_getRequiredView:function(Ve){var qe,Yt=this.option("rtlEnabled");return"next"===Ve?qe=Yt?this._beforeView:this._afterView:"prev"===Ve&&(qe=Yt?this._afterView:this._beforeView),qe},_swipeUpdateHandler:function(Ve){var qe=Ve.event.offset;(0,qi.Cy)(this._$viewsWrapper,{left:qe*this._viewWidth(),top:0}),this._updateNavigatorCaption(qe)},_swipeEndHandler:function(Ve){this._toggleGestureCoverCursor("auto");var{currentDate:qe,rtlEnabled:Yt}=this.option(),Fi=Ve.event.targetOffset,_n=Fi?Fi/Math.abs(Fi):0,ea=this._isAdditionalViewDate(qe)&&(Yt?-1===_n:1===_n);if(0!==_n){var Wa=-_n*this._getRtlCorrection()*(ea?2:1),Io=this._getDateByOffset(Wa);this._isDateInInvalidRange(Io)&&(Io=_n>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",Io)}else this._animateWrapper(0,250)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=(0,q.RG)(this.$element())/this.option("viewsCount")),this._viewWidthValue},_updateNavigatorCaption:function(Ve){Ve*=this._getRtlCorrection();var Yt,Fi,qe=this.option("viewsCount")>1;Ve>.5&&this._beforeView?(Yt=this._beforeView,Fi=qe&&this._view):Ve<-.5&&this._afterView?(Yt=qe?this._additionalView:this._afterView,Fi=qe?this._afterView:null):(Yt=this._view,Fi=qe?this._additionalView:null),this._navigator.option("text",this._getViewsCaption(Yt,Fi))},_getViewsCaption:function(Ve,qe){var Yt=Ve.getNavigatorCaption(),{viewsCount:Fi}=this.option();if(Fi>1&&qe){var _n=qe.getNavigatorCaption();Yt="".concat(Yt," - ").concat(_n)}return Yt},_isDateInInvalidRange:function(Ve){if(!this._view.isBoundary(Ve)){var qe=this._getMinDate(),Yt=this._getMaxDate(),Fi=ie.A.normalizeDate(Ve,qe,Yt);return Fi===qe||Fi===Yt}},_renderFooter:function(){var Ve=this.option("showTodayButton");if(Ve){var qe=this._createComponent((0,ee.A)("<div>"),xe.A,{focusStateEnabled:this.option("focusStateEnabled"),text:z.A.format("dxCalendar-todayButtonText"),onClick:Yt=>{this._toTodayView(Yt)},type:(0,Ie.Ft)()?"normal":"default",stylingMode:(0,Ie.Ft)()?"outlined":"text",integrationOptions:{}}).$element().addClass("dx-calendar-today-button");this._$footer=(0,ee.A)("<div>").addClass("dx-calendar-footer").append(qe),this.$element().append(this._$footer)}this.$element().toggleClass("dx-calendar-with-footer",Ve)},_renderSubmitElement:function(){this._$submitElement=(0,ee.A)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(Ve){var qe=this._convertToDate(Ve);this._getSubmitElement().val(re.A.serializeDate(qe,"yyyy-MM-dd"))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){Wi.A.stop(this._view.$element(),!0),this._popAnimationView(this._view,.6,1,250),this.option("viewsCount")>1&&(Wi.A.stop(this._additionalView.$element(),!0),this._popAnimationView(this._additionalView,.6,1,250))},_popAnimationView:function(Ve,qe,Yt,Fi){return Wi.A.animate(Ve.$element(),{type:"pop",from:{scale:qe,opacity:qe},to:{scale:Yt,opacity:Yt},duration:Fi})},_navigate:function(Ve,qe){if(0!==Ve&&1!==Math.abs(Ve)&&this._isViewAvailable(qe)){var Yt=this._renderSpecificView(qe);Ve>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=Yt):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=Yt),this._translateViews()}var dr=-this._getRtlCorrection()*(Ve>0?1:Ve<0?-1:0)*this._viewWidth();this._$viewsWrapper.position().left!==dr&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(Ve,qe):this._animateWrapper(dr,250).done(this._wrapperAnimationEndHandler.bind(this,Ve,qe)))},_animateWrapper:function(Ve,qe){return Wi.A.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:Ve},duration:qe})},_getDate:Ve=>new Date(Ve),_toTodayView:function(Ve){var qe=new Date;this._isMaxZoomLevel()?this._selectionStrategy.selectValue(qe,Ve.event):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._selectionStrategy.selectValue(qe,Ve.event),this._animateShowView(),this._preventViewChangeAnimation=!1)},_wrapperAnimationEndHandler:function(Ve,qe){this._rearrangeViews(Ve),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(qe),this._updateAriaId(qe),this._selectionStrategy.updateAriaSelected()},_rearrangeViews:function(Ve){var qe;if(0!==Ve){var Fi,_n,dr,ea,Wa,{viewsCount:Yt}=this.option();if(Ve<0?(Fi=1,_n="_beforeView",dr="_afterView",ea="_view",Wa=1===Yt?"_view":"_additionalView"):(Fi=-1,_n="_afterView",dr="_beforeView",ea=1===Yt?"_view":"_additionalView",Wa="_view"),this[_n]){var Io=this[_n].option("date");null===(qe=this[dr])||void 0===qe||qe.$element().remove(),this[dr]=this._renderSpecificView(this._getDateByOffset(Fi*Yt,Io)),this[Wa].$element().remove(),1===Yt?this[Wa]=this[_n]:(this[Wa]=this[ea],this[ea]=this[_n]);var Xo=this._getDateByOffset(-Fi,Io);this[_n]=this._isViewAvailable(Xo)?this._renderSpecificView(Xo):null}}},_resetLocation:function(){(0,qi.Cy)(this._$viewsWrapper,{left:0,top:0})},_clean:function(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache:function(){delete this._viewWidthValue},_disposeViews:function(){this._view.$element().remove(),this._beforeView&&this._beforeView.$element().remove(),this._additionalView&&this._additionalView.$element().remove(),this._afterView&&this._afterView.$element().remove(),delete this._view,delete this._additionalView,delete this._beforeView,delete this._afterView,delete this._skipNavigate},_dispose:function(){clearTimeout(this._waitRenderViewTimeout),this.callBase()},_refreshViews:function(){this._resetActiveState(),this._disposeViews(),this._renderViews()},_visibilityChanged:function(){this._translateViews()},_shouldSkipFocusEvent(Ve){var{target:qe,relatedTarget:Yt}=Ve;return(0,ee.A)(qe).parents(".".concat(uo)).length&&(0,ee.A)(Yt).parents(".".concat(uo)).length},_focusInHandler:function(Ve){(0,ee.A)(Ve.target).is(this._$viewsWrapper)&&this._setViewContoured(this.option("currentDate")),!this._shouldSkipFocusEvent(Ve)&&(this.callBase.apply(this,arguments),this._toggleFocusClass(!0,this.$element()))},_focusOutHandler:function(Ve){var qe;(0,ee.A)(Ve.target).is(this._$viewsWrapper)&&(this._view.option("contouredDate",null),null===(qe=this._additionalView)||void 0===qe||qe.option("contouredDate",null)),this._shouldSkipFocusEvent(Ve)||(this.callBase.apply(this,arguments),this._toggleFocusClass(!1,this.$element()))},_updateViewsOption:function(Ve,qe){var Yt,Fi,_n;this._view.option(Ve,qe),null===(Yt=this._additionalView)||void 0===Yt||Yt.option(Ve,qe),null===(Fi=this._beforeView)||void 0===Fi||Fi.option(Ve,qe),null===(_n=this._afterView)||void 0===_n||_n.option(Ve,qe)},_setViewsMinOption:function(Ve){this._restoreViewsMinMaxOptions(),this.option("_rangeMin",this._convertToDate(Ve)),this._updateViewsOption("min",this._getMinDate())},_setViewsMaxOption:function(Ve){this._restoreViewsMinMaxOptions(),this.option("_rangeMax",this._convertToDate(Ve)),this._updateViewsOption("max",this._getMaxDate())},_restoreViewsMinMaxOptions:function(){this._resetActiveState(),this.option({_rangeMin:null,_rangeMax:null}),this._updateViewsOption("min",this._getMinDate()),this._updateViewsOption("max",this._getMaxDate())},_updateNavigatorLabels:function(){var Ve=this.option("zoomLevel");Ve=Ve.charAt(0).toUpperCase()+Ve.slice(1);var qe=this._navigator._caption.option("text"),Yt=z.A.format("dxCalendar-previous".concat(Ve,"ButtonLabel")),Fi=z.A.format("dxCalendar-caption".concat(Ve,"Label")),_n=z.A.format("dxCalendar-next".concat(Ve,"ButtonLabel"));this.setAria("label",Yt,this._navigator._prevButton.$element()),this.setAria("label","".concat(qe,". ").concat(Fi),this._navigator._caption.$element()),this.setAria("label",_n,this._navigator._nextButton.$element())},_updateAriaSelected:function(Ve,qe){qe.forEach(Yt=>{this.setAria("selected",void 0,this._view._getCellByDate(Yt))}),Ve.forEach(Yt=>{this.setAria("selected",!0,this._view._getCellByDate(Yt))}),this.option("viewsCount")>1&&(qe.forEach(Yt=>{this.setAria("selected",void 0,this._additionalView._getCellByDate(Yt))}),Ve.forEach(Yt=>{this.setAria("selected",!0,this._additionalView._getCellByDate(Yt))}))},_updateAriaId:function(Ve){var qe;Ve=null!==(qe=Ve)&&void 0!==qe?qe:this.option("currentDate");var Yt="dx-"+new ye.A,_n=this._getActiveView(Ve)._getCellByDate(Ve);this.setAria("id",Yt,_n),this.setAria("activedescendant",Yt),this._onContouredChanged(Yt)},_suppressingNavigation:function(Ve,qe){this._suppressNavigation=!0,Ve.apply(this,qe),delete this._suppressNavigation},_optionChanged:function(Ve){var{value:qe,previousValue:Yt}=Ve;switch(Ve.name){case"width":this.callBase(Ve),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"selectionMode":this._refreshSelectionStrategy(),this._initCurrentDate();break;case"selectWeekOnClick":case"_todayDate":case"showWeekNumbers":case"weekNumberRule":this._refreshViews();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"focusStateEnabled":case"disabledDates":case"dateSerializationFormat":case"cellTemplate":case"showTodayButton":this._invalidate();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(Yt)),this._updateCurrentDate(qe);break;case"zoomLevel":this.$element().removeClass(Pi+"-"+Yt),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId(),this._updateNavigatorLabels();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":this._selectionStrategy.processValueChanged(qe,Yt),this._setSubmitValue(qe),this.callBase(Ve);break;case"viewsCount":this._refreshViews(),this._renderNavigator();break;case"onCellClick":this._view.option("onCellClick",qe);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"skipFocusCheck":break;default:this.callBase(Ve)}},getContouredDate:function(){return this._view.option("contouredDate")}});(0,r.A)("dxCalendar",_r);const aa=_r;var Fa=D(56221),Ya=Fa.A.abstract,_o=Fa.A.inherit({ctor:function(Ve){this.dateBox=Ve},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(Ve){Ve=Ve||(0,ee.A)("<div>"),this._widget=this._createWidget(Ve),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(Ve){var qe=this._getWidgetName(),Yt=this._getWidgetOptions();return this.dateBox._createComponent(Ve,qe,Yt)},_getWidgetOptions:Ya,_getWidgetName:Ya,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:Ya,supportedKeys:_.lQ,getKeyboardListener:_.lQ,customizeButtons:_.lQ,getParsedText:function(Ve,qe){return I.A.parse(Ve,qe)||I.A.parse(Ve)},renderInputMinMax:_.lQ,renderOpenedState:function(){this._updateValue()},popupConfig:Ya,_dimensionChanged:function(){var Ve;null===(Ve=this._getPopup())||void 0===Ve||Ve.repaint()},renderPopupContent:function(){var Ve=this._getPopup();this._renderWidget();var qe=Ve.$content().parent();R.A.off(qe,"mousedown"),R.A.on(qe,"mousedown",this._preventFocusOnPopup.bind(this))},_preventFocusOnPopup:function(Ve){Ve.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:_.lQ,popupHiddenHandler:_.lQ,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},useCurrentDateByDefault:_.lQ,getDefaultDate:function(){return new Date},textChangedHandler:_.lQ,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var Ve=this._getPopup();Ve&&Ve.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});const Yo=_o;var ia=Yo.inherit({NAME:"Calendar",getDefaultOptions:function(){return(0,o.X)(this.callBase(),{todayButtonText:z.A.format("dxCalendar-todayButtonText")})},supportedKeys:function(){var Ve=function(qe){return!!this.option("opened")&&(qe.preventDefault(),!0)};return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(qe){if(this.dateBox.option("opened")){if(qe.preventDefault(),this._widget.option("zoomLevel")===this._widget.option("maxZoomLevel")){var Yt=this._getContouredValue(),Fi=this._lastActionElement,_n=this._closeDropDownByEnter();return _n&&Yt&&"calendar"===Fi&&this.dateBoxValue(Yt,qe),_n&&this.dateBox.close(),this.dateBox._valueChangeEventHandler(qe),!_n}return!0}this.dateBox._valueChangeEventHandler(qe)}.bind(this),home:Ve,end:Ve}},getDisplayFormat:function(Ve){return Ve||"shortdate"},_closeDropDownByEnter:()=>!0,_getWidgetName:function(){return aa},_getContouredValue:function(){return this._widget._view.option("contouredDate")},getKeyboardListener(){return this._widget},_getWidgetOptions:function(){var Ve=this.dateBox.option("disabledDates");return(0,o.X)(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,selectionMode:"single",dateSerializationFormat:null,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),disabledDates:(0,L.Tn)(Ve)?this._injectComponent(Ve.bind(this.dateBox)):Ve,onContouredChanged:this._refreshActiveDescendant.bind(this),skipFocusCheck:!0})},_injectComponent:function(Ve){var qe=this;return function(Yt){return(0,o.X)(Yt,{component:qe.dateBox}),Ve(Yt)}},_refreshActiveDescendant:function(Ve){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",Ve.actionValue)},_getTodayButtonConfig(){var Ve=this.dateBox.option("buttonsLocation"),Yt="default"===Ve?["bottom","center"]:(0,_.T6)(Ve),Fi=(0,Ie.gx)()?"text":"outlined";return{widget:"dxButton",toolbar:Yt[0],location:"after"===Yt[1]?"before":Yt[1],options:{onClick:_n=>{this._widget._toTodayView(_n)},text:this.dateBox.option("todayButtonText"),elementAttr:{class:"dx-button-today"},stylingMode:Fi}}},_isCalendarVisible:function(){var{calendarOptions:Ve}=this.dateBox.option();return(0,L.RI)(Ve)||!1!==Ve.visible},_getPopupToolbarItems(Ve){return"useButtons"===this.dateBox.option("applyValueMode")&&this._isCalendarVisible()?[this._getTodayButtonConfig(),...Ve]:Ve},popupConfig:function(Ve){return(0,o.X)(!0,Ve,{position:{collision:"flipfit flip"},width:"auto"})},_valueChangedHandler:function(Ve){var qe=Ve.value,Yt=Ve.previousValue;ie.A.sameDate(qe,Yt)&&ie.A.sameHoursAndMinutes(qe,Yt)||"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(this.getValue(),Ve.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this._lastActionElement="input",this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(Ve){var qe=this.dateBox;"instantly"===qe.option("applyValueMode")&&(qe.option("opened",!1),this.dateBoxValue(this.getValue(),Ve.event))}});const $o=ia;var mo=D(66148),fl=D(89193),us="dx-dateview-item";class Wl extends mo.A{_getDefaultOptions(){return(0,o.X)(super._getDefaultOptions(),{showScrollbar:"never",useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null,scrollByContent:!0})}_init(){super._init(),this.option("onVisibilityChange",this._visibilityChangedHandler.bind(this)),this.option("onEnd",this._endActionHandler.bind(this))}_render(){super._render(),this._renderSelectedItemFrame(),this.$element().addClass("dx-dateviewroller"),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._renderWheelEvent(),this._renderSelectedIndexChanged()}_renderSelectedIndexChanged(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")}_renderWheelEvent(){R.A.on((0,ee.A)(this.container()),"dxmousewheel",qe=>{this._isWheelScrolled=!0})}_renderContainerClick(){if(this.option("showOnClick")){var qe=(0,d.b4)(Mt.U,this.NAME),Yt=this._createActionByOption("onClick");R.A.off((0,ee.A)(this.container()),qe),R.A.on((0,ee.A)(this.container()),qe,function(Fi){Yt({event:Fi})})}}_renderItems(){var qe=this.option("items")||[],Yt=(0,ee.A)();(0,ee.A)(this.content()).empty(),qe.forEach(function(Fi){Yt=Yt.add((0,ee.A)("<div>").addClass(us).append(Fi))}),(0,ee.A)(this.content()).append(Yt),this._$items=Yt,this.update()}_renderSelectedItemFrame(){(0,ee.A)("<div>").addClass("dx-dateview-item-selected-frame").append((0,ee.A)("<div>").addClass("dx-dateview-item-selected-border")).appendTo((0,ee.A)(this.container()))}_renderSelectedValue(qe){var Yt=this._fitIndex(qe??this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(Yt)}),this._renderActiveStateItem()}_fitIndex(qe){var Fi=(this.option("items")||[]).length;return qe>=Fi?Fi-1:qe<0?0:qe}_getItemPosition(qe){return Math.round(this._itemHeight()*qe)}_renderItemsClick(){var qe=this._getItemSelector(),Yt=(0,d.b4)(Mt.U,this.NAME);R.A.off(this.$element(),Yt,qe),R.A.on(this.$element(),Yt,qe,this._itemClickHandler.bind(this))}_getItemSelector(){return"."+us}_itemClickHandler(qe){this.option("selectedIndex",this._itemElementIndex(qe.currentTarget))}_itemElementIndex(qe){return this._itemElements().index(qe)}_itemElements(){return this.$element().find(this._getItemSelector())}_renderActiveStateItem(){var qe=this.option("selectedIndex");(0,C.__)(this._$items,function(Yt){(0,ee.A)(this).toggleClass("dx-dateview-item-selected",qe===Yt)})}_shouldScrollToNeighborItem(){return"desktop"===Y.A.real().deviceType&&this._isWheelScrolled}_moveTo(qe){var{top:Yt,left:Fi}=function Jl(Ve,qe){if((0,L.Qd)(Ve)){var Yt=(0,_.YD)(Ve.left,Ve.x),Fi=(0,_.YD)(Ve.top,Ve.y);return{left:(0,L.O9)(Yt)?Yt:void 0,top:(0,L.O9)(Fi)?Fi:void 0}}var{isHorizontal:_n,isVertical:dr}=new fl.D(qe);return{left:_n&&(0,L.O9)(Ve)?Ve:void 0,top:dr&&(0,L.O9)(Ve)?Ve:void 0}}(qe),_n=this.scrollOffset(),dr={x:_n.left-Fi,y:_n.top-Yt};if(this._isVisible()&&(dr.x||dr.y))if(this._prepareDirections(!0),this._animation&&!this._shouldScrollToNeighborItem()){var ea=this;Wi.A.stop((0,ee.A)(this.content())),Wi.A.animate((0,ee.A)(this.content()),{duration:200,type:"slide",to:{top:Math.floor(dr.y)},complete(){(0,qi.fw)((0,ee.A)(ea.content())),ea.handleMove({delta:dr})}}),delete this._animation}else this.handleMove({delta:dr})}_validate(qe){return this._moveIsAllowed(qe)}_fitSelectedIndexInRange(qe){var Yt=this.option("items").length;return Math.max(Math.min(qe,Yt-1),0)}_isInNullNeighborhood(qe){return-.1<=qe&&qe<=.1}_getSelectedIndexAfterScroll(qe){var _n=this.scrollOffset().top-qe*this._itemHeight();return this._isInNullNeighborhood(_n)?qe:this._fitSelectedIndexInRange(qe+(_n>0?1:-1))}_getNewSelectedIndex(qe){if(this._shouldScrollToNeighborItem())return this._getSelectedIndexAfterScroll(qe);this._animation=!0;var Yt=this.scrollOffset().top/this._itemHeight();return Math.round(Yt)}_endActionHandler(){var qe=this.option("selectedIndex"),Yt=this._getNewSelectedIndex(qe);Yt===qe?this._renderSelectedValue(Yt):this.option("selectedIndex",Yt),this._isWheelScrolled=!1}_itemHeight(){var qe=this._$items.first();return(0,q.Oq)(qe)}_toggleActive(qe){this.$element().toggleClass("dx-state-active",qe)}_isVisible(){return(0,ee.A)(this.container()).is(":visible")}_fireSelectedIndexChanged(qe,Yt){this._selectedIndexChanged({value:qe,previousValue:Yt,event:void 0})}_visibilityChanged(qe){super._visibilityChanged(qe),this._visibilityChangedHandler(qe)}_visibilityChangedHandler(qe){qe&&(this._visibilityTimer=setTimeout(()=>{this._renderSelectedValue(this.option("selectedIndex"))})),this.toggleActiveState(!1)}toggleActiveState(qe){this.$element().toggleClass("dx-dateviewroller-current",qe)}_refreshSelectedIndex(){var qe=this.option("selectedIndex"),Yt=this._fitIndex(qe);Yt===qe?this._renderActiveStateItem():this.option("selectedIndex",Yt)}_optionChanged(qe){switch(qe.name){case"selectedIndex":this._fireSelectedIndexChanged(qe.value,qe.previousValue),this._renderSelectedValue(qe.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:super._optionChanged(qe)}}_dispose(){clearTimeout(this._visibilityTimer),super._dispose()}}(0,r.A)("dxDateViewRoller",Wl);const Xd=Wl;var rs="dx-dateview",ws=ge.A.inherit({_valueOption:function(){var Ve=this.option("value"),qe=new Date(Ve);return!Ve||isNaN(qe)?this._getDefaultDate():qe},_getDefaultDate:function(){var Ve=new Date;return"date"===this.option("type")?new Date(Ve.getFullYear(),Ve.getMonth(),Ve.getDate()):Ve},_getDefaultOptions:function(){return(0,o.X)(this.callBase(),{minDate:G.MIN_DATEVIEW_DEFAULT_DATE,maxDate:G.MAX_DATEVIEW_DEFAULT_DATE,type:"date",value:new Date,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(Ve){return"desktop"!==Ve.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass(rs),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(Ve,qe){this.$element().addClass(rs+"-"+Ve),qe&&this.$element().removeClass(rs+"-"+qe)},_toggleCompactClass:function(){this.$element().toggleClass("dx-dateview-compact",this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=(0,ee.A)("<div>").addClass("dx-dateview-wrapper"),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=(0,ee.A)("<div>").addClass("dx-dateview-rollers")),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var Ve=this;(0,C.__)(Ve._rollerConfigs,function(qe){var Yt=(0,ee.A)("<div>").appendTo(Ve._$rollersContainer).addClass("dx-dateviewroller-"+Ve._rollerConfigs[qe].type);Ve._rollers[Ve._rollerConfigs[qe].type]=Ve._createComponent(Yt,Xd,{items:Ve._rollerConfigs[qe].displayItems,selectedIndex:Ve._rollerConfigs[qe].selectedIndex,showScrollbar:"never",scrollByContent:!0,onStart:function(Fi){var _n=Fi.component;_n._toggleActive(!0),Ve._setActiveRoller(Ve._rollerConfigs[qe],_n.option("selectedIndex"))},onEnd:function(Fi){Fi.component._toggleActive(!1)},onClick:function(Fi){var _n=Fi.component;_n._toggleActive(!0),Ve._setActiveRoller(Ve._rollerConfigs[qe],_n.option("selectedIndex")),Ve._setRollerState(Ve._rollerConfigs[qe],_n.option("selectedIndex")),_n._toggleActive(!1)},onSelectedIndexChanged:function(Fi){Ve._setRollerState(Ve._rollerConfigs[qe],Fi.component.option("selectedIndex"))}})}),Ve._$rollersContainer.appendTo(Ve._wrapper())},_createRollerConfigs:function(Ve){var qe=this;Ve=Ve||qe.option("type"),qe._rollerConfigs={},I.A.getFormatParts(G.FORMATS_MAP[Ve]).forEach(function(Yt){qe._createRollerConfig(Yt)})},_createRollerConfig:function(Ve){for(var qe=G.DATE_COMPONENTS_INFO[Ve],Yt=this._calculateRollerConfigValueRange(Ve),Fi=Yt.startValue,_n=Yt.endValue,dr=qe.formatter,ea=this._getCurrentDate(),Wa={type:Ve,setValue:qe.setter,valueItems:[],displayItems:[],getIndex:function(Xo){return Xo[qe.getter]()-Fi}},Io=Fi;Io<=_n;Io++)Wa.valueItems.push(Io),Wa.displayItems.push(dr(Io,ea));Wa.selectedIndex=Wa.getIndex(ea),this._rollerConfigs[Ve]=Wa},_setActiveRoller:function(Ve){var qe=Ve&&this._rollers[Ve.type];(0,C.__)(this._rollers,function(){this.toggleActiveState(this===qe)})},_updateRollersPosition:function(){var Ve=this;(0,C.__)(this._rollers,function(qe){var Yt=Ve._rollerConfigs[qe].getIndex(Ve._getCurrentDate());this.option("selectedIndex",Yt)})},_setRollerState:function(Ve,qe){if(qe!==Ve.selectedIndex){var Yt=Ve.valueItems[qe],Fi=Ve.setValue,_n=new Date(this._getCurrentDate()),dr=_n.getDate(),ea=this.option("minDate"),Wa=this.option("maxDate");"month"===Ve.type?dr=Math.min(dr,G.getMaxMonthDay(_n.getFullYear(),Yt)):"year"===Ve.type&&(dr=Math.min(dr,G.getMaxMonthDay(Yt,_n.getMonth()))),_n.setDate(dr),_n[Fi](Yt);var Io=ie.A.normalizeDate(_n,ea,Wa);_n=G.mergeDates(Io,_n,"time"),_n=ie.A.normalizeDate(_n,ea,Wa),this.option("value",_n),Ve.selectedIndex=qe}"year"===Ve.type&&this._refreshRollers(),"month"===Ve.type&&(this._refreshRoller("day"),this._refreshRoller("hours"))},_refreshRoller:function(Ve){var qe=this._rollers[Ve];if(qe){this._createRollerConfig(Ve);var Yt=this._rollerConfigs[Ve];("day"===Ve||Yt.displayItems.toString()!==qe.option("items").toString())&&qe.option({items:Yt.displayItems,selectedIndex:Yt.selectedIndex})}},_getCurrentDate:function(){var Ve=this._valueOption(),qe=this.option("minDate"),Yt=this.option("maxDate");return ie.A.normalizeDate(Ve,qe,Yt)},_calculateRollerConfigValueRange:function(Ve){var qe=this._getCurrentDate(),Yt=this.option("minDate"),Fi=this.option("maxDate"),_n=ie.A.sameYear(qe,Yt),dr=_n&&qe.getMonth()===Yt.getMonth(),ea=ie.A.sameYear(qe,Fi),Wa=ea&&qe.getMonth()===Fi.getMonth(),Io=dr&&qe.getDate()===Yt.getDate(),Xo=Wa&&qe.getDate()===Fi.getDate(),Ys=G.DATE_COMPONENTS_INFO[Ve],ol=Ys.startValue,td=Ys.endValue;return"year"===Ve&&(ol=Yt.getFullYear(),td=Fi.getFullYear()),"month"===Ve&&(_n&&(ol=Yt.getMonth()),ea&&(td=Fi.getMonth())),"day"===Ve&&(td=G.getMaxMonthDay(qe.getFullYear(),qe.getMonth()),_n&&dr&&(ol=Yt.getDate()),ea&&Wa&&(td=Fi.getDate())),"hours"===Ve&&(ol=Io?Yt.getHours():ol,td=Xo?Fi.getHours():td),{startValue:ol,endValue:td}},_refreshRollers:function(){this._refreshRoller("month"),this._refreshRoller("day"),this._refreshRoller("hours")},_optionChanged:function(Ve){switch(Ve.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(Ve.value,Ve.previousValue);break;case"visible":this.callBase(Ve),Ve.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(Ve)}},_clean:function(){this.callBase(),delete this._$rollersContainer}});(0,r.A)("dxDateView",ws);const Yl=ws;var Bt=(0,g.zk)(),Si=Yo.inherit({NAME:"DateView",getDefaultOptions:function(){return(0,o.X)(this.callBase(),{openOnFieldClick:!0,applyButtonText:z.A.format("OK"),"dropDownOptions.showTitle":!0})},getDisplayFormat:function(Ve){return Ve||G.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(Ve){return{toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:Ve.onInitialized,defaultOptionsRules:[{device:{platform:"android"},options:{width:333,height:331}},{device:function(qe){var Yt=qe.platform;return"generic"===Yt||"ios"===Yt},options:{width:"auto",height:"auto"}},{device:function(qe){return"generic"===qe.platform&&qe.phone},options:{width:333,maxWidth:"100%",maxHeight:"100%",height:"auto",position:{collision:"flipfit flip"}}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:Bt}}}]}},_renderWidget:function(){if((0,F.inputType)(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))this._widget&&(this._widget.$element().remove(),this._widget=null);else{var Ve=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var qe=(0,ee.A)("<div>").appendTo(Ve.$content());this._widget=this._createWidget(qe)}this._widget.$element().appendTo(this._getWidgetContainer())}},_getWidgetName:function(){return Yl},renderOpenedState:function(){this.callBase(),this._widget&&this._widget.option("value",this._widget._getCurrentDate())},_getWidgetOptions:function(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,0,1),maxDate:this.dateBox.dateOption("max")||new Date(Date.now()+50*G.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}});const Ni=Si;var Sn=Yo.inherit({NAME:"Native",popupConfig:function(Ve){return(0,o.X)({},Ve,{width:"auto"})},getParsedText:function(Ve){return Ve?"datetime"===this.dateBox.option("type")?new Date(Ve.replace(/-/g,"/").replace("T"," ").split(".")[0]):G.fromStandardDateFormat(Ve):null},renderPopupContent:_.lQ,_getWidgetName:_.lQ,_getWidgetOptions:_.lQ,_getDateBoxType:function(){var Ve=this.dateBox.option("type");return G.SUPPORTED_FORMATS.includes(Ve)?"datetime"===Ve&&!(0,F.inputType)(Ve)&&(Ve="datetime-local"):Ve="date",Ve},customizeButtons:function(){var Ve=this.dateBox.getButton("dropDown");Y.A.real().android&&Ve&&Ve.on("click",function(){this.dateBox._input().get(0).click()}.bind(this))},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(Ve){var qe=this._getDateBoxType();return Ve||G.FORMATS_MAP[qe]},renderInputMinMax:function(Ve){Ve.attr({min:re.A.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:re.A.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}});const Dn=Sn;var Kn=D(78709),tr=D(34885),xr=D(26543),Ml=function(Ve,qe,Yt){gs(Ve,qe,Yt)},gs=function(Ve,qe,Yt){Ve.css("transform","rotate("+qe+"deg) translate(0,"+Yt+"px)")},el=ge.A.inherit({_getDefaultOptions:function(){return(0,o.X)(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:5,stylingMode:void 0})},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.$element().addClass("dx-timeview")},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var Ve=(0,ee.A)("<div>").appendTo(this.$element()),qe=[];this.option("_showClock")&&qe.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),qe.push({ratio:0,shrink:0,baseSize:"auto",template:this._renderField.bind(this)}),this._createComponent(Ve,xr.A,{height:"100%",width:"100%",direction:"col",items:qe})},_renderClock:function(Ve,qe,Yt){this._$hourArrow=(0,ee.A)("<div>").addClass("dx-timeview-hourarrow"),this._$minuteArrow=(0,ee.A)("<div>").addClass("dx-timeview-minutearrow");var Fi=(0,ee.A)(Yt);Fi.addClass("dx-timeview-clock").append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",Fi)},_updateClock:function(){var Ve=this._getValue(),qe=Ve.getHours()/12*360+Ve.getMinutes()/60*30,Yt=Ve.getMinutes()/60*360;Ml(this._$hourArrow,qe,this.option("_arrowOffset")),Ml(this._$minuteArrow,Yt,this.option("_arrowOffset"))},_getBoxItems:function(Ve){var qe=[{ratio:0,shrink:0,baseSize:"auto",template:()=>this._hourBox.$element()},{ratio:0,shrink:0,baseSize:"auto",template:(0,ee.A)("<div>").addClass("dx-timeview-time-separator").text(I.A.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:()=>this._minuteBox.$element()}];return Ve&&qe.push({ratio:0,shrink:0,baseSize:"auto",template:()=>this._format12.$element()}),qe},_renderField:function(){var Ve=!this.option("use24HourFormat");return this._createHourBox(Ve),this._createMinuteBox(),Ve&&this._createFormat12Box(),this._createComponent((0,ee.A)("<div>").addClass("dx-timeview-field"),xr.A,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(Ve)}).$element()},_createHourBox:function(Ve){(this._hourBox=this._createComponent((0,ee.A)("<div>"),Kn.A,(0,o.X)({min:-1,max:Ve?13:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this),onKeyboardHandled:Yt=>this._keyboardHandler(Yt)},this._getNumberBoxConfig()))).setAria("label","hours")},_isPM:function(){return!this.option("use24HourFormat")&&1===this._format12.option("value")},_onHourBoxValueChanged:function(Ve){var{value:qe,component:Yt}=Ve,Fi=this._getValue(),_n=new Date(Fi),dr=this._convertMaxHourToMin(qe);Yt.option("value",dr),this._isPM()&&(dr+=12),_n.setHours(dr),G.normalizeTime(_n),this.option("value",_n)},_convertMaxHourToMin:function(Ve){var qe=this.option("use24HourFormat")?24:12;return(qe+Ve)%qe},_createMinuteBox:function(){(this._minuteBox=this._createComponent((0,ee.A)("<div>"),Kn.A,(0,o.X)({min:-1,max:60,value:this._getValue().getMinutes(),onKeyboardHandled:qe=>this._keyboardHandler(qe),onValueChanged:qe=>{var{value:Yt,component:Fi}=qe,_n=(60+Yt)%60;Fi.option("value",_n);var dr=new Date(this._getValue());dr.setMinutes(_n),G.normalizeTime(dr),this.option("value",dr)}},this._getNumberBoxConfig()))).setAria("label","minutes")},_createFormat12Box:function(){var Ve=I.A.getPeriodNames();(this._format12=this._createComponent((0,ee.A)("<div>").addClass("dx-timeview-format12"),tr.A,{items:[{value:-1,text:Ve[0]},{value:1,text:Ve[1]}],valueExpr:"value",displayExpr:"text",onKeyboardHandled:Yt=>this._keyboardHandler(Yt),onValueChanged:Yt=>{var{value:Fi}=Yt,_n=this._getValue().getHours(),dr=new Date(this._getValue());dr.setHours((_n+12*Fi)%24),this.option("value",dr)},value:this._getValue().getHours()>=12?1:-1,stylingMode:this.option("stylingMode")})).setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var qe=this._getValue().getHours();this._silentEditorValueUpdate(this._format12,qe>=12?1:-1)}},_silentEditorValueUpdate:function(Ve,qe){Ve&&(Ve._suppressValueChangeAction(),Ve.option("value",qe),Ve._resumeValueChangeAction())},_getNumberBoxConfig:function(){return{showSpinButtons:!0,displayValueFormatter:function(Ve){return(Ve<10?"0":"")+Ve},stylingMode:this.option("stylingMode")}},_normalizeHours:function(Ve){return this.option("use24HourFormat")?Ve:Ve%12||12},_updateField:function(){var Ve=this._normalizeHours(this._getValue().getHours());this._silentEditorValueUpdate(this._hourBox,Ve),this._silentEditorValueUpdate(this._minuteBox,this._getValue().getMinutes()),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(Ve){Ve&&this._updateTime()},_optionChanged:function(Ve){switch(Ve.name){case"value":this._updateTime(),this.callBase(Ve);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(Ve)}}});(0,r.A)("dxTimeView",el);const _s=el;var yl=(0,g.zk)(),Os="dx-datebox-datetime-time-side",Zl=$o.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return(0,o.X)(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after","dropDownOptions.showTitle":!1})},_closeDropDownByEnter:function(){return ie.A.sameDate(this._getContouredValue(),this.widgetOption("value"))},getDisplayFormat:function(Ve){return Ve||"shortdateshorttime"},_is24HourFormat:function(){return I.A.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_getContouredValue:function(){var Ve=this.callBase();return this._updateDateTime(Ve)},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent((0,ee.A)("<div>"),_s,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")})},renderOpenedState:function(){this.callBase();var Ve=this._getPopup();Ve&&Ve.$wrapper().toggleClass("dx-datebox-adaptivity-mode",this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(function(){this._getPopup()&&this._getPopup().repaint()}.bind(this),0)},isAdaptivityChanged:function(){var Ve=this._isShrinkView(),qe=this._currentAdaptiveMode;return Ve!==qe?(this._currentAdaptiveMode=Ve,void 0!==qe):this.callBase()},_updateValue:function(Ve){var qe=this.dateBoxValue();!qe&&!Ve&&G.normalizeTime(qe=new Date),this.callBase(),this._timeView&&(qe&&this._timeView.option("value",qe),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return(0,q.RG)(yl)<=573},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var Ve=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||Ve.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),Ve},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var Ve=this._getPopup().$content();this._box=this.dateBox._createComponent((0,ee.A)("<div>").appendTo(Ve),xr.A,{direction:"row",crossAlign:"stretch",items:this._getBoxItems(),itemTemplate:function(qe,Yt,Fi){var _n=(0,ee.A)("<div>");switch(qe.name){case"calendar":_n.append(this._widget.$element()),this._isShrinkView()&&(this._timeView.$element().addClass(Os),_n.append(this._timeView.$element()));break;case"time":_n.append(this._timeView.$element()),(0,ee.A)(Fi).addClass(Os)}return _n}.bind(this)})},popupConfig:function(Ve){var qe=this.callBase(Ve);return(0,o.X)(qe,{width:"auto"})},_preventFocusOnPopup:function(Ve){(0,ee.A)(Ve.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},_updateDateTime:function(Ve){var qe=this._timeView.option("value");return Ve.setHours(qe.getHours(),qe.getMinutes(),qe.getSeconds(),qe.getMilliseconds()),Ve},getValue:function(){var Ve,qe=null!==(Ve=this._widget.option("value"))&&void 0!==Ve?Ve:this._widget.getContouredDate();return qe=qe?new Date(qe):new Date,this._updateDateTime(qe)},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});const al=Zl;var xs=D(51774),Il=(D(36857),D(85154)),Ud=(0,g.zk)(),ql={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},vs=Yo.inherit({NAME:"List",supportedKeys:function(){return{space:_.lQ,home:_.lQ,end:_.lQ}},getDefaultOptions:function(){return(0,o.X)(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(Ve){return Ve||"shorttime"},popupConfig:function(Ve){return Ve},getValue:function(){var Ve=this._widget.option("selectedIndex");return-1===Ve?this.dateBox.option("value"):this._getDateByItemData(this._widgetItems[Ve])},useCurrentDateByDefault:function(){return!0},getDefaultDate:function(){return new Date(null)},popupShowingHandler:function(){this.dateBox._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return xs.A},_getWidgetOptions:function(){return{itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(Ve){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",Ve.actionValue)},_refreshItems:function(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState:function(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose:function(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue:function(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue:function(){var Ve=this.dateBoxValue(),qe=this._getDateIndex(Ve);-1===qe?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",qe)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(Ve){for(var qe=-1,Yt=0,Fi=this._widgetItems.length;Yt<Fi;Yt++)if(this._areDatesEqual(Ve,this._widgetItems[Yt])){qe=Yt;break}return qe},_areDatesEqual:function(Ve,qe){return(0,L.$P)(Ve)&&(0,L.$P)(qe)&&Ve.getHours()===qe.getHours()&&Ve.getMinutes()===qe.getMinutes()},_getTimeListItems:function(){var Ve=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),qe=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),Yt=this.dateBox.dateOption("value")||null,Fi=qe-Ve,_n=Ve.getMinutes()%this.dateBox.option("interval");return Fi<0?[]:(Fi>G.ONE_DAY&&(Fi=G.ONE_DAY),Yt-Ve<G.ONE_DAY||((Ve=this._getBoundaryDate("min")).setMinutes(_n),Yt&&Math.abs(Yt-qe)<G.ONE_DAY&&(Fi=(60*qe.getHours()+Math.abs(qe.getMinutes()-_n))*G.ONE_MINUTE)),this._getRangeItems(Ve,new Date(Ve),Fi))},_getRangeItems:function(Ve,qe,Yt){for(var Fi=[],_n=this.dateBox.option("interval");qe-Ve<=Yt;)Fi.push(new Date(qe)),qe.setMinutes(qe.getMinutes()+_n);return Fi},_getBoundaryDate:function(Ve){var qe=ql[Ve],Yt=new Date((0,_.YD)(this.dateBox.dateOption("value"),0));return new Date(Yt.getFullYear(),Yt.getMonth(),Yt.getDate(),qe.getHours(),qe.getMinutes())},_timeListItemTemplate:function(Ve){var qe=this.dateBox.option("displayFormat");return I.A.format(Ve,this.getDisplayFormat(qe))},_listItemClickHandler:function(Ve){if("useButtons"!==this.dateBox.option("applyValueMode")){var qe=this._getDateByItemData(Ve.itemData);this.dateBox.option("opened",!1),this.dateBoxValue(qe,Ve.event)}},_getDateByItemData:function(Ve){var qe=this.dateBox.option("value"),Yt=Ve.getHours(),Fi=Ve.getMinutes(),_n=Ve.getSeconds(),dr=Ve.getFullYear(),ea=Ve.getMonth(),Wa=Ve.getDate();return qe?((qe=this.dateBox.option("dateSerializationFormat")?re.A.deserializeDate(qe):new Date(qe)).setHours(Yt),qe.setMinutes(Fi),qe.setSeconds(_n),qe.setFullYear(dr),qe.setMonth(ea),qe.setDate(Wa)):qe=new Date(dr,ea,Wa,Yt,Fi,0,0),qe},getKeyboardListener:function(){return this._widget},_updatePopupHeight:function(){var Ve=(0,Il.b)(this.dateBox.option("dropDownOptions.height"));if(void 0===Ve||"auto"===Ve){this.dateBox._setPopupOption("height","auto");var qe=(0,q.P$)(this._widget.$element()),Yt=.45*(0,q.Oq)(Ud);this.dateBox._setPopupOption("height",Math.min(qe,Yt))}this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()},getParsedText:function(Ve,qe){var Yt=this.callBase(Ve,qe);return Yt&&(Yt=G.mergeDates(Yt,new Date(null),"date")),Yt}});const Jd=vs;var vc=(0,g.zk)(),bc="dx-datebox",Ol="dx-datebox-wrapper",ks={calendar:"calendar",rollers:"rollers",list:"list",native:"native"},oi={date:"date",datetime:"datetime",time:"time"},zt={Calendar:$o,DateView:Ni,Native:Dn,CalendarWithTime:al,List:Jd},Yi=W.A.inherit({_supportedKeys:function(){return(0,o.X)(this.callBase(),this._strategy.supportedKeys())},_renderButtonContainers:function(){this.callBase.apply(this,arguments),this._strategy.customizeButtons()},_getDefaultOptions:function(){return(0,o.X)(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,pickerType:ks.calendar,invalidDateMessage:z.A.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:z.A.format("validation-range"),applyButtonText:z.A.format("OK"),adaptivityEnabled:!1,calendarOptions:{},useHiddenSubmitElement:!0,_showValidationIcon:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{"dropDownOptions.showTitle":!0}},{device:{platform:"android"},options:{buttonsLocation:"bottom after"}},{device:function(){var qe=Y.A.real().platform;return"ios"===qe||"android"===qe},options:{pickerType:ks.native}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions:function(Ve){this._userOptions=(0,o.X)({},Ve),this.callBase(Ve),this._updatePickerOptions()},_updatePickerOptions:function(){var Ve=this.option("pickerType"),qe=this.option("type");Ve===ks.list&&(qe===oi.datetime||qe===oi.date)&&(Ve=ks.calendar),qe===oi.time&&Ve===ks.calendar&&(Ve=ks.list),this._pickerType=Ve,this._setShowDropDownButtonOption()},_setShowDropDownButtonOption(){var Ve=Y.A.real().platform,qe="android"===Ve&&Q.A.mozilla,Yt=this._isNativeType(),Fi="generic"!==Ve||!Yt;Yt&&qe&&(Fi=!1),this.option({showDropDownButton:Fi})},_init:function(){this._initStrategy(),this.option((0,o.X)({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:function(Ve){return Ve.charAt(0).toLowerCase()+Ve.substr(1)},_initStrategy:function(){var Ve=this._getStrategyName(this._getFormatType());this._strategy&&this._strategy.NAME===Ve||(this._strategy=new(0,zt[Ve])(this))},_getFormatType:function(){var Ve=this.option("type"),qe=/h|m|s/g.test(Ve),Fi="";return/d|M|Y/g.test(Ve)&&(Fi+=oi.date),qe&&(Fi+=oi.time),Fi},_getStrategyName:function(Ve){var qe=this._pickerType;return qe===ks.rollers?"DateView":qe===ks.native?"Native":Ve===oi.date?"Calendar":Ve===oi.datetime?"CalendarWithTime":"List"},_initMarkup:function(){this.$element().addClass(bc),this.callBase(),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._strategy.renderInputMinMax(this._input())},_render:function(){this.callBase(),this._formatValidationIcon()},_renderDimensions:function(){this.callBase(),this.$element().toggleClass("dx-auto-width",!this.option("width")),this._updatePopupWidth(),this._updatePopupHeight()},_dimensionChanged:function(){this.callBase(),this._updatePopupHeight()},_updatePopupHeight:function(){var Ve,qe;this._popup&&(null===(Ve=(qe=this._strategy)._updatePopupHeight)||void 0===Ve||Ve.call(qe))},_refreshFormatClass:function(){var Ve=this.$element();(0,C.__)(oi,function(qe,Yt){Ve.removeClass(bc+"-"+Yt)}),Ve.addClass(bc+"-"+this.option("type"))},_refreshPickerTypeClass:function(){var Ve=this.$element();(0,C.__)(ks,function(qe,Yt){Ve.removeClass(bc+"-"+Yt)}),Ve.addClass(bc+"-"+this._pickerType)},_formatValidationIcon:function(){if((0,g.Vd)()){var Ve=this._input().get(0),qe=this.option("rtlEnabled"),Yt=this._getClearButtonWidth(),Fi=this._getLongestElementDimensions(),_n=parseFloat(vc.getComputedStyle(Ve).width)-Yt,dr=Fi.width>_n,ea=Ve.style;this.$element().toggleClass("dx-show-invalid-badge",!dr&&this.option("_showValidationIcon")),dr?(void 0===this._storedPadding&&(this._storedPadding=qe?Fi.leftPadding:Fi.rightPadding),qe?ea.paddingLeft=0:ea.paddingRight=0):qe?ea.paddingLeft=this._storedPadding+"px":ea.paddingRight=this._storedPadding+"px"}},_getClearButtonWidth:function(){var Ve=0;if(this._isClearButtonVisible()&&""===this._input().val()){var qe=this.$element().find(".dx-clear-button-area").get(0);Ve=parseFloat(vc.getComputedStyle(qe).width)}return Ve},_getLongestElementDimensions:function(){var Ve=this._strategy.getDisplayFormat(this.option("displayFormat")),qe=I.A.format(G.getLongestDate(Ve,I.A.getMonthNames(),I.A.getDayNames()),Ve),Yt=this._input(),Fi=Yt.get(0),_n=(0,j.D2)(Yt,qe),ea=void 0!==this._storedPadding?this._storedPadding:0;_n.appendTo(this.$element());var Wa=parseFloat(vc.getComputedStyle(_n.get(0)).width),Io=parseFloat(vc.getComputedStyle(Fi).paddingRight),Xo=parseFloat(vc.getComputedStyle(Fi).paddingLeft),Ys=Wa+Xo+Io+ea;return _n.remove(),{width:Ys,leftPadding:Xo,rightPadding:Io}},_getKeyboardListeners(){return this.callBase().concat([this._strategy&&this._strategy.getKeyboardListener()])},_renderPopup:function(){this.callBase(),this._popup.$wrapper().addClass(Ol),this._renderPopupWrapper()},_getPopupToolbarItems(){var Ve,qe,Yt,Fi=this.callBase();return null!==(Ve=null===(qe=(Yt=this._strategy)._getPopupToolbarItems)||void 0===qe?void 0:qe.call(Yt,Fi))&&void 0!==Ve?Ve:Fi},_popupConfig:function(){var Ve=this.callBase();return(0,o.X)(this._strategy.popupConfig(Ve),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var Ve=this.$element(),qe=(0,o.X)({},oi,ks);(0,C.__)(qe,function(Yt,Fi){Ve.removeClass(Ol+"-"+Fi)}.bind(this)),this._popup.$wrapper().addClass(Ol+"-"+this.option("type")).addClass(Ol+"-"+this._pickerType).addClass("dx-dropdowneditor-overlay")}},_renderPopupContent:function(){this.callBase(),this._strategy.renderPopupContent()},_popupShowingHandler:function(){this.callBase(),this._strategy.popupShowingHandler()},_popupShownHandler:function(){this.callBase(),this._strategy.renderOpenedState()},_popupHiddenHandler:function(){this.callBase(),this._strategy.renderOpenedState(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(Ve){Ve&&this._formatValidationIcon()},_clearValueHandler:function(Ve){this.option("text",""),this.callBase(Ve)},_readOnlyPropValue:function(){if(this._pickerType===ks.rollers)return!0;var Ve=Y.A.real().platform;return!this._isNativeType()||"ios"!==Ve&&"android"!==Ve?this.callBase():this.option("readOnly")},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var Ve=this.dateOption("value");return this.option("text",this._getDisplayedText(Ve)),this._strategy.renderValue(),this.callBase()},_setSubmitValue:function(){var Ve=this.dateOption("value"),qe=this.option("dateSerializationFormat"),Yt=G.SUBMIT_FORMATS_MAP[this.option("type")],Fi=qe?re.A.serializeDate(Ve,qe):G.toStandardDateFormat(Ve,Yt);this._getSubmitElement().val(Fi)},_getDisplayedText:function(Ve){var Yt,qe=this.option("mode");if("text"===qe){var Fi=this._strategy.getDisplayFormat(this.option("displayFormat"));Yt=I.A.format(Ve,Fi)}else{var _n=this._getFormatByMode(qe);Yt=_n?I.A.format(Ve,_n):G.toStandardDateFormat(Ve,qe)}return Yt},_getFormatByMode:function(Ve){return(0,F.inputType)(Ve)?null:G.FORMATS_MAP[Ve]},_valueChangeEventHandler:function(Ve){var{text:qe,type:Yt,validationError:Fi}=this.option(),_n=this.dateOption("value");if(qe!==this._getDisplayedText(_n)){var dr=this._getParsedDate(qe),ea=_n??this._getDateByDefault(),Wa=G.mergeDates(ea,dr,Yt);if(this._applyInternalValidation(dr&&"time"===Yt?Wa:dr).isValid){var Xo=this._getDisplayedText(Wa);ea&&Wa&&ea.getTime()===Wa.getTime()&&Xo!==qe?this._renderValue():this.dateValue(Wa,Ve)}}else this._recallInternalValidation(_n,Fi)},_recallInternalValidation(Ve,qe){(!qe||qe.editorSpecific)&&(this._applyInternalValidation(Ve),this._applyCustomValidation(Ve))},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&this._strategy.getDefaultDate()},_getParsedDate:function(Ve){var qe=this._strategy.getDisplayFormat(this.option("displayFormat"));return this._strategy.getParsedText(Ve,qe)??void 0},_applyInternalValidation(Ve){var Yt=!!this.option("text")&&null!==Ve,Fi=!!Ve&&(0,L.$P)(Ve)&&!isNaN(Ve.getTime()),_n=Fi&&ie.A.dateInRange(Ve,this.dateOption("min"),this.dateOption("max"),this.option("type")),dr=!Yt&&!Ve||_n,ea="";return Fi?_n||(ea=this.option("dateOutOfRangeMessage")):ea=this.option("invalidDateMessage"),this._updateInternalValidationState(dr,ea),{isValid:dr,isDate:Fi}},_updateInternalValidationState(Ve,qe){this.option({isValid:Ve,validationError:Ve?null:{editorSpecific:!0,message:qe}})},_applyCustomValidation:function(Ve){this.validationRequest.fire({editor:this,value:this._serializeDate(Ve)})},_isValueChanged:function(Ve){var qe=this.dateOption("value");return(qe&&qe.getTime())!==(Ve&&Ve.getTime())},_isTextChanged:function(Ve){return this.option("text")!==(Ve&&this._getDisplayedText(Ve)||"")},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy()},_getPopupTitle:function(){var Ve=this.option("placeholder");if(Ve)return Ve;var qe=this.option("type");return qe===oi.time?z.A.format("dxDateBox-simulatedDataPickerTitleTime"):qe===oi.date||qe===oi.datetime?z.A.format("dxDateBox-simulatedDataPickerTitleDate"):""},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(Ve){var qe=this._strategy.getValue();this.dateValue(qe,Ve.event),this.callBase()},_dispose:function(){var Ve;this.callBase(),null===(Ve=this._strategy)||void 0===Ve||Ve.dispose()},_isNativeType:function(){return this._pickerType===ks.native},_updatePopupTitle:function(){var Ve;null===(Ve=this._popup)||void 0===Ve||Ve.option("title",this._getPopupTitle())},_optionChanged:function(Ve){switch(Ve.name){case"showClearButton":case"buttons":case"isValid":case"readOnly":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"pickerType":this._updatePickerOptions({pickerType:Ve.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:Ve.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._formatValidationIcon(),this._updateValue();break;case"placeholder":this.callBase.apply(this,arguments),this._updatePopupTitle();break;case"min":case"max":var qe=this.option("isValid");this._applyInternalValidation(this.dateOption("value")),qe||this._applyCustomValidation(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"text":this._strategy.textChangedHandler(Ve.value),this.callBase.apply(this,arguments);break;case"showDropDownButton":this._formatValidationIcon(),this.callBase.apply(this,arguments);break;case"todayButtonText":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":case"showAnalogClock":case"_showValidationIcon":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat:function(){var Ve=this.option("value");return this.option("dateSerializationFormat")&&(0,se.A)().forceIsoDateParsing?this.option("dateSerializationFormat"):(0,L.kf)(Ve)?"number":(0,L.Kg)(Ve)?re.A.getDateSerializationFormat(Ve):void 0},_updateValue:function(Ve){this.callBase(),this._applyInternalValidation(Ve??this.dateOption("value"))},dateValue:function(Ve,qe){var Yt=this._isValueChanged(Ve);return Yt&&qe&&this._saveValueChangeEvent(qe),Yt||(this._isTextChanged(Ve)?this._updateValue(Ve):""===this.option("text")&&this._applyCustomValidation(Ve)),this.dateOption("value",Ve)},dateOption:function(Ve,qe){if(1===arguments.length)return re.A.deserializeDate(this.option(Ve));this.option(Ve,this._serializeDate(qe))},_serializeDate:function(Ve){var qe=this._getSerializationFormat();return re.A.serializeDate(Ve,qe)},_clearValue:function(){var Ve=this.option("value");this.callBase(),null===Ve&&this._applyCustomValidation(null)},clear:function(){var Ve=this.option("value");this.callBase(),null===Ve&&this._applyInternalValidation(null)}});const Un=Yi;var vo=D(15655),No=D(50410),ed="dateBoxMask",Xc=Un.inherit({_supportedKeys(Ve){var qe=this.callBase(Ve),Yt=_n=>{var dr=qe[(0,d.YD)(_n)];return dr&&dr.apply(this,[_n])},Fi=(_n,dr)=>this._shouldUseOriginalHandler(_n)?Yt.apply(this,[_n]):dr.apply(this,[_n]);return(0,o.X)({},qe,{del:_n=>Fi(_n,dr=>{this._revertPart(1),this._isAllSelected()||dr.preventDefault()}),backspace:_n=>Fi(_n,dr=>{this._revertPart(-1),this._isAllSelected()||dr.preventDefault()}),home:_n=>Fi(_n,dr=>{this._selectFirstPart(),dr.preventDefault()}),end:_n=>Fi(_n,dr=>{this._selectLastPart(),dr.preventDefault()}),escape:_n=>Fi(_n,dr=>{this._revertChanges(dr)}),enter:_n=>Fi(_n,()=>{this._enterHandler()}),leftArrow:_n=>Fi(_n,dr=>{this._selectNextPart(-1),dr.preventDefault()}),rightArrow:_n=>Fi(_n,dr=>{this._selectNextPart(1),dr.preventDefault()}),upArrow:_n=>Fi(_n,dr=>{this._upDownArrowHandler(1),dr.preventDefault()}),downArrow:_n=>Fi(_n,dr=>{this._upDownArrowHandler(-1),dr.preventDefault()})})},_shouldUseOriginalHandler(Ve){var qe=this.option("opened")&&Ve&&-1===["backspace","del"].indexOf((0,d.YD)(Ve));return!this._useMaskBehavior()||qe||Ve&&Ve.altKey},_upDownArrowHandler(Ve){this._setNewDateIfEmpty();var qe=this._getActivePartValue(this._initialMaskValue),Fi=this._getActivePartValue()-qe;this._loadMaskValue(this._initialMaskValue),this._changePartValue(Fi+Ve,!0)},_changePartValue(Ve,qe){var Yt=this._getActivePartProp("pattern");/^a{1,5}$/.test(Yt)?this._toggleAmPm():this._partIncrease(Ve,qe)},_toggleAmPm(){var Ve=this._getActivePartProp("text"),qe=No.A.getPeriodNames().indexOf(Ve);this._setActivePartValue(1^qe)},_getDefaultOptions(){return(0,o.X)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0)})},_isSingleCharKey(Ve){var{originalEvent:qe,alt:Yt}=Ve,Fi=qe.data||qe.key;return"string"==typeof Fi&&1===Fi.length&&!Yt&&!(0,d.By)(qe)},_isSingleDigitKey(Ve){var qe,Yt=null===(qe=Ve.originalEvent)||void 0===qe?void 0:qe.data;return 1===Yt?.length&&parseInt(Yt,10)},_useBeforeInputEvent:function(){return Y.A.real().android},_keyInputHandler(Ve,qe){var Yt=this._input().val();this._processInputKey(qe),Ve.preventDefault(),Yt!==this._input().val()&&R.A.trigger(this._input(),"input")},_keyboardHandler(Ve){var qe=Ve.originalEvent.key,Yt=this.callBase(Ve);return!this._useMaskBehavior()||this._useBeforeInputEvent()||(Q.A.chrome&&"Process"===Ve.key&&0===Ve.code.indexOf("Digit")?(qe=Ve.code.replace("Digit",""),this._processInputKey(qe),this._maskInputHandler=()=>{this._renderSelectedPart()}):this._isSingleCharKey(Ve)&&this._keyInputHandler(Ve.originalEvent,qe)),Yt},_maskBeforeInputHandler(Ve){this._maskInputHandler=null;var{inputType:qe}=Ve.originalEvent;"insertCompositionText"===qe&&(this._maskInputHandler=()=>{this._renderSelectedPart()});var Yt="deleteContentBackward"===qe;if(Yt||"deleteContentForward"===qe){var _n=Yt?-1:1;this._maskInputHandler=()=>{this._revertPart(),this._selectNextPart(_n)}}if(this._useMaskBehavior()&&this._isSingleCharKey(Ve))return this._keyInputHandler(Ve,Ve.originalEvent.data),!0},_keyPressHandler(Ve){var{originalEvent:qe}=Ve;"insertCompositionText"===qe?.inputType&&this._isSingleDigitKey(Ve)&&(this._processInputKey(qe.data),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()),this.callBase(Ve),this._maskInputHandler&&(this._maskInputHandler(),this._maskInputHandler=null)},_processInputKey(Ve){this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(Ve))?this._searchString(Ve):this._searchNumber(Ve)},_isAllSelected(){var Ve=this._caret();return Ve.end-Ve.start===this.option("text").length},_getFormatPattern(){if(this._formatPattern)return this._formatPattern;var Ve=this._strategy.getDisplayFormat(this.option("displayFormat")),qe=(0,L.Kg)(Ve)&&!I.A._getPatternByFormat(Ve);return this._formatPattern=qe?Ve:(0,x.g)(function(Yt){return I.A.format(Yt,Ve)}),this._formatPattern},_setNewDateIfEmpty(){if(!this._maskValue){var Ve="time"===this.option("type")?new Date(null):new Date;this._maskValue=Ve,this._initialMaskValue=Ve,this._renderDateParts()}},_partLimitsReached(Ve){var qe=String(Ve).length,Yt=this._getActivePartProp("pattern").length,_n=1===Yt?qe:Math.min(Yt,qe),dr=this._searchValue.length===_n,ea=parseInt(this._searchValue+"0")>Ve;return dr||ea},_searchNumber(Ve){var{max:qe}=this._getActivePartLimits(),Yt=String(qe).length;this._searchValue=(this._searchValue+Ve).substr(-Yt),isNaN(this._searchValue)&&(this._searchValue=Ve),this._setActivePartValue(this._searchValue),this._partLimitsReached(qe)&&this._selectNextPart(1)},_searchString(Ve){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var qe=this._getActivePartProp("limits")(this._maskValue),Yt=this._searchValue+Ve.toLowerCase(),Fi=qe.max-qe.min,_n=0;_n<=Fi;_n++)if(this._loadMaskValue(this._initialMaskValue),this._changePartValue(_n+1),0===this._getActivePartProp("text").toLowerCase().indexOf(Yt))return void(this._searchValue=Yt);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(Ve))}},_clearSearchValue(){this._searchValue=""},_revertPart:function(Ve){if(!this._isAllSelected()){var qe=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(qe),this._selectNextPart(Ve)}this._clearSearchValue()},_useMaskBehavior(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_prepareRegExpInfo(){this._regExpInfo=(0,m.wu)(this._getFormatPattern(),I.A);var Ve=this._regExpInfo.regexp,qe=Ve.source,Yt=Ve.flags,Fi=new RegExp(/(\{[0-9]+,?[0-9]*\})/),_n=qe.split(Fi).map(dr=>Fi.test(dr)?dr:vo.A.convertDigits(dr,!1)).join("");this._regExpInfo.regexp=new RegExp(_n,Yt)},_initMaskState(){this._activePartIndex=0,this._formatPattern=null,this._prepareRegExpInfo(),this._loadMaskValue()},_renderMask(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts(){if(this._useMaskBehavior()){var Ve=this.option("text")||this._getDisplayedText(this._maskValue);Ve&&(this._dateParts=((Ve,qe)=>{for(var Yt=qe.regexp.exec(Ve),Fi=0,_n=0,dr=[],ea=function(){_n=(Fi=_n)+Yt[Wa].length;var Io=qe.patterns[Wa-1].replace(/^'|'$/g,""),Xo=(Ve=>s[Ve]||(()=>Ve))(Io[0]);dr.push({index:Wa-1,isStub:Io===Yt[Wa],caret:{start:Fi,end:_n},pattern:Io,text:Yt[Wa],limits:function(){for(var Ys=arguments.length,ol=new Array(Ys),td=0;td<Ys;td++)ol[td]=arguments[td];return f(Io[0],...ol)},setter:b[Io[0]]||_.lQ,getter:Xo})},Wa=1;Wa<Yt.length;Wa++)ea();return dr})(Ve,this._regExpInfo),this._input().is(":hidden")||this._selectNextPart())}},_detachMaskEvents(){R.A.off(this._input(),"."+ed)},_attachMaskEvents(){R.A.on(this._input(),(0,d.b4)("dxclick",ed),this._maskClickHandler.bind(this)),R.A.on(this._input(),(0,d.b4)("paste",ed),this._maskPasteHandler.bind(this)),R.A.on(this._input(),(0,d.b4)("drop",ed),()=>{this._renderSelectedPart()}),R.A.on(this._input(),(0,d.b4)("compositionend",ed),this._maskCompositionEndHandler.bind(this)),this._useBeforeInputEvent()&&R.A.on(this._input(),(0,d.b4)("beforeinput",ed),this._maskBeforeInputHandler.bind(this))},_renderSelectedPart(){this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()},_selectLastPart(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(-1))},_selectFirstPart(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(1))},_onMouseWheel(Ve){this._useMaskBehavior()&&this._partIncrease(Ve.delta>0?1:-1,Ve)},_selectNextPart(){var Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")&&!this._disposed){Ve&&(this._initialMaskValue=new Date(this._maskValue));var qe=(0,E.df)(this._activePartIndex+Ve,0,this._dateParts.length-1);if(this._dateParts[qe].isStub){if(!(0===qe&&Ve<0||qe===this._dateParts.length-1&&Ve>0))return void this._selectNextPart(Ve>=0?Ve+1:Ve-1);qe=this._activePartIndex}this._activePartIndex!==qe&&this._clearSearchValue(),this._activePartIndex=qe,this._caret(this._getActivePartProp("caret"))}},_getRealLimitsPattern(){if("d"===this._getActivePartProp("pattern")[0])return"dM"},_getActivePartLimits(Ve){return this._getActivePartProp("limits")(this._maskValue,Ve&&this._getRealLimitsPattern())},_getActivePartValue(Ve){Ve=Ve||this._maskValue;var qe=this._getActivePartProp("getter");return(0,L.Tn)(qe)?qe(Ve):Ve[qe]()},_addLeadingZeroes(Ve){var qe=this._searchValue.match(/^0+/),Yt=this._getActivePartLimits(),Fi=String(Yt.max).length;return((qe&&qe[0]||"")+String(Ve)).substr(-Fi)},_setActivePartValue(Ve,qe){qe=qe||this._maskValue;var Yt=this._getActivePartProp("setter"),Fi=this._getActivePartLimits();Ve=(0,E.r4)(Ve,Fi.min,Fi.max)?Ve:Ve%10,Ve=this._addLeadingZeroes((0,E.df)(Ve,Fi.min,Fi.max)),(0,L.Tn)(Yt)?Yt(qe,Ve):qe[Yt](Ve),this._renderDisplayText(this._getDisplayedText(qe)),this._renderDateParts()},_getActivePartProp(Ve){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][Ve]},_loadMaskValue(){var Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=Ve&&new Date(Ve),this._initialMaskValue=Ve&&new Date(Ve)},_saveMaskValue(){var Ve=this._maskValue&&new Date(this._maskValue);Ve&&"date"===this.option("type")&&Ve.setHours(0,0,0,0),this._initialMaskValue=new Date(Ve),this.dateOption("value",Ve)},_revertChanges(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText(Ve){this.callBase(Ve),this._useMaskBehavior()&&this.option("text",Ve)},_partIncrease(Ve,qe){this._setNewDateIfEmpty();var{max:Yt,min:Fi}=this._getActivePartLimits(qe),_n=Ve+this._getActivePartValue();_n>Yt?_n=this._applyLimits(_n,{limitBase:Fi,limitClosest:Yt,max:Yt}):_n<Fi&&(_n=this._applyLimits(_n,{limitBase:Yt,limitClosest:Fi,max:Yt})),this._setActivePartValue(_n)},_applyLimits(Ve,qe){var{limitBase:Yt,limitClosest:Fi,max:_n}=qe,dr=(Ve-Fi)%_n;return dr?Yt+dr-1*(0,E._S)(dr):Fi},_maskClickHandler(){this._loadMaskValue(this._maskValue),this.option("text")&&(this._activePartIndex=((Ve,qe)=>{for(var Yt=0;Yt<Ve.length;Yt++)if(!Ve[Yt].isStub&&Ve[Yt].caret.end>=qe)return Yt;return null})(this._dateParts,this._caret().start),this._isAllSelected()||((0,L.O9)(this._activePartIndex)?this._caret(this._getActivePartProp("caret")):this._selectLastPart()))},_maskCompositionEndHandler(Ve){this._input().val(this._getDisplayedText(this._maskValue)),this._selectNextPart(),this._maskInputHandler=()=>{this._renderSelectedPart()}},_maskPasteHandler(Ve){var qe=this._replaceSelectedText(this.option("text"),this._caret(),(0,j.KR)(Ve)),Yt=I.A.parse(qe,this._getFormatPattern());Yt&&this._isDateValid(Yt)&&(this._maskValue=Yt,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),Ve.preventDefault()},_isDateValid:Ve=>(0,L.$P)(Ve)&&!isNaN(Ve),_isValueDirty(){var Ve=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(Ve&&Ve.getTime())},_fireChangeEvent(){this._clearSearchValue(),this._isValueDirty()&&R.A.trigger(this._input(),"change")},_enterHandler(){this._fireChangeEvent(),this._selectNextPart(1)},_focusOutHandler(Ve){this._useMaskBehavior()&&!Ve.isDefaultPrevented()?(this._fireChangeEvent(),this.callBase(Ve),this._selectFirstPart(Ve)):this.callBase(Ve)},_valueChangeEventHandler(Ve){var qe=this.option("text");this._useMaskBehavior()?(this._saveValueChangeEvent(Ve),qe?null===this._maskValue&&this._loadMaskValue(qe):this._maskValue=null,this._saveMaskValue()):this.callBase(Ve)},_optionChanged(Ve){switch(Ve.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(Ve),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(Ve),this._renderDateParts();break;case"emptyDateValue":break;default:this.callBase(Ve)}},_clearMaskState(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},clear(){this._clearMaskState(),this._activePartIndex=0,this.callBase()},_clean(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}});(0,r.A)("dxDateBox",Xc)},47642:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>ye});var r=D(24292),d=D(91269),L=D(13992),j=D(64905),o=D(5042),E=D(31063),R=D(12101),m=D(72463),_=D(87951),v=D(60181),h=D(87310),s=D(4441),b=D(50448),O=D(20736),w=D(80829),f=D(2839);class g extends w.A{constructor(ge,Ee,he){super(ge,Ee,he),this.currentTemplate=null}_attachEvents(ge){var{editor:Ee}=this;ge.option("onClick",he=>{var Ie;(null!==(Ie=Ee._shouldCallOpenHandler)&&void 0!==Ie&&Ie.call(Ee)||!Ee.option("openOnFieldClick"))&&Ee._openHandler(he)}),d.A.on(ge.$element(),"mousedown",he=>{Ee.$element().is(".dx-state-focused")&&he.preventDefault()})}_create(){var{editor:ge}=this,Ee=(0,r.A)("<div>"),he=this._getOptions();this._addToContainer(Ee);var Ie=ge._createComponent(Ee,f.A,(0,_.X)({},he,{elementAttr:{"aria-label":O.A.format("dxDropDownEditor-selectLabel")}}));return this._legacyRender(ge.$element(),Ee,he.visible),{$element:Ee,instance:Ie}}_getOptions(){var{editor:ge}=this,Ee=this._isVisible(),Ie={focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:ge.option("readOnly"),visible:Ee};return this._addTemplate(Ie),Ie}_isVisible(){var{editor:ge}=this;return super._isVisible()&&ge.option("showDropDownButton")}_legacyRender(ge,Ee,he){ge.toggleClass("dx-dropdowneditor-button-visible",he),Ee&&Ee.removeClass("dx-button").removeClass("dx-button-mode-contained").addClass("dx-dropdowneditor-button")}_isSameTemplate(){return this.editor.option("dropDownButtonTemplate")===this.currentTemplate}_addTemplate(ge){this._isSameTemplate()||(ge.template=this.editor._getTemplateByOption("dropDownButtonTemplate"),this.currentTemplate=this.editor.option("dropDownButtonTemplate"))}update(){if(super.update()){var{editor:Ee,instance:he}=this,Ie=Ee.$element(),ce=this._getOptions();he?.option(ce),this._legacyRender(Ie,he?.$element(),ce.visible)}}}var C=D(98041),F=D(49104),Y=D(2934),Q=D(18060),se=D(23862),ie=D(63798),ee=D(64633),re=D(14435),ne=D(85154),_e=D(12824),oe="dx-dropdowneditor-input-wrapper",we="dx-dropdowneditor-overlay",X="ios"===se.A.current().platform,q=Y.A.inherit({_supportedKeys:function(){return(0,_.X)({},this.callBase(),{tab:function(xe){if(this.option("opened")){if(!this._popup.getFocusableElements().length)return void this.close();var ge=xe.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();ge&&(d.A.trigger(ge,"focus"),ge.select()),xe.preventDefault()}},escape:function(xe){return this.option("opened")&&xe.preventDefault(),this.close(),!0},upArrow:function(xe){return!(!(0,F.By)(xe)&&(xe.preventDefault(),xe.stopPropagation(),xe.altKey)&&(this.close(),1))},downArrow:function(xe){return!(!(0,F.By)(xe)&&(xe.preventDefault(),xe.stopPropagation(),xe.altKey)&&(this._validatedOpening(),1))},enter:function(xe){return this.option("opened")&&(xe.preventDefault(),this._valueChangeEventHandler(xe)),!0}})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:g}])},_getDefaultOptions:function(){return(0,_.X)(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{showTitle:!1},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:O.A.format("OK"),cancelButtonText:O.A.format("Cancel"),buttonsLocation:"default",useHiddenSubmitElement:!1,validationMessagePosition:"auto"})},_useTemplates:function(){return!0},_getDefaultPopupPosition:function(xe){var ge=(0,b.n)(xe);return{offset:{h:0,v:-1},my:ge+" top",at:ge+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(xe){return"generic"===xe.platform},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+oe).first()},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_updatePopupPosition:function(xe){var{my:ge,at:Ee}=this._getDefaultPopupPosition(xe),he=this.option("popupPosition");this.option("popupPosition",(0,_.X)({},he,{my:ge,at:Ee}))},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this._renderSubmitElement(),this.callBase(),this.$element().addClass("dx-dropdowneditor"),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this._wrapInput(),this._setDefaultAria()},_wrapInput:function(){this._$container=this.$element().wrapInner((0,r.A)("<div>").addClass(oe)).children().eq(0)},_setDefaultAria:function(){this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this._isEditable()||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderMask:function(){this.option("fieldTemplate")||this.callBase()},_renderField:function(){var xe=this._getFieldTemplate();xe&&this._renderTemplatedField(xe,this._fieldRenderData())},_renderPlaceholder:function(){this._getFieldTemplate()||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue(),this.callBase().always(this._renderField.bind(this))},_renderTemplatedField:function(xe,ge){var Ee=(0,E.in)(this._input()),he=this._$container;this._detachKeyboardEvents(),this._refreshButtonsContainer(),this._detachWrapperContent(),this._detachFocusEvents(),he.empty();var Ie=(0,r.A)("<div>").addClass("dx-dropdowneditor-field-template-wrapper").appendTo(he);xe.render({model:ge,container:(0,v.c)(Ie),onRendered:()=>{if(this.$element().find(Ie).length){var de=this._input();if(!de.length)throw h.A.Error("E1010");this._integrateInput(),Ee&&d.A.trigger(de,"focus")}}}),this._attachWrapperContent(he)},_detachWrapperContent(){var xe,ge,Ee;this.option("useHiddenSubmitElement")&&(null===(xe=this._$submitElement)||void 0===xe||xe.detach());var Ie=null===(ge=this._$beforeButtonsContainer)||void 0===ge?void 0:ge[0].parentNode,ce=null===(Ee=this._$afterButtonsContainer)||void 0===Ee?void 0:Ee[0].parentNode;Ie?.removeChild(this._$beforeButtonsContainer[0]),ce?.removeChild(this._$afterButtonsContainer[0])},_attachWrapperContent(xe){var ge,Ee=this.option("useHiddenSubmitElement");xe.prepend(this._$beforeButtonsContainer),Ee&&(null===(ge=this._$submitElement)||void 0===ge||ge.appendTo(xe)),xe.append(this._$afterButtonsContainer)},_refreshButtonsContainer(){this._$buttonsContainer=this.$element().children().eq(0)},_integrateInput:function(){this._renderFocusState(),this._refreshValueChangeEvent(),this._refreshEvents(),this._refreshEmptinessEvent()},_refreshEmptinessEvent:function(){d.A.off(this._input(),"input blur",this._toggleEmptinessEventHandler),this._renderEmptinessEvent()},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this._templateManager.addDefaultTemplates({dropDownButton:new ie.l(function(xe){var ge=(0,r.A)("<div>").addClass("dx-dropdowneditor-icon");(0,r.A)(xe.container).append(ge)})}),this.callBase()},_renderOpenHandler:function(){var xe=this._inputWrapper(),ge=(0,F.b4)(Q.U,this.NAME),Ee=this.option("openOnFieldClick");d.A.off(xe,ge),d.A.on(xe,ge,this._getInputClickHandler(Ee)),this.$element().toggleClass("dx-dropdowneditor-field-clickable",Ee),Ee&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler:function(){X&&(this._detachFocusOutEvents(),d.A.on(this._inputWrapper(),(0,F.b4)("focusout",this.NAME),xe=>{var ge=xe.relatedTarget;ge&&this.option("opened")&&this._isTargetOutOfComponent(ge)&&this.close()}))},_isTargetOutOfComponent:function(xe){var ge=this.content?(0,r.A)(this.content()).closest(".".concat(we)):this._$popup;return 0===(0,r.A)(xe).closest(".".concat(we),ge).length},_detachFocusOutEvents:function(){X&&d.A.off(this._inputWrapper(),(0,F.b4)("focusout",this.NAME))},_getInputClickHandler:function(xe){return xe?ge=>{this._executeOpenAction(ge)}:ge=>{this._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(xe){this._openOnFieldClickAction({event:xe})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!(0,E.in)(this._input())&&(this._resetCaretPosition(),d.A.trigger(this._input(),"focus")),!0)},_resetCaretPosition:function(){var xe=arguments.length>0&&void 0!==arguments[0]&&arguments[0],ge=this._input().get(0);if(ge){var{value:Ee}=ge,he=(0,m.O9)(Ee)&&(xe||this._isEditable())?Ee.length:0;this._caret({start:he,end:he},!0)}},_isEditable:function(){return this.option("acceptCustomValue")},_toggleOpenState:function(xe){this._focusInput()&&(this.option("readOnly")||(xe=arguments.length?xe:!this.option("opened"),this.option("opened",xe)))},_getControlsAria(){return this._popup&&this._popupContentId},_renderOpenedState:function(){var xe=this.option("opened");xe&&this._createPopup(),this.$element().toggleClass("dx-dropdowneditor-active",xe),this._setPopupOption("visible",xe);var ge={expanded:xe,controls:this._getControlsAria()};this.setAria(ge),this.setAria("owns",xe?this._popupContentId:void 0,this.$element())},_createPopup:function(){this._$popup||(this._$popup=(0,r.A)("<div>").addClass(we).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopupContent:o.lQ,_renderPopup:function(){var xe=(0,_.X)(this._popupConfig(),this._options.cache("dropDownOptions"));delete xe.closeOnOutsideClick,xe.elementAttr&&!Object.keys(xe.elementAttr).length&&delete xe.elementAttr,this._popup=this._createComponent(this._$popup,ee.A,xe),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this._attachPopupKeyHandler(),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_attachPopupKeyHandler(){d.A.on(this._popup.$overlayContent(),(0,F.b4)("keydown",this.NAME),xe=>this._popupKeyHandler(xe))},_popupKeyHandler(xe){switch((0,F.YD)(xe)){case"tab":this._popupTabHandler(xe);break;case"escape":this._popupEscHandler(xe)}},_popupTabHandler(xe){var ge=(0,r.A)(xe.target),Ee=xe.shiftKey&&ge.is(this._getFirstPopupElement());(!xe.shiftKey&&ge.is(this._getLastPopupElement())||Ee)&&(d.A.trigger(this.field(),"focus"),xe.preventDefault())},_popupEscHandler(){d.A.trigger(this._input(),"focus"),this.close()},_setPopupContentId(xe){this._popupContentId="dx-"+new L.A,this.setAria("id",this._popupContentId,xe)},_contentReadyHandler:o.lQ,_popupConfig:function(){return{onInitialized:this._getPopupInitializedHandler(),position:(0,_.X)(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("dropDownOptions.showTitle"),_ignoreFunctionValueDeprecation:!0,width:()=>(0,ne.v)(this.$element()),height:"auto",shading:!1,hideOnParentScroll:!0,hideOnOutsideClick:xe=>this._closeOutsideDropDownHandler(xe),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,dragEnabled:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1,contentTemplate:null,_hideOnParentScrollTarget:this.$element(),_wrapperClassExternal:we,_ignorePreventScrollEventsDeprecation:!0}},_popupInitializedHandler:o.lQ,_getPopupInitializedHandler:function(){var xe=this.option("onPopupInitialized");return ge=>{this._popupInitializedHandler(ge),xe&&this._popupInitializedAction({popup:ge.component})}},_dimensionChanged:function(){!(0,re.Vd)()||this.$element().is(":visible")?this._updatePopupWidth():this.close()},_updatePopupWidth:function(){void 0===(0,ne.b)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",()=>(0,ne.v)(this.$element()))},_popupPositionedHandler:function(xe){var ge,Ee,{labelMode:he,stylingMode:Ie}=this.option();if(this._popup){var ce=this._popup.$overlayContent(),de=null===(ge=xe.position)||void 0===ge||null===(Ee=ge.v)||void 0===Ee?void 0:Ee.flip,pe="hidden"!==he&&"outside"!==he&&"outlined"===Ie;if(xe.position&&ce.toggleClass("dx-dropdowneditor-overlay-flipped",de),de&&pe&&this._label.isVisible()){var Be=this._label.$element();(0,_e.Cy)(ce,{top:(0,_e.x5)(ce).top-parseInt(Be.css("fontSize"))})}}},_popupShowingHandler:o.lQ,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){var xe;this._openAction(),null===(xe=this._validationMessage)||void 0===xe||xe.option("positionSide",this._getValidationMessagePositionSide())},_popupHiddenHandler:function(){var xe;this._closeAction(),null===(xe=this._validationMessage)||void 0===xe||xe.option("positionSide",this._getValidationMessagePositionSide())},_getValidationMessagePositionSide:function(){var xe=this.option("validationMessagePosition");if("auto"!==xe)return xe;var ge="bottom";if(this._popup&&this._popup.option("visible")){var{top:Ee}=s.A.setup(this.$element()),{top:he}=s.A.setup(this._popup.$content());ge=Ee+this.option("popupPosition").offset.v>he?"bottom":"top"}return ge},_closeOutsideDropDownHandler:function(xe){var{target:ge}=xe,Ee=(0,r.A)(ge),he=this.getButton("dropDown"),Ie=he&&he.$element(),ce=!!Ee.closest(this.$element()).length,de=!!Ee.closest(Ie).length;return!ce&&!de},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(xe,ge){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return(0,r.A)(this._popup.getFocusableElements()).first()},_getLastPopupElement:function(){return(0,r.A)(this._popup.getFocusableElements()).last()},_popupToolbarItemsConfig:function(){var xe=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText")}}];return this._applyButtonsLocation(xe)},_applyButtonsLocation:function(xe){var ge=this.option("buttonsLocation"),Ee=xe;if("default"!==ge){var he=(0,o.T6)(ge);(0,R.__)(Ee,function(Ie,ce){(0,_.X)(ce,{toolbar:he[0],location:he[1]})})}return Ee},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_popupOptionChanged:function(xe){var ge=C.A.getOptionsFromContainer(xe);this._setPopupOption(ge);var Ee=Object.keys(ge);(-1!==Ee.indexOf("width")||-1!==Ee.indexOf("height"))&&this._dimensionChanged()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=(0,r.A)("<input>").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose:function(){this._detachFocusOutEvents(),this.callBase()},_optionChanged:function(xe){var ge;switch(xe.name){case"width":case"height":this.callBase(xe),null===(ge=this._popup)||void 0===ge||ge.repaint();break;case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":(0,m.O9)(xe.value)?this._renderField():this._invalidate();break;case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(xe),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;case"popupPosition":break;case"deferRendering":(0,re.Vd)()&&this._createPopup();break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;case"rtlEnabled":this._updatePopupPosition(xe.value),this.callBase(xe);break;default:this.callBase(xe)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return(0,v.c)(this._input())},content:function(){return this._popup?this._popup.content():null}});(0,j.A)("dxDropDownEditor",q);const ye=q},85154:(ei,rt,D)=>{"use strict";D.d(rt,{b:()=>j,v:()=>L});var r=D(80186),d=D(14435),L=function(o){if((0,d.Vd)())return(0,r.Ot)(o)},j=function(o){return null===o&&(o=void 0),"function"==typeof o&&(o=o()),o}},44831:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>se});var r=D(24292),d=D(98332),L=D(34423),j=D(14435),o=D(49104),E=D(87951),R=D(98041),m=D(79130),_=D(91269),v=D(79465),h=D(13992),s=D(5042),b=D(7963),O="dx-invalid-message-auto",I="dx-validation-target",g="invalid",F=["outlined","filled","underlined"],Y={validationMessageMode:"mode",validationMessagePosition:"positionSide",validationMessageOffset:"offset",validationBoundary:"boundary"},Q=R.A.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.validationRequest=(0,L.A)(),this.callBase.apply(this,arguments)},_createElement:function(ie){this.callBase(ie);var ee=this.$element();ee&&(0,d.p)(ee[0],I,this)},_initOptions:function(ie){this.callBase.apply(this,arguments),this.option(m.A.initValidationOptions(ie))},_init:function(){this._initialValue=this.option("value"),this.callBase(),this._options.cache("validationTooltipOptions",this.option("validationTooltipOptions")),this.$element().addClass("dx-show-invalid-badge")},_getDefaultOptions:function(){return(0,E.X)(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationErrors:null,validationStatus:"valid",validationMessageMode:"auto",validationMessagePosition:"bottom",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{},_showValidationMessage:!0,isDirty:!1})},_attachKeyboardEvents:function(){this.option("readOnly")||this.callBase()},_setOptionsByReference:function(){this.callBase(),(0,E.X)(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){var ie;this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState(),null===(ie=this.option("_onMarkupRendered"))||void 0===ie||ie()},_raiseValueChangeAction:function(ie,ee){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(ie,ee))},_valueChangeArgs:function(ie,ee){return{value:ie,previousValue:ee,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(ie){this._valueChangeEventInstance=ie},_focusInHandler:function(ie){var ee="auto"===this.option("validationMessageMode");if(this._canValueBeChangedByClick()&&ee){var re,ne=null===(re=this._validationMessage)||void 0===re?void 0:re.$wrapper();ne?.removeClass(O),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>ne?.addClass(O),150)}return this.callBase(ie)},_canValueBeChangedByClick:function(){return!1},_getStylingModePrefix:function(){return"dx-editor-"},_renderStylingMode:function(){var ie=this.option("stylingMode"),ee=this._getStylingModePrefix(),re=F.map(oe=>ee+oe);re.forEach(oe=>this.$element().removeClass(oe));var ne=ee+ie;if(-1===re.indexOf(ne)){var _e=this._getDefaultOptions().stylingMode,be=this._convertRulesToOptions(this._defaultOptionsRules()).stylingMode;ne=ee+(be||_e)}this.$element().addClass(ne)},_getValidationErrors:function(){var ie=this.option("validationErrors");return!ie&&this.option("validationError")&&(ie=[this.option("validationError")]),ie},_disposeValidationMessage:function(){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=void 0,this._validationMessage=void 0)},_toggleValidationClasses:function(ie){this.$element().toggleClass("dx-invalid",ie),this.setAria(g,ie||void 0)},_renderValidationState:function(){var ie=this.option("isValid")&&this.option("validationStatus")!==g,ee=this._getValidationErrors(),re=this.$element();if(this._toggleValidationClasses(!ie),(0,j.Vd)()&&!1!==this.option("_showValidationMessage")&&(this._disposeValidationMessage(),!ie&&ee)){var{validationMessageMode:ne,validationMessageOffset:_e,validationBoundary:be,rtlEnabled:oe}=this.option();this._$validationMessage=(0,r.A)("<div>").appendTo(re);var me="dx-".concat(new h.A);this.setAria("describedby",me),this._validationMessage=new v.A(this._$validationMessage,(0,E.X)({validationErrors:ee,rtlEnabled:oe,target:this._getValidationMessageTarget(),visualContainer:re,mode:ne,positionSide:this._getValidationMessagePosition(),offset:_e,boundary:be,contentId:me},this._options.cache("validationTooltipOptions"))),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_getValidationMessagePosition:function(){return this.option("validationMessagePosition")},_getValidationMessageTarget:function(){return this.$element()},_toggleReadOnlyState:function(){var ie=this.option("readOnly");this._toggleBackspaceHandler(ie),this.$element().toggleClass("dx-state-readonly",!!ie),this.setAria("readonly",ie||void 0)},_toggleBackspaceHandler:function(ie){var ee=this._keyboardEventBindingTarget(),re=(0,o.b4)("keydown","editorReadOnly");_.A.off(ee,re),ie&&_.A.on(ee,re,ne=>{"backspace"===(0,o.YD)(ne)&&ne.preventDefault()})},_dispose:function(){var ie=this.$element()[0];(0,d.p)(ie,I,null),clearTimeout(this.showValidationMessageTimeout),this._disposeValidationMessage(),this.callBase()},_setSubmitElementName:function(ie){var ee=this._getSubmitElement();ee&&(ie.length>0?ee.attr("name",ie):ee.removeAttr("name"))},_getSubmitElement:function(){return null},_setValidationMessageOption:function(ie){var ee,{name:re,value:ne}=ie;null===(ee=this._validationMessage)||void 0===ee||ee.option(Y[re]?Y[re]:re,ne)},_hasActiveElement:s.lQ,_optionChanged:function(ie){var ee;switch(ie.name){case"onValueChanged":this._createValueChangeAction();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":ie.value!=ie.previousValue&&(this.option("isDirty",this._initialValue!==ie.value),this.validationRequest.fire({value:ie.value,editor:this})),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(ie.value,ie.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(ie),null===(ee=this._validationMessage)||void 0===ee||ee.updateMaxWidth();break;case"name":this._setSubmitElementName(ie.value);break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(m.A.synchronizeValidationOptions(ie,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":case"validationMessagePosition":case"validationMessageOffset":this._setValidationMessageOption(ie);break;case"rtlEnabled":this._setValidationMessageOption(ie),this.callBase(ie);break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,ie);break;case"_showValidationMessage":case"isDirty":break;default:this.callBase(ie)}},_resetToInitialValue:function(){this.option("value",this._initialValue)},blur:function(){this._hasActiveElement()&&(0,b.GX)()},clear:function(){var ie=this._getDefaultOptions();this.option("value",ie.value)},reset:function(){arguments.length&&(this._initialValue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0),this._resetToInitialValue(),this.option("isDirty",!1),this.option("isValid",!0)}});Q.isEditor=ie=>ie instanceof Q;const se=Q},69803:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>$s});var r=D(58168),d=D(24292),L=D(91269),j=D(64905),o=D(13992),E=D(5042),R=D(83771),m=D(72463),_=D(12101),v=D(87951),h=D(65822),s=D(60181),b=D(20736),O=D(98041),w=D(44831),f=D(14435),k=D(79130);class I{constructor(){this._map={}}_findWidgetInstance(Ot){var Qt;return(0,_.__)(this._map,function(Ei,on){var{widgetInstance:Bn,item:ir}=on;if(Ot(ir))return Qt=Bn,!1}),Qt}_findFieldByCondition(Ot,Qt){var Ei;return(0,_.__)(this._map,function(on,Bn){if(Ot(Bn))return Ei="guid"===Qt?on:Bn[Qt],!1}),Ei}clear(){this._map={}}removeItemsByItems(Ot){(0,_.__)(Ot.getItems(),Qt=>this.removeItemByKey(Qt))}removeItemByKey(Ot){delete this._map[Ot]}add(Ot){var Qt=Ot.guid||new o.A;return this._map[Qt]=Ot,Qt}addItemsOrExtendFrom(Ot){Ot.each((Qt,Ei)=>{this._map[Qt]?(Ei.widgetInstance&&(this._map[Qt].widgetInstance=Ei.widgetInstance),this._map[Qt].$itemContainer=Ei.$itemContainer):this.add({item:Ei.item,widgetInstance:Ei.widgetInstance,guid:Qt,$itemContainer:Ei.$itemContainer})})}extendRunTimeItemInfoByKey(Ot,Qt){this._map[Ot]&&(this._map[Ot]=(0,v.X)(this._map[Ot],Qt))}findWidgetInstanceByItem(Ot){return this._findWidgetInstance(Qt=>Qt===Ot)}findGroupOrTabLayoutManagerByPath(Ot){return this._findFieldByCondition(Qt=>{var{path:Ei}=Qt;return Ei===Ot},"layoutManager")}findKeyByPath(Ot){return this._findFieldByCondition(Qt=>{var{path:Ei}=Qt;return Ei===Ot},"guid")}findWidgetInstanceByName(Ot){return this._findWidgetInstance(Qt=>Ot===Qt.name)}findWidgetInstanceByDataField(Ot){return this._findWidgetInstance(Qt=>Ot===((0,m.Kg)(Qt)?Qt:Qt.dataField))}findItemContainerByItem(Ot){for(var Qt in this._map)if(this._map[Qt].item===Ot)return this._map[Qt].$itemContainer;return null}findItemIndexByItem(Ot){return this._findFieldByCondition(Qt=>{var{item:Ei}=Qt;return Ei===Ot},"itemIndex")}findPreparedItemByItem(Ot){return this._findFieldByCondition(Qt=>{var{item:Ei}=Qt;return Ei===Ot},"preparedItem")}getItems(){return this._map}each(Ot){(0,_.__)(this._map,function(Qt,Ei){Ot(Qt,Ei)})}removeItemsByPathStartWith(Ot){Object.keys(this._map).filter(on=>!!this._map[on].path&&this._map[on].path.indexOf(Ot,0)>-1).forEach(on=>this.removeItemByKey(on))}}var x=D(19900),g=D(23862),C=D(17669),F=D(80186),Y=D(12824),Q=D(3930),se={move(et,Ot){(0,Y.Cy)(et,{left:Ot})}},ie={moveTo(et,Ot,Qt,Ei){Q.A.animate(et,{type:"slide",to:{left:Ot},duration:Qt,complete:Ei})},complete(et){Q.A.stop(et,!0)}},ee=D(22209),re=D(2636),ne=D(62273),_e=D(12984),we="dx-multiview-item",z=et=>+et,q=re.A.inherit({_activeStateUnit:"."+we,_supportedKeys:function(){return(0,v.X)(this.callBase(),{pageUp:E.lQ,pageDown:E.lQ})},_getDefaultOptions:function(){return(0,v.X)(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===g.A.real().deviceType&&!g.A.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return we},_itemDataKey:function(){return"dxMultiViewItemData"},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=(0,F.RG)(this._$wrapper)),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(et){var Ot=this._itemsCount();return et<0&&(et+=Ot),et>=Ot&&(et-=Ot),et},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var et=this.$element();et.addClass("dx-multiview"),this._$wrapper=(0,d.A)("<div>").addClass("dx-multiview-wrapper"),this._$wrapper.appendTo(et),this._$itemContainer=(0,d.A)("<div>").addClass("dx-multiview-item-container"),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._findBoundaryIndices(),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase();var et=this._getSelectedItemIndices();this._updateItemsVisibility(et[0]),this._setElementAria(),this._setItemsAria()},_afterItemElementDeleted:function(et,Ot){this.callBase(et,Ot),this._deferredItems&&this._deferredItems.splice(Ot.itemIndex,1)},_beforeItemElementInserted:function(et){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(et.index,0,null)},_executeItemRenderAction:function(et,Ot,Qt){et=(this.option("items")||[]).indexOf(Ot),this.callBase(et,Ot,Qt)},_renderItemContent:function(et){var Ot=new _e.cY,Qt=this,Ei=this.callBase,on=new _e.cY;return on.done(function(){var Bn=Ei.call(Qt,et);Ot.resolve(Bn)}),this._deferredItems[et.index]=on,this.option("deferRendering")||on.resolve(),Ot.promise()},_render:function(){this.callBase(),(0,E.zE)(()=>{var et=this._getSelectedItemIndices();this._updateItems(et[0])})},_getElementAria:()=>({role:"group",roledescription:b.A.format("dxMultiView-elementAriaRoleDescription"),label:b.A.format("dxMultiView-elementAriaLabel")}),_setElementAria(){var et=this._getElementAria();this.setAria(et,this.$element())},_setItemsAria(){var et=this._itemElements(),Ot=this._itemsCount();et.each((Qt,Ei)=>{var on=this._getItemAria({itemIndex:Qt,itemsCount:Ot});this.setAria(on,(0,d.A)(Ei))})},_getItemAria(et){var{itemIndex:Ot,itemsCount:Qt}=et;return{role:"group",roledescription:b.A.format("dxMultiView-itemAriaRoleDescription"),label:b.A.format("dxMultiView-itemAriaLabel",Ot+1,Qt)}},_updateItems:function(et,Ot){this._updateItemsPosition(et,Ot),this._updateItemsVisibility(et,Ot)},_modifyByChanges:function(){this.callBase.apply(this,arguments);var et=this._getSelectedItemIndices();this._updateItemsVisibility(et[0])},_updateItemsPosition:function(et,Ot){var Qt=this._itemElements(),Ei=(0,m.O9)(Ot)?-this._animationDirection(Ot,et):void 0,on=Qt.eq(et);se.move(on,0),(0,m.O9)(Ot)&&se.move(Qt.eq(Ot),100*Ei+"%")},_updateItemsVisibility(et,Ot){this._itemElements().each((Ei,on)=>{var Bn=(0,d.A)(on),ir=Ei!==et&&Ei!==Ot;ir||this._renderSpecificItem(Ei),Bn.toggleClass("dx-multiview-item-hidden",ir),this.setAria("hidden",ir||void 0,Bn)})},_renderSpecificItem:function(et){var Ot=this._itemElements().eq(et),Qt=Ot.find(this._itemContentClass()).length>0;(0,m.O9)(et)&&!Qt&&(this._deferredItems[et].resolve(),(0,h.ho)(Ot))},_refreshItem:function(et,Ot){this.callBase(et,Ot),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelectionAttribute:E.lQ,_updateSelection:function(et,Ot){var Qt=et[0],Ei=Ot[0];ie.complete(this._$itemContainer),this._updateItems(Ei,Qt);var on=this._animationDirection(Qt,Ei);this._animateItemContainer(on*this._itemWidth(),function(){se.move(this._$itemContainer,0),this._updateItems(Qt),(0,F.RG)(this._$itemContainer)}.bind(this))},_animateItemContainer:function(et,Ot){var Qt=this.option("animationEnabled")?200:0;ie.moveTo(this._$itemContainer,et,Qt,Ot)},_animationDirection:function(et,Ot){var Qt=(et=>(0,Y.x5)(this._$itemContainer).left)(),Ei=(Ot-et)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection();return(0,ee._S)(0!==Qt?Qt:Ei)},_getSwipeDisabledState(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable(){this._createComponent(this.$element(),ne.A,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:et=>this._swipeStartHandler(et.event),onUpdated:et=>this._swipeUpdateHandler(et.event),onEnd:et=>this._swipeEndHandler(et.event)})},_findBoundaryIndices(){var et,Ot,Ei,on,Qt=this.option("items");Qt.forEach((Bn,ir)=>{var Ir;Bn?.disabled||(null!==(Ir=Ei)&&void 0!==Ir||(Ei=ir),on=ir)}),this._boundaryIndices={firstAvailableIndex:null!==(et=Ei)&&void 0!==et?et:0,lastAvailableIndex:null!==(Ot=on)&&void 0!==Ot?Ot:Qt.length-1,firstTrueIndex:0,lastTrueIndex:Qt.length-1}},_swipeStartHandler:function(et){ie.complete(this._$itemContainer);var Ot=this.option("selectedIndex"),Qt=this.option("loop"),{firstAvailableIndex:Ei,lastAvailableIndex:on}=this._boundaryIndices,Bn=this.option("rtlEnabled");et.maxLeftOffset=z(Qt||(Bn?Ot>Ei:Ot<on)),et.maxRightOffset=z(Qt||(Bn?Ot<on:Ot>Ei)),this._swipeDirection=null},_swipeUpdateHandler:function(et){var Ot=et.offset,Qt=(0,ee._S)(Ot)*this._getRTLSignCorrection();if(se.move(this._$itemContainer,Ot*this._itemWidth()),Qt!==this._swipeDirection){this._swipeDirection=Qt;var Ei=this.option("selectedIndex"),on=this._normalizeIndex(Ei-Qt);this._updateItems(Ei,on)}},_findNextAvailableIndex(et,Ot){var{items:Qt,loop:Ei}=this.option(),{firstAvailableIndex:on,lastAvailableIndex:Bn,firstTrueIndex:ir,lastTrueIndex:Yr}=this._boundaryIndices,Ir=[ir,on].includes(et),pa=[Yr,Bn].includes(et);if(Ei){if(Ir&&Ot<0)return Bn;if(pa&&Ot>0)return on}for(var fa=et+Ot;fa>=on&&fa<=Bn;fa+=Ot)if(!Qt[fa].disabled)return fa;return et},_swipeEndHandler:function(et){var Ot=et.targetOffset*this._getRTLSignCorrection();if(Ot){var Qt=this._findNextAvailableIndex(this.option("selectedIndex"),-Ot);this.option("selectedIndex",Qt);var Ei=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",(0,s.c)(Ei))}else this._animateItemContainer(0,E.lQ)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(et){var Ot=this.callBase.apply(this,arguments);return this._itemFocusLooped=Ot.is(et.last()),Ot},_nextItem:function(et){var Ot=this.callBase.apply(this,arguments);return this._itemFocusLooped=Ot.is(et.first()),Ot},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(et){et&&this._dimensionChanged()},_updateSwipeDisabledState(){var et=this._getSwipeDisabledState();ne.A.getInstance(this.$element()).option("disabled",et)},_dispose:function(){delete this._boundaryIndices,this.callBase()},_optionChanged:function(et){var Ot=et.value;switch(et.name){case"loop":this.option("loopItemFocus",Ot);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this._findBoundaryIndices(),this.callBase(et);break;default:this.callBase(et)}}});(0,j.A)("dxMultiView",q);const ye=q;var xe=D(2839),ge=D(26115),Ee=D(49104),he=D(24159),Ie=D(12338),de="dx-badge";const Be=Ie.A.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(et){if(this._$element.children("."+de).remove(),et){var Ot=(0,d.A)("<div>").addClass("dx-tabs-item-badge").addClass(de).text(et);this._$element.append(Ot)}}});var We="dx-tabs-expanded",tt=D(11299),vt=D(44602),Xt=D(49057),Nt=D(86018),Qe=D(56311);function Et(et){return et.scrollWidth-et.clientWidth}D(89193);var xi="dx-tabs-stretched",Ht="dx-tabs-nav-buttons",gi="dx-overflow-hidden",It="dx-state-disabled",yt="dx-focused-disabled-next-tab",pt="dx-focused-disabled-prev-tab",Wt={top:"dx-tab-indicator-position-top",right:"dx-tab-indicator-position-right",bottom:"dx-tab-indicator-position-bottom",left:"dx-tab-indicator-position-left"},Vt={top:"dx-tabs-icon-position-top",end:"dx-tabs-icon-position-end",bottom:"dx-tabs-icon-position-bottom",start:"dx-tabs-icon-position-start"},ci={primary:"dx-tabs-styling-mode-primary",secondary:"dx-tabs-styling-mode-secondary"},gt="chevronnext",ai="chevronprev",po=re.A.inherit({_activeStateUnit:".dx-tab",_getDefaultOptions:function(){return(0,v.X)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",orientation:"horizontal",iconPosition:"start",stylingMode:"primary",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(et){return et?et.badge:void 0},_itemAttributes:{role:"tab"},_indicatorPosition:null})},_defaultOptionsRules:function(){var et=(0,tt.ss)();return this.callBase().concat([{device:()=>"desktop"!==g.A.real().deviceType,options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:()=>"desktop"===g.A.real().deviceType&&!g.A.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,tt.Ft)(et),options:{iconPosition:"top",stylingMode:"secondary"}},{device:()=>(0,tt.gx)(et),options:{useInkRipple:!0,selectOnFocus:!1,iconPosition:"top"}}])},_init(){var{orientation:et,stylingMode:Ot,scrollingEnabled:Qt}=this.option(),Ei=this._getIndicatorPosition();this.callBase(),this.$element().addClass("dx-tabs"),this._toggleScrollingEnabledClass(Qt),this._toggleOrientationClass(et),this._toggleIndicatorPositionClass(Ei),this._toggleIconPositionClass(),this._toggleStylingModeClass(Ot),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=100},_prepareDefaultItemTemplate(et,Ot){var Qt=(0,m.Qd)(et)?et?.text:et;if((0,m.O9)(Qt)){var Ei=(0,d.A)("<span>").addClass("dx-tab-text-span");Ei.text(Qt);var on=(0,d.A)("<span>").addClass("dx-tab-text-span-pseudo");on.text(Qt),on.appendTo(Ei),Ei.appendTo(Ot)}(0,m.O9)(et.html)&&Ot.html(et.html)},_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({item:new Qe.U(((et,Ot)=>{this._prepareDefaultItemTemplate(Ot,et);var Qt=(0,Nt.N)(Ot.icon);Qt&&Qt.prependTo(et);var Ei=(0,d.A)("<div>").addClass("dx-tab-text");et.wrapInner(Ei)}).bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))})},_createItemByTemplate:function(et,Ot){var{itemData:Qt,container:Ei,index:on}=Ot;return this._deferredTemplates[on]=new _e.cY,et.render({model:Qt,container:Ei,index:on,onRendered:()=>this._deferredTemplates[on].resolve()})},_itemClass:function(){return"dx-tab"},_selectedItemClass:function(){return"dx-tab-selected"},_itemDataKey:function(){return"dxTabData"},_initMarkup:function(){this._deferredTemplates=[],this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(gi)},_render:function(){this.callBase(),this._deferRenderScrolling()},_deferRenderScrolling(){_e.z7.apply(this,this._deferredTemplates).done(()=>this._renderScrolling())},_renderScrolling(){var et=[xi,We,gi];if(this.$element().removeClass(et.join(" ")),this.option("scrollingEnabled")&&this._isItemsSizeExceeded()){this._scrollable||(this._renderScrollable(),this._renderNavButtons());var Ot=this.getScrollable();if(Ot.update(),this.option("rtlEnabled")){var Qt=Et((0,d.A)(this.getScrollable().container()).get(0));Ot.scrollTo({left:Qt})}this._updateNavButtonsState(),this._scrollToItem(this.option("selectedItem"))}this.option("scrollingEnabled")&&this._isItemsSizeExceeded()||(this._cleanScrolling(),this._needStretchItems()&&this.$element().addClass(xi),this.$element().removeClass(Ht).addClass(We))},_isVertical(){return"vertical"===this.option("orientation")},_isItemsSizeExceeded(){return this._isVertical()?this._isItemsHeightExceeded():this._isItemsWidthExceeded()},_isItemsWidthExceeded(){var et=this._getVisibleItems(),Ot=this._getSummaryItemsSize("width",et,!0),Qt=(0,F.RG)(this.$element());return![Ot,Qt].includes(0)&&Ot>Qt-1},_isItemsHeightExceeded(){var et=this._getVisibleItems();return this._getSummaryItemsSize("height",et,!0)-1>(0,F.Oq)(this.$element())},_needStretchItems(){var et=this._getVisibleItems(),Ot=(0,F.RG)(this.$element()),Qt=[];return(0,_.__)(et,(ir,Yr)=>{Qt.push((0,F.Ot)(Yr,!0))}),Math.max.apply(null,Qt)>Ot/et.length+1},_cleanNavButtons:function(){!this._leftButton||!this._rightButton||(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=(0,ge.XX)()},_getPointerEvent:()=>he.A.up,_toggleActiveState:function(et,Ot,Qt){if(this.callBase.apply(this,arguments),this._inkRipple){var Ei={element:et,event:Qt};Ot?this._inkRipple.showWave(Ei):this._inkRipple.hideWave(Ei)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,d.A)("<div>").addClass("dx-tabs-wrapper"),this.setAria("role","tablist",this._$wrapper),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_getScrollableDirection(){return this._isVertical()?"vertical":"horizontal"},_updateScrollable(){this.getScrollable()&&this._cleanScrolling(),this._renderScrolling()},_renderScrollable(){var et=this.$element().wrapInner((0,d.A)("<div>").addClass("dx-tabs-scrollable")).children();this._scrollable=this._createComponent(et,Xt.A,{direction:this._getScrollableDirection(),showScrollbar:"never",useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:()=>{this._updateNavButtonsState()}}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(et){if(this._scrollable){var Ot=this._editStrategy.getItemElement(et);this._scrollable.scrollToElement(Ot)}},_renderNavButtons:function(){if(this.$element().toggleClass(Ht,this.option("showNavButtons")),this.option("showNavButtons")){var et=this.option("rtlEnabled");this._leftButton=this._createNavButton(-30,et?gt:ai);var Ot=this._leftButton.$element();Ot.addClass("dx-tabs-nav-button-left"),this.$element().prepend(Ot),this._rightButton=this._createNavButton(30,et?ai:gt);var Qt=this._rightButton.$element();Qt.addClass("dx-tabs-nav-button-right"),this.$element().append(Qt)}},_updateNavButtonsState(){var Qt,Ei,on,Bn,et=this._isVertical(),Ot=this.getScrollable();et?(null===(Qt=this._leftButton)||void 0===Qt||Qt.option("disabled",function ot(et,Ot){return Math.round(et)<=Ot}(Ot.scrollTop(),1)),null===(Ei=this._rightButton)||void 0===Ei||Ei.option("disabled",function Tt(et,Ot,Qt,Ei){return Math.round(function Lt(et){return et.scrollHeight-et.clientHeight}(et)-Ot-Qt)<=Ei}((0,d.A)(Ot.container()).get(0),Ot.scrollTop(),0,1))):(null===(on=this._leftButton)||void 0===on||on.option("disabled",function Mt(et,Ot){return Math.round(et)<=Ot}(Ot.scrollLeft(),1)),null===(Bn=this._rightButton)||void 0===Bn||Bn.option("disabled",function Ge(et,Ot,Qt){return Math.round(Et(et)-Ot)<=Qt}((0,d.A)(Ot.container()).get(0),Ot.scrollLeft(),1)))},_updateScrollPosition:function(et,Ot){this._scrollable.update(),this._scrollable.scrollBy(et/Ot)},_createNavButton:function(et,Ot){var Qt=this,Ei=Qt._createAction(function(){Qt._holdInterval=setInterval(function(){Qt._updateScrollPosition(et,5)},5)}),on=(0,Ee.b4)(vt.A.name,"dxNavButton"),Bn=(0,Ee.b4)(he.A.up,"dxNavButton"),ir=(0,Ee.b4)(he.A.out,"dxNavButton"),Yr=this._createComponent((0,d.A)("<div>").addClass("dx-tabs-nav-button"),xe.A,{focusStateEnabled:!1,icon:Ot,onClick:function(){Qt._updateScrollPosition(et,1)},integrationOptions:{}}),Ir=Yr.$element();return L.A.on(Ir,on,{timeout:300},function(pa){Ei({event:pa})}.bind(this)),L.A.on(Ir,Bn,function(){Qt._clearInterval()}),L.A.on(Ir,ir,function(){Qt._clearInterval()}),Yr},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(et){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(et[0]))},_visibilityChanged:function(et){et&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(et){"single"===this.option("selectionMode")&&this.isItemSelected(et.currentTarget)||this.callBase(et)},_refreshActiveDescendant:function(){this.callBase(this._$wrapper)},_clean:function(){this._deferredTemplates=[],this._cleanScrolling(),this.callBase()},_toggleTabsVerticalClass(et){this.$element().toggleClass("dx-tabs-vertical",et)},_toggleTabsHorizontalClass(et){this.$element().toggleClass("dx-tabs-horizontal",et)},_getIndicatorPositionClass:et=>Wt[et],_getIndicatorPosition(){var{_indicatorPosition:et,rtlEnabled:Ot}=this.option();if(et)return et;var Qt=this._isVertical();return Ot?Qt?"left":"bottom":Qt?"right":"bottom"},_toggleIndicatorPositionClass(et){var Ot=this._getIndicatorPositionClass(et);this._toggleElementClasses(Wt,Ot)},_toggleScrollingEnabledClass(et){this.$element().toggleClass("dx-tabs-scrolling-enabled",!!et)},_toggleOrientationClass(et){var Ot="vertical"===et;this._toggleTabsVerticalClass(Ot),this._toggleTabsHorizontalClass(!Ot)},_getTabsIconPositionClass(){switch(this.option("iconPosition")){case"top":return Vt.top;case"end":return Vt.end;case"bottom":return Vt.bottom;default:return Vt.start}},_toggleIconPositionClass(){var et=this._getTabsIconPositionClass();this._toggleElementClasses(Vt,et)},_toggleStylingModeClass(et){var Ot,Qt=null!==(Ot=ci[et])&&void 0!==Ot?Ot:ci.primary;this._toggleElementClasses(ci,Qt)},_toggleElementClasses(et,Ot){for(var Qt in et)this.$element().removeClass(et[Qt]);this.$element().addClass(Ot)},_toggleFocusedDisabledNextClass(et,Ot){this._itemElements().eq(et).toggleClass(yt,Ot)},_toggleFocusedDisabledPrevClass(et,Ot){this._itemElements().eq(et).toggleClass(pt,Ot)},_toggleFocusedDisabledClasses(et){var{selectedIndex:Ot}=this.option();this._itemElements().removeClass(yt).removeClass(pt);var Qt=Ot-1,Ei=Ot+1,on=(0,d.A)(et).index(),Bn=this._itemElements().eq(Ei).hasClass(It),Ir=this._itemElements().eq(Qt).hasClass(It)&&on===Qt;this._toggleFocusedDisabledNextClass(Ot,Bn&&on===Ei),this._toggleFocusedDisabledPrevClass(Ot,Ir)},_updateFocusedElement(){var{focusStateEnabled:et,selectedIndex:Ot}=this.option(),Qt=this._itemElements();if(et&&Qt.length){var Ei=Qt.get(Ot);this.option({focusedElement:Ei})}},_optionChanged:function(et){switch(et.name){case"useInkRipple":case"scrollingEnabled":this._toggleScrollingEnabledClass(et.value),this._invalidate();break;case"showNavButtons":case"badgeExpr":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(et.name,et.value);break;case"width":case"height":this.callBase(et),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(et);break;case"focusedElement":this._toggleFocusedDisabledClasses(et.value),this.callBase(et),this._scrollToItem(et.value);break;case"rtlEnabled":this.callBase(et);var Ot=this._getIndicatorPosition();this._toggleIndicatorPositionClass(Ot);break;case"orientation":this._toggleOrientationClass(et.value);var Qt=this._getIndicatorPosition();this._toggleIndicatorPositionClass(Qt),(0,f.Vd)()&&this._updateScrollable();break;case"iconPosition":this._toggleIconPositionClass(),(0,f.Vd)()&&this._dimensionChanged();break;case"stylingMode":this._toggleStylingModeClass(et.value),(0,f.Vd)()&&this._dimensionChanged();break;case"_indicatorPosition":this._toggleIndicatorPositionClass(et.value);break;case"selectedIndex":case"selectedItem":case"selectedItems":this.callBase(et),this._updateFocusedElement();break;default:this.callBase(et)}},_afterItemElementInserted(){this.callBase(),this._deferRenderScrolling()},_afterItemElementDeleted(et,Ot){this.callBase(et,Ot),this._renderScrolling()},getScrollable(){return this._scrollable}});po.ItemClass=Be,(0,j.A)("dxTabs",po);const sa=po;var si={top:"dx-tabpanel-tabs-position-top",right:"dx-tabpanel-tabs-position-right",bottom:"dx-tabpanel-tabs-position-bottom",left:"dx-tabpanel-tabs-position-left"},Dt={top:"top",right:"right",bottom:"bottom",left:"left"},Pi={top:"bottom",right:"left",bottom:"top",left:"right"},Gr=ye.inherit({_getDefaultOptions:function(){return(0,v.X)(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,tabsPosition:Dt.top,iconPosition:"start",stylingMode:"primary",onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(et){return et?et.badge:void 0},_tabsIndicatorPosition:null})},_defaultOptionsRules:function(){var et=(0,tt.ss)();return this.callBase().concat([{device:function(){return"desktop"===g.A.real().deviceType&&!g.A.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!x.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}},{device:()=>(0,tt.Ft)(et),options:{stylingMode:"secondary"}},{device:()=>(0,tt.Nt)(et),options:{iconPosition:"top"}}])},_init:function(){this.callBase(),this.$element().addClass("dx-tabpanel"),this._toggleTabPanelTabsPositionClass()},_getElementAria:()=>({role:"tabpanel"}),_getItemAria:()=>({role:"tabpanel"}),_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_prepareTabsItemTemplate(et,Ot){var Qt=(0,Nt.N)(et?.icon);Qt&&Ot.append(Qt);var Ei=(0,m.Qd)(et)?et?.title:et;if((0,m.O9)(Ei)&&!(0,m.Qd)(Ei)){var on=(0,d.A)("<span>").addClass("dx-tab-text-span");on.append(C.A.createTextNode(Ei));var Bn=(0,d.A)("<span>").addClass("dx-tab-text-span-pseudo");Bn.append(C.A.createTextNode(Ei)),Bn.appendTo(on),on.appendTo(Ot)}},_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({title:new Qe.U((et,Ot)=>{this._prepareTabsItemTemplate(Ot,et);var Qt=(0,d.A)("<div>").addClass("dx-tab-text");et.wrapInner(Qt)},["title","icon"],this.option("integrationOptions.watchMethod"))})},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderLayout:function(){if(!this._tabs){var et=this.$element();this._$tabContainer=(0,d.A)("<div>").addClass("dx-tabpanel-tabs").appendTo(et);var Ot=(0,d.A)("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(Ot,sa,this._tabConfig()),this._$container=(0,d.A)("<div>").addClass("dx-tabpanel-container").appendTo(et),this._$container.append(this._$wrapper)}},_refreshActiveDescendant:function(){if(this._tabs){var et=this._tabs,Ot=et.itemElements(),Qt=(0,d.A)(Ot[et.option("selectedIndex")]),Ei=this.getFocusedItemId();this.setAria("controls",void 0,(0,d.A)(Ot)),this.setAria("controls",Ei,Qt)}},_getTabsIndicatorPosition(){var{_tabsIndicatorPosition:et,tabsPosition:Ot}=this.option();return et??Pi[Ot]},_tabConfig(){var et=this._getTabsIndicatorPosition();return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),repaintChangesOnly:this.option("repaintChangesOnly"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(Ot){this.option("selectedIndex",Ot.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(Ot){if("focusedElement"===Ot.name)if(Ot.value){var Qt=(0,d.A)(Ot.value),Ei=this._itemElements().eq(Qt.index());this.option("focusedElement",(0,s.c)(Ei))}else this.option("focusedElement",Ot.value)}.bind(this),onFocusIn:function(Ot){this._focusInHandler(Ot.event)}.bind(this),onFocusOut:function(Ot){this._isFocusOutHandlerExecuting||this._focusOutHandler(Ot.event)}.bind(this),orientation:this._getTabsOrientation(),iconPosition:this.option("iconPosition"),stylingMode:this.option("stylingMode"),_itemAttributes:{class:"dx-tabpanel-tab"},_indicatorPosition:et}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1)},_getTabsOrientation(){var{tabsPosition:et}=this.option();return[Dt.right,Dt.left].includes(et)?"vertical":"horizontal"},_getTabPanelTabsPositionClass(){switch(this.option("tabsPosition")){case Dt.right:return si.right;case Dt.bottom:return si.bottom;case Dt.left:return si.left;default:return si.top}},_toggleTabPanelTabsPositionClass(){for(var et in si)this.$element().removeClass(si[et]);var Ot=this._getTabPanelTabsPositionClass();this.$element().addClass(Ot)},_updateTabsOrientation(){var et=this._getTabsOrientation();this._setTabsOption("orientation",et)},_toggleWrapperFocusedClass(et){this._toggleFocusClass(et,this._$wrapper)},_toggleDisabledFocusedClass(et){this._focusTarget().toggleClass("dx-disabled-focused-tab",et)},_updateFocusState:function(et,Ot){this.callBase(et,Ot);var Qt=et.target===this._tabs._focusTarget().get(0),Ei=et.target===this._focusTarget().get(0);if(Qt&&this._toggleFocusClass(Ot,this._focusTarget()),Qt||Ei){var on=this._isDisabled(this.option("focusedElement"));this._toggleWrapperFocusedClass(Ot&&!on),this._toggleDisabledFocusedClass(Ot&&on)}Ei&&this._toggleFocusClass(Ot,this._tabs.option("focusedElement"))},_focusOutHandler:function(et){this._isFocusOutHandlerExecuting=!0,this.callBase.apply(this,arguments),this._tabs._focusOutHandler(et),this._isFocusOutHandlerExecuting=!1},_setTabsOption(et,Ot){this._tabs&&this._tabs.option(et,Ot)},_visibilityChanged:function(et){et&&this._tabs._dimensionChanged()},registerKeyHandler:function(et,Ot){this.callBase(et,Ot),this._tabs&&this._tabs.registerKeyHandler(et,Ot)},repaint:function(){this.callBase(),this._tabs.repaint()},_updateTabsIndicatorPosition(){var et=this._getTabsIndicatorPosition();this._setTabsOption("_indicatorPosition",et)},_optionChanged:function(et){var{name:Ot,value:Qt,fullName:Ei}=et;switch(Ot){case"dataSource":default:this.callBase(et);break;case"items":this._setTabsOption(Ot,this.option(Ot)),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(et);break;case"width":this.callBase(et),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":if(this._setTabsOption(Ei,Qt),this.callBase(et),!0===this.option("focusStateEnabled")){var on=this.option("selectedIndex"),Bn=this._itemElements().eq(on);this.option("focusedElement",(0,s.c)(Bn))}break;case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(Ei,Qt),this.callBase(et);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(Ei,Qt);break;case"focusedElement":var ir=Qt&&(0,d.A)(Qt).index(),Yr=Qt&&this._tabs._itemElements().eq(ir);if(this._setTabsOption("focusedElement",(0,s.c)(Yr)),Qt){var Ir=this._isDisabled(Qt);this._toggleWrapperFocusedClass(!Ir),this._toggleDisabledFocusedClass(Ir)}this.callBase(et);break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",Qt);break;case"badgeExpr":this._invalidate();break;case"tabsPosition":this._toggleTabPanelTabsPositionClass(),this._updateTabsIndicatorPosition(),this._updateTabsOrientation();break;case"iconPosition":this._setTabsOption("iconPosition",Qt);break;case"stylingMode":this._setTabsOption("stylingMode",Qt);break;case"_tabsIndicatorPosition":this._setTabsOption("_indicatorPosition",Qt)}}});Gr.ItemClass=class Pr extends Ie.A{_renderWatchers(){return this._startWatcher("badge",E.lQ),super._renderWatchers()}},(0,j.A)("dxTabPanel",Gr);const ct=Gr;var ri=D(56221);class Ci{constructor(Ot){this._options=Ot,this._itemsRunTimeInfo=this._options.itemsRunTimeInfo}findInstance(){return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)}findItemContainer(){return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)}findPreparedItem(){return this._itemsRunTimeInfo.findPreparedItemByItem(this._options.item)}tryExecute(){ri.A.abstract()}}var Ri=D(98332),ji=(et,Ot)=>"".concat(Ot?"tabs":"items","[").concat(et,"]"),wn=(et,Ot)=>(0,m.O9)(et)&&(0,m.O9)(Ot)?"".concat(et,".").concat(Ot):et||Ot,Nn=et=>et?et.replace(/\s/g,""):void 0,_r=(et,Ot)=>"".concat(et,".").concat(Ot),ha=et=>{var Ot=et.split(".");return Ot[Ot.length-1].replace(/\[\d+]/,"")},Fa=et=>et.indexOf("tabs")>-1,Ya=(et,Ot,Qt)=>{var Ei=et.indexOf(Ot);if(Ei>-1)return ji(Ei,Qt);for(var on=0;on<et.length;on++){var Bn=et[on],ir=Bn.tabs||Bn.items;if(ir){var Yr=Ya(ir,Ot,Bn.tabs);if(Yr)return wn(ji(on,Qt),Yr)}}};class Yo extends Ci{tryExecute(){var{value:Ot}=this._options,Qt=this.findInstance();return!!Qt&&(Qt.option(Ot),!0)}}class Va extends Ci{tryExecute(){var Ot=this.findInstance();if(Ot){var{optionName:Qt,item:Ei,value:on}=this._options,Bn=this._itemsRunTimeInfo.findItemIndexByItem(Ei);if(Bn>=0)return Ot.option(_r("items[".concat(Bn,"]"),Qt),on),!0}return!1}}class ia extends Ci{tryExecute(){return!1}}class $o extends Ci{tryExecute(){var Ot=this.findPreparedItem();return!(null==Ot||!Ot._prepareGroupItemTemplate||!Ot._renderGroupContentTemplate||(Ot._prepareGroupItemTemplate(this._options.item.template),Ot._renderGroupContentTemplate(),0))}}class mo extends Ci{tryExecute(){var Ot=this.findInstance();if(Ot){var{value:Qt}=this._options;return Ot.option("dataSource",Qt),!0}return!1}}class fl extends Ci{tryExecute(){var{item:Ot}=this._options,Qt=this.findInstance(),Ei=Qt&&(0,Ri.p)(Qt.$element()[0],"dxValidator");if(Ei&&Ot){var on=Yr=>"required"===Yr.type,Bn=(Ei.option("validationRules")||[]).some(on),ir=(Ot.validationRules||[]).some(on);if(!Bn&&!ir||Bn&&ir)return Ei.option("validationRules",Ot.validationRules),!0}return!1}}class Jl extends Ci{tryExecute(){var Ot=this.findItemContainer(),{previousValue:Qt,value:Ei}=this._options;return!!Ot&&(Ot.removeClass(Qt).addClass(Ei),!0)}}var Ha=D(17558),us=D(78059),Ql=D(89518),ms=D(39407),El=D(20675),Wl=D(87310),Xd=D(26543),rs=D(14874),Ho="dx-responsivebox",Zs=Ho+"-screen-",Ms="dxBoxItemData",hs=rs.A.inherit({_getDefaultOptions:function(){return(0,v.X)(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0})},_init:function(){this.option("screenByWidth")||this._options.silent("screenByWidth",f.zY),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return"dx-box-item"},_itemDataKey:function(){return Ms},_initMarkup:function(){this.callBase(),this.$element().addClass(Ho)},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(et){var Ot=this._findItemElementByItem(et);Ot.length&&(this._refreshItem(Ot,et),this._clearItemNodeTemplates(),this._update(!0))},_setScreenSize:function(){var et=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(Zs+et),this.option("currentScreenFactor",et)},_removeScreenSizeClass:function(){var et=this.option("currentScreenFactor");et&&this.$element().removeClass(Zs+et)},_prepareGrid:function(){var et=this._grid=[];this._prepareRowsAndCols(),(0,_.__)(this._rows,function(){var Ot=[];et.push(Ot),(0,_.__)(this._cols,function(){Ot.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var et=this.option("rows"),Ot=this._screenItems.length;if(et.length){for(var Qt=this._filterByScreen(et),Ei=[],on=0;on<Ot;on++){var Bn=this._defaultSizeConfig();on<Qt.length&&(0,m.O9)(Qt[on].shrink)&&(Bn.shrink=Qt[on].shrink),Ei.push(Bn)}return Ei}return this._defaultSizeConfig(Ot)},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort(function(et,Ot){return et.location.row-Ot.location.row||et.location.col-Ot.location.col}),(0,_.__)(this._screenItems,function(et,Ot){(0,v.X)(Ot.location,{row:et,col:0,rowspan:1,colspan:1})})},_sizesByScreen:function(et){return(0,_.Tj)(this._filterByScreen(et),function(Ot){return(0,v.X)(this._defaultSizeConfig(),Ot)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(et){var Ot=this._createDefaultSizeConfig();if(!arguments.length)return Ot;for(var Qt=[],Ei=0;Ei<et;Ei++)Qt.push(Ot);return Qt},_filterByScreen:function(et){var Ot=this._screenRegExp();return(0,E.VM)(et,function(Qt){return!Qt.screen||Ot.test(Qt.screen)})},_screenRegExp:function(){var et=this._getCurrentScreen();return new RegExp("(^|\\s)"+et+"($|\\s)","i")},_getCurrentScreen:function(){var et=this._screenWidth();return this.option("screenByWidth")(et)},_screenWidth:function(){return(0,f.Vd)()?(0,F.RG)((0,f.zk)()):1920},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){(0,_.__)(this._screenItems,function(et,Ot){var Qt=Ot.location||{},Bn=this._grid[Qt.row];this._occupyCells(Bn&&Bn[Qt.col],Ot)}.bind(this))},_itemsByScreen:function(){return this.option("items").reduce((et,Ot)=>{var Qt=Ot.location||{};return Qt=(0,m.Qd)(Qt)?[Qt]:Qt,this._filterByScreen(Qt).forEach(Ei=>{et.push({item:Ot,location:(0,v.X)({rowspan:1,colspan:1},Ei)})}),et},[])},_occupyCells:function(et,Ot){!et||this._isItemCellOccupied(et,Ot)||((0,v.X)(et,Ot),this._markSpanningCell(et))},_isItemCellOccupied:function(et,Ot){if(!(0,m.RI)(et.item))return!0;var Qt=!1;return this._loopOverSpanning(Ot.location,function(Ei){Qt=Qt||!(0,m.RI)(Ei.item)}),Qt},_loopOverSpanning:function(et,Ot){var Qt=et.row+et.rowspan-1,Ei=et.col+et.colspan-1,on=Math.min(Qt,this._rows.length-1),Bn=Math.min(Ei,this._cols.length-1);et.rowspan-=Qt-on,et.colspan-=Ei-Bn;for(var ir=et.row;ir<=on;ir++)for(var Yr=et.col;Yr<=Bn;Yr++)(ir!==et.row||Yr!==et.col)&&Ot(this._grid[ir][Yr])},_markSpanningCell:function(et){this._loopOverSpanning(et.location,function(Ot){(0,v.X)(Ot,{item:et.item,spanningCell:et})})},_linkNodeToItem:function(){(0,_.__)(this._itemElements(),function(et,Ot){var Qt=(0,d.A)(Ot),Ei=Qt.data(Ms);Ei.box||(Ei.node=Qt.children())})},_layoutItems:function(){var et=this._grid.length,Ot=et&&this._grid[0].length;if(et||Ot){var Qt=this._layoutBlock({direction:"col",row:{start:0,end:et-1},col:{start:0,end:Ot-1}}),Ei=this._prepareBoxConfig(Qt.box||{direction:"row",items:[(0,v.X)(Qt,{ratio:1})]});(0,v.X)(Ei,this._rootBoxConfig(Ei.items)),this._$root=(0,d.A)("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,Xd.A,Ei)}},_rootBoxConfig:function(et){return{width:"100%",height:"100%",items:(0,_.__)(et,function(Qt,Ei){this._needApplyAutoBaseSize(Ei)&&(0,v.X)(Ei,{baseSize:"auto"})}.bind(this)),itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")}},_needApplyAutoBaseSize:function(et){return!(et.baseSize||et.minSize&&"auto"!==et.minSize||et.maxSize&&"auto"!==et.maxSize)},_prepareBoxConfig:function(et){return(0,v.X)(et||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(et){return this._isSingleItem(et)?this._itemByCell(et.row.start,et.col.start):this._layoutDirection(et)},_isSingleItem:function(et){var Ot=this._grid[et.row.start][et.col.start].location;return et.row.end-et.row.start==Ot.rowspan-1&&et.col.end-et.col.start==Ot.colspan-1},_itemByCell:function(et,Ot){var Qt=this._grid[et][Ot];return Qt.spanningCell?null:Qt.item},_layoutDirection:function(et){for(var on,Ot=[],Qt=et.direction,Ei=this._crossDirection(Qt);on=this._nextBlock(et);){if(this._isBlockIndivisible(et.prevBlockOptions,on))throw Wl.A.Error("E1025");var Bn=this._layoutBlock({direction:Ei,row:on.row,col:on.col,prevBlockOptions:et});Bn&&((0,v.X)(Bn,this._blockSize(on,Ei)),Ot.push(Bn)),et[Ei].start=on[Ei].end+1}return{box:this._prepareBoxConfig({direction:Qt,items:Ot})}},_isBlockIndivisible:function(et,Ot){return et&&et.col.start===Ot.col.start&&et.col.end===Ot.col.end&&et.row.start===Ot.row.start&&et.row.end===Ot.row.end},_crossDirection:function(et){return"col"===et?"row":"col"},_nextBlock:function(et){var Ot=et.direction,Qt=this._crossDirection(Ot),Ei=et[Ot].start,on=et[Ot].end,Bn=et[Qt].start;if(Bn>et[Qt].end)return null;for(var ir=1,Yr=Bn;Yr<Bn+ir;Yr++){for(var Ir=1,pa=Ei;pa<=on;pa++){var fa=this._cellByDirection(Ot,pa,Yr);Ir=Math.max(Ir,fa.location[Qt+"span"])}var eo=Yr+Ir,Oo=Bn+ir;eo>Oo&&(ir+=eo-Oo)}var Fs={};return Fs[Ot]={start:Ei,end:on},Fs[Qt]={start:Bn,end:Bn+ir-1},Fs},_cellByDirection:function(et,Ot,Qt){return"col"===et?this._grid[Qt][Ot]:this._grid[Ot][Qt]},_blockSize:function(et,Ot){for(var Qt="row"===Ot?"auto":0,Ei="row"===Ot?this._rows:this._cols,on=(0,v.X)(this._createDefaultSizeConfig(),{ratio:0}),Bn=et[Ot].start;Bn<=et[Ot].end;Bn++){var ir=Ei[Bn];on.ratio+=ir.ratio,on.baseSize+=ir.baseSize,on.minSize+=ir.minSize,on.maxSize+=ir.maxSize,(0,m.O9)(ir.shrink)&&(on.shrink=ir.shrink)}return on.minSize=on.minSize?on.minSize:Qt,on.maxSize=on.maxSize?on.maxSize:"auto",this._isSingleColumnScreen()&&(on.baseSize="auto"),on},_update:function(et){var Ot=this._$root;this._renderItems(),Ot&&(et?Ot.remove():(Ot.detach(),this._saveAssistantRoot(Ot))),this._layoutChangedAction()},_saveAssistantRoot:function(et){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(et)},_dispose:function(){this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&(0,_.__)(this._assistantRoots,function(et,Ot){(0,d.A)(Ot).remove()})},_clearItemNodeTemplates:function(){(0,_.__)(this.option("items"),function(){delete this.node})},_attachClickEvent:E.lQ,_optionChanged:function(et){switch(et.name){case"rows":case"cols":case"screenByWidth":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(et),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(et);break;case"currentScreenFactor":break;default:this.callBase(et)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});(0,j.A)("dxResponsiveBox",hs);const ws=hs;var Si="dx-form-group",Sn="dx-col-",Dn="dx-field-item",Kn="dx-layout-manager-one-col",tr="dx-field-item-label-content",Pa="dx-field-item-label",va="dx-field-item-content",Ba="dx-root-simple-item",Mo="dx-field-item-tab",Ml="dx-group-colcount-",gs="group-col-count",yl="simple",al=(D(2934),D(78709),D(89454),D(61214),D(18060)),xs=D(48745),oc=D(70370),Il=D(15966),Ud=["dxTagBox","dxRangeSlider","dxDateRangeBox"],ru=["dxCalendar","dxCheckBox","dxHtmlEditor","dxRadioGroup","dxRangeSlider","dxSlider","dxSwitch"];function Jd(et,Ot){var{showRequiredMark:Qt,requiredMark:Ei,showOptionalMark:on,optionalMark:Bn}=et;return{showRequiredMark:Qt&&Ot,requiredMark:Ei,showOptionalMark:on&&!Ot,optionalMark:Bn}}var yd="dx-field-item-required-mark",Ol="dx-field-item-label-location-",au="dx-field-item-optional-mark",ks="dx-field-item-label-text";function Yi(et){for(var Ot=0,Qt=et.children.length,Ei=0;Ei<Qt;Ei++)Ot+=et.children[Ei].offsetWidth;return Ot}var ed="dx-field-item-content-wrapper",Ve="dx-template-wrapper",qe="dx-validation-target",Yt="dx-invalid";function Fi(et){var{$parent:Ot,rootElementCssClassList:Qt,formOrLayoutManager:Ei,createComponentCallback:on,labelOptions:Bn,labelNeedBaselineAlign:ir,labelLocation:Yr,needRenderLabel:Ir,formLabelLocation:pa,item:fa,editorOptions:eo,isSimpleItem:Oo,isRequired:Fs,template:Tl,helpID:Rs,labelID:Qc,name:ut,helpText:Mi,requiredMessageTemplate:Gt,validationGroup:hi}=et,gn=(0,d.A)("<div>").addClass(Qt.join(" ")).appendTo(Ot);gn.addClass(Fs?"dx-field-item-required":"dx-field-item-optional"),Oo&&gn.addClass("dx-flex-layout"),Oo&&ir&&gn.addClass("dx-field-item-label-align");var rr=(0,d.A)("<div>");rr.data("dx-form-item",fa),rr.addClass(va).addClass("dx-field-item-content-location-"+{right:"left",left:"right",top:"bottom"}[pa]);var wa,Tr=null;if(Ir&&(Bn.labelTemplate&&(Bn.labelTemplateData=Wa(fa,eo,Ei)),Tr=function oi(et){var{text:Ot,id:Qt,location:Ei,alignment:on,labelID:Bn=null,markOptions:ir={},labelTemplate:Yr,labelTemplateData:Ir,onLabelTemplateRendered:pa}=et;if((!(0,m.O9)(Ot)||Ot.length<=0)&&!(0,m.O9)(Yr))return null;var fa=(0,d.A)("<label>").addClass(Pa+" "+Ol+Ei).attr("for",Qt).attr("id",Bn).css("textAlign",on),eo=(0,d.A)("<span>").addClass(tr),Oo=(0,d.A)("<span>").addClass(ks).text(Ot);return Yr&&(Oo=(0,d.A)("<div>").addClass("dx-field-item-custom-label-content"),Ir.text=Ot,Yr.render({container:(0,s.c)(Oo),model:Ir,onRendered(){pa?.()}})),fa.append(eo.append(Oo,function yi(et){var Ot=function vs(et){var{showRequiredMark:Ot,requiredMark:Qt,showOptionalMark:Ei,optionalMark:on}=et;return Ot||Ei?"\xa0"+(Ot?Qt:on):""}(et);return""===Ot?null:(0,d.A)("<span>").addClass(et.showRequiredMark?yd:au).text(Ot)}(ir)))}(Bn)),Tr){var{editorType:Da}=fa;gn.append(Tr),("top"===Yr||"left"===Yr)&&gn.append(rr),"right"===Yr&&gn.prepend(rr),gn.addClass("top"===Yr?"dx-label-v-align":"dx-label-h-align"),("dxCheckBox"===Da||"dxSwitch"===Da)&&L.A.on(Tr,al.U,function(){L.A.trigger(rr.children(),al.U)});var Ca=["dxCheckBox","dxSwitch","dxRadioGroup"].includes(Da),ts=Bn.alignment;!Tl&&Ca&&"top"===Yr&&("left"===ts||!ts)&&rr.addClass("dx-toggle-controls-paddings")}else gn.append(rr);if(Tl)Tl.render({container:(0,s.c)(rr),model:Wa(fa,eo,Ei),onRendered(){var hd=function dr(et){var Ot,Qt;return et?.data(qe)||(null==et||null===(Ot=et.parent)||void 0===Ot||null===(Qt=Ot.call(et))||void 0===Qt?void 0:Qt.data(qe))}(_n(rr));ea(hd)}});else{var Fo=(0,d.A)("<div>").appendTo(rr);try{(wa=on(Fo,fa.editorType,eo)).setAria("describedby",Rs),Qc&&wa.setAria("labelledby",Qc),wa.setAria("required",Fs)}catch(tl){Wl.A.log("E1035",tl.message)}}var Ia=_n(rr),vr=Ia&&Ia.data(qe);if(vr){var Wn,ba=fa.label&&fa.label.text,oa=ba?null:ut,zs=ba?fa.label.text:oa&&(0,xs.Bc)(oa);if(Oo)if(fa.validationRules)Wn=fa.validationRules;else{var nd=(0,oc.GP)(Gt,zs||"");Wn=fa.isRequired?[{type:"required",message:nd}]:null}Array.isArray(Wn)&&Wn.length&&on(Ia,Il.A,{validationRules:Wn,validationGroup:hi,dataGetter:function(){return{formItem:fa}}}),ea(vr)}return Mi&&Oo&&rr.parent().append((0,d.A)("<div>").addClass(ed).append(rr).append((0,d.A)("<div>").addClass("dx-field-item-help-text").attr("id",Rs).text(Mi))),{$fieldEditorContainer:rr,$rootElement:gn,widgetInstance:wa}}function _n(et){var Ot=et.children().first();return Ot.hasClass(Ve)?Ot.children().first():Ot}function ea(et){if(et&&(0,tt.Nt)()){var Ot=".".concat(ed),Qt=Ei=>{var{element:on,component:Bn}=Ei,{isValid:ir,validationMessageMode:Yr}=Bn.option();(0,d.A)(on).parents(Ot).toggleClass(Yt,!1===ir&&(Bn._isFocused()||"always"===Yr))};et.on("optionChanged",Ei=>{"isValid"===Ei.name&&Qt(Ei)}),et.on("focusIn",Qt).on("focusOut",Qt).on("enterKey",Qt)}}function Wa(et,Ot,Qt){return{dataField:et.dataField,editorType:et.editorType,editorOptions:Ot,component:Qt,name:et.name}}function es(et){var{$parent:Ot,rootElementCssClassList:Qt}=et;return(0,d.A)("<div>").addClass("dx-field-empty-item").html(" ").addClass(Qt.join(" ")).appendTo(Ot)}var Vc=O.A.inherit({_getDefaultOptions:function(){return(0,v.X)(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",labelMode:"outside",optionalMark:b.A.format("dxForm-optionalMark"),requiredMessage:b.A.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),(0,v.X)(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){var et=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new I,this._updateReferencedOptions(et),this._initDataAndItems(et)},_dispose:function(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems:function(et){this._syncDataWithItems(),this._updateItems(et)},_syncDataWithItems:function(){var et=this.option("layoutData"),Ot=this.option("items");(0,m.O9)(Ot)&&Ot.forEach(Qt=>{var Ei;Qt.dataField&&void 0===this._getDataByField(Qt.dataField)&&(Qt.editorOptions&&(Ei=Qt.editorOptions.value),((0,m.O9)(Ei)||Qt.dataField in et)&&this._updateFieldValue(Qt.dataField,Ei))})},_getDataByField:function(et){return et?this.option("layoutData."+et):null},_isCheckboxUndefinedStateEnabled:function(et){var{allowIndeterminateState:Ot,editorType:Qt,dataField:Ei}=et;if(!0===Ot&&"dxCheckBox"===Qt){var on=["layoutData",...Ei.split(".")],Bn=on.pop(),ir=this.option(on.join("."));return ir&&Bn in ir}return!1},_updateFieldValue:function(et,Ot){var Qt=this.option("layoutData"),Ei=Ot;!us.A.isWrapped(Qt[et])&&(0,m.O9)(et)?this.option("layoutData."+et,Ei):us.A.isWritableWrapped(Qt[et])&&(Ei=(0,m.Tn)(Ei)?Ei():Ei,Qt[et](Ei)),this._triggerOnFieldDataChanged({dataField:et,value:Ei})},_triggerOnFieldDataChanged:function(et){this._createActionByOption("onFieldDataChanged")(et)},_updateItems:function(et){var Ot=this,Qt=this.option("items"),Ei=(0,m.O9)(Qt),on=Ot.option("customizeItem"),Bn=Ei?Qt:this._generateItemsByData(et);if((0,m.O9)(Bn)){var ir=[];(0,_.__)(Bn,function(Yr,Ir){Ot._isAcceptableItem(Ir)&&(Ir=Ot._processItem(Ir),on&&on(Ir),(0,m.Gv)(Ir)&&!1!==us.A.unwrap(Ir.visible)&&ir.push(Ir))}),(!Ot._itemWatchers.length||!Ei)&&Ot._updateItemWatchers(Bn),this._setItems(ir),this._sortItems()}},_cleanItemWatchers:function(){this._itemWatchers.forEach(function(et){et()}),this._itemWatchers=[]},_updateItemWatchers:function(et){var Ot=this,Qt=Ot._getWatch();et.forEach(function(Ei){(0,m.Gv)(Ei)&&(0,m.O9)(Ei.visible)&&(0,m.Tn)(Qt)&&Ot._itemWatchers.push(Qt(function(){return us.A.unwrap(Ei.visible)},function(){Ot._updateItems(Ot.option("layoutData")),Ot.repaint()},{skipImmediate:!0}))})},_generateItemsByData:function(et){var Ot=[];return(0,m.O9)(et)&&(0,_.__)(et,function(Qt){Ot.push({dataField:Qt})}),Ot},_isAcceptableItem:function(et){var Qt=this._getDataByField(et.dataField||et);return!((0,m.Tn)(Qt)&&!us.A.isWrapped(Qt))},_processItem:function(et){if("string"==typeof et&&(et={dataField:et}),"object"==typeof et&&!et.itemType&&(et.itemType=yl),!(0,m.O9)(et.editorType)&&(0,m.O9)(et.dataField)){var Ot=this._getDataByField(et.dataField);et.editorType=(0,m.O9)(Ot)?this._getEditorTypeByDataType((0,m.NW)(Ot)):"dxTextBox"}var Qt;return"dxCheckBox"===et.editorType&&(et.allowIndeterminateState=null===(Qt=et.allowIndeterminateState)||void 0===Qt||Qt),et},_getEditorTypeByDataType:function(et){switch(et){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){(0,Ql.Il)(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort(function(et,Ot){var Qt=et.visibleIndex,Ei=Ot.visibleIndex;return Qt>Ei?1:Qt<Ei?-1:0})},_initMarkup:function(){this._itemsRunTimeInfo.clear(),this.$element().addClass("dx-layout-manager"),this.callBase(),this._renderResponsiveBox()},_renderResponsiveBox:function(){var et=[];if(this._items&&this._items.length){var Ot=this._getColCount(),Qt=(0,d.A)("<div>").appendTo(this.$element());this._prepareItemsWithMerging(Ot);var Ei=this._generateLayoutItems();this._responsiveBox=this._createComponent(Qt,ws,this._getResponsiveBoxConfig(Ei,Ot,et)),(0,f.Vd)()||this._renderTemplates(et)}},_itemStateChangedHandler:function(et){this._refresh()},_renderTemplates:function(et){var Ot=this,Qt=0;et.forEach(Ei=>{var on,{item:Bn}=Ei;null!=Bn&&null!==(on=Bn.label)&&void 0!==on&&on.template&&Qt++}),(0,_.__)(et,function(Ei,on){switch(on.itemType){case"empty":es(on);break;case"button":Ot._renderButtonItem(on);break;default:Ot._renderFieldItem(on,Qt)}})},_getResponsiveBoxConfig:function(et,Ot,Qt){var Ei=this,on=Ei.option("colCountByScreen"),Bn=on&&on.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),onLayoutChanged:function(){var ir=Ei.option("onLayoutChanged"),Yr=Ei.isSingleColumnMode();ir&&(Ei.$element().toggleClass(Kn,Yr),ir(Yr))},onContentReady:function(ir){(0,f.Vd)()&&Ei._renderTemplates(Qt),Ei.option("onLayoutChanged")&&Ei.$element().toggleClass(Kn,Ei.isSingleColumnMode(ir.component))},itemTemplate:function(ir,Yr,Ir){if(ir.location){var pa=(0,d.A)(Ir),eo=Ei._items[ir.location.col+ir.location.row*Ot];if(eo){var Oo=[eo.cssClass];pa.toggleClass("dx-single-column-item-content",Ei.isSingleColumnMode(this)),0===ir.location.row&&Oo.push("dx-first-row"),0===ir.location.col&&Oo.push("dx-first-col"),eo.itemType===yl&&Ei.option("isRoot")&&pa.addClass(Ba);var Fs=ir.location.col===Ot-1||ir.location.col+ir.location.colspan===Ot,Tl=Ei._getRowsCount(),Rs=ir.location.row===Tl-1;Fs&&Oo.push("dx-last-col"),Rs&&Oo.push("dx-last-row"),"empty"!==eo.itemType&&(Oo.push(Dn),Oo.push(Ei.option("cssItemClass")),(0,m.O9)(eo.col)&&Oo.push("dx-col-"+eo.col)),Qt.push({itemType:eo.itemType,item:eo,$parent:pa,rootElementCssClassList:Oo})}}},cols:Ei._generateRatio(Ot),rows:Ei._generateRatio(Ei._getRowsCount(),!0),dataSource:et,screenByWidth:Ei.option("screenByWidth"),singleColumnScreen:!Bn&&"xs"}},_getColCount:function(){var et=this.option("colCount"),Ot=this.option("colCountByScreen");if(Ot){var Qt=this.option("form").getTargetScreenFactor();Qt||(Qt=(0,f.Vd)()?(0,f.ne)(this.option("screenByWidth")):"lg"),et=Ot[Qt]||et}if("auto"===et){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=et=this._getMaxColCount()}return et<1?1:et},_getMaxColCount:function(){if(!(0,f.Vd)())return 1;var et=this.option("minColWidth"),Ot=(0,F.RG)(this.$element()),Qt=this._items.length,Ei=Math.floor(Ot/et)||1;return Qt<Ei?Qt:Ei},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(et){var Qt,Ei,Bn,ir,Ot=this._items.slice(0),on=[];for(ir=0;ir<Ot.length;ir++)if(on.push(Qt=Ot[ir]),(this.option("alignItemLabels")||Qt.alignItemLabels||Qt.colSpan)&&(Qt.col=this._getColByIndex(on.length-1,et)),Qt.colSpan>1&&Qt.col+Qt.colSpan<=et){for(Ei=[],Bn=0;Bn<Qt.colSpan-1;Bn++)Ei.push({merged:!0});on=on.concat(Ei)}else delete Qt.colSpan;this._setItems(on)},_getColByIndex:function(et,Ot){return et%Ot},_setItems:function(et){this._items=et,this._cashedColCount=null},_generateLayoutItems:function(){var Ei,on,et=this._items,Ot=this._getColCount(),Qt=[];for(on=0;on<et.length;on++)if(!(Ei=et[on]).merged){var Bn={location:{row:parseInt(on/Ot),col:this._getColByIndex(on,Ot)}};(0,m.O9)(Ei.disabled)&&(Bn.disabled=Ei.disabled),(0,m.O9)(Ei.visible)&&(Bn.visible=Ei.visible),(0,m.O9)(Ei.colSpan)&&(Bn.location.colspan=Ei.colSpan),(0,m.O9)(Ei.rowSpan)&&(Bn.location.rowspan=Ei.rowSpan),Qt.push(Bn)}return Qt},_renderEmptyItem:function(et){es({$container:et})},_renderButtonItem:function(et){var{item:Ot,$parent:Qt,rootElementCssClassList:Ei}=et,{$rootElement:on,buttonInstance:Bn}=function Xo(et){var{item:Ot,$parent:Qt,rootElementCssClassList:Ei,validationGroup:on,createComponentCallback:Bn}=et,ir=(0,d.A)("<div>").appendTo(Qt).addClass(Ei.join(" ")).addClass("dx-field-button-item").css("textAlign",function Ys(et){return(0,m.O9)(et)?et:"right"}(Ot.horizontalAlignment));return Qt.css("justifyContent",function ol(et){switch(et){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}}(Ot.verticalAlignment)),{$rootElement:ir,buttonInstance:Bn((0,d.A)("<div>").appendTo(ir),"dxButton",(0,v.X)({validationGroup:on},Ot.buttonOptions))}}({item:Ot,$parent:Qt,rootElementCssClassList:Ei,validationGroup:this.option("validationGroup"),createComponentCallback:this._createComponent.bind(this)});this._itemsRunTimeInfo.add({item:Ot,widgetInstance:Bn,guid:Ot.guid,$itemContainer:on})},_renderFieldItem:function(et,Ot){var Qt,Ei,{item:on,$parent:Bn,rootElementCssClassList:ir}=et,Yr=this._getDataByField(on.dataField),Ir=!1;if(void 0===Yr){var{allowIndeterminateState:pa,editorType:fa,dataField:eo}=on;Ir=this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:pa,editorType:fa,dataField:eo})}var Oo=on.dataField||on.name,Fs=this._getFormOrThis(),{$fieldEditorContainer:Tl,widgetInstance:Rs,$rootElement:Qc}=Fi(function ql(et){var{$parent:Ot,rootElementCssClassList:Qt,formOrLayoutManager:Ei,createComponentCallback:on,item:Bn,template:ir,labelTemplate:Yr,name:Ir,formLabelLocation:pa,requiredMessageTemplate:fa,validationGroup:eo,editorValue:Oo,canAssignUndefinedValueToEditor:Fs,editorValidationBoundary:Tl,editorStylingMode:Rs,showColonAfterLabel:Qc,managerLabelLocation:ut,itemId:Mi,managerMarkOptions:Gt,labelMode:hi,onLabelTemplateRendered:gn}=et,rr=(0,m.O9)(Bn.isRequired)?Bn.isRequired:!!function bc(et){var Ot;return et&&et.length&&(0,_.__)(et,function(Qt,Ei){if("required"===Ei.type)return Ot=!0,!1}),Ot}(Bn.validationRules),Tr=Bn.itemType===yl,Da=Bn.helpText?"dx-"+new o.A:null,Ca=function Nl(et){var{item:Ot,id:Qt,isRequired:Ei,managerMarkOptions:on,showColonAfterLabel:Bn,labelLocation:ir,labelTemplate:Yr,formLabelMode:Ir,onLabelTemplateRendered:pa}=et,fa=ru.includes(Ot.editorType),eo=(0,v.X)({showColon:Bn,location:ir,id:Qt,visible:"outside"===Ir||fa&&"hidden"!==Ir,isRequired:Ei},Ot?Ot.label:{},{markOptions:Jd(on,Ei),labelTemplate:Yr,onLabelTemplateRendered:pa});return["dxRadioGroup","dxCheckBox","dxLookup","dxSlider","dxRangeSlider","dxSwitch","dxHtmlEditor","dxDateRangeBox"].includes(Ot.editorType)&&(eo.labelID="dx-label-".concat(new o.A)),!eo.text&&Ot.dataField&&(eo.text=(0,xs.Bc)(Ot.dataField)),eo.text&&(eo.textWithoutColon=eo.text,eo.text+=eo.showColon?":":""),eo}({item:Bn,id:Mi,isRequired:rr,managerMarkOptions:Gt,showColonAfterLabel:Qc,labelLocation:ut,formLabelMode:hi,labelTemplate:Yr,onLabelTemplateRendered:gn}),ts=Ca.visible&&(Ca.text||Ca.labelTemplate&&Tr),{location:zn,labelID:bo}=Ca,Ss="top"!==zn&&["dxTextArea","dxRadioGroup","dxCalendar","dxHtmlEditor"].includes(Bn.editorType),wa=function vc(et){var{editorType:Ot,defaultEditorName:Qt,editorValue:Ei,canAssignUndefinedValueToEditor:on,externalEditorOptions:Bn,editorInputId:ir,editorValidationBoundary:Yr,editorStylingMode:Ir,formLabelMode:pa,labelText:fa,labelMark:eo}=et,Oo={};(void 0!==Ei||on)&&(Oo.value=Ei),-1!==Ud.indexOf(Ot)&&(Oo.value=Oo.value||[]);var Fs=Bn?.labelMode;(0,m.O9)(Fs)||(Fs="outside"===pa?"hidden":pa);var Rs=(0,v.X)(!0,Oo,Bn,{inputAttr:{id:ir},validationBoundary:Yr,stylingMode:Bn?.stylingMode||Ir,label:fa,labelMode:Fs,labelMark:eo});return Bn&&(Rs.dataSource&&(Rs.dataSource=Bn.dataSource),Rs.items&&(Rs.items=Bn.items)),Qt&&!Rs.name&&(Rs.name=Qt),Rs}({editorType:Bn.editorType,editorValue:Oo,defaultEditorName:Bn.dataField,canAssignUndefinedValueToEditor:Fs,externalEditorOptions:Bn.editorOptions,editorInputId:Mi,editorValidationBoundary:Tl,editorStylingMode:Rs,formLabelMode:hi,labelText:Ca.textWithoutColon,labelMark:Ca.markOptions.showRequiredMark?"\xa0"+Ca.markOptions.requiredMark:""});return{$parent:Ot,rootElementCssClassList:Qt,formOrLayoutManager:Ei,createComponentCallback:on,labelOptions:Ca,labelNeedBaselineAlign:Ss,labelLocation:zn,needRenderLabel:ts,item:Bn,isSimpleItem:Tr,isRequired:rr,template:ir,helpID:Da,labelID:bo,name:Ir,helpText:!Ca.markOptions.showOptionalMark||Ca.visible||"hidden"===wa.labelMode||(0,m.O9)(Bn.helpText)?Bn.helpText:Ca.markOptions.optionalMark,formLabelLocation:pa,requiredMessageTemplate:fa,validationGroup:eo,editorOptions:wa}}({$parent:Bn,rootElementCssClassList:ir,item:on,name:Oo,editorValue:Yr,canAssignUndefinedValueToEditor:Ir,formOrLayoutManager:this._getFormOrThis(),createComponentCallback:this._createComponent.bind(this),formLabelLocation:this.option("labelLocation"),requiredMessageTemplate:this.option("requiredMessage"),validationGroup:this.option("validationGroup"),editorValidationBoundary:this.option("validationBoundary"),editorStylingMode:this.option("form")&&this.option("form").option("stylingMode"),showColonAfterLabel:this.option("showColonAfterLabel"),managerLabelLocation:this.option("labelLocation"),template:on.template?this._getTemplate(on.template):null,labelTemplate:null!==(Qt=on.label)&&void 0!==Qt&&Qt.template?this._getTemplate(on.label.template):null,itemId:this.option("form")&&this.option("form").getItemID(Oo),managerMarkOptions:this._getMarkOptions(),labelMode:this.option("labelMode"),onLabelTemplateRendered:()=>{this._incTemplateRenderedCallCount(),this._shouldAlignLabelsOnTemplateRendered(Fs,Ot)&&Fs._alignLabels(this,this.isSingleColumnMode(Fs))}}));null===(Ei=this.option("onFieldItemRendered"))||void 0===Ei||Ei(),Rs&&on.dataField&&this._bindDataField(Rs,on.dataField,on.editorType,Tl),this._itemsRunTimeInfo.add({item:on,widgetInstance:Rs,guid:on.guid,$itemContainer:Qc})},_incTemplateRenderedCallCount(){var et;this._labelTemplateRenderedCallCount=(null!==(et=this._labelTemplateRenderedCallCount)&&void 0!==et?et:0)+1},_shouldAlignLabelsOnTemplateRendered(et,Ot){return et.option("templatesRenderAsynchronously")&&this._labelTemplateRenderedCallCount===Ot},_getMarkOptions:function(){return{showRequiredMark:this.option("showRequiredMark"),requiredMark:this.option("requiredMark"),showOptionalMark:this.option("showOptionalMark"),optionalMark:this.option("optionalMark")}},_getFormOrThis:function(){return this.option("form")||this},_bindDataField:function(et,Ot,Qt,Ei){var on=this._getFormOrThis();et.on("enterKey",function(Bn){on._createActionByOption("onEditorEnterKey")((0,v.X)(Bn,{dataField:Ot}))}),this._createWatcher(et,Ei,Ot),this.linkEditorToDataField(et,Ot,Qt)},_createWatcher:function(et,Ot,Qt){var Ei=this,on=Ei._getWatch();if((0,m.Tn)(on)){var Bn=on(function(){return Ei._getDataByField(Qt)},function(){var ir=Ei._getDataByField(Qt);if("dxTagBox"===et.NAME){var Yr=et.option("value");if(ir!==Yr&&function(Ir,pa){if(!Array.isArray(Ir)||!Array.isArray(pa)||Ir.length!==pa.length)return!1;for(var fa=0;fa<Ir.length;fa++)if(Ir[fa]!==pa[fa])return!1;return!0}(ir,Yr))return}et.option("value",ir)},{deep:!0,skipImmediate:!0});L.A.on(Ot,El.N,Bn)}},_getWatch:function(){if(!(0,m.O9)(this._watch)){var et=this.option("form");this._watch=et&&et.option("integrationOptions.watchMethod")}return this._watch},_createComponent:function(et,Ot,Qt){var Ei=this.option("readOnly"),on=Object.hasOwn(Qt,"readOnly"),Bn=this.callBase(et,Ot,(0,r.A)({},Qt,{readOnly:on?Qt.readOnly:Ei})),ir=!1;return Bn.on("optionChanged",Yr=>{"readOnly"===Yr.name&&!ir&&(on=!0)}),this.on("optionChanged",function(Yr){"readOnly"===Yr.name&&!on&&(ir=!0,Bn.option(Yr.name,Yr.value),ir=!1)}),Bn},_generateRatio:function(et,Ot){var Ei,on,Qt=[];for(on=0;on<et;on++)Ei={ratio:1},Ot&&(Ei.baseSize="auto"),Qt.push(Ei);return Qt},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions:function(et){var Ot=this.option("layoutData");(0,m.Gv)(Ot)&&Object.getOwnPropertyNames(Ot).forEach(Qt=>delete this._optionsByReference["layoutData."+Qt]),(0,m.Gv)(et)&&Object.getOwnPropertyNames(et).forEach(Qt=>this._optionsByReference["layoutData."+Qt]=!0)},_clearWidget(et){this._disableEditorValueChangedHandler=!0,et.clear(),this._disableEditorValueChangedHandler=!1,et.option("isValid",!0)},_optionChanged(et){if(0!==et.fullName.search("layoutData."))switch(et.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(et.value),this.option("items")?(0,m.RI)(et.value)||this._itemsRunTimeInfo.each((Ot,Qt)=>{if((0,m.O9)(Qt.item)){var Ei=Qt.item.dataField;if(Ei&&(0,m.O9)(Qt.widgetInstance)){var Bn=(0,ms.Hz)(Ei)(et.value),{allowIndeterminateState:ir,editorType:Yr}=Qt.item;void 0!==Bn||this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:ir,editorType:Yr,dataField:Ei})?Qt.widgetInstance.option("value",Bn):this._clearWidget(Qt.widgetInstance)}}}):(this._initDataAndItems(et.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(et.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"labelMode":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":case"colCountByScreen":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":case"onFieldDataChanged":break;case"width":this.callBase(et),"auto"===this.option("colCount")&&this._resetColCount();break;default:this.callBase(et)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField(et,Ot){this.on("optionChanged",Qt=>{Qt.fullName==="layoutData.".concat(Ot)&&et._setOptionWithoutOptionChange("value",Qt.value)}),et.on("valueChanged",Qt=>{var Ei=(0,m.Gv)(Qt.value)||Array.isArray(Qt.value);!this._disableEditorValueChangedHandler&&(!Ei||Qt.value!==Qt.previousValue)&&this._updateFieldValue(Ot,Qt.value)})},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this._eventsStrategy.fireEvent("autoColCountChanged")},updateData:function(et,Ot){var Qt=this;(0,m.Gv)(et)?(0,_.__)(et,function(Ei,on){Qt._updateFieldValue(Ei,on)}):"string"==typeof et&&Qt._updateFieldValue(et,Ot)},getEditor:function(et){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(et)||this._itemsRunTimeInfo.findWidgetInstanceByName(et)},isSingleColumnMode:function(et){var Ot=this._responsiveBox||et;if(Ot)return Ot.option("currentScreenFactor")===Ot.option("singleColumnScreen")},getItemsRunTimeInfo:function(){return this._itemsRunTimeInfo}});(0,j.A)("dxLayoutManager",Vc);var Ju="dx-validationsummary",lp=Ju+"-item",gu=Ju+"-item-data",Hc=rs.A.inherit({_getDefaultOptions(){return(0,v.X)(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference(){this.callBase(),(0,v.X)(this._optionsByReference,{validationGroup:!0})},_init(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration(){var et=this.$element(),Ot=this.option("validationGroup")||k.A.findGroup(et,this._modelByElement(et)),Qt=k.A.addGroup(Ot);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=Ot,this.groupSubscription=this._groupValidationHandler.bind(this),Qt.on("validated",this.groupSubscription)},_unsubscribeGroup(){var et=k.A.getGroupConfig(this._validationGroup);et&&et.off("validated",this.groupSubscription)},_getOrderedItems(et,Ot){var Qt=[];return(0,_.__)(et,function(Ei,on){var Bn=(0,E.VM)(Ot,function(ir){if(ir.validator===on)return!0});Bn.length&&(Qt=Qt.concat(Bn))}),Qt},_groupValidationHandler(et){var Ot=this._getOrderedItems(et.validators,(0,_.Tj)(et.brokenRules,function(Qt){return{text:Qt.message,validator:Qt.validator,index:Qt.index}}));this.validators=et.validators,(0,_.__)(this.validators,(Qt,Ei)=>{if(Ei._validationSummary!==this){var on=this._itemValidationHandler.bind(this);Ei.on("validated",on),Ei.on("disposing",function(){Ei.off("validated",on),Ei._validationSummary=null,on=null}),Ei._validationSummary=this}}),this.option("items",Ot)},_itemValidationHandler(et){for(var{isValid:Ot,validator:Qt,brokenRules:Ei}=et,on=this.option("items"),Bn=!1,ir=0,Yr=function(){var Ir=on[ir];if(Ir.validator===Qt){var pa=(0,E.VM)(Ei||[],function(fa){return fa.index===Ir.index})[0];if(Ot||!pa)return on.splice(ir,1),Bn=!0,1;pa.message!==Ir.text&&(Ir.text=pa.message,Bn=!0)}ir++};ir<on.length;)Yr();(0,_.__)(Ei,function(Ir,pa){(0,E.VM)(on,function(eo){return eo.validator===Qt&&eo.index===pa.index})[0]||(on.push({text:pa.message,validator:Qt,index:pa.index}),Bn=!0)}),Bn&&(on=this._getOrderedItems(this.validators,on),this.option("items",on))},_initMarkup(){this.$element().addClass(Ju),this.callBase()},_optionChanged(et){"validationGroup"===et.name?this._initGroupRegistration():this.callBase(et)},_itemClass:()=>lp,_itemDataKey:()=>gu,_postprocessRenderItem(et){L.A.on(et.itemElement,"click",function(){et.itemData.validator&&et.itemData.validator.focus&&et.itemData.validator.focus()})},_dispose(){this.callBase(),this._unsubscribeGroup()},refreshValidationGroup(){this._initGroupRegistration()}});(0,j.A)("dxValidationSummary",Hc);const Qd=Hc;var Ic=D(38365),sc="dx-validationgroup";(0,j.A)("dxValidationGroup",class Vl extends Ic.A{_getDefaultOptions(){return super._getDefaultOptions()}_init(){super._init(),k.A.addGroup(this)}_initMarkup(){var Ot=this.$element();Ot.addClass(sc),Ot.find(".".concat("dx-validator")).each(function(Qt,Ei){Il.A.getInstance((0,d.A)(Ei))._initGroupRegistration()}),Ot.find(".".concat("dx-validationsummary")).each(function(Qt,Ei){Qd.getInstance((0,d.A)(Ei)).refreshValidationGroup()}),super._initMarkup()}validate(){return k.A.validateGroup(this)}reset(){return k.A.resetGroup(this)}_dispose(){k.A.removeGroup(this),this.$element().removeClass(sc),super._dispose()}_useTemplates(){return!1}});var Cp=D(33701),Yp="dx-state-focused",xc=["items","isRequired","validationRules","visible"],wo=O.A.inherit({_init:function(){this.callBase(),this._dirtyFields=new Set,this._cachedColCountOptions=[],this._itemsRunTimeInfo=new I,this._groupsColCount=[],this._attachSyncSubscriptions()},_getDefaultOptions:function(){return(0,v.X)(this.callBase(),{formID:"dx-"+new o.A,formData:{},colCount:1,screenByWidth:f.zY,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,alignRootItemLabels:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:b.A.format("dxForm-optionalMark"),requiredMessage:b.A.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:(0,R.A)().editorStylingMode,labelMode:"outside",isDirty:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,tt.Nt)()},options:{labelLocation:"top"}},{device:function(){return(0,tt.gx)()},options:{showColonAfterLabel:!1}}])},_setOptionsByReference:function(){this.callBase(),(0,v.X)(this._optionsByReference,{formData:!0,validationGroup:!0})},_getGroupColCount:function(et){return parseInt(et.attr(gs))},_applyLabelsWidthByCol:function(et,Ot){var Qt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},on=Qt.inOneColumn?Dn:Sn+Ot,Bn=Qt.excludeTabbed?":not(.".concat(Mo,")"):"";!function zt(et,Ot,Qt){var ir,Yr,Ei="".concat(Ot," > .").concat(Pa,":not(.").concat(Ol,"top) > .").concat(tr),on=et.find(Ei),Bn=on.length,Ir=0;for(Yr=0;Yr<Bn;Yr++)(ir=Yi(on[Yr]))>Ir&&(Ir=ir);for(Yr=0;Yr<Bn;Yr++)on[Yr].style.width=Ir+"px"}(et,".".concat(on).concat(Bn))},_applyLabelsWidth:function(et,Ot,Qt,Ei,on){Ei=Qt?1:Ei||this._getGroupColCount(et);var ir,Bn={excludeTabbed:Ot,inOneColumn:Qt};for(ir=0;ir<Ei;ir++)this._applyLabelsWidthByCol(et,ir,Bn,on)},_getGroupElementsInColumn:function(et,Ot,Qt){var Ei=(0,m.O9)(Qt)?"."+Ml+Qt:"";return et.find("."+Sn+Ot+" > ."+va+" > ."+Si+Ei)},_applyLabelsWidthWithGroups:function(et,Ot,Qt,Ei){if(!0===this.option("alignRootItemLabels"))for(var on=et.find(".".concat(Ba)),Bn=0;Bn<Ot;Bn++)this._applyLabelsWidthByCol(on,Bn,Qt,Ei);if(this.option("alignItemLabelsInAllGroups"))this._applyLabelsWidthWithNestedGroups(et,Ot,Qt,Ei);else{var Ir,Yr=this.$element().find("."+Si);for(Ir=0;Ir<Yr.length;Ir++)this._applyLabelsWidth(Yr.eq(Ir),Qt,void 0,void 0,Ei)}},_applyLabelsWidthWithNestedGroups:function(et,Ot,Qt,Ei){var Bn,ir,Yr,Ir,on={excludeTabbed:Qt};for(Bn=0;Bn<Ot;Bn++)for(Ir=this._getGroupElementsInColumn(et,Bn),this._applyLabelsWidthByCol(Ir,0,on,Ei),ir=0;ir<this._groupsColCount.length;ir++){Ir=this._getGroupElementsInColumn(et,Bn,this._groupsColCount[ir]);var pa=this._getGroupColCount(Ir);for(Yr=1;Yr<pa;Yr++)this._applyLabelsWidthByCol(Ir,Yr,on,Ei)}},_labelLocation:function(){return this.option("labelLocation")},_alignLabelsInColumn:function(et){var{layoutManager:Ot,inOneColumn:Qt,$container:Ei,excludeTabbed:on,items:Bn}=et;if((0,f.Vd)()&&"top"!==this._labelLocation()){var ir=Jd(Ot._getMarkOptions());Qt?this._applyLabelsWidth(Ei,on,!0,void 0,ir):this._checkGrouping(Bn)?this._applyLabelsWidthWithGroups(Ei,Ot._getColCount(),on,ir):this._applyLabelsWidth(Ei,on,!1,Ot._getColCount(),ir)}},_prepareFormData:function(){(0,m.O9)(this.option("formData"))||this.option("formData",{})},_setStylingModeClass:function(){"underlined"===this.option("stylingMode")&&this.$element().addClass("dx-form-styling-mode-underlined")},_initMarkup:function(){k.A.addGroup(this._getValidationGroup()),this._clearCachedInstances(),this._prepareFormData(),this.$element().addClass("dx-form"),this._setStylingModeClass(),this.callBase(),this.setAria("role","form",this.$element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary(),this._lastMarkupScreenFactor=this._targetScreenFactor||this._getCurrentScreenFactor(),this._attachResizeObserverSubscription()},_attachResizeObserverSubscription:function(){if((0,f.Vd)()){var et=this.$element().get(0);Ha.A.unobserve(et),Ha.A.observe(et,()=>{this._resizeHandler()})}},_resizeHandler:function(){this._cachedLayoutManagers.length&&(0,_.__)(this._cachedLayoutManagers,(et,Ot)=>{var Qt;null===(Qt=Ot.option("onLayoutChanged"))||void 0===Qt||Qt(Ot.isSingleColumnMode())})},_getCurrentScreenFactor:function(){return(0,f.Vd)()?(0,f.ne)(this.option("screenByWidth")):"lg"},_clearCachedInstances:function(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels:function(et,Ot){this._alignLabelsInColumn({$container:this.$element(),layoutManager:et,excludeTabbed:!0,items:this.option("items"),inOneColumn:Ot}),(0,h.ho)(this.$element().find(".".concat(Cp.l)))},_clean:function(){this._clearValidationSummary(),this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0,Ha.A.unobserve(this.$element().get(0))},_renderScrollable:function(){var et=this.option("useNativeScrolling");this._scrollable=new Xt.A(this.$element(),{useNative:!!et,useSimulatedScrollbar:!et,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?(0,d.A)(this._scrollable.content()):this.$element()},_clearValidationSummary:function(){var et;null===(et=this._$validationSummary)||void 0===et||et.remove(),this._$validationSummary=void 0,this._validationSummary=void 0},_renderValidationSummary:function(){this._clearValidationSummary(),this.option("showValidationSummary")&&(this._$validationSummary=(0,d.A)("<div>").addClass("dx-form-validation-summary").appendTo(this._getContent()),this._validationSummary=this._$validationSummary.dxValidationSummary({validationGroup:this._getValidationGroup()}).dxValidationSummary("instance"))},_prepareItems(et,Ot,Qt,Ei){if(et){for(var on=[],Bn=0;Bn<et.length;Bn++){var ir=et[Bn],Yr=wn(Qt,ji(Bn,Ei)),Ir={item:ir,itemIndex:Bn,path:Yr},pa=this._itemsRunTimeInfo.add(Ir);if((0,m.Kg)(ir)&&(ir={dataField:ir}),(0,m.Gv)(ir)){var fa=(0,r.A)({},ir);Ir.preparedItem=fa,fa.guid=pa,this._tryPrepareGroupItem(fa),this._tryPrepareTabbedItem(fa,Yr),this._tryPrepareItemTemplate(fa),Ot&&(fa.cssItemClass=Mo),fa.items&&(fa.items=this._prepareItems(fa.items,Ot,Yr)),on.push(fa)}else on.push(ir)}return on}},_tryPrepareGroupItem:function(et){"group"===et.itemType&&(et.alignItemLabels=(0,E.YD)(et.alignItemLabels,!0),et._prepareGroupItemTemplate=Ot=>{et.template&&(et.groupContentTemplate=this._getTemplate(Ot)),et.template=this._itemGroupTemplate.bind(this,et)},et._prepareGroupItemTemplate(et.template))},_tryPrepareTabbedItem:function(et,Ot){"tabbed"===et.itemType&&(et.template=this._itemTabbedTemplate.bind(this,et),et.tabs=this._prepareItems(et.tabs,!0,Ot,!0))},_tryPrepareItemTemplate:function(et){et.template&&(et.template=this._getTemplate(et.template))},_checkGrouping:function(et){if(et)for(var Ot=0;Ot<et.length;Ot++)if("group"===et[Ot].itemType)return!0},_renderLayout:function(){var et=this,Ot=et.option("items"),Qt=et._getContent();Ot=et._prepareItems(Ot),et._rootLayoutManager=et._renderLayoutManager(Qt,this._createLayoutManagerOptions(Ot,{isRoot:!0,colCount:et.option("colCount"),alignItemLabels:et.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(Ei){et._alignLabels.bind(et)(et._rootLayoutManager,Ei)},onContentReady:function(Ei){et._alignLabels(Ei.component,Ei.component.isSingleColumnMode())}}))},_tryGetItemsForTemplate:function(et){return et.items||[]},_itemTabbedTemplate:function(et,Ot,Qt){var Ei,on=(0,d.A)("<div>").appendTo(Qt),Bn=(0,v.X)({},et.tabPanelOptions,{dataSource:et.tabs,onItemRendered:Ir=>{var pa,fa;null===(pa=et.tabPanelOptions)||void 0===pa||null===(fa=pa.onItemRendered)||void 0===fa||fa.call(pa,Ir),(0,h.I9)(Ir.itemElement)},itemTemplate:(Ir,pa,fa)=>{var eo=(0,d.A)(fa),Oo=(0,E.YD)(Ir.alignItemLabels,!0),Fs=this._renderLayoutManager(eo,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(Ir),{colCount:Ir.colCount,alignItemLabels:Oo,screenByWidth:this.option("screenByWidth"),colCountByScreen:Ir.colCountByScreen,cssItemClass:Ir.cssItemClass,onLayoutChanged:Tl=>{this._alignLabelsInColumn({$container:eo,layoutManager:Fs,items:Ir.items,inOneColumn:Tl})}}));this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(Ir.guid,{layoutManager:Fs}),Oo&&this._alignLabelsInColumn({$container:eo,layoutManager:Fs,items:Ir.items,inOneColumn:Fs.isSingleColumnMode()})}}),ir=(Ir,pa)=>{Array.isArray(Ir)&&Ir.forEach(fa=>this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(fa.guid,{widgetInstance:pa}))},Yr=this._createComponent(on,ct,Bn);(0,d.A)(Qt).parent().addClass("dx-field-item-has-tabs"),Yr.on("optionChanged",Ir=>{"dataSource"===Ir.fullName&&ir(Ir.value,Ir.component)}),ir([{guid:et.guid},...null!==(Ei=et.tabs)&&void 0!==Ei?Ei:[]],Yr)},_itemGroupTemplate:function(et,Ot,Qt){var Ei=Ot.editorOptions.inputAttr.id,on=(0,d.A)("<div>").toggleClass("dx-form-group-with-caption",(0,m.O9)(et.caption)&&et.caption.length).addClass(Si).appendTo(Qt);this.setAria({role:"group",labelledby:Ei},on),(0,d.A)(Qt).parent().addClass("dx-field-item-has-group"),et.caption&&(0,d.A)("<span>").addClass("dx-form-group-caption").text(et.caption).attr("id",Ei).appendTo(on);var ir=(0,d.A)("<div>").addClass("dx-form-group-content").appendTo(on);if(et.groupContentTemplate)et._renderGroupContentTemplate=()=>{ir.empty();var pa={formData:this.option("formData"),component:this};et.groupContentTemplate.render({model:pa,container:(0,s.c)(ir)})},et._renderGroupContentTemplate();else{var Yr=this._renderLayoutManager(ir,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(et),{colCount:et.colCount,colCountByScreen:et.colCountByScreen,alignItemLabels:et.alignItemLabels,cssItemClass:et.cssItemClass}));this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(et.guid,{layoutManager:Yr});var Ir=Yr._getColCount();this._groupsColCount.includes(Ir)||this._groupsColCount.push(Ir),on.addClass(Ml+Ir),on.attr(gs,Ir)}},_createLayoutManagerOptions:function(et,Ot){return function _o(et){var{form:Ot,$formElement:Qt,formOptions:Ei,items:on,validationGroup:Bn,extendedLayoutManagerOptions:ir,onFieldDataChanged:Yr,onContentReady:Ir,onDisposing:pa,onFieldItemRendered:fa}=et;return(0,v.X)({form:Ot,items:on,$formElement:Qt,validationGroup:Bn,onFieldDataChanged:Yr,onContentReady:Ir,onDisposing:pa,onFieldItemRendered:fa,validationBoundary:Ei.scrollingEnabled?Qt:void 0,scrollingEnabled:Ei.scrollingEnabled,showRequiredMark:Ei.showRequiredMark,showOptionalMark:Ei.showOptionalMark,requiredMark:Ei.requiredMark,optionalMark:Ei.optionalMark,requiredMessage:Ei.requiredMessage,screenByWidth:Ei.screenByWidth,layoutData:Ei.formData,labelLocation:Ei.labelLocation,customizeItem:Ei.customizeItem,minColWidth:Ei.minColWidth,showColonAfterLabel:Ei.showColonAfterLabel,onEditorEnterKey:Ei.onEditorEnterKey,labelMode:Ei.labelMode},{isRoot:ir.isRoot,colCount:ir.colCount,alignItemLabels:ir.alignItemLabels,cssItemClass:ir.cssItemClass,colCountByScreen:ir.colCountByScreen,onLayoutChanged:ir.onLayoutChanged,width:ir.width})}({form:this,formOptions:this.option(),$formElement:this.$element(),items:et,validationGroup:this._getValidationGroup(),extendedLayoutManagerOptions:Ot,onFieldDataChanged:Qt=>{this._isDataUpdating||this._triggerOnFieldDataChanged(Qt)},onContentReady:Qt=>{this._itemsRunTimeInfo.addItemsOrExtendFrom(Qt.component._itemsRunTimeInfo),Ot.onContentReady&&Ot.onContentReady(Qt)},onDisposing:Qt=>{var{component:Ei}=Qt,on=Ei.getItemsRunTimeInfo();this._itemsRunTimeInfo.removeItemsByItems(on)},onFieldItemRendered:()=>{var Qt;null===(Qt=this._validationSummary)||void 0===Qt||Qt.refreshValidationGroup()}})},_renderLayoutManager:function(et,Ot){this._cachedColCountOptions.push({colCountByScreen:(0,v.X)({lg:Ot.colCount,md:Ot.colCount,sm:Ot.colCount,xs:1},Ot.colCountByScreen)});var Ei=(0,d.A)("<div>");Ei.appendTo(et);var on=this._createComponent(Ei,"dxLayoutManager",Ot);return on.on("autoColCountChanged",()=>{this._clearAutoColCountChangedTimeout(),this.autoColCountChangedTimeoutId=setTimeout(()=>!this._disposed&&this._refresh(),0)}),this._cachedLayoutManagers.push(on),on},_getValidationGroup:function(){return this.option("validationGroup")||this},_createComponent:function(et,Ot,Qt){return this._extendConfig(Qt=Qt||{},{readOnly:this.option("readOnly")}),this.callBase(et,Ot,Qt)},_attachSyncSubscriptions:function(){var et=this;et.on("optionChanged",function(Ot){var Qt=Ot.fullName;"formData"===Qt&&((0,m.O9)(Ot.value)||et._options.silent("formData",Ot.value={}),et._triggerOnFieldDataChangedByDataSet(Ot.value)),et._cachedLayoutManagers.length&&(0,_.__)(et._cachedLayoutManagers,function(Ei,on){"formData"===Qt&&(et._isDataUpdating=!0,on.option("layoutData",Ot.value),et._isDataUpdating=!1),("readOnly"===Ot.name||"disabled"===Ot.name)&&on.option(Qt,Ot.value)})})},_optionChanged:function(et){var Ot=et.fullName.split(".");Ot.length>1&&-1!==Ot[0].search("items")&&this._itemsOptionChangedHandler(et)||Ot.length>1&&-1!==Ot[0].search("formData")&&this._formDataOptionChangedHandler(et)||this._defaultOptionChangedHandler(et)},_defaultOptionChangedHandler:function(et){switch(et.name){case"formData":this.option("items")?(0,m.RI)(et.value)&&this._clear():this._invalidate();break;case"onFieldDataChanged":case"alignRootItemLabels":case"readOnly":case"isDirty":break;case"items":case"colCount":case"onEditorEnterKey":case"labelLocation":case"labelMode":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"width":this.callBase(et),this._rootLayoutManager.option(et.name,et.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"validationGroup":k.A.removeGroup(et.previousValue||this),this._invalidate();break;default:this.callBase(et)}},_itemsOptionChangedHandler:function(et){var Ot=et.fullName.split("."),Qt=et.value,Ei=this._getItemPath(Ot),on=this.option(Ei),Bn=et.fullName.replace(Ei+".",""),ir=Bn.split(".")[0].replace(/\[\d+]/,""),Yr=this._tryCreateItemOptionAction(ir,on,on[ir],et.previousValue,Ei),Ir=this._tryExecuteItemOptionAction(Yr)||this._tryChangeLayoutManagerItemOption(et.fullName,Qt);if(!Ir&&on){this._changeItemOption(on,Bn,Qt);var pa=this._generateItemsFromData(this.option("items"));this.option("items",pa),Ir=!0}return Ir},_formDataOptionChangedHandler:function(et){var Ot=et.fullName.split("."),Qt=et.value,Ei=Ot.slice(1).join("."),on=this.getEditor(Ei);return on?on.option("value",Qt):this._triggerOnFieldDataChanged({dataField:Ei,value:Qt}),!0},_tryCreateItemOptionAction:function(et,Ot,Qt,Ei,on){return"tabs"===et&&(this._itemsRunTimeInfo.removeItemsByPathStartWith("".concat(on,".tabs")),Qt=this._prepareItems(Qt,!0,on,!0)),((et,Ot)=>{switch(et){case"editorOptions":case"buttonOptions":return new Yo(Ot);case"validationRules":return new fl(Ot);case"cssClass":return new Jl(Ot);case"badge":case"disabled":case"icon":case"tabTemplate":case"title":return new Va((0,v.X)(Ot,{optionName:et}));case"tabs":return new mo(Ot);case"template":var Qt,Ei,on,Bn=null!==(Qt=null==Ot||null===(Ei=Ot.item)||void 0===Ei?void 0:Ei.itemType)&&void 0!==Qt?Qt:null===(on=Ot.itemsRunTimeInfo.findPreparedItemByItem(Ot?.item))||void 0===on?void 0:on.itemType;return"simple"===Bn?new ia(Ot):"group"===Bn?new $o(Ot):new Va((0,v.X)(Ot,{optionName:et}));default:return null}})(et,{item:Ot,value:Qt,previousValue:Ei,itemsRunTimeInfo:this._itemsRunTimeInfo})},_tryExecuteItemOptionAction:function(et){return et&&et.tryExecute()},_updateValidationGroupAndSummaryIfNeeded:function(et){var Qt,Ot=ha(et);xc.indexOf(Ot)>-1&&(k.A.addGroup(this._getValidationGroup()),this.option("showValidationSummary"))&&(null===(Qt=this._validationSummary)||void 0===Qt||Qt.refreshValidationGroup())},_setLayoutManagerItemOption(et,Ot,Qt,Ei){if(this._updateLockCount>0){!et._updateLockCount&&et.beginUpdate();var on=this._itemsRunTimeInfo.findKeyByPath(Ei);this.postponedOperations.add(on,()=>(!et._disposed&&et.endUpdate(),(new _e.cY).resolve()))}var Bn=ir=>{if(ir.component.off("contentReady",Bn),Fa(Ei)){var Yr=(et=>{for(var Ot=et.split("."),Qt=[...Ot],Ei=Ot.length-1;Ei>=0;Ei--){if(Fa(Ot[Ei]))return Qt.join(".");Qt.splice(Ei,1)}return""})(Ei),Ir=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(Yr);Ir&&this._alignLabelsInColumn({items:Ir.option("items"),layoutManager:Ir,$container:Ir.$element(),inOneColumn:Ir.isSingleColumnMode()})}else this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode())};et.on("contentReady",Bn),et.option(Ot,Qt),this._updateValidationGroupAndSummaryIfNeeded(Ot)},_tryChangeLayoutManagerItemOption(et,Ot){var Qt=et.split("."),Ei=ha(et);if("items"===Ei&&Qt.length>1){var on=this._getItemPath(Qt),Bn=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(on);if(Bn){this._itemsRunTimeInfo.removeItemsByItems(Bn.getItemsRunTimeInfo());var ir=this._prepareItems(Ot,!1,on);return this._setLayoutManagerItemOption(Bn,Ei,ir,on),!0}}else if(Qt.length>2){var Yr=Qt.length-2,Ir=this._getItemPath(Qt.slice(0,Yr)),pa=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(Ir);if(pa){var fa=_r(Qt[Yr],Ei);if("editorType"===Ei&&pa.option(fa)!==Ot)return!1;if("visible"===Ei){var eo=this.option(_r(Ir,"items"));if(eo&&eo.length){var Oo=pa.option("items");eo.forEach((Fs,Tl)=>{Oo[Tl].visibleIndex=Fs.visibleIndex})}}return this._setLayoutManagerItemOption(pa,fa,Ot,Ir),!0}}return!1},_tryChangeLayoutManagerItemOptions(et,Ot){var Qt;return this.beginUpdate(),(0,_.__)(Ot,(Ei,on)=>{if(!(Qt=this._tryChangeLayoutManagerItemOption(_r(et,Ei),on)))return!1}),this.endUpdate(),Qt},_getItemPath:function(et){var Qt,Ot=et[0];for(Qt=1;Qt<et.length&&-1!==et[Qt].search(/items\[\d+]|tabs\[\d+]/);Qt++)Ot+="."+et[Qt];return Ot},_triggerOnFieldDataChanged:function(et){this._updateIsDirty(et.dataField),this._createActionByOption("onFieldDataChanged")(et)},_triggerOnFieldDataChangedByDataSet(et){et&&(0,m.Gv)(et)&&Object.keys(et).forEach(Ot=>{this._triggerOnFieldDataChanged({dataField:Ot,value:et[Ot]})})},_updateFieldValue:function(et,Ot){if((0,m.O9)(this.option("formData"))){var Qt=this.getEditor(et);this.option("formData."+et,Ot),Qt&&Qt.option("value")!==Ot&&Qt.option("value",Ot)}},_generateItemsFromData:function(et){var Ot=this.option("formData"),Qt=[];return!et&&(0,m.O9)(Ot)&&(0,_.__)(Ot,function(Ei){Qt.push({dataField:Ei})}),et&&(0,_.__)(et,function(Ei,on){(0,m.Gv)(on)?Qt.push(on):Qt.push({dataField:on})}),Qt},_getItemByField:function(et,Ot){var ir,Qt=this,Ei=(0,m.Gv)(et)?et:Qt._getFieldParts(et),on=Ei.fieldName,Bn=Ei.fieldPath;return Ot.length&&(0,_.__)(Ot,function(Yr,Ir){var pa=Ir.itemType;if(Bn.length){var fa=Bn.slice();Ir=Qt._getItemByFieldPath(fa,on,Ir)}else if("group"===pa&&!Ir.caption&&!Ir.name||"tabbed"===pa&&!Ir.name){var eo=Qt._getSubItemField(pa);Ir.items=Qt._generateItemsFromData(Ir.items),Ir=Qt._getItemByField({fieldName:on,fieldPath:Bn},Ir[eo])}if(((et,Ot)=>!!et&&(et.dataField===Ot||et.name===Ot||Nn(et.title)===Ot||"group"===et.itemType&&Nn(et.caption)===Ot))(Ir,on))return ir=Ir,!1}),ir},_getFieldParts:function(et){for(var Ot=et,Qt=Ot.indexOf("."),Ei=[];-1!==Qt;)Ei.push(Ot.substr(0,Qt)),Qt=(Ot=Ot.substr(Qt+1)).indexOf(".");return{fieldName:Ot,fieldPath:Ei.reverse()}},_getItemByFieldPath:function(et,Ot,Qt){var ir,Ei=Qt.itemType,on=this._getSubItemField(Ei),Bn="group"===Ei||"tabbed"===Ei||Qt.title;do{if(!Bn)break;var Yr=Qt.name||Qt.caption||Qt.title,Ir=(0,m.O9)(Yr),pa=Nn(Yr),fa=void 0;if(Qt[on]=this._generateItemsFromData(Qt[on]),Ir&&(fa=et.pop()),!et.length&&(ir=this._getItemByField(Ot,Qt[on])))break;(!Ir||Ir&&pa===fa)&&et.length&&(ir=this._searchItemInEverySubItem(et,Ot,Qt[on]))}while(et.length&&!(0,m.O9)(ir));return ir},_getSubItemField:function(et){return"tabbed"===et?"tabs":"items"},_searchItemInEverySubItem:function(et,Ot,Qt){var on,Ei=this;return(0,_.__)(Qt,function(Bn,ir){if(on=Ei._getItemByFieldPath(et.slice(),Ot,ir))return!1}),on||(on=!1),on},_changeItemOption:function(et,Ot,Qt){(0,m.Gv)(et)&&(et[Ot]=Qt)},_dimensionChanged:function(){var et=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==et&&(this._isColCountChanged(this._lastMarkupScreenFactor,et)&&(this._targetScreenFactor=et,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=et)},_isColCountChanged:function(et,Ot){var Qt=!1;return(0,_.__)(this._cachedColCountOptions,function(Ei,on){if(on.colCountByScreen[et]!==on.colCountByScreen[Ot])return Qt=!0,!1}),Qt},_refresh:function(){var et=".".concat(Yp," > :not(.dx-dropdowneditor-input-wrapper) input,")+" .".concat(Yp," textarea");L.A.trigger(this.$element().find(et),"change"),this.callBase()},_updateIsDirty:function(et){var Ot=this.getEditor(et);Ot&&(Ot.option("isDirty")?this._dirtyFields.add(et):this._dirtyFields.delete(et),this.option("isDirty",!!this._dirtyFields.size))},updateRunTimeInfoForEachEditor:function(et){this._itemsRunTimeInfo.each(function(Ot,Qt){var Ei=Qt.widgetInstance;(0,m.O9)(Ei)&&w.A.isEditor(Ei)&&et(Ei)})},_clear:function(){this.updateRunTimeInfoForEachEditor(et=>{et.clear(),et.option("isValid",!0)}),k.A.resetGroup(this._getValidationGroup())},_updateData:function(et,Ot,Qt){var Ei=this,on=Qt?Ot:et;(0,m.Gv)(on)?(0,_.__)(on,function(Bn,ir){Ei._updateData(Qt?et+"."+Bn:Bn,ir,(0,m.Gv)(ir))}):(0,m.Kg)(et)&&Ei._updateFieldValue(et,Ot)},registerKeyHandler:function(et,Ot){this.callBase(et,Ot),this._itemsRunTimeInfo.each(function(Qt,Ei){(0,m.O9)(Ei.widgetInstance)&&Ei.widgetInstance.registerKeyHandler(et,Ot)})},_focusTarget:function(){return this.$element().find("."+va+" [tabindex]").first()},_visibilityChanged:function(){this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode())},_clearAutoColCountChangedTimeout:function(){this.autoColCountChangedTimeoutId&&(clearTimeout(this.autoColCountChangedTimeoutId),this.autoColCountChangedTimeoutId=void 0)},_dispose:function(){this._clearAutoColCountChangedTimeout(),k.A.removeGroup(this._getValidationGroup()),this.callBase()},clear:function(){this._clear()},resetValues:function(){this._clear()},reset:function(et){this.updateRunTimeInfoForEachEditor(Ot=>{var Qt=Ot.option("name");et&&Qt in et?Ot.reset(et[Qt]):Ot.reset()}),this._renderValidationSummary()},updateData:function(et,Ot){this._updateData(et,Ot)},getEditor:function(et){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(et)||this._itemsRunTimeInfo.findWidgetInstanceByName(et)},getButton:function(et){return this._itemsRunTimeInfo.findWidgetInstanceByName(et)},updateDimensions:function(){var et=this,Ot=new _e.cY;return et._scrollable?et._scrollable.update().done(function(){Ot.resolveWith(et)}):Ot.resolveWith(et),Ot.promise()},itemOption:function(et,Ot,Qt){var Ei=this._generateItemsFromData(this.option("items")),on=this._getItemByField(et,Ei),Bn=Ya(Ei,on);if(on)switch(arguments.length){case 1:return on;case 3:var ir=this._tryCreateItemOptionAction(Ot,on,Qt,on[Ot],Bn);this._changeItemOption(on,Ot,Qt);var Yr=_r(Bn,Ot);!this._tryExecuteItemOptionAction(ir)&&!this._tryChangeLayoutManagerItemOption(Yr,Qt)&&this.option("items",Ei);break;default:var Ir;(0,m.Gv)(Ot)&&!this._tryChangeLayoutManagerItemOptions(Bn,Ot)&&((0,_.__)(Ot,(pa,fa)=>{var eo=this._tryCreateItemOptionAction(pa,on,fa,on[pa],Bn);this._changeItemOption(on,pa,fa),!Ir&&!this._tryExecuteItemOptionAction(eo)&&(Ir=!0)}),Ir&&this.option("items",Ei))}},validate:function(){return k.A.validateGroup(this._getValidationGroup())},getItemID:function(et){return"dx_"+this.option("formID")+"_"+(et||new o.A)},getTargetScreenFactor:function(){return this._targetScreenFactor}});(0,j.A)("dxForm",wo);const $s=wo},36857:(ei,rt,D)=>{"use strict";var r=D(24292),d=D(91269),L=D(18060),j=D(87951),o=D(87310),E=D(89454),R=D(23862),m=D(64905),_=D(44831),v=D(49104),s="dx-radiobutton-icon",f=_.A.inherit({_supportedKeys:function(){return(0,j.X)(this.callBase(),{space:function(X){X.preventDefault(),this._clickAction({event:X})}})},_getDefaultOptions:function(){return(0,j.X)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===R.A.real().deviceType&&!R.A.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-radiobutton")},_initMarkup:function(){this.callBase(),this._renderIcon(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderIcon:function(){this._$icon=(0,r.A)("<div>").addClass(s),(0,r.A)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(X){this.$element().toggleClass("dx-radiobutton-checked",X).find("."+s).toggleClass("dx-radiobutton-icon-checked",X),this.setAria("checked",X)},_renderClick:function(){var X=(0,v.b4)(L.U,this.NAME);this._clickAction=this._createAction(function(q){this._clickHandler(q.event)}.bind(this)),d.A.off(this.$element(),X),d.A.on(this.$element(),X,function(q){this._clickAction({event:q})}.bind(this))},_clickHandler:function(X){this._saveValueChangeEvent(X),this.option("value",!0)},_optionChanged:function(X){"value"===X.name?(this._renderCheckedState(X.value),this.callBase(X)):this.callBase(X)}});(0,m.A)("dxRadioButton",f);const k=f;var I=D(32836),x=D(80186),g=D(5042),C=D(56221),F=D(24361),Y="dxListEditDecorator",Q=(0,v.b4)(F.ni,Y),se=(0,v.b4)(F.By,Y),ie=(0,v.b4)(F._N,Y);const re=C.A.inherit({ctor:function(X){this._list=X,this._init()},_init:g.lQ,_shouldHandleSwipe:!1,_attachSwipeEvent:function(X){var q={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=(0,x.RG)(this._list.$element()),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};d.A.on(X.$itemElement,Q,q,this._itemSwipeStartHandler.bind(this)),d.A.on(X.$itemElement,se,this._itemSwipeUpdateHandler.bind(this)),d.A.on(X.$itemElement,ie,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(X){var q=(0,r.A)(X.currentTarget);q.is(".dx-state-disabled, .dx-state-disabled *")?X.cancel=!0:(clearTimeout(this._list._inkRippleTimer),this._swipeStartHandler(q,X))},_itemSwipeUpdateHandler:function(X){var q=(0,r.A)(X.currentTarget);this._swipeUpdateHandler(q,X)},_itemSwipeEndHandler:function(X){var q=(0,r.A)(X.currentTarget);this._swipeEndHandler(q,X),this._clearSwipeCache=!0},beforeBag:g.lQ,afterBag:g.lQ,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(X){this._shouldHandleSwipe&&(this._attachSwipeEvent(X),this._clearSwipeCache=!0)},afterRender:g.lQ,handleClick:g.lQ,handleKeyboardEvents:g.lQ,handleEnterPressing:g.lQ,handleContextMenu:g.lQ,_swipeStartHandler:g.lQ,_swipeUpdateHandler:g.lQ,_swipeEndHandler:g.lQ,visibilityChange:g.lQ,getExcludedSelectors:g.lQ,dispose:g.lQ});var ne="dx-list-select-decorator-enabled",z=(0,v.b4)(L.U,"dxListEditDecorator");(0,I.k)("selection","default",re.inherit({_init:function(){this.callBase.apply(this,arguments);var X=this._list.option("selectionMode");this._singleStrategy="single"===X,this._containerClass=this._singleStrategy?"dx-list-select-radiobutton-container":"dx-list-select-checkbox-container",this._controlClass=this._singleStrategy?"dx-list-select-radiobutton":"dx-list-select-checkbox",this._controlWidget=this._singleStrategy?k:E.A,this._list.$element().addClass(ne)},beforeBag:function(X){var q=X.$itemElement,ye=X.$container.addClass(this._containerClass),xe=(0,r.A)("<div>").addClass(this._controlClass).appendTo(ye);new this._controlWidget(xe,(0,j.X)(this._commonOptions(),{value:this._isSelected(q),elementAttr:{"aria-label":"Check State"},focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(ge){ge.event&&this._list._saveSelectionChangeEvent(ge.event),this._processCheckedState(q,ge.value),ge.event&&ge.event.stopPropagation()}.bind(this)}))},modifyElement:function(X){this.callBase.apply(this,arguments);var q=X.$itemElement,ye=this._controlWidget.getInstance(q.find("."+this._controlClass));d.A.on(q,"stateChanged",function(xe,ge){ye.option("value",ge)}.bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents:function(X,q){var ye=!q,xe=this._list,ge=this._$selectAll,Ee=xe._getLastItemIndex();return!(!ge||!(q&&0===X||ye&&X===Ee)||(xe.option("focusedElement",ge),xe.scrollToItem(xe.option("focusedElement")),0))},handleEnterPressing:function(X){if(this._$selectAll&&this._$selectAll.hasClass("dx-state-focused"))return X.target=this._$selectAll.get(0),this._list._saveSelectionChangeEvent(X),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var X=this._$selectAll=(0,r.A)("<div>").addClass("dx-list-select-all"),q=this._list,ye=q._supportedKeys().downArrow.bind(q);this._selectAllCheckBox=q._createComponent((0,r.A)("<div>").addClass("dx-list-select-all-checkbox").appendTo(X),E.A,{elementAttr:{"aria-label":"Select All"},focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",ye),(0,r.A)("<div>").addClass("dx-list-select-all-label").text(this._list.option("selectAllText")).appendTo(X),this._list.itemsContainer().prepend(X),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),d.A.off(this._$selectAll,z),d.A.on(this._$selectAll,z,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(X){X.event&&X.event.stopPropagation();var q=this._selectAllCheckBox.option("value");X.event&&this._list._saveSelectionChangeEvent(X.event),!0===q?this._selectAllItems():!1===q&&this._unselectAllItems(),this._list._createActionByOption("onSelectAllValueChanged")({value:q})},_checkSelectAllCapability:function(){var X=this._list,q=X._dataController;return!("allPages"===X.option("selectAllMode")&&X.option("grouped")&&!q.group()&&(o.A.log("W1010"),1))},_selectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(X){this._list._saveSelectionChangeEvent(X),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(X){return this._list.isItemSelected(X)},_processCheckedState:function(X,q){q?this._list.selectItem(X):this._list.unselectItem(X)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass(ne),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},31207:(ei,rt,D)=>{"use strict";D.d(rt,{i:()=>li});var r=D(80186),d=D(24292),L=D(91269),j=D(5042),o=D(72463),E=D(86018),R=D(60181),m=D(12101),_=D(39407),v=D(87951),h=D(3930),s=D(18060),b=D(24361),O=D(19900),w=D(20736),f=D(26115),k=D(23862),I=D(12338),x="dx-list-item-badge-container",F="dx-list-item-chevron-container";const se=I.A.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(Je){if(this._$element.children("."+x).remove(),Je){var Ht=(0,d.A)("<div>").addClass(x).append((0,d.A)("<div>").addClass("dx-list-item-badge").addClass("dx-badge").text(Je)),gi=this._$element.children("."+F).first();gi.length>0?Ht.insertBefore(gi):Ht.appendTo(this._$element)}},_renderShowChevron:function(Je){if(this._$element.children("."+F).remove(),Je){var Ht=(0,d.A)("<div>").addClass(F),gi=(0,d.A)("<div>").addClass("dx-list-item-chevron");Ht.append(gi).appendTo(this._$element)}}});var ie=D(2839),ee=D(49104),re=D(11299),ne=D(14435),_e=D(76121),be=D(69301),oe=D(2636),me=D(56311),we=D(12984),N=D(95788),G=D(48745),W=D(99228);function X(Je,Ht){var gi=function z(Je){var Ht,gi;return Je&&(0,ne.Vd)()?null===(Ht=(gi=(0,ne.zk)()).getComputedStyle)||void 0===Ht?void 0:Ht.call(gi,Je):null}(Je);return gi?(0,W.R)(gi["margin".concat((0,G.Ns)(Ht))]):0}var Ee=D(13992),ce="dx-list-item",de="."+ce,We="dx-list-group",tt="dx-list-group-header",vt="dx-list-group-body",Nt="dx-list-group-collapsed",Tt=(0,_.Hz)("items"),li=oe.A.inherit({_activeStateUnit:[de,".dx-list-select-all"].join(","),_supportedKeys:function(){var Je=this,Ht=function(Ti){var ui,cn,Ui,ni=gi(Ti);ni.is(Je.option("focusedElement"))&&(cn=Ti,Ui=(ui=ni).position().top,"prev"===cn&&(Ui=ui.position().top-(0,r.Oq)(Je.$element())+(0,r.P$)(ui)),Je.scrollTo(Ui),ni=gi(Ti)),Je.option("focusedElement",(0,R.c)(ni)),Je.scrollToItem(ni)};function gi(Ti){var ni=Je.scrollTop(),wi=(0,r.Oq)(Je.$element()),ui=(0,d.A)(Je.option("focusedElement")),cn=!0;if(!ui.length)return(0,d.A)();for(;cn;){var Ui=ui[Ti]();if(!Ui.length)break;var Xi=Ui.position().top+(0,r.P$)(Ui)/2;(cn=Xi<wi+ni&&Xi>ni)&&(ui=Ui)}return ui}return(0,v.X)(this.callBase(),{leftArrow:j.lQ,rightArrow:j.lQ,pageUp:function(){return Ht("prev"),!1},pageDown:function(){return Ht("next"),!1}})},_getDefaultOptions:function(){return(0,v.X)(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,selectByClick:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:w.A.format("dxList-pullingDownText"),pulledDownText:w.A.format("dxList-pulledDownText"),refreshingText:w.A.format("dxList-refreshingText"),pageLoadingText:w.A.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:w.A.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},useInkRipple:!1,wrapItemText:!1,_swipeEnabled:!0,showChevronExpr:function(Je){return Je?Je.showChevron:void 0},badgeExpr:function(Je){return Je?Je.badge:void 0}})},_defaultOptionsRules:function(){var Je=(0,re.ss)();return this.callBase().concat((0,be.M)(),[{device:function(){return!O.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(Ht){return!O.nativeScrolling&&!k.A.isSimulator()&&"desktop"===k.A.real().deviceType&&"generic"===Ht.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===k.A.real().deviceType&&!k.A.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,re.gx)(Je)},options:{useInkRipple:!0}},{device:function(){return(0,re.Nt)(Je)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:""}}])},_visibilityChanged:function(Je){Je&&this._updateLoadingState(!0)},_itemClass:function(){return ce},_itemDataKey:function(){return"dxListItemData"},_itemContainer:function(){return this._$container},_getItemsContainer:function(){return this._$listContainer},_cleanItemContainer:function(){this.callBase();var Je=this._getItemsContainer();(0,d.A)(Je).empty(),Je.appendTo(this._$container)},_saveSelectionChangeEvent:function(Je){this._selectionChangeEventInstance=Je},_getSelectionChangeEvent:function(){return this._selectionChangeEventInstance},_refreshItemElements:function(){this._itemElementsCache=this.option("grouped")?this._getItemsContainer().children("."+We).children("."+vt).children(this._itemSelector()):this._getItemsContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},reorderItem:function(Je,Ht){return this.callBase(Je,Ht).done(function(){this._refreshItemElements()})},deleteItem:function(Je){return this.callBase(Je).done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(Je){if("single"!==this.option("selectionMode")||!this.isItemSelected(Je.currentTarget))return this.callBase(Je)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._dataController.resetDataSourcePageIndex(),this._$container=this.$element(),this._$listContainer=(0,d.A)("<div>").addClass("dx-list-items"),this._initScrollView(),this._feedbackShowTimeout=70,this._createGroupRenderAction()},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var Je=this._scrollBottomMode(),Ht=this._nextButtonMode();return(0,v.X)(this.callBase(),{paginate:(0,j.YD)(Je||Ht,!0)})},_getGroupedOption:function(){return this.option("grouped")},_getGroupContainerByIndex:function(Je){return this._getItemsContainer().find(".".concat(We)).eq(Je).find(".".concat(vt))},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var Je=this.option("scrollingEnabled"),Ht=Je&&this.option("pullRefreshEnabled"),gi=Je&&this._scrollBottomMode()&&!!this._dataController.getDataSource();this._scrollView=this._createComponent(this.$element(),function an(){return _e.A}(),{height:this.option("height"),width:this.option("width"),disabled:this.option("disabled")||!Je,onScroll:this._scrollHandler.bind(this),onPullDown:Ht?this._pullDownHandler.bind(this):null,onReachBottom:gi?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=(0,d.A)(this._scrollView.content()),this._$listContainer.appendTo(this._$container),this._toggleWrapItemText(this.option("wrapItemText")),this._createScrollViewActions()},_toggleWrapItemText:function(Je){this._$listContainer.toggleClass("dx-wrap-item-text",Je)},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(Je){this._scrollAction&&this._scrollAction(Je)},_initTemplates:function(){this._templateManager.addDefaultTemplates({group:new me.U(function(Je,Ht){(0,o.Qd)(Ht)?Ht.key&&Je.text(Ht.key):Je.text(String(Ht))},["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate:function(Je,Ht){if(this.callBase(Je,Ht),Je.icon){var gi=(0,E.N)(Je.icon).addClass("dx-list-item-icon"),Ti=(0,d.A)("<div>").addClass("dx-list-item-icon-container");Ti.append(gi),Ht.prepend(Ti)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(Je){var Ht=this._dataController,gi=this._scrollBottomMode()&&Je&&!Ht.isLoading()&&!this._isLastPage();this._shouldContinueLoading(gi)?this._infiniteDataLoading():(this._scrollView.release(!gi&&!Ht.isLoading()),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1))},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataController.isLoaded()},_isDataSourceFirstLoadCompleted:function(Je){return(0,o.O9)(Je)&&(this._isFirstLoadCompleted=Je),this._isFirstLoadCompleted},_dataSourceLoadingChangedHandler:function(Je){this._loadIndicationSuppressed()||(Je&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var Ti;!this._itemElements().length&&!this._isDataSourceFirstLoadCompleted()||null===(Ti=this._scrollView)||void 0===Ti||Ti.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()),Je||this._isDataSourceFirstLoadCompleted(!1))},_dataSourceChangedHandler:function(){!this._shouldAppendItems()&&(0,ne.Vd)()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments),this._isDataSourceFirstLoadCompleted(!0)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(Je){if(!arguments.length)return this._isLoadIndicationSuppressed;this._isLoadIndicationSuppressed=Je},_scrollViewIsFull:function(){var Je=this._scrollView;return!Je||(0,r.Oq)(Je.content())>(0,r.Oq)(Je.container())},_pullDownHandler:function(Je){this._pullRefreshAction(Je);var Ht=this._dataController;Ht.getDataSource()&&!Ht.isLoading()?(this._clearSelectedItems(),Ht.pageIndex(0),Ht.reload()):this._updateLoadingState()},_shouldContinueLoading:function(Je){var Ht,gi,Ti=(0,r.Oq)(this._scrollView.content())-(0,r.Oq)(this._scrollView.container())<(null!==(Ht=null===(gi=this._scrollView.scrollOffset())||void 0===gi?void 0:gi.top)&&void 0!==Ht?Ht:0);return Je&&(!this._scrollViewIsFull()||Ti)},_infiniteDataLoading:function(){this.$element().is(":visible")&&(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(()=>{this._loadNextPage()}))},_scrollBottomHandler:function(Je){this._pageLoadingAction(Je),this._dataController.isLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(Je){this.option("grouped")?((0,m.__)(Je,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),(0,re.gx)()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var Je=(0,ee.b4)(s.U,this.NAME),Ht="."+tt,gi=this.$element(),Ti=this.option("collapsibleGroups");gi.toggleClass("dx-list-collapsible-groups",Ti),L.A.off(gi,Je,Ht),Ti&&L.A.on(gi,Je,Ht,function(ni){this._createAction(function(wi){var ui=(0,d.A)(wi.event.currentTarget).parent();this._collapseGroupHandler(ui),this.option("focusStateEnabled")&&this.option("focusedElement",(0,R.c)(ui.find("."+ce).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:ni})}.bind(this))},_collapseGroupHandler:function(Je,Ht){var gi=new we.cY;if(Je.hasClass(Nt)===Ht)return gi.resolve();var Ti=Je.children("."+vt),ni=(0,r.P$)(Ti),wi=0;return 0===ni&&((0,r.k$)(Ti,"auto"),wi=(0,r.P$)(Ti)),Je.toggleClass(Nt,Ht),h.A.animate(Ti,{type:"custom",from:{height:ni},to:{height:wi},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(!0),gi.resolve()}.bind(this)}),gi.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=(0,d.A)(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria({role:"group",roledescription:"list"},this.$element()),this.setAria({role:"group"},this._focusTarget()),this._setListAria()},_setListAria(){var{items:Je}=this.option();this.setAria(null!=Je&&Je.length?{role:"listbox",label:"Items"}:{role:void 0,label:void 0},this._$listContainer)},_focusTarget:function(){return this._itemContainer()},_renderInkRipple:function(){this._inkRipple=(0,f.XX)()},_toggleActiveState:function(Je,Ht,gi){this.callBase.apply(this,arguments);var Ti=this;if(this._inkRipple){var ni={element:Je,event:gi};Ht?(0,re.gx)()?this._inkRippleTimer=setTimeout(function(){Ti._inkRipple.showWave(ni)},35):Ti._inkRipple.showWave(ni):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(ni))}},_postprocessRenderItem:function(Je){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("_swipeEnabled")&&this._attachSwipeEvent((0,d.A)(Je.itemElement))},_attachSwipeEvent:function(Je){var Ht=(0,ee.b4)(b._N,this.NAME);L.A.on(Je,Ht,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(Je){this._itemDXEventHandler(Je,"onItemSwipe",{direction:Je.offset<0?"left":"right"})},_nextButtonHandler:function(Je){this._pageLoadingAction(Je);var Ht=this._dataController;Ht.getDataSource()&&!Ht.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(Je,Ht){var gi=(0,d.A)("<div>").addClass(We).appendTo(this._getItemsContainer()),Ti="dx-".concat((new Ee.A).toString());this.setAria({role:"group",labelledby:Ti},gi);var wi=(0,d.A)("<div>").addClass(tt).attr("id",Ti).appendTo(gi),ui=this.option("groupTemplate"),cn=this._getTemplate(Ht.template||ui,Ht,Je,wi),Ui={index:Je,itemData:Ht,container:(0,R.c)(wi)};this._createItemByTemplate(cn,Ui),(0,d.A)("<div>").addClass("dx-list-group-header-indicator").prependTo(wi),this._renderingGroupIndex=Je;var Xi=(0,d.A)("<div>").addClass(vt).appendTo(gi);(0,m.__)(Tt(Ht)||[],function(Qi,Ut){this._renderItem({group:Je,item:Qi},Ut,Xi)}.bind(this)),this._groupRenderAction({groupElement:(0,R.c)(gi),groupIndex:Je,groupData:Ht})},downInkRippleHandler:function(Je){this._toggleActiveState((0,d.A)(Je.currentTarget),!0,Je)},upInkRippleHandler:function(Je){this._toggleActiveState((0,d.A)(Je.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var Je="."+tt,Ht=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var gi=[Ht,"dxpointerdown",Je,this._downInkRippleHandler],Ti=[Ht,"dxpointerup dxpointerout",Je,this._upInkRippleHandler];L.A.off(...gi),L.A.on(...gi),L.A.off(...Ti),L.A.on(...Ti)},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){this._isDataSourceFirstLoadCompleted(!1),clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(Je){this.callBase(Je),this._scrollView.option("disabled",Je||!this.option("scrollingEnabled"))},_toggleNextButton:function(Je){var Ht=this._dataController,gi=this._getNextButton();this.$element().toggleClass("dx-has-next",Je),Je&&Ht.isLoaded()&&gi.appendTo(this._itemContainer()),Je||gi.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var Je=(0,d.A)("<div>").addClass("dx-list-next-button"),Ht=(0,d.A)("<div>").appendTo(Je);return this._createComponent(Ht,ie.A,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:(0,re.Nt)()?"default":void 0,integrationOptions:{}}),Je},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if((0,ne.Vd)()){var Je=this._scrollView.scrollTop();this.callBase(),Je&&this._scrollView.scrollTo(Je)}else this.callBase()},_optionChanged:function(Je){switch(Je.name){case"pageLoadMode":this._toggleNextButton(Je.value),this._initScrollView();break;case"dataSource":this.callBase(Je),this._initScrollView(),this._isDataSourceFirstLoadCompleted(!1);break;case"items":this.callBase(Je),this._isDataSourceFirstLoadCompleted(!1);break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"useNativeScrolling":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState(!0);break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":case"grouped":case"collapsibleGroups":case"groupTemplate":case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions();break;case"wrapItemText":this._toggleWrapItemText(Je.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(Je),this._scrollView.option(Je.name,Je.value),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(Je),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(Je);break;case"_swipeEnabled":case"selectByClick":break;default:this.callBase(Je)}},_extendActionArgs:function(Je){if(!this.option("grouped"))return this.callBase(Je);var Ht=Je.closest("."+We),gi=Ht.find("."+ce);return(0,v.X)(this.callBase(Je),{itemIndex:{group:Ht.index(),item:gi.index(Je)}})},expandGroup:function(Je){var Ht=new we.cY,gi=this._getItemsContainer().find(".".concat(We)).eq(Je);return this._collapseGroupHandler(gi,!1).done(function(){Ht.resolveWith(this)}.bind(this)),Ht.promise()},collapseGroup:function(Je){var Ht=new we.cY,gi=this._getItemsContainer().find(".".concat(We)).eq(Je);return this._collapseGroupHandler(gi,!0).done(function(){Ht.resolveWith(this)}.bind(this)),Ht},updateDimensions:function(){var Je=this,Ht=new we.cY;return Je._scrollView?Je._scrollView.update().done(function(){!Je._scrollViewIsFull()&&Je._updateLoadingState(!0),Ht.resolveWith(Je)}):Ht.resolveWith(Je),Ht.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(Je){this._scrollView.scrollBy(Je)},scrollTo:function(Je){this._scrollView.scrollTo(Je)},scrollToItem:function(Je){var Ht=this._editStrategy.getItemElement(Je),gi=Ht?.get(0);this._scrollView.scrollToElement(gi,{bottom:X(gi,"bottom")})},_dimensionChanged:function(){this.updateDimensions()}}).include(N.A);li.ItemClass=se},32836:(ei,rt,D)=>{"use strict";D.d(rt,{k:()=>L,u:()=>d});var r=D(87951),d={};function L(j,o,E){var R=d,m={};m[j]=R[j]?R[j]:{},m[j][o]=E,(0,r.X)(R,m)}},51774:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>xe});var r=D(24292),d=D(49104),L=D(87951),j=D(72463),o=D(12101),E=D(37514),R=D(59845),m=D(14407),v="dx-list-group",b=function(ge){return(ge.group<<20)+ge.item},O=function(ge){return{group:ge>>20,item:1048575&ge}};const f=m.A.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+v)},_groupItemElements:function(ge){return ge.find(".dx-list-item")},getIndexByItemData:function(ge){var Ee=this._collectionWidget.option("items"),he=!1;return!!ge&&(ge.items&&ge.items.length&&(ge=ge.items[0]),(0,o.__)(Ee,function(Ie,ce){if(!ce.items||((0,o.__)(ce.items,function(de,pe){return pe!==ge||(he={group:Ie,item:de},!1)}),he))return!1}),he)},getItemDataByIndex:function(ge){var Ee=this._collectionWidget.option("items");return(0,j.kf)(ge)?this.itemsGetter()[ge]:ge&&Ee[ge.group]&&Ee[ge.group].items[ge.item]||null},itemsGetter:function(){for(var ge=[],Ee=this._collectionWidget.option("items"),he=0;he<Ee.length;he++)Ee[he]&&Ee[he].items?ge=ge.concat(Ee[he].items):ge.push(Ee[he]);return ge},deleteItemAtIndex:function(ge){var Ee=O(ge);this._collectionWidget.option("items")[Ee.group].items.splice(Ee.item,1)},getKeysByItems:function(ge){var he,Ee=[];for(he=0;he<ge.length;he++)ge[he]&&ge[he].items?Ee=Ee.concat(ge[he].items):Ee.push(ge[he]);var Ie=[];for(he=0;he<Ee.length;he++)Ie.push(this._collectionWidget.keyOf(Ee[he]));return Ie},getIndexByKey:function(ge,Ee){var he=Ee||this._collectionWidget.option("items"),Ie=-1,ce=this;return(0,o.__)(he,function(de,pe){if(pe.items&&((0,o.__)(pe.items,function(Be,We){var tt=ce._collectionWidget.keyOf(We);if(ce._equalKeys(tt,ge))return Ie={group:de,item:Be},!1}),-1!==Ie))return!1}),Ie},_getGroups:function(ge){var he=this._collectionWidget._dataController.group();return he?E.A.queryByOptions((0,R.A)(ge),{group:he}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(ge,Ee){var he=[],Ie=this._getGroups(Ee),ce={},de=pe=>{var Be=this.getIndexByKey(pe,Ie),We=Be&&Ie[Be.group];if(We)return{groupKey:We.key,item:We.items[Be.item]}};return(0,o.__)(ge,function(pe,Be){var We=de(Be);if(We){var tt=We.groupKey,vt=We.item,Xt=ce[tt];Xt||(ce[tt]=Xt={key:tt,items:[]},he.push(Xt)),Xt.items.push(vt)}}),he},moveItemAtIndexToIndex:function(ge,Ee){var he=this._collectionWidget.option("items"),Ie=O(ge),ce=O(Ee),de=he[Ie.group].items,pe=he[ce.group].items,Be=de[Ie.item];de.splice(Ie.item,1),pe.splice(ce.item,0,Be)},_isItemIndex:function(ge){return ge&&(0,j.kf)(ge.group)&&(0,j.kf)(ge.item)},_getNormalizedItemIndex:function(ge){var Ee=(0,r.A)(ge),he=Ee.closest("."+v);return he.length?b({group:this._groupElements().index(he),item:this._groupItemElements(he).index(Ee)}):-1},_normalizeItemIndex:function(ge){return b(ge)},_denormalizeItemIndex:function(ge){return O(ge)},_getItemByNormalizedIndex:function(ge){var Ee=O(ge),he=this._groupElements().eq(Ee.group);return this._groupItemElements(he).eq(Ee.item)},_itemsFromSameParent:function(ge,Ee){return O(ge).group===O(Ee).group}});var k=D(20736),I=D(5042),x=D(56221),g=D(87310),C=D(32836),F=[],Y=function(ge,Ee,he){F.push({enabled:ge,decoratorType:Ee,decoratorSubType:he})};Y(function(){return this.option("menuItems").length},function(){return"menu"},function(){return this.option("menuMode")}),Y(function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")},function(){var ge=this.option("itemDeleteMode");return"toggle"===ge||"slideButton"===ge||"swipe"===ge||"static"===ge?"delete":"menu"},function(){var ge=this.option("itemDeleteMode");return"slideItem"===ge&&(ge="slide"),ge}),Y(function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")},function(){return"selection"},function(){return"default"}),Y(function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")},function(){return"reorder"},function(){return"default"});const oe=x.A.inherit({ctor:function(ge){this._list=ge,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&(0,o.__)(this._decorators,function(ge,Ee){Ee.dispose()})},_fetchRequiredDecorators:function(){this._decorators=[],(0,o.__)(F,function(ge,Ee){if(Ee.enabled.call(this._list)){var Ie=Ee.decoratorType.call(this._list),ce=Ee.decoratorSubType.call(this._list),de=this._createDecorator(Ie,ce);this._decorators.push(de)}}.bind(this))},_createDecorator:function(ge,Ee){return new(this._findDecorator(ge,Ee))(this._list)},_findDecorator:function(ge,Ee){var he,Ie=null===(he=C.u[ge])||void 0===he?void 0:he[Ee];if(!Ie)throw g.A.Error("E1012",ge,Ee);return Ie},modifyItemElement:function(ge){var Ee=(0,r.A)(ge.itemElement),he={$itemElement:Ee};this._prependBeforeBags(Ee,he),this._appendAfterBags(Ee,he),this._applyDecorators("modifyElement",he)},afterItemsRendered:function(){this._applyDecorators("afterRender")},_prependBeforeBags:function(ge,Ee){var he=this._collectDecoratorsMarkup("beforeBag",Ee,"dx-list-item-before-bag");ge.prepend(he)},_appendAfterBags:function(ge,Ee){var he=this._collectDecoratorsMarkup("afterBag",Ee,"dx-list-item-after-bag");ge.append(he)},_collectDecoratorsMarkup:function(ge,Ee,he){var Ie=(0,r.A)("<div>");return(0,o.__)(this._decorators,function(){var ce=(0,r.A)("<div>").addClass(he);this[ge]((0,L.X)({$container:ce},Ee)),ce.children().length&&Ie.append(ce)}),Ie.children()},_applyDecorators:function(ge,Ee){(0,o.__)(this._decorators,function(){this[ge](Ee)})},_handlerExists:function(ge){if(!this._decorators)return!1;for(var Ee=this._decorators,he=Ee.length,Ie=0;Ie<he;Ie++)if(Ee[Ie][ge]!==I.lQ)return!0;return!1},_eventHandler:function(ge,Ee,he){if(!this._decorators)return!1;for(var Ie=!1,ce=this._decorators,de=ce.length,pe=0;pe<de&&!(Ie=ce[pe][ge](Ee,he));pe++);return Ie},handleClick:function(ge,Ee){return this._eventHandler("handleClick",ge,Ee)},handleKeyboardEvents:function(ge,Ee){return this._eventHandler("handleKeyboardEvents",ge,Ee)},handleEnterPressing:function(ge){return this._eventHandler("handleEnterPressing",ge)},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(ge,Ee){return this._eventHandler("handleContextMenu",ge,Ee)},getExcludedItemSelectors:function(){var ge=[];return this._applyDecorators("getExcludedSelectors",ge),ge.join(",")}});const W=D(31207).i.inherit({_supportedKeys(){var ge=this,Ee=this.callBase(),he=(Ie,ce)=>{var de=this._editStrategy,pe=this.option("focusedElement"),Be=de.getNormalizedIndex(pe);if(Be!==this._getLastItemIndex()||!this._dataController.isLoading())if(Ie.shiftKey&&ge.option("itemDragging.allowReordering")){var vt=de.getItemElement(Be+(ce?-1:1));this.reorderItem(pe,vt),this.scrollToItem(pe),Ie.preventDefault()}else this._editProvider.handleKeyboardEvents(Be,ce)||(ce?Ee.upArrow(Ie):Ee.downArrow(Ie))};return(0,L.X)({},Ee,{del:Ie=>{ge.option("allowItemDeleting")&&(Ie.preventDefault(),ge.deleteItem(ge.option("focusedElement")))},upArrow:Ie=>he(Ie,!0),downArrow:Ie=>he(Ie),enter:function(Ie){this._editProvider.handleEnterPressing(Ie)||Ee.enter.apply(this,arguments)},space:function(Ie){this._editProvider.handleEnterPressing(Ie)||Ee.space.apply(this,arguments)}})},_updateSelection(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex(){return this._itemElements().length-1},_refreshItemElements(){this.callBase();var ge=this._editProvider.getExcludedItemSelectors();ge.length&&(this._itemElementsCache=this._itemElementsCache.not(ge))},_isItemStrictEquals:function(ge,Ee){var he=ge&&ge.__dx_key__;return!(he&&!this.key()&&this._selection.isItemSelected(he))&&this.callBase(ge,Ee)},_getDefaultOptions(){return(0,L.X)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:k.A.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",itemDragging:{}})},_defaultOptionsRules(){return this.callBase().concat([{device:ge=>"ios"===ge.platform,options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init(){this.callBase(),this._initEditProvider()},_initDataSource(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll(){return"page"===this.option("selectAllMode")},_initEditProvider(){this._editProvider=new oe(this)},_disposeEditProvider(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy(){this.option("grouped")?this._editStrategy=new f(this):this.callBase()},_initMarkup(){this._refreshEditProvider(),this.callBase()},_renderItems(){this.callBase(...arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:()=>"dx-list-item-selected",_itemResponseWaitClass:()=>"dx-list-item-response-wait",_itemClickHandler(ge){var Ee=(0,r.A)(ge.currentTarget);Ee.is(".dx-state-disabled, .dx-state-disabled *")||this._editProvider.handleClick(Ee,ge)||(this._saveSelectionChangeEvent(ge),this.callBase(...arguments))},_shouldFireContextMenuEvent(){return this.callBase(...arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler(ge){var Ee=(0,r.A)(ge.currentTarget);if(!Ee.is(".dx-state-disabled, .dx-state-disabled *")){if((0,d.kH)(ge)&&this._editProvider.handleContextMenu(Ee,ge))return void(ge.handledByEditProvider=!0);this.callBase(...arguments)}},_getItemContainer:function(ge){if(this.option("grouped")){var Ee,he=null===(Ee=this._editStrategy.getIndexByItemData(ge))||void 0===Ee?void 0:Ee.group;return this._getGroupContainerByIndex(he)}return this.callBase(ge)},_itemContextMenuHandler(ge){var Ee=(0,r.A)(ge.currentTarget);if(!Ee.is(".dx-state-disabled, .dx-state-disabled *")){if(!ge.handledByEditProvider&&this._editProvider.handleContextMenu(Ee,ge))return void ge.preventDefault();this.callBase(...arguments)}},_postprocessRenderItem(ge){this.callBase(...arguments),this._editProvider.modifyItemElement(ge)},_clean(){this._disposeEditProvider(),this.callBase()},focusListItem(ge){var Ee=this._editStrategy.getItemElement(ge);this.option("focusedElement",Ee),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged(ge){switch(ge.name){case"selectAllMode":this._initDataSource(),this._dataController.pageIndex(0),this._dataController.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(ge);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(ge)}},selectAll(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement(ge){return this._itemElements().index(ge)},getItemElementByFlatIndex(ge){var Ee=this._itemElements();return ge<0||ge>=Ee.length?(0,r.A)():Ee.eq(ge)},getItemByIndex(ge){return this._editStrategy.getItemDataByIndex(ge)},deleteItem(ge){var Ee=this._editStrategy,he=Ee.getNormalizedIndex(ge),Ie=this.option("focusedElement"),ce=Ie?Ee.getNormalizedIndex(Ie):he,pe=ce===this._getLastItemIndex()||he<ce?ce-1:ce;return this.callBase(ge).done(function(){return this.focusListItem(pe)})}});var z=D(68257);const q=W.inherit(z.A).inherit({_addWidgetPrefix:function(ge){return"dx-list-"+ge},_getCombinedFilter:function(){var ge=this._dataController,Ee={filter:ge.filter()};return ge.addSearchFilter(Ee),Ee.filter},_initDataSource:function(){var ge=this.option("searchValue"),Ee=this.option("searchExpr"),he=this.option("searchMode");this.callBase();var Ie=this._dataController;ge&&ge.length&&Ie.searchValue(ge),he.length&&Ie.searchOperation(z.A.getOperationBySearchMode(he)),Ee&&Ie.searchExpr(Ee)}});(0,D(64905).A)("dxList",q);const xe=q},31100:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>x});var r=D(80186),d=D(24292),L=D(14435),j=D(19900),o=D(11299),E=D(87951),R=D(23862),m=D(64905),_=D(98041),v=(0,L.w3)(),w="dx-loadindicator-segment",I=_.A.inherit({_getDefaultOptions:function(){return(0,E.X)(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var g=(0,o.ss)();return this.callBase().concat([{device:function(){return"android"===R.A.real().platform&&!/chrome/i.test(v.userAgent)},options:{viaImage:!0}},{device:function(){return(0,o.Nt)(g)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return(0,o.AE)(g)},options:{_animatingSegmentCount:7}}])},_useTemplates:function(){return!1},_init:function(){this.callBase(),this.$element().addClass("dx-loadindicator")},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=(0,d.A)("<div>").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=(0,d.A)("<div>").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup:function(){var{viaImage:g,indicatorSrc:C}=this.option();!(0,j.animation)()||g||C?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var g=this.option("_animatingSegmentInner");this._$indicator=(0,d.A)("<div>").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(var C=this.option("_animatingSegmentCount");C>=0;--C){var F=(0,d.A)("<div>").addClass(w).addClass(w+C);g&&F.append((0,d.A)("<div>").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(F)}},_renderMarkupForImage:function(){var{indicatorSrc:g}=this.option();g?(this._$wrapper.addClass("dx-loadindicator-image"),this._$wrapper.css("backgroundImage","url("+g+")")):(0,j.animation)()&&this._renderMarkupForAnimation()},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var g=this.option("width"),C=this.option("height");if(g||C){g=(0,r.RG)(this.$element()),C=(0,r.Oq)(this.$element());var F=Math.min(C,g);this._$wrapper.css({height:F,width:F,fontSize:F})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(g){switch(g.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(g)}}});(0,m.A)("dxLoadIndicator",I);const x=I},38543:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>I});var r=D(24292),d=D(5042),L=D(20736),j=D(64905),o=D(87951),E=D(31100),R=D(46022),m=D(12984),_=D(11299),s="dx-loadpanel-indicator",b="dx-loadpanel-message",k=R.A.inherit({_supportedKeys:function(){return(0,o.X)(this.callBase(),{escape:d.lQ})},_getDefaultOptions:function(){return(0,o.X)(this.callBase(),{message:L.A.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,templatesRenderAsynchronously:!1,hideTopOverlayHandler:null,focusStateEnabled:!1,propagateOutsideClick:!0,preventScrollEvents:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return(0,_.gx)()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}},{device:function(){return(0,_.Ft)()},options:{width:"auto",height:"auto"}}])},_init:function(){this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-loadpanel"),this.$wrapper().addClass("dx-loadpanel-wrapper"),this._setWrapperAria()},_setWrapperAria(){var{message:x}=this.option(),g=(0,_.Nt)()?x:null,C=x?g:L.A.format("Loading");this.setAria({role:"alert",label:C},this.$wrapper())},_renderContentImpl:function(){this.callBase(),this.$content().addClass("dx-loadpanel-content"),this._$loadPanelContentWrapper=(0,r.A)("<div>").addClass("dx-loadpanel-content-wrapper"),this._$loadPanelContentWrapper.appendTo(this.$content()),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var x=this.option("delay");if(!x)return this.callBase();var g=new m.cY,C=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){C().done(function(){g.resolve()})},x),g.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$loadPanelContentWrapper){var x=this.option("message");if(x){var g=(0,r.A)("<div>").addClass(b).text(x);this._$loadPanelContentWrapper.append(g)}}},_renderLoadIndicator:function(){!this._$loadPanelContentWrapper||!this.option("showIndicator")||(this._$indicator||(this._$indicator=(0,r.A)("<div>").addClass(s).appendTo(this._$loadPanelContentWrapper)),this._createComponent(this._$indicator,E.A,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+b).remove(),this.$content().find("."+s).remove(),delete this._$indicator},_togglePaneVisible:function(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!this.option("showPane"))},_optionChanged:function(x){switch(x.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage(),this._setWrapperAria();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._renderLoadIndicator();break;default:this.callBase(x)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});(0,j.A)("dxLoadPanel",k);const I=k},78709:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>xi});var r=D(64905),d=D(91269),L=D(1707),j=D(87951),o=D(72463),E=D(23862),R=D(22209),m=D(15655),_=D(5042),v=function(Je){for(var Ht=0,gi=0,Ti=0;Ti<Je.length;++Ti)if("'"===Je[Ti]&&Ht++,"."===Je[Ti]&&(++gi,Ht%2==0))return{occurrence:gi,index:Ti};return{occurrence:1,index:-1}},h=function(Je,Ht,gi){for(var Ti=-1;gi--&&Ti++<Je.length;)Ti=Je.indexOf(Ht,Ti);return Ti},s=function(Je,Ht){return-1===Ht?[Je]:[Je.slice(0,Ht),Je.slice(Ht+1)]},O=function(Je,Ht){if("string"==typeof Ht){var gi=Ht.split(";"),Ti=m.A.getSign(Je,Ht);gi[1]=gi[1]||"-"+gi[0],Ht=(Ht=gi[Ti<0?1:0]).replace(/'([^']*)'/g,cn=>cn.split("").map(()=>" ").join("").substr(2));var ni=/^[^#0.,]*/.exec(Ht)[0].length,wi=/[^#0.,]*$/.exec(Ht)[0].length;return{start:ni,end:Je.length-wi}}return{start:0,end:Je.length}},w=function(Je,Ht){var gi=m.A.getDecimalSeparator(),Ti=new RegExp("[^0-9"+(0,_.Nt)(gi)+"]","g");return Ht.slice(0,Je).replace(Ti,"").length},f=function(Je){return Je.split("").reverse().join("")},k=function(Je,Ht){if(!Je)return-1;for(var gi=/[0-9]/g,Ti=1,ni=null,wi=gi.exec(Ht);wi;){if(ni=wi.index,Ti>=Je)return ni;Ti++,wi=gi.exec(Ht)}return null===ni?Ht.length:ni},x=function(Je,Ht){return void 0===Je.start&&(Je={start:Je,end:Je}),{start:Je.start+Ht,end:Je.end+Ht}};function Y(Je,Ht,gi){Je=x(Je,0);var Ti=O(Ht,gi);return{start:(0,R.df)(Je.start,Ti.start,Ti.end),end:(0,R.df)(Je.end,Ti.start,Ti.end)}}var se=D(14360),ie=D(24292),ee=D(17669),re=D(29263),ne=D(3362),_e=D(49104),be=D(80829),oe=D(98041),me=D(24159),we=D(55424),N=D(44602),G=D(12984),q="dxNumberBox",ye=(0,_e.b4)(me.A.up,q),xe=(0,_e.b4)(me.A.cancel,q);const Ee=oe.A.inherit({_getDefaultOptions:function(){return(0,j.X)(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var Je="dx-numberbox-spin-"+this.option("direction");this.$element().addClass("dx-numberbox-spin-button").addClass(Je),this._spinIcon=(0,ie.A)("<div>").addClass(Je+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var Je=(0,_e.b4)(me.A.down,this.NAME),Ht=this.$element();d.A.off(Ht,Je),d.A.on(Ht,Je,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(Je){Je.preventDefault(),this._clearTimer(),d.A.on(this.$element(),N.A.name,function(){this._feedBackDeferred=new G.cY,(0,we.s2)(this._feedBackDeferred),this._spinChangeHandler({event:Je}),this._holdTimer=setInterval(this._spinChangeHandler,100,{event:Je})}.bind(this));var Ht=ee.A.getDocument();d.A.on(Ht,ye,this._clearTimer.bind(this)),d.A.on(Ht,xe,this._clearTimer.bind(this)),this._spinChangeHandler({event:Je})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){d.A.off(this.$element(),N.A.name);var Je=ee.A.getDocument();d.A.off(Je,ye),d.A.off(Je,xe),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(Je){switch(Je.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(Je)}}});class de extends be.A{_attachEvents(Ht,gi){var{editor:Ti}=this,ni=(0,_e.b4)(me.A.down,Ti.NAME),wi=gi.children(),ui=Ti._createAction(cn=>Ti._spinButtonsPointerDownHandler(cn));d.A.off(gi,ni),d.A.on(gi,ni,cn=>ui({event:cn})),Ee.getInstance(wi.eq(0)).option("onChange",cn=>Ti._spinUpChangeHandler(cn)),Ee.getInstance(wi.eq(1)).option("onChange",cn=>Ti._spinDownChangeHandler(cn))}_create(){var{editor:Ht}=this,gi=(0,ie.A)("<div>").addClass("dx-numberbox-spin-container"),Ti=(0,ie.A)("<div>").appendTo(gi),ni=(0,ie.A)("<div>").appendTo(gi),wi=this._getOptions();return this._addToContainer(gi),Ht._createComponent(Ti,Ee,(0,j.X)({direction:"up"},wi)),Ht._createComponent(ni,Ee,(0,j.X)({direction:"down"},wi)),this._legacyRender(Ht.$element(),this._isTouchFriendly(),wi.visible),{instance:gi,$element:gi}}_getOptions(){var{editor:Ht}=this;return{visible:this._isVisible(),disabled:Ht.option("disabled")}}_isVisible(){var{editor:Ht}=this;return super._isVisible()&&Ht.option("showSpinButtons")}_isTouchFriendly(){var{editor:Ht}=this;return Ht.option("showSpinButtons")&&Ht.option("useLargeSpinButtons")}_legacyRender(Ht,gi,Ti){Ht.toggleClass("dx-numberbox-spin-touch-friendly",gi),Ht.toggleClass("dx-numberbox-spin",Ti)}update(){if(super.update()){var{editor:gi,instance:Ti}=this,ni=gi.$element(),wi=this._isVisible(),ui=this._isTouchFriendly(),cn=Ti.children(),Ui=Ee.getInstance(cn.eq(0)),Xi=Ee.getInstance(cn.eq(1)),Qi=this._getOptions();Ui.option(Qi),Xi.option(Qi),this._legacyRender(ni,ui,wi)}}}var pe=D(20736),Be=Math,tt=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],Xt=ne.A.inherit({_supportedKeys:function(){return(0,j.X)(this.callBase(),{upArrow:function(Je){(0,_e.By)(Je)||(Je.preventDefault(),Je.stopPropagation(),this._spinUpChangeHandler(Je))},downArrow:function(Je){(0,_e.By)(Je)||(Je.preventDefault(),Je.stopPropagation(),this._spinDownChangeHandler(Je))},enter:function(){}})},_getDefaultOptions:function(){return(0,j.X)(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:pe.A.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_useTemplates:function(){return!1},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:de}])},_isSupportInputMode:function(){var Je=parseFloat(re.A.version);return re.A.chrome&&Je>=66||re.A.safari&&Je>=12},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return E.A.real().generic&&!E.A.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"desktop"!==E.A.real().deviceType&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass("dx-numberbox"),this.callBase()},_getDefaultAttributes:function(){var Je=this.callBase();return Je.inputmode="decimal",Je},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=(0,ie.A)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(Je){this._getSubmitElement().val((0,_.EG)(Je))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(Je){this.callBase(Je);var Ht=(0,_e.Pg)(Je);if(!/[\d.,eE\-+]/.test(Ht)){var Ti=(0,_e.YD)(Je);return(0,_e.By)(Je)||Ti&&tt.includes(Ti)?void 0:(Je.preventDefault(),!1)}this._keyPressed=!0},_onMouseWheel:function(Je){this._spinValueChange(Je.delta>0?1:-1,Je)},_renderValue:function(){var Je=this._input().val(),Ht=this.option("value");(!Je.length||Number(Je)!==Ht)&&(this._forceValueRender(),this._toggleEmptinessEventHandler());var gi=(0,o.O9)(Ht)?null:pe.A.format("dxNumberBox-noDataText");return this.setAria({valuenow:(0,_.YD)(Ht,""),valuetext:gi}),this.option("text",this._input().val()),this._updateButtons(),(new G.cY).resolve()},_forceValueRender:function(){var Je=this.option("value"),Ht=Number(Je),gi=isNaN(Ht)?"":this._applyDisplayValueFormatter(Je);this._renderDisplayText(gi)},_applyDisplayValueFormatter:function(Je){return this.option("displayValueFormatter")(Je)},_renderProps:function(){this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:(0,_.YD)(this.option("min"),""),valuemax:(0,_.YD)(this.option("max"),"")})},_spinButtonsPointerDownHandler:function(){var Je=this._input();!this.option("useLargeSpinButtons")&&ee.A.getActiveElement()!==Je[0]&&d.A.trigger(Je,"focus")},_spinUpChangeHandler:function(Je){this.option("readOnly")||this._spinValueChange(1,Je.event||Je)},_spinDownChangeHandler:function(Je){this.option("readOnly")||this._spinValueChange(-1,Je.event||Je)},_spinValueChange:function(Je,Ht){var gi=parseFloat(this.option("step"));if(0!==gi){var Ti=parseFloat(this._normalizeInputValue())||0;Ti=this._correctRounding(Ti,gi*Je);var ni=this.option("min"),wi=this.option("max");(0,o.O9)(ni)&&(Ti=Math.max(ni,Ti)),(0,o.O9)(wi)&&(Ti=Math.min(wi,Ti)),this._saveValueChangeEvent(Ht),this.option("value",Ti)}},_correctRounding:function(Je,Ht){var gi=/[,.](.*)/,Ti=gi.test(Je),ni=gi.test(Ht);if(Ti||ni){var wi=Ti?gi.exec(Je)[0].length:0,ui=ni?gi.exec(Ht)[0].length:0,cn=Be.max(wi,ui);return this._round(Je+Ht,cn)}return Je+Ht},_round:function(Je,Ht){Ht=Ht||0;var gi=Math.pow(10,Ht);return Je*=gi,Math.round(Je)/gi},_renderValueChangeEvent:function(){this.callBase();var Je=(0,_e.b4)("focusout","NumberBoxForceValueChange");d.A.off(this.element(),Je),d.A.on(this.element(),Je,this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var Je=this._input(),Ht=this._applyDisplayValueFormatter(this.option("value"));Je.val(null),Je.val(Ht)}},_valueChangeEventHandler:function(Je){var Ht=this._input(),gi=this._normalizeText(),Ti=this._parseValue(gi),ni="."!==gi&&"-"!==gi;!this._isValueValid()||this._validateValue(Ti)?(ni&&this.callBase(Je,isNaN(Ti)?null:Ti),this._applyValueBoundaries(gi,Ti),this.validationRequest.fire({value:Ti,editor:this})):Ht.val(this._applyDisplayValueFormatter(Ti))},_applyValueBoundaries:function(Je,Ht){var gi=this._isValueIncomplete(Je),Ti=this._isValueInRange(Je);!gi&&!Ti&&null!==Ht&&Number(Je)!==Ht&&this._input().val(this._applyDisplayValueFormatter(Ht))},_replaceCommaWithPoint:function(Je){return Je.replace(",",".")},_inputIsInvalid:function(){var Je="number"===this.option("mode"),Ht=this._input().get(0).validity;return Je&&Ht&&Ht.badInput},_renderDisplayText:function(Je){this._inputIsInvalid()||this.callBase(Je)},_isValueIncomplete:function(Je){return/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i.test(Je)},_isValueInRange:function(Je){return(0,R.r4)(Je,this.option("min"),this.option("max"))},_isNumber:function(Je){return null!==this._parseValue(Je)},_validateValue:function(Je){var Ht=this._normalizeText(),gi=this._isValueValid(),Ti=!0,ni=this._isNumber(Ht);return isNaN(Number(Je))&&(Ti=!1),!Je&&gi?Ti=!0:!ni&&!gi&&(Ti=!1),this.option({isValid:Ti,validationError:Ti?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),Ti},_normalizeInputValue:function(){return this._parseValue(this._normalizeText())},_normalizeText:function(){var Je=this._input().val().trim();return this._replaceCommaWithPoint(Je)},_parseValue:function(Je){var Ht=parseFloat(Je);return isNaN(Ht)?null:(0,R.df)(Ht,this.option("min"),this.option("max"))},_clearValue:function(){this._inputIsInvalid()&&(this._input().val(""),this._validateValue()),this.callBase()},clear:function(){null===this.option("value")?(this.option("text",""),this._input().length&&this._renderValue()):this.option("value",null)},_optionChanged:function(Je){switch(Je.name){case"value":this._validateValue(Je.value),this._setSubmitValue(Je.value),this.callBase(Je),this._resumeValueChangeAction();break;case"step":this._renderProps();break;case"min":case"max":this._renderProps(),this.option("value",this._parseValue(this.option("value")));break;case"showSpinButtons":case"useLargeSpinButtons":this._updateButtons(["spins"]);break;case"invalidValueMessage":break;default:this.callBase(Je)}}}),Qe="dxNumberFormatter",Mt="minus";const li=Xt.inherit({_getDefaultOptions:function(){return(0,j.X)(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(Je){return"del"===Je},_supportedKeys:function(){return this._useMaskBehavior()?(0,j.X)(this.callBase(),{minus:this._revertSign.bind(this),del:this._removeHandler.bind(this),backspace:this._removeHandler.bind(this),leftArrow:this._arrowHandler.bind(this,-1),rightArrow:this._arrowHandler.bind(this,1),home:this._moveCaretToBoundaryEventHandler.bind(this,1),enter:this._updateFormattedValue.bind(this),end:this._moveCaretToBoundaryEventHandler.bind(this,-1)}):this.callBase()},_getTextSeparatorIndex:function(Je){var Ht=m.A.getDecimalSeparator(),gi=v(this.option("format")).occurrence;return h(Je,Ht,gi)},_focusInHandler:function(Je){this._preventNestedFocusEvent(Je)||(this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0;var Ht=this._caret();if(Ht.start===Ht.end&&this._useMaskBehavior()){var gi=this._getInputVal(),Ti=this._getTextSeparatorIndex(gi);Ti>=0?this._caret({start:Ti,end:Ti}):this._moveCaretToBoundaryEventHandler(-1,Je)}}.bind(this),0)),this.callBase(Je)},_focusOutHandler:function(Je){var Ht=!this._preventNestedFocusEvent(Je);Ht&&(this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue()),this.callBase(Je),Ht&&(this._focusOutOccurs=!1)},_hasValueBeenChanged(Je){var Ht=this._getFormatPattern(),gi=this.option("value");return(this._format(gi,Ht)||"")!==Je},_updateFormattedValue:function(){var Je=this._getInputVal();this._hasValueBeenChanged(Je)&&(this._updateParsedValue(),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&d.A.trigger(this._input(),"change"))},_arrowHandler:function(Je,Ht){if(this._useMaskBehavior()){var gi=this._getInputVal(),Ti=this._getFormatPattern(),ni=x(this._caret(),Je);(function(Je,Ht,gi){var Ti=Y(Je=x(Je,0),Ht,gi);return Je.start>=Ti.start&&Je.end<=Ti.end})(ni,gi,Ti)||(ni=1===Je?ni.end:ni.start,Ht.preventDefault(),this._caret(Y(ni,gi,Ti)))}},_moveCaretToBoundary:function(Je){var Ht=O(this._getInputVal(),this._getFormatPattern()),gi=x(1===Je?Ht.start:Ht.end,0);this._caret(gi)},_moveCaretToBoundaryEventHandler:function(Je,Ht){!this._useMaskBehavior()||Ht&&Ht.shiftKey||(this._moveCaretToBoundary(Je),Ht&&Ht.preventDefault())},_shouldMoveCaret:function(Je,Ht){var gi=m.A.getDecimalSeparator(),Ti=Je.charAt(Ht.end)===gi;return(this._lastKey===gi||"."===this._lastKey||","===this._lastKey)&&Ti},_getInputVal:function(){return m.A.convertDigits(this._input().val(),!0)},_keyboardHandler:function(Je){if(this.clearCaretTimeout(),this._lastKey=m.A.convertDigits((0,_e.Pg)(Je),!0),this._lastKeyName=(0,_e.YD)(Je),!this._shouldHandleKey(Je.originalEvent))return this.callBase(Je);var Ti,Ht=this._getInputVal(),gi=this._caret();Ti=this._lastKeyName===Mt?"":110===Je.which?m.A.getDecimalSeparator():this._lastKey;var ni=this._tryParse(Ht,gi,Ti);return this._shouldMoveCaret(Ht,gi)&&(this._moveCaret(1),Je.originalEvent.preventDefault()),void 0===ni?this._lastKeyName!==Mt&&Je.originalEvent.preventDefault():this._parsedValue=ni,this.callBase(Je)},_keyPressHandler:function(Je){this._useMaskBehavior()||this.callBase(Je)},_removeHandler:function(Je){var Ht=this._caret(),gi=this._getInputVal(),Ti=Ht.start,ni=Ht.end;this._lastKey=(0,_e.Pg)(Je),this._lastKeyName=(0,_e.YD)(Je);var wi=this._isDeleteKey(this._lastKeyName),ui=!wi;if(Ti===ni){if(!(ui&&Ti>0||wi&&Ti<gi.length))return void Je.preventDefault();wi&&ni++,ui&&Ti--}var Xi=gi.slice(Ti,ni);if(this._isStub(Xi))this._moveCaret(wi?1:-1),(this._parsedValue<0||1/this._parsedValue==-1/0)&&(this._revertSign(Je),this._setTextByParsedValue(),this.option("valueChangeEvent").split(" ").includes("input")&&d.A.trigger(this._input(),"input")),Je.preventDefault();else{var Ut=m.A.getDecimalSeparator();if(Xi!==Ut){if(ni-Ti<gi.length&&this._replaceSelectedText(gi,{start:Ti,end:ni},"").search(/[0-9]/)<0&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue==-1/0?-0:0);var st=this._tryParse(gi,{start:Ti,end:ni},"");void 0===st?Je.preventDefault():this._parsedValue=st}else{var It=gi.indexOf(Ut);this._isNonStubAfter(It+1)&&(this._moveCaret(wi?1:-1),Je.preventDefault())}}},_isPercentFormat:function(){return-1!==this._getFormatPattern().replace(/'[^']+'/g,"").indexOf("%")},_parse:function(Je,Ht){var gi=this.option("format"),Ti=(0,o.Tn)(gi.parser),ni=Ti?gi.parser:m.A.parse,wi=0;if(!Ti){var ui=v(Ht).index,cn=this._getTextSeparatorIndex(Je),Ui=-1!==ui?ui:Ht.length,Xi=-1!==cn?cn:Je.length;Xi>Ui&&-1===Ht.indexOf("#")&&(wi=Xi-Ui)}return ni(Je=Je.substr(wi),Ht)},_format:function(Je,Ht){var gi=this.option("format"),Ti=gi?.formatter||gi,ni=(0,o.Tn)(Ti)?Ti:m.A.format;return null===Je?"":ni(Je,Ht)},_getFormatPattern:function(){return this._currentFormat||this._updateFormat(),this._currentFormat},_updateFormat:function(){var Je=this.option("format"),Ht=(0,o.Tn)(Je?.parser),gi=(0,o.Kg)(Je)&&(Je.indexOf("0")>=0||Je.indexOf("#")>=0);this._currentFormat=Ht||gi||"exponential"===Je||"exponential"===Je?.type?Je:(0,se.g)(wi=>{var ui=this._format(wi,Je);return m.A.convertDigits(ui,!0)})},_getFormatForSign:function(Je){var Ht=this._getFormatPattern();if((0,o.Kg)(Ht)){var gi=Ht.split(";"),Ti=m.A.getSign(Je,Ht);return gi[1]=gi[1]||"-"+gi[0],Ti<0?gi[1]:gi[0]}return m.A.getSign(Je)<0?"-":""},_removeStubs:function(Je,Ht){var gi=this._getFormatForSign(Je),Ti=m.A.getThousandsSeparator(),ni=this._getStubs(gi),wi=Je;if(ni.length){var ui=ni[0],cn=new RegExp("("+(0,_.Nt)(ni[1]||"")+")$","g"),Ui=new RegExp("[-"+(0,_.Nt)(Ht?"":Ti)+"]","g");wi=wi.replace(ui,"").replace(cn,"").replace(Ui,"")}return wi},_getStubs:function(Je){var Ht=/[^']([#0.,]+)/g.exec(Je),gi=Ht&&Ht[0].trim();return Je.split(gi).map(function(Ti){return Ti.replace(/'/g,"")})},_truncateToPrecision:function(Je,Ht){if((0,o.O9)(Je)){var gi=Je.toString(),Ti=gi.indexOf(".");if(gi&&Ti>-1){var ni=parseFloat(gi.substr(0,Ti+Ht+1));return isNaN(ni)?Je:ni}}return Je},_tryParse:function(Je,Ht,gi){var Ti=Ht.start!==Ht.end,ni=Ti&&0===Ht.start&&Ht.end===Je.length,wi=m.A.getDecimalSeparator();if(ni&&gi===wi)return 0;var ui=this._replaceSelectedText(Je,Ht,gi),cn=this._getFormatPattern(),Ui=this._getParsedValue(ui,cn),Xi=!cn.parser&&this._getPrecisionLimits(ui).max,Ut=gi===wi&&0===Xi,It=!Ti&&!(Ui!==this._parsedValue)&&"-"!==gi&&this._isStub(gi);return Ut||It||(""===this._removeStubs(ui)&&(Ui=Math.abs(0*this._parsedValue)),isNaN(Ui))?void 0:(Ui=Xi?this._truncateToPrecision(null===Ui?this._parsedValue:Ui,Xi):Ui,!cn.parser&&this._isPercentFormat()?function(Je,Ht){return Je&&(0,R.Ai)(Je/100,Ht)}(Ui,Xi):Ui)},_getParsedValue:function(Je,Ht){var gi=m.A.getSign(Je,Ht?.formatter||Ht),Ti=this._removeStubs(Je,!0),ni=this._parse(Ti,Ht),wi=ni<0?-1:1;return(0,o.kf)(ni)&&gi!==wi?gi*ni:ni},_isValueIncomplete:function(Je){if(!this._useMaskBehavior())return this.callBase(Je);var Ht=this._caret(),gi=m.A.getDecimalSeparator(),Ti=this._getTextSeparatorIndex(Je),ni=Ti>=0&&Ti<Ht.start,wi=this._removeStubs(Je,!0).split(gi);if(!ni||2!==wi.length)return!1;var ui=wi[1].length,Ui=!!this._getFormatPattern().parser,Xi=!Ui&&this._getPrecisionLimits(this._getFormatPattern(),Je),Qi=!!Ui||(0,R.r4)(ui,Xi.min,Xi.max),Ut="0"===wi[1].charAt(ui-1);return Qi&&(Ut||!ui)},_isValueInRange:function(Je){var Ht=(0,_.YD)(this.option("min"),-1/0),gi=(0,_.YD)(this.option("max"),1/0);return(0,R.r4)(Je,Ht,gi)},_setInputText:function(Je){var Ht=m.A.convertDigits(Je,!0),gi=function(Je,Ht,gi,Ti){gi=x(gi,0);var ni=m.A.getDecimalSeparator(),wi=function C(Je){return 1===Je.length&&!!Je.match(/^[,.][0-9]*$/g)}(Je),ui=v(Ti).occurrence,cn=wi?0:h(Je,ni,ui),Ui=h(Ht,ni,ui),Xi=s(Je,cn),Qi=s(Ht,Ui);if(-1!==cn&&gi.start>cn){var yt=w(gi.start-cn-1,Xi[1]);return Y(Qi[1]?Ui+1+k(yt,Qi[1])+1:Ht.length,Ht,Ti)}var st=function(Je){return Je.replace(/[^0-9e]+$/,"")}(Qi[0]),Vt=w(Xi[0].length-gi.start,f(Xi[0])),ci=k(Vt,f(st));return Y(st.length-(ci+1),Ht,Ti)}(this._getInputVal(),Ht,this._caret(),this._getFormatPattern());this._input().val(Je),this._toggleEmptinessEventHandler(),this._formattedValue=Je,this._focusOutOccurs||this._caret(gi)},_useMaskBehavior:function(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType:function(){var Je="number"===this.option("mode"),Ht="desktop"===E.A.real().deviceType;this._useMaskBehavior()&&Je?this._setInputType(Ht||this._isSupportInputMode()?"text":"tel"):this.callBase()},_isChar:function(Je){return(0,o.Kg)(Je)&&1===Je.length},_moveCaret:function(Je){if(Je){var gi=Y(x(this._caret(),Je),this._getInputVal(),this._getFormatPattern());this._caret(gi)}},_shouldHandleKey:function(Je){var Ht=(0,_e.YD)(Je),gi=(0,_e.By)(Je)||Je.altKey||Je.shiftKey||!this._isChar(Ht),Ti=Ht===Mt;return this._useMaskBehavior()&&!gi&&!Ti},_renderInput:function(){this.callBase(),this._renderFormatter()},_renderFormatter:function(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents:function(){d.A.off(this._input(),"."+Qe)},_isInputFromPaste:function(Je){var Ht=Je.originalEvent&&Je.originalEvent.inputType;return(0,o.O9)(Ht)?"insertFromPaste"===Ht:this._isValuePasted},_attachFormatterEvents:function(){var Je=this._input();d.A.on(Je,(0,_e.b4)("input",Qe),function(Ht){this._formatValue(Ht),this._isValuePasted=!1}.bind(this)),d.A.on(Je,(0,_e.b4)("dxclick",Qe),function(){this._caretTimeout||(this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0,this._caret(Y(this._caret(),this._getInputVal(),this._getFormatPattern()))}.bind(this),0))}.bind(this)),d.A.on(Je,L.U,function(){this.clearCaretTimeout()}.bind(this))},clearCaretTimeout:function(){clearTimeout(this._caretTimeout),this._caretTimeout=void 0},_forceRefreshInputValue:function(){if(!this._useMaskBehavior())return this.callBase()},_isNonStubAfter:function(Je){var Ht=this._getInputVal().slice(Je);return Ht&&!this._isStub(Ht,!0)},_isStub:function(Je,Ht){var gi=(0,_.Nt)(m.A.getDecimalSeparator());return new RegExp("^[^0-9"+gi+"]+$","g").test(Je)&&(Ht||this._isChar(Je))},_parseValue:function(Je){return this._useMaskBehavior()?this._parsedValue:this.callBase(Je)},_getPrecisionLimits:function(Je){var Ht=this._getFormatForSign(Je),gi=v(Ht).index,Ti=(s(Ht,gi)[1]||"").replace(/[^#0]/g,"");return{min:Ti.replace(/^(0*)#*/,"$1").length,max:Ti.length}},_revertSign:function(Je){if(this._useMaskBehavior()){var Ht=this._caret();if(Ht.start!==Ht.end){if((0,_e.YD)(Je)===Mt)return void this._applyRevertedSign(Je,Ht,!0);this._caret(Y(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(Je,Ht)}},_applyRevertedSign:function(Je,Ht,gi){var Ti=-1*(0,_.YD)(this._parsedValue,null);if((this._isValueInRange(Ti)||0===Ti)&&(this._parsedValue=Ti,gi)){var ni=this._getFormatPattern(),wi=this._getInputVal();this._setTextByParsedValue(),Je.preventDefault();var ui=this._getInputVal(),cn=function(Je,Ht,gi){var Ti=O(Je,gi);return O(Ht,gi).start-Ti.start}(wi,ui,ni),Ui=Y(Ht=x(Ht,cn),ui,ni);this._caret(Ui)}},_removeMinusFromText:function(Je,Ht){return this._lastKeyName===Mt&&"-"===Je.charAt(Ht.start-1)?this._replaceSelectedText(Je,{start:Ht.start-1,end:Ht.start},""):Je},_setTextByParsedValue:function(){var Je=this._getFormatPattern(),Ht=this._parseValue(),gi=this._format(Ht,Je)||"";this._setInputText(gi)},_formatValue:function(Je){var Ht=this._getInputVal(),gi=this._caret(),Ti=this._removeMinusFromText(Ht,gi),ni=Ti!==Ht;if(Ht=Ti,!this._isInputFromPaste(Je)&&this._isValueIncomplete(Ti))return this._formattedValue=Ht,void(ni&&this._setTextByParsedValue());if(m.A.convertDigits(this._formattedValue,!0)!==Ht){var ui=this._tryParse(Ht,gi,"");(0,o.O9)(ui)&&(this._parsedValue=ui)}this._setTextByParsedValue()},_renderDisplayText:function(){this._useMaskBehavior()?this._toggleEmptinessEventHandler():this.callBase.apply(this,arguments)},_renderValue:function(){return this._useMaskBehavior()&&(this._parsedValue=this.option("value"),this._setTextByParsedValue()),this.callBase()},_updateParsedValue:function(){var Je=this._getInputVal();this._parsedValue=this._tryParse(Je,this._caret())},_adjustParsedValue:function(){if(this._useMaskBehavior()){var Ht=this._removeStubs(this._getInputVal())?this._parseValue():null;if(!(0,o.kf)(Ht))return void(this._parsedValue=Ht);this._parsedValue=(0,R.df)(Ht,this.option("min"),this.option("max"))}},_valueChangeEventHandler:function(Je){if(!this._useMaskBehavior())return this.callBase(Je);var Ht=this._caret();this._saveValueChangeEvent(Je),this._lastKey=null,this._lastKeyName=null,this._updateParsedValue(),this._adjustParsedValue(),this.option("value",this._parsedValue),Ht&&this._caret(Ht)},_optionChanged:function(Je){switch(Je.name){case"format":case"useMaskBehavior":this._renderInputType(),this._updateFormat(),this._renderFormatter(),this._renderValue(),this._refreshValueChangeEvent(),this._refreshEvents();break;case"min":case"max":this._adjustParsedValue(),this.callBase(Je);break;default:this.callBase(Je)}},_clearCache:function(){delete this._formattedValue,delete this._lastKey,delete this._lastKeyName,delete this._parsedValue,delete this._focusOutOccurs,clearTimeout(this._caretTimeout),delete this._caretTimeout},_clean:function(){this._clearCache(),this.callBase()}});(0,r.A)("dxNumberBox",li);const xi=li},17420:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>h,g:()=>_});var r=D(24292),d=D(72463),L=D(87951),j=D(4441),o=D(12824),E=D(14435),R=D(69049),m=(0,E.zk)(),_={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},v={h:0,v:0};class h{constructor(b){var{position:O,container:w,visualContainer:f,$root:k,$content:I,$wrapper:x,onPositioned:g,onVisualPositionChanged:C,restorePosition:F,_fixWrapperPosition:Y,_skipContentPositioning:Q}=b;this._props={position:O,container:w,visualContainer:f,restorePosition:F,onPositioned:g,onVisualPositionChanged:C,_fixWrapperPosition:Y,_skipContentPositioning:Q},this._$root=k,this._$content=I,this._$wrapper=x,this._$markupContainer=void 0,this._$visualContainer=void 0,this._shouldRenderContentInitialPosition=!0,this._visualPosition=void 0,this._initialPosition=void 0,this._previousVisualPosition=void 0,this.updateContainer(w),this.updatePosition(O),this.updateVisualContainer(f)}get $container(){return this.updateContainer(),this._$markupContainer}get $visualContainer(){return this._$visualContainer}get position(){return this._position}set fixWrapperPosition(b){this._props._fixWrapperPosition=b,this.styleWrapperPosition()}set restorePosition(b){this._props.restorePosition=b}restorePositionOnNextRender(b){this._shouldRenderContentInitialPosition=b||!this._visualPosition}openingHandled(){this.restorePositionOnNextRender(this._props.restorePosition)}updatePosition(b){this._props.position=b,this._position=this._normalizePosition(b),this.updateVisualContainer()}updateContainer(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.container;this._props.container=b,this._$markupContainer=b?(0,r.A)(b):R.A.getSwatchContainer(this._$root),this.updateVisualContainer(this._props.visualContainer)}updateVisualContainer(){this._props.visualContainer=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.visualContainer,this._$visualContainer=this._getVisualContainer()}detectVisualPositionChange(b){this._updateVisualPositionValue(),this._raisePositionedEvents(b)}positionContent(){this._shouldRenderContentInitialPosition?this._renderContentInitialPosition():((0,o.Cy)(this._$content,this._visualPosition),this.detectVisualPositionChange())}positionWrapper(){this._$visualContainer&&j.A.setup(this._$wrapper,{my:"top left",at:"top left",of:this._$visualContainer})}styleWrapperPosition(){var b=(0,d.l6)(this.$visualContainer.get(0))||this._props._fixWrapperPosition;this._$wrapper.css("position",b?"fixed":"absolute")}_updateVisualPositionValue(){this._previousVisualPosition=this._visualPosition,this._visualPosition=(0,o.x5)(this._$content)}_renderContentInitialPosition(){this._renderBoundaryOffset(),(0,o.fw)(this._$content);var b=this._$wrapper.css("overflow");if(this._$wrapper.css("overflow","hidden"),!this._props._skipContentPositioning){var O=j.A.setup(this._$content,this._position);this._initialPosition=O}this._$wrapper.css("overflow",b),this.detectVisualPositionChange()}_raisePositionedEvents(b){var O=this._previousVisualPosition,w=this._visualPosition;(O?.top!==w.top||O?.left!==w.left)&&this._props.onVisualPositionChanged({previousPosition:O,position:w,event:b}),this._props.onPositioned({position:this._initialPosition})}_renderBoundaryOffset(){var b,O=null!==(b=this._position)&&void 0!==b?b:{boundaryOffset:v};this._$content.css("margin","".concat(O.v,"px ").concat(O.h,"px"))}_getVisualContainer(){var b,O,w=this._props.container,f=this._props.visualContainer,k=(0,d.xH)(null===(b=this._props.position)||void 0===b?void 0:b.of)?this._props.position.of.target:null===(O=this._props.position)||void 0===O?void 0:O.of;return(0,r.A)(f||w||k||m)}_normalizePosition(b){var O={boundaryOffset:v};return(0,d.O9)(b)?(0,L.X)(!0,{},O,this._positionToObject(b)):O}_positionToObject(b){return(0,d.Kg)(b)?(0,L.X)({},_[b]):b}}},46022:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>ce});var r=D(80186),d=D(3930),L=D(64905),j=D(23862),o=D(17669),E=D(60181),R=D(24292),m=D(67465),_=D(5042),v=D(12984),h=D(7963),s=D(87951),b=D(12101),O=D(72535),w=D(72463),f=D(3558),k=D(14435),I=D(87550),x=D(87310),g=D(91269),C=D(99393),F=D(24159),Y=D(8257),Q=D(49104),se=D(65822),ie=function(){var de=[];return{add:function(pe){de.includes(pe)||de.push(pe)},remove:function(pe){var Be=de.indexOf(pe);-1!==Be&&de.splice(Be,1)},fire:function(){var pe=de.pop(),Be=!!pe;return Be&&pe(),Be},hasCallback:function(){return de.length>0}}}(),ee=D(31063),re=D(98041),ne=D(29263),_e=D(97662),be=D(17420),oe=O.A.add,me=(0,k.zk)(),we=f.WV,X="dx-inner-overlay",q="dx-state-invisible",ge=[],Ee="dx-prevent-safari-scrolling";oe(()=>{g.A.subscribeGlobal(o.A.getDocument(),F.A.down,de=>{for(var pe=ge.length-1;pe>=0;pe--)if(!ge[pe]._proxiedDocumentDownHandler(de))return})});var Ie=re.A.inherit({_supportedKeys:function(){return(0,s.X)(this.callBase(),{escape:function(){this.hide()}})},_getDefaultOptions:function(){return(0,s.X)(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",wrapperAttr:{},position:(0,s.X)({},be.g.center),width:"80vw",minWidth:null,maxWidth:null,height:"80vh",minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,from:{opacity:1,scale:1},to:{opacity:0,scale:.55}}},closeOnOutsideClick:!1,hideOnOutsideClick:!1,copyRootClassesToWrapper:!1,_ignoreCopyRootClassesToWrapperDeprecation:!1,_ignoreElementAttrDeprecation:!1,_ignorePreventScrollEventsDeprecation:!1,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",innerOverlay:!1,restorePosition:!0,container:void 0,visualContainer:void 0,hideTopOverlayHandler:()=>{this.hide()},hideOnParentScroll:!1,preventScrollEvents:!0,onPositioned:null,propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0,_hideOnParentScrollTarget:void 0,_fixWrapperPosition:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!(0,k.Vd)()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),(0,s.X)(this._optionsByReference,{animation:!0})},$wrapper:function(){return this._$wrapper},_eventBindingTarget:function(){return this._$content},_setDeprecatedOptions(){this.callBase(),(0,s.X)(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.1",alias:"hideOnOutsideClick"}})},ctor:function(de,pe){this.callBase(de,pe),pe&&(pe.copyRootClassesToWrapper&&!pe._ignoreCopyRootClassesToWrapperDeprecation&&this._logDeprecatedOptionWarning("copyRootClassesToWrapper",{since:"21.2",message:'Use the "wrapperAttr" option instead'}),pe.elementAttr&&!pe._ignoreElementAttrDeprecation&&this._logDeprecatedOptionWarning("elementAttr",{since:"21.2",message:'Use the "wrapperAttr" option instead'}),"preventScrollEvents"in pe&&!pe._ignorePreventScrollEventsDeprecation&&this._logDeprecatedPreventScrollEventsInfo())},_logDeprecatedPreventScrollEventsInfo(){this._logDeprecatedOptionWarning("preventScrollEvents",{since:"23.1",message:"If you enable this option, end-users may experience scrolling issues."})},_init:function(){this.callBase(),this._initActions(),this._initHideOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._customWrapperClass=null,this._$wrapper=(0,R.A)("<div>").addClass("dx-overlay-wrapper"),this._$content=(0,R.A)("<div>").addClass("dx-overlay-content"),this._initInnerOverlayClass();var de=this.$element();this.option("copyRootClassesToWrapper")&&this._$wrapper.addClass(de.attr("class")),de.addClass("dx-overlay"),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._toggleViewPortSubscription(!0),this._initHideTopOverlayHandler(this.option("hideTopOverlayHandler")),this._parentsScrollSubscriptionInfo={handler:pe=>{this._hideOnParentsScrollHandler(pe)}},this.warnPositionAsFunction()},warnPositionAsFunction(){(0,w.Tn)(this.option("position"))&&I.A.log("W0018")},_initInnerOverlayClass:function(){this._$content.toggleClass(X,this.option("innerOverlay"))},_initHideTopOverlayHandler:function(de){this._hideTopOverlayHandler=de},_getActionsList:function(){return["onShowing","onShown","onHiding","onHidden","onPositioned","onVisualPositionChanged"]},_initActions:function(){this._actions={};var de=this._getActionsList();(0,b.__)(de,(pe,Be)=>{this._actions[Be]=this._createActionByOption(Be,{excludeValidators:["disabled","readOnly"]})||_.lQ})},_initHideOnOutsideClickHandler:function(){var de=this;this._proxiedDocumentDownHandler=function(){return de._documentDownHandler(...arguments)}},_initMarkup(){this.callBase(),this._renderWrapperAttributes(),this._initPositionController()},_documentDownHandler:function(de){this._showAnimationProcessing&&this._stopAnimation();var pe=(0,R.A)(me.document).is(de.target)||(0,h.gR)(me.document,de.target),Be=(0,R.A)(de.target).closest(".".concat(X)).length;return pe&&!Be&&!(this._$content.is(de.target)||(0,h.gR)(this._$content.get(0),de.target))&&this._shouldHideOnOutsideClick(de)&&this._outsideClickHandler(de),this.option("propagateOutsideClick")},_shouldHideOnOutsideClick:function(de){var{hideOnOutsideClick:pe}=this.option();return(0,w.Tn)(pe)?pe(de):pe},_outsideClickHandler(de){this.option("shading")&&de.preventDefault(),this.hide()},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new m.A}),this.callBase()},_isTopOverlay:function(){for(var de=this._overlayStack(),pe=de.length-1;pe>=0;pe--){var Be=de[pe]._findTabbableBounds();if(Be.first||Be.last)return de[pe]===this}return!1},_overlayStack:function(){return ge},_zIndexInitValue:function(){return Ie.baseZIndex()},_toggleViewPortSubscription:function(de){var pe=this;we.remove(this._viewPortChangeHandle),de&&(this._viewPortChangeHandle=function(){pe._viewPortChangeHandler(...arguments)},we.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._positionController.updateContainer(this.option("container")),this._refresh()},_renderWrapperAttributes(){var{wrapperAttr:de}=this.option(),pe=(0,s.X)({},de),Be=pe.class;delete pe.class,this.$wrapper().attr(pe).removeClass(this._customWrapperClass).addClass(Be),this._customWrapperClass=Be},_renderVisibilityAnimate:function(de){return this._stopAnimation(),de?this._show():this._hide()},_getAnimationConfig:function(){return this._getOptionValue("animation",this)},_toggleBodyScroll:_.lQ,_animateShowing:function(){var de,pe,Be,We=this,tt=null!==(de=this._getAnimationConfig())&&void 0!==de?de:{},vt=this._normalizeAnimation(tt.show,"to"),Xt=null!==(pe=vt?.start)&&void 0!==pe?pe:_.lQ,Nt=null!==(Be=vt?.complete)&&void 0!==Be?Be:_.lQ;this._animate(vt,function(){if(!We._isAnimationPaused){We.option("focusStateEnabled")&&g.A.trigger(We._focusTarget(),"focus");for(var Qe=arguments.length,Et=new Array(Qe),Lt=0;Lt<Qe;Lt++)Et[Lt]=arguments[Lt];Nt.call(We,...Et),We._showAnimationProcessing=!1,We._isHidden=!1,We._actions.onShown(),We._toggleSafariScrolling(),We._showingDeferred.resolve()}},function(){if(!We._isAnimationPaused){for(var Qe=arguments.length,Et=new Array(Qe),Lt=0;Lt<Qe;Lt++)Et[Lt]=arguments[Lt];Xt.call(We,...Et),We._showAnimationProcessing=!0}})},_processShowingHidingCancel:function(de,pe,Be){(0,w.yL)(de)?de.then(We=>{We?Be():pe()}).catch(()=>pe()):de?Be():pe()},_show:function(){if(this._showingDeferred=new v.cY,this._parentHidden=this._isParentHidden(),this._showingDeferred.done(()=>{delete this._parentHidden}),this._parentHidden)return this._isHidden=!0,this._showingDeferred.resolve();if(this._currentVisible)return(new v.cY).resolve().promise();if(this._currentVisible=!0,this._isHidingActionCanceled)delete this._isHidingActionCanceled,this._showingDeferred.reject();else{var de=()=>{this._stopAnimation(),this._toggleBodyScroll(this.option("enableBodyScroll")),this._toggleVisibility(!0),this._$content.css("visibility","hidden"),this._$content.toggleClass(q,!1),this._updateZIndexStackPosition(!0),this._positionController.openingHandled(),this._renderContent();var pe={cancel:!1};this._actions.onShowing(pe),this._processShowingHidingCancel(pe.cancel,()=>{this._$content.css("visibility",""),this._renderVisibility(!0),this._animateShowing()},()=>{this._toggleVisibility(!1),this._$content.css("visibility",""),this._$content.toggleClass(q,!0),this._isShowingActionCanceled=!0,this._moveFromContainer(),this._toggleBodyScroll(!0),this.option("visible",!1),this._showingDeferred.resolve()})};this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(de)):de()}return this._showingDeferred.promise()},_normalizeAnimation:function(de,pe){return de&&(de=(0,s.X)({type:"slide",skipElementInitialStyles:!0},de),(0,w.Gv)(de[pe])&&(0,s.X)(de[pe],{position:this._positionController.position})),de},_animateHiding:function(){var de,pe,Be,We=this,tt=null!==(de=this._getAnimationConfig())&&void 0!==de?de:{},vt=this._normalizeAnimation(tt.hide,"from"),Xt=null!==(pe=vt?.start)&&void 0!==pe?pe:_.lQ,Nt=null!==(Be=vt?.complete)&&void 0!==Be?Be:_.lQ;this._animate(vt,function(){var Qe;We._$content.css("pointerEvents",""),We._renderVisibility(!1);for(var Et=arguments.length,Lt=new Array(Et),wt=0;wt<Et;wt++)Lt[wt]=arguments[wt];Nt.call(We,...Lt),We._hideAnimationProcessing=!1,null===(Qe=We._actions)||void 0===Qe||Qe.onHidden(),We._hidingDeferred.resolve()},function(){We._$content.css("pointerEvents","none");for(var Qe=arguments.length,Et=new Array(Qe),Lt=0;Lt<Qe;Lt++)Et[Lt]=arguments[Lt];Xt.call(We,...Et),We._hideAnimationProcessing=!0})},_hide:function(){if(!this._currentVisible)return(new v.cY).resolve().promise();this._currentVisible=!1,this._hidingDeferred=new v.cY;var de={cancel:!1};return this._isShowingActionCanceled?(delete this._isShowingActionCanceled,this._hidingDeferred.reject()):(this._actions.onHiding(de),this._toggleSafariScrolling(),this._toggleBodyScroll(!0),this._processShowingHidingCancel(de.cancel,()=>{this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animateHiding()},()=>{this._isHidingActionCanceled=!0,this._toggleBodyScroll(this.option("enableBodyScroll")),this.option("visible",!0),this._hidingDeferred.resolve()})),this._hidingDeferred.promise()},_forceFocusLost:function(){var de=o.A.getActiveElement();this._$content.find(de).length&&(0,h.GX)()},_animate:function(de,pe,Be){de?d.A.animate(this._$content,(0,s.X)({},de,{start:Be=Be||de.start||_.lQ,complete:pe})):pe()},_stopAnimation:function(){d.A.stop(this._$content,!0)},_renderVisibility:function(de){de&&this._isParentHidden()||(this._currentVisible=de,this._stopAnimation(),de||(0,se.EH)(this._$content),de?(this._checkContainerExists(),this._moveToContainer(),this._renderGeometry(),(0,se.I9)(this._$content),(0,se.ho)(this._$content)):(this._toggleVisibility(de),this._$content.toggleClass(q,!de),this._updateZIndexStackPosition(de),this._moveFromContainer()),this._toggleShading(de),this._toggleSubscriptions(de))},_updateZIndexStackPosition:function(de){var pe=this._overlayStack(),Be=pe.indexOf(this);de?(-1===Be&&(this._zIndex=_e.vt(this._zIndexInitValue()),pe.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==Be&&(pe.splice(Be,1),_e.TF(this._zIndex))},_toggleShading:function(de){this._$wrapper.toggleClass("dx-overlay-shader",de&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(de&&this.option("shading"))},_initTabTerminatorHandler:function(){var de=this;this._proxiedTabTerminatorHandler=function(){de._tabKeyHandler(...arguments)}},_toggleTabTerminator:function(de){var pe=(0,Q.b4)("keydown",this.NAME);de?g.A.on(o.A.getDocument(),pe,this._proxiedTabTerminatorHandler):g.A.off(o.A.getDocument(),pe,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var de=this._$wrapper.find("*"),pe=de.length-1,Be={first:null,last:null},We=0;We<=pe&&(!Be.first&&de.eq(We).is(ee.Kr)&&(Be.first=de.eq(We)),!Be.last&&de.eq(pe-We).is(ee.Kr)&&(Be.last=de.eq(pe-We)),!Be.first||!Be.last);We++);return Be},_tabKeyHandler:function(de){if("tab"===(0,Q.YD)(de)&&this._isTopOverlay()){var pe=this._findTabbableBounds(),Be=pe.first,We=pe.last,tt=!de.shiftKey&&de.target===We.get(0),vt=de.shiftKey&&de.target===Be.get(0),Xt=0===pe.length,Nt=!(0,h.gR)(this._$wrapper.get(0),de.target);if(tt||vt||Xt||Nt){de.preventDefault();var Qe=de.shiftKey?We:Be;g.A.trigger(Qe,"focusin"),g.A.trigger(Qe,"focus")}}},_toggleSubscriptions:function(de){(0,k.Vd)()&&(this._toggleHideTopOverlayCallback(de),this._toggleHideOnParentsScrollSubscription(de))},_toggleHideTopOverlayCallback:function(de){this._hideTopOverlayHandler&&(de?ie.add(this._hideTopOverlayHandler):ie.remove(this._hideTopOverlayHandler))},_toggleHideOnParentsScrollSubscription:function(de){var pe,Be=(0,Q.b4)("scroll",this.NAME),{prevTargets:We,handler:tt}=null!==(pe=this._parentsScrollSubscriptionInfo)&&void 0!==pe?pe:{};g.A.off(We,Be,tt);var vt=this.option("hideOnParentScroll");if(de&&vt){var Xt=this._getHideOnParentScrollTarget().parents();"desktop"===j.A.real().deviceType&&(Xt=Xt.add(me)),g.A.on(Xt,Be,tt),this._parentsScrollSubscriptionInfo.prevTargets=Xt}},_hideOnParentsScrollHandler:function(de){var pe=!1,Be=this.option("hideOnParentScroll");(0,w.Tn)(Be)&&(pe=Be(de)),!pe&&!this._showAnimationProcessing&&this.hide()},_getHideOnParentScrollTarget:function(){var de=(0,R.A)(this.option("_hideOnParentScrollTarget"));return de.length?de:this._$wrapper},_render:function(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent:function(){var de=!this._currentVisible&&this.option("deferRendering");this.option("visible")&&this._isParentHidden()?this._isHidden=!0:this._contentAlreadyRendered||de||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase())},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var de=this.$element().parent();if(de.is(":visible"))return!1;var pe=!1;return de.add(de.parents()).each(function(){if("none"===(0,R.A)(this).css("display"))return pe=!0,!1}),pe||!o.A.getBody().contains(de.get(0))},_renderContentImpl:function(){var de=new v.cY,pe=this.option("contentTemplate"),Be=this._getTemplate(pe),We=this._templateManager.anonymousTemplateName===pe;return Be&&Be.render({container:(0,E.c)(this.$content()),noModel:!0,transclude:We,onRendered:()=>{de.resolve(),this.option("templatesRenderAsynchronously")&&this._dimensionChanged()}}),this._toggleWrapperScrollEventsSubscription(this.option("preventScrollEvents")),de.done(()=>{this.option("visible")&&this._moveToContainer()}),de.promise()},_getPositionControllerConfig(){var{container:de,visualContainer:pe,_fixWrapperPosition:Be,restorePosition:We,_skipContentPositioning:tt}=this.option();return{container:de,visualContainer:pe,$root:this.$element(),$content:this._$content,$wrapper:this._$wrapper,onPositioned:this._actions.onPositioned,onVisualPositionChanged:this._actions.onVisualPositionChanged,restorePosition:We,_fixWrapperPosition:Be,_skipContentPositioning:tt}},_initPositionController(){this._positionController=new be.A(this._getPositionControllerConfig())},_toggleWrapperScrollEventsSubscription:function(de){var pe=(0,Q.b4)(C.Cy,this.NAME);g.A.off(this._$wrapper,pe),de&&g.A.on(this._$wrapper,pe,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(Be){Be||this._toggleGestureCoverImpl(Be)},_clearSelection:_.lQ,isNative:!0},Be=>{var We=Be.originalEvent.originalEvent,{type:tt}=We||{},vt="wheel"===tt,Xt="mousemove"===tt,Nt=vt&&!(0,Q.By)(Be);Be._cancelPreventDefault=!0,We&&!1!==Be.cancelable&&(!Xt&&!vt||Nt)&&Be.preventDefault()})},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._$wrapper.detach()},_checkContainerExists(){var de=this._positionController.$container;void 0!==de&&(de.length>0||x.A.log("W1021",this.NAME))},_moveToContainer:function(){this._$wrapper.appendTo(this._positionController.$container),this._$content.appendTo(this._$wrapper)},_renderGeometry:function(de){var{visible:pe}=this.option();pe&&(0,k.Vd)()&&(this._stopAnimation(),this._renderGeometryImpl())},_renderGeometryImpl:function(){this._positionController.updatePosition(this._getOptionValue("position")),this._renderWrapper(),this._renderDimensions(),this._renderPosition()},_renderPosition(){this._positionController.positionContent()},_isAllWindowCovered:function(){return(0,w.l6)(this._positionController.$visualContainer.get(0))&&this.option("shading")},_toggleSafariScrolling:function(){var de=this.option("visible"),pe=(0,R.A)(o.A.getBody()),Be="ios"===j.A.real().platform&&ne.A.safari,We=this._isAllWindowCovered(),tt=pe.hasClass(Ee);Be&&(!tt||de&&We&&!this._disposed?!tt&&de&&We&&(this._cachedBodyScrollTop=me.pageYOffset,pe.addClass(Ee)):(pe.removeClass(Ee),me.scrollTo(0,this._cachedBodyScrollTop),this._cachedBodyScrollTop=void 0))},_renderWrapper:function(){this._positionController.styleWrapperPosition(),this._renderWrapperDimensions(),this._positionController.positionWrapper()},_renderWrapperDimensions:function(){var de=this._positionController.$visualContainer,pe=o.A.getDocumentElement(),Be=(0,w.l6)(de.get(0)),We=Be?pe.clientWidth:(0,r.Ot)(de),tt=Be?me.innerHeight:(0,r.P$)(de);this._$wrapper.css({width:We,height:tt})},_renderDimensions:function(){var de=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",de),maxWidth:this._getOptionValue("maxWidth",de),minHeight:this._getOptionValue("minHeight",de),maxHeight:this._getOptionValue("maxHeight",de),width:this._getOptionValue("width",de),height:this._getOptionValue("height",de)})},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardListenerId=Y.QJ.on(this._$content,null,de=>this._keyboardHandler(de))},_keyboardHandler:function(de){((0,R.A)(de.originalEvent.target).is(this._$content)||!this.option("ignoreChildEvents"))&&this.callBase(...arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(de){de?this.option("visible")&&this._renderVisibilityAnimate(de):this._renderVisibilityAnimate(de)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){var de=this.option();!this._contentAlreadyRendered&&!de.isRenovated&&this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){d.A.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this._parentsScrollSubscriptionInfo=null,this.callBase(),this._toggleSafariScrolling(),this.option("visible")&&_e.TF(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleRTLDirection:function(de){this._$content.toggleClass("dx-rtl",de)},_optionChanged:function(de){var{value:pe,name:Be}=de;if(this._getActionsList().includes(Be))this._initActions();else switch(Be){case"animation":case"closeOnOutsideClick":case"hideOnOutsideClick":case"propagateOutsideClick":break;case"shading":this._toggleShading(this.option("visible")),this._toggleSafariScrolling();break;case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":this._renderGeometry();break;case"position":this._positionController.updatePosition(this.option("position")),this._positionController.restorePositionOnNextRender(!0),this._renderGeometry(),this._toggleSafariScrolling();break;case"visible":this._renderVisibilityAnimate(pe).done(()=>{var We;return null===(We=this._animateDeferred)||void 0===We?void 0:We.resolveWith(this)}).fail(()=>{var We;return null===(We=this._animateDeferred)||void 0===We?void 0:We.reject()});break;case"container":this._positionController.updateContainer(pe),this._invalidate(),this._toggleSafariScrolling();break;case"visualContainer":this._positionController.updateVisualContainer(pe),this._renderWrapper(),this._toggleSafariScrolling();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"hideTopOverlayHandler":this._toggleHideTopOverlayCallback(!1),this._initHideTopOverlayHandler(pe),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"hideOnParentScroll":case"_hideOnParentScrollTarget":this._toggleHideOnParentsScrollSubscription(this.option("visible"));break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(de);break;case"_fixWrapperPosition":this._positionController.fixWrapperPosition=pe;break;case"wrapperAttr":this._renderWrapperAttributes();break;case"restorePosition":this._positionController.restorePosition=pe;break;case"preventScrollEvents":this._logDeprecatedPreventScrollEventsInfo(),this._toggleWrapperScrollEventsSubscription(pe);break;default:this.callBase(de)}},toggle:function(de){de=void 0===de?!this.option("visible"):de;var pe=new v.cY;if(de===this.option("visible"))return pe.resolveWith(this,[de]).promise();var Be=new v.cY;return this._animateDeferred=Be,this.option("visible",de),Be.promise().done(()=>{delete this._animateDeferred,pe.resolveWith(this,[this.option("visible")])}).fail(()=>{delete this._animateDeferred,pe.reject()}),pe.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return(0,E.c)(this._$content)},repaint:function(){this._contentAlreadyRendered?(this._positionController.restorePositionOnNextRender(!0),this._renderGeometry({forceStopAnimation:!0}),(0,se.ho)(this._$content)):this.callBase()}});Ie.baseZIndex=de=>_e.E3(de),(0,L.A)("dxOverlay",Ie);const ce=Ie},97662:(ei,rt,D)=>{"use strict";D.d(rt,{C0:()=>R,E3:()=>j,TF:()=>E,vt:()=>o});var r=D(5042),d=1500,L=[],j=_=>d=(0,r.YD)(_,d),o=function(){var v=L.length,h=(v?L[v-1]:arguments.length>0&&void 0!==arguments[0]?arguments[0]:d)+1;return L.push(h),h},E=_=>{var v=L.indexOf(_);v>=0&&L.splice(v,1)},R=_=>L.length&&L[L.length-1]===_},64633:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>bi});var r=D(64905),d=D(23862),L=D(60181),j=D(24292),o=D(67465),E=D(29263),R=D(5042),m=D(87951),_=D(48745),v=D(12101),h=D(80186),s=D(50448),b=D(72463),O=D(39011),w=D(14435),f=D(65822),k=D(20736),I=D(12824),x=D(17669),g=D(22209),C=D(91269),F=D(99393),Y=D(49104);const ie=class se{constructor(ai){this.init(ai)}init(ai){var{dragEnabled:kt,handle:mi,draggableElement:Kt,positionController:qi}=ai;this._positionController=qi,this._draggableElement=Kt,this._handle=mi,this._dragEnabled=kt,this.unsubscribe(),kt&&this.subscribe()}moveDown(ai){this._moveTo(5,0,ai)}moveUp(ai){this._moveTo(-5,0,ai)}moveLeft(ai){this._moveTo(0,-5,ai)}moveRight(ai){this._moveTo(0,5,ai)}subscribe(){var ai=this._getEventNames();C.A.on(this._handle,ai.startEventName,kt=>{this._dragStartHandler(kt)}),C.A.on(this._handle,ai.updateEventName,kt=>{this._dragUpdateHandler(kt)}),C.A.on(this._handle,ai.endEventName,kt=>{this._dragEndHandler(kt)})}unsubscribe(){var ai=this._getEventNames();C.A.off(this._handle,ai.startEventName),C.A.off(this._handle,ai.updateEventName),C.A.off(this._handle,ai.endEventName)}_getEventNames(){return{startEventName:(0,Y.b4)(F.ni,"overlayDrag"),updateEventName:(0,Y.b4)(F.Cy,"overlayDrag"),endEventName:(0,Y.b4)(F._N,"overlayDrag")}}_dragStartHandler(ai){var kt=this._getAllowedOffsets();this._prevOffset={x:0,y:0},ai.targetElements=[],ai.maxTopOffset=kt.top,ai.maxBottomOffset=kt.bottom,ai.maxLeftOffset=kt.left,ai.maxRightOffset=kt.right}_dragUpdateHandler(ai){this._moveByOffset({top:ai.offset.y-this._prevOffset.y,left:ai.offset.x-this._prevOffset.x}),this._prevOffset=ai.offset}_dragEndHandler(ai){this._positionController.dragHandled(),this._positionController.detectVisualPositionChange(ai)}_moveTo(ai,kt,mi){if(this._dragEnabled){mi.preventDefault(),mi.stopPropagation();var Kt=this._fitOffsetIntoAllowedRange(ai,kt);this._moveByOffset(Kt),this._dragEndHandler(mi)}}_fitOffsetIntoAllowedRange(ai,kt){var mi=this._getAllowedOffsets();return{top:(0,g.df)(ai,-mi.top,mi.bottom),left:(0,g.df)(kt,-mi.left,mi.right)}}_getContainerDimensions(){var ai=x.A.getDocument(),kt=this._positionController.$dragResizeContainer.get(0),mi=(0,h.Ot)(kt),Kt=(0,h.P$)(kt);return(0,b.l6)(kt)&&(Kt=Math.max(ai.body.clientHeight,Kt),mi=Math.max(ai.body.clientWidth,mi)),{width:mi,height:Kt}}_getContainerPosition(){var ai=this._positionController.$dragResizeContainer.get(0);return(0,b.l6)(ai)?{top:0,left:0}:(0,h.A3)(ai)}_getElementPosition(){return(0,h.A3)(this._draggableElement)}_getInnerDelta(){var ai=this._getContainerDimensions(),kt=this._getElementDimensions();return{x:ai.width-kt.width,y:ai.height-kt.height}}_getOuterDelta(){var{width:ai,height:kt}=this._getElementDimensions(),mi=this._positionController.outsideDragFactor;return{x:ai*mi,y:kt*mi}}_getFullDelta(){var ai=this._getInnerDelta(),kt=this._getOuterDelta();return{x:ai.x+kt.x,y:ai.y+kt.y}}_getElementDimensions(){return{width:this._draggableElement.offsetWidth,height:this._draggableElement.offsetHeight}}_getAllowedOffsets(){var ai=this._getFullDelta();if(!(ai.y>=0&&ai.x>=0))return{top:0,bottom:0,left:0,right:0};var mi=this._getElementPosition(),Kt=this._getContainerPosition(),qi=this._getOuterDelta();return{top:mi.top-Kt.top+qi.y,bottom:-mi.top+Kt.top+ai.y,left:mi.left-Kt.left+qi.x,right:-mi.left+Kt.left+ai.x}}_moveByOffset(ai){var kt=(0,I.x5)(this._draggableElement);(0,I.Cy)(this._draggableElement,{left:kt.left+ai.left,top:kt.top+ai.top})}};var ee=D(58168),re=D(38365),ne="dxResizable",oe="dx-resizable-handle",W="dx-resizable-handle-corner",z=(0,Y.b4)(F.ni,ne),X=(0,Y.b4)(F.Cy,ne),q=(0,Y.b4)(F._N,ne),ye={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},xe=re.A.inherit({_getDefaultOptions:function(){return(0,m.X)(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0,keepAspectRatio:!0})},_init:function(){this.callBase(),this.$element().addClass("dx-resizable")},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){this._handles=[];var gt=this.option("handles");if("none"!==gt&>){var ai="all"===gt?["top","bottom","left","right"]:gt.split(" "),kt={};(0,v.__)(ai,(mi,Kt)=>{kt[Kt]=!0,this._renderHandle(Kt)}),kt.bottom&&kt.right&&this._renderHandle("corner-bottom-right"),kt.bottom&&kt.left&&this._renderHandle("corner-bottom-left"),kt.top&&kt.right&&this._renderHandle("corner-top-right"),kt.top&&kt.left&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(gt){var ai=(0,j.A)("<div>").addClass(oe).addClass(oe+"-"+gt).appendTo(this.$element());this._handles.push(ai)},_attachEventHandlers:function(){if(!this.option("disabled")){var gt={};gt[z]=this._dragStartHandler.bind(this),gt[X]=this._dragHandler.bind(this),gt[q]=this._dragEndHandler.bind(this),this._handles.forEach(ai=>{C.A.on(ai,gt,{direction:"both",immediate:!0})})}},_detachEventHandlers:function(){this._handles.forEach(gt=>{C.A.off(gt)})},_toggleEventHandlers:function(gt){gt?this._attachEventHandlers():this._detachEventHandlers()},_getElementSize:function(){var gt=this.$element();return"border-box"===gt.css("boxSizing")?{width:(0,h.Ot)(gt),height:(0,h.P$)(gt)}:{width:(0,h.RG)(gt),height:(0,h.Oq)(gt)}},_dragStartHandler:function(gt){var ai=this.$element();ai.is(".dx-state-disabled, .dx-state-disabled *")?gt.cancel=!0:(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(gt),this._elementLocation=(0,I.x5)(ai),this._elementSize=this._getElementSize(),this._renderDragOffsets(gt),this._resizeStartAction({event:gt,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),gt.targetElements=null)},_toggleResizingClass:function(gt){this.$element().toggleClass("dx-resizable-resizing",gt)},_renderDragOffsets:function(gt){var ai=this._getArea();if(ai){var kt=(0,j.A)(gt.target).closest("."+oe),mi=(0,h.Ot)(kt),Kt=(0,h.P$)(kt),qi=kt.offset(),Wi=ai.offset,yn=this._getAreaScrollOffset();gt.maxLeftOffset=this._leftMaxOffset=qi.left-Wi.left-yn.scrollX,gt.maxRightOffset=this._rightMaxOffset=Wi.left+ai.width-qi.left-mi+yn.scrollX,gt.maxTopOffset=this._topMaxOffset=qi.top-Wi.top-yn.scrollY,gt.maxBottomOffset=this._bottomMaxOffset=Wi.top+ai.height-qi.top-Kt+yn.scrollY}},_getBorderWidth:function(gt,ai){if((0,b.l6)(gt.get(0)))return 0;var kt=gt.css(ye[ai]);return parseInt(kt)||0},_proportionate:function(gt,ai){var kt=this._elementSize;return ai*("x"===gt?kt.width/kt.height:kt.height/kt.width)},_getProportionalDelta:function(gt){var{x:ai,y:kt}=gt,mi=this._proportionate("y",ai);if(mi>=kt)return{x:ai,y:mi};var Kt=this._proportionate("x",kt);return Kt>=ai?{x:Kt,y:kt}:{x:0,y:0}},_getDirectionName:function(gt){var ai=this._movingSides;return"x"===gt?ai.left?"left":"right":ai.top?"top":"bottom"},_fitIntoArea:function(gt,ai){var kt,mi=this._getDirectionName(gt);return Math.min(ai,null!==(kt=this["_".concat(mi,"MaxOffset")])&&void 0!==kt?kt:1/0)},_fitDeltaProportionally:function(gt){var ai=(0,ee.A)({},gt),kt=this._elementSize,{minWidth:mi,minHeight:Kt,maxWidth:qi,maxHeight:Wi}=this.option(),yn=()=>kt.width+ai.x,Ur=()=>kt.height+ai.y,ar=no=>ai[no]===this._fitIntoArea(no,ai[no]),na=()=>(0,g.r4)(yn(),mi,qi)&&ar("x"),po=()=>(0,g.r4)(Ur(),Kt,Wi)&&ar("y");if(!na()){var sa=this._fitIntoArea("x",(0,g.df)(yn(),mi,qi)-kt.width);ai={x:sa,y:this._proportionate("y",sa)}}if(!po()){var Pr=this._fitIntoArea("y",(0,g.df)(Ur(),Kt,Wi)-kt.height);ai={x:this._proportionate("x",Pr),y:Pr}}return na()&&po()?ai:{x:0,y:0}},_fitDelta:function(gt){var{x:ai,y:kt}=gt,mi=this._elementSize,{minWidth:Kt,minHeight:qi,maxWidth:Wi,maxHeight:yn}=this.option();return{x:(0,g.df)(mi.width+ai,Kt,Wi)-mi.width,y:(0,g.df)(mi.height+kt,qi,yn)-mi.height}},_getDeltaByOffset:function(gt){var ai=this._movingSides,kt=this._isCornerHandler(ai)&&this.option("keepAspectRatio"),mi={x:gt.x*(ai.left?-1:1),y:gt.y*(ai.top?-1:1)};if(kt){var Kt=this._getProportionalDelta(mi);mi=this._fitDeltaProportionally(Kt)}else{var Wi=this._fitDelta(mi);mi=this._roundByStep(Wi)}return mi},_updatePosition:function(gt,ai){var{width:kt,height:mi}=ai,Kt=this._elementLocation,qi=this._movingSides,Wi=this.$element(),yn=this._getElementSize();(0,I.Cy)(Wi,{top:Kt.top+(qi.top?gt.y*(qi.top?-1:1)-((yn.height||mi)-mi):0),left:Kt.left+(qi.left?gt.x*(qi.left?-1:1)-((yn.width||kt)-kt):0)})},_dragHandler:function(gt){var ai=this._getOffset(gt),kt=this._getDeltaByOffset(ai),mi=this._updateDimensions(kt);this._updatePosition(kt,mi),this._triggerResizeAction(gt,mi)},_updateDimensions:function(gt){var ai=ar=>"px"===ar.substring(ar.length-2),kt="strict"===this.option("stepPrecision"),mi=this._elementSize,Kt=mi.width+gt.x,qi=mi.height+gt.y,Wi=this.$element().get(0).style,yn=gt.x||kt||ai(Wi.width),Ur=gt.y||kt||ai(Wi.height);return yn&&this.option({width:Kt}),Ur&&this.option({height:qi}),{width:yn?Kt:mi.width,height:Ur?qi:mi.height}},_triggerResizeAction:function(gt,ai){var{width:kt,height:mi}=ai;this._resizeAction({event:gt,width:this.option("width")||kt,height:this.option("height")||mi,handles:this._movingSides}),(0,f.ho)(this.$element())},_isCornerHandler:gt=>0===Object.values(gt).reduce((ai,kt)=>ai^kt,0),_getOffset:function(gt){var ai=gt.offset,kt=this._movingSides;return!kt.left&&!kt.right&&(ai.x=0),!kt.top&&!kt.bottom&&(ai.y=0),ai},_roundByStep:function(gt){return"strict"===this.option("stepPrecision")?this._roundStrict(gt):this._roundNotStrict(gt)},_getSteps:function(){return(0,R.Li)(this.option("step"),!this.option("roundStepValue"))},_roundNotStrict:function(gt){var ai=this._getSteps();return{x:gt.x-gt.x%ai.h,y:gt.y-gt.y%ai.v}},_roundStrict:function(gt){var ai=this._movingSides,kt={x:gt.x*(ai.left?-1:1),y:gt.y*(ai.top?-1:1)},mi=this._getSteps(),Kt=this._elementLocation,qi=this._elementSize,Ur=((ai.left?Kt.left:Kt.left+qi.width)+kt.x)%mi.h,ar=((ai.top?Kt.top:Kt.top+qi.height)+kt.y)%mi.v,na=Math.sign||(uo=>0==(uo=+uo)||isNaN(uo)?uo:uo>0?1:-1),po=(uo,Eo)=>(1+.2*na(Eo))%1*uo,sa=(uo,Eo)=>Math.abs(uo)<.2*Eo,Pr=kt.x-Ur,no=kt.y-ar;Ur>po(mi.h,kt.x)&&(Pr+=mi.h),ar>po(mi.v,kt.y)&&(no+=mi.v);var ja=!ai.left&&!ai.right||sa(kt.x,mi.h)?0:Pr,Na=!ai.top&&!ai.bottom||sa(kt.y,mi.v)?0:no;return{x:ja*(ai.left?-1:1),y:Na*(ai.top?-1:1)}},_getMovingSides:function(gt){var ai=(0,j.A)(gt.target),kt=ai.hasClass(W+"-top-left"),mi=ai.hasClass(W+"-top-right"),Kt=ai.hasClass(W+"-bottom-left"),qi=ai.hasClass(W+"-bottom-right");return{top:ai.hasClass("dx-resizable-handle-top")||kt||mi,left:ai.hasClass("dx-resizable-handle-left")||kt||Kt,bottom:ai.hasClass("dx-resizable-handle-bottom")||Kt||qi,right:ai.hasClass("dx-resizable-handle-right")||mi||qi}},_getArea:function(){var gt=this.option("area");return(0,b.Tn)(gt)&&(gt=gt.call(this)),(0,b.Qd)(gt)?this._getAreaFromObject(gt):this._getAreaFromElement(gt)},_getAreaScrollOffset:function(){var gt=this.option("area"),kt={scrollY:0,scrollX:0};if(!(0,b.Tn)(gt)&&!(0,b.Qd)(gt)){var mi=(0,j.A)(gt)[0];(0,b.l6)(mi)&&(kt.scrollX=mi.pageXOffset,kt.scrollY=mi.pageYOffset)}return kt},_getAreaFromObject:function(gt){var ai={width:gt.right-gt.left,height:gt.bottom-gt.top,offset:{left:gt.left,top:gt.top}};return this._correctAreaGeometry(ai),ai},_getAreaFromElement:function(gt){var kt,ai=(0,j.A)(gt);return ai.length&&(kt={width:(0,h.hh)(ai),height:(0,h.yV)(ai),offset:(0,m.X)({top:0,left:0},(0,b.l6)(ai[0])?{}:ai.offset())},this._correctAreaGeometry(kt,ai)),kt},_correctAreaGeometry:function(gt,ai){var kt=ai?this._getBorderWidth(ai,"left"):0,mi=ai?this._getBorderWidth(ai,"top"):0;gt.offset.left+=kt+this._getBorderWidth(this.$element(),"left"),gt.offset.top+=mi+this._getBorderWidth(this.$element(),"top"),gt.width-=(0,h.Ot)(this.$element())-(0,h.hh)(this.$element()),gt.height-=(0,h.P$)(this.$element())-(0,h.yV)(this.$element())},_dragEndHandler:function(gt){var ai=this.$element();this._resizeEndAction({event:gt,width:(0,h.Ot)(ai),height:(0,h.P$)(ai),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(gt){this.option("width",(0,g.df)(gt,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(gt){this.option("height",(0,g.df)(gt,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(gt){switch(gt.name){case"disabled":this._toggleEventHandlers(!gt.value),this.callBase(gt);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":(0,w.Vd)()&&this._renderWidth((0,h.Ot)(this.$element()));break;case"minHeight":case"maxHeight":(0,w.Vd)()&&this._renderHeight((0,h.P$)(this.$element()));break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":case"keepAspectRatio":break;default:this.callBase(gt)}},_clean:function(){this.$element().find("."+oe).remove()},_useTemplates:function(){return!1}});(0,r.A)(ne,xe);const ge=xe;var Ee=D(2839),he=D(46022),Ie=D(11299),de=(D(22376),D(17558)),pe=D(97662),Be=D(98587),We=D(3558),tt=D(17420),vt=["fullScreen","forceApplyBindings","dragOutsideBoundary","dragAndResizeArea","outsideDragFactor"],Xt=(0,w.zk)();class Nt extends tt.A{constructor(ai){var{fullScreen:kt,forceApplyBindings:mi,dragOutsideBoundary:Kt,dragAndResizeArea:qi,outsideDragFactor:Wi}=ai;super((0,Be.A)(ai,vt)),this._props=(0,ee.A)({},this._props,{fullScreen:kt,forceApplyBindings:mi,dragOutsideBoundary:Kt,dragAndResizeArea:qi,outsideDragFactor:Wi}),this._$dragResizeContainer=void 0,this._updateDragResizeContainer()}set fullScreen(ai){this._props.fullScreen=ai,ai?this._fullScreenEnabled():this._fullScreenDisabled()}get $dragResizeContainer(){return this._$dragResizeContainer}get outsideDragFactor(){return this._props.dragOutsideBoundary?1:this._props.outsideDragFactor}set dragAndResizeArea(ai){this._props.dragAndResizeArea=ai,this._updateDragResizeContainer()}set dragOutsideBoundary(ai){this._props.dragOutsideBoundary=ai,this._updateDragResizeContainer()}set outsideDragFactor(ai){this._props.outsideDragFactor=ai}updateContainer(ai){super.updateContainer(ai),this._updateDragResizeContainer()}dragHandled(){this.restorePositionOnNextRender(!1)}resizeHandled(){this.restorePositionOnNextRender(!1)}positionContent(){var ai,kt;this._props.fullScreen?((0,I.Cy)(this._$content,{top:0,left:0}),this.detectVisualPositionChange()):(null===(ai=(kt=this._props).forceApplyBindings)||void 0===ai||ai.call(kt),super.positionContent())}_updateDragResizeContainer(){this._$dragResizeContainer=this._getDragResizeContainer()}_getDragResizeContainer(){return this._props.dragOutsideBoundary?(0,j.A)(Xt):this._props.dragAndResizeArea?(0,j.A)(this._props.dragAndResizeArea):(0,We.s$)().get(0)||this._props.container?this._$markupContainer:(0,j.A)(Xt)}_getVisualContainer(){return this._props.fullScreen?(0,j.A)(Xt):super._getVisualContainer()}_fullScreenEnabled(){this.restorePositionOnNextRender(!1)}_fullScreenDisabled(){this.restorePositionOnNextRender(!0)}}var Qe={setOverflow:R.lQ,restoreOverflow:R.lQ},Lt=D(13992),wt=(0,w.zk)(),Mt="dx-popup",Ge="dx-popup-wrapper",Ht="dx-popup-title",Ti="dx-popup-bottom",Xi=["cancel","clear","done"],yt="contained",st=E.A.safari&&(0,O.U)(E.A.version,[11])<0,Wt={static:"",inherit:"dx-popup-inherit-height",flex:"dx-popup-flex-height"},ci=he.A.inherit({_supportedKeys:function(){return(0,m.X)(this.callBase(),{upArrow:gt=>{var ai;null===(ai=this._drag)||void 0===ai||ai.moveUp(gt)},downArrow:gt=>{var ai;null===(ai=this._drag)||void 0===ai||ai.moveDown(gt)},leftArrow:gt=>{var ai;null===(ai=this._drag)||void 0===ai||ai.moveLeft(gt)},rightArrow:gt=>{var ai;null===(ai=this._drag)||void 0===ai||ai.moveRight(gt)}})},_getDefaultOptions:function(){return(0,m.X)(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragOutsideBoundary:!1,dragEnabled:!1,dragAndResizeArea:void 0,enableBodyScroll:!0,outsideDragFactor:0,onResizeStart:null,onResize:null,onResizeEnd:null,resizeEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(gt){return"desktop"===d.A.real().deviceType&&"generic"===gt.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===d.A.real().deviceType&&!d.A.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,Ie.Nt)()},options:{useFlatToolbarButtons:!0}},{device:function(){return(0,Ie.gx)()},options:{useDefaultToolbarButtons:!0,showCloseButton:!1}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){return this.option("fullScreen")?{show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}}:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}}},_init:function(){var gt=this.option("_wrapperClassExternal"),ai=gt?"".concat(Ge," ").concat(gt):Ge;this.callBase(),this._createBodyOverflowManager(),this._updateResizeCallbackSkipCondition(),this.$element().addClass(Mt),this.$wrapper().addClass(ai),this._$popupContent=this._$content.wrapInner((0,j.A)("<div>").addClass("dx-popup-content")).children().eq(0),this._toggleContentScrollClass(),this.$overlayContent().attr("role","dialog")},_render:function(){var gt=this.option("fullScreen");this._toggleFullScreenClass(gt),this.callBase()},_createBodyOverflowManager:function(){this._bodyOverflowManager=(()=>{if(!(0,w.Vd)())return Qe;var gt=(0,w.zk)(),ai=x.A.getDocument().documentElement,kt=x.A.getBody(),mi="ios"===d.A.real().platform,Kt={overflow:null,overflowX:null,overflowY:null,paddingRight:null,position:null,top:null,left:null};return{setOverflow:mi?()=>{if(!(0,b.O9)(Kt.position)&&"fixed"!==kt.style.position){var{scrollY:yn,scrollX:Ur}=gt;Kt.position=kt.style.position,Kt.top=kt.style.top,Kt.left=kt.style.left,kt.style.setProperty("position","fixed"),kt.style.setProperty("top","".concat(-yn,"px")),kt.style.setProperty("left","".concat(-Ur,"px"))}}:()=>{(()=>{var yn=gt.innerWidth-ai.clientWidth;if(!(Kt.paddingRight||yn<=0)){var Ur=gt.getComputedStyle(kt).getPropertyValue("padding-right"),ar=parseInt(Ur,10);Kt.paddingRight=ar,kt.style.setProperty("padding-right","".concat(ar+yn,"px"))}})(),!Kt.overflow&&"hidden"!==kt.style.overflow&&(Kt.overflow=kt.style.overflow,Kt.overflowX=kt.style.overflowX,Kt.overflowY=kt.style.overflowY,kt.style.setProperty("overflow","hidden"))},restoreOverflow:mi?()=>{if((0,b.O9)(Kt.position)){var yn=-parseInt(kt.style.top,10),Ur=-parseInt(kt.style.left,10);["position","top","left"].forEach(ar=>{Kt[ar]?kt.style.setProperty(ar,Kt[ar]):kt.style.removeProperty(ar)}),gt.scrollTo(Ur,yn),Kt.position=null}}:()=>{(0,b.O9)(Kt.paddingRight)&&(Kt.paddingRight?kt.style.setProperty("padding-right","".concat(Kt.paddingRight,"px")):kt.style.removeProperty("padding-right"),Kt.paddingRight=null),["overflow","overflowX","overflowY"].forEach(yn=>{if((0,b.O9)(Kt[yn])){var Ur=yn.replace(/(X)|(Y)/,ar=>"-".concat(ar.toLowerCase()));Kt[yn]?kt.style.setProperty(Ur,Kt[yn]):kt.style.removeProperty(Ur),Kt[yn]=null}})}}})()},_toggleFullScreenClass:function(gt){this.$overlayContent().toggleClass("dx-popup-fullscreen",gt).toggleClass("dx-popup-normal",!gt)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new o.A,bottom:new o.A})},_getActionsList:function(){return this.callBase().concat(["onResizeStart","onResize","onResizeEnd"])},_contentResizeHandler:function(gt){this._shouldSkipContentResize(gt)||this._renderGeometry({shouldOnlyReposition:!0})},_doesShowAnimationChangeDimensions:function(){var gt=this.option("animation");return["to","from"].some(ai=>{var kt,mi=null==gt||null===(kt=gt.show)||void 0===kt?void 0:kt[ai];return(0,b.Gv)(mi)&&("width"in mi||"height"in mi)})},_updateResizeCallbackSkipCondition(){var gt=this._doesShowAnimationChangeDimensions();this._shouldSkipContentResize=ai=>gt&&this._showAnimationProcessing||this._areContentDimensionsRendered(ai)},_observeContentResize:function(gt){if(this.option("useResizeObserver")){var ai=this._$content.get(0);gt?de.A.observe(ai,kt=>{this._contentResizeHandler(kt)}):de.A.unobserve(ai)}},_areContentDimensionsRendered:function(gt){var ai,kt,mi,qi,Wi,Kt=null===(ai=gt.contentBoxSize)||void 0===ai?void 0:ai[0];if(Kt)return parseInt(Kt.inlineSize,10)===(null===(qi=this._renderedDimensions)||void 0===qi?void 0:qi.width)&&parseInt(Kt.blockSize,10)===(null===(Wi=this._renderedDimensions)||void 0===Wi?void 0:Wi.height);var yn=gt.contentRect;return parseInt(yn.width,10)===(null===(kt=this._renderedDimensions)||void 0===kt?void 0:kt.width)&&parseInt(yn.height,10)===(null===(mi=this._renderedDimensions)||void 0===mi?void 0:mi.height)},_renderContent(){this.callBase(),this._observeContentResize(!0)},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderResize(),this._renderBottom()},_renderTitle:function(){var gt=this._getToolbarItems("top"),{title:ai,showTitle:kt}=this.option();if(kt&&ai&>.unshift({location:d.A.current().ios?"center":"before",text:ai}),kt||gt.length>0){this._$title&&this._$title.remove();var mi=(0,j.A)("<div>").addClass(Ht).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",gt,mi).addClass(Ht),this._renderDrag(),this._executeTitleRenderAction(this._$title),this._$title.toggleClass("dx-has-close-button",this._hasCloseButton())}else this._$title&&this._$title.detach();this._toggleAriaLabel()},_toggleAriaLabel(){var gt,{title:ai,showTitle:kt}=this.option(),Kt=kt&&ai?new Lt.A:null;null===(gt=this._$title)||void 0===gt||gt.find(".".concat("dx-toolbar-label")).eq(0).attr("id",Kt),this.$overlayContent().attr("aria-labelledby",Kt)},_renderTemplateByType:function(gt,ai,kt,mi){var{rtlEnabled:Kt,useDefaultToolbarButtons:qi,useFlatToolbarButtons:Wi,disabled:yn}=this.option(),Ur=this._getTemplateByOption(gt);if(Ur instanceof o.A){var na=(0,m.X)({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),po=(0,m.X)(mi,{items:ai,rtlEnabled:Kt,useDefaultButtons:qi,useFlatButtons:Wi,disabled:yn,integrationOptions:na});this._getTemplate("dx-polymorph-widget").render({container:kt,model:{widget:this._getToolbarName(),options:po}});var sa=kt.children("div");return kt.replaceWith(sa),sa}var Pr=(0,j.A)(Ur.render({container:(0,L.c)(kt)}));return Pr.hasClass("dx-template-wrapper")&&(kt.replaceWith(Pr),kt=Pr),kt},_getToolbarName:function(){return"dxToolbarBase"},_renderVisibilityAnimate:function(gt){return this.callBase(gt)},_hide(){return this._observeContentResize(!1),this.callBase()},_executeTitleRenderAction:function(gt){this._getTitleRenderAction()({titleElement:(0,L.c)(gt)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return(gt,ai,kt)=>{var mi=(0,j.A)("<div>").addClass("dx-closebutton");this._createComponent(mi,Ee.A,{icon:"close",onClick:this._createToolbarItemAction(void 0),stylingMode:"text",integrationOptions:{}}),(0,j.A)(kt).append(mi)}},_getToolbarItems:function(gt){var ai=this.option("toolbarItems"),kt=[];this._toolbarItemClasses=[];var mi=d.A.current().platform,Kt=0;return(0,v.__)(ai,(qi,Wi)=>{var yn=(0,b.O9)(Wi.shortcut),Ur=yn?(gt=>{var kt=d.A.current().platform,mi="bottom",Kt="before";if("ios"===kt)switch(gt){case"cancel":mi="top";break;case"clear":mi="top",Kt="after";break;case"done":Kt="after"}else if("android"===kt)switch(gt){case"cancel":case"done":Kt="after"}return{toolbar:mi,location:Kt}})(Wi.shortcut):Wi;if(yn&&"ios"===mi&&Kt<2&&(Ur.toolbar="top",Kt++),Ur.toolbar=Wi.toolbar||Ur.toolbar||"top",Ur&&Ur.toolbar===gt){yn&&(0,m.X)(Ur,{location:Wi.location},this._getToolbarItemByAlias(Wi));var ar="generic"===mi;"done"===Wi.shortcut&&ar||"cancel"===Wi.shortcut&&!ar?kt.unshift(Ur):kt.push(Ur)}}),"top"===gt&&this._hasCloseButton()&&kt.push(this._getCloseButton()),kt},_hasCloseButton(){return this.option("showCloseButton")&&this.option("showTitle")},_getLocalizationKey:gt=>"done"===gt.toLowerCase()?"OK":(0,_.PT)(gt,!0),_getToolbarButtonStylingMode:function(gt){return(0,Ie.Ft)()?"done"===gt?yt:"outlined":this.option("useFlatToolbarButtons")?"text":yt},_getToolbarButtonType:function(gt){return(0,Ie.Ft)()&&"done"===gt||this.option("useDefaultToolbarButtons")?"default":"normal"},_getToolbarItemByAlias:function(gt){var ai=this,kt=gt.shortcut;if(!Xi.includes(kt))return!1;var mi=(0,m.X)({text:k.A.format(this._getLocalizationKey(kt)),onClick:this._createToolbarItemAction(gt.onClick),integrationOptions:{},type:this._getToolbarButtonType(kt),stylingMode:this._getToolbarButtonStylingMode(kt)},gt.options||{}),Kt=Mt+"-"+kt;return this._toolbarItemClasses.push(Kt),{template:function(qi,Wi,yn){var Ur=(0,j.A)("<div>").addClass(Kt).appendTo(yn);ai._createComponent(Ur,Ee.A,mi)}}},_createToolbarItemAction:function(gt){return this._createAction(gt,{afterExecute:function(ai){ai.component.hide()}})},_renderBottom:function(){var gt=this._getToolbarItems("bottom");if(gt.length){this._$bottom&&this._$bottom.remove();var ai=(0,j.A)("<div>").addClass(Ti).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",gt,ai,{compactMode:!0}).addClass(Ti),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleDisabledState:function(gt){this.callBase(...arguments),this.$content().toggleClass("dx-state-disabled",!!gt)},_toggleClasses:function(){(0,v.__)(Xi,(ai,kt)=>{var mi=Mt+"-"+kt;this._toolbarItemClasses.includes(mi)?(this.$wrapper().addClass(mi+"-visible"),this._$bottom.addClass(mi)):(this.$wrapper().removeClass(mi+"-visible"),this._$bottom.removeClass(mi))})},_toggleFocusClass(gt,ai){if(this.callBase(gt,ai),gt&&!pe.C0(this._zIndex)){var kt=pe.vt(this._zIndexInitValue());pe.TF(this._zIndex),this._zIndex=kt,this._$wrapper.css("zIndex",kt),this._$content.css("zIndex",kt)}},_toggleContentScrollClass(){var gt=!this.option("preventScrollEvents");this.$content().toggleClass("dx-popup-content-scrollable",gt)},_getPositionControllerConfig(){var{fullScreen:gt,forceApplyBindings:ai,dragOutsideBoundary:kt,dragAndResizeArea:mi,outsideDragFactor:Kt}=this.option();return(0,m.X)({},this.callBase(),{fullScreen:gt,forceApplyBindings:ai,dragOutsideBoundary:kt,dragAndResizeArea:mi,outsideDragFactor:Kt})},_initPositionController(){this._positionController=new Nt(this._getPositionControllerConfig())},_getDragTarget:function(){return this.topToolbar()},_renderGeometry:function(gt){var{visible:ai,useResizeObserver:kt}=this.option();if(ai&&(0,w.Vd)()){var Kt=this._showAnimationProcessing&&!(null!=gt&>.forceStopAnimation)&&kt;this._isAnimationPaused=Kt||void 0,this._stopAnimation(),null!=gt&>.shouldOnlyReposition?this._renderPosition(!1):this._renderGeometryImpl(gt?.isDimensionChange),Kt&&(this._animateShowing(),this._isAnimationPaused=void 0)}},_cacheDimensions:function(){this.option("useResizeObserver")&&(this._renderedDimensions={width:parseInt((0,h.RG)(this._$content),10),height:parseInt((0,h.Oq)(this._$content),10)})},_renderGeometryImpl:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this._resetContentHeight(),this.callBase(),this._cacheDimensions(),this._setContentHeight()},_resetContentHeight:function(){"auto"===this._getOptionValue("height")&&this.$content().css({height:"auto",maxHeight:"none"})},_renderDrag:function(){var gt=this._getDragTarget(),ai=this.option("dragEnabled");if(gt){var kt={dragEnabled:ai,handle:gt.get(0),draggableElement:this._$content.get(0),positionController:this._positionController};this._drag?this._drag.init(kt):this._drag=new ie(kt),this.$overlayContent().toggleClass("dx-popup-draggable",ai)}},_renderResize:function(){this._resizable=this._createComponent(this._$content,ge,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:gt=>{this._resizeEndHandler(gt),this._observeContentResize(!0)},onResize:gt=>{this._setContentHeight(),this._actions.onResize(gt)},onResizeStart:gt=>{this._observeContentResize(!1),this._actions.onResizeStart(gt)},minHeight:100,minWidth:100,area:this._positionController.$dragResizeContainer,keepAspectRatio:!1})},_resizeEndHandler:function(gt){var ai=this._resizable.option("width"),kt=this._resizable.option("height");ai&&this._setOptionWithoutOptionChange("width",ai),kt&&this._setOptionWithoutOptionChange("height",kt),this._cacheDimensions(),this._positionController.resizeHandled(),this._positionController.detectVisualPositionChange(gt.event),this._actions.onResizeEnd(gt)},_setContentHeight:function(){(this.option("forceApplyBindings")||R.lQ)();var gt=this.$overlayContent().get(0),ai=this._chooseHeightStrategy(gt);this.$content().css(this._getHeightCssStyles(ai,gt)),this._setHeightClasses(this.$overlayContent(),ai)},_heightStrategyChangeOffset:function(gt,ai){return gt===Wt.flex?-ai:0},_chooseHeightStrategy:function(gt){var ai="auto"===gt.style.width||""===gt.style.width,kt=Wt.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(kt=ai||st?Wt.inherit:Wt.flex),kt},_getHeightCssStyles:function(gt,ai){var kt={},mi=this._getOptionValue("maxHeight",ai),Kt=this._getOptionValue("minHeight",ai),qi=this._splitPopupHeight(),Wi=qi.header+qi.footer+qi.contentVerticalOffsets+qi.popupVerticalOffsets+this._heightStrategyChangeOffset(gt,qi.popupVerticalPaddings);if(gt===Wt.static){if(!this._isAutoHeight()||mi||Kt){var yn=this.option("fullScreen")?Math.min((0,s.N)(ai).height,(0,w.zk)().innerHeight):(0,s.N)(ai).height;kt={height:Math.max(0,yn-Wi),minHeight:"auto",maxHeight:"auto"}}}else{var ar=(0,j.A)(this._positionController.$visualContainer).get(0),na=(0,h.dh)(mi,-Wi,ar);kt={height:"auto",minHeight:(0,h.d6)(Kt,-Wi,ar),maxHeight:na}}return kt},_setHeightClasses:function(gt,ai){var kt="";for(var mi in Wt)Wt[mi]!==ai&&(kt+=" "+Wt[mi]);gt.removeClass(kt).addClass(ai)},_isAutoHeight:function(){return"auto"===this.$overlayContent().get(0).style.height},_splitPopupHeight:function(){var gt=this.topToolbar(),ai=this.bottomToolbar();return{header:(0,h.gP)(gt&>.get(0)),footer:(0,h.gP)(ai&&ai.get(0)),contentVerticalOffsets:(0,h.pD)(this.$overlayContent().get(0),!0),popupVerticalOffsets:(0,h.pD)(this.$content().get(0),!0),popupVerticalPaddings:(0,h.pD)(this.$content().get(0),!1)}},_isAllWindowCovered:function(){return this.callBase()||this.option("fullScreen")},_renderDimensions:function(){this.option("fullScreen")?this.$overlayContent().css({width:"100%",height:"100%",minWidth:"",maxWidth:"",minHeight:"",maxHeight:""}):this.callBase(),(0,w.Vd)()&&this._renderFullscreenWidthClass()},_dimensionChanged:function(){this._renderGeometry({isDimensionChange:!0})},_clean:function(){this.callBase(),this._observeContentResize(!1)},_dispose:function(){this.callBase(),this._toggleBodyScroll(!0)},_renderFullscreenWidthClass:function(){this.$overlayContent().toggleClass("dx-popup-fullscreen-width",(0,h.Ot)(this.$overlayContent())===(0,h.RG)(wt))},_toggleSafariScrolling(){this.option("enableBodyScroll")&&this.callBase()},_toggleBodyScroll:function(gt){if(this._bodyOverflowManager){var{setOverflow:ai,restoreOverflow:kt}=this._bodyOverflowManager;gt?kt():ai()}},refreshPosition:function(){this._renderPosition()},_optionChanged:function(gt){var ai,{value:kt,name:mi}=gt;switch(mi){case"disabled":this.callBase(gt),this._renderTitle(),this._renderBottom();break;case"animation":this._updateResizeCallbackSkipCondition();break;case"enableBodyScroll":this.option("visible")&&this._toggleBodyScroll(kt);break;case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry(),(0,f.ho)(this.$overlayContent());break;case"bottomTemplate":this._renderBottom(),this._renderGeometry(),(0,f.ho)(this.$overlayContent());break;case"container":var Kt;this.callBase(gt),this.option("resizeEnabled")&&(null===(Kt=this._resizable)||void 0===Kt||Kt.option("area",this._positionController.$dragResizeContainer));break;case"width":case"height":this.callBase(gt),null===(ai=this._resizable)||void 0===ai||ai.option(mi,kt);break;case"onTitleRendered":this._createTitleRenderAction(kt);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var qi=!gt.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),qi&&(this._renderGeometry(),(0,f.ho)(this.$overlayContent()));break;case"dragEnabled":this._renderDrag();break;case"dragAndResizeArea":this._positionController.dragAndResizeArea=kt,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer),this._positionController.positionContent();break;case"dragOutsideBoundary":this._positionController.dragOutsideBoundary=kt,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer);break;case"outsideDragFactor":this._positionController.outsideDragFactor=kt;break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"autoResizeEnabled":this._renderGeometry(),(0,f.ho)(this.$overlayContent());break;case"fullScreen":this._positionController.fullScreen=kt,this._toggleFullScreenClass(kt),this._toggleSafariScrolling(),this._renderGeometry(),(0,f.ho)(this.$overlayContent());break;case"showCloseButton":this._renderTitle();break;case"preventScrollEvents":this.callBase(gt),this._toggleContentScrollClass();break;default:this.callBase(gt)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return(0,L.c)(this.$content())},$overlayContent:function(){return this._$content},getFocusableElements:function(){return this.$wrapper().find("[tabindex]").filter((gt,ai)=>ai.getAttribute("tabindex")>=0)}});(0,r.A)("dxPopup",ci);const bi=ci},76121:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>wi});var r=D(24292),d=D(23862),L=D(14435),j=D(20736),o=D(64905),E=D(60181),R=D(87951),m=D(5042),_=D(34423),v=D(12824),h=D(66296),s=D(31100),b=D(12101),O=D(12984),w="dx-scrollview-pull-down-loading",f="dx-scrollview-pull-down-ready";const ee=h.A.inherit({_init:function(ui){this.callBase(ui),this._$topPocket=ui._$topPocket,this._$pullDown=ui._$pullDown,this._$refreshingText=ui._$refreshingText,this._$scrollViewContent=(0,r.A)(ui.content()),this._$container=(0,r.A)(ui.container()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,_.A)(),this.releaseCallbacks=(0,_.A)(),this.reachBottomCallbacks=(0,_.A)()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var ui=(0,r.A)("<div>").addClass("dx-scrollview-pull-down-image"),cn=(0,r.A)("<div>").addClass("dx-scrollview-pull-down-indicator"),Ui=new s.A((0,r.A)("<div>")).$element(),Xi=this._$pullDownText=(0,r.A)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,r.A)("<div>").text(this.option("pullingDownText")).appendTo(Xi),this._$pulledDownText=(0,r.A)("<div>").text(this.option("pulledDownText")).appendTo(Xi),this._$refreshingText=(0,r.A)("<div>").text(this.option("refreshingText")).appendTo(Xi),this._$pullDown.empty().append(ui).append(cn.append(Ui)).append(Xi)},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var ui=this;(0,b.__)([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],function(Ui,Xi){Xi.element[ui._state===Xi.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var ui=this._$scrollViewContent.get(0),cn=this._$container.get(0);this._bottomBoundary=Math.max(ui.clientHeight-cn.clientHeight,0)},_allowedDirections:function(){var ui=this.callBase();return ui.vertical=ui.vertical||this._pullDownEnabled,ui},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){1===this._state&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(ui){(0,v.Cy)(this._$topPocket,{top:ui}),(0,v.Cy)(this._$scrollViewContent,{top:ui})},handleScroll:function(ui){if(this.callBase(ui),2!==this._state){var cn=this.location().top,Ui=(this._location||0)-cn;this._location=cn,this._isPullDown()?this._pullDownReady():Ui>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){3!==this._state&&(this._state=3,this.reachBottomCallbacks.fire())},_pullDownReady:function(){1!==this._state&&(this._state=1,this._$pullDown.addClass(f),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(w).removeClass(f),this._releaseState())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(w).removeClass(f),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(ui){ui&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=ui},reachBottomEnable:function(ui){this._reachBottomEnabled=ui},pendingRelease:function(){this._state=1},release:function(){var ui=new O.cY;return this._updateDimensions(),clearTimeout(this._releaseTimeout),3===this._state&&(this._state=0),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),ui.resolve()}.bind(this),400),ui.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});var re=D(80186),ne=D(49104),_e="dx-scrollview-pull-down-loading";const q=h.A.inherit({_init:function(ui){this.callBase(ui),this._$topPocket=ui._$topPocket,this._$pullDown=ui._$pullDown,this._$scrollViewContent=(0,r.A)(ui.content()),this._$container=(0,r.A)(ui.container()),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=(0,_.A)(),this.releaseCallbacks=(0,_.A)(),this.reachBottomCallbacks=(0,_.A)()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var ui=(0,r.A)("<div>").addClass("dx-scrollview-pull-down-indicator"),cn=new s.A((0,r.A)("<div>")).$element();this._$icon=(0,r.A)("<div>").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(ui.append(cn))},_releaseState:function(){this._state=0,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var ui=this._$scrollViewContent.get(0),cn=this._$container.get(0);this._bottomBoundary=Math.max(ui.clientHeight-cn.clientHeight,0)},_allowedDirections:function(){var ui=this.callBase();return ui.vertical=ui.vertical||this._pullDownEnabled,ui},handleInit:function(ui){this.callBase(ui),0===this._state&&0===this._location&&(this._startClientY=(0,ne.rw)(ui.originalEvent).y,this._state=4)},handleMove:function(ui){this.callBase(ui),this._deltaY=(0,ne.rw)(ui.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(ui.preventDefault(),this._movePullDown())},_movePullDown:function(){var ui=this._getPullDownHeight(),cn=Math.min(3*ui,this._deltaY+this._getPullDownStartPosition()),Ui=180*cn/ui/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",cn<ui),(0,v.Cy)(this._$pullDown,{top:cn}),this._$icon.css({transform:"rotate("+Ui+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&5===this._state&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*(0,re.P$)(this._$element))},_getPullDownStartPosition:function(){return-Math.round(1.5*(0,re.P$)(this._$pullDown))},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){(4===this._state||5===this._state)&&this._releaseState()},handleScroll:function(ui){if(this.callBase(ui),2!==this._state){var cn=this.location().top,Ui=this._location-cn;this._location=cn,Ui>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(_e),this._releaseState())},_pullDownRefreshing:function(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(_e),(0,v.Cy)(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(ui){this._$topPocket.toggle(ui),this._pullDownEnabled=ui},reachBottomEnable:function(ui){this._reachBottomEnabled=ui},pendingRelease:function(){this._state=1},release:function(){var ui=new O.cY;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),ui.resolve()}.bind(this),800),ui.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});var ye=D(61485),xe=Math,ge="dx-scrollview-pull-down-loading",Ee="dx-scrollview-pull-down-ready",vt=ye.H.inherit({ctor:function(){this._topPocketSize=0,this._bottomPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var ui=this;(0,b.__)([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],function(Ui,Xi){Xi.element[ui._state===Xi.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},_initCallbacks:function(){this.pullDownCallbacks=(0,_.A)(),this.releaseCallbacks=(0,_.A)(),this.reachBottomCallbacks=(0,_.A)()},_updateBounds:function(){if("horizontal"!==this._direction){this._topPocketSize=this._$topPocket.get(0).clientHeight,this._bottomPocketSize=this._$bottomPocket.get(0).clientHeight;var cn=this._$container.get(0),Ui=this._$content.get(0);this._bottomBoundary=Math.max(Ui.clientHeight-this._bottomPocketSize-cn.clientHeight,0)}this.callBase()},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():0!==this._state&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){var ui=this._$container.get(0);return this._reachBottomEnabled&&Math.round(this._bottomBoundary-Math.ceil(ui.scrollTop))<=1},_scrollComplete:function(){this._inBounds()&&1===this._state?this._pullDownRefreshing():this._inBounds()&&3===this._state?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){3!==this._state&&(this._state=3,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return xe.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass(Ee),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(ge).removeClass(Ee),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(ge).removeClass(Ee),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=(0,m.uG)(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(ui){this._reachBottomEnabled!==ui&&(this._reachBottomEnabled=ui,this._updateBounds())},_pullDownEnablingHandler:function(ui){this._pullDownEnabled!==ui&&(this._pullDownEnabled=ui,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=(0,re.Oq)(this._$topPocket)||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=1},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}});const Nt=ye.G.inherit({_init:function(ui){this.callBase(ui),this._$pullDown=ui._$pullDown,this._$topPocket=ui._$topPocket,this._$bottomPocket=ui._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,_.A)(),this.releaseCallbacks=(0,_.A)(),this.reachBottomCallbacks=(0,_.A)()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var ui=(0,r.A)("<div>").addClass("dx-scrollview-pull-down-image"),cn=(0,r.A)("<div>").addClass("dx-scrollview-pull-down-indicator"),Ui=new s.A((0,r.A)("<div>")).$element(),Xi=this._$pullDownText=(0,r.A)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,r.A)("<div>").text(this.option("pullingDownText")).appendTo(Xi),this._$pulledDownText=(0,r.A)("<div>").text(this.option("pulledDownText")).appendTo(Xi),this._$refreshingText=(0,r.A)("<div>").text(this.option("refreshingText")).appendTo(Xi),this._$pullDown.empty().append(ui).append(cn.append(Ui)).append(Xi)},pullDownEnable:function(ui){this._eventHandler("pullDownEnabling",ui)},reachBottomEnable:function(ui){this._eventHandler("reachBottomEnabling",ui)},_createScroller:function(ui){var cn=this,Ui=cn._scrollers[ui]=new vt(cn._scrollerOptions(ui));Ui.pullDownCallbacks.add(function(){cn.pullDownCallbacks.fire()}),Ui.releaseCallbacks.add(function(){cn.releaseCallbacks.fire()}),Ui.reachBottomCallbacks.add(function(){cn.reachBottomCallbacks.fire()})},_scrollerOptions:function(ui){return(0,R.X)(this.callBase(ui),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function(){var ui=this.callBase();return ui.top+=(0,re.Oq)(this._$topPocket),ui},dispose:function(){(0,b.__)(this._scrollers,function(){this.dispose()}),this.callBase()}});var Qe=D(49057),Et=D(11299),Lt=D(38543),wt="dx-scrollview",Mt=wt+"-content",Ge=wt+"-top-pocket",ot=wt+"-bottom-pocket",Tt=wt+"-pull-down",jt=wt+"-scrollbottom",li=jt+"-indicator",an=jt+"-text",xi=wt+"-loadpanel",Je={pullDown:ee,swipeDown:q,simulated:Nt},Ht=!(0,L.Vd)(),Ti=Qe.A.inherit(Ht?{finishLoading:m.lQ,release:m.lQ,refresh:m.lQ,scrollOffset:()=>({top:0,left:0}),_optionChanged:function(ui){if("onUpdated"!==ui.name)return this.callBase.apply(this,arguments)}}:{_getDefaultOptions:function(){return(0,R.X)(this.callBase(),{pullingDownText:j.A.format("dxScrollView-pullingDownText"),pulledDownText:j.A.format("dxScrollView-pulledDownText"),refreshingText:j.A.format("dxScrollView-refreshingText"),reachBottomText:j.A.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"android"===d.A.real().platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return(0,Et.Nt)()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass(wt),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var ui=(0,r.A)("<div>").addClass(Mt);this._$content.wrapInner(ui)},_initTopPocket:function(){var ui=this._$topPocket=(0,r.A)("<div>").addClass(Ge),cn=this._$pullDown=(0,r.A)("<div>").addClass(Tt);ui.append(cn),this._$content.prepend(ui)},_initBottomPocket:function(){var ui=this._$bottomPocket=(0,r.A)("<div>").addClass(ot),cn=this._$reachBottom=(0,r.A)("<div>").addClass(jt),Ui=(0,r.A)("<div>").addClass(li),Xi=new s.A((0,r.A)("<div>")).$element(),Qi=this._$reachBottomText=(0,r.A)("<div>").addClass(an);this._updateReachBottomText(),cn.append(Ui.append(Xi)).append(Qi),ui.append(cn),this._$content.append(ui)},_initLoadPanel:function(){var ui=(0,r.A)("<div>").addClass(xi).appendTo(this.$element()),cn={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(ui,Lt.A,cn)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var ui=this.option("useNative")?this.option("refreshStrategy"):"simulated";this._strategy=new(0,Je[ui])(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on:function(ui){var cn=this.callBase.apply(this,arguments);return("pullDown"===ui||"reachBottom"===ui)&&this._tryRefreshPocketState(),cn},_pullDownEnable:function(ui){if(0===arguments.length)return this._pullDownEnabled;this._$pullDown&&this._strategy&&(this._$pullDown.toggle(ui),this._strategy.pullDownEnable(ui),this._pullDownEnabled=ui)},_reachBottomEnable:function(ui){if(0===arguments.length)return this._reachBottomEnabled;this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(ui),this._strategy.reachBottomEnable(ui),this._reachBottomEnabled=ui)},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(ui){if(arguments.length<1)return this._loadingIndicatorEnabled;this._loadingIndicatorEnabled=ui},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(ui){switch(ui.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(ui)}},content:function(){return(0,E.c)(this._$content.children().eq(1))},release:function(ui){return void 0!==ui&&this.toggleLoading(!ui),this._strategy.release()},toggleLoading:function(ui){this._reachBottomEnable(ui)},refresh:function(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});(0,o.A)("dxScrollView",Ti);const wi=Ti},99639:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>E});var r=D(5042),d=D(56221),L=D(55581);const E=d.A.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,(0,L.u)(this._stepAnimationFrame)},_stepCore:function(){if(!this._isStopped())return this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=(0,L.x)(this._proxiedStepCore)));this._stop()},_step:d.A.abstract,_isFinished:r.lQ,_stop:r.lQ,_complete:r.lQ,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}})},69301:(ei,rt,D)=>{"use strict";D.d(rt,{M:()=>L});var r=D(23862),d=D(19900),L=function(){return[{device:function(){return!d.nativeScrolling},options:{useNative:!1}},{device:function(j){return!r.A.isSimulator()&&"desktop"===r.A.real().deviceType&&"generic"===j.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:d.touch,showScrollbar:"onHover"}}]}},49057:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>d});const d=D(66148).A},66296:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>I});var r=D(80186),d=D(24292),L=D(91269),j=D(49104),o=D(5042),E=D(12101),R=D(23862),m=D(56221),_=D(58096),v="dxNativeScrollable",h="dx-scrollable-native",O="vertical",w="horizontal";const I=m.A.inherit({ctor:function(x){this._init(x)},_init:function(x){this._component=x,this._$element=x.$element(),this._$container=(0,d.A)(x.container()),this._$content=x.$content(),this._direction=x.option("direction"),this._useSimulatedScrollbar=x.option("useSimulatedScrollbar"),this.option=x.option.bind(x),this._createActionByOption=x._createActionByOption.bind(x),this._isLocked=x._isLocked.bind(x),this._isDirection=x._isDirection.bind(x),this._allowedDirection=x._allowedDirection.bind(x),this._getMaxOffset=x._getMaxOffset.bind(x),this._isRtlNativeStrategy=x._isRtlNativeStrategy.bind(x)},render:function(){var g=R.A.real().platform;this._$element.addClass(h).addClass(h+"-"+g).toggleClass("dx-scrollable-scrollbars-hidden",!this._isScrollbarVisible()),this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateRtlPosition:function(x){x&&this.option("rtlEnabled")&&this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._moveScrollbars()},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass("dx-scrollable-scrollbar-simulated"),this._renderScrollbar(O),this._renderScrollbar(w)},_renderScrollbar:function(x){this._isDirection(x)&&(this._scrollbars[x]=new _.A((0,d.A)("<div>").appendTo(this._$element),{direction:x,expandable:this._component.option("scrollByThumb")}))},handleInit:o.lQ,handleStart:o.lQ,handleMove:function(x){this._isLocked()?x.cancel=!0:this._allowedDirection()&&(x.originalEvent.isScrollingEvent=!0)},handleEnd:o.lQ,handleCancel:o.lQ,handleStop:o.lQ,_eachScrollbar:function(x){x=x.bind(this),(0,E.__)(this._scrollbars||{},function(g,C){x(C,g)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var{left:x,top:g}=this.location();return{event:this._eventForUserAction,scrollOffset:this._getScrollOffset(),reachedLeft:this._isRtlNativeStrategy()?this._isReachedRight(-x):this._isReachedLeft(x),reachedRight:this._isRtlNativeStrategy()?this._isReachedLeft(-Math.abs(x)):this._isReachedRight(x),reachedTop:this._isDirection(O)?Math.round(g)>=0:void 0,reachedBottom:this._isDirection(O)?Math.round(Math.abs(g)-this._getMaxOffset().top)>=0:void 0}},_getScrollOffset:function(){var{top:x,left:g}=this.location();return{top:-x,left:this._normalizeOffsetLeft(-g)}},_normalizeOffsetLeft(x){return this._isRtlNativeStrategy()?this._getMaxOffset().left+x:x},_isReachedLeft:function(x){return this._isDirection(w)?Math.round(x)>=0:void 0},_isReachedRight:function(x){return this._isDirection(w)?Math.round(Math.abs(x)-this._getMaxOffset().left)>=0:void 0},_isScrollbarVisible:function(){var{showScrollbar:x}=this.option();return"never"!==x&&!1!==x},handleScroll:function(x){this._eventForUserAction=x,this._moveScrollbars(),this._scrollAction(this._createActionArgs())},_moveScrollbars:function(){var{top:x,left:g}=this._getScrollOffset();this._eachScrollbar(function(C){C.moveTo({top:-x,left:-g}),C.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(x){x.option("visible",!1)})}.bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:-this._$container.scrollTop()}},disabledChanged:o.lQ,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:(0,r.Oq)(this._$container),width:(0,r.RG)(this._$container)},this._componentContentSize={height:(0,r.Oq)(this._component.$content()),width:(0,r.RG)(this._component.$content())},this._contentSize={height:(0,r.Oq)(this._$content),width:(0,r.RG)(this._$content)}},_updateScrollbars:function(){this._eachScrollbar(function(x,g){var C=g===O?"height":"width";x.option({containerSize:this._containerSize[C],contentSize:this._componentContentSize[C]}),x.update()})},_allowedDirections:function(){return{vertical:this._isDirection(O)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(w)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var x=this._$element.get(0).className,g=new RegExp(h+"\\S*","g");g.test(x)&&this._$element.removeClass(x.match(g).join(" ")),L.A.off(this._$element,"."+v),L.A.off(this._$container,"."+v),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(x){x.$element().remove()})},scrollBy:function(x){var g=this.location();this._$container.scrollTop(Math.round(-g.top-x.top)),this._$container.scrollLeft(Math.round(-g.left-x.left))},validate:function(x){return!(this.option("disabled")||(0,j.X1)(x)&&this._isScrolledInMaxDirection(x)||!this._allowedDirection())},_isScrolledInMaxDirection(x){var g=this._$container.get(0);return x.delta>0?x.shiftKey?!g.scrollLeft:!g.scrollTop:x.shiftKey?g.scrollLeft>=this._getMaxOffset().left:g.scrollTop>=this._getMaxOffset().top},getDirection:function(){return this._allowedDirection()}})},66148:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>G});var r=D(80186),d=D(24292),L=D(91269),j=D(19900),o=D(29263),E=D(5042),R=D(72463),m=D(87951),_=D(60181),v=D(14435),h=D(23862),s=D(64905),b=D(38365),O=D(49104),w=D(26961),f=D(61485),k=D(66296),I=D(69301),x=D(12984),g=D(58168),C=D(48745),F=D(78221),Y=D(98500),se="dxScrollable",ee="dx-scrollable",be="dx-scrollable-content",oe="vertical",me="horizontal",we="both",N=b.A.inherit({_getDefaultOptions:function(){return(0,m.X)(this.callBase(),{disabled:!1,onScroll:null,direction:oe,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat((0,I.M)(),[{device:function(){return j.nativeScrolling&&"android"===h.A.real().platform&&!o.A.mozilla},options:{useSimulatedScrollbar:!0}}])},_initOptions:function(W){this.callBase(W),"useSimulatedScrollbar"in W||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(W){W?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var W=this.$element().addClass(ee),z=this._$container=(0,d.A)("<div>").addClass("dx-scrollable-container"),X=this._$wrapper=(0,d.A)("<div>").addClass("dx-scrollable-wrapper");(this._$content=(0,d.A)("<div>").addClass(be)).append(W.contents()).appendTo(z),z.appendTo(X),X.appendTo(W)},_dimensionChanged:function(){this.update(),this._updateRtlPosition()},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition(!0)},_updateRtlPosition:function(W){this._strategy.updateRtlPosition(W)},_getMaxOffset:function(){var{scrollWidth:W,clientWidth:z,scrollHeight:X,clientHeight:q}=(0,d.A)(this.container()).get(0);return{left:W-z,top:X-q}},_attachEventHandlers:function(){var W=this._strategy,z={getDirection:W.getDirection.bind(W),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};L.A.off(this._$wrapper,"."+se),L.A.on(this._$wrapper,(0,O.b4)(w.A.init,se),z,this._initHandler.bind(this)),L.A.on(this._$wrapper,(0,O.b4)(w.A.start,se),W.handleStart.bind(W)),L.A.on(this._$wrapper,(0,O.b4)(w.A.move,se),W.handleMove.bind(W)),L.A.on(this._$wrapper,(0,O.b4)(w.A.end,se),W.handleEnd.bind(W)),L.A.on(this._$wrapper,(0,O.b4)(w.A.cancel,se),W.handleCancel.bind(W)),L.A.on(this._$wrapper,(0,O.b4)(w.A.stop,se),W.handleStop.bind(W)),L.A.off(this._$container,"."+se),L.A.on(this._$container,(0,O.b4)("scroll",se),W.handleScroll.bind(W))},_validate:function(W){return!this._isLocked()&&(this._updateIfNeed(),this._moveIsAllowed(W))},_moveIsAllowed(W){return this._strategy.validate(W)},handleMove(W){this._strategy.handleMove(W)},_prepareDirections(W){this._strategy._prepareDirections(W)},_initHandler:function(){var W=this._strategy;W.handleInit.apply(W,arguments)},_renderDisabledState:function(){this.$element().toggleClass("dx-scrollable-disabled",this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+me).removeClass("dx-scrollable-"+oe).removeClass("dx-scrollable-"+we).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data("dxScrollableStrategy",this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new k.A(this):new f.G(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(W){switch(W.name){case"onStart":case"onEnd":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":case"scrollByContent":break;case"width":this.callBase(W),this._updateRtlPosition();break;default:this.callBase(W)}},_resetInactiveDirection:function(){var W=this._getInactiveProp();if(W&&(0,v.Vd)()){var z=this.scrollOffset();z[W]=0,this.scrollTo(z)}},_getInactiveProp:function(){var W=this.option("direction");return W===oe?"left":W===me?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(W){if((0,R.Qd)(W)){var z=(0,E.YD)(W.left,W.x),X=(0,E.YD)(W.top,W.y);return{left:(0,R.O9)(z)?-z:void 0,top:(0,R.O9)(X)?-X:void 0}}var q=this.option("direction");return{left:q!==oe?-W:void 0,top:q!==me?-W:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(W){var z=this.option("direction");return W===oe?z!==me:W===me?z!==oe:z===W},_updateAllowedDirection:function(){var W=this._strategy._allowedDirections();this._allowedDirectionValue=this._isDirection(we)&&W.vertical&&W.horizontal?we:this._isDirection(me)&&W.horizontal?me:this._isDirection(oe)&&W.vertical?oe:null},_allowedDirection:function(){return this._allowedDirectionValue},$content:function(){return this._$content},content:function(){return(0,_.c)(this._$content)},container:function(){return(0,_.c)(this._$container)},scrollOffset:function(){return this._strategy._getScrollOffset()},_isRtlNativeStrategy:function(){var{useNative:W,rtlEnabled:z}=this.option();return W&&z},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return(0,r.Oq)(this._$container)},scrollHeight:function(){return(0,r.P$)(this.$content())},clientWidth:function(){return(0,r.RG)(this._$container)},scrollWidth:function(){return(0,r.Ot)(this.$content())},update:function(){if(this._strategy)return(0,x.z7)(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(W){((W=this._normalizeLocation(W)).top||W.left)&&(this._updateIfNeed(),this._strategy.scrollBy(W))},scrollTo:function(W){W=this._normalizeLocation(W),this._updateIfNeed();var z=this._location();this.option("useNative")||(W=this._strategy._applyScaleRatio(W),z=this._strategy._applyScaleRatio(z)),this._isRtlNativeStrategy()&&(z.left=z.left-this._getMaxOffset().left);var X=this._normalizeLocation({left:z.left-(0,E.YD)(W.left,z.left),top:z.top-(0,E.YD)(W.top,z.top)});!X.top&&!X.left||this._strategy.scrollBy(X)},scrollToElement:function(W,z){var X=(0,d.A)(W),q=this.$content().find(W).length,ye=X.parents("."+ee).length-X.parents("."+be).length==0;if(q&&ye){var xe={top:0,left:0},ge=this.option("direction");ge!==oe&&(xe.left=this.getScrollElementPosition(X,me,z)),ge!==me&&(xe.top=this.getScrollElementPosition(X,oe,z)),this.scrollTo(xe)}},getScrollElementPosition:function(W,z,X){var q=this.scrollOffset();return function Q(W,z,X,q,ye){var xe=(0,g.A)({top:0,left:0,right:0,bottom:0},ye),ge=z===Y.lm,Ee=ge?"top":"left",he=ge?"bottom":"right",Ie=ge?"height":"width",ce=X["offset".concat((0,C.Ns)(Ie))],de=X["client".concat((0,C.Ns)(Ie))],pe=X.getBoundingClientRect()[Ie],Be=W.getBoundingClientRect()[Ie],We=1;Math.abs(pe-ce)>1&&(We=pe/ce);var tt=(0,F.Y)(Y.JU,W)[Ee]/We,vt=q[Ee],Xt=vt-tt+xe[Ee],Nt=vt-tt-Be/We+de-xe[he];return Xt<=0&&Nt>=0?vt:vt-(Math.abs(Xt)>Math.abs(Nt)?Nt:Xt)}(W.get(0),z,(0,d.A)(this.container()).get(0),q,X)},_updateIfNeed:function(){this.option("updateManually")||this.update()},_useTemplates:function(){return!1},isRenovated:function(){return!!N.IS_RENOVATED_WIDGET}});(0,s.A)(se,N);const G=N},61485:(ei,rt,D)=>{"use strict";D.d(rt,{G:()=>ge,H:()=>q});var ye,xe,r=D(80186),d=D(24292),L=D(17669),j=D(91269),o=D(48745),E=D(87951),R=D(14435),m=D(12101),_=D(72463),v=D(50448),h=D(12824),s=D(56221),b=D(99639),O=D(49104),w=D(5042),f=D(58096),k=D(12984),I="dxSimulatedScrollable",g=I+"Cursor",C=I+"Keyboard",F="dx-scrollable-simulated",se="vertical",ie="horizontal",_e=Math.round(1e3/60),G=(1-Math.pow(.92,400/_e))/(1-.92),z=b.A.inherit({ctor:function(Ee){this.callBase(),this.scroller=Ee},VELOCITY_LIMIT:1,_isFinished:function(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?.92:.5},_complete:function(){this.scroller._scrollComplete()}}),X=z.inherit({VELOCITY_LIMIT:.2,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return.92},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),q=s.A.inherit({ctor:function(Ee){this._initOptions(Ee),this._initAnimators(),this._initScrollbar()},_initOptions:function(Ee){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=Ee.direction===ie?"x":"y",this._prop=Ee.direction===ie?"left":"top",this._dimension=Ee.direction===ie?"width":"height",this._scrollProp=Ee.direction===ie?"scrollLeft":"scrollTop",(0,m.__)(Ee,(he,Ie)=>{this["_"+he]=Ie})},_initAnimators:function(){this._inertiaAnimator=new z(this),this._bounceAnimator=new X(this)},_initScrollbar:function(){this._scrollbar=new f.A((0,d.A)("<div>").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(Ee){return!0===Ee?"onScroll":!1===Ee?"never":Ee},_scrollStep:function(Ee){var he=this._location;this._location+=Ee,this._suppressBounce(),this._move(),!(Math.abs(he-this._location)<1)&&j.A.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(Ee){return Ee=void 0!==Ee?Ee:this._location,Math.max(Math.min(Ee,this._maxOffset),this._minOffset)},_move:function(Ee){this._location=void 0!==Ee?Ee*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var Ee=this._location;this._$container[this._scrollProp](-Ee/this._getScaleRatio()),this._moveContentByTranslator(Ee)},_getScaleRatio:function(){if((0,R.Vd)()&&!this._scaleRatio){var Ee=this._$element.get(0),he=this._getRealDimension(Ee,this._dimension),Ie=this._getBaseDimension(Ee,this._dimension);this._scaleRatio=Math.round(he/Ie*100)/100}return this._scaleRatio||1},_getRealDimension:function(Ee,he){return Math.round((0,v.N)(Ee)[he])},_getBaseDimension:function(Ee,he){return Ee["offset"+(0,o.Ns)(he)]},_moveContentByTranslator:function(Ee){var he,Ie=-this._maxScrollPropValue;if(this._translateOffset!==(he=Ee>0?Ee:Ee<=Ie?Ee-Ie:Ee%1)){var ce={};if(ce[this._prop]=he,this._translateOffset=he,0===he)return void(0,h.fw)(this._$content);(0,h.Cy)(this._$content,ce)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var Ee=this._bounceLocation=this._boundLocation();this._velocity=(Ee-this._location)/G},_inBounds:function(Ee){return this._boundLocation(Ee=void 0!==Ee?Ee:this._location)===Ee},_crossBoundOnNextStep:function(){var Ee=this._location,he=Ee+this._velocity;return Ee<this._minOffset&&he>=this._minOffset||Ee>this._maxOffset&&he<=this._maxOffset},_initHandler:function(Ee){this._stopScrolling(),this._prepareThumbScrolling(Ee)},_stopScrolling:(0,w.Mb)(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(Ee){if(!(0,O.X1)(Ee.originalEvent)){var he=(0,d.A)(Ee.originalEvent.target),Ie=this._isScrollbar(he);Ie&&this._moveToMouseLocation(Ee),this._thumbScrolling=Ie||this._isThumb(he),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(he),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(Ee){return this._isThumb(Ee)},_moveToMouseLocation:function(Ee){var he=Ee["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],Ie=this._location+he/this._containerToContentRatio()-(0,r.Oq)(this._$container)/2;this._scrollStep(-Math.round(Ie))},_startHandler:function(){this._showScrollbar()},_moveHandler:function(Ee){this._crossThumbScrolling||(this._thumbScrolling&&(Ee[this._axis]=-Math.round(Ee[this._axis]/this._containerToContentRatio())),this._scrollBy(Ee))},_scrollBy:function(Ee){Ee=Ee[this._axis],this._inBounds()||(Ee*=.5),this._scrollStep(Ee)},_scrollByHandler:function(Ee){this._scrollBy(Ee),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(Ee){return this._completeDeferred=new k.cY,this._velocity=Ee[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){(!this._inertiaEnabled||this._thumbScrolling)&&(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){return this._stopScrolling(),(0,w.OX)(()=>{this._resetScaleRatio(),this._updateLocation(),this._updateBounds(),this._updateScrollbar(),(0,w.zE)(()=>{this._moveScrollbar(),this._scrollbar.update()})})},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=((0,h.x5)(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=this._getMaxOffset(),this._minOffset=this._getMinOffset()},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:(0,w.a0)(function(){var Ee=this._containerSize(),he=this._contentSize(),Ie=this._getBaseDimension(this._$container.get(0),this._dimension),ce=this._getBaseDimension(this._$content.get(0),this._dimension);(0,w.zE)(()=>{this._scrollbar.option({containerSize:Ee,contentSize:he,baseContainerSize:Ie,baseContentSize:ce,scaleRatio:this._getScaleRatio()})})}),_moveToBounds:(0,w.Mb)((0,w.a0)((0,w.Mb)(function(){var Ee=this._boundLocation(),he=Ee!==this._location;this._location=Ee,this._move(),he&&this._scrollAction()}))),_createActionsHandler:function(Ee){this._scrollAction=Ee.scroll,this._bounceAction=Ee.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var Ee="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),he=this._getRealDimension(this._$content.get(0),this._dimension);if(!Ee){var Ie=this._$content[0]["scroll"+(0,o.Ns)(this._dimension)]*this._getScaleRatio();he=Math.max(Ie,he)}return he},_validateEvent:function(Ee){var he=(0,d.A)(Ee.originalEvent.target);return this._isThumb(he)||this._isScrollbar(he)},_isThumb:function(Ee){return this._scrollByThumb&&this._scrollbar.isThumb(Ee)},_isScrollbar:function(Ee){return this._scrollByThumb&&Ee&&Ee.is(this._$scrollbar)},_reachedMin:function(){return Math.round(this._location-this._minOffset)<=0},_reachedMax:function(){return Math.round(this._location-this._maxOffset)>=0},_cursorEnterHandler:function(){this._resetScaleRatio(),this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:w.lQ}),ge=s.A.inherit({ctor:function(Ee){this._init(Ee)},_init:function(Ee){this._component=Ee,this._$element=Ee.$element(),this._$container=(0,d.A)(Ee.container()),this._$wrapper=Ee._$wrapper,this._$content=Ee.$content(),this.option=Ee.option.bind(Ee),this._createActionByOption=Ee._createActionByOption.bind(Ee),this._isLocked=Ee._isLocked.bind(Ee),this._isDirection=Ee._isDirection.bind(Ee),this._allowedDirection=Ee._allowedDirection.bind(Ee),this._getMaxOffset=Ee._getMaxOffset.bind(Ee)},render:function(){this._$element.addClass(F),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(ie)&&this._createScroller(ie),this._isDirection(se)&&this._createScroller(se),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar"))},_createScroller:function(Ee){this._scrollers[Ee]=new q(this._scrollerOptions(Ee))},_scrollerOptions:function(Ee){return{direction:Ee,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(Ee){for(var he in this._scrollers){var Ie=this._getPropByDirection(he);(0,_.O9)(Ee[Ie])&&(Ee[Ie]*=this._scrollers[he]._getScaleRatio())}return Ee},_isAnyThumbScrolling:function(Ee){var he=!1;return this._eventHandler("isThumbScrolling",Ee).done(function(Ie,ce){he=Ie||ce}),he},handleInit:function(Ee){this._suppressDirections(Ee),this._eventForUserAction=Ee,this._eventHandler("init",Ee)},_suppressDirections:function(Ee){(0,O.X1)(Ee.originalEvent)?this._prepareDirections(!0):(this._prepareDirections(),this._eachScroller(function(he,Ie){var ce=(0,d.A)(Ee.originalEvent.target),de=he._validateEvent(Ee)||this.option("scrollByContent")&&this._isContent(ce);this._validDirections[Ie]=de}))},_isContent:function(Ee){return!!Ee.closest(this._$element).length},_prepareDirections:function(Ee){Ee=Ee||!1,this._validDirections={},this._validDirections[ie]=Ee,this._validDirections[se]=Ee},_eachScroller:function(Ee){Ee=Ee.bind(this),(0,m.__)(this._scrollers,function(he,Ie){Ee(Ie,he)})},handleStart:function(Ee){this._eventForUserAction=Ee,this._eventHandler("start").done(this._startAction)},_saveActive:function(){xe=this},_resetActive:function(){xe===this&&(xe=null)},handleMove:function(Ee){if(this._isLocked())return Ee.cancel=!0,void this._resetActive();this._saveActive(),Ee.preventDefault&&Ee.preventDefault(),this._adjustDistance(Ee,Ee.delta),this._eventForUserAction=Ee,this._eventHandler("move",Ee.delta)},_adjustDistance:function(Ee,he){he.x*=this._validDirections[ie],he.y*=this._validDirections[se];var Ie=this._tryGetDevicePixelRatio();Ie&&(0,O.X1)(Ee.originalEvent)&&(he.x=Math.round(he.x/Ie*100)/100,he.y=Math.round(he.y/Ie*100)/100)},_tryGetDevicePixelRatio:function(){if((0,R.Vd)())return(0,R.zk)().devicePixelRatio},handleEnd:function(Ee){return this._resetActive(),this._refreshCursorState(Ee.originalEvent&&Ee.originalEvent.target),this._adjustDistance(Ee,Ee.velocity),this._eventForUserAction=Ee,this._eventHandler("end",Ee.velocity).done(this._endAction)},handleCancel:function(Ee){return this._resetActive(),this._eventForUserAction=Ee,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._updateRtlConfig(),this._scrollAction()},_attachKeyboardHandler:function(){j.A.off(this._$element,".".concat(C)),!this.option("disabled")&&this.option("useKeyboard")&&j.A.on(this._$element,(0,O.b4)("keydown",C),this._keyDownHandler.bind(this))},_keyDownHandler:function(Ee){if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout(()=>{"tab"===(0,O.YD)(Ee)&&this._eachScroller(Ie=>{Ie._updateHandler()})}),this._$container.is(L.A.getActiveElement(this._$container.get(0)))){var he=!0;switch((0,O.YD)(Ee)){case"downArrow":this._scrollByLine({y:1});break;case"upArrow":this._scrollByLine({y:-1});break;case"rightArrow":this._scrollByLine({x:1});break;case"leftArrow":this._scrollByLine({x:-1});break;case"pageDown":this._scrollByPage(1);break;case"pageUp":this._scrollByPage(-1);break;case"home":this._scrollToHome();break;case"end":this._scrollToEnd();break;default:he=!1}he&&(Ee.stopPropagation(),Ee.preventDefault())}},_scrollByLine:function(Ee){var he=this._tryGetDevicePixelRatio(),Ie=40;he&&(Ie=Math.abs(Ie/he*100)/100),this.scrollBy({top:(Ee.y||0)*-Ie,left:(Ee.x||0)*-Ie})},_scrollByPage:function(Ee){var he=this._wheelProp(),Ie=this._dimensionByProp(he),ce={};ce[he]=Ee*-("width"===Ie?r.RG:r.Oq)(this._$container),this.scrollBy(ce)},_dimensionByProp:function(Ee){return"left"===Ee?"width":"height"},_getPropByDirection:function(Ee){return Ee===ie?"left":"top"},_scrollToHome:function(){var he={};he[this._wheelProp()]=0,this._component.scrollTo(he)},_scrollToEnd:function(){var Ee=this._wheelProp(),Ie={},ce="width"===this._dimensionByProp(Ee)?r.RG:r.Oq;Ie[Ee]=ce(this._$content)-ce(this._$container),this._component.scrollTo(Ie)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(Ee){var he=this._createActionByOption(Ee);return()=>{he((0,E.X)(this._createActionArgs(),arguments))}},_createActionArgs:function(){var{horizontal:Ee,vertical:he}=this._scrollers,Ie=this._getScrollOffset();return this._scrollOffset={top:he&&Ie.top,left:Ee&&Ie.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:Ee&&Ee._reachedMax(),reachedRight:Ee&&Ee._reachedMin(),reachedTop:he&&he._reachedMax(),reachedBottom:he&&he._reachedMin()}},_getScrollOffset(){return{top:-this.location().top,left:-this.location().left}},_eventHandler:function(Ee){var he=[].slice.call(arguments).slice(1),Ie=(0,m.Tj)(this._scrollers,ce=>ce["_"+Ee+"Handler"].apply(ce,he));return k.z7.apply(d.A,Ie).promise()},location:function(){var Ee=(0,h.x5)(this._$content);return Ee.top-=this._$container.scrollTop(),Ee.left-=this._$container.scrollLeft(),Ee},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){j.A.off(this._$element,".".concat(g)),!this.option("disabled")&&this._isHoverMode()&&(j.A.on(this._$element,(0,O.b4)("mouseenter",g),this._cursorEnterHandler.bind(this)),j.A.on(this._$element,(0,O.b4)("mouseleave",g),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(Ee){(Ee=Ee||{}).originalEvent=Ee.originalEvent||{},!xe&&!Ee.originalEvent._hoverHandled&&(ye&&ye._cursorLeaveHandler(),ye=this,this._eventHandler("cursorEnter"),Ee.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(Ee){ye!==this||xe===ye||(this._eventHandler("cursorLeave"),ye=null,this._refreshCursorState(Ee&&Ee.relatedTarget))},_refreshCursorState:function(Ee){if(this._isHoverMode()||Ee&&!xe){var Ie=(0,d.A)(Ee).closest(".".concat(F,":not(.dx-state-disabled)")),ce=Ie.length&&Ie.data("dxScrollableStrategy");ye&&ye!==ce&&ye._cursorLeaveHandler(),ce&&ce._cursorEnterHandler()}},update:function(){var Ee=this._eventHandler("update").done(this._updateAction);return(0,k.z7)(Ee,(0,w.OX)(()=>{var he=this._allowedDirections();return(0,w.zE)(()=>{var Ie=he.vertical?"pan-x":"";Ie=he.horizontal?"pan-y":Ie,this._$container.css("touchAction",Ie=he.vertical&&he.horizontal?"none":Ie)}),(0,k.z7)().promise()}))},_allowedDirections:function(){var Ee=this.option("bounceEnabled"),he=this._scrollers[se],Ie=this._scrollers[ie];return{vertical:he&&(he._minOffset<0||Ee),horizontal:Ie&&(Ie._minOffset<0||Ee)}},_updateBounds:function(){this._scrollers[ie]&&this._scrollers[ie]._updateBounds()},_isHorizontalAndRtlEnabled:function(){return this.option("rtlEnabled")&&this.option("direction")!==se},updateRtlPosition:function(Ee){if(Ee&&(this._rtlConfig={scrollRight:0,clientWidth:this._$container.get(0).clientWidth,windowPixelRatio:this._getWindowDevicePixelRatio()}),this._updateBounds(),this._isHorizontalAndRtlEnabled()){var he=this._getMaxOffset().left-this._rtlConfig.scrollRight;he<=0&&(he=0,this._rtlConfig.scrollRight=this._getMaxOffset().left),this._getScrollOffset().left!==he&&(this._rtlConfig.skipUpdating=!0,this._component.scrollTo({left:he}),this._rtlConfig.skipUpdating=!1)}},_updateRtlConfig:function(){if(this._isHorizontalAndRtlEnabled()&&!this._rtlConfig.skipUpdating){var{clientWidth:Ee,scrollLeft:he}=this._$container.get(0),Ie=this._getWindowDevicePixelRatio();this._rtlConfig.windowPixelRatio===Ie&&this._rtlConfig.clientWidth===Ee&&(this._rtlConfig.scrollRight=this._getMaxOffset().left-he),this._rtlConfig.clientWidth=Ee,this._rtlConfig.windowPixelRatio=Ie}},_getWindowDevicePixelRatio:function(){return(0,R.Vd)()?(0,R.zk)().devicePixelRatio:1},scrollBy:function(Ee){var he=this._scrollers[se],Ie=this._scrollers[ie];he&&(Ee.top=he._boundLocation(Ee.top+he._location)-he._location),Ie&&(Ee.left=Ie._boundLocation(Ee.left+Ie._location)-Ie._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:Ee.left,y:Ee.top}),this._endAction(),this._updateRtlConfig()},validate:function(Ee){return!((0,O.X1)(Ee)&&(0,O.By)(Ee)||this.option("disabled"))&&(!!this.option("bounceEnabled")||((0,O.X1)(Ee)?this._validateWheel(Ee):this._validateMove(Ee)))},_validateWheel:function(Ee){var he=this._scrollers[this._wheelDirection(Ee)],Ie=he._reachedMin(),ce=he._reachedMax(),tt=(!Ie||!ce)&&(!Ie&&!ce||Ie&&Ee.delta>0||ce&&Ee.delta<0);return(tt=tt||void 0!==this._validateWheelTimer)&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout(()=>{this._validateWheelTimer=void 0},500)),tt},_validateMove:function(Ee){return!(!this.option("scrollByContent")&&!(0,d.A)(Ee.target).closest(".".concat("dx-scrollable-scrollbar")).length)&&this._allowedDirection()},getDirection:function(Ee){return(0,O.X1)(Ee)?this._wheelDirection(Ee):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===ie?"left":"top"},_wheelDirection:function(Ee){switch(this.option("direction")){case ie:return ie;case se:return se;default:return Ee&&Ee.shiftKey?ie:se}},dispose:function(){this._resetActive(),ye===this&&(ye=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(F),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){j.A.off(this._$element,".".concat(g)),j.A.off(this._$container,".".concat(C))}})},58096:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>Y});var r=D(24292),d=D(17669),L=D(91269),j=D(72535),o=D(12824),E=D(98041),R=D(49104),m=D(5042),_=D(72463),v=D(87951),h=D(24159),s="dxScrollbar",b="dx-scrollable-scrollbar",O="".concat(b,"-active"),I="horizontal",C=null,F=E.A.inherit({_getDefaultOptions:function(){return(0,v.X)(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:"onScroll",containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=(0,r.A)("<div>").addClass("dx-scrollable-scroll"),(0,r.A)("<div>").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass(b).append(this._$thumb)},isThumb:function(Q){return!!this.$element().find(Q).length},_isHoverMode:function(){var Q=this.option("visibilityMode");return("onHover"===Q||"always"===Q)&&this.option("expandable")},_renderDirection:function(){var Q=this.option("direction");this.$element().addClass("dx-scrollbar-"+Q),this._dimension=Q===I?"width":"height",this._prop=Q===I?"left":"top"},_attachPointerDownHandler:function(){L.A.on(this._$thumb,(0,R.b4)(h.A.down,s),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(O),C=this},feedbackOff:function(){this.$element().removeClass(O),C=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(Q){"onScroll"===this.option("visibilityMode")&&this._$thumb.css("opacity"),Q=this._adjustVisibility(Q),this.option().visible=Q,this._$thumb.toggleClass("dx-state-invisible",!Q)},_adjustVisibility:function(Q){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case"onScroll":break;case"onHover":Q=Q||!!this._isHovered;break;case"never":Q=!1;break;case"always":Q=!0}return Q},moveTo:function(Q){if(!this._isHidden()){(0,_.Qd)(Q)&&(Q=Q[this._prop]||0);var se={};se[this._prop]=this._calculateScrollBarPosition(Q),(0,o.Cy)(this._$thumb,se)}},_calculateScrollBarPosition:function(Q){return-Q*this._thumbRatio},_update:function(){var Q=Math.round(this.option("containerSize")),se=Math.round(this.option("contentSize")),ie=Math.round(this.option("baseContainerSize")),ee=Math.round(this.option("baseContentSize"));isNaN(ie)&&(ie=Q,ee=se),this._baseContainerToContentRatio=ee?ie/ee:ie,this._realContainerToContentRatio=se?Q/se:Q;var re=Math.round(Math.max(Math.round(Q*this._realContainerToContentRatio),15));this._thumbRatio=(Q-re)/(this.option("scaleRatio")*(se-Q)),this.option(this._dimension,re/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return"never"===this.option("visibilityMode")},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(Q){return(0,_.Qd)(Q)?Q[this._dimension]||0:Q},_clean:function(){this.callBase(),this===C&&(C=null),L.A.off(this._$thumb,"."+s)},_optionChanged:function(Q){if(!this._isHidden())switch(Q.name){case"containerSize":case"contentSize":this.option()[Q.name]=this._normalizeSize(Q.value),this._update();break;case"baseContentSize":case"baseContainerSize":case"scaleRatio":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;default:this.callBase.apply(this,arguments)}},update:(0,m.Mb)(function(){this._adjustVisibility()&&this.option("visible",!0)})});j.A.add(function(){L.A.subscribeGlobal(d.A.getDocument(),(0,R.b4)(h.A.up,s),function(){C&&C.feedbackOff()})});const Y=F},34885:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>de}),D(36857);var d=D(64905),L=D(17669),j=D(60181),o=D(87550),E=D(24292),R=D(5042),m=D(12984),_=D(87951),v=D(12101),h=D(72463),s=D(49104),b=D(20736),O=D(80186),w=D(14435),f=D(91269),k=D(13992),I=D(47642),x=D(51774),g=D(87310),C=D(23862),F=D(59845),Y=D(78059),Q=D(39407),se=D(82236),ie=D(75333),ee=D(2097);const ne=(0,_.X)({},se.A,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new ie.q({store:new ee.A(this.option("items")),pageSize:0}),this._initDataController())},_compileDisplayGetter:function(){this._displayGetter=(0,Q.Hz)(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=(0,Q.Hz)(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(pe){var Be=new m.cY;return pe=this._unwrappedValue(pe),(0,h.O9)(pe)?(this._loadSingle(this._valueGetterExpr(),pe).done(function(We){this._isValueEquals(this._valueGetter(We),pe)?Be.resolve(We):Be.reject()}.bind(this)).fail(function(){Be.reject()}),this._loadValueDeferred=Be,Be.promise()):Be.reject().promise()},_rejectValueLoading:function(){var pe;null===(pe=this._loadValueDeferred)||void 0===pe||pe.reject({shouldSkipCallback:!0})},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(pe){var Be;return(pe=null!==(Be=pe)&&void 0!==Be?Be:this._getCurrentValue())&&this._dataSource&&"this"===this._valueGetterExpr()&&(pe=this._getItemKey(pe)),Y.A.unwrap(pe)},_getItemKey:function(pe){var Be=this._dataSource.key();if(Array.isArray(Be)){for(var We={},tt=0,vt=Be.length;tt<vt;tt++)We[Be[tt]]=pe[Be[tt]];return We}return Be&&"object"==typeof pe&&(pe=pe[Be]),pe},_isValueEquals:function(pe,Be){var We=this._dataSource&&this._dataSource.key(),tt=this._compareValues(pe,Be);return!tt&&We&&(0,h.O9)(pe)&&(0,h.O9)(Be)&&(tt=Array.isArray(We)?this._compareByCompositeKey(pe,Be,We):this._compareByKey(pe,Be,We)),tt},_compareByCompositeKey:function(pe,Be,We){var tt=h.Gv;if(!tt(pe)||!tt(Be))return!1;for(var vt=0,Xt=We.length;vt<Xt;vt++)if(pe[We[vt]]!==Be[We[vt]])return!1;return!0},_compareByKey:function(pe,Be,We){var tt=Y.A.unwrap,vt=(0,R.YD)(tt(pe[We]),pe),Xt=(0,R.YD)(tt(Be[We]),Be);return this._compareValues(vt,Xt)},_compareValues:function(pe,Be){return(0,Q.ao)(pe,!0)===(0,Q.ao)(Be,!0)},_initDynamicTemplates:R.lQ,_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr:function(){var pe=this.option("valueExpr");return(0,h.Kg)(pe)&&"this"!==pe||(0,h.Tn)(pe)?pe:null},_dataExpressionOptionChanged:function(pe){switch(pe.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._initDynamicTemplates(),this._setCollectionWidgetOption("displayExpr")}}});var _e=D(89902),be=D(95788),oe=(0,w.zk)(),W=["startswith","contains","endwith","notcontains"],z="android"!==C.A.real().platform,X=I.A.inherit({_supportedKeys:function(){var pe=this.callBase();return(0,_.X)({},pe,{tab:function(Be){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(Be);var We=(0,E.A)(this._list.option("focusedElement"));We.length&&this._setSelectedElement(We)}pe.tab.apply(this,arguments)},space:R.lQ,home:R.lQ,end:R.lQ})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(pe){var Be=this._valueGetter(this._list._getItemData(pe));this._setValue(Be)},_setValue:function(pe){this.option("value",pe)},_getDefaultOptions:function(){return(0,_.X)(this.callBase(),(0,_.X)(ne._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:b.A.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,onSelectionChanged:null,onItemClick:R.lQ,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},wrapItemText:!1,useItemTextAsTitle:!1}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),(0,_.X)(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_setListFocusedElementOptionChange:function(){this._list._updateParentActiveDescendant=this._updateActiveDescendant.bind(this)},_initItems:function(){var pe=this.option().items;pe&&!pe.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new _e.M("item")})},_isEditable:function(){return this.callBase()||this.option("searchEnabled")},_saveFocusOnWidget:function(pe){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:function(pe,Be,We){return pe>We?Be:pe<Be?We:pe},_items:function(){var pe=this._getPlainItems(!this._list&&this._dataSource.items());return new F.A(pe).filter("disabled","<>",!0).toArray()},_calcNextItem:function(pe){var Be=this._items();return Be[this._fitIntoRange(this._getSelectedIndex()+pe,0,Be.length-1)]},_getSelectedIndex:function(){var pe=this._items(),Be=this.option("selectedItem"),We=-1;return(0,v.__)(pe,function(tt,vt){if(this._isValueEquals(vt,Be))return We=tt,!1}.bind(this)),We},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup.$wrapper().addClass(this._popupWrapperClass());var pe=this._popup.$content();f.A.off(pe,"mouseup"),f.A.on(pe,"mouseup",this._saveFocusOnWidget.bind(this))},_updateCustomBoundaryContainer:function(){var pe=this.option("dropDownOptions.container"),Be=pe&&(0,E.A)(pe);if(Be&&Be.length&&!(0,h.l6)(Be.get(0))){var We=[].slice.call(Be.parents());We.unshift(Be.get(0)),(0,v.__)(We,function(tt,vt){return vt!==(0,E.A)("body").get(0)&&("hidden"===oe.getComputedStyle(vt).overflowY?(this._$customBoundaryContainer=(0,E.A)(vt),!1):void 0)}.bind(this))}},_popupWrapperClass:function(){return"dx-dropdownlist-popup-wrapper"},_renderInputValue:function(){var pe=this._getCurrentValue();return this._rejectValueLoading(),this._loadInputValue(pe,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,pe))},_loadInputValue:function(pe,Be){return this._loadItem(pe).always(Be)},_getItemFromPlain:function(pe,Be){var We,tt;return Be&&"object"!=typeof pe&&(Be.itemByValue||(Be.itemByValue={},(We=this._getPlainItems()).forEach(function(vt){Be.itemByValue[this._valueGetter(vt)]=vt},this)),tt=Be.itemByValue[pe]),tt||(We=this._getPlainItems(),tt=(0,R.VM)(We,function(vt){return this._isValueEquals(this._valueGetter(vt),pe)}.bind(this))[0]),tt},_loadItem:function(pe,Be){var We=this._getItemFromPlain(pe,Be);return void 0!==We?(new m.cY).resolve(We).promise():this._loadValue(pe)},_getPlainItems:function(pe){var Be=[];pe=pe||this.option("items")||this._dataSource.items()||[];for(var We=0;We<pe.length;We++)pe[We]&&pe[We].items?Be=Be.concat(pe[We].items):Be.push(pe[We]);return Be},_updateActiveDescendant(pe){var Be,We=this.option("opened"),tt=null===(Be=this._list)||void 0===Be?void 0:Be.getFocusedItemId(),vt=(0,E.A)("#".concat(tt)).length>0;this.setAria({activedescendant:We&&vt&&tt||null},pe)},_setSelectedItem:function(pe){var Be=this._displayValue(pe);this.option("selectedItem",(0,R.YD)(pe,null)),this.option("displayValue",Be)},_displayValue:function(pe){return this._displayGetter(pe)},_refreshSelected:function(){var pe={};this._listItemElements().each(function(Be,We){var tt=(0,E.A)(We),vt=this._valueGetter(tt.data("dxListItemData"));this._isSelectedValue(vt,pe)?this._list.selectItem(tt):this._list.unselectItem(tt)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){!this.option("focusStateEnabled")||!this._list||this._list.option("focusedElement",null)},_isSelectedValue:function(pe){return this._isValueEquals(pe,this.option("value"))},_validateSearchMode:function(){var pe=this.option("searchMode"),Be=pe.toLowerCase();if(!W.includes(Be))throw g.A.Error("E1019",pe)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._initDataController(),this._setListOption("_dataController",this._dataController),this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},clear:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(".dx-list-item"):(0,E.A)()},_popupConfig:function(){return(0,_.X)(this.callBase(),{templatesRenderAsynchronously:!1,autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this.callBase(),this._renderList()},_getKeyboardListeners(){var pe=this._canListHaveFocus();return this.callBase().concat([!pe&&this._list])},_renderList:function(){this._listId="dx-"+(new k.A)._value;var pe=(0,E.A)("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._$list=pe,this._list=this._createComponent(pe,x.A,this._listConfig()),this._refreshList(),this._renderPreventBlurOnListClick(),this._setListFocusedElementOptionChange()},_renderPreventBlurOnListClick:function(){var pe=(0,s.b4)("mousedown","dxDropDownList");f.A.off(this._$list,pe),f.A.on(this._$list,pe,Be=>Be.preventDefault())},_getControlsAria(){return this._list&&this._listId},_renderOpenedState:function(){this.callBase(),this._list&&this._updateActiveDescendant(),this.setAria("owns",this._popup&&this._popupContentId)},_setDefaultAria:function(){this.setAria({haspopup:"listbox",autocomplete:"list"})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){return!!this._list.option("dataSource")!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===C.A.real().deviceType},_listConfig:function(){var pe={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),encodeNoDataText:this.option("encodeNoDataText"),grouped:this.option("grouped"),wrapItemText:this.option("wrapItemText"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_dataController:this._dataController,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(pe.tabIndex=null),pe},_canListHaveFocus:()=>!1,_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._updatePopupWidth(),this._updateListDimensions(),this._contentReadyAction()},_setListOption:function(pe,Be){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(pe){this._listItemClickHandler(pe),this._itemClickAction(pe)},_listItemClickHandler:R.lQ,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_needClearFilter:function(){return!this._canKeepDataSource()&&this._needPassDataSourceToList()},_canKeepDataSource:function(){var pe=this._isMinSearchLengthExceeded();return this._dataController.isLoaded()&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!pe&&!this._isLastMinSearchLengthExceeded},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return(0,s.b4)("input",this.NAME+"Search")},_getCompositionStartEvent:function(){return(0,s.b4)("compositionstart",this.NAME+"CompositionStart")},_getCompositionEndEvent:function(){return(0,s.b4)("compositionend",this.NAME+"CompositionEnd")},_getSetFocusPolicyEvent:function(){return(0,s.b4)("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),f.A.on(this._input(),this._getSetFocusPolicyEvent(),()=>{this._setFocusPolicy()}),this._shouldRenderSearchEvent()&&(f.A.on(this._input(),this._getSearchEvent(),pe=>{this._searchHandler(pe)}),z&&(f.A.on(this._input(),this._getCompositionStartEvent(),()=>{this._isTextCompositionInProgress(!0)}),f.A.on(this._input(),this._getCompositionEndEvent(),pe=>{this._isTextCompositionInProgress(void 0),this._searchHandler(pe,this._searchValue())})))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){f.A.off(this._input(),this._getSearchEvent()),f.A.off(this._input(),this._getSetFocusPolicyEvent()),z&&(f.A.off(this._input(),this._getCompositionStartEvent()),f.A.off(this._input(),this._getCompositionEndEvent())),this.callBase()},_isTextCompositionInProgress:function(pe){if(!arguments.length)return this._isTextComposition;this._isTextComposition=pe},_searchHandler:function(pe,Be){if(!this._isTextCompositionInProgress()){if(!this._isMinSearchLengthExceeded())return void this._searchCanceled();var We=this.option("searchTimeout");We?(this._clearSearchTimer(),this._searchTimer=setTimeout(()=>{this._searchDataSource(Be)},We)):this._searchDataSource(Be)}},_searchCanceled:function(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){var pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._searchValue();this._filterDataSource(pe)},_filterDataSource:function(pe){this._clearSearchTimer();var Be=this._dataController;Be.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),Be.searchOperation(this.option("searchMode")),Be.searchValue(pe),Be.load().done(this._dataSourceFiltered.bind(this,pe))},_clearFilter:function(){var pe=this._dataController;pe.searchValue()&&pe.searchValue(null)},_dataSourceFiltered:function(){this._isLastMinSearchLengthExceeded=this._isMinSearchLengthExceeded(),this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){if(!this.option("readOnly")&&this._searchValue()){var pe=this._shouldOpenPopup();pe&&!this._isFocused()||(this.option("opened",pe),pe&&(this._updatePopupWidth(),this._updateListDimensions()))}},_dataSourceChangedHandler:function(pe){0===this._dataController.pageIndex()?this.option().items=pe:this.option().items=this.option().items.concat(pe)},_hasItemsToShow:function(){var We=(this._dataController.items()||[]).length;return!(!this._needPassDataSourceToList()||!We)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._updatePopupWidth(),this._updateListDimensions()},_dimensionChanged:function(){this.callBase(),this._updateListDimensions()},_needPopupRepaint:function(){var pe=this._dataController,Be=pe.pageIndex(),We=(0,h.O9)(this._pageIndex)&&Be<=this._pageIndex||pe.isLastPage()&&!this._list._scrollViewIsFull();return this._pageIndex=Be,We},_updateListDimensions:function(){this._popup&&(this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions())},_getMaxHeight:function(){var pe=this.$element(),Be=this._$customBoundaryContainer,We=pe.offset().top-(Be?Be.offset().top:0),tt=(0,O.P$)(oe),vt=Be?Math.min((0,O.P$)(Be),tt):tt,Xt=Math.max(We,vt-We-(0,O.P$)(pe));return Math.min(.5*vt,Xt)},_clean:function(){this._list&&delete this._list,delete this._isLastMinSearchLengthExceeded,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_setSubmitValue:function(){var pe=this.option("value"),Be=this._shouldUseDisplayValue(pe)?this._displayGetter(pe):pe;this._getSubmitElement().val(Be)},_shouldUseDisplayValue:function(pe){return"this"===this.option("valueExpr")&&(0,h.Gv)(pe)},_optionChanged:function(pe){switch(this._dataExpressionOptionChanged(pe),pe.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(pe.name,pe.value),this.callBase(pe);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"wrapItemText":case"noDataText":case"encodeNoDataText":case"useItemTextAsTitle":this._setListOption(pe.name);break;case"displayValue":this.option("text",pe.value);break;case"itemTemplate":case"searchTimeout":break;case"selectedItem":pe.previousValue!==pe.value&&this._selectionChangedAction({selectedItem:pe.value});break;default:this.callBase(pe)}}}).include(ne,be.A);(0,d.A)("dxDropDownList",X);var he="dx-selectbox-popup-wrapper",Ie=X.inherit({_supportedKeys(){var pe=this,Be=this.callBase(),We=function(vt){this._isEditable()?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(vt.preventDefault(),this.clear()),this._savedTextRemoveEvent=vt,this._preventSubstitution=!0},tt=function(){pe.option("searchEnabled")&&pe._valueSubstituted()&&pe._searchHandler()};return(0,_.X)({},Be,{tab(){this.option("opened")&&!this._popup.getFocusableElements().length&&this._resetCaretPosition(!0),Be.tab&&Be.tab.apply(this,arguments),this._cancelSearchIfNeed()},upArrow(vt){if(Be.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(vt),!0},downArrow(vt){if(Be.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(vt),!0},leftArrow(){var vt;tt(),null===(vt=Be.leftArrow)||void 0===vt||vt.apply(this,arguments)},rightArrow(){tt(),Be.rightArrow&&Be.rightArrow.apply(this,arguments)},home(){tt(),Be.home&&Be.home.apply(this,arguments)},end(){tt(),Be.end&&Be.end.apply(this,arguments)},escape(){var vt=Be.escape&&Be.escape.apply(this,arguments);return this._cancelEditing(),vt??!0},enter(vt){var Xt=this.option("opened"),Nt=this._input().val().trim(),Qe=Nt&&this._list&&!this._list.option("focusedElement");if(!Nt&&(0,h.O9)(this.option("value"))&&this.option("allowClearing"))this._saveValueChangeEvent(vt),this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return vt.preventDefault(),Qe&&(Xt&&this._toggleOpenState(),this._valueChangeEventHandler(vt)),Xt;if(Be.enter&&Be.enter.apply(this,arguments))return Xt}},space(vt){var Xt=this.option("opened"),Nt=this.option("searchEnabled"),Qe=this.option("acceptCustomValue");if(Xt&&!Nt&&!Qe)return vt.preventDefault(),this._valueChangeEventHandler(vt),!0},backspace:We,del:We})},_getDefaultOptions(){return(0,_.X)(this.callBase(),{placeholder:b.A.format("Select"),fieldTemplate:null,customItemCreateEvent:"change",valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating(pe){(0,h.O9)(pe.customItem)||(pe.customItem=pe.text)},showSelectionControls:!1,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,useHiddenSubmitElement:!0})},_init(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup(){this.$element().addClass("dx-selectbox"),this._renderTooltip(),this.callBase(),this._$container.addClass("dx-selectbox-container")},_createPopup(){this.callBase(),this._popup.$element().addClass("dx-selectbox-popup"),this._popup.$overlayContent().attr("tabindex",-1)},_popupWrapperClass(){return"".concat(this.callBase()," ").concat(he)},_setDeprecatedOptions(){this.callBase(),(0,_.X)(this._deprecatedOptions,{valueChangeEvent:{since:"22.2",alias:"customItemCreateEvent"}})},_cancelEditing(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement(){var pe;if(this._searchValue()){var{items:We,selectedItem:tt}=this.option(),vt=this._list._itemElements(),Xt=null!==(pe=We?.indexOf(tt))&&void 0!==pe?pe:-1,Nt=-1===Xt||this._isCustomItemSelected()?null:vt.eq(Xt);this._focusListElement(Nt)}else this._focusListElement(null)},_renderFocusedElement(){if(this._list){if(!this._searchValue()||this.option("acceptCustomValue"))return void this._focusListElement(null);var We=this._list._itemElements().not(".dx-state-disabled").eq(0);this._focusListElement(We)}},_focusListElement(pe){this._preventInputValueRender=!0,this._list.option("focusedElement",(0,j.c)(pe)),delete this._preventInputValueRender},_scrollToSelectedItem(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler(){this.callBase(),this._dataController.paginate()&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue(){return this._renderInputValue(),this._setSubmitValue(),(new m.cY).resolve()},_renderInputValue(){return this.callBase().always(()=>{this._renderInputValueAsync()})},_renderInputValueAsync(){this._renderTooltip(),this._renderInputValueImpl().always(()=>{this._refreshSelected()})},_renderInputValueImpl(){return this._renderField(),(new m.cY).resolve()},_setNextItem(pe){var Be=this._calcNextItem(pe),We=this._valueGetter(Be);this._setValue(We)},_setNextValue(pe){(this._dataController.isLoaded()?(new m.cY).resolve():this._dataController.load()).done(()=>{var We=this._getSelectedIndex(),tt=this._dataController.pageSize(),vt=this._dataController.isLastPage(),Xt=We===this._items().length-1;this._saveValueChangeEvent(pe);var Nt="downArrow"===(0,s.YD)(pe)?1:-1;tt&&!vt&&Xt&&Nt>0?(this._popup||this._createPopup(),this._dataController.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,Nt))):this._setNextItem(Nt)})},_setSelectedItem(pe){var Be=!this._isCustomValueAllowed()&&void 0===pe;this.callBase(Be?null:pe),!Be&&(!this._isEditable()||this._isCustomItemSelected())&&this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed(){return this.option("acceptCustomValue")||this.callBase()},_displayValue(pe){return pe=!(0,h.O9)(pe)&&this._isCustomValueAllowed()?this.option("value"):pe,this.callBase(pe)},_listConfig(){var pe=(0,_.X)(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&(0,_.X)(pe,{showSelectionControls:!0,selectByClick:!0}),pe},_listFocusedItemChangeHandler(pe){if(!this._preventInputValueRender){var Be=pe.component,We=(0,E.A)(Be.option("focusedElement")),tt=Be._getItemData(We);this._updateField(tt)}},_updateField(pe){if(!this._getTemplateByOption("fieldTemplate")||!this.option("fieldTemplate")){var We=this._displayGetter(pe);return this.option("text",We),void this._renderDisplayText(We)}this._renderField()},_getSelectionChangeHandler(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):R.lQ},_selectionChangeHandler(pe){(0,v.__)(pe.addedItems||[],(Be,We)=>{this._setValue(this._valueGetter(We))})},_getActualSearchValue(){return this._dataController.searchValue()},_toggleOpenState(pe){if(!this.option("disabled")){if(!(pe=arguments.length?pe:!this.option("opened"))&&!this._shouldClearFilter()&&this._restoreInputText(!0),this._wasSearch()&&pe)if(this._wasSearch(!1),(this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded())&&this._dataController.getDataSource()){if(this._searchTimer)return;var We=this._getActualSearchValue();We&&this._wasSearch(!0),this._filterDataSource(We||null)}else this._setListOption("items",[]);pe&&this._scrollToSelectedItem(),this.callBase(pe)}},_renderTooltip(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions(){this.callBase(),this._updatePopupWidth(),this._updateListDimensions()},_isValueEqualInputText(){var pe=this.option("selectedItem");if(null===pe)return!1;var Be=this._displayGetter(pe);return(Be?String(Be):"")===this._searchValue()},_popupHidingHandler(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_popupHiddenHandler(){this.callBase(),this._shouldCancelSearch()&&(this._wasSearch(!1),this._searchCanceled(),this._shouldCancelSearch(!1))},_restoreInputText(pe){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(()=>{var{acceptCustomValue:Be,text:We,selectedItem:tt}=this.option();Be?!pe&&!this._isValueChanging&&(this._updateField(tt??this._createCustomItem(We)),this._clearFilter()):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?this._clearTextValue():this._isValueEqualInputText()||this._renderInputValue().always(vt=>{var Xt=(0,R.YD)(vt,tt);this._setSelectedItem(Xt),this._updateField(Xt),this._clearFilter()})})},_valueChangeEventIncludesBlur(){return this.option(this._getValueChangeEventOptionName()).includes("blur")},_isPreventedFocusOutEvent(pe){return this._preventNestedFocusEvent(pe)||this._valueChangeEventIncludesBlur()},_focusOutHandler(pe){this._isPreventedFocusOutEvent(pe)||(this._isOverlayNestedTarget(pe.relatedTarget)||(this._restoreInputText(),this._clearSearchTimer()),this._cancelSearchIfNeed(pe)),pe.target=this._input().get(0),this.callBase(pe)},_cancelSearchIfNeed(pe){var Be,{searchEnabled:We}=this.option(),tt=this._isOverlayNestedTarget(pe?.relatedTarget);if(this._wasSearch()&&We&&!tt){var Xt=null===(Be=this._popup)||void 0===Be?void 0:Be._hideAnimationProcessing;this._clearSearchTimer(),Xt?this._shouldCancelSearch(!0):(this._wasSearch(!1),this._searchCanceled())}},_shouldCancelSearch(pe){if(!arguments.length)return this._shouldCancelSearchValue;this._shouldCancelSearchValue=pe},_isOverlayNestedTarget:pe=>!!(0,E.A)(pe).closest(".".concat(he)).length,_clearTextValue(){var pe=this.option("selectedItem"),Be=this._displayGetter(pe);pe&&""!==Be&&(this._savedTextRemoveEvent&&this._saveValueChangeEvent(this._savedTextRemoveEvent),this.option("value",null)),delete this._savedTextRemoveEvent},_shouldOpenPopup(){return this._needPassDataSourceToList()&&this._wasSearch()},_isFocused(){var pe=L.A.getActiveElement(this.element());return this.callBase()&&(0,E.A)(pe).closest(this._input()).length>0},_getValueChangeEventOptionName:()=>"customItemCreateEvent",_renderValueChangeEvent(){this._isEditable()&&this.callBase()},_fieldRenderData(){var pe=this._list&&this.option("opened")&&(0,E.A)(this._list.option("focusedElement"));return pe&&pe.length?this._list._getItemData(pe):this.option("selectedItem")},_isSelectedValue(pe){return this._isValueEquals(pe,this.option("value"))},_shouldCloseOnItemClick(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler(pe){var Be=this._getCurrentValue();this._focusListElement((0,E.A)(pe.itemElement)),this._saveValueChangeEvent(pe.event),this._completeSelection(this._valueGetter(pe.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&Be===this._valueGetter(pe.itemData)&&this._updateField(pe.itemData),this._shouldClearFilter()&&this._cancelSearchIfNeed()},_shouldClearFilter(){return this._wasSearch()},_completeSelection(pe){this._setValue(pe)},_loadItem(pe,Be){var We=this,tt=new m.cY;return this.callBase(pe,Be).done(vt=>{tt.resolve(vt)}).fail(vt=>{if(!vt?.shouldSkipCallback){var Xt=We.option("selectedItem");We.option("acceptCustomValue")&&pe===We._valueGetter(Xt)?tt.resolve(Xt):tt.reject()}}),tt.promise()},_loadInputValue(pe,Be){return this._loadItemDeferred=this._loadItem(pe).always(Be),this._loadItemDeferred},_isCustomItemSelected(){var pe=this.option("selectedItem"),Be=this._searchValue(),We=this._displayGetter(pe);return!We||Be!==We.toString()},_valueChangeEventHandler(pe){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&!this._isValueChanging&&(this._isValueChanging=!0,this._customItemAddedHandler(pe))},_initCustomItemCreatingAction(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem(pe){var Be={text:pe},We=this._customItemCreatingAction(Be),tt=(0,R.YD)(We,Be.customItem);return(0,h.O9)(We)&&o.A.log("W0015","onCustomItemCreating","customItem"),tt},_customItemAddedHandler(pe){var Be=this._searchValue(),We=this._createCustomItem(Be);if(this._saveValueChangeEvent(pe),void 0===We)throw this._renderValue(),o.A.Error("E0121");(0,h.yL)(We)?(0,m.Sx)(We).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(We)},_setCustomItem(pe){this._disposed||(this.option("selectedItem",pe=pe||null),this._cancelSearchIfNeed(),this._setValue(this._valueGetter(pe)),this._renderDisplayText(this._displayGetter(pe)),this._isValueChanging=!1)},_clearValueHandler(pe){return this._preventFiltering=!0,this.callBase(pe),this._searchCanceled(),!1},_wasSearch(pe){if(!arguments.length)return!!this._wasSearchValue;this._wasSearchValue=pe},_searchHandler(){this._preventFiltering?delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),this.callBase(arguments))},_dataSourceFiltered(pe){this.callBase(),null!==pe&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted(){var pe=this._input().get(0),Be=this._searchValue().length,We=0===pe.selectionStart&&pe.selectionEnd===Be,tt=pe.selectionStart!==pe.selectionEnd,vt=Be===pe.selectionEnd;return this._wasSearch()&&tt&&!We&&vt&&this._shouldSubstitutionBeRendered()},_shouldSubstitutionBeRendered(){return!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution(){if(this._shouldSubstitutionBeRendered()){var pe=this._list&&this._getPlainItems(this._list.option("items"))[0];if(pe){var Be=this._input(),We=Be.val().length;if(0!==We){var tt=Be.get(0),vt=this._displayGetter(pe).toString();tt.value=vt,this._caret({start:We,end:vt.length})}}}else delete this._preventSubstitution},_dispose(){this._renderInputValueAsync=R.lQ,delete this._loadItemDeferred,this.callBase()},_optionChanged(pe){switch(pe.name){case"customItemCreateEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":this._invalidate();break;case"allowClearing":break;default:this.callBase(pe)}}});(0,d.A)("dxSelectBox",Ie);const de=Ie},63789:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>O});var r=D(72463),d=D(59845),L=D(5042),j=D(12984);class o{constructor(f){this.options=f,this._setOption("disabledItemKeys",[]),this._clearItemKeys()}_clearItemKeys(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])}validate(){}_setOption(f,k){this.options[f]=k}onSelectionChanged(){var f=this.options.addedItemKeys,k=this.options.removedItemKeys,I=this.options.addedItems,x=this.options.removedItems,g=this.options.selectedItems,C=this.options.selectedItemKeys,F=this.options.onSelectionChanged||L.lQ;this._clearItemKeys(),F({selectedItems:g,selectedItemKeys:C,addedItemKeys:f,removedItemKeys:k,addedItems:I,removedItems:x})}equalKeys(f,k){return this.options.equalByReference&&(0,r.Gv)(f)&&(0,r.Gv)(k)?f===k:(0,L.RL)(f,k)}getSelectableItems(f){return f.filter(function(k){return!(null!=k&&k.disabled)})}_clearSelection(f,k,I,x){return f=f||[],f=Array.isArray(f)?f:[f],this.validate(),this.selectedItemKeys(f,k,I,x)}_removeTemplateProperty(f){return Array.isArray(f)?f.map(k=>this._removeTemplateProperty(k)):((0,r.Gv)(f)&&delete f.template,f)}_loadFilteredData(f,k,I,x){var g=encodeURI(JSON.stringify(this._removeTemplateProperty(f))).length,C=this.options.maxFilterLengthInRequest&&g>this.options.maxFilterLengthInRequest,F=new j.cY,Y={filter:C?void 0:f,select:C?this.options.dataFields():I||this.options.dataFields()};return f&&0===f.length?F.resolve([]):this.options.load(Y).done(function(Q){var se=(0,r.Qd)(Q)?Q.data:Q;k&&!x?se=se.filter(k):C&&(se=(0,d.A)(se).filter(f).toArray()),F.resolve(se)}).fail(F.reject.bind(F)),F}updateSelectedItemKeyHash(f){for(var k=0;k<f.length;k++){var I=(0,L.GP)(f[k]);(0,r.Gv)(I)||(this.options.keyHashIndices[I]=this.options.keyHashIndices[I]||[],this.options.keyHashIndices[I].push(k))}}_isAnyItemSelected(f){for(var k=0;k<f.length;k++)if(this.options.isItemSelected(f[k]))return;return!1}_getFullSelectAllState(){var f=this.options.plainItems(),k=this.options.filter(),I=this.options.ignoreDisabledItems?this.options.selectedItems:this.options.selectedItems.filter(C=>!(null!=C&&C.disabled));k&&(I=(0,d.A)(I).filter(k).toArray());var x=I.length,g=f.length-this.getSelectableItems(f).length;return x?x>=this.options.totalCount()-g||void 0:this._isAnyItemSelected(f)}_getVisibleSelectAllState(){for(var f=this.getSelectableItems(this.options.plainItems()),k=!1,I=!1,x=0;x<f.length;x++){var g=f[x],C=this.options.getItemData(g),F=this.options.keyOf(C);this.options.isSelectableItem(g)&&(this.isItemKeySelected(F)?k=!0:I=!0)}return!!k&&(!I||void 0)}}var E=D(87310);class R extends o{getSelectedItems(){return this._loadFilteredData(this.options.selectionFilter)}getSelectedItemKeys(){var f=new j.cY,k=this,I=this.options.key(),x=(0,r.Kg)(I)?[I]:I;return this._loadFilteredData(this.options.selectionFilter,null,x).done(function(g){var C=g.map(function(F){return k.options.keyOf(F)});f.resolve(C)}).fail(f.reject),f.promise()}selectedItemKeys(f,k,I,x){if(x){var g=this.options.filter();!g||JSON.stringify(g)===JSON.stringify(this.options.selectionFilter)&&I?this._setOption("selectionFilter",I?[]:null):this._addSelectionFilter(I,g,x)}else{k||this._setOption("selectionFilter",[]);for(var F=0;F<f.length;F++)I?this.removeSelectedItem(f[F]):this.addSelectedItem(f[F],x,!k)}return this.onSelectionChanged(),(new j.cY).resolve()}setSelectedItems(f){this._setOption("selectionFilter",null);for(var k=0;k<f.length;k++)this.addSelectedItem(f[k])}isItemDataSelected(f){return this.isItemKeySelected(f)}isItemKeySelected(f){var k=this.options.selectionFilter;return!k||!!(0,d.A)([f]).filter(k).toArray().length}_getKeyExpr(){var f=this.options.key();return Array.isArray(f)&&1===f.length?f[0]:f}_normalizeKey(f){var k=this.options.key();return Array.isArray(k)&&1===k.length?f[k[0]]:f}_getFilterByKey(f){var k=this._getKeyExpr(),I=[k,"=",this._normalizeKey(f)];if(Array.isArray(k)){I=[];for(var x=0;x<k.length;x++)I.push([k[x],"=",f[k[x]]]),x!==k.length-1&&I.push("and")}return I}addSelectedItem(f,k,I){var x=this._getFilterByKey(f);this._addSelectionFilter(!1,x,k,I)}removeSelectedItem(f){var k=this._getFilterByKey(f);this._addSelectionFilter(!0,k)}validate(){var f=this.options.key;if(f&&void 0===f())throw E.A.Error("E1042","Deferred selection")}_findSubFilter(f,k){if(!f)return-1;for(var I=JSON.stringify(k),x=0;x<f.length;x++){var g=f[x];if(g&&JSON.stringify(g)===I)return x}return-1}_isLastSubFilter(f,k){return!(!f||!k||this._findSubFilter(f,k)!==f.length-1&&0!==this._findSubFilter([f],k))}_addFilterOperator(f,k){return f.length>1&&(0,r.Kg)(f[1])&&f[1]!==k&&(f=[f]),f.length&&f.push(k),f}_denormalizeFilter(f){return f&&(0,r.Kg)(f[0])&&(f=[f]),f}_isOnlyNegativeFiltersLeft(f){return f.every((k,I)=>I%2==0?Array.isArray(k)&&"!"===k[0]:"and"===k)}_addSelectionFilter(f,k,I,x){var g,C=f?["!",k]:k,F=f?"and":"or",Y=!0,Q=this.options.selectionFilter||[];if(null!==(g=Q=this._denormalizeFilter(Q))&&void 0!==g&&g.length&&!x){var se=this._removeSameFilter(Q,k,f,I),ie=this._removeSameFilter(Q,k,!f);f&&(-1!==se||-1!==ie)&&this._isOnlyNegativeFiltersLeft(Q)&&(Q=[]);var re=this._isKeyFilter(k)&&this._hasKeyFiltersOnlyStartingFromIndex(Q,ie);Y=k.length&&!re}Y&&(Q=this._addFilterOperator(Q,F)).push(C),Q=this._normalizeFilter(Q),this._setOption("selectionFilter",f||Q.length?Q:null)}_normalizeFilter(f){return f&&1===f.length&&(f=f[0]),f}_removeFilterByIndex(f,k,I){var x=f[1];f.splice(k>0?k-1:k,2),I&&"and"===x&&f.splice(0,f.length)}_isSimpleKeyFilter(f,k){return 3===f.length&&f[0]===k&&"="===f[1]}_isKeyFilter(f){if(2===f.length&&"!"===f[0])return this._isKeyFilter(f[1]);var k=this._getKeyExpr();if(Array.isArray(k)){if(f.length!==2*k.length-1)return!1;for(var I=0;I<k.length;I++)if(I>0&&"and"!==f[2*I-1]||!this._isSimpleKeyFilter(f[2*I],k[I]))return!1;return!0}return this._isSimpleKeyFilter(f,k)}_hasKeyFiltersOnlyStartingFromIndex(f,k){if(k>=0){for(var I=k;I<f.length;I++)if("string"!=typeof f[I]&&!this._isKeyFilter(f[I]))return!1;return!0}return!1}_removeSameFilter(f,k,I,x){if(k=I?["!",k]:k,JSON.stringify(k)===JSON.stringify(f))return f.splice(0,f.length),0;var g=this._findSubFilter(f,k);if(g>=0)return this._removeFilterByIndex(f,g,x),g;for(var C=0;C<f.length;C++)if(Array.isArray(f[C])&&f[C].length>2){var F=this._removeSameFilter(f[C],k,!1,x);if(F>=0)return f[C].length?1===f[C].length&&(f[C]=f[C][0]):this._removeFilterByIndex(f,C,x),F}return-1}getSelectAllState(){var f=this.options.filter(),k=this.options.selectionFilter;if(!k)return!0;if(!k.length)return!1;if(f&&f.length){if(k=this._denormalizeFilter(k),this._isLastSubFilter(k,f))return!0;if(this._isLastSubFilter(k,["!",f]))return!1}}loadSelectedItemsWithFilter(){var f=this.options.filter(),k=this.options.selectionFilter;return this._loadFilteredData(f?[f,"and",k]:k)}}var m=D(89518),_=D(94014),v=D(39407),h=function(w,f){this.getLocalFilter=function(C,F,Y,Q){return x.bind(this,F=void 0===F?L.RL:F,C,Y,Q)},this.getExpr=function(C){var F;if(C)return w.forEach(function(Y,Q){var se;F=F||[],Q>0&&F.push(f?"and":"or"),se=(0,r.Kg)(C)?g(C,Y):function(ie,ee){for(var re=[],ne=0,_e=ie.length;ne<_e;ne++){var be=ie[ne],oe=(0,v.Hz)(be),we=g(be,ee&&oe(ee));if(!we)break;ne>0&&re.push(f?"or":"and"),re.push(we)}return re}(C,Y),F.push(se)}),F&&1===F.length&&(F=F[0]),F},this.getCombinedFilter=function(C,F){var Y=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Q=this.getExpr(C),se=Q;return(Y||f)&&F&&(Q?((se=[]).push(Q),se.push(F)):se=F),se};var k,I=function(C,F,Y){return Array.isArray(Y)?C.map(Q=>F(Q)):C};function x(C,F,Y,Q,se){var ee,re,ie=F(se);if(!Y&&(ee=(0,L.GP)(ie),!(0,r.Gv)(ee)))return function(_e,be){if(!k){k={};for(var oe=I(w,_e,be),me=0;me<oe.length;me++)k[(0,L.GP)(oe[me])]=!0}return k}(F,Q)[ee]?!f:!!f;for(re=0;re<w.length;re++)if(C(w[re],ie))return!f;return!!f}function g(C,F){if(void 0!==F)return[C,f?"<>":"=",F]}};class s extends o{constructor(f){super(f),this._initSelectedItemKeyHash()}_initSelectedItemKeyHash(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})}getSelectedItemKeys(){return this.options.selectedItemKeys.slice(0)}getSelectedItems(){return this.options.selectedItems.slice(0)}_preserveSelectionUpdate(f,k){var x,g,C,I=this.options.keyOf;if(I){var F=k&&f.length>1&&!this.options.equalByReference;for(F&&(x={}),C=0;C<f.length;C++){var Y=f[C],Q=I(Y);k?(g=this.removeSelectedItem(Q,x,Y?.disabled),x&&g>=0&&(x[g]=!0)):this.addSelectedItem(Q,Y)}F&&this._batchRemoveSelectedItems(x)}}_batchRemoveSelectedItems(f){var k=this.options.selectedItemKeys.slice(0),I=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var x=0;x<k.length;x++)f[x]||(this.options.selectedItemKeys.push(k[x]),this.options.selectedItems.push(I[x]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)}_loadSelectedItemsCore(f,k,I,x){var g=arguments.length>4&&void 0!==arguments[4]&&arguments[4],C=new j.cY,F=this.options.key();if(!f.length&&!I)return C.resolve([]),C;if(I&&k&&!x)return C.resolve(this.getSelectedItems()),C;var Y=new h(f,I),Q=Y.getCombinedFilter(F,x,g),se=[];if(k){var ie=this.options.selectedItems;se=Q&&f.length!==ie.length?(0,d.A)(ie).filter(Q).toArray():ie.slice(0)}var ee=se.length?se:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData),re=Y.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,F);return ee=ee.filter(re),se.length||!I&&ee.length===f.length?C.resolve(ee):C=this._loadFilteredData(Q,re,null,I),C}_replaceSelectionUpdate(f){var k=[],I=this.options.keyOf;if(I){for(var x=0;x<f.length;x++){var C=I(f[x]);k.push(C)}this.setSelectedItems(k,f)}}_warnOnIncorrectKeys(f){for(var k=this.options.allowNullValue,I=0;I<f.length;I++){var x=f[I];(!k||null!==x)&&!this.isItemKeySelected(x)&&E.A.log("W1002",x)}}_isMultiSelectEnabled(){var f=this.options.mode;return"all"===f||"multiple"===f}_requestInProgress(){var f;return"pending"===(null===(f=this._lastLoadDeferred)||void 0===f?void 0:f.state())}_concatRequestsItems(f,k,I,x){var g,C=k?f:[];return g=x||(0,m.R3)(f,this.options.selectedItemKeys),{addedItems:I.added.concat(g),removedItems:I.removed.concat(C),keys:f}}_collectLastRequestData(f,k,I,x){var g=k&&I,C={added:[],removed:[]},F=this._isMultiSelectEnabled(),Y=F?this._lastRequestData:{};return F&&(this._shouldMergeWithLastRequest&&(g?(this._lastLoadDeferred.reject(),Y={}):(0,_.V)(f,this.options.selectedItemKeys)||(C.added=Y.addedItems,C.removed=Y.removedItems,k||this._lastLoadDeferred.reject())),Y=this._concatRequestsItems(f,k,C,this._shouldMergeWithLastRequest?void 0:x)),Y}_updateKeysByLastRequestData(f,k,I){var g,C,x=f;return this._isMultiSelectEnabled()&&this._shouldMergeWithLastRequest&&!k&&!I&&(x=(0,m.R3)(f.concat(null===(g=this._lastRequestData)||void 0===g?void 0:g.addedItems),null===(C=this._lastRequestData)||void 0===C?void 0:C.removedItems),x=(0,m.Gn)(x)),x}_loadSelectedItems(f,k,I,x){var g=arguments.length>4&&void 0!==arguments[4]&&arguments[4],C=this,F=new j.cY,Y=C.options.filter();return this._shouldMergeWithLastRequest=this._requestInProgress(),this._lastRequestData=this._collectLastRequestData(f,k,I,x),(0,j.z7)(C._lastLoadDeferred).always(function(){var Q=C._updateKeysByLastRequestData(f,k,I);C._shouldMergeWithLastRequest=!1,C._loadSelectedItemsCore(Q,k,I,Y,g).done(F.resolve).fail(F.reject)}),C._lastLoadDeferred=F,F}selectedItemKeys(f,k,I,x,g){var F=this,Y=F._loadSelectedItems(f,I,x,g,arguments.length>5&&void 0!==arguments[5]&&arguments[5]);return Y.done(function(Q){k?F._preserveSelectionUpdate(Q,I):F._replaceSelectionUpdate(Q),F.onSelectionChanged()}),Y}addSelectedItem(f,k){if((0,r.O9)(k)&&!this.options.ignoreDisabledItems&&k.disabled)-1===this.options.disabledItemKeys.indexOf(f)&&this.options.disabledItemKeys.push(f);else{var I=this._getKeyHash(f);-1===this._indexOfSelectedItemKey(I)&&(!(0,r.Gv)(I)&&this.options.keyHashIndices&&(this.options.keyHashIndices[I]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(f),this.options.addedItemKeys.push(f),this.options.addedItems.push(k),this.options.selectedItems.push(k))}}_getSelectedIndexByKey(f,k){for(var I=this.options.selectedItemKeys,x=0;x<I.length;x++)if((!k||!k[x])&&this.equalKeys(I[x],f))return x;return-1}_getSelectedIndexByHash(f,k){var I=this.options.keyHashIndices[f];return I&&I.length>1&&k&&(I=I.filter(function(x){return!k[x]})),I&&I[0]>=0?I[0]:-1}_indexOfSelectedItemKey(f,k){return this.options.equalByReference?this.options.selectedItemKeys.indexOf(f):(0,r.Gv)(f)?this._getSelectedIndexByKey(f,k):this._getSelectedIndexByHash(f,k)}_shiftSelectedKeyIndices(f){for(var k=f;k<this.options.selectedItemKeys.length;k++){var x=(0,L.GP)(this.options.selectedItemKeys[k]),g=this.options.keyHashIndices[x];if(g)for(var C=0;C<g.length;C++)g[C]>f&&g[C]--}}removeSelectedItem(f,k,I){if(this.options.ignoreDisabledItems||!I){var x=this._getKeyHash(f),g=!!k,C=this._indexOfSelectedItemKey(x,k);if(C<0||(this.options.removedItemKeys.push(f),this.options.removedItems.push(this.options.selectedItems[C]),g)||(this.options.selectedItemKeys.splice(C,1),this.options.selectedItems.splice(C,1),(0,r.Gv)(x)||!this.options.keyHashIndices))return C;var F=this.options.keyHashIndices[x];return F&&(F.shift(),F.length||delete this.options.keyHashIndices[x],this._shiftSelectedKeyIndices(C)),C}}_updateAddedItemKeys(f,k){for(var I=0;I<f.length;I++)this.isItemKeySelected(f[I])||(this.options.addedItemKeys.push(f[I]),this.options.addedItems.push(k[I]))}_updateRemovedItemKeys(f,k,I){for(var x=0;x<k.length;x++)this.isItemKeySelected(k[x])||(this.options.removedItemKeys.push(k[x]),this.options.removedItems.push(I[x]))}_isItemSelectionInProgress(f,k){var x;return!!(k&&this._lastRequestData&&this._requestInProgress())&&(null!==(x=this._lastRequestData.addedItems)&&void 0!==x?x:[]).includes(f)}_getKeyHash(f){return this.options.equalByReference?f:(0,L.GP)(f)}setSelectedItems(f,k){this._updateAddedItemKeys(f,k);var I=this.options.selectedItemKeys,x=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(f)),this._setOption("selectedItemKeys",f),this._setOption("selectedItems",k),this._updateRemovedItemKeys(f,I,x)}isItemDataSelected(f){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},I=this.options.keyOf(f);return this.isItemKeySelected(I,k)}isItemKeySelected(f){var I=this._isItemSelectionInProgress(f,(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).checkPending);if(!I){var x=this._getKeyHash(f);I=-1!==this._indexOfSelectedItemKey(x)}return I}getSelectAllState(f){return f?this._getVisibleSelectAllState():this._getFullSelectAllState()}loadSelectedItemsWithFilter(){var f=this.options.key(),k=this.getSelectedItemKeys(),I=this.options.filter();if(!k.length)return(0,j.cY)().resolve([]);var g=new h(k).getCombinedFilter(f,I,!0);return this._loadFilteredData(g)}}var b=D(87951);class O{constructor(f){this.options=(0,b.X)(this._getDefaultOptions(),f,{selectedItemKeys:f.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new R(this.options):new s(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)}_getDefaultOptions(){return{allowNullValue:!1,deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:L.lQ,key:L.lQ,keyOf:function(f){return f},load:function(){return(new j.cY).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(f){return f},dataFields:L.lQ,filter:L.lQ}}validate(){this._selectionStrategy.validate()}getSelectedItemKeys(){return this._selectionStrategy.getSelectedItemKeys()}getSelectedItems(){return this._selectionStrategy.getSelectedItems()}selectionFilter(f){if(void 0===f)return this.options.selectionFilter;var k=this.options.selectionFilter!==f&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(f);this.options.selectionFilter=f,k&&this.onSelectionChanged()}setSelection(f,k){return this.selectedItemKeys(f,!1,!1,!1,k)}select(f){return this.selectedItemKeys(f,!0)}deselect(f){return this.selectedItemKeys(f,!0,!0)}selectedItemKeys(f,k,I,x,g){var C;return f=null!==(C=f)&&void 0!==C?C:[],f=Array.isArray(f)?f:[f],this.validate(),this._selectionStrategy.selectedItemKeys(f,k,I,x,g)}clearSelection(){return this.selectedItemKeys([])}_addSelectedItem(f,k){this._selectionStrategy.addSelectedItem(k,f)}_removeSelectedItem(f){this._selectionStrategy.removeSelectedItem(f)}_setSelectedItems(f,k){this._selectionStrategy.setSelectedItems(f,k)}onSelectionChanged(){this._selectionStrategy.onSelectionChanged()}changeItemSelection(f,k,I){var x,g,C,Q,re,F=this.options.plainItems(),Y=F[f],se=this.options.isVirtualPaging,ie=null===(x=(g=this.options).allowLoadByRange)||void 0===x?void 0:x.call(g),ee=this.options.alwaysSelectByShift,ne=!1,_e=!1,be=W=>W>=0&&!F.filter(z=>z.loadIndex===W).length;if(se&&(0,r.O9)(Y)&&(ie&&(re=Y.loadIndex-f,f=Y.loadIndex),ne=be(this._focusedItemIndex),(0,r.O9)(this._shiftFocusedItemIndex)&&(_e=be(this._shiftFocusedItemIndex))),!this.isSelectable()||!this.isDataItem(Y))return!1;var oe=this.options.getItemData(Y),me=this.options.keyOf(oe),we=(k=k||{}).shift;if(!1===ee&&we&&(we=!1!==ie||!ne&&!_e),we&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)ie&&(ne||_e)?(C=f!==this._shiftFocusedItemIndex||this._focusedItemIndex!==this._shiftFocusedItemIndex)&&(Q=this.changeItemSelectionWhenShiftKeyInVirtualPaging(f)):C=this.changeItemSelectionWhenShiftKeyPressed(f,F,re);else if(k.control){if(this._resetItemSelectionWhenShiftKeyPressed(),!I){var N=this._selectionStrategy.isItemDataSelected(oe);"single"===this.options.mode&&this.clearSelectedItems(),N?this._removeSelectedItem(me):this._addSelectedItem(oe,me)}C=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var G=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],me);(1!==this.options.selectedItemKeys.length||!G)&&(this._setSelectedItems([me],[oe]),C=!0)}return C?((0,j.z7)(Q).done(()=>{this._focusedItemIndex=f,!I&&this.onSelectionChanged()}),!0):void 0}isDataItem(f){return this.options.isSelectableItem(f)}isSelectable(){return"single"===this.options.mode||"multiple"===this.options.mode}isItemDataSelected(f){return this._selectionStrategy.isItemDataSelected(f,{checkPending:!0})}isItemSelected(f,k){return this._selectionStrategy.isItemKeySelected(f,k)}_resetItemSelectionWhenShiftKeyPressed(){delete this._shiftFocusedItemIndex}_resetFocusedItemIndex(){this._focusedItemIndex=-1}changeItemSelectionWhenShiftKeyInVirtualPaging(f){var k=this.options.getLoadOptions(f,this._focusedItemIndex,this._shiftFocusedItemIndex),I=new j.cY,x=k.skip;return this.options.load(k).done(g=>{this.changeItemSelectionWhenShiftKeyPressed(f,g,x),I.resolve()}),I.promise()}changeItemSelectionWhenShiftKeyPressed(f,k,I){var g,re,ne,be,x=!1,C=(0,r.O9)(I),F=C?this._focusedItemIndex-I:this._focusedItemIndex,Y=this.options.keyOf,Q=k[F],se=this.options.getItemData(Q),ie=Y(se),ee=Q&&this.isItemDataSelected(se);if((0,r.O9)(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(g=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,be=C?this._shiftFocusedItemIndex-I:this._shiftFocusedItemIndex,F=C?this._focusedItemIndex-I:this._focusedItemIndex;F!==be;F+=g)(C||this.isDataItem(k[F]))&&(ne=Y(this.options.getItemData(k[F])),this._removeSelectedItem(ne),x=!0);if(f!==this._shiftFocusedItemIndex)for(g=f<this._shiftFocusedItemIndex?1:-1,be=C?this._shiftFocusedItemIndex-I:this._shiftFocusedItemIndex,F=C?f-I:f;F!==be;F+=g)(C||this.isDataItem(k[F]))&&(ne=Y(re=this.options.getItemData(k[F])),this._addSelectedItem(re,ne),x=!0);return(C||this.isDataItem(Q))&&!ee&&(this._addSelectedItem(se,ie),x=!0),x}clearSelectedItems(){this._setSelectedItems([],[])}selectAll(f){return this._resetFocusedItemIndex(),f?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)}deselectAll(f){return this._resetFocusedItemIndex(),f?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)}_onePageSelectAll(f){for(var k=this._selectionStrategy.getSelectableItems(this.options.plainItems()),I=0;I<k.length;I++){var x=k[I];if(this.isDataItem(x)){var g=this.options.getItemData(x),C=this.options.keyOf(g),F=this.isItemSelected(C);!F&&!f&&this._addSelectedItem(g,C),F&&f&&this._removeSelectedItem(C)}}return this.onSelectionChanged(),(new j.cY).resolve()}getSelectAllState(f){return this._selectionStrategy.getSelectAllState(f)}loadSelectedItemsWithFilter(){return this._selectionStrategy.loadSelectedItemsWithFilter()}}},10438:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>R});var r=D(72463),d=D(12101),L=["year","month","day"],j=["year","month","day","hour","minute"],o=function(m){return"date"===m||"datetime"===m},E=function(m){var _,v=[],h=["year","month","day","hour","minute","second"],s=m.headerFilter&&m.headerFilter.groupInterval,b="quarter"===s?"month":s;return o(m.dataType)&&null!==s?(v="datetime"===m.dataType?j:L,(_=h.indexOf(b))>=0&&(v=h.slice(0,_)).push(s),v):(0,r.O9)(s)?Array.isArray(s)?s:[s]:void 0};const R=function(){var m=function(s,b){var O=s.dataField||s.selector;return"search"===b&&(O=s.displayField||s.calculateDisplayValue||O),O},_=function(s,b){var O,w,f,I,k=m(this,b);if(Array.isArray(s)&&(0,r.O9)(s[0])&&(0,r.O9)(s[1]))return w=[k,">=",s[0]],f=[k,"<=",s[1]],o(this.dataType)&&(I=s[1]).getHours()+I.getMinutes()+I.getSeconds()+I.getMilliseconds()<1&&(O=new Date(s[1].getTime()),"date"===this.dataType&&O.setDate(s[1].getDate()+1),f=[k,"<",O]),[w,"and",f]},v=function(s,b,O){var w,f,k,g,I=(0,r.$P)(g=s)?[g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds()]:(0,d.Tj)((""+g).split("/"),function(C,F){return 1===F?Number(C)-1:Number(C)}),x=m(this,O);switch("headerFilter"===O?k=E(this)[I.length-1]:"datetime"===this.dataType&&(k="minute"),k){case"year":w=new Date(I[0],0,1),f=new Date(I[0]+1,0,1);break;case"month":w=new Date(I[0],I[1],1),f=new Date(I[0],I[1]+1,1);break;case"quarter":w=new Date(I[0],3*I[1],1),f=new Date(I[0],3*I[1]+3,1);break;case"hour":w=new Date(I[0],I[1],I[2],I[3]),f=new Date(I[0],I[1],I[2],I[3]+1);break;case"minute":w=new Date(I[0],I[1],I[2],I[3],I[4]),f=new Date(I[0],I[1],I[2],I[3],I[4]+1);break;case"second":w=new Date(I[0],I[1],I[2],I[3],I[4],I[5]),f=new Date(I[0],I[1],I[2],I[3],I[4],I[5]+1);break;default:w=new Date(I[0],I[1],I[2]),f=new Date(I[0],I[1],I[2]+1)}switch(b){case"<":return[x,"<",w];case"<=":return[x,"<",f];case">":return[x,">=",f];case">=":return[x,">=",w];case"<>":return[[x,"<",w],"or",[x,">=",f]];default:return[[x,">=",w],"and",[x,"<",f]]}},h=function(s,b,O){var w=m(this,O),f=E(this);if("headerFilter"===O&&f&&(0,r.O9)(s)){var k=(""+s).split("/"),I=Number(k[k.length-1]);return[[w,">=",I],"and",[w,"<",I+f[k.length-1]]]}return[w,b||"=",s]};return{defaultCalculateFilterExpression:function(s,b,O){var w=this,f=m(w,O),k=w.calculateDisplayValue&&"search"===O,I=k&&w.lookup&&w.lookup.dataType||w.dataType,x=null;if("headerFilter"!==O&&"filterBuilder"!==O||null!==s)if("string"!==I||w.lookup&&!k){if("between"===b)return _.apply(w,[s,O]);if(o(I)&&(0,r.O9)(s))return v.apply(w,arguments);if("number"===I)return h.apply(w,arguments);x=[f,b||"=",s]}else x=[f,b||"contains",s];else x=[f,b||"=",null],"string"===I&&(x=[x,"="===b?"or":"and",[f,b||"=",""]]);return x},getGroupInterval:E}}()},95788:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>L});var r=D(72463);const L={_getSpecificDataSourceOption:function(){var j=this.option("dataSource"),o=!1,E={};return this._getGroupedOption()&&(j=>Array.isArray(j)&&j.every(o=>2===Object.keys(o).length&&"key"in o&&"items"in o&&Array.isArray(o.items)))(j)&&(E=j.reduce((R,m)=>{var _=m.items.map(v=>((0,r.Gv)(v)||(v={text:v},o=!0),"key"in v||(v.key=m.key),v));return R.concat(_)},[]),j={store:{type:"array",data:E},group:{selector:"key",keepInitialKeyOrder:!0}},o&&(j.searchExpr="text")),j}}},2934:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>f});var r=D(24292),d=D(14435),L=D(87951),j=D(64905),o=D(3362),E=D(49104),R=D(80186),m=(0,d.zk)(),_=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],h="dx-searchbox",O=o.A.inherit({ctor:function(k,I){I&&(this._showClearButton=I.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,L.X)(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass("dx-textbox"),this.callBase(),this.setAria("role","textbox")},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_useTemplates:function(){return!1},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){var k=this._getMaxLength();k&&k>0?this._input().attr("maxLength",k):this._input().removeAttr("maxLength")},_renderSearchMode:function(){var k=this._$element;"search"===this.option("mode")?(k.addClass(h),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(k.removeClass(h),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var k=(0,r.A)("<div>").addClass("dx-icon").addClass("dx-icon-search");k.prependTo(this._input().parent()),this._$searchIcon=k},_getLabelContainerWidth:function(){if(this._$searchIcon){var k=this._input().parent();return(0,R.RG)(k)-this._getLabelBeforeWidth()}return this.callBase()},_getLabelBeforeWidth:function(){var k=this.callBase();return this._$searchIcon&&(k+=(0,R.Ot)(this._$searchIcon)),k},_optionChanged:function(k){switch(k.name){case"maxLength":this._toggleMaxLengthProp();break;case"mode":this.callBase(k),this._updateLabelWidth();break;case"mask":this.callBase(k),this._toggleMaxLengthProp();break;default:this.callBase(k)}},_onKeyDownCutOffHandler:function(k){var I=this._getMaxLength();if(!I||k.ctrlKey||this._hasSelection())return!0;var x=(0,r.A)(k.target),g=(0,E.YD)(k);return this._cutOffExtraChar(x),x.val().length<I||_.includes(g)||""!==m.getSelection().toString()},_onChangeCutOffHandler:function(k){var I=(0,r.A)(k.target);this.option("maxLength")&&this._cutOffExtraChar(I)},_cutOffExtraChar:function(k){var I=this._getMaxLength(),x=k.val();I&&x.length>I&&k.val(x.substr(0,I))},_getMaxLength:function(){return this.option("mask")?null:this.option("maxLength")}});(0,j.A)("dxTextBox",O);const f=O},80829:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>d});var r=D(24292);class d{constructor(j,o,E){this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=o,this.name=j,this.options=E||{}}_addPlaceMarker(j){this.$placeMarker=(0,r.A)("<div>").appendTo(j)}_addToContainer(j){var{$placeMarker:o,$container:E}=this;o?o.replaceWith(j):j.appendTo(E)}_attachEvents(){throw"Not implemented"}_create(){throw"Not implemented"}_isRendered(){return!!this.instance}_isVisible(){var{editor:j,options:o}=this;return o.visible||!j.option("readOnly")}_isDisabled(){throw"Not implemented"}_shouldRender(){return this._isVisible()&&!this._isRendered()}dispose(){var{instance:j,$placeMarker:o}=this;j&&(j.dispose?j.dispose():j.remove(),this.instance=null),o&&o.remove()}render(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=j,this._isVisible()){var{instance:o,$element:E}=this._create();this.instance=o,this._attachEvents(o,E)}else this._addPlaceMarker(j)}update(){return this._shouldRender()&&this.render(),!!this.instance}}},3362:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>To});var r=D(64905),d=D(24292),L=D(72463),j=D(23862),o=D(17669),{ios:E,mac:R}=j.A.real(),m=E||R;var b=D(12101),O=D(49104),w=D(91269),f=D(87951),k=D(31063),I=D(20736),x=D(5042),g=D(70370),C=D(39544),F=" ";class Y{constructor(_t){this._value=F,(0,f.X)(this,_t)}next(_t){if(!arguments.length)return this._next;this._next=_t}_prepareHandlingArgs(_t,si){var Dt,Pi,ln;si=si||{};var An=Object.prototype.hasOwnProperty.call(_t,"value")?"value":"text";return _t[An]=null!==(Dt=si.str)&&void 0!==Dt?Dt:_t[An],_t.start=null!==(Pi=si.start)&&void 0!==Pi?Pi:_t.start,_t.length=null!==(ln=si.length)&&void 0!==ln?ln:_t.length,_t.index=_t.index+1,_t}first(_t){return _t=_t||0,this.next().first(_t+1)}isAccepted(){return!1}adjustedCaret(_t,si,Dt){return si?this._adjustedForward(_t,0,Dt):this._adjustedBackward(_t,0,Dt)}_adjustedForward(){}_adjustedBackward(){}isValid(){}reset(){}clear(){}text(){}value(){}rawValue(){}handle(){}}class Q extends Y{next(){}handle(){return 0}text(){return""}value(){return""}first(){return 0}rawValue(){return""}adjustedCaret(){return 0}isValid(){return!0}}class se extends Y{text(){return(this._value!==F?this._value:this.maskChar)+this.next().text()}value(){return this._value+this.next().value()}rawValue(){return this._value+this.next().rawValue()}handle(_t){var si=Object.prototype.hasOwnProperty.call(_t,"value")?_t.value:_t.text;if(!si||!si.length||!_t.length)return 0;if(_t.start)return this.next().handle(this._prepareHandlingArgs(_t,{start:_t.start-1}));var Dt=si[0],Pi=si.substring(1);return this._tryAcceptChar(Dt,_t),this._accepted()?this.next().handle(this._prepareHandlingArgs(_t,{str:Pi,length:_t.length-1}))+1:this.handle(this._prepareHandlingArgs(_t,{str:Pi,length:_t.length-1}))}clear(_t){this._tryAcceptChar(F,_t),this.next().clear(this._prepareHandlingArgs(_t))}reset(){this._accepted(!1),this.next().reset()}_tryAcceptChar(_t,si){if(this._accepted(!1),this._isAllowed(_t,si)){var Dt=_t===F?this.maskChar:_t;si.fullText=si.fullText.substring(0,si.index)+Dt+si.fullText.substring(si.index+1),this._accepted(!0),this._value=_t}}_accepted(_t){if(!arguments.length)return!!this._isAccepted;this._isAccepted=!!_t}first(_t){return this._value===F?_t||0:super.first(_t)}_isAllowed(_t,si){return _t===F||this._isValid(_t,si)}_isValid(_t,si){var Dt=this.allowedChars;return Dt instanceof RegExp?Dt.test(_t):(0,L.Tn)(Dt)?Dt(_t,si.index,si.fullText):Array.isArray(Dt)?Dt.includes(_t):Dt===_t}isAccepted(_t){return 0===_t?this._accepted():this.next().isAccepted(_t-1)}_adjustedForward(_t,si,Dt){return si>=_t?si:this.next()._adjustedForward(_t,si+1,Dt)||si+1}_adjustedBackward(_t,si){return si>=_t-1?_t:this.next()._adjustedBackward(_t,si+1)||si+1}isValid(_t){return this._isValid(this._value,_t)&&this.next().isValid(this._prepareHandlingArgs(_t))}}class ie extends se{value(){return this.next().value()}handle(_t){var si=Object.prototype.hasOwnProperty.call(_t,"value"),Dt=si?_t.value:_t.text;if(!Dt.length||!_t.length)return 0;if(_t.start||si)return this.next().handle(this._prepareHandlingArgs(_t,{start:_t.start&&_t.start-1}));var Pi=Dt[0],ln=Dt.substring(1);this._tryAcceptChar(Pi);var An=this._isAllowed(Pi)?this._prepareHandlingArgs(_t,{str:ln,length:_t.length-1}):_t;return this.next().handle(An)+1}clear(_t){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(_t))}_tryAcceptChar(_t){this._accepted(this._isValid(_t))}_isValid(_t){return _t===this.maskChar}first(_t){return _t=_t||0,this.next().first(_t+1)}_adjustedForward(_t,si,Dt){return si>=_t&&Dt===this.maskChar?si:_t===si+1&&this._accepted()?_t:this.next()._adjustedForward(_t,si+1,Dt)}_adjustedBackward(_t,si){return si>=_t-1?0:this.next()._adjustedBackward(_t,si+1)}isValid(_t){return this.next().isValid(this._prepareHandlingArgs(_t))}}var ee=D(11299),re=D(44831),ne=D(24159),_e=D(80829),be=D(18060),oe=ne.A.down;class z extends _e.A{_create(){var _t=(0,d.A)("<span>").addClass("dx-clear-button-area").append((0,d.A)("<span>").addClass("dx-icon").addClass("dx-icon-clear"));return this._addToContainer(_t),this.update(!0),{instance:_t,$element:_t}}_isVisible(){var{editor:_t}=this;return _t._isClearButtonVisible()}_attachEvents(_t,si){var{editor:Dt}=this,Pi=Dt.NAME;w.A.on(si,(0,O.b4)(oe,Pi),ln=>{ln.preventDefault(),"mouse"!==ln.pointerType&&Dt._clearValueHandler(ln)}),w.A.on(si,(0,O.b4)(be.U,Pi),ln=>Dt._clearValueHandler(ln))}_legacyRender(_t,si){_t.toggleClass("dx-show-clear-button",si)}update(){!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&super.update();var{editor:si,instance:Dt}=this,Pi=si.$element(),ln=this._isVisible();Dt&&Dt.toggleClass("dx-state-invisible",!ln),this._legacyRender(Pi,ln)}}var X=D(2839),q=D(14017),ye="dx-custom-button-hovered";class xe extends _e.A{_attachEvents(_t,si){var{editor:Dt}=this;w.A.on(si,q.n,()=>{Dt.$element().addClass(ye)}),w.A.on(si,q._,()=>{Dt.$element().removeClass(ye)}),w.A.on(si,be.U,Pi=>{Pi.stopPropagation()})}_create(){var{editor:_t}=this,si=(0,d.A)("<div>");return this._addToContainer(si),{$element:si,instance:_t._createComponent(si,X.A,(0,f.X)({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(_t)}))}}_prepareIntegrationOptions(_t){return(0,f.X)({},_t.option("integrationOptions"),{skipTemplates:["content"]})}update(){var _t=super.update();return this.instance&&this.instance.option("disabled",this._isDisabled()),_t}_isVisible(){var{editor:_t}=this;return _t.option("visible")}_isDisabled(){return void 0!==this.options.disabled?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}var ge=D(87310);function Ie(Bi,_t){if(-1!==Bi.indexOf(_t))throw ge.A.Error("E1055",_t);Bi.push(_t)}class de{constructor(_t,si){this.buttons=[],this.defaultButtonsInfo=si,this.editor=_t}_compileButtonInfo(_t){var si=[];return _t.map(Dt=>{var Pi="string"==typeof Dt;Pi||function he(Bi){(()=>{if(!Bi||"object"!=typeof Bi||Array.isArray(Bi))throw ge.A.Error("E1053")})(),(()=>{if(!("name"in Bi))throw ge.A.Error("E1054")})(),(()=>{var{name:_t}=Bi;if("string"!=typeof _t)throw ge.A.Error("E1055")})(),(()=>{var{location:_t}=Bi;"location"in Bi&&"after"!==_t&&"before"!==_t&&(Bi.location="after")})()}(Dt);var ln=Pi||function ce(Bi,_t){return!!_t.find(si=>si.name===Bi)}(Dt.name,this.defaultButtonsInfo);if(ln){var An=this.defaultButtonsInfo.find(Gr=>{var{name:ct}=Gr;return ct===Dt||ct===Dt.name});if(!An)throw ge.A.Error("E1056",this.editor.NAME,Dt);return Ie(si,Dt),An}var{name:jn}=Dt;return Ie(si,jn),(0,f.X)(Dt,{Ctor:xe})})}_createButton(_t){var{Ctor:si,options:Dt,name:Pi}=_t,ln=new si(Pi,this.editor,Dt);return this.buttons.push(ln),ln}_renderButtons(_t,si,Dt){var Pi=null;return(_t?this._compileButtonInfo(_t):this.defaultButtonsInfo).forEach(An=>{var{location:jn="after"}=An;jn===Dt&&this._createButton(An).render((Pi=Pi||(0,d.A)("<div>").addClass("dx-texteditor-buttons-container"),"before"===Dt?si.prepend(Pi):si.append(Pi),Pi))}),Pi}clean(){this.buttons.forEach(_t=>_t.dispose()),this.buttons=[]}getButton(_t){var si=this.buttons.find(Dt=>{var{name:Pi}=Dt;return Pi===_t});return si&&si.instance}renderAfterButtons(_t,si){return this._renderButtons(_t,si,"after")}renderBeforeButtons(_t,si){return this._renderButtons(_t,si,"before")}updateButtons(_t){this.buttons.forEach(si=>{(!_t||-1!==_t.indexOf(si.name))&&si.update()})}}var pe=D(83771),Be=D(12984),We=D(31100),tt=D(13992),vt=D(55424),Xt=D(14435),Nt=D(80186),Qe="dx-texteditor-label",Et="dx-texteditor-with-label",Lt="dx-texteditor-label-outside",wt="dx-texteditor-with-floating-label",Mt="dx-texteditor-with-before-buttons",li=D(17558),Je="dx-texteditor-input",Ht="."+Je,ni="dx-placeholder",Ui="dx-validation-pending",Qi=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],Ut=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"],It=class jt{constructor(_t){this.NAME="dxLabel",this._props=_t,this._id="".concat(Qe,"-").concat(new tt.A),this._render(),this._toggleMarkupVisibility()}_isVisible(){return!!this._props.text&&"hidden"!==this._props.mode}_render(){this._$before=(0,d.A)("<div>").addClass("dx-label-before"),this._$labelSpan=(0,d.A)("<span>"),this._$label=(0,d.A)("<div>").addClass("dx-label").append(this._$labelSpan),this._$after=(0,d.A)("<div>").addClass("dx-label-after"),this._$root=(0,d.A)("<div>").addClass(Qe).attr("id",this._id).append(this._$before).append(this._$label).append(this._$after),this._updateMark(),this._updateText(),this._updateBeforeWidth(),this._updateMaxWidth()}_toggleMarkupVisibility(){var _t=this._isVisible();this._updateEditorBeforeButtonsClass(_t),this._updateEditorLabelClass(_t),_t?this._$root.appendTo(this._props.$editor):this._$root.detach(),this._attachEvents()}_attachEvents(){var _t=(0,O.b4)(be.U,this.NAME),si=(0,O.b4)(q.n,this.NAME),Dt=(0,O.b4)(vt.vu,this.NAME);w.A.off(this._$labelSpan,_t),w.A.off(this._$labelSpan,si),w.A.off(this._$labelSpan,Dt),this._isVisible()&&this._isOutsideMode()&&(w.A.on(this._$labelSpan,_t,Pi=>{""===(0,Xt.zk)().getSelection().toString()&&(this._props.onClickHandler(),Pi.preventDefault())}),w.A.on(this._$labelSpan,si,Pi=>{this._props.onHoverHandler(Pi)}),w.A.on(this._$labelSpan,Dt,Pi=>{this._props.onActiveHandler(Pi)}))}_updateEditorLabelClass(_t){this._props.$editor.removeClass(wt).removeClass(Lt).removeClass(Et),_t&&(this._props.$editor.addClass("floating"===this._props.mode?wt:Et),this._isOutsideMode()&&this._props.$editor.addClass(Lt))}_isOutsideMode(){return"outside"===this._props.mode}_updateEditorBeforeButtonsClass(){var _t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible();this._props.$editor.removeClass(Mt),_t&&this._props.$editor.addClass(this._props.containsButtonsBefore?Mt:"")}_updateMark(){this._$labelSpan.attr("data-mark",this._props.mark)}_updateText(){this._$labelSpan.text(this._props.text)}_updateBeforeWidth(){if(this._isVisible()){var _t,si=null!==(_t=this._props.beforeWidth)&&void 0!==_t?_t:this._props.getBeforeWidth();this._$before.css({width:si}),this._updateLabelTransform()}}_updateLabelTransform(){var _t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this._$labelSpan.css("transform",""),this._isVisible()&&this._isOutsideMode()){var Dt=(this._props.rtlEnabled?1:-1)*((0,Nt.RG)(this._$before)+_t);this._$labelSpan.css("transform","translateX(".concat(Dt,"px)"))}}_updateMaxWidth(){if(this._isVisible()&&!this._isOutsideMode()){var _t,si=null!==(_t=this._props.containerWidth)&&void 0!==_t?_t:this._props.getContainerWidth();this._$label.css({maxWidth:si})}}$element(){return this._$root}isVisible(){return this._isVisible()}getId(){if(this._isVisible())return this._id}updateMode(_t){this._props.mode=_t,this._toggleMarkupVisibility(),this._updateBeforeWidth(),this._updateMaxWidth()}updateText(_t){this._props.text=_t,this._updateText(),this._toggleMarkupVisibility(),this._updateBeforeWidth(),this._updateMaxWidth()}updateMark(_t){this._props.mark=_t,this._updateMark()}updateContainsButtonsBefore(_t){this._props.containsButtonsBefore=_t,this._updateEditorBeforeButtonsClass()}updateBeforeWidth(_t){this._props.beforeWidth=_t,this._updateBeforeWidth()}updateMaxWidth(_t){this._props.containerWidth=_t,this._updateMaxWidth()}};function yt(Bi){if((0,L.O9)(Bi)&&!Array.isArray(Bi))throw ge.A.Error("E1053")}const st=re.A.inherit({ctor:function(Bi,_t){_t&&yt(_t.buttons),this._buttonCollection=new de(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._labelContainerElement=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,f.X)(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,displayValueFormatter:function(Bi){return(0,L.O9)(Bi)&&!1!==Bi?Bi:""},stylingMode:(0,pe.A)().editorStylingMode||"outlined",showValidationMark:!0,label:"",labelMode:"static",labelMark:""})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var Bi=(0,ee.ss)();return(0,ee.gx)(Bi)},options:{labelMode:"floating",stylingMode:(0,pe.A)().editorStylingMode||"filled"}},{device:function(){var Bi=(0,ee.ss)();return(0,ee.Ft)(Bi)},options:{labelMode:"outside"}}])},_getDefaultButtons:function(){return[{name:"clear",Ctor:z}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(Ht).first()},_isFocused:function(){return(0,k.in)(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find(".dx-texteditor-buttons-container").eq(0)},_isControlKey:function(Bi){return-1!==Ut.indexOf(Bi)},_renderStylingMode:function(){this.callBase(),this._updateButtonsStyling(this.option("stylingMode"))},_initMarkup:function(){this.$element().addClass("dx-texteditor"),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue(),this._renderLabel()},_render:function(){this.callBase(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent()},_renderInput:function(){this._$buttonsContainer=this._$textEditorContainer=(0,d.A)("<div>").addClass("dx-texteditor-container").appendTo(this.$element()),this._$textEditorInputContainer=(0,d.A)("<div>").addClass("dx-texteditor-input-container").appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput()),this._renderButtonContainers()},_getInputContainer(){return this._$textEditorInputContainer},_renderPendingIndicator:function(){this.$element().addClass(Ui);var Bi=this._getInputContainer(),_t=(0,d.A)("<div>").addClass("dx-pending-indicator").appendTo(Bi);this._pendingIndicator=this._createComponent(_t,We.A)},_disposePendingIndicator:function(){this._pendingIndicator&&(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass(Ui))},_renderValidationState:function(){this.callBase(),"pending"===this.option("validationStatus")?(!this._pendingIndicator&&this._renderPendingIndicator(),this._showValidMark=!1):("invalid"===this.option("validationStatus")&&(this._showValidMark=!1),!this._showValidMark&&!0===this.option("showValidationMark")&&(this._showValidMark="valid"===this.option("validationStatus")&&!!this._pendingIndicator),this._disposePendingIndicator()),this._toggleValidMark()},_renderButtonContainers:function(){var Bi=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(Bi,this._$buttonsContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(Bi,this._$buttonsContainer)},_cleanButtonContainers:function(){var Bi,_t;null===(Bi=this._$beforeButtonsContainer)||void 0===Bi||Bi.remove(),null===(_t=this._$afterButtonsContainer)||void 0===_t||_t.remove(),this._buttonCollection.clean()},_clean(){this._buttonCollection.clean(),this._disposePendingIndicator(),this._unobserveLabelContainerResize(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this._$buttonsContainer=null,this.callBase()},_createInput:function(){var Bi=(0,d.A)("<input>");return this._applyInputAttributes(Bi,this.option("inputAttr")),Bi},_setSubmitElementName:function(Bi){var _t=this.option("inputAttr.name");return this.callBase(Bi||_t||"")},_applyInputAttributes:function(Bi,_t){var si=(0,f.X)(this._getDefaultAttributes(),_t);Bi.attr(si).addClass(Je),this._setInputMinHeight(Bi)},_setInputMinHeight:function(Bi){Bi.css("minHeight",this.option("height")?"0":"")},_getPlaceholderAttr(){var{ios:Bi,mac:_t}=j.A.real(),{placeholder:si}=this.option();return si||(Bi||_t?" ":null)},_getDefaultAttributes(){return{autocomplete:"off",placeholder:this._getPlaceholderAttr()}},_updateButtons:function(Bi){this._buttonCollection.updateButtons(Bi)},_updateButtonsStyling:function(Bi){(0,b.__)(this.option("buttons"),(_t,si)=>{var{options:Dt,name:Pi}=si;if(Dt&&!Dt.stylingMode&&this.option("visible")){var ln=this.getButton(Pi);ln.option&&ln.option("stylingMode","underlined"===Bi?"text":"contained")}})},_renderValue:function(){return this._renderInputValue().promise()},_renderInputValue:function(Bi){var _t;Bi=null!==(_t=Bi)&&void 0!==_t?_t:this.option("value");var si=this.option("text"),Dt=this.option("displayValue"),Pi=this.option("displayValueFormatter");return void 0!==Dt&&null!==Bi?si=Pi(Dt):(0,L.O9)(si)||(si=Pi(Bi)),this.option("text",si),this._input().val()!==((0,L.O9)(si)?si:"")?this._renderDisplayText(si):this._toggleEmptinessEventHandler(),(new Be.cY).resolve()},_renderDisplayText:function(Bi){this._input().val(Bi),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var Bi=this._input().get(0).validity;if(Bi)return Bi.valid}return!0},_toggleEmptiness:function(Bi){this.$element().toggleClass("dx-texteditor-empty",Bi),this._togglePlaceholder(Bi)},_togglePlaceholder:function(Bi){this.$element().find(".".concat(ni)).eq(0).toggleClass("dx-state-invisible",!Bi)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(Bi){this.callBase.apply(this,arguments),this._input().prop("disabled",Bi)},_toggleTabIndex:function(){var Bi=this._input(),_t=this.option("disabled"),si=this.option("focusStateEnabled");_t||!si?Bi.attr("tabIndex",-1):Bi.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_unobserveLabelContainerResize:function(){this._labelContainerElement&&(li.A.unobserve(this._labelContainerElement),this._labelContainerElement=null)},_getLabelContainer:function(){return this._input()},_getLabelContainerWidth:function(){return(0,Nt.RG)(this._getLabelContainer())},_getLabelBeforeWidth:function(){return(this._$beforeButtonsContainer&&(0,Nt.RG)(this._$beforeButtonsContainer))??0},_updateLabelWidth:function(){this._label.updateBeforeWidth(this._getLabelBeforeWidth()),this._label.updateMaxWidth(this._getLabelContainerWidth())},_getFieldElement(){return this._getLabelContainer()},_setFieldAria(Bi){var{"aria-label":_t}=this.option("inputAttr"),si=this._label.getId(),Dt=_t?void 0:si;(Dt||Bi)&&this.setAria({labelledby:Dt,label:_t},this._getFieldElement())},_renderLabel:function(){this._unobserveLabelContainerResize(),this._labelContainerElement=(0,d.A)(this._getLabelContainer()).get(0);var{label:Bi,labelMode:_t,labelMark:si,rtlEnabled:Dt}=this.option(),Pi={onClickHandler:()=>{this.focus()},onHoverHandler:ln=>{ln.stopPropagation()},onActiveHandler:ln=>{ln.stopPropagation()},$editor:this.$element(),text:Bi,mark:si,mode:_t,rtlEnabled:Dt,containsButtonsBefore:!!this._$beforeButtonsContainer,getContainerWidth:()=>this._getLabelContainerWidth(),getBeforeWidth:()=>this._getLabelBeforeWidth()};this._label=new It(Pi),this._setFieldAria(),this._labelContainerElement&&li.A.observe(this._labelContainerElement,this._updateLabelWidth.bind(this))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var Bi=this._input(),_t=this.option("placeholder"),si={id:_t?"dx-".concat(new tt.A):void 0,"data-dx_placeholder":_t},Dt=this._$placeholder=(0,d.A)("<div>").attr(si);Dt.insertAfter(Bi),Dt.addClass(ni)},_attachPlaceholderEvents:function(){var Bi=(0,O.b4)(ne.A.up,this.NAME);w.A.on(this._$placeholder,Bi,()=>{w.A.trigger(this._input(),"focus")}),this._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||(0,d.A)()},_clearValueHandler:function(Bi){var _t=this._input();Bi.stopPropagation(),this._saveValueChangeEvent(Bi),this._clearValue(),!this._isFocused()&&w.A.trigger(_t,"focus"),w.A.trigger(_t,"input")},_clearValue:function(){this.clear()},_renderEvents:function(){var Bi=this._input();(0,b.__)(Qi,(_t,si)=>{if(this.hasActionSubscription("on"+si)){var Dt=this._createActionByOption("on"+si,{excludeValidators:["readOnly"]});w.A.on(Bi,(0,O.b4)(si.toLowerCase(),this.NAME),Pi=>{this._disposed||Dt({event:Pi})})}})},_refreshEvents:function(){var Bi=this._input();(0,b.__)(Qi,(_t,si)=>{w.A.off(Bi,(0,O.b4)(si.toLowerCase(),this.NAME))}),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_keyDownHandler:function(Bi){var _t=this._input(),si=Bi.ctrlKey&&"enter"===(0,O.YD)(Bi),Dt=_t.val()!==this.option("value");si&&Dt&&w.A.trigger(_t,"change")},_getValueChangeEventOptionName:function(){return"valueChangeEvent"},_renderValueChangeEvent:function(){var Bi=(0,O.b4)(this._renderValueEventName(),"".concat(this.NAME,"TextChange")),_t=(0,O.b4)(this.option(this._getValueChangeEventOptionName()),"".concat(this.NAME,"ValueChange")),si=(0,O.b4)("keydown","".concat(this.NAME,"TextChange")),Dt=this._input();w.A.on(Dt,Bi,this._keyPressHandler.bind(this)),w.A.on(Dt,_t,this._valueChangeEventHandler.bind(this)),w.A.on(Dt,si,this._keyDownHandler.bind(this))},_cleanValueChangeEvent:function(){var Bi=".".concat(this.NAME,"ValueChange"),_t=".".concat(this.NAME,"TextChange");w.A.off(this._input(),Bi),w.A.off(this._input(),_t)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusEventTarget:function(){return this.element()},_isInput:function(Bi){return Bi===this._input().get(0)},_preventNestedFocusEvent:function(Bi){if(Bi.isDefaultPrevented())return!0;var _t=this._isNestedTarget(Bi.relatedTarget);return"focusin"===Bi.type?_t=_t&&this._isNestedTarget(Bi.target)&&!this._isInput(Bi.target):_t||this._toggleFocusClass(!1,this.$element()),_t&&Bi.preventDefault(),_t},_isNestedTarget:function(Bi){return!!this.$element().find(Bi).length},_focusClassTarget:function(){return this.$element()},_focusInHandler:function(Bi){this._preventNestedFocusEvent(Bi),this.callBase.apply(this,arguments)},_focusOutHandler:function(Bi){this._preventNestedFocusEvent(Bi),this.callBase.apply(this,arguments)},_toggleFocusClass:function(Bi,_t){this.callBase(Bi,this._focusClassTarget(_t))},_hasFocusClass:function(Bi){return this.callBase((0,d.A)(Bi||this.$element()))},_renderEmptinessEvent:function(){var Bi=this._input();w.A.on(Bi,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var Bi=this._input().val(),_t=(""===Bi||null===Bi)&&this._isValueValid();this._toggleEmptiness(_t)},_valueChangeEventHandler:function(Bi,_t){this.option("readOnly")||(this._saveValueChangeEvent(Bi),this.option("value",arguments.length>1?_t:this._input().val()),this._saveValueChangeEvent(void 0))},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),w.A.off(this._input(),"keyup.onEnterKey.dxTextEditor"),w.A.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(Bi){this._disposed||"enter"===(0,O.YD)(Bi)&&this._enterKeyAction({event:Bi})},_updateValue:function(){this._options.silent("text",null),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_hasActiveElement:function(){return this._input().is(o.A.getActiveElement(this._input()[0]))},_optionChanged:function(Bi){var{name:_t,fullName:si,value:Dt}=Bi,Pi=_t.replace("on","");if(Qi.includes(Pi))this._refreshEvents();else switch(_t){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(Bi),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder(),this._setFieldAria(!0),this._input().attr({placeholder:this._getPlaceholderAttr()});break;case"label":this._label.updateText(Dt),this._setFieldAria(!0);break;case"labelMark":this._label.updateMark(Dt);break;case"labelMode":this._label.updateMode(Dt),this._setFieldAria();break;case"width":this.callBase(Bi),this._label.updateMaxWidth(this._getLabelContainerWidth());break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(Bi);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":case"showValidationMark":break;case"value":this._updateValue(),this.callBase(Bi);break;case"inputAttr":this._applyInputAttributes(this._input(),this.option(_t));break;case"stylingMode":this._renderStylingMode(),this._updateLabelWidth();break;case"buttons":si===_t&&yt(Dt),this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")),this._updateLabelWidth(),this._label.updateContainsButtonsBefore(!!this._$beforeButtonsContainer);break;case"visible":this.callBase(Bi),Dt&&this.option("buttons")&&(this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")));break;case"displayValueFormatter":this._invalidate();break;default:this.callBase(Bi)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(Bi){var _t=this._input();"search"===Bi&&(Bi="text");try{_t.prop("type",Bi)}catch{_t.prop("type","text")}},getButton(Bi){return this._buttonCollection.getButton(Bi)},focus:function(){w.A.trigger(this._input(),"focus")},clear:function(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());var Bi=this._getDefaultOptions();this.option("value")===Bi.value?(this._options.silent("text",""),this._renderValue()):this.option("value",Bi.value)},_resetToInitialValue(){this.option("value")===this._initialValue?(this._options.silent("text",this._initialValue),this._renderValue()):this.callBase(),this._disposePendingIndicator(),this._showValidMark=!1,this._toggleValidMark()},_toggleValidMark(){this.$element().toggleClass("dx-valid",!!this._showValidMark)},reset:function(){arguments.length?this.callBase(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0):this.callBase()},on:function(Bi,_t){var si=this.callBase(Bi,_t),Dt=Bi.charAt(0).toUpperCase()+Bi.substr(1);return Qi.indexOf(Dt)>=0&&this._refreshEvents(),si}});var Wt=D(29263),Vt=D(7963),ci="dxMask",ai=["deleteContentBackward","deleteSoftLineBackward","deleteContent","deleteHardLineBackward"],kt=["historyUndo","historyRedo"],mi=["focusIn","focusOut","input","paste","cut","drop","beforeInput"];class qi{constructor(_t){this.editor=_t}_editorOption(){return this.editor.option(...arguments)}_editorInput(){return this.editor._input()}_editorCaret(_t){if(!_t)return this.editor._caret();this.editor._caret(_t)}_attachChangeEventHandler(){if(this._editorOption("valueChangeEvent").split(" ").includes("change")){var _t=this._editorInput(),si=(0,O.b4)("blur beforedeactivate",ci);w.A.on(_t,si,Dt=>{this.editor._changeHandler(Dt)})}}_beforeInputHandler(){this._previousText=this._editorOption("text"),this._prevCaret=this._editorCaret()}_inputHandler(_t){var{originalEvent:si}=_t;if(si){var{inputType:Dt}=si;if(kt.includes(Dt))this._handleHistoryInputEvent();else if(ai.includes(Dt))this._handleBackwardDeleteInputEvent();else{var Pi=this._editorCaret();if(!Pi.end)return;this._clearSelectedText(),this._autoFillHandler(si),this._editorCaret(Pi),this._handleInsertTextInputEvent(si.data)}this._editorOption("text")===this._previousText&&_t.stopImmediatePropagation()}}_handleHistoryInputEvent(){var _t=this._editorCaret();this._updateEditorMask({start:_t.start,length:_t.end-_t.start,text:""}),this._editorCaret(this._prevCaret)}_handleBackwardDeleteInputEvent(){this._clearSelectedText();var _t=this._editorCaret();this.editor.setForwardDirection(),this.editor._adjustCaret(),this._editorCaret().start!==_t.start&&(this.editor.setBackwardDirection(),this.editor._adjustCaret())}_clearSelectedText(){var _t,si,Bi,Dt=(null===(_t=this._prevCaret)||void 0===_t?void 0:_t.end)-(null===(si=this._prevCaret)||void 0===si?void 0:si.start)||1,Pi=this._editorCaret();this._isAutoFill()||(this.editor.setBackwardDirection(),this._updateEditorMask({start:Pi.start,length:Dt,text:(Bi=Dt," ".repeat(Bi))}))}_handleInsertTextInputEvent(_t){var si,Dt,Pi=_t??"";this.editor.setForwardDirection(),this._updateEditorMask({start:null!==(si=null===(Dt=this._prevCaret)||void 0===Dt?void 0:Dt.start)&&void 0!==si?si:0,length:Pi.length||1,text:Pi})||this._editorCaret(this._prevCaret)}_updateEditorMask(_t){var si=_t.text.length,Dt=this.editor._handleChain(_t);if(this.editor._displayMask(),this.editor.isForwardDirection()){var{start:Pi,end:ln}=this._editorCaret(),An=Dt-si;Dt>1&&1===si&&this._editorCaret({start:Pi+An,end:ln+An}),this.editor._adjustCaret()}return!!Dt}_focusInHandler(){if(this.editor._showMaskPlaceholder(),this.editor.setForwardDirection(),!this.editor._isValueEmpty()&&this._editorOption("isValid"))this.editor._adjustCaret();else{var _t=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(()=>{this._editorCaret({start:_t,end:_t})},0)}}_focusOutHandler(_t){this.editor._changeHandler(_t),"onFocus"===this._editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this._editorOption("text",""),this.editor._renderDisplayText(""))}_delHandler(_t){var{editor:si}=this;si._maskKeyHandler(_t,()=>{si._hasSelection()||si._handleKey(" ")})}_cutHandler(_t){var si=this._editorCaret(),Dt=this._editorInput().val().substring(si.start,si.end);this.editor._maskKeyHandler(_t,()=>(0,Vt.KR)(_t,Dt))}_dropHandler(){this._clearDragTimer(),this._dragTimer=setTimeout(()=>{var _t=this.editor._convertToValue(this._editorInput().val());this._editorOption("value",_t)})}_pasteHandler(_t){var{editor:si}=this;if(!this._editorOption("disabled")){var Dt=this._editorCaret();si._maskKeyHandler(_t,()=>{var Pi=(0,Vt.KR)(_t),ln=si._maskRulesChain.text().substring(Dt.end),An=si._handleChain({text:Pi,start:Dt.start,length:Pi.length}),jn=Dt.start+An;si._handleChain({text:ln,start:jn,length:ln.length}),si._caret({start:jn,end:jn})})}}_autoFillHandler(_t){var{editor:si}=this,Dt=this._editorInput().val();this._inputHandlerTimer=setTimeout(()=>{this._isAutoFill()&&(si._maskKeyHandler(_t,()=>{si._handleChain({text:Dt,start:0,length:Dt.length})}),si._validateMask())})}_isAutoFill(){var _t=this._editorInput();if(Wt.A.webkit){var si,Dt=_t.get(0);return null!==(si=Dt?.matches(":-webkit-autofill"))&&void 0!==si&&si}return!1}_clearDragTimer(){clearTimeout(this._dragTimer)}_clearTimers(){this._clearDragTimer(),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)}getHandler(_t){return si=>{var Dt;null===(Dt=this["_".concat(_t,"Handler")])||void 0===Dt||Dt.call(this,si)}}attachEvents(){var _t=this._editorInput();mi.forEach(si=>{var Dt=(0,O.b4)(si.toLowerCase(),ci);w.A.on(_t,Dt,this.getHandler(si))}),this._attachChangeEventHandler()}detachEvents(){this._clearTimers(),w.A.off(this._editorInput(),".".concat(ci))}clean(){this._clearTimers()}}var Wi=function(Bi,_t){var si=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Bi=(0,d.A)(Bi).get(0),!(0,L.O9)(_t))return function(Bi){var _t;try{_t={start:Bi.selectionStart,end:Bi.selectionEnd}}catch{_t={start:0,end:0}}return _t}(Bi);!si&&m&&o.A.getActiveElement(Bi)!==Bi||function(Bi,_t){var si=o.A.getBody();if(si.contains(Bi)||si.contains(Bi.getRootNode().host))try{Bi.selectionStart=_t.start,Bi.selectionEnd=_t.end}catch{}}(Bi,_t)},ar="dx-texteditor-masked",na="forward",Pr={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(Bi){return ja(Bi)},l:function(Bi){return ja(Bi)||Na(Bi)},C:/\S/,c:/./,A:function(Bi){return ja(Bi)||no(Bi)},a:function(Bi){return ja(Bi)||no(Bi)||Na(Bi)}};function no(Bi){return/[0-9]/.test(Bi)}function ja(Bi){var _t=Bi.charCodeAt();return 64<_t&&_t<91||96<_t&&_t<123||_t>127}function Na(Bi){return" "===Bi}const Eo=st.inherit({_getDefaultOptions:function(){return(0,f.X)(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:I.A.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var Bi=this,_t={del:Bi._maskStrategy.getHandler("del"),enter:Bi._changeHandler},si=Bi.callBase();return(0,b.__)(_t,function(Dt,Pi){var ln=si[Dt];si[Dt]=function(An){Bi.option("mask")&&Pi.call(Bi,An),ln&&ln(An)}}),si},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){this._maskStrategy=new qi(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){if(this._onMouseWheel!==x.lQ){var _t=this._input(),si=(0,O.b4)(C.U,this.NAME),Dt=this._createAction(function(Pi){var{event:ln}=Pi;(0,k.in)(_t)&&!(0,O.By)(ln)&&(this._onMouseWheel(ln),ln.preventDefault(),ln.stopPropagation())}.bind(this));w.A.off(_t,si),w.A.on(_t,si,function(Pi){Dt({event:Pi})})}},_onMouseWheel:x.lQ,_useMaskBehavior(){return!!this.option("mask")},_attachDropEventHandler(){if(this._useMaskBehavior()){var _t=(0,O.b4)("drop",this.NAME),si=this._input();w.A.off(si,_t),w.A.on(si,_t,Dt=>Dt.preventDefault())}},_render(){this._renderMask(),this.callBase(),this._attachDropEventHandler(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=(0,d.A)("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(ar),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(ar),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_changeHandler:function(Bi){var _t=this._input(),si=_t.val();if(si!==this._changedValue){this._changedValue=si;var Dt=(0,O.lh)(Bi,{type:"change"});w.A.trigger(_t,Dt)}},_parseMask:function(){this._maskRules=(0,f.X)({},Pr,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(Bi){var _t=this.option("mask");if(Bi>=_t.length)return new Q;var si=_t[Bi],Dt="\\"===si,Pi=Dt?new ie({maskChar:_t[Bi+1]}):this._getMaskRule(si);return Pi.next(this._parseMaskRule(Bi+1+Dt)),Pi},_getMaskRule:function(Bi){var _t;return(0,b.__)(this._maskRules,function(si,Dt){if(si===Bi)return _t={pattern:si,allowedChars:Dt},!1}),(0,L.O9)(_t)?new se((0,f.X)({maskChar:this.option("maskChar")||" "},_t)):new ie({maskChar:Bi})},_renderMaskedValue:function(){if(this._maskRulesChain){var Bi=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var _t={length:Bi.length};_t[this._isMaskedValueMode()?"text":"value"]=Bi,this._handleChain(_t),this._displayMask()}},_replaceSelectedText:function(Bi,_t,si){return void 0===si?Bi:Bi.slice(0,_t.start)+si+Bi.slice(_t.end)},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(Bi){Bi=Bi||this._caret(),this._renderValue(),this._caret(Bi)},_isValueEmpty:function(){return(0,g.Im)(this._value)},_shouldShowMask:function(){return"onFocus"!==this.option("showMaskMode")||(0,k.in)(this._input())||!this._isValueEmpty()},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var Bi=this._maskRulesChain.text();this.option("text",Bi),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(Bi)}},_renderValue:function(){if(this._maskRulesChain&&(this._showMaskPlaceholder(),this._$hiddenElement)){var Bi=this._maskRulesChain.value(),_t=(0,g.Im)(Bi)?"":this._getPreparedValue();this._$hiddenElement.val(_t)}return this.callBase()},_getPreparedValue:function(){return this._convertToValue().replace(/\s+$/,"")},_valueChangeEventHandler:function(Bi){this._maskRulesChain?(this._saveValueChangeEvent(Bi),this.option("value",this._getPreparedValue())):this.callBase.apply(this,arguments)},_isControlKeyFired:function(Bi){return this._isControlKey((0,O.YD)(Bi))||(0,O.By)(Bi)},_handleChain:function(Bi){var _t=this._maskRulesChain.handle(this._normalizeChainArguments(Bi));return this._updateMaskInfo(),_t},_normalizeChainArguments:function(Bi){return(Bi=Bi||{}).index=0,Bi.fullText=this._maskRulesChain.text(),Bi},_convertToValue:function(Bi){return this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(Bi||this._textValue||""):Bi||this._value||""},_replaceMaskCharWithEmpty:function(Bi){return Bi.replace(new RegExp(this.option("maskChar"),"g")," ")},_maskKeyHandler:function(Bi,_t){if(!this.option("readOnly")){this.setForwardDirection(),Bi.preventDefault(),this._handleSelection();var si=this._input().val(),Dt=()=>{si!==this._input().val()&&w.A.trigger(this._input(),"input")},Pi=_t();Pi?Pi.then(Dt):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),Dt())}},_handleKey:function(Bi,_t){this._direction(_t||na),this._adjustCaret(Bi),this._handleKeyChain(Bi),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var Bi=this._caret(),_t=new Array(Bi.end-Bi.start+1).join(" ");this._handleKeyChain(_t)}},_handleKeyChain:function(Bi){var _t=this._caret(),si=this.isForwardDirection()?_t.start:_t.start-1,Dt=this.isForwardDirection()?_t.end:_t.end-1;this._handleChain({text:Bi,start:si,length:si===Dt?1:Dt-si})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var Bi=this._caret().start;return this._adjustCaret(),!Bi||Bi!==this._caret().start},_adjustCaret:function(Bi){var _t=this._caret().start,si=this.isForwardDirection(),Dt=this._maskRulesChain.adjustedCaret(_t,si,Bi);this._caret({start:Dt,end:Dt})},_moveCaret:function(){var Bi=this._caret().start,_t=Bi+(this.isForwardDirection()?0:-1),si=this._maskRulesChain.isAccepted(_t)?Bi+(this.isForwardDirection()?1:-1):Bi;this._caret({start:si,end:si})},_caret:function(Bi,_t){var si=this._input();if(si.length){if(!arguments.length)return Wi(si);Wi(si,Bi,_t)}},_hasSelection:function(){var Bi=this._caret();return Bi.start!==Bi.end},_direction:function(Bi){if(!arguments.length)return this._typingDirection;this._typingDirection=Bi},setForwardDirection:function(){this._direction(na)},setBackwardDirection:function(){this._direction("backward")},isForwardDirection:function(){return this._direction()===na},_updateMaskInfo(){this._textValue=this._maskRulesChain.text(),this._value=this._maskRulesChain.value()},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var Bi=(0,g.Im)(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:Bi,validationError:Bi?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask(),this._refreshValueChangeEvent()},_processEmptyMask:function(Bi){if(!Bi){var _t=this.option("value");this.option({text:_t,isValid:!0,validationError:null}),this.validationRequest.fire({value:_t,editor:this}),this._renderValue()}},_optionChanged:function(Bi){switch(Bi.name){case"mask":this._updateMaskOption(),this._processEmptyMask(Bi.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(Bi),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(Bi)}},clear:function(){var{value:Bi}=this._getDefaultOptions();this.option("value")===Bi&&this._renderMaskedValue(),this.callBase()}});(0,r.A)("dxTextEditor",Eo);const To=Eo},11299:(ei,rt,D)=>{"use strict";D.d(rt,{ss:()=>z,ip:()=>Be,Ft:()=>ce,AE:()=>de,gx:()=>Ie,Nt:()=>he,ro:()=>tt});var Q,se,ie,ee,re,q,r=D(80186),d=D(23862),L=D(17669),j=D(24292),o=D(12984),E=D(41242),R=D(12101),m=D(72535),_=D(3558),v=D(14435),s=(0,D(34423).A)(),b=D(87310),O=(0,v.zk)(),w=m.A.add,f=_.Uq,k=_.WV,I=new o.cY,x="link[rel=dx-theme]",g="data-theme",C="data-active",F="dx-hairlines",Y="any",ne=15e3,_e="dx.";function be(){if(!(0,v.Vd)())return null;var wt,Lt=(0,j.A)("<div>",Q).addClass("dx-theme-marker").appendTo(Q.documentElement);try{return(wt=O.getComputedStyle(Lt.get(0)).fontFamily)&&(wt=wt.replace(/["']/g,"")).substr(0,_e.length)===_e?wt.substr(_e.length):null}finally{Lt.remove()}}function oe(Lt){var wt,Mt,Ge=!0;function ot(){re=null,clearInterval(Mt),Ge=!0,s.fire(),s.empty(),I.resolve()}if(re=Lt,me()||!ne)ot();else{if(!Ge)return void(re&&(re=Lt));wt=Date.now(),Ge=!1,Mt=setInterval(function(){var Tt=me(),jt=!Tt&&Date.now()-wt>ne;jt&&b.A.log("W0004",re),(Tt||jt)&&ot()},10)}}function me(){if(!re)return!0;var Lt=re===Y;if("resolved"===I.state()&&Lt)return!0;var wt=be();return!(!wt||!Lt)||wt===re}function W(Lt){(function G(Lt){try{Lt!==Q&&(ie=null)}catch{ie=null}Q=Lt})((Lt=Lt||{}).context||L.A.getDocument()),Q&&(function we(){var Lt=(0,j.A)(x,Q);Lt.length&&(ie={},se=(0,j.A)((0,E.B)("<link rel=stylesheet>"),Q),Lt.each(function(){var wt=(0,j.A)(this,Q),Mt=wt.attr(g),Ge=wt.attr("href"),ot="true"===wt.attr(C);ie[Mt]={url:Ge,isActive:ot}}),Lt.last().after(se),Lt.remove())}(),ee=void 0,z(Lt))}function z(Lt){if(!arguments.length)return ee=ee||be();xe(f()),"string"==typeof(Lt=Lt||{})&&(Lt={theme:Lt});var Ge,wt=Lt._autoInit,Mt=Lt.loadCallback;if(ee=function N(Lt){var wt=Lt?Lt.split("."):[],Mt=null;if(ie){if(Lt in ie)return Lt;(0,R.__)(ie,function(Ge,ot){var Tt=Ge.split(".");if((!wt[0]||Tt[0]===wt[0])&&(!wt[1]||wt[1]===Tt[1])&&(!wt[2]||wt[2]===Tt[2])&&((!Mt||ot.isActive)&&(Mt=Ge),ot.isActive))return!1})}return Mt}(Lt.theme||ee),ee&&(Ge=ie[ee]),Mt&&s.add(Mt),Ge)se.attr("href",ie[ee].url),(s.has()||"resolved"!==I.state()||Lt._forceTimeout)&&oe(ee);else{if(!wt)throw b.A.Error("E0021",ee);(0,v.Vd)()&&oe(Y),s.fire(),s.empty()}I.done(()=>ye((0,_.s$)(),ee))}function ye(Lt,wt){q=function X(Lt){var wt=[],Mt=(Lt=Lt||z())&&Lt.split(".");return Mt&&(wt.push("dx-theme-"+Mt[0],"dx-theme-"+Mt[0]+"-typography"),Mt.length>1&&wt.push("dx-color-scheme-"+Mt[1]+(he(Lt)?"-"+Mt[2]:""))),wt}(wt).join(" "),(0,j.A)(Lt).addClass(q),function(){var Mt=(0,v.Vd)()&&O.devicePixelRatio;if(Mt&&!(Mt<2)){var Ge=(0,j.A)("<div>");Ge.css("border",".5px solid transparent"),(0,j.A)("body").append(Ge),1===(0,r.P$)(Ge)&&((0,j.A)(Lt).addClass(F),q+=" "+F),Ge.remove()}}()}function xe(Lt){(0,j.A)(Lt).removeClass(q)}function Ee(Lt,wt){return wt||(wt=ee||be()),new RegExp(Lt).test(wt)}function he(Lt){return Ie(Lt)||ce(Lt)}function Ie(Lt){return Ee("material",Lt)}function ce(Lt){return Ee("fluent",Lt)}function de(Lt){return Ee("generic",Lt)}function Be(Lt){return Ee("compact",Lt)}function tt(Lt,wt){return new Promise(Mt=>{var Ge=()=>{clearInterval(ot),clearTimeout(Tt),Mt()},ot=setInterval(()=>{(function We(Lt,wt){var Mt=L.A.getDocument(),Ge=Mt.createElement("span");Ge.style.position="absolute",Ge.style.top="-9999px",Ge.style.left="-9999px",Ge.style.visibility="hidden",Ge.style.fontFamily="Arial",Ge.style.fontSize="250px",Ge.style.fontWeight=wt,Ge.innerHTML=Lt,Mt.body.appendChild(Ge);var ot=Ge.offsetWidth;Ge.style.fontFamily="Roboto, RobotoFallback, Arial";var Tt=Ge.offsetWidth;return Ge.parentNode.removeChild(Ge),ot!==Tt})(Lt,wt)&&Ge()},15),Tt=setTimeout(Ge,2e3)})}function vt(){if(W({_autoInit:!0,_forceTimeout:!0}),(0,j.A)(x,Q).length)throw b.A.Error("E0022")}(0,v.Vd)()?vt():w(vt),k.add(function(Lt,wt){I.done(function(){xe(wt),ye(Lt)})}),d.A.changed.add(function(){W({_autoInit:!0})})},33701:(ei,rt,D)=>{"use strict";D.d(rt,{l:()=>r});var r="dx-toolbar"},22376:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>me});var r=D(80186),d=D(24292),L=D(11299),j=D(72463),o=D(64905),E=D(87951),R=D(12101),m=D(50448),_=D(14874),v=D(12984),h=D(5042);const b=_.A.inherit({_initMarkup(){this._deferredItems=[],this.callBase()},_renderItemContent(we){var N=new v.cY,G=new v.cY;this._deferredItems[we.index]=G;var W=this.callBase.call(this,we);return G.done(()=>{N.resolve(W)}),N.promise()},_onItemTemplateRendered:function(we,N){return()=>{this._deferredItems[N.index].resolve()}},_postProcessRenderItems:h.lQ,_renderItemsAsync(){var we=new v.cY;return v.z7.apply(this,this._deferredItems).done(()=>{this._postProcessRenderItems(),we.resolve()}),we.promise()},_clean(){this.callBase(),this._deferredItems=[]}});var O=D(56311),w=D(3930),f=D(33701),k="dx-toolbar-before",x="dx-toolbar-after",F="dx-toolbar-label",ie="dx-toolbar-compact";class oe extends b{_getSynchronizableOptionsForCreateComponent(){return super._getSynchronizableOptionsForCreateComponent().filter(N=>"disabled"!==N)}_initTemplates(){super._initTemplates();var N=new O.U(function(G,W,z){if((0,j.Qd)(W)){var xe,ge,Ee,he,Ie,{text:X,html:q,widget:ye}=W;if(X&&G.text(X).wrapInner("<div>"),q&&G.html(q),"dxDropDownButton"===ye&&(W.options=null!==(xe=W.options)&&void 0!==xe?xe:{},(0,j.O9)(W.options.stylingMode)||(W.options.stylingMode=this.option("useFlatButtons")?"text":"contained")),"dxButton"===ye)this.option("useFlatButtons")&&(W.options=null!==(ge=W.options)&&void 0!==ge?ge:{},W.options.stylingMode=null!==(Ee=W.options.stylingMode)&&void 0!==Ee?Ee:"text"),this.option("useDefaultButtons")&&(W.options=null!==(he=W.options)&&void 0!==he?he:{},W.options.type=null!==(Ie=W.options.type)&&void 0!==Ie?Ie:"default")}else G.text(String(W));this._getTemplate("dx-polymorph-widget").render({container:G,model:z,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:N,menuItem:N})}_getDefaultOptions(){return(0,E.X)(super._getDefaultOptions(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return(0,L.Nt)()},options:{useFlatButtons:!0}}])}_itemContainer(){return this._$toolbarItemsContainer.find([".".concat(k),".".concat("dx-toolbar-center"),".".concat(x)].join(","))}_itemClass(){return"dx-toolbar-item"}_itemDataKey(){return"dxToolbarItemDataKey"}_dimensionChanged(){this._disposed||(this._arrangeItems(),this._applyCompactMode())}_initMarkup(){this._renderToolbar(),this._renderSections(),super._initMarkup()}_render(){super._render(),this._renderItemsAsync(),this._updateDimensionsInMaterial()}_postProcessRenderItems(){this._arrangeItems()}_renderToolbar(){this.$element().addClass(f.l),this._$toolbarItemsContainer=(0,d.A)("<div>").addClass("dx-toolbar-items-container").appendTo(this.$element()),this.setAria("role","toolbar")}_renderSections(){var N=this._$toolbarItemsContainer;(0,R.__)(["before","center","after"],(G,W)=>{var z="dx-toolbar-".concat(W);N.find(".".concat(z)).length||(this["_$".concat(W,"Section")]=(0,d.A)("<div>").addClass(z).attr("role","presentation").appendTo(N))})}_arrangeItems(N){var G;N=null!==(G=N)&&void 0!==G?G:(0,r.RG)(this.$element()),this._$centerSection.css({margin:"0 auto",float:"none"});var W=(0,m.N)(this._$beforeSection.get(0)),z=(0,m.N)(this._$afterSection.get(0));this._alignCenterSection(W,z,N);var X=this._$toolbarItemsContainer.find(".".concat(F)).eq(0),q=X.parent();if(X.length){var ye=W.width?W.width:X.position().left,xe=q.hasClass(k)?0:ye,ge=q.hasClass(x)?0:z.width,Ee=0;q.children().not(".".concat(F)).each(function(){Ee+=(0,r.Ot)(this)});var Ie=Math.max(N-Ee-xe-ge,0);if(q.hasClass(k))this._alignSection(this._$beforeSection,Ie);else{var ce=(0,r.Ot)(X)-(0,r.RG)(X);X.css("maxWidth",Ie-ce)}}}_alignCenterSection(N,G,W){this._alignSection(this._$centerSection,W-N.width-G.width);var z=this.option("rtlEnabled"),X=z?G:N,q=z?N:G,ye=(0,m.N)(this._$centerSection.get(0));(X.right>ye.left||ye.right>q.left)&&this._$centerSection.css({marginLeft:X.width,marginRight:q.width,float:X.width>q.width?"none":"right"})}_alignSection(N,G){var z=N.find(".".concat(F)).toArray();G-=this._getCurrentLabelsPaddings(z);var X=this._getCurrentLabelsWidth(z),q=Math.abs(X-G);G<X?(z=z.reverse(),this._alignSectionLabels(z,q,!1)):this._alignSectionLabels(z,q,!0)}_alignSectionLabels(N,G,W){for(var z=function(Ee){return(0,m.N)(Ee).width},X=0;X<N.length;X++){var q=(0,d.A)(N[X]),ye=Math.ceil(z(N[X]));W&&q.css("maxWidth","inherit");var ge=Math.ceil(W?z(N[X]):ye);if(!(ge<G)){q.css("maxWidth",W?ye+G:ye-G);break}G-=ge,q.css("maxWidth",W?ge:0)}}_applyCompactMode(){var N=this.$element();N.removeClass(ie),this.option("compactMode")&&this._getSummaryItemsSize("width",this.itemElements(),!0)>(0,r.RG)(N)&&N.addClass(ie)}_getCurrentLabelsWidth(N){var G=0;return N.forEach(function(W,z){G+=(0,r.Ot)(W)}),G}_getCurrentLabelsPaddings(N){var G=0;return N.forEach(function(W,z){G+=(0,r.Ot)(W)-(0,r.RG)(W)}),G}_renderItem(N,G,W,z){var X,q,ye=null!==(X=G.location)&&void 0!==X?X:"center",xe=W??this["_$".concat(ye,"Section")],ge=!!(null!==(q=G.text)&&void 0!==q?q:G.html),Ee=super._renderItem(N,G,xe,z);return Ee.toggleClass("dx-toolbar-button",!ge).toggleClass(F,ge).addClass(G.cssClass),Ee}_renderGroupedItems(){(0,R.__)(this.option("items"),(N,G)=>{var W,z=G.items,X=(0,d.A)("<div>").addClass("dx-toolbar-group"),q=null!==(W=G.location)&&void 0!==W?W:"center";!z||!z.length||((0,R.__)(z,(ye,xe)=>{this._renderItem(ye,xe,X,null)}),this._$toolbarItemsContainer.find(".dx-toolbar-".concat(q)).append(X))})}_renderItems(N){this.option("grouped")&&N.length&&N[0].items?this._renderGroupedItems():super._renderItems(N)}_getToolbarItems(){var N;return null!==(N=this.option("items"))&&void 0!==N?N:[]}_renderContentImpl(){var N=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===N.length),this._renderItems(this._renderedItemsCount?N.slice(this._renderedItemsCount):N),this._applyCompactMode()}_renderEmptyMessage(){}_clean(){this._$toolbarItemsContainer.children().empty(),this.$element().empty(),delete this._$beforeSection,delete this._$centerSection,delete this._$afterSection}_visibilityChanged(N){N&&this._arrangeItems()}_isVisible(){return(0,r.RG)(this.$element())>0&&(0,r.Oq)(this.$element())>0}_getIndexByItem(N){return this._getToolbarItems().indexOf(N)}_itemOptionChanged(N,G,W){super._itemOptionChanged.apply(this,[N,G,W]),this._arrangeItems()}_optionChanged(N){var{name:G}=N;switch(G){case"width":super._optionChanged.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:super._optionChanged.apply(this,arguments)}}_dispose(){super._dispose(),clearTimeout(this._waitParentAnimationTimeout)}_updateDimensionsInMaterial(){(0,L.gx)()&&Promise.all([new Promise(N=>{var G=()=>{var z=!0;return this.$element().parents().each((X,q)=>{if(w.A.isAnimating((0,d.A)(q)))return z=!1,!1}),z&&N(),z},W=()=>{clearTimeout(this._waitParentAnimationTimeout),this._waitParentAnimationTimeout=setTimeout(()=>G()||W(),15)};W()}),(()=>{var N=this.$element().find(".".concat(F)),G=[];return N.each((W,z)=>{var X=(0,d.A)(z).text(),q=(0,d.A)(z).css("fontWeight");G.push((0,L.ro)(X,q))}),Promise.all(G)})()]).then(()=>{this._dimensionChanged()})}}(0,o.A)("dxToolbarBase",oe);const me=oe},79130:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>ie});var r=D(56221),d=D(87951),L=D(12101),j=D(17278),o=D(87550),E=D(5042),R=D(72463),m=D(15655),_=D(20736),v=D(12984),h=/^[\d\w.+_-]+@[\d\w._-]+\.[\w]+$/i;class b{constructor(){this.NAME="base"}defaultMessage(re){return _.A.getFormatter("validation-".concat(this.NAME))(re)}defaultFormattedMessage(re){return _.A.getFormatter("validation-".concat(this.NAME,"-formatted"))(re)}_isValueEmpty(re){return!Y.required.validate(re,{})}validate(re,ne){var _e=Array.isArray(re)?re:[re],be=!0;return _e.length?_e.every(oe=>be=this._validate(oe,ne)):be=this._validate(null,ne),be}}class I extends b{constructor(){super(),this.NAME="custom"}validate(re,ne){if(ne.ignoreEmptyValue&&this._isValueEmpty(re))return!0;var _e=ne.validator,be=_e&&(0,R.Tn)(_e.option)&&_e.option("dataGetter"),oe=(0,R.Tn)(be)&&be(),me={value:re,validator:_e,rule:ne};return oe&&(0,d.X)(me,oe),ne.validationCallback(me)}}var Y={required:new class O extends b{constructor(){super(),this.NAME="required"}_validate(re,ne){return!(!(0,R.O9)(re)||!1===re)&&(re=String(re),(ne.trim||!(0,R.O9)(ne.trim))&&(re=re.trim()),""!==re)}},numeric:new class w extends b{constructor(){super(),this.NAME="numeric"}_validate(re,ne){return!(!1===ne.ignoreEmptyValue||!this._isValueEmpty(re))||(ne.useCultureSettings&&(0,R.Kg)(re)?!isNaN(m.A.parse(re)):(0,R.kf)(re))}},range:new class f extends b{constructor(){super(),this.NAME="range"}_validate(re,ne){if(!1!==ne.ignoreEmptyValue&&this._isValueEmpty(re))return!0;var _e=Y.numeric.validate(re,ne),be=(0,R.O9)(re)&&""!==re,oe=_e?parseFloat(re):be&&re.valueOf(),me=ne.min,we=ne.max;if(!_e&&!(0,R.$P)(re)&&!be)return!1;if((0,R.O9)(me))return(0,R.O9)(we)?oe>=me&&oe<=we:oe>=me;if((0,R.O9)(we))return oe<=we;throw o.A.Error("E0101")}},stringLength:new class k extends b{constructor(){super(),this.NAME="stringLength"}_validate(re,ne){var _e;return re=String(null!==(_e=re)&&void 0!==_e?_e:""),(ne.trim||!(0,R.O9)(ne.trim))&&(re=re.trim()),!(!ne.ignoreEmptyValue||!this._isValueEmpty(re))||Y.range.validate(re.length,(0,d.X)({},ne))}},custom:new I,async:new class x extends I{constructor(){super(),this.NAME="async"}validate(re,ne){if((0,R.O9)(ne.reevaluate)||(0,d.X)(ne,{reevaluate:!0}),ne.ignoreEmptyValue&&this._isValueEmpty(re))return!0;var _e=ne.validator,be=_e&&(0,R.Tn)(_e.option)&&_e.option("dataGetter"),oe=(0,R.Tn)(be)&&be(),me={value:re,validator:_e,rule:ne};oe&&(0,d.X)(me,oe);var we=ne.validationCallback(me);if(!(0,R.yL)(we))throw o.A.Error("E0103");return this._getWrappedPromise((0,v.Sx)(we).promise())}_getWrappedPromise(re){var ne=new v.cY;return re.then(function(_e){ne.resolve(_e)},function(_e){var be={isValid:!1};(0,R.O9)(_e)&&((0,R.Kg)(_e)?be.message=_e:(0,R.Gv)(_e)&&(0,R.O9)(_e.message)&&(0,R.Kg)(_e.message)&&(be.message=_e.message)),ne.resolve(be)}),ne.promise()}},compare:new class g extends b{constructor(){super(),this.NAME="compare"}_validate(re,ne){if(!ne.comparisonTarget)throw o.A.Error("E0102");if(ne.ignoreEmptyValue&&this._isValueEmpty(re))return!0;(0,d.X)(ne,{reevaluate:!0});var _e=ne.comparisonTarget();switch(ne.comparisonType||"=="){case"==":return re==_e;case"!=":return re!=_e;case"===":return re===_e;case"!==":return re!==_e;case">":return re>_e;case">=":return re>=_e;case"<":return re<_e;case"<=":return re<=_e}}},pattern:new class C extends b{constructor(){super(),this.NAME="pattern"}_validate(re,ne){if(!1!==ne.ignoreEmptyValue&&this._isValueEmpty(re))return!0;var _e=ne.pattern;return(0,R.Kg)(_e)&&(_e=new RegExp(_e)),_e.test(re)}},email:new class F extends b{constructor(){super(),this.NAME="email"}_validate(re,ne){return!(!1===ne.ignoreEmptyValue||!this._isValueEmpty(re))||Y.pattern.validate(re,(0,d.X)({},ne,{pattern:h}))}}},Q=r.A.inherit({ctor(ee){this.group=ee,this.validators=[],this._pendingValidators=[],this._onValidatorStatusChanged=this._onValidatorStatusChanged.bind(this),this._resetValidationInfo(),this._eventsStrategy=new j.h(this)},validate(){var ee={isValid:!0,brokenRules:[],validators:[],status:"valid",complete:null};return this._unsubscribeFromAllChangeEvents(),this._pendingValidators=[],this._resetValidationInfo(),(0,L.__)(this.validators,(re,ne)=>{var _e=ne.validate();ee.isValid=ee.isValid&&_e.isValid,_e.brokenRules&&(ee.brokenRules=ee.brokenRules.concat(_e.brokenRules)),ee.validators.push(ne),"pending"===_e.status&&this._addPendingValidator(ne),this._subscribeToChangeEvents(ne)}),this._pendingValidators.length?ee.status="pending":(ee.status=ee.isValid?"valid":"invalid",this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(ee)),this._updateValidationInfo(ee),(0,d.X)({},this._validationInfo.result)},_subscribeToChangeEvents(ee){ee.on("validating",this._onValidatorStatusChanged),ee.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents(ee){ee.off("validating",this._onValidatorStatusChanged),ee.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents(){(0,L.__)(this.validators,(ee,re)=>{this._unsubscribeFromChangeEvents(re)})},_updateValidationInfo(ee){this._validationInfo.result=ee,"pending"===ee.status&&(this._validationInfo.deferred||(this._validationInfo.deferred=new v.cY,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator(ee){(0,E.VM)(this._pendingValidators,function(ne){return ne===ee})[0]||this._pendingValidators.push(ee)},_removePendingValidator(ee){var re=this._pendingValidators.indexOf(ee);re>=0&&this._pendingValidators.splice(re,1)},_orderBrokenRules(ee){var re=[];return(0,L.__)(this.validators,function(ne,_e){var be=(0,E.VM)(ee,function(oe){return oe.validator===_e});be.length&&(re=re.concat(be))}),re},_updateBrokenRules(ee){if(this._validationInfo.result){var re=this._validationInfo.result.brokenRules,ne=(0,E.VM)(re,function(_e){return _e.validator!==ee.validator});ee.brokenRules&&(re=ne.concat(ee.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(re)}},_onValidatorStatusChanged(ee){"pending"!==ee.status?this._resolveIfComplete(ee):this._addPendingValidator(ee.validator)},_resolveIfComplete(ee){if(this._removePendingValidator(ee.validator),this._updateBrokenRules(ee),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?"valid":"invalid",this._validationInfo.result.isValid="valid"===this._validationInfo.result.status;var re=(0,d.X)({},this._validationInfo.result,{complete:null}),ne=this._validationInfo.deferred;this._validationInfo.deferred=null,this._raiseValidatedEvent(re),ne&&setTimeout(()=>{ne.resolve(re)})}},_raiseValidatedEvent(ee){this._eventsStrategy.fireEvent("validated",[ee])},_resetValidationInfo(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator(ee){var re=this.validators.indexOf(ee);re>-1&&(this.validators.splice(re,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:ee}))},registerValidator(ee){this.validators.includes(ee)||(this.validators.push(ee),this._synchronizeValidationInfo())},reset(){(0,L.__)(this.validators,function(ee,re){re.reset()}),this._pendingValidators=[],this._resetValidationInfo()},on(ee,re){return this._eventsStrategy.on(ee,re),this},off(ee,re){return this._eventsStrategy.off(ee,re),this}}),se={groups:[],getGroupConfig(ee){var re=(0,E.VM)(this.groups,function(ne){return ne.group===ee});if(re.length)return re[0]},findGroup(ee,re){var ne,_e,oe=(null===(ne=ee.data())||void 0===ne||null===(_e=ne.dxComponents)||void 0===_e?void 0:_e.includes("dxValidationGroup"))&&ee.dxValidationGroup("instance");if(oe)return oe;var me=ee.parents(".dx-validationgroup").first();return me.length?me.dxValidationGroup("instance"):re},initGroups(){this.groups=[],this.addGroup()},addGroup(ee){var re=this.getGroupConfig(ee);return re||(re=new Q(ee),this.groups.push(re)),re},removeGroup(ee){var re=this.getGroupConfig(ee),ne=this.groups.indexOf(re);return ne>-1&&this.groups.splice(ne,1),re},_setDefaultMessage(ee){var{rule:re,validator:ne,name:_e}=ee;(0,R.O9)(re.message)||(re.message=ne.defaultFormattedMessage&&(0,R.O9)(_e)?ne.defaultFormattedMessage(_e):ne.defaultMessage())},_addBrokenRule(ee){var{result:re,rule:ne}=ee;re.brokenRule||(re.brokenRule=ne),re.brokenRules||(re.brokenRules=[]),re.brokenRules.push(ne)},validate(ee,re,ne){var _e,be={name:ne,value:ee,brokenRule:null,brokenRules:null,isValid:!0,validationRules:re,pendingRules:null,status:"valid",complete:null},oe=null==re||null===(_e=re[0])||void 0===_e?void 0:_e.validator,me=[];return(0,L.__)(re||[],(we,N)=>{var W,G=Y[N.type];if(!G)throw o.A.Error("E0100");return(0,R.O9)(N.isValid)&&N.value===ee&&!N.reevaluate?!!N.isValid||(be.isValid=!1,this._addBrokenRule({result:be,rule:N}),!1):(N.value=ee,"async"===N.type?(me.push({rule:N,ruleValidator:G}),!0):(W=G.validate(ee,N),N.isValid=W,W||(be.isValid=!1,this._setDefaultMessage({rule:N,validator:G,name:ne}),this._addBrokenRule({result:be,rule:N})),!!N.isValid&&void 0))}),be.isValid&&!be.brokenRules&&me.length&&(be=this._validateAsyncRules({value:ee,items:me,result:be,name:ne})),this._synchronizeGroupValidationInfo(oe,be),be.status=be.pendingRules?"pending":be.isValid?"valid":"invalid",be},_synchronizeGroupValidationInfo(ee,re){var ne;if(ee){var _e=se.getGroupConfig(ee._validationGroup);_e._updateBrokenRules.call(_e,{validator:ee,brokenRules:null!==(ne=re.brokenRules)&&void 0!==ne?ne:[]})}},_validateAsyncRules(ee){var{result:re,value:ne,items:_e,name:be}=ee,oe=[];return(0,L.__)(_e,(me,we)=>{var N=we.ruleValidator.validate(ne,we.rule);if((0,R.yL)(N)){re.pendingRules||(re.pendingRules=[]),re.pendingRules.push(we.rule);var G=N.then(W=>{var z=this._getPatchedRuleResult(W);return this._updateRuleConfig({rule:we.rule,ruleResult:z,validator:we.ruleValidator,name:be}),z});oe.push(G)}else this._updateRuleConfig({rule:we.rule,ruleResult:this._getPatchedRuleResult(N),validator:we.ruleValidator,name:be})}),oe.length&&(re.complete=Promise.all(oe).then(me=>this._getAsyncRulesResult({result:re,values:me}))),re},_updateRuleConfig(ee){var{rule:re,ruleResult:ne,validator:_e,name:be}=ee;re.isValid=ne.isValid,ne.isValid||((0,R.O9)(ne.message)&&(0,R.Kg)(ne.message)&&ne.message.length?re.message=ne.message:this._setDefaultMessage({rule:re,validator:_e,name:be}))},_getPatchedRuleResult(ee){var re;return(0,R.Gv)(ee)?(re=(0,d.X)({},ee),(0,R.O9)(re.isValid)||(re.isValid=!0)):re={isValid:!(0,R.Lm)(ee)||ee},re},_getAsyncRulesResult(ee){var{values:re,result:ne}=ee;return(0,L.__)(re,(_e,be)=>{!1===be.isValid&&(ne.isValid=be.isValid,this._addBrokenRule({result:ne,rule:ne.pendingRules[_e]}))}),ne.pendingRules=null,ne.complete=null,ne.status=ne.isValid?"valid":"invalid",ne},registerValidatorInGroup(ee,re){var ne=se.addGroup(ee);ne.registerValidator.call(ne,re)},_shouldRemoveGroup:(ee,re)=>!(void 0===ee||ee&&"dxValidationGroup"===ee.NAME||re.length),removeRegisteredValidator(ee,re){var ne=se.getGroupConfig(ee);ne&&(ne.removeRegisteredValidator.call(ne,re),this._shouldRemoveGroup(ee,ne.validators)&&this.removeGroup(ee))},initValidationOptions(ee){var re={};return ee&&["isValid","validationStatus","validationError","validationErrors"].forEach(ne=>{ne in ee&&(0,d.X)(re,this.synchronizeValidationOptions({name:ne,value:ee[ne]},ee))}),re},synchronizeValidationOptions(ee,re){var{name:ne,value:_e}=ee;switch(ne){case"validationStatus":var be="valid"===_e||"pending"===_e;return re.isValid!==be?{isValid:be}:{};case"isValid":var{validationStatus:oe}=re,me=oe;return _e&&"invalid"===oe?me="valid":!_e&&"invalid"!==oe&&(me="invalid"),me!==oe?{validationStatus:me}:{};case"validationErrors":var we=_e&&_e.length?_e[0]:null;return re.validationError!==we?{validationError:we}:{};case"validationError":var{validationErrors:N}=re;if(!_e&&N)return{validationErrors:null};if(_e&&!N)return{validationErrors:[_e]};if(_e&&N&&_e!==N[0])return N[0]=_e,{validationErrors:N.slice()}}return{}},validateGroup(ee){var re=se.getGroupConfig(ee);if(!re)throw o.A.Error("E0110");return re.validate()},resetGroup(ee){var re=se.getGroupConfig(ee);if(!re)throw o.A.Error("E0110");return re.reset()}};se.initGroups();const ie=se},79465:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>w});var r=D(58168),d=D(80186),L=D(24292),j=D(64905),o=D(46022),E=D(87951),R=D(70370),m=D(50448),_="dx-invalid-message",O=o.A.inherit({_getDefaultOptions(){return(0,E.X)(this.callBase(),{integrationOptions:{},templatesRenderAsynchronously:!1,shading:!1,width:"auto",height:"auto",hideOnOutsideClick:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1,rtlEnabled:!1,contentTemplate:this._renderInnerHtml,maxWidth:"100%",container:this.$element(),target:void 0,mode:"auto",validationErrors:void 0,preventScrollEvents:!1,positionSide:"top",boundary:void 0,offset:{h:0,v:0},contentId:void 0})},_init(){this.callBase(),this.updateMaxWidth(),this._updatePosition()},_initMarkup(){this.callBase(),this._ensureMessageNotEmpty(),this._updatePositionByTarget(),this._toggleModeClass(),this._updateContentId()},_updatePositionByTarget:function(){var{target:f}=this.option();this.option("position.of",f)},_ensureMessageNotEmpty:function(){this._textMarkup=this._getTextMarkup();var f=this.option("visible")&&this._textMarkup;this._toggleVisibilityClasses(f)},_toggleVisibilityClasses:function(f){f?(this.$element().addClass(_),this.$wrapper().addClass(_)):(this.$element().removeClass(_),this.$wrapper().removeClass(_))},_updateContentId(){var{container:f,contentId:k}=this.option(),I=k??(0,L.A)(f).attr("aria-describedby");this.$content().addClass("dx-invalid-message-content").attr("id",I)},_renderInnerHtml(f){var k=f&&(0,L.A)(f);k?.html(this._textMarkup)},_getTextMarkup(){var f,k=null!==(f=this.option("validationErrors"))&&void 0!==f?f:[],I="";return k.forEach(x=>{var g;I+=(I?"<br />":"")+(0,R.o4)(null!==(g=x?.message)&&void 0!==g?g:"")}),I},_toggleModeClass(){var f=this.option("mode");this.$wrapper().toggleClass("dx-invalid-message-auto","auto"===f).toggleClass("dx-invalid-message-always","always"===f)},updateMaxWidth(){var f=this.option("target"),k=(0,d.Ot)(f),I="100%";k&&(I=Math.max(k,100)),this.option({maxWidth:I})},_getPositionsArray:function(f,k){switch(f){case"top":return["".concat(k," bottom"),"".concat(k," top")];case"left":return["right","left"];case"right":return["left","right"];default:return["".concat(k," top"),"".concat(k," bottom")]}},_updatePosition:function(){var{positionSide:f,rtlEnabled:k,offset:I,boundary:x}=this.option(),g=(0,m.n)(k),C=this._getPositionsArray(f,g),F=(0,r.A)({},I);this.$element().addClass("dx-invalid-message-".concat(f)),k&&"left"!==f&&"right"!==f&&(F.h=-F.h),"top"===f&&(F.v=-F.v),"left"===f&&(F.h=-F.h),this.option("position",{offset:F,boundary:x,my:C[0],at:C[1],collision:"none flip"})},_optionChanged(f){var{name:k,value:I,previousValue:x}=f;switch(k){case"target":this._updatePositionByTarget(),this.updateMaxWidth(),this.callBase(f);break;case"boundary":this.option("position.boundary",I);break;case"mode":this._toggleModeClass(I);break;case"rtlEnabled":case"offset":case"positionSide":this.$element().removeClass("dx-invalid-message-".concat(x)),this._updatePosition();break;case"container":this._updateContentId(),this.callBase(f);break;case"contentId":this._updateContentId();break;case"validationErrors":this._ensureMessageNotEmpty(),this._renderInnerHtml(this.$content());break;default:this.callBase(f)}}});(0,j.A)("dxValidationMessage",O);const w=O},15966:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>x});var r=D(98332),d=D(34423),L=D(87310),j=D(38365),o=D(87951),E=D(12101),R=D(79130);const v=D(56221).A.inherit({ctor(g,C){this.editor=g,this.validator=C,this.validationRequestsCallbacks=[];var F=Y=>{this.validationRequestsCallbacks.forEach(Q=>Q(Y))};g.validationRequest.add(F),g.on("disposing",function(){g.validationRequest.remove(F)})},getValue(){return this.editor.option("value")},getCurrentValidationError(){return this.editor.option("validationError")},bypass(){return this.editor.option("disabled")},applyValidationResults(g){this.editor.option({validationErrors:g.brokenRules,validationStatus:g.status})},reset(){this.editor.clear()},focus(){this.editor.focus()}});var h=D(64905),s=D(12984),b=D(13992),w="valid",k="pending",I=j.A.inherit({_initOptions:function(g){this.callBase.apply(this,arguments),this.option(R.A.initValidationOptions(g))},_getDefaultOptions(){return(0,o.X)(this.callBase(),{validationRules:[]})},_init(){this.callBase(),this._initGroupRegistration(),this.focused=(0,d.A)(),this._initAdapter(),this._validationInfo={result:null,deferred:null,skipValidation:!1}},_initGroupRegistration(){var g=this._findGroup();this._groupWasInit||this.on("disposing",function(C){R.A.removeRegisteredValidator(C.component._validationGroup,C.component)}),(!this._groupWasInit||this._validationGroup!==g)&&(R.A.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=g,R.A.registerValidatorInGroup(g,this))},_setOptionsByReference(){this.callBase(),(0,o.X)(this._optionsByReference,{validationGroup:!0})},_getEditor(){var g=this.$element()[0];return(0,r.p)(g,"dx-validation-target")},_initAdapter(){var g=this._getEditor(),C=this.option("adapter");if(!C){if(g)return(C=new v(g,this)).validationRequestsCallbacks.push(Y=>{this._validationInfo.skipValidation||this.validate(Y)}),void this.option("adapter",C);throw L.A.Error("E0120")}var F=C.validationRequestsCallbacks;F&&F.push(Y=>{this.validate(Y)})},_toggleRTLDirection(g){var C,F,Y,Q=null!==(C=null===(F=this.option("adapter"))||void 0===F||null===(Y=F.editor)||void 0===Y?void 0:Y.option("rtlEnabled"))&&void 0!==C?C:g;this.callBase(Q)},_initMarkup(){this.$element().addClass("dx-validator"),this.callBase()},_render(){this.callBase(),this._toggleAccessibilityAttributes()},_toggleAccessibilityAttributes(){var g=this._getEditor();if(g){var F=(this.option("validationRules")||[]).some(Y=>{var{type:Q}=Y;return"required"===Q})||null;g.isInitialized()&&g.setAria("required",F),g.option("_onMarkupRendered",()=>{g.setAria("required",F)})}},_visibilityChanged(g){g&&this._initGroupRegistration()},_optionChanged(g){switch(g.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),this._toggleAccessibilityAttributes(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;case"isValid":case"validationStatus":this.option(R.A.synchronizeValidationOptions(g,this.option()));break;default:this.callBase(g)}},_getValidationRules(){return this._validationRules||(this._validationRules=(0,E.Tj)(this.option("validationRules"),(g,C)=>(0,o.X)({},g,{validator:this,index:C}))),this._validationRules},_findGroup(){var g=this.$element();return this.option("validationGroup")||R.A.findGroup(g,this._modelByElement(g))},_resetValidationRules(){delete this._validationRules},validate(g){var re,C=this.option("adapter"),F=this.option("name"),Y=C.bypass&&C.bypass(),Q=g&&void 0!==g.value?g.value:C.getValue(),se=C.getCurrentValidationError&&C.getCurrentValidationError(),ie=this._getValidationRules(),ee=this._validationInfo&&this._validationInfo.result;return ee&&ee.status===k&&ee.value===Q?(0,o.X)({},ee):(Y?re={isValid:!0,status:w}:se&&se.editorSpecific?(se.validator=this,re={isValid:!1,status:"invalid",brokenRule:se,brokenRules:[se]}):re=R.A.validate(Q,ie,F),re.id=(new b.A).toString(),this._applyValidationResult(re,C),re.complete&&re.complete.then(ne=>{ne.id===this._validationInfo.result.id&&this._applyValidationResult(ne,C)}),(0,o.X)({},this._validationInfo.result))},reset(){var g=this.option("adapter"),C={id:null,isValid:!0,brokenRule:null,brokenRules:null,pendingRules:null,status:w,complete:null};this._validationInfo.skipValidation=!0,g.reset(),this._validationInfo.skipValidation=!1,this._resetValidationRules(),this._applyValidationResult(C,g)},_updateValidationResult(g){if(this._validationInfo.result&&this._validationInfo.result.id===g.id)for(var F in g)"id"!==F&&"complete"!==F&&(this._validationInfo.result[F]=g[F]);else this._validationInfo.result=(0,o.X)({},g,{complete:this._validationInfo.deferred&&this._validationInfo.result.complete})},_applyValidationResult(g,C){var F=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});if(g.validator=this,this._updateValidationResult(g),C.applyValidationResults&&C.applyValidationResults(this._validationInfo.result),this.option({validationStatus:this._validationInfo.result.status}),this._validationInfo.result.status===k)return this._validationInfo.deferred||(this._validationInfo.deferred=new s.cY,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result]);this._validationInfo.result.status!==k&&(F(g),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(g),this._validationInfo.deferred=null))},focus(){var g=this.option("adapter");g&&g.focus&&g.focus()},_useTemplates:function(){return!1}});(0,h.A)("dxValidator",I);const x=I},31063:(ei,rt,D)=>{"use strict";D.d(rt,{Kr:()=>E,in:()=>R,nq:()=>o});var r=D(24292),d=D(17669),L=function(m,_){if(!function j(m){var _=(0,r.A)(m);return _.is(":visible")&&"hidden"!==_.css("visibility")&&"hidden"!==_.parents().css("visibility")}(m))return!1;var v=m.nodeName.toLowerCase(),h=!isNaN(_),s=m.disabled;return/^(input|select|textarea|button|object|iframe)$/.test(v)||m.isContentEditable?!s:"a"===v&&m.href||h},o=function(m,_){return L(_,(0,r.A)(_).attr("tabIndex"))},E=function(m,_){var v=(0,r.A)(_).attr("tabIndex");return(isNaN(v)||v>=0)&&L(_,v)},R=function(m){var _=(0,r.A)(m).get(0);return d.A.getActiveElement(_)===_}},69049:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>o});var r=D(24292),d=D(3558),L="dx-swatch-";const o={getSwatchContainer:E=>{var m=(0,r.A)(E).closest('[class^="'.concat(L,'"], [class*=" ').concat(L,'"]')),_=(0,d.Uq)();if(!m.length)return _;var v=new RegExp("(\\s|^)(".concat(L,".*?)(\\s|$)")),h=m[0].className.match(v)[2],s=_.children("."+h);return s.length||(s=(0,r.A)("<div>").addClass(h).appendTo(_)),s}}},87310:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>L});var r=D(6161),d=D(87550);const L=(0,r.A)(d.A.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',E1058:'The "startDayHour" and "endDayHour" options must be integers in the [0, 24] range, with "endDayHour" being greater than "startDayHour".',E1059:"The following column names are not unique: {0}",E1060:"All editable columns must have names",E1061:'The "offset" option must be an integer in the [-1440, 1440] range, divisible by 5 without a remainder.',E1062:'The "cellDuration" must be a positive integer, evenly dividing the ("endDayHour" - "startDayHour") interval into minutes.',W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config.",W1016:"The '{0}' field in the HTML Editor toolbar item configuration was renamed to '{1}'. Please make a corresponding change in your code.",W1017:"The 'key' property is not specified for a lookup data source. Please specify it to prevent requests for the entire dataset when users filter data.",W1018:"Infinite scrolling may not work properly with multiple selection. To use these features together, set 'selection.deferred' to true or set 'selection.selectAllMode' to 'page'.",W1019:"Filter query string exceeds maximum length limit of {0} characters.",W1020:"hideEvent is ignored when the shading property is true",W1021:"The '{0}' is not rendered because none of the DOM elements match the value of the \"container\" property.",W1022:"{0} JSON parsing error: '{1}'",W1023:"Appointments require unique keys. Otherwise, the agenda view may not work correctly.",W1024:"The client-side export is enabled. Implement the 'onExporting' function.",W1025:"'scrolling.mode' is set to 'virtual' or 'infinite'. Specify the height of the component."})},68257:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>m});var r=D(24292),d=D(87951),L=D(20736),j=D(87310),o=D(12984),R=function E(_){return class{constructor(){throw new Error("Module '".concat(_,"' not found"))}static getInstance(){}}}("TextBox");const m={_getDefaultOptions:function(){return(0,d.X)(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var _=this.$element(),v=this.option("searchEnabled"),h=this._addWidgetPrefix("search"),s=this._addWidgetPrefix("with-search");if(!v)return _.removeClass(s),void this._removeSearchBox();var b=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(b):(_.addClass(s),this._$searchEditorElement=(0,r.A)("<div>").addClass(h).prependTo(_),this._searchEditor=this._createComponent(this._$searchEditorElement,R,b))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var _=this,v=_.option("searchEditorOptions"),h=L.A.format("Search");return(0,d.X)({mode:"search",placeholder:h,tabIndex:_.option("tabIndex"),value:_.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":h},onValueChanged:function(s){var b=_.option("searchTimeout");_._valueChangeDeferred=new o.cY,clearTimeout(_._valueChangeTimeout),_._valueChangeDeferred.done(function(){this.option("searchValue",s.value)}.bind(_)),s.event&&"input"===s.event.type&&b?_._valueChangeTimeout=setTimeout(function(){_._valueChangeDeferred.resolve()},b):_._valueChangeDeferred.resolve()}},v)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(_,v){this.option("searchEnabled")&&this._toggleFocusClass(v,this.$element()),this.callBase(_,v)},getOperationBySearchMode:function(_){return"equals"===_?"=":_},_optionChanged:function(_){switch(_.name){case"searchEnabled":case"searchEditorOptions":this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void j.A.log("W1009");"searchMode"===_.name?this._dataSource.searchOperation(this.getOperationBySearchMode(_.value)):this._dataSource[_.name](_.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(_)}},focus:function(){this.option("focusedElement")||!this.option("searchEnabled")?this.callBase():this._searchEditor&&this._searchEditor.focus()},_cleanAria:function(){var _=this.$element();this.setAria({role:null,activedescendant:null},_),_.attr("tabIndex",null)},_clean(){this.callBase(),this._cleanAria()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()},setEditorClass:function(_){R=_}}},98041:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>k});var r=D(24292),d=D(75135),L=D(38365),j=D(8257),o=D(5042),E=D(12101),R=D(87951),m=D(31063),_=D(72463),v=D(23862),h=D(39011);function w(I,x,g){I="role"===I||"id"===I?I:"aria-".concat(I),x=(0,_.O9)(x)?x.toString():null,g.attr(I,x)}D(18060),D(55424),D(14017);var f=L.A.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:()=>({}),_getDefaultOptions(){return(0,R.X)(this.callBase(),{hoveredElement:null,isActive:!1,disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:void 0,onFocusIn:null,onFocusOut:null,onKeyboardHandled:null,ignoreParentReadOnly:!1,useResizeObserver:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var I=v.A.real();return"ios"===I.platform&&(0,h.U)(I.version,"13.3")<=0},options:{useResizeObserver:!1}}])},_init(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(I,x){var g=f.getOptionsFromContainer(x);I&&I.option(g),this._options.cache(x.name,g)},_bindInnerWidgetOptions(I,x){var g=()=>this._options.silent(x,(0,R.X)({},I.option()));g(),I.on("optionChanged",g)},_getAriaTarget(){return this._focusTarget()},_initContentReadyAction(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup(){var{disabled:I,visible:x}=this.option();this.$element().addClass("dx-widget"),this._toggleDisabledState(I),this._toggleVisibility(x),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint(){var{hint:I}=this.option();this.$element().attr("title",I||null)},_renderContent(){(0,o.zE)(()=>this._disposed?void 0:this._renderContentImpl()).done(()=>this._disposed?void 0:this._fireContentReadyAction())},_renderContentImpl:o.lQ,_fireContentReadyAction:(0,o.Mb)(function(){return this._contentReadyAction()}),_dispose(){this._contentReadyAction=null,this._detachKeyboardEvents(),this.callBase()},_resetActiveState(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility(I){this.$element().toggleClass("dx-state-invisible",!I)},_renderFocusState(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey(){var I=this._focusTarget(),{accessKey:x}=this.option();I.attr("accesskey",x)},_isFocusable(){var{focusStateEnabled:I,disabled:x}=this.option();return I&&!x},_eventBindingTarget(){return this.$element()},_focusTarget(){return this._getActiveElement()},_isFocusTarget:function(I){return(0,r.A)(this._focusTarget()).toArray().includes(I)},_findActiveTarget(I){return I.find(this._activeStateUnit).not(".dx-state-disabled")},_getActiveElement(){var I=this._eventBindingTarget();return this._activeStateUnit?this._findActiveTarget(I):I},_renderFocusTarget(){var{tabIndex:I}=this.option();this._focusTarget().attr("tabIndex",I)},_keyboardEventBindingTarget(){return this._eventBindingTarget()},_refreshFocusEvent(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget(){return this._focusTarget()},_focusInHandler(I){I.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:()=>this._updateFocusState(I,!0),excludeValidators:["readOnly"]})({event:I})},_focusOutHandler(I){I.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:()=>this._updateFocusState(I,!1),excludeValidators:["readOnly","disabled"]})({event:I})},_updateFocusState(I,x){var{target:g}=I;this._isFocusTarget(g)&&this._toggleFocusClass(x,(0,r.A)(g))},_toggleFocusClass(I,x){(x&&x.length?x:this._focusTarget()).toggleClass("dx-state-focused",I)},_hasFocusClass(I){return(0,r.A)(I||this._focusTarget()).hasClass("dx-state-focused")},_isFocused(){return this._hasFocusClass()},_getKeyboardListeners:()=>[],_attachKeyboardEvents(){this._detachKeyboardEvents();var{focusStateEnabled:I,onKeyboardHandled:x}=this.option(),g=this._getKeyboardListeners().length;(I||g||x)&&(this._keyboardListenerId=j.QJ.on(this._keyboardEventBindingTarget(),this._focusTarget(),Y=>this._keyboardHandler(Y)))},_keyboardHandler(I,x){if(!x){var{originalEvent:g,keyName:C,which:F}=I,Y=this._supportedKeys(g),Q=Y[C]||Y[F];if(void 0!==Q&&!Q.bind(this)(g,I))return!1}var ee=this._getKeyboardListeners(),{onKeyboardHandled:re}=this.option();return ee.forEach(ne=>ne&&ne._keyboardHandler(I)),re&&re(I),!0},_refreshFocusState(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState(){this._focusTarget().removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents(){j.QJ.off(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents(){var{hoverStateEnabled:I}=this.option(),x=this._activeStateUnit,g=this._eventBindingTarget();j.PT.off(g,{selector:x,namespace:"UIFeedback"}),I&&j.PT.on(g,new d.A(C=>{var{event:F,element:Y}=C;this._hoverStartHandler(F),this.option("hoveredElement",(0,r.A)(Y))},{excludeValidators:["readOnly"]}),C=>{this.option("hoveredElement",null),this._hoverEndHandler(C)},{selector:x,namespace:"UIFeedback"})},_attachFeedbackEvents(){var{activeStateEnabled:I}=this.option(),x=this._activeStateUnit,g=this._eventBindingTarget();j.vu.off(g,{namespace:"UIFeedback",selector:x}),I&&j.vu.on(g,new d.A(C=>{var{event:F,element:Y}=C;return this._toggleActiveState((0,r.A)(Y),!0,F)}),new d.A(C=>{var{event:F,element:Y}=C;return this._toggleActiveState((0,r.A)(Y),!1,F)},{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:x,namespace:"UIFeedback"})},_detachFocusEvents(){var I=this._focusEventTarget();j.XC.off(I,{namespace:"".concat(this.NAME,"Focus")})},_attachFocusEvents(){var I=this._focusEventTarget();j.XC.on(I,x=>this._focusInHandler(x),x=>this._focusOutHandler(x),{namespace:"".concat(this.NAME,"Focus"),isFocusable:(x,g)=>(0,r.A)(g).is(m.nq)})},_hoverStartHandler:o.lQ,_hoverEndHandler:o.lQ,_toggleActiveState(I,x){this.option("isActive",x),I.toggleClass("dx-state-active",x)},_updatedHover(){var I=this._options.silent("hoveredElement");this._hover(I,I)},_findHoverTarget(I){return I&&I.closest(this._activeStateUnit||this._eventBindingTarget())},_hover(I,x){var{hoverStateEnabled:g,disabled:C,isActive:F}=this.option();if((x=this._findHoverTarget(x))&&x.toggleClass("dx-state-hover",!1),I&&g&&!C&&!F){var Y=this._findHoverTarget(I);Y&&Y.toggleClass("dx-state-hover",!0)}},_toggleDisabledState(I){this.$element().toggleClass("dx-state-disabled",!!I),this.setAria("disabled",I||void 0)},_toggleIndependentState(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption(I,x){if(this[I]){if((0,_.Qd)(x[0]))return void(0,E.__)(x[0],(Y,Q)=>this._setWidgetOption(I,[Y,Q]));var g=x[0],C=x[1];1===x.length&&(C=this.option(g));var F=this["".concat(I,"OptionMap")];this[I].option(F?F(g):g,C)}},_optionChanged(I){var{name:x,value:g,previousValue:C}=I;switch(x){case"disabled":this._toggleDisabledState(g),this._updatedHover(),this._refreshFocusState();break;case"hint":this._renderHint();break;case"ignoreParentReadOnly":this._toggleIndependentState();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents(),this._updatedHover();break;case"tabIndex":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":case"useResizeObserver":break;case"accessKey":this._renderAccessKey();break;case"hoveredElement":this._hover(g,C);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(g),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(g?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(I)}},_isVisible(){var{visible:I}=this.option();return this.callBase()&&I},beginUpdate(){this._ready(!1),this.callBase()},endUpdate(){this.callBase(),this._initialized&&this._ready(!0)},_ready(I){if(0===arguments.length)return this._isReady;this._isReady=I},setAria(){if((0,_.Qd)(arguments.length<=0?void 0:arguments[0])){var I=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();(0,E.__)(arguments.length<=0?void 0:arguments[0],(x,g)=>w(x,g,I))}else w(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],(arguments.length<=2?void 0:arguments[2])||this._getAriaTarget())},isReady(){return this._ready()},repaint(){this._refresh()},focus(){j.XC.trigger(this._focusTarget())},registerKeyHandler(I,x){var g=this._supportedKeys();this._supportedKeys=()=>(0,R.X)(g,{[I]:x})}});f.getOptionsFromContainer=I=>{var{name:x,fullName:g,value:C}=I,F={};return x===g?F=C:F[g.split(".").pop()]=C,F};const k=f},26115:(ei,rt,D)=>{"use strict";D.d(rt,{SK:()=>C,XX:()=>b,pw:()=>s,vF:()=>k});var r=D(80186),d=D(24292),L="dx-inkripple",j="dx-inkripple-wave",o="dx-inkripple-showing",E="dx-inkripple-hiding",h=0,s=function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{useHoldAnimation:Y,waveSizeCoefficient:Q,isCentered:se,wavesNumber:ie}=F;return{waveSizeCoefficient:Q||2,isCentered:se||!1,wavesNumber:ie||1,durations:x(Y??!0)}},b=function(F){var Y=s(F);return{showWave:k.bind(this,Y),hideWave:C.bind(this,Y)}},w=function(F,Y){for(var Q=function(F){var Y=F.children("."+L);return 0===Y.length&&(Y=(0,d.A)("<div>").addClass(L).appendTo(F)),Y}((0,d.A)(F)),se=Q.children("."+j).toArray(),ie=se.length;ie<Y;ie++){var ee=(0,d.A)("<div>").appendTo(Q).addClass(j);se.push(ee[0])}return(0,d.A)(se)},f=function(F,Y){var ne,_e,Q=(0,d.A)(Y.element),se=(0,r.Ot)(Q),ie=(0,r.P$)(Q),ee=parseInt(Math.sqrt(se*se+ie*ie)),re=Math.min(4e3,parseInt(ee*F.waveSizeCoefficient));if(F.isCentered)ne=(se-re)/2,_e=(ie-re)/2;else{var be=Y.event,oe=Q.offset();ne=be.pageX-oe.left-re/2,_e=be.pageY-oe.top-re/2}return{left:ne,top:_e,height:re,width:re}};function k(F,Y){var Q=w(Y.element,F.wavesNumber).eq(Y.wave||h);F.hidingTimeout&&clearTimeout(F.hidingTimeout),g(Q),Q.css(f(F,Y)),F.showingTimeout=setTimeout(I.bind(this,F,Q),0)}function I(F,Y){var Q=F.durations.showingScale+"ms";Y.addClass(o).css("transitionDuration",Q)}function x(F){return{showingScale:F?1e3:300,hidingScale:300,hidingOpacity:300}}function g(F){F.removeClass(E).css("transitionDuration","")}function C(F,Y){F.showingTimeout&&clearTimeout(F.showingTimeout);var Q=w(Y.element,Y.wavesNumber).eq(Y.wave||h),se=F.durations,ie=se.hidingScale+"ms, "+se.hidingOpacity+"ms";Q.addClass(E).removeClass(o).css("transitionDuration",ie);var ee=Math.max(se.hidingScale,se.hidingOpacity);F.hidingTimeout=setTimeout(g.bind(this,Q),ee)}},61067:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>k});var r=D(72463),d=D(19142),L=D(68786),{floor:j,sqrt:o}=Math,E=Math.min,R=Math.max,_=d.A.radialLabelIndent;function v(F,Y,Q){return Q<F?F:Y<Q?Y:Q}function h(F){if(F._label.isVisible()&&"inside"!==F._label.getLayoutOptions().position)return F._label.getBoundingRect()}function b(F){return F.reduce(function(Y,Q){var se=Q.getVisiblePoints().reduce(function(ee,re){var ne=h(re);return ne&&ne.width>ee&&(ee=ne.width),ee},0),ie=se;return se&&(Y.outerLabelsCount++,Y.outerLabelsCount>1&&(se+=d.A.pieLabelSpacing),ie+=d.A.pieLabelSpacing),Y.sizes.push(se),Y.rSizes.push(ie),Y.common+=se,Y},{sizes:[],rSizes:[],common:0,outerLabelsCount:0})}function O(F,Y,Q,se,ie,ee){var re,ne,_e=0,be=F.sizes,oe=F.rSizes;for(ne=0;ne<Q.length;ne++)0!==be[ne]?(re=j(re?re+oe[ne-1]:Y),Q[ne].correctLabelRadius(re),_e+=ie||be[ne],oe[ne]=ie||oe[ne],Q[ne].setVisibleArea({left:j(ee-Y-_e),right:j(se.width-(ee+Y+_e)),top:se.top,bottom:se.bottom,width:se.width,height:se.height})):re&&(re+=oe[ne-1])}function f(F){var{type:Y,innerRadius:Q}=F;return"pie"===Y?0:(0,r.kf)(Q)?Number(Q):.5}function k(){}function I(F,Y,Q,se){return(F-Y-_-Q.left)/se.outerLabelsCount}function g(F,Y,Q,se,ie,ee){var ne,re=b(Q),_e=function x(F,Y,Q){return F-Y.left-(Q.outerLabelsCount>0?Q.common+_:0)}(ie,Y,re);return _e<se?ne=I(ie,F=se,Y,re):F=E(function s(F,Y,Q,se,ie){return F.some(function(ee){return ee.getVisiblePoints().reduce(function(re,ne){var _e=h(ne);if(_e){var be=v(_e.x,_e.x+_e.width,Y),oe=v(_e.y,_e.y+_e.height,Q);se=E(R(function w(F,Y,Q,se){return o((F-Q)*(F-Q)+(Y-se)*(Y-se))}(be,oe,Y,Q)-_,ie),se),re=!0}return re},!1)}),se}(Q,ie,ee,F,se),_e),O(re,F+_,Q,Y,ne,ie),F}function C(F){return new L.O(null,{x:F.left,y:F.top,width:F.width-F.left-F.right,height:F.height-F.top-F.bottom})}k.prototype={constructor:k,setOptions:function(F){this._options=F},applyPieChartSeriesLayout:function(F,Y,Q){var _e,be,se=F.height-F.top-F.bottom,ie=F.width-F.left-F.right,ee=ie/2+F.left,re=se/2+F.top,ne=this._options.piePercentage;return(0,r.kf)(ne)?_e=be=ne*E(F.height,F.width)/2:(_e=E(ie,se)/2,be=this._options.minPiePercentage*_e),Q||(_e=g(_e,F,Y,be,ee,re)),{centerX:j(ee),centerY:j(re),radiusInner:j(_e*f(Y[0])),radiusOuter:j(_e)}},applyEqualPieChartLayout:function(F,Y){var Q=Y.radius;return{centerX:j(Y.x),centerY:j(Y.y),radiusInner:j(Q*f(F[0])),radiusOuter:j(Q)}},correctPieLabelRadius:function(F,Y,Q){var ie,se=b(F),ee=Y.radiusOuter+_;se.common+_>Y.centerX-Q.left-ee&&(ie=I(Y.centerX,Y.radiusOuter,Q,se)),O(se,ee,F,Q,ie,Y.centerX)},needMoreSpaceForPanesCanvas(F,Y,Q){var se=this._options,ie=se.width,ee=se.height,re=se.piePercentage,ne=(0,r.kf)(re),_e=0,be=0;return F.forEach(oe=>{var me=oe.canvas,we=ne?E(me.width,me.height)*re:void 0,N=Q?Q(oe):{width:!1,height:!1},G=N.width?0:(ne?we:ie)-(me.width-me.left-me.right),W=N.height?0:(ne?we:ee)-(me.height-me.top-me.bottom);Y?(_e+=G>0?G:0,be=R(W>0?W:0,be)):(_e=R(G>0?G:0,_e),be+=W>0?W:0)}),(_e>0||be>0)&&{width:_e,height:be}},layoutInsideLegend:function(F,Y){var Q=F.getLayoutOptions();if(Q){var se=Q.position,ie=Q.cutSide,ee={horizontal:se.horizontal,vertical:se.vertical};Y[Q.cutLayoutSide]+="horizontal"===Q.cutSide?Q.width:Q.height,ee[ie]={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"}[ee[ie]],F.position({of:C(Y),my:ee,at:se})}}}},19142:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>r});const r={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4}},43037:(ei,rt,D)=>{"use strict";D.d(rt,{S:()=>E});var r=D(5042),d=D(39504),L=D(72463),j={string:function(R){return(0,L.O9)(R)?""+R:R},numeric:function(R){if(!(0,L.O9)(R))return R;var m=Number(R);return isNaN(m)&&(m=void 0),m},datetime:function(R){if(!(0,L.O9)(R))return R;var m,_=Number(R);return m=isNaN(_)?d.A.deserializeDate(R):new Date(_),isNaN(Number(m))&&(m=void 0),m}},E=function(R){return j[function o(R){return"numeric"===R||"datetime"===R||"string"===R?R:""}(R)]||r.lQ}},20537:(ei,rt,D)=>{"use strict";D.d(rt,{N:()=>re});var r=D(17669),d=D(72463),L=D(25188),j=D(87951),o=D(43458),E=D(71451),R=D(24159),m=D(99393),_=D(49104),v=D(91269),h=r.A.getDocument,s="annotations",b="."+s,O=(0,_.b4)([R.A.down,R.A.move],s),w=(0,_.b4)(R.A.up,s),f=m.ni+b,k=m.Cy+b,I=m._N+b;function C(ne){return"string"==typeof ne?{url:ne}:ne}var Y={name:"annotations_chart",init(){},dispose(){},members:{_getAnnotationCoords(ne){var _e,be,z,q,oe={offsetX:ne.offsetX,offsetY:ne.offsetY},me=this._options.silent("rotated")?"y":"x",we=this._options.silent("rotated")?"x":"y",N=this.getArgumentAxis(),G=N.validateUnit(ne.argument),W=this.getValueAxis(ne.axis),X=null===(_e=W)||void 0===_e?void 0:_e.pane;if(ne.series&&(z=this.series.filter(he=>he.name===ne.series)[0],W=null===(q=z)||void 0===q?void 0:q.getValueAxis(),(0,d.O9)(W)&&(X=W.pane)),(0,d.O9)(G)){if(z){var ye=z.getPointCenterByArg(G);ye&&(oe[me]=ye[me])}else oe[me]=N.getTranslator().translate(G);!(0,d.O9)(X)&&(X=N.pane)}var ge,Ee,xe=null===(be=W)||void 0===be?void 0:be.validateUnit(ne.value);return(0,d.O9)(xe)&&(oe[we]=null===(ge=W)||void 0===ge?void 0:ge.getTranslator().translate(xe),!(0,d.O9)(X)&&(0,d.O9)(W)&&(X=W.pane)),oe.canvas=this._getCanvasForPane(X),(0,d.O9)(oe[me])&&!(0,d.O9)(xe)&&((0,d.O9)(W)||(0,d.O9)(z)?(0,d.O9)(W)&&!(0,d.O9)(z)?oe[we]=this._argumentAxes.filter(he=>he.pane===W.pane)[0].getAxisPosition():null!==(Ee=z)&&void 0!==Ee&&Ee.checkSeriesViewportCoord(N,oe[me])&&(oe[we]=z.getSeriesPairCoord(oe[me],!0)):oe[we]=N.getAxisPosition()),!(0,d.O9)(G)&&(0,d.O9)(oe[we])&&((0,d.O9)(W)&&!(0,d.O9)(z)?oe[me]=W.getAxisPosition():(0,d.O9)(z)&&z.checkSeriesViewportCoord(W,oe[we])&&(oe[me]=z.getSeriesPairCoord(oe[we],!1))),oe},_annotationsPointerEventHandler(ne){if(!this._disposed){var _e=ne.originalEvent||{},be=_e.touches&&_e.touches[0]||{},oe=this._renderer.getRootOffset(),me={x:be.pageX||_e.pageX||ne.pageX,y:be.pageY||_e.pageY||ne.pageY},we=this._annotations.items.filter(N=>N.hitTest(me.x-oe.left,me.y-oe.top))[0];if(!we||!we.options.tooltipEnabled)return void this._annotations.hideTooltip();this._clear(),we.options.allowDragging&&ne.type===R.A.down&&(this._annotations._hideToolTipForDrag=!0),this._annotations._hideToolTipForDrag||(we.showTooltip(this._annotations.tooltip,me),ne.stopPropagation())}},_isAnnotationBounded:ne=>(0,d.O9)(ne.value)||(0,d.O9)(ne.argument),_pullOptions:ne=>({type:ne.type,name:ne.name,x:ne.x,y:ne.y,value:ne.value,argument:ne.argument,axis:ne.axis,series:ne.series,options:ne,offsetX:ne.offsetX,offsetY:ne.offsetY}),_forceAnnotationRender(){this._change(["FORCE_RENDER"])},_clear(){this.hideTooltip(),this.clearHover()}}},Q={name:"annotations_polar_chart",init(){},dispose(){},members:{_getAnnotationCoords(ne){var G,W,_e={offsetX:ne.offsetX,offsetY:ne.offsetY,canvas:this._calcCanvas()},be=this.getArgumentAxis(),oe=be.validateUnit(ne.argument),me=this.getValueAxis().validateUnit(ne.value),we=ne.radius,N=ne.angle;return ne.series&&(W=this.series.filter(z=>z.name===ne.series)[0]),(0,j.X)(!0,_e,this.getXYFromPolar(N,we,oe,me)),(0,d.O9)(W)&&(!(0,d.O9)(_e.angle)||(0,d.O9)(me)||(0,d.O9)(we)?(0,d.O9)(_e.radius)&&!(0,d.O9)(oe)&&!(0,d.O9)(N)&&(G=W.getSeriesPairCoord({radius:_e.radius},!1)):((0,d.O9)(oe)||(oe=be.getTranslator().from(isFinite(N)?this.getActualAngle(N):_e.angle)),G=W.getSeriesPairCoord({argument:oe,angle:-_e.angle},!0)),(0,d.O9)(G)&&(_e.x=G.x,_e.y=G.y)),ne.series&&!(0,d.O9)(G)&&(_e.x=_e.y=void 0),_e},_annotationsPointerEventHandler:Y.members._annotationsPointerEventHandler,_isAnnotationBounded:Y.members._isAnnotationBounded,_pullOptions(ne){var _e=(0,j.X)({},{radius:ne.radius,angle:ne.angle},Y.members._pullOptions(ne));return delete _e.axis,_e},_forceAnnotationRender:Y.members._forceAnnotationRender,_clear:Y.members._clear}},se={name:"annotations_vector_map",init(){},dispose(){this._annotations._offTracker(),this._annotations._offTracker=null},members:{_getAnnotationCoords(ne){var _e={offsetX:ne.offsetX,offsetY:ne.offsetY};if(_e.canvas=this._projection.getCanvas(),ne.coordinates){var be=this._projection.toScreenPoint(ne.coordinates);_e.x=be[0],_e.y=be[1]}return _e},_annotationsPointerEventHandler:Y.members._annotationsPointerEventHandler,_isAnnotationBounded:ne=>(0,d.O9)(ne.coordinates),_pullOptions(ne){var _e=(0,j.X)({},{coordinates:ne.coordinates},Y.members._pullOptions(ne));return delete _e.axis,delete _e.series,delete _e.argument,delete _e.value,_e},_forceAnnotationRender(){this._change(["EXTRA_ELEMENTS"])},_getAnnotationStyles:()=>({"text-anchor":"start"}),_clear(){}},extenders:{_prepareExtraElements(){var ne=this,_e=()=>{ne._renderExtraElements()};ne._annotations._offTracker=ne._tracker.on({move:_e,zoom:_e,end:_e})}}},ie={name:"annotations_pie_chart",init(){},dispose(){},members:{_getAnnotationCoords(ne){var be={offsetX:ne.offsetX,offsetY:ne.offsetY,canvas:this._canvas};if(ne.argument){var oe=(ne.series?this.getSeriesByName(ne.series):this.series[0]).getPointsByArg(ne.argument)[0],{x:me,y:we}=oe.getAnnotationCoords(ne.location);be.x=me,be.y=we}return be},_isAnnotationBounded:ne=>ne.argument,_annotationsPointerEventHandler:Y.members._annotationsPointerEventHandler,_pullOptions(ne){var _e=(0,j.X)({},{location:ne.location},Y.members._pullOptions(ne));return delete _e.axis,_e},_clear:Y.members._clear,_forceAnnotationRender:Y.members._forceAnnotationRender}},re={core:{name:"annotations_core",init(){this._annotations={items:[],_hideToolTipForDrag:!1,tooltip:new L.m({cssClass:"".concat(this._rootClassPrefix,"-annotation-tooltip"),eventTrigger:this._eventTrigger,widgetRoot:this.element(),widget:this}),hideTooltip(){this.tooltip.annotation=null,this.tooltip.hide()},clearItems(){this.items.forEach(ne=>ne.plaque.clear()),this.items=[]}},this._annotations.tooltip.setRendererOptions(this._getRendererOptions())},dispose(){this._annotationsGroup.linkRemove().linkOff(),v.A.off(h(),b),this._annotationsGroup.off(b),this._annotations.tooltip&&this._annotations.tooltip.dispose()},extenders:{_createHtmlStructure(){this._annotationsGroup=this._renderer.g().attr({class:"".concat(this._rootClassPrefix,"-annotations")}).css(this._getAnnotationStyles()).linkOn(this._renderer.root,"annotations").linkAppend(),v.A.on(h(),O,ne=>{this._disposed||this._annotations.tooltip.isCursorOnTooltip(ne.pageX,ne.pageY)||this._annotations.hideTooltip()}),v.A.on(h(),w,ne=>{this._annotations._hideToolTipForDrag=!1,this._annotationsPointerEventHandler(ne)}),this._annotationsGroup.on(O,this._annotationsPointerEventHandler.bind(this))},_renderExtraElements(){this._annotationsGroup.clear(),this._annotations.items.forEach(ne=>ne.draw(this,this._annotationsGroup))},_stopCurrentHandling(){this._annotations.hideTooltip()}},members:{_buildAnnotations(){this._annotations.clearItems();var ne=this._getOption("annotations",!0);null!=ne&&ne.length&&(this._annotations.items=function(ne,_e){var be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},oe=arguments.length>3?arguments[3]:void 0,me=arguments.length>4?arguments[4]:void 0,we=C(be.image);return _e.reduce((N,G)=>{var W=C(G.image),z=(0,d.Tn)(oe)?oe(G):{};z&&(z.image=C(z.image));var X=(0,j.X)(!0,{},be,G,{image:we},{image:W},z),q=function g(ne,_e){var be;return"text"===ne.type?be=function(oe,me){var we=_e._renderer.text(oe.text).attr({class:oe.cssClass}).append({element:me});(oe.width>0||oe.height>0)&&we.setMaxSize(oe.width,oe.height,{wordWrap:oe.wordWrap,textOverflow:oe.textOverflow})}:"image"===ne.type?be=function(oe,me){var{width:we,height:N,url:G,location:W}=oe.image||{},{width:z,height:X}=oe,q=z>0?Math.min(we,z):we,ye=X>0?Math.min(N,X):N;_e._renderer.image(0,0,q,ye,G,W||"center").append({element:me})}:"custom"===ne.type&&(be=ne.template),be}(X,ne),ye=q&&(0,j.X)(!0,me(X),function x(ne,_e){return{draw:function(be,oe){var me=be._renderer.g().append(oe).css((0,o.a1)(ne.font));this.plaque&&this.plaque.clear(),this.plaque=new E.R((0,j.X)(!0,{},ne,{cornerRadius:(ne.border||{}).cornerRadius}),be,me,_e,be._isAnnotationBounded(ne)),this.plaque.draw(be._getAnnotationCoords(this)),ne.allowDragging&&me.on(f,{immediate:!0},we=>{this._dragOffsetX=this.plaque.x-we.pageX,this._dragOffsetY=this.plaque.y-we.pageY}).on(k,we=>{this.plaque.move(we.pageX+this._dragOffsetX,we.pageY+this._dragOffsetY)}).on(I,we=>{this.offsetX=(this.offsetX||0)+we.offset.x,this.offsetY=(this.offsetY||0)+we.offset.y})},hitTest(be,oe){return this.plaque.hitTest(be,oe)},showTooltip(be,oe){var{x:me,y:we}=oe,N=this,G=N.options;if(be.annotation!==N){be.setTemplate(G.tooltipTemplate);var W=z=>{z&&(be.annotation=N)};W(be.show(G,{x:me,y:we},{target:G},G.customizeTooltip,W))}else be.isCursorOnTooltip(me,we)||be.move(me,we)}}}(X,ne._getTemplate(q)));return ye&&N.push(ye),N},[])}(this,ne,this._getOption("commonAnnotationSettings"),this._getOption("customizeAnnotation",!0),this._pullOptions))},_setAnnotationTooltipOptions(){var ne=(0,j.X)({},this._getOption("tooltip"));ne.contentTemplate=ne.customizeTooltip=void 0,this._annotations.tooltip.update(ne)},_getAnnotationCoords:()=>({}),_pullOptions:()=>({}),_getAnnotationStyles:()=>({})},customize(ne){ne.addChange({code:"ANNOTATIONITEMS",handler(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"annotations"}),ne.addChange({code:"ANNOTATIONSSETTINGS",handler(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"commonAnnotationSettings"}),ne.addChange({code:"ANNOTATIONS",handler(){this._buildAnnotations(),this._setAnnotationTooltipOptions(),this._forceAnnotationRender()},isThemeDependent:!0,isOptionChange:!0})},fontFields:["commonAnnotationSettings.font"]},chart:Y,polarChart:Q,vectorMap:se,pieChart:ie}},68786:(ei,rt,D)=>{"use strict";D.d(rt,{N:()=>E,O:()=>R});var r=D(5042),d=D(95652),L=Math.round,j={horizontal:0,vertical:0},o={center:.5,right:1,bottom:1,left:0,top:0};function E(_){this._options=_}function R(_,v){this._renderElement=_,this._cacheBBox=v}var m=R.prototype=(0,d.o8)(E.prototype={constructor:E,position:function(_){var v=_.of.getLayoutOptions(),h=this.getLayoutOptions(),s=_.at,b=_.my,O=_.offset||j,w=-o[b.horizontal]*h.width+v.x+o[s.horizontal]*v.width+parseInt(O.horizontal),f=-o[b.vertical]*h.height+v.y+o[s.vertical]*v.height+parseInt(O.vertical);this.shift(L(w),L(f))},getLayoutOptions:r.lQ});m.constructor=R,m.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},m.shift=function(_,v){var h=this.getLayoutOptions();this._renderElement.move(L(_-h.x),L(v-h.y))}},71451:(ei,rt,D)=>{"use strict";D.d(rt,{R:()=>F});var r=D(58168),d=D(98587),L=D(87951),j=D(72463),o=["x","y","canvas","offsetX","offsetY","offset"],E=Math,R=E.round,m=E.max,_=E.min,v=E.sin,h=E.cos,s=E.asin,b=E.PI,O=function(){for(var Y=arguments.length,Q=new Array(Y),se=0;se<Y;se++)Q[se]=arguments[se];return Q.join("")};function w(Y,Q,se){return"a ".concat(Y," ").concat(Y," 0 0 1 ").concat(Q*Y," ").concat(se*Y)}function f(Y,Q,se){return"A ".concat(Y," ").concat(Y," 0 0 1 ").concat(Q," ").concat(se)}function k(Y,Q,se,ie,ee){return(Y-ie)*R(h(se))+(Q-ee)*R(v(se))+ie}function I(Y,Q,se,ie,ee){return-(Y-ie)*R(v(se))+(Q-ee)*R(h(se))+ee}function x(Y,Q){return Q%90==0&&Q%180!=0?{width:Y.height,height:Y.width}:Y}function g(Y,Q,se,ie,ee){var{width:re,height:ne}=Y,_e=re/2,be=ne/2,oe=Math.ceil(Q+_e),me=Math.floor(Q-_e),we=Math.floor(se-be),N=Math.ceil(se+be);return ie<me&&ee<we||ie>=me&&ie<=oe&&ee<we?270:ie>oe&&ee>N||ie>=me&&ie<=oe&&ee>N?90:ie<me&&ee>N||ie<me&&ee>=we&&ee<=N?180:0}function C(Y,Q,se,ie,ee,re,ne){var Be,{width:_e,height:be}=Y,{arrowWidth:oe,cornerRadius:me=0}=re,we=oe/2,N=_e/2,G=be/2,W=Math.ceil(Q+N),z=Math.floor(Q-N),X=Math.floor(se-G),q=Math.ceil(se+G),ye=[z,X],xe=[W,X],ge=[W,q],Ee=[z,q],he=ie<=z?z:W<=ie?W:ie,Ie=ee<=X?X:q<=ee?q:ee,ce=_(Ie+we,q),de=m(Ie-we,X),pe=m(he-we,z);if(me=Math.min(_e/2,be/2,me),ye[1]+=me,xe[0]-=me,ge[1]-=me,Ee[0]+=me,!ne||z<=ie&&ie<=W&&X<=ee&&ee<=q)Be=O(ye,w(me,1,-1),"L",xe,w(me,1,1),"L",ge,w(me,-1,1),"L",Ee,w(me,-1,-1));else if(ie>W&&ee<X){var We=oe/me||0,tt=b/4+We/2,vt=b/4-We/2,Xt=xe[0]+h(vt)*me,Nt=xe[1]+(1-v(vt))*me,Qe=O("L",xe,w(me,h(tt),1-v(tt)),"L",[ie,ee,Xt,Nt],f(me,xe[0]+me,xe[1]+me));Math.abs(tt)>b/2&&(Qe=O("L",[pe,X,ie,ee,W,ce])),Be=O(ye,w(me,1,-1),Qe,"L",ge,w(me,-1,1),"L",Ee,w(me,-1,-1))}else if(ie>W&&ee>=X&&ee<=q){var Et;if(de>=xe[1]+me&&ce<=ge[1])Et=O(w(me,1,1),"L",[W,de,ie,ee,W,ce],"L",ge,w(me,-1,1));else if(de<xe[1]+me&&ce>=xe[1]+me&&ce<=ge[1]){var wt=(xe[1]+me-de)/me,Mt=xe[0]+h(wt)*me,Ge=xe[1]+(1-v(wt))*me;Et=O(w(me,h(wt),1-v(wt)),"L",[Mt,Ge,ie,ee,W,ce],"L",ge,w(me,-1,1))}else if(de<xe[1]+me&&ce<xe[1]+me){var jt=(xe[1]+me-de)/me,li=xe[0]+h(jt)*me,an=xe[1]+(1-v(jt))*me,xi=Math.sin((xe[1]+me-ce)/me),Je=xe[0]+me*h(xi),Ht=xe[1]+me*(1-v(xi));Et=O(w(me,h(jt),1-v(jt)),"L",[li,an,ie,ee,Je,Ht],f(me,xe[0]+me,xe[1]+me),"L",ge,w(me,-1,1))}else if(de<=xe[1]+me&&ce>=ge[1]){var gi=s((xe[1]+me-de)/me),Ti=xe[0]+me*h(gi),ni=xe[1]+me*(1-v(gi)),wi=s((ce-ge[1])/me),ui=ge[0]+me*(h(wi)-1),cn=ge[1]+me*v(wi);Et=O(w(me,h(gi),1-v(gi)),"L",[Ti,ni,ie,ee,ui,cn],f(me,ge[0]-me,ge[1]+me))}else if(de>xe[1]+me&&de<=ge[1]&&ce>ge[1]){var Ui=s((ce-ge[1])/me),Xi=ge[0]+me*(h(Ui)-1),Qi=ge[1]+me*v(Ui);Et=O(w(me,1,1),"L",[W,de,ie,ee,Xi,Qi],f(me,ge[0]-me,ge[1]+me))}else if(de>xe[1]+me&&ce>ge[1]){var Ut=s((ce-ge[1])/me),It=ge[0]+me*(h(Ut)-1),yt=ge[1]+me*v(Ut),pt=s((de-ge[1])/me),st=ge[0]+me*(h(pt)-1),Wt=ge[1]+me*v(pt);Et=O(w(me,1,1),"L",ge,w(me,h(pt)-1,v(pt)),"L",[st,Wt,ie,ee,It,yt],f(me,ge[0]-me,ge[1]+me))}Be=O(ye,w(me,1,-1),"L",xe,Et,"L",Ee,w(me,-1,-1))}return O("M",Be,"Z")}class F{constructor(Q,se,ie,ee){var re=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],ne=arguments.length>5&&void 0!==arguments[5]?arguments[5]:(be,oe)=>oe.getBBox(),_e=arguments.length>6&&void 0!==arguments[6]?arguments[6]:(be,oe,me,we)=>oe.move(me,we);this.widget=se,this.options=Q,this.root=ie,this.contentTemplate=ee,this.bonded=re,this.measureContent=ne,this.moveContentGroup=_e}draw(Q){var{x:se,y:ie,canvas:ee={},offsetX:re,offsetY:ne,offset:_e=0}=Q,be=(0,d.A)(Q,o),oe=this.options,{x:me,y:we}=oe,N=ee.left,G=ee.width-ee.right,W=ee.width-ee.right-ee.left,z=ee.top,X=ee.height-ee.bottom,q=ee.height-ee.bottom-ee.top;if((!(0,j.O9)(se)||!(0,j.O9)(ie))&&(!(0,j.O9)(me)||!(0,j.O9)(we))||(0,j.O9)(se)&&(se<N||G<se||ie<z||X<ie))return!1;this._root||this._draw();var ye=(0,L.X)({x:"-50%",y:"-50%",width:"200%",height:"200%"},oe.shadow),xe=oe.width>0?oe.width:null,ge=oe.height>0?oe.height:null,Ee=()=>{var he,Ie=this._contentBBox=this.measureContent(this.widget,this._contentGroup),ce=this._size={width:m(xe,Ie.width)+2*oe.paddingLeftRight,height:m(ge,Ie.height)+2*oe.paddingTopBottom,offset:_e},de=ye.offsetX,pe=ye.offsetY,Be=2*ye.blur+1,We=m(Be-de,0),tt=m(Be+de,0),vt=m(Be-pe,0),Xt=m(Be+pe,0);if(this.margins={lm:We,rm:tt,tm:vt,bm:Xt},(0,j.O9)(me)?(me+=re||0,(0,j.O9)(se)||(se=me)):me=(0,j.O9)(re)?se+re:W<ce.width?R(N+W/2):_(m(se,Math.ceil(N+ce.width/2+We)),Math.floor(G-ce.width/2-tt)),(0,j.O9)(we))we+=ne||0,(0,j.O9)(ie)||(ie=we+ce.height/2);else if((0,j.O9)(ne))we=ie+ne;else{var Nt=ie-oe.arrowLength-ce.height/2-_e,Qe=ie+oe.arrowLength+ce.height/2+_e;q<ce.height+oe.arrowLength?we=R(z+ce.height/2):Nt-ce.height/2-vt<z?Qe+ce.height/2+Xt<X?(we=Qe,ie+=_e):we=R(z+ce.height/2):(we=Nt,ie-=_e)}this.anchorX=se,this.anchorY=ie,this.move(me,we),null===(he=this._root)||void 0===he||he.append(this.root)};return this.contentTemplate.render?(this.contentTemplate.render({model:oe,container:this._contentGroup.element,onRendered:Ee}),!0):this.contentTemplate((0,r.A)({group:this._contentGroup,onRender:Ee},be))}_draw(){var Q=this.widget._renderer,se=this.options,ie=(0,L.X)({x:"-50%",y:"-50%",width:"200%",height:"200%"},se.shadow),ee=this._shadow=Q.shadowFilter().attr(ie),re={opacity:se.opacity,"stroke-width":0,fill:se.color},ne=se.border||{};ne.visible&&(0,L.X)(re,{"stroke-width":ne.width,stroke:ne.color,"stroke-opacity":ne.opacity,dashStyle:ne.dashStyle});var _e=this._root=Q.g().append(this.root);se.type&&_e.attr({class:"dxc-".concat(se.type,"-annotation")});var be=Q.g().attr({filter:ee.id}).append(_e);this._cloud=Q.path([],"area").attr(re).sharp().append(be),this._contentGroup=Q.g().append(_e)}getBBox(){var Q=this._size||{},se=this.margins||{},ie=g(Q,this.x,this.y,this.anchorX,this.anchorY);return{x:Math.floor(this.x-Q.width/2-se.lm),y:Math.floor(this.y-Q.height/2-se.tm-(270===ie?this.options.arrowLength:0)),width:Q.width+se.lm+se.rm,height:Q.height+se.tm+se.bm+(90===ie||270===ie?this.options.arrowLength:0)}}clear(){return this._root&&(this._root.remove(),this._shadow.remove(),this._root=null),this}customizeCloud(Q){this._cloud&&this._cloud.attr(Q)}moveRoot(Q,se){this._root&&this._root.move(Q,se)}move(Q,se){Q=R(Q),se=R(se),this.x=Q,this.y=se;var ie=g(this._size,Q,se,this.anchorX,this.anchorY),ee=ie*b/180;this._cloud.attr({d:C(x(this._size,ie),Q,se,k(this.anchorX,this.anchorY,ee,Q,se),I(this.anchorX,this.anchorY,ee,Q,se),this.options,this.bonded)}).rotate(ie,Q,se),this.moveContentGroup(this.widget,this._contentGroup,Q-this._contentBBox.x-this._contentBBox.width/2,se-this._contentBBox.y-this._contentBBox.height/2)}hitTest(Q,se){var{width:ie,height:ee}=this._size||{};return Math.abs(Q-this.x)<=ie/2&&Math.abs(se-this.y)<=ee/2}}},91593:(ei,rt,D)=>{"use strict";D.d(rt,{A4:()=>ln,t:()=>Ee,qy:()=>ce});var r=D(24292),d=D(17669),L=D(14435),j=D(435),o=D(91269),E=D(12473),R=D(55581),m=function(){},_={easeOutCubic:function(ct,ri,Ci){return 1===ct?Ci:(1-Math.pow(1-ct,3))*(Ci-ri)+ +ri},linear:function(ct,ri,Ci){return 1===ct?Ci:ct*(Ci-ri)+ +ri}},v={segments:function(ct,ri,Ci,Ri,ji){var En,_r,ha,aa,wn=ri.from,Nn=ri.to,Fa=[];for(ha=0;ha<wn.length;ha++){if(_r=[(En=wn[ha])[0]],En.length>1)for(aa=1;aa<En.length;aa++)_r.push(Ri(Ci,En[aa],Nn[ha][aa]));Fa.push(_r)}ji.segments=ri.end&&1===Ci?ri.end:Fa,ct.attr({segments:Fa})},arc:function(ct,ri,Ci,Ri){var ji=ri.from,wn=ri.to,Nn={};for(var En in ji)Nn[En]=Ri(Ci,ji[En],wn[En]);ct.attr(Nn)},transform:function(ct,ri,Ci,Ri,ji){var wn=ri.from,Nn=ri.to,En={};for(var _r in wn)En[_r]=ji[_r]=Ri(Ci,wn[_r],Nn[_r]);ct.attr(En)},base:function(ct,ri,Ci,Ri,ji,wn){var Nn={};Nn[wn]=ji[wn]=Ri(Ci,ri.from,ri.to),ct.attr(Nn)},_:m,complete:function(ct,ri){ct.attr(ri)}};function h(ct){var Ci,ri=this._animateStep;for(Ci in this._progress=this._calcProgress(ct),this.params)(ri[Ci]||ri.base)(this.element,this.params[Ci],this._progress,this._easing,this._currentParams,Ci);return this.options.step&&this.options.step(this._easing(this._progress,0,1),this._progress),1!==this._progress||this.stop()}function s(ct){return ct-this._startTime>=this.delay&&(this.tick=h),!0}function b(ct){return this._startTime=ct,this.tick=this.delay?s:h,!0}function O(ct,ri,Ci){this._progress=0,this.element=ct,this.params=ri,this.options=Ci,this.duration=Ci.partitionDuration?Ci.duration*Ci.partitionDuration:Ci.duration,this.delay=Ci.delay&&Ci.duration*Ci.delay||0,this._animateStep=Ci.animateStep||v,this._easing=_[Ci.easing]||_.easeOutCubic,this._currentParams={},this.tick=b}function w(ct){this._animationCount=0,this._timerId=null,this._animations={},this.element=ct}O.prototype={_calcProgress:function(ct){return Math.min(1,(ct-this.delay-this._startTime)/this.duration)},stop:function(ct){var ri=this.options,Ci=this._animateStep;this.stop=this.tick=m,Ci.complete&&Ci.complete(this.element,this._currentParams),ri.complete&&!ct&&ri.complete()}},w.prototype={_loop:function(){var ji,ct=this,ri=ct._animations,Ci=0,Ri=(new Date).getTime(),wn=ct._endAnimation;for(ji in ri)ri[ji].tick(Ri)||delete ri[ji],Ci++;if(0===Ci)return ct.stop(),void(ct._endAnimationTimer=wn&&setTimeout(function(){0===ct._animationCount&&(wn(),ct._endAnimation=null)}));ct._timerId=R.x.call(null,function(){ct._loop()},ct.element)},addAnimation:function(ct){var ri=this;ri._animations[ri._animationCount++]=ct,clearTimeout(ri._endAnimationTimer),ri._timerId||(clearTimeout(ri._startDelay),ri._startDelay=setTimeout(function(){ri._timerId=1,ri._loop()},0))},animateElement:function(ct,ri,Ci){ct&&ri&&Ci&&(ct.animation&&ct.animation.stop(),this.addAnimation(ct.animation=new O(ct,ri,Ci)))},onEndAnimation:function(ct){this._animationCount?this._endAnimation=ct:ct()},dispose:function(){this.stop(),this.element=null},stop:function(){this._animations={},this._animationCount=0,(0,R.u)(this._timerId),clearTimeout(this._startDelay),clearTimeout(this._endAnimationTimer),this._timerId=null},lock:function(){var ct,Ci,Ri,ri=this._animations;for(ct in ri)Ci=ri[ct].options.unstoppable,Ri=Ri||Ci,Ci||(ri[ct].stop(!0),delete ri[ct]);!Ri&&this.stop()}};var f=D(43458),k=D(72463),I=(0,L.zk)(),{max:x,round:g}=Math,Q={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},se="text",ie="stroke",ee="stroke-width",re="stroke-opacity",ne="font-size",_e="font-style",be="font-weight",oe="text-decoration",me="textsAlignment",we="none",N=12,G="...",W=function(){return Object.create?function(ct){return Object.create(ct)}:function(ct){var ri=function(){};return ri.prototype=ct,new ri}}(),z={scaleX:1,scaleY:1,"pointer-events":null},X=(0,j.A)(function(){var ct=d.A.createElement("div");return ct.style.left="-9999px",ct.style.position="absolute",{backupContainer:ct,backupCounter:0}});function xe(ct){return ct&&"string"!=typeof ct}function ge(ct){return d.A.createElementNS("http://www.w3.org/2000/svg",ct)}function Ee(ct,ri){return null!==ct?"url("+(ri?I.location.href.split("#")[0]:"")+"#"+ct+")":ct}function he(ct,ri){var Ci;for(Ci in ri)ct[Ci]=ri[Ci];return ct}var Ie={full:we,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"};function ce(ct,ri){return ri.hatching&&"none"!==(0,f.NU)(ri.hatching.direction)?((ri=he({},ri)).fill=ct._hatching=ct.renderer.lockDefsElements({color:ri.fill,hatching:ri.hatching},ct._hatching,"pattern"),delete ri.filter):ct._hatching?(ct.renderer.releaseDefsElements(ct._hatching),ct._hatching=null,delete ri.filter):ri.filter?(ri=he({},ri)).filter=ct._filter=ct.renderer.lockDefsElements({},ct._filter,"filter"):ct._filter&&(ct.renderer.releaseDefsElements(ct._filter),ct._filter=null),delete ri.hatching,ri}var de=function(ct,ri,Ci,Ri,ji,wn,Nn,En,_r,ha){return["M",(ct+Ri*ji).toFixed(5),(ri-Ri*wn).toFixed(5),"A",Ri.toFixed(5),Ri.toFixed(5),0,ha,0,(ct+Ri*Nn).toFixed(5),(ri-Ri*En).toFixed(5),_r?"M":"L",(ct+Ci*Nn).toFixed(5),(ri-Ci*En).toFixed(5),"A",Ci.toFixed(5),Ci.toFixed(5),0,ha,1,(ct+Ci*ji).toFixed(5),(ri-Ci*wn).toFixed(5),"Z"].join(" ")};function pe(ct,ri){var Ci=[["M",0,0]];switch(ri){case"line":Ci=Be(ct);break;case"area":Ci=Be(ct,!0);break;case"bezier":Ci=We(ct);break;case"bezierarea":Ci=We(ct,!0)}return Ci}function Be(ct,ri){return tt(ct,vt,ri)}function We(ct,ri){return tt(ct,Xt,ri)}function tt(ct,ri,Ci){var Ri,ji,wn,Nn=[];if(null!==(Ri=ct[0])&&void 0!==Ri&&Ri.length)for(ji=0,wn=ct.length;ji<wn;++ji)ri(ct[ji],Ci,Nn);else ri(ct,Ci,Nn);return Nn}function vt(ct,ri,Ci){var Ri=0,ji=Ci.length,wn=ji,Nn=(ct||[]).length;if(Nn){if(void 0!==ct[0].x)for(;Ri<Nn;)Ci[wn++]=["L",ct[Ri].x,ct[Ri++].y];else for(;Ri<Nn;)Ci[wn++]=["L",ct[Ri++],ct[Ri++]];Ci[ji][0]="M"}else Ci[wn]=["M",0,0];return ri&&Ci.push(["Z"]),Ci}function Xt(ct,ri,Ci){var Ri,ji=Ci.length,wn=(ct||[]).length;if(wn)if(void 0!==ct[0].x)for(Ci[ji++]=["M",ct[0].x,ct[0].y],Ri=1;Ri<wn;)Ci[ji++]=["C",ct[Ri].x,ct[Ri++].y,ct[Ri].x,ct[Ri++].y,ct[Ri].x,ct[Ri++].y];else for(Ci[ji++]=["M",ct[0],ct[1]],Ri=2;Ri<wn;)Ci[ji++]=["C",ct[Ri++],ct[Ri++],ct[Ri++],ct[Ri++],ct[Ri++],ct[Ri++]];else Ci[ji]=["M",0,0];return ri&&Ci.push(["Z"]),Ci}function Et(ct,ri){var Ci=ct[ct.length-2],Ri=ct[ct.length-1];switch(ri){case"line":case"area":ct[0]="L";break;case"bezier":case"bezierarea":ct[0]="C",ct[1]=ct[3]=ct[5]=Ci,ct[2]=ct[4]=ct[6]=Ri}}function Lt(ct,ri,Ci){var Ri=ct[ct.length-1].slice(),ji=ct.length;for(Et(Ri,Ci);ji<ri.length;ji++)ct[ji]=Ri.slice(0)}function wt(ct,ri,Ci){var Ri,ji,En,_r,wn=ct.length,Nn=ri.length;if((wn-1)%2==0&&(Nn-1)%2==0){En=(ji=ct.slice(0,1+(Ri=(wn-1)/2-1)))[ji.length-1].slice(0),_r=ct.slice(Ri+1)[0].slice(0),Et(En,Ci),Et(_r,Ci);for(var ha=Ri;ha<(Nn-1)/2-1;ha++)ct.splice(ha+1,0,En),ct.splice(ha+3,0,_r)}}function Mt(ct,ri){var Ri,ji,Ci=ct._styles;for(Ri in ri=ri||{})(0,k.O9)(ji=ri[Ri])&&(Ci[Ri]=""!=(ji+="number"!=typeof ji||Q[Ri]?"":"px")?ji:null);for(Ri in Ci)(ji=Ci[Ri])?ct.element.style[Ri]=ji:null===ji&&(ct.element.style[Ri]="");return ct}function Ge(ct,ri){var Ci=ct.element,Ri=ct.attr(ri);Ri&&-1!==Ri.indexOf("DevExpress")&&(Ci.removeAttribute(ri),Ci.setAttribute(ri,Ee(Ri,ct.renderer.pathModified)))}function ot(ct,ri){var ji,wn,ha,aa,Fa,Ya,Ci=ct._settings,Ri={},Nn=ct.element,En=ct.renderer,_r=En.rtl;if(!xe(ri=ri||{}))return ri in Ci?Ci[ri]:ri in z?z[ri]:0;for(ji in he(Ri,ri),Ri)if(void 0!==(wn=Ri[ji])){if(Ci[ji]=wn,"align"===ji)ji="text-anchor",wn={left:_r?"end":"start",center:"middle",right:_r?"start":"end"}[wn]||null;else{if("dashStyle"===ji){aa=!0;continue}if(ji===ee)aa=!0;else if(!wn||"fill"!==ji&&"clip-path"!==ji&&"filter"!==ji||0!==wn.indexOf("DevExpress")){if(/^(translate(X|Y)|rotate[XY]?|scale(X|Y)|sharp|sharpDirection)$/i.test(ji)){ha=!0;continue}/^(x|y|d)$/i.test(ji)&&(ha=!0)}else ct._addFixIRICallback(),wn=Ee(wn,En.pathModified)}null===wn?Nn.removeAttribute(ji):Nn.setAttribute(ji,wn)}if(aa&&"dashStyle"in Ci)if(Fa=("_originalSW"in ct?ct._originalSW:Ci[ee])||1,ji="stroke-dasharray",""===(wn=null===(wn=Ci.dashStyle)?"":(0,f.NU)(wn))||"solid"===wn||wn===we)ct.element.removeAttribute(ji);else{for(Ya=(wn=wn.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(",")).length;Ya--;)wn[Ya]=parseInt(wn[Ya])*Fa;ct.element.setAttribute(ji,wn.join(","))}return ha&&ct._applyTransformation(),ct}function Je(ct,ri,Ci,Ri,ji){var wn,Nn,En,_r,ha;if(void 0!==Ci.wholeText)ct.push({value:Ci.wholeText,style:Ri,className:ji,line:ri,height:Ri[ne]||0});else if("BR"===Ci.tagName)++ri;else if(d.A.isElementNode(Ci)){switch(he(wn={},Ri),Ci.tagName){case"B":case"STRONG":wn[be]="bold";break;case"I":case"EM":wn[_e]="italic";break;case"U":wn[oe]="underline"}for((Nn=Ci.style).color&&(wn.fill=Nn.color),Nn.fontSize&&(wn[ne]=Nn.fontSize),Nn.fontStyle&&(wn[_e]=Nn.fontStyle),Nn.fontWeight&&(wn[be]=Nn.fontWeight),Nn.textDecoration&&(wn[oe]=Nn.textDecoration),En=0,_r=(ha=Ci.childNodes).length;En<_r;++En)ri=Je(ct,ri,ha[En],wn,Ci.className||ji)}return ri}function wi(ct,ri,Ci){var Ri,ji,wn;for(Ri=0,ji=ct.length;Ri<ji;++Ri)(wn=ct[Ri])[Ci]=ge("tspan"),wn[Ci].appendChild(d.A.createTextNode(wn.value)),wn.style&&Mt({element:wn[Ci],_styles:{}},wn.style),wn.className&&wn[Ci].setAttribute("class",wn.className),ri.appendChild(wn[Ci])}function ui(){this._hasEllipsis&&this.attr({text:this._settings.text})}function Ui(ct){var ri;return ct&&((ri=ct.cloneNode()).removeAttribute("y"),ri.removeAttribute("x")),ri||ct}function Xi(ct){for(var ri=d.A.querySelectorAll(ct,"title"),Ci=0;Ci<ri.length;Ci++)ct.removeChild(ri[Ci]);return ri}function It(ct,ri,Ci,Ri){var ji,wn;if(Ci<=ri&&Ri>ri)for(ji=1,wn=ct.value.length;ji<=wn;++ji)if(Ci+ct.tspan.getSubStringLength(0,ji)>ri)return ji-1}function yt(ct){return ct.value.length?ct.tspan.getSubStringLength(0,ct.value.length):0}function Vt(ct,ri){var{hideOverflowEllipsis:Ci}=ri;return Ci&&0===ct?"":G}function ci(ct,ri,Ci){var Ri=Vt(ri,Ci);if(ct.value.length&&ct.tspan.parentNode)for(var ji=ct.value.length-1;ji>=1;ji--){if(ct.startBox+ct.tspan.getSubStringLength(0,ji)<ri){mi(ct,ji,Ri);break}1===ji&&mi(ct,0,Ri)}}function bi(ct,ri,Ci,Ri,ji){var Nn,wn=ct.value;"none"!==Ri.wordWrap&&(Nn="normal"===Ri.wordWrap?function st(ct,ri){for(var Ci=ct.startBox>0?[0]:[],Ri=ct.value.split("").reduce((wn,Nn,En)=>(" "===Nn&&wn.push(En),wn),Ci),ji=0;void 0!==Ri[ji+1]&&ct.startBox+ct.tspan.getSubStringLength(0,Ri[ji+1])<ri;)ji++;return Ri[ji]}(ct,ri):function Wt(ct,ri){for(var Ci=0;Ci<ct.value.length-1;Ci++)if(ct.startBox+ct.tspan.getSubStringLength(0,Ci+1)>ri)return Ci}(ct,ri));var _r,En=[];if(isFinite(Nn)&&(0!==ji||0!==Nn)){mi(ct,Nn,"");var aa=wn.slice(Nn+(" "===wn[Nn]?1:0));if(aa.length){var Fa=Ui(ct.tspan);if(Fa.textContent=aa,ct.tspan.parentNode.appendChild(Fa),(_r=he(he({},ct),{value:aa,startBox:0,height:0,tspan:Fa,stroke:Ui(ct.stroke),endBox:Fa.getSubStringLength(0,aa.length)})).stroke&&(_r.stroke.textContent=aa),_r.endBox>ri&&!(En=bi(_r,ri,Ci,Ri,Nn)).length)return[]}}if(ct.value.length){if("ellipsis"===Ri.textOverflow&&ct.tspan.getSubStringLength(0,ct.value.length)>ri&&ci(ct,Ci,Ri),"hide"===Ri.textOverflow&&ct.tspan.getSubStringLength(0,ct.value.length)>ri)return[]}else ct.tspan.parentNode.removeChild(ct.tspan);var Ya=[];return _r&&Ya.push(_r),[{commonLength:wn.length,parts:Ya}].concat(En)}function mi(ct,ri){var Ci=arguments.length>2&&void 0!==arguments[2]?arguments[2]:G,Ri=ct.value.substr(0,ri)+Ci;ct.value=ct.tspan.textContent=Ri,ct.stroke&&(ct.stroke.textContent=Ri),Ci===G&&(ct.hasEllipsis=!0)}function Kt(ct){ct.tspan.parentNode&&ct.tspan.parentNode.removeChild(ct.tspan),ct.stroke&&ct.stroke.parentNode&&ct.stroke.parentNode.removeChild(ct.stroke)}function Wi(ct,ri,Ci){ct.tspan.setAttribute(ri,Ci),ct.stroke&&ct.stroke.setAttribute(ri,Ci)}function yn(ct,ri){return ct.inherits?na(ct.height,ri):ct.height||ri}function Ur(ct){if(ct._texts){var ji,wn,ri=ct._texts,Ci=ct._settings.x,Ri=ct._getLineHeight(),Nn=ri[0];for(Wi(Nn,"x",Ci),Wi(Nn,"y",ct._settings.y),ji=1,wn=ri.length;ji<wn;++ji)Nn=ri[ji],parseFloat(Nn.height)>=0&&(Wi(Nn,"x",Ci),Wi(Nn,"dy",yn(Nn,Ri)))}}function na(ct,ri){var Ci=parseFloat(ct),Ri=parseFloat(ri),ji=Ci||N,wn=Ri||N;return ji>wn?isNaN(Ci)?ji:ct:isNaN(Ri)?wn:ri}function sa(ct,ri,Ci,Ri){Ci=Ci||{};var ji,wn,Nn=ct.renderer,En=ct._settings,_r={},ha={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(Ri&&(Ci.complete=Ri),Nn.animationEnabled()){for(ji in ri)wn=ri[ji],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(ji)?(_r.transform=_r.transform||{from:{},to:{}},_r.transform.from[ji]=ji in En?Number(En[ji].toFixed(3)):ha[ji],_r.transform.to[ji]=wn):_r[ji]="arc"===ji||"segments"===ji?wn:{from:ji in En?En[ji]:parseFloat(ct.element.getAttribute(ji)||0),to:wn};Nn.animateElement(ct,_r,he(he({},Nn._animation),Ci))}else Ci.step&&Ci.step.call(ct,1,1),Ci.complete&&Ci.complete.call(ct),ct.attr(ri);return ct}function ja(ct,ri){var Ci={is:!1,name:ri.name||ri,after:ri.after};return ct?Ci.to=ct:Ci.virtual=!0,Ci}var Na=function(ct,ri,Ci){this.renderer=ct,this.element=ge(ri),this._settings={},this._styles={},"path"===ri&&(this.type=Ci||"line")};function uo(ct){jn.remove(ct)}var Eo=function(ct,ri){Na.call(this,ct,"path",ri)};he(Eo.prototype=W(Na.prototype={constructor:Na,_getJQElement:function(){return this._$element||(this._$element=(0,r.A)(this.element))},_addFixIRICallback:function(){var ct=this,ri=function(){Ge(ct,"fill"),Ge(ct,"clip-path"),Ge(ct,"filter")};ct.element._fixFuncIri=ri,ri.renderer=ct.renderer,jn.add(ri),ct._addFixIRICallback=function(){}},_clearChildrenFuncIri:function(){!function ct(ri){var Ci;for(Ci=0;Ci<ri.childNodes.length;Ci++)uo(ri.childNodes[Ci]._fixFuncIri),ct(ri.childNodes[Ci])}(this.element)},dispose:function(){return uo(this.element._fixFuncIri),this._clearChildrenFuncIri(),this._getJQElement().remove(),this},append:function(ct){return(ct||this.renderer.root).element.appendChild(this.element),this},remove:function(){var ct=this.element;return ct.parentNode&&ct.parentNode.removeChild(ct),this},enableLinks:function(){return this._links=[],this},virtualLink:function(ct){return Dt({_link:ja(null,ct)},this),this},linkAfter:function(ct){return this._linkAfter=ct,this},linkOn:function(ct,ri){return this._link=ja(ct,ri),Dt(this,ct),this},linkOff:function(){return function Pi(ct){var ri,Ci=ct._link.to._links;for(ri=0;Ci[ri]!==ct;++ri);Ci.splice(ri,1),si(Ci,ri)}(this),this._link=null,this},linkAppend:function(){var Ci,Ri,ct=this._link,ri=ct.to._links;for(Ci=ct.i+1;(Ri=ri[Ci])&&!Ri._link.is;++Ci);return this._insert(ct.to,Ri),ct.is=!0,this},_insert:function(ct,ri){ct.element.insertBefore(this.element,ri?ri.element:null)},linkRemove:function(){return this.remove(),this._link.is=!1,this},clear:function(){return this._clearChildrenFuncIri(),this._getJQElement().empty(),this},toBackground:function(){var ct=this.element,ri=ct.parentNode;return ri&&ri.insertBefore(ct,ri.firstChild),this},toForeground:function(){var ct=this.element,ri=ct.parentNode;return ri&&ri.appendChild(ct),this},attr:function(ct){return ot(this,ct)},smartAttr:function(ct){return this.attr(ce(this,ct))},css:function(ct){return Mt(this,ct)},animate:function(ct,ri,Ci){return sa(this,ct,ri,Ci)},sharp(ct,ri){return this.attr({sharp:ct||!0,sharpDirection:ri})},_applyTransformation(){var ct=this._settings,Ri=[],ji=ct.sharp,wn=ct.sharpDirection||1,Nn=ct[ee]%2;Ri.push("translate("+((ct.translateX||0)+(!Nn||"h"!==ji&&!0!==ji?0:.5*wn))+","+((ct.translateY||0)+(!Nn||"v"!==ji&&!0!==ji?0:.5*wn))+")"),ct.rotate&&Ri.push("rotate("+ct.rotate+","+(("rotateX"in ct?ct.rotateX:ct.x)||0)+","+(("rotateY"in ct?ct.rotateY:ct.y)||0)+")");var ha=(0,k.O9)(ct.scaleX),aa=(0,k.O9)(ct.scaleY);(ha||aa)&&Ri.push("scale("+(ha?ct.scaleX:1)+","+(aa?ct.scaleY:1)+")"),Ri.length&&this.element.setAttribute("transform",Ri.join(" "))},move:function(ct,ri,Ci,Ri){var ji={};return(0,k.O9)(ct)&&(ji.translateX=ct),(0,k.O9)(ri)&&(ji.translateY=ri),Ci?this.animate(ji,Ri):this.attr(ji),this},rotate:function(ct,ri,Ci,Ri,ji){var wn={rotate:ct||0};return(0,k.O9)(ri)&&(wn.rotateX=ri),(0,k.O9)(Ci)&&(wn.rotateY=Ci),Ri?this.animate(wn,ji):this.attr(wn),this},_getElementBBox:function(){var ri,ct=this.element;try{ri=ct.getBBox&&ct.getBBox()}catch{}return ri||{x:0,y:0,width:ct.offsetWidth||0,height:ct.offsetHeight||0}},getBBox:function(){var ct=this._settings,ri=this._getElementBBox();return ct.rotate?(0,f.R8)(ri,[("rotateX"in ct?ct.rotateX:ct.x)||0,("rotateY"in ct?ct.rotateY:ct.y)||0],-ct.rotate):(0,f.dt)(ri)},markup:function(){return(0,E.XC)(this.element)},getOffset:function(){return this._getJQElement().offset()},stopAnimation:function(ct){var ri=this.animation;return ri&&ri.stop(ct),this},setTitle:function(ct){var ri=ge("title");ri.textContent=ct||"",this.element.appendChild(ri)},removeTitle(){Xi(this.element)},data:function(ct,ri){var Ri,Ci=this.element;if(void 0!==ri)Ci[ct]=ri;else for(Ri in ct)Ci[Ri]=ct[Ri];return this},on:function(){var ct=[this._getJQElement()];return ct.push.apply(ct,arguments),o.A.on.apply(o.A,ct),this},off:function(){var ct=[this._getJQElement()];return ct.push.apply(ct,arguments),o.A.off.apply(o.A,ct),this},trigger:function(){var ct=[this._getJQElement()];return ct.push.apply(ct,arguments),o.A.trigger.apply(o.A,ct),this}}),{constructor:Eo,attr:function Tt(ct){var ri;return xe(ct)&&(ri=(ct=he({},ct)).segments,"points"in ct&&(ri=pe(ct.points,this.type),delete ct.points),ri&&(ct.d=function Nt(ct){var Ri,wn,Nn,En,ri=[],Ci=0,ji=ct.length;for(Ri=0;Ri<ji;++Ri)for(Nn=0,En=(wn=ct[Ri]).length;Nn<En;++Nn)ri[Ci++]=wn[Nn];return ri.join(" ")}(ri),this.segments=ri,delete ct.segments)),ot(this,ct)},animate:function Pr(ct,ri,Ci){var ji,wn,Ri=this.segments||[];return this.renderer.animationEnabled()&&"points"in ct&&(wn=function Qe(ct,ri,Ci){var wn,Nn,Ri=ct.length,ji=ri.length,En=-1!==Ci.indexOf("area")?wt:Lt;if(0===Ri)for(wn=0;wn<ji;wn++)ct.push(ri[wn].slice(0));else Ri<ji?En(ct,ri,Ci):Ri>ji&&(Nn=ri.slice(0),En(ri,ct,Ci));return Nn}(Ri,ji=pe(ct.points,this.type),this.type),ct.segments={from:Ri,to:ji,end:wn},delete ct.points),sa(this,ct,ri,Ci)}});var To=function(ct){Na.call(this,ct,"path","arc")};he(To.prototype=W(Na.prototype),{constructor:To,attr:function jt(ct){var Ci,Ri,ji,wn,Nn,En,ri=this._settings;return xe(ct)&&("x"in(ct=he({},ct))||"y"in ct||"innerRadius"in ct||"outerRadius"in ct||"startAngle"in ct||"endAngle"in ct)&&(ri.x=Ci="x"in ct?ct.x:ri.x,delete ct.x,ri.y=Ri="y"in ct?ct.y:ri.y,delete ct.y,ri.innerRadius=ji="innerRadius"in ct?ct.innerRadius:ri.innerRadius,delete ct.innerRadius,ri.outerRadius=wn="outerRadius"in ct?ct.outerRadius:ri.outerRadius,delete ct.outerRadius,ri.startAngle=Nn="startAngle"in ct?ct.startAngle:ri.startAngle,delete ct.startAngle,ri.endAngle=En="endAngle"in ct?ct.endAngle:ri.endAngle,delete ct.endAngle,ct.d=de.apply(null,(0,f.AY)(Ci,Ri,ji,wn,Nn,En))),ot(this,ct)},animate:function no(ct,ri,Ci){var Ri=this._settings,ji={from:{},to:{}};return this.renderer.animationEnabled()&&("x"in ct||"y"in ct||"innerRadius"in ct||"outerRadius"in ct||"startAngle"in ct||"endAngle"in ct)&&(ji.from.x=Ri.x||0,ji.from.y=Ri.y||0,ji.from.innerRadius=Ri.innerRadius||0,ji.from.outerRadius=Ri.outerRadius||0,ji.from.startAngle=Ri.startAngle||0,ji.from.endAngle=Ri.endAngle||0,ji.to.x="x"in ct?ct.x:Ri.x,delete ct.x,ji.to.y="y"in ct?ct.y:Ri.y,delete ct.y,ji.to.innerRadius="innerRadius"in ct?ct.innerRadius:Ri.innerRadius,delete ct.innerRadius,ji.to.outerRadius="outerRadius"in ct?ct.outerRadius:Ri.outerRadius,delete ct.outerRadius,ji.to.startAngle="startAngle"in ct?ct.startAngle:Ri.startAngle,delete ct.startAngle,ji.to.endAngle="endAngle"in ct?ct.endAngle:Ri.endAngle,delete ct.endAngle,ct.arc=ji),sa(this,ct,ri,Ci)}});var Bi=function(ct){Na.call(this,ct,"rect")};he(Bi.prototype=W(Na.prototype),{constructor:Bi,attr:function li(ct){var ri,Ci,Ri,ji,wn,Nn,En;return xe(ct)&&((void 0!==(ct=he({},ct)).x||void 0!==ct.y||void 0!==ct.width||void 0!==ct.height||void 0!==ct[ee])&&(ri=void 0!==ct.x?this._originalX=ct.x:this._originalX||0,Ci=void 0!==ct.y?this._originalY=ct.y:this._originalY||0,Ri=void 0!==ct.width?this._originalWidth=ct.width:this._originalWidth||0,ji=void 0!==ct.height?this._originalHeight=ct.height:this._originalHeight||0,wn=void 0!==ct[ee]?this._originalSW=ct[ee]:this._originalSW,ct.x=ri+(En=(wn||0)<(Nn=~~((Ri<ji?Ri:ji)/2))?wn||0:Nn)/2,ct.y=Ci+En/2,ct.width=Ri-En,ct.height=ji-En,((wn||0)!==En||!(0===En&&void 0===wn))&&(ct[ee]=En)),"sharp"in ct&&delete ct.sharp),ot(this,ct)}});var _t=function(ct){Na.call(this,ct,"text"),this.css({"white-space":"pre"})};function si(ct,ri){var Ci,Ri;for(Ci=ri;Ri=ct[Ci];++Ci)Ri._link.i=Ci}function Dt(ct,ri){var ji,wn,Ci=ri._links,Ri=ct._link.after=ct._link.after||ri._linkAfter;if(Ri){for(ji=0;(wn=Ci[ji])&&wn._link.name!==Ri;++ji);if(wn)for(++ji;(wn=Ci[ji])&&wn._link.after===Ri;++ji);}else ji=Ci.length;Ci.splice(ji,0,ct),si(Ci,ji)}function ln(ct){this.root=this._createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:we,stroke:we,"stroke-width":0}).attr({class:ct.cssClass}).css({"line-height":"normal","-moz-user-select":we,"-webkit-user-select":we,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),this._init(),this.pathModified=!!ct.pathModified,this._$container=(0,r.A)(ct.container),this.root.append({element:ct.container}),this._locker=0,this._backed=!1}he(_t.prototype=W(Na.prototype),{constructor:_t,attr:function an(ct){var ri;if(!xe(ct))return ot(this,ct);ct=he({},ct);var Ci=this._settings,Ri=(0,k.O9)(Ci[ie])&&(0,k.O9)(Ci[ee]);void 0!==ct[se]&&(Ci[se]=ct[se],delete ct[se],ri=!0),void 0!==ct[ie]&&(Ci[ie]=ct[ie],delete ct[ie]),void 0!==ct[ee]&&(Ci[ee]=ct[ee],delete ct[ee]),void 0!==ct[re]&&(Ci[re]=ct[re],delete ct[re]),void 0!==ct[me]&&(function ar(ct,ri){if(ct._texts&&"center"!==ri)for(var Ci=ct._texts,Ri="left"===ri?-1:1,ji=Math.max.apply(Math,Ci.map(_r=>yt(_r))),wn=0;wn<Ci.length;wn++){var Nn=Ci[wn],En=yt(Nn);0!==ji&&ji!==En&&Wi(Nn,"dx",Ri*g((ji-En)/2*10)/10)}}(this,ct[me]),delete ct[me]);var ji=(0,k.O9)(Ci[ie])&&(0,k.O9)(Ci[ee]);return ot(this,ct),(ri=ri||ji!==Ri&&Ci[se])&&(function qi(ct,ri,Ci){var Ri,ji;ct._texts=null,ct.clear(),null!==ri&&(ri=""+ri,ct.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(ri)&&-1===ri.indexOf("&")?/\n/g.test(ri)?Ri=function ni(ct){for(var ri=ct.replace(/\r/g,"").split(/\n/g),Ci=0,Ri=[];Ci<ri.length;Ci++)Ri.push({value:ri[Ci].trim(),height:0,line:Ci});return Ri}(ri):Ci&&(Ri=[{value:ri.trim(),height:0}]):(ji=function gi(ct){var ri=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi;return ct.replace(/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/gi,function(Ci,Ri,ji,wn){return Ri+(ji=(ji&&ji.match(ri)||[]).map(function(Nn){return Nn}).join(" "))+wn})}(ri),Ri=function Ti(ct){var ri=[],Ci=d.A.createElement("div");return Ci.innerHTML=ct.replace(/\r/g,"").replace(/\n/g,"<br/>").replace(/style=/g,"data-style="),Ci.querySelectorAll("[data-style]").forEach(Ri=>{Ri.style=Ri.getAttribute("data-style"),Ri.removeAttribute("data-style")}),Je(ri,0,Ci,{},""),function Ht(ct){var ri,Ci,ji,Ri=ct[0];for(ri=1,Ci=ct.length;ri<Ci;++ri)(ji=ct[ri]).line===Ri.line?(Ri.height=na(Ri.height,ji.height),Ri.inherits=Ri.inherits||0===parseFloat(ji.height),ji.height=NaN):Ri=ji}(ri),ri}(ji)),Ri?Ri.length&&(ct._texts=Ri,Ci&&wi(Ri,ct.element,ie),wi(Ri,ct.element,"tspan")):ct.element.appendChild(d.A.createTextNode(ri)))}(this,Ci.text,ji),this._hasEllipsis=!1),(ri||void 0!==ct.x||void 0!==ct.y)&&Ur(this),ji&&function po(ct){if(ct._texts){var wn,Nn,En,ri=ct._texts,Ci=ct._settings[ie],Ri=ct._settings[ee],ji=ct._settings[re]||1;for(Nn=0,En=ri.length;Nn<En;++Nn)(wn=ri[Nn].stroke).setAttribute(ie,Ci),wn.setAttribute(ee,Ri),wn.setAttribute(re,ji),wn.setAttribute("stroke-linejoin","round")}}(this),this},css:function xi(ct){return Mt(this,ct=ct||{}),ne in ct&&Ur(this),this},applyEllipsis:function cn(ct){var ri,Ri,ji,wn,Nn,En,_r,Ci=!1;ui.call(this);var ha=this.renderer.text(G).attr(this._styles).append(this.renderer.root),aa=ha.getBBox().width;if(this._getElementBBox().width>ct)for(ct-aa<0?ct=0:ct-=aa,ri=function pt(ct,ri,Ci){var ji,wn,Nn,En,_r,Ri=[];if(ri)for(ji=0,wn=ri.length;ji<wn;++ji)Ri[(Nn=ri[ji]).line]?(Nn.startBox=En,Ri[Nn.line].parts.push(Nn),Ri[Nn.line].commonLength+=Nn.value.length):(Nn.startBox=En=0,Ri.push({commonLength:Nn.value.length,parts:[Nn]})),_r=En+Nn.tspan.getSubStringLength(0,Nn.value.length),Nn.endIndex=It(Nn,Ci,En,_r),En=_r;else(Nn={value:ct.textContent,tspan:ct}).startBox=En=0,_r=En+yt(Nn),Nn.endIndex=It(Nn,Ci,En,_r),Ri=[{commonLength:ct.textContent.length,parts:[Nn]}];return Ri}(this.element,this._texts,ct),Ri=0,ji=ri.length;Ri<ji;++Ri)if(wn=ri[Ri].parts,1!==ri[Ri].commonLength)for(Nn=0,En=wn.length;Nn<En;++Nn)(0,k.O9)((_r=wn[Nn]).endIndex)?(mi(_r,_r.endIndex),Ci=!0):_r.startBox>ct&&Kt(_r);return ha.remove(),this._hasEllipsis=Ci,Ci},setMaxSize:function Ut(ct,ri){var Ci=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ri=this,ji=[],wn=!1,Nn=!1,En=ct;ui.call(Ri);var _r=function Qi(ct){var ri=Xi(ct);return()=>{for(var Ci=0;Ci<ri.length;Ci++)ct.appendChild(ri[Ci])}}(this.element),ha=Ri.renderer.text(G).attr(Ri._styles).append(Ri.renderer.root),aa=ha.getBBox().width,{width:Fa,height:Ya}=Ri._getElementBBox();return(Fa||Ya)&&(Fa>ct||ri&&Ya>ri)&&(ct-aa<0?En=0:En-=aa,ji=function ai(ct,ri,Ci,Ri,ji){var wn=Ci.textOverflow;if(!isFinite(Ri)||0===Number(Ri)||"none"===wn)return ct;var Nn=ct.reduce((En,_r,ha,aa)=>{var[Fa,Ya]=En,_o=function gt(ct,ri){return ct.parts.reduce((Ci,Ri)=>x(Ci,yn(Ri,ri)),0)}(_r,ji);if((Ya+=_o)<Ri)Fa.push(_r);else if(_r.parts.forEach(ia=>{Kt(ia)}),"ellipsis"===wn){var Yo=aa[ha-1];if(Yo){var Va=Yo.parts[Yo.parts.length-1];Va.hasEllipsis||(0===ri||Va.endBox<ri?mi(Va,Va.value.length,Vt(ri,Ci)):ci(Va,ri,Ci))}}return[Fa,Ya]},[[],0]);return"hide"===wn&&Nn[1]>Ri?(Nn[0].forEach(En=>{En.parts.forEach(_r=>{Kt(_r)})}),[]):Nn[0]}(ji=function kt(ct,ri,Ci,Ri,ji){if(!ri){var Nn={value:ct.textContent,height:0,line:0};ct.textContent="",wi([Nn],ct,"tspan"),ri=[Nn]}return ri.reduce((En,_r)=>{var[ha,aa,Fa,Ya,_o]=En,Yo=ha[ha.length-1];if(Ya)return[ha,aa,Fa,Ya];if(Yo&&_r.line===_o){if(_r.startBox=aa,aa>Ri&&"none"===ji.wordWrap&&"ellipsis"===ji.textOverflow)return Kt(_r),[ha,aa,Fa,Ya,_o];Yo.parts.push(_r),Yo.commonLength+=_r.value.length}else _r.startBox=aa=0,ha.push({commonLength:_r.value.length,parts:[_r]});if(_r.endBox=Fa=aa+yt(_r),aa=Fa,(0,k.O9)(Ci)&&Fa>Ci){var Va=bi(_r,Ci,Ri,ji);Va.length?ha=ha.concat(Va.filter(ia=>ia.parts.length>0)):(ha=[],Ya=!0)}return[ha,aa,Fa,Ya,_r.line]},[[],0,0,!1,0])[0]}(Ri.element,Ri._texts,ct,En,Ci),En,Ci,ri,parseFloat(this._getLineHeight())),this._texts=ji.reduce((_o,Yo)=>_o.concat(Yo.parts),[]).filter(_o=>""!==_o.value).map(_o=>(_o.stroke&&_o.tspan.parentNode.appendChild(_o.stroke),_o)).map(_o=>(_o.tspan.parentNode.appendChild(_o.tspan),_o)),!this._texts.length&&(this._texts=null),wn=!0,this._texts?Ur(this):(this.element.textContent="",Nn=!0)),ha.remove(),Ri._hasEllipsis=wn,_r(),{rowCount:ji.length,textChanged:wn,textIsEmpty:Nn}},restoreText:ui,_getLineHeight(){return isNaN(parseFloat(this._styles[ne]))?N:this._styles[ne]}}),ln.prototype={constructor:ln,_init:function(){this._defs=this._createElement("defs").append(this.root),this._animationController=new w(this.root.element),this._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},setOptions:function(ct){return this.rtl=!!ct.rtl,this.encodeHtml=!!ct.encodeHtml,this.updateAnimationOptions(ct.animation||{}),this.root.attr({direction:this.rtl?"rtl":"ltr"}),this},_createElement:function(ct,ri,Ci){var Ri=new Na(this,ct,Ci);return ri&&Ri.attr(ri),Ri},lock:function(){return 0===this._locker&&(this._backed=!this._$container.is(":visible"),this._backed&&function q(ct){0===X().backupCounter&&d.A.getBody().appendChild(X().backupContainer),++X().backupCounter,ct.append({element:X().backupContainer})}(this.root)),++this._locker,this},unlock:function(){return--this._locker,0===this._locker&&(this._backed&&function ye(ct,ri){ct.append({element:ri}),--X().backupCounter,0===X().backupCounter&&d.A.getBody().removeChild(X().backupContainer)}(this.root,this._$container[0]),this._backed=!1),this},resize:function(ct,ri){return ct>=0&&ri>=0&&this.root.attr({width:ct,height:ri}),this},dispose:function(){var ct;for(ct in this.root.dispose(),this._defs.dispose(),this._animationController.dispose(),jn.removeByRenderer(this),this)this[ct]=null;return this},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(ct){return he(this._animation,ct),this},stopAllAnimations:function(ct){return this._animationController[ct?"lock":"stop"](),this},animateElement:function(ct,ri,Ci){return this._animationController.animateElement(ct,ri,Ci),this},svg:function(){return this.root.markup()},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(ct){this._animationController.onEndAnimation(ct)},rect:function(ct,ri,Ci,Ri){return new Bi(this).attr({x:ct||0,y:ri||0,width:Ci||0,height:Ri||0})},simpleRect:function(){return this._createElement("rect")},circle:function(ct,ri,Ci){return this._createElement("circle",{cx:ct||0,cy:ri||0,r:Ci||0})},g:function(){return this._createElement("g")},image:function(ct,ri,Ci,Ri,ji,wn){var Nn=this._createElement("image",{x:ct||0,y:ri||0,width:Ci||0,height:Ri||0,preserveAspectRatio:Ie[(0,f.NU)(wn)]||we});return Nn.element.setAttributeNS("http://www.w3.org/1999/xlink","href",ji||""),Nn},path:function(ct,ri){return new Eo(this,ri).attr({points:ct||[]})},arc:function(ct,ri,Ci,Ri,ji,wn){return new To(this).attr({x:ct||0,y:ri||0,innerRadius:Ci||0,outerRadius:Ri||0,startAngle:ji||0,endAngle:wn||0})},text:function(ct,ri,Ci){return new _t(this).attr({text:ct,x:ri||0,y:Ci||0})},linearGradient:function(ct){var ri=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,f.Jw)(),Ri=this._createElement("linearGradient",{id:ri,gradientTransform:"rotate(".concat((arguments.length>2?arguments[2]:void 0)||0,")")}).append(this._defs);return Ri.id=ri,this._createGradientStops(ct,Ri),Ri},radialGradient:function(ct,ri){var Ci=this._createElement("radialGradient",{id:ri}).append(this._defs);return this._createGradientStops(ct,Ci),Ci},_createGradientStops:function(ct,ri){ct.forEach(Ci=>{var Ri;this._createElement("stop",{offset:Ci.offset,"stop-color":null!==(Ri=Ci["stop-color"])&&void 0!==Ri?Ri:Ci.color,"stop-opacity":Ci.opacity}).append(ri)})},pattern:function(ct,ri,Ci){var Ri=(ri=ri||{}).step||6,ji=Ri/2,wn=1.5*Ri,Nn=Ci||(0,f.Jw)(),En="right"===(0,f.NU)(ri.direction)?"M "+ji+" "+-ji+" L "+-ji+" "+ji+" M 0 "+Ri+" L "+Ri+" 0 M "+wn+" "+ji+" L "+ji+" "+wn:"M 0 0 L "+Ri+" "+Ri+" M "+-ji+" "+ji+" L "+ji+" "+wn+" M "+ji+" "+-ji+" L "+wn+" "+ji,_r=this._createElement("pattern",{id:Nn,width:Ri,height:Ri,patternUnits:"userSpaceOnUse"}).append(this._defs);return _r.id=Nn,this.rect(0,0,Ri,Ri).attr({fill:ct,opacity:ri.opacity}).append(_r),new Eo(this).attr({d:En,"stroke-width":ri.width||1,stroke:ct}).append(_r),_r},customPattern:function(ct,ri,Ci,Ri){var ji={id:ct,width:Ci,height:Ri,patternContentUnits:"userSpaceOnUse",patternUnits:this._getPatternUnits(Ci,Ri)},wn=this._createElement("pattern",ji).append(this._defs);return ri.render({container:wn.element}),wn},_getPatternUnits:function(ct,ri){if(Number(ct)&&Number(ri))return"userSpaceOnUse"},_getPointsWithYOffset:function(ct,ri){return ct.map(function(Ci,Ri){return Ri%2!=0?Ci+ri:Ci})},clipShape:function(ct,ri){var Ci=(0,f.Jw)(),Ri=this._createElement("clipPath",{id:Ci}).append(this._defs),ji=ct.apply(this,ri).append(Ri);return ji.id=Ci,ji.remove=function(){throw"Not implemented"},ji.dispose=function(){return Ri.dispose(),Ri=null,this},ji},clipRect(ct,ri,Ci,Ri){return this.clipShape(this.rect,arguments)},clipCircle(ct,ri,Ci){return this.clipShape(this.circle,arguments)},shadowFilter:function(ct,ri,Ci,Ri,ji,wn,Nn,En,_r){var ha=(0,f.Jw)(),aa=this._createElement("filter",{id:ha,x:ct||0,y:ri||0,width:Ci||0,height:Ri||0}).append(this._defs),Fa=this._createElement("feGaussianBlur",{in:"SourceGraphic",result:"gaussianBlurResult",stdDeviation:Nn||0}).append(aa),Ya=this._createElement("feOffset",{in:"gaussianBlurResult",result:"offsetResult",dx:ji||0,dy:wn||0}).append(aa),_o=this._createElement("feFlood",{result:"floodResult","flood-color":En||"","flood-opacity":_r}).append(aa),Yo=this._createElement("feComposite",{in:"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(aa),Va=this._createElement("feComposite",{in:"SourceGraphic",in2:"compositeResult",operator:"over"}).append(aa);return aa.id=ha,aa.gaussianBlur=Fa,aa.offset=Ya,aa.flood=_o,aa.composite=Yo,aa.finalComposite=Va,aa.attr=function(ia){var $o={},mo={},fl={};return"x"in ia&&($o.x=ia.x),"y"in ia&&($o.y=ia.y),"width"in ia&&($o.width=ia.width),"height"in ia&&($o.height=ia.height),ot(this,$o),"blur"in ia&&this.gaussianBlur.attr({stdDeviation:ia.blur}),"offsetX"in ia&&(mo.dx=ia.offsetX),"offsetY"in ia&&(mo.dy=ia.offsetY),this.offset.attr(mo),"color"in ia&&(fl["flood-color"]=ia.color),"opacity"in ia&&(fl["flood-opacity"]=ia.opacity),this.flood.attr(fl),this},aa},brightFilter:function(ct,ri){var Ci=(0,f.Jw)(),Ri=this._createElement("filter",{id:Ci}).append(this._defs),ji=this._createElement("feComponentTransfer").append(Ri),wn={type:ct,slope:ri};return Ri.id=Ci,this._createElement("feFuncR",wn).append(ji),this._createElement("feFuncG",wn).append(ji),this._createElement("feFuncB",wn).append(ji),Ri},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var ct=(0,f.Jw)(),ri=this._createElement("filter",{id:ct}).append(this._defs);return this._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(ri),ri.id=ct,this._grayScaleFilter=ri,ri},lightenFilter:function(ct){var ri=this._createElement("filter",{id:ct}).append(this._defs);return this._createElement("feColorMatrix",{type:"matrix",values:"".concat(1.3," 0 0 0 0 0 ").concat(1.3," 0 0 0 0 0 ").concat(1.3," 0 0 0 0 0 1 0")}).append(ri),ri.id=ct,ri},initDefsElements:function(){var Ci,ct=this._defsElementsStorage=this._defsElementsStorage||{byHash:{},baseId:(0,f.Jw)()},ri=ct.byHash;for(Ci in ri)ri[Ci].pattern.dispose();ct.byHash={},ct.refToHash={},ct.nextId=0},drawPattern:function(ct,ri,Ci){var{color:Ri,hatching:ji}=ct;return this.pattern(Ri,ji,"".concat(ri,"-hatching-").concat(Ci++))},drawFilter:function(ct,ri,Ci){return this.lightenFilter("".concat(ri,"-lightening-").concat(Ci++))},lockDefsElements:function(ct,ri,Ci){var ji,En,Ri=this._defsElementsStorage,wn="pattern"===Ci?function An(ct){var{color:ri,hatching:Ci}=ct;return"@"+ri+"::"+Ci.step+":"+Ci.width+":"+Ci.opacity+":"+Ci.direction}(ct):"@filter::lightening",Nn="pattern"===Ci?this.drawPattern:this.drawFilter;return Ri.refToHash[ri]!==wn&&(ri&&this.releaseDefsElements(ri),(ji=Ri.byHash[wn])||(En=Nn.call(this,ct,Ri.baseId,Ri.nextId++),ji=Ri.byHash[wn]={pattern:En,count:0},Ri.refToHash[En.id]=wn),++ji.count,ri=ji.pattern.id),ri},releaseDefsElements:function(ct){var ri=this._defsElementsStorage,Ci=ri.refToHash[ct],Ri=ri.byHash[Ci];Ri&&0==--Ri.count&&(Ri.pattern.dispose(),delete ri.byHash[Ci],delete ri.refToHash[ct])}};var jn=function(){var ct=[];return{add:function(ri){ct.push(ri)},remove:function(ri){ct=ct.filter(function(Ci){return Ci!==ri})},removeByRenderer:function(ri){ct=ct.filter(function(Ci){return Ci.renderer!==ri})},fire:function(){ct.forEach(function(ri){ri()})}}}()},25188:(ei,rt,D)=>{"use strict";D.d(rt,{I:()=>Q,m:()=>Y});var r=D(80186),d=D(17669),L=D(14435),j=D(7963),o=D(48745),E=D(24292),R=D(91593),m=D(72463),_=D(87951),v=D(43458),h=D(45),s=D(71451),b=h.A.format,O=Math.ceil,w=Math.max,f=Math.min,k=(0,L.zk)();function x(se){se.css({left:"-9999px"}).detach()}function C(){return(0,E.A)("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"})}var Y=function(se){this._eventTrigger=se.eventTrigger,this._widgetRoot=se.widgetRoot,this._widget=se.widget,this._textHtmlContainers=[],this._wrapper=(0,E.A)("<div>").css({position:"absolute",overflow:"hidden",pointerEvents:"none"}).addClass(se.cssClass);var ie=this._renderer=new R.A4({pathModified:se.pathModified,container:this._wrapper[0]});ie.root.attr({"pointer-events":"none"}),this._text=ie.text(void 0,0,0),this._textGroupHtml=(0,E.A)("<div>").css({position:"absolute",padding:0,margin:0,border:"0px solid transparent"}).appendTo(this._wrapper),this._textHtml=C().appendTo(this._textGroupHtml)};Y.prototype={constructor:Y,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var se=this._options,ie=(0,E.A)(this._widgetRoot).closest(se.container);return 0===ie.length&&(ie=(0,E.A)(se.container)),(ie.length?ie:(0,E.A)("body")).get(0)},setTemplate(se){this._template=se?this._widget._getTemplate(se):null},setOptions:function(se){var ie=this;ie._options=se=se||{},ie._textFontStyles=(0,v.a1)(se.font),ie._textFontStyles.color=ie._textFontStyles.fill,ie._wrapper.css({zIndex:se.zIndex}),ie._customizeTooltip=se.customizeTooltip;var ee=ie._textGroupHtml;this.plaque&&this.plaque.clear(),this.setTemplate(se.contentTemplate);var re=se.interactive?"auto":"none";return se.interactive&&this._renderer.root.css({"-moz-user-select":"auto","-webkit-user-select":"auto"}),this.plaque=new s.R({opacity:ie._options.opacity,color:ie._options.color,border:ie._options.border,paddingLeftRight:ie._options.paddingLeftRight,paddingTopBottom:ie._options.paddingTopBottom,arrowLength:ie._options.arrowLength,arrowWidth:20,shadow:ie._options.shadow,cornerRadius:ie._options.cornerRadius},ie,ie._renderer.root,ne=>{var{group:_e,onRender:be,eventData:oe,isMoving:me,templateCallback:we=(()=>{})}=ne,N=ie._state;if(!me){var G=ie._template,W=G&&!N.formatObject.skipTemplate;if(N.html||W){if(ee.css({color:N.textColor,width:3e3,pointerEvents:re}),W){var z=ie._textHtmlContainers,X=C().appendTo(ie._textGroupHtml);return z.push(X),void G.render({model:N.formatObject,container:X,onRendered:()=>{if(function F(se){se.forEach(ie=>ie.remove())}(z.splice(0,z.length-1)),ie._textHtml=(0,j.bG)(ie._textHtml,X),N.html=ie._textHtml.html(),0===(0,r.RG)(ie._textHtml)&&0===(0,r.Oq)(ie._textHtml))return this.plaque.clear(),void we(!1);be(),ie._riseEvents(oe),ie._moveWrapper(),ie.plaque.customizeCloud({fill:N.color,stroke:N.borderColor,"pointer-events":re}),we(!0),ie._textHtmlContainers=[]}})}ie._text.attr({text:""}),ie._textHtml.html(N.html)}else ie._text.css({fill:N.textColor}).attr({text:N.text,class:se.cssClass,"pointer-events":re}).append(_e.attr({align:se.textAlignment}));ie._riseEvents(oe),ie.plaque.customizeCloud({fill:N.color,stroke:N.borderColor,"pointer-events":re})}return be(),ie._moveWrapper(),!0},!0,(ne,_e)=>{if(ne._state.html){var oe=k.getComputedStyle(ie._textHtml.get(0));return{x:0,y:0,width:O(parseFloat(oe.width)),height:O(parseFloat(oe.height))}}return _e.getBBox()},(ne,_e,be,oe)=>{ne._state.html?ie._textGroupHtml.css({left:be,top:oe}):_e.move(be,oe)}),ie},_riseEvents:function(se){this._eventData&&this._eventTrigger("tooltipHidden",this._eventData),this._eventData=se,this._eventTrigger("tooltipShown",this._eventData)},setRendererOptions:function(se){return this._renderer.setOptions(se),this._textGroupHtml.css({direction:se.rtl?"rtl":"ltr"}),this},update:function(se){this.setOptions(se),x(this._wrapper);var ie={};for(var ee in this._textFontStyles)ie[(0,o.PT)(ee)]=this._textFontStyles[ee];return this._textGroupHtml.css(ie),this._text.css(this._textFontStyles),this._eventData=null,this},_prepare:function(se,ie){var ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,re=this._options,ne={};return(0,m.Tn)(ee)&&(ne=ee.call(se,se),"text"in(ne=(0,m.Qd)(ne)?ne:{})&&(ie.text=(0,m.O9)(ne.text)?String(ne.text):""),"html"in ne&&(ie.html=(0,m.O9)(ne.html)?String(ne.html):"")),!("text"in ie)&&!("html"in ie)&&(ie.text=se.valueText||se.description||""),ie.color=ne.color||re.color,ie.borderColor=ne.borderColor||(re.border||{}).color,ie.textColor=ne.fontColor||(this._textFontStyles||{}).color,!!ie.text||!!ie.html||!!this._template},show:function(se,ie,ee,re,ne){if(this._options.forceEvents)return ee.x=ie.x,ee.y=ie.y-ie.offset,this._riseEvents(ee),!0;var _e={formatObject:se,eventData:ee,templateCallback:ne};if(!this._prepare(se,_e,re))return!1;this._state=_e,this._wrapper.appendTo(this._getContainer()),this._clear();var be=(0,_.X)({},this._options,{canvas:this._getCanvas()},_e,{x:ie.x,y:ie.y,offset:ie.offset});return this.plaque.clear().draw(be)},isCursorOnTooltip:function(se,ie){if(this._options.interactive){var ee=this.plaque.getBBox();return se>ee.x&&se<ee.x+ee.width&&ie>ee.y&&ie<ee.y+ee.height}return!1},hide:function(se){x(this._wrapper),this._eventData&&(this._eventTrigger("tooltipHidden",this._options.forceEvents?(0,_.X)({isPointerOut:se},this._eventData):this._eventData),this._clear(),this._eventData=null)},_clear(){this._textHtml.empty()},move:function(se,ie,ee){this.plaque.draw({x:se,y:ie,offset:ee,canvas:this._getCanvas(),isMoving:!0})},_moveWrapper:function(){var se=this.plaque.getBBox();this._renderer.resize(se.width,se.height);var ie=this._wrapper.css({left:0,top:0}).offset(),ee=se.x,re=se.y;this._wrapper.css({left:ee-ie.left,top:re-ie.top}),this.plaque.moveRoot(-ee,-re),this._state.html&&(this._textHtml.css({left:-ee,top:-re}),this._textGroupHtml.css({width:O((0,r.RG)(this._textHtml))}))},formatValue:function(se,ie){var ee=ie?function g(se,ie){var ee=se;switch(ie){case"argument":ee={format:se.argumentFormat};break;case"percent":ee={format:{type:"percent",precision:se.format&&se.format.percentPrecision}}}return ee}(this._options,ie):this._options;return b(se,ee.format)},getOptions(){return this._options},getLocation:function(){return(0,v.NU)(this._options.location)},isEnabled:function(){return!!this._options.enabled||!!this._options.forceEvents},isShared:function(){return!!this._options.shared},_getCanvas:function(){var se=this._getContainer(),ie=se.getBoundingClientRect(),ee=d.A.getDocumentElement(),re=d.A.getDocument(),ne=k.pageXOffset||ee.scrollLeft||0,_e=k.pageYOffset||ee.scrollTop||0,be={left:ne,top:_e,width:w(ee.clientWidth,re.body.clientWidth)+ne,height:w(re.body.scrollHeight,ee.scrollHeight,re.body.offsetHeight,ee.offsetHeight,re.body.clientHeight,ee.clientHeight),right:0,bottom:0};return se!==d.A.getBody()&&(ne=w(be.left,be.left+ie.left),_e=w(be.top,be.top+ie.top),be.width=f(ie.width,be.width)+ne+be.left,be.height=f(ie.height,be.height)+_e+be.top,be.left=ne,be.top=_e),be}};var Q={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new Y({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element(),widget:this})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},extenders:{_stopCurrentHandling(){this._tooltip&&this._tooltip.hide()}},customize:function(se){var ie=se.prototype;ie._eventsMap.onTooltipShown={name:"tooltipShown"},ie._eventsMap.onTooltipHidden={name:"tooltipHidden"},se.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),se.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})},fontFields:["tooltip.font"]}},43458:(ei,rt,D)=>{"use strict";D.d(rt,{AY:()=>an,Am:()=>ot,CX:()=>Je,Dz:()=>Ui,FG:()=>ce,HU:()=>vt,Jw:()=>cn,NU:()=>Ie,Nc:()=>Et,Od:()=>li,Oh:()=>ui,Qj:()=>tt,R8:()=>Be,RP:()=>wi,Tj:()=>ge,Wb:()=>Nt,XE:()=>_e,Y$:()=>be,Yf:()=>z,ZN:()=>Ht,a1:()=>Xt,aI:()=>wt,cP:()=>xe,dm:()=>jt,dt:()=>pe,fC:()=>Ge,hq:()=>Ti,iN:()=>Qe,jg:()=>Lt,lD:()=>G,n0:()=>me,qM:()=>Mt,tR:()=>N,tW:()=>ni,uD:()=>xi,uz:()=>oe,wS:()=>gi,z1:()=>Tt,z7:()=>ne});var r=D(5042),d=D(72463),L=D(87951),j=D(12101),o=D(22209),E=D(91437),R=D(34090),{PI:m,abs:v,log:h,floor:s,ceil:b,pow:O,sqrt:w,atan2:f}=Math,I=(Math,Math.max),x=Math.cos,g=Math.sin,C=Math.round,F=E.A.dateToMilliseconds,Y=1e10,Q=m/180,ie=Number,re=1,ne=10,_e=function(Xi,Qi){return Xi?h(Xi)/h(Qi):NaN},be=function(Xi){return(0,o.Ai)(_e(Xi,10))},oe=function(Xi,Qi){return O(Qi,Xi)},me=function(Xi){return(Xi%360+360)%360},N=function(Xi){return m*Xi/180},G=function(Xi){var Qi=N(Xi);return{cos:x(Qi),sin:g(Qi)}},z=function(Xi,Qi,Ut,It){var yt=Ut-Xi,pt=It-Qi;return w(pt*pt+yt*yt)},ye=function(Xi,Qi){if(Qi>20&&(Qi=20),(0,d.kf)(Xi))return(0,d.O4)(Xi)?ie(Xi.toExponential(Qi)):ie(Xi.toFixed(Qi))},xe=function(Xi){return Xi.toExponential().split("e")[1]};function ge(Xi,Qi){for(var pt,Ut=0,It=Xi.length,yt=[];Ut<It;)null!==(pt=Qi(Xi[Ut],Ut))&&yt.push(pt),Ut++;return yt}function Ie(Xi){return String(Xi).toLowerCase()}function ce(Xi){return Xi&&(Xi.originalTop=Xi.top,Xi.originalBottom=Xi.bottom,Xi.originalLeft=Xi.left,Xi.originalRight=Xi.right),Xi}function de(Xi){return-Y<Xi&&Xi<+Y?Xi:0}function pe(Xi){var Qi=de(s(Xi.x)),Ut=de(s(Xi.y)),pt={x:Qi,y:Ut,width:de(b(Xi.width+Xi.x))-Qi,height:de(b(Xi.height+Xi.y))-Ut};return pt.isEmpty=!(pt.x||pt.y||pt.width||pt.height),pt}function Be(Xi,Qi,Ut){var It=ie(x(Ut*Q).toFixed(3)),yt=ie(g(Ut*Q).toFixed(3)),pt=Xi.width/2,st=Xi.height/2,Wt=Xi.x+pt,Vt=Xi.y+st,ci=v(pt*It)+v(st*yt),bi=v(pt*yt)+v(st*It);return pe({x:Qi[0]+(Wt-Qi[0])*It+(Vt-Qi[1])*yt-ci,y:Qi[1]-(Wt-Qi[0])*yt+(Vt-Qi[1])*It-bi,width:2*ci,height:2*bi})}var tt=function(Xi,Qi){return void 0!==Xi?Xi:Qi},vt=function(Xi){var Ut,It,Qi={};for(Ut=0,It=Xi.length;Ut<It;++Ut)Qi[Ie(Xi[Ut])]=1;return function(yt,pt){var st=Ie(yt);return Qi[st]?st:pt}},Xt=function(Xi){var Qi={};return(0,j.__)(Xi||{},function(Ut,It){if(!/^(cursor)$/i.test(Ut))if("opacity"===Ut)It=null;else if("color"===Ut){if(Ut="fill","opacity"in Xi){var yt=new R.A(It);It="rgba(".concat(yt.r,",").concat(yt.g,",").concat(yt.b,",").concat(Xi.opacity,")")}}else Ut="font-"+Ut;Qi[Ut]=It}),Qi};function Nt(Xi,Qi,Ut,It){var yt=It>0?It:0;Ut=(0,d.O9)(Ut)?Ut+Qi-90:0;var pt=G(Ut);return{x:C(Xi.x+yt*pt.cos),y:C(Xi.y+yt*pt.sin)}}var Qe=function(Xi,Qi,Ut){var It=z(Xi.x,Xi.y,Qi,Ut),yt=f(Ut-Xi.y,Qi-Xi.x);return{phi:C(me(180*yt/m)),r:C(It)}},Et=function(Xi,Qi){var st,Vt,ci,Ut=(0,d.Tn)(Xi.customizeSeries)?Xi.customizeSeries:r.lQ,It=Xi.nameField,yt={},pt=[],Wt=0;for(Vt=(Qi=Qi||[]).length;Wt<Vt;Wt++)It in(ci=Qi[Wt])&&((st=yt[ci[It]])||(st=yt[ci[It]]={name:ci[It],nameFieldValue:ci[It]},pt.push(st.name)));return ge(pt,function(bi){var gt=yt[bi];return(0,L.X)(gt,Ut.call(null,gt.name))})},Lt=function(Xi,Qi,Ut){if(0===Xi.length)return{categories:[]};Qi=(0,d.O9)(Qi)?Qi:Xi[0],Ut=(0,d.O9)(Ut)?Ut:Xi[Xi.length-1];var st,It=ge(Xi,bi=>bi?.valueOf()),yt=It.indexOf(Qi.valueOf()),pt=It.indexOf(Ut.valueOf()),Wt=!1;yt<0&&(yt=0),pt<0&&(pt=Xi.length-1),pt<yt&&(st=pt,pt=yt,yt=st,Wt=!0);var Vt=Xi.slice(yt,pt+1),ci=Vt.length-1;return{categories:Vt,start:Vt[Wt?ci:0],end:Vt[Wt?0:ci],inverted:Wt}};function wt(Xi){return!(Xi.unit%2)}function Mt(Xi){Xi.forEach(Vt=>{var ci=Vt.height,bi=0,gt=parseFloat(ci)||void 0;((0,d.Kg)(ci)&&ci.indexOf("px")>-1||(0,d.kf)(ci)&&ci>1)&&(gt=C(gt),bi=1),!bi&>&&((0,d.Kg)(ci)&&ci.indexOf("%")>-1?(gt/=100,bi=2):gt<0&&(gt=gt<-1?1:v(gt))),Vt.height=gt,Vt.unit=bi});var Qi=Xi.filter(wt),Ut=Qi.reduce((Vt,ci)=>Vt+(ci.height||0),0),It=Qi.length,yt=Qi.filter(Vt=>!Vt.height),pt=yt.length;if(Ut<1&&pt)yt.forEach(Vt=>Vt.height=(1-Ut)/pt);else if(Ut>1||Ut<1&&!pt||1===Ut&&pt){if(pt){var st=Ut/It,Wt=pt*st;Qi.filter(Vt=>Vt.height).forEach(Vt=>Vt.height*=(Ut-Wt)/Ut),yt.forEach(Vt=>Vt.height=st)}Qi.forEach(Vt=>Vt.height*=1/Ut)}}function Ge(Xi,Qi,Ut){var It=0,yt=ne,pt=Ut?Qi.width-Qi.left-Qi.right:Qi.height-Qi.top-Qi.bottom,st=Xi.reduce((bi,gt)=>bi+(wt(gt)?0:gt.height),0),Wt=pt-yt*(Xi.length-1)-st,Vt=Ut?"left":"top",ci=Ut?"right":"bottom";Xi.forEach(bi=>{var gt=wt(bi)?C(bi.height*Wt):bi.height;bi.canvas=bi.canvas||{},(0,L.X)(bi.canvas,Qi),bi.canvas[Vt]=Qi[Vt]+It,bi.canvas[ci]=Qi[ci]+(pt-gt-It),It=It+gt+yt,ce(bi.canvas)})}var ot=function(Xi){var Qi={};return ge(Xi,function(Ut){var It=Qi[Ut]?null:Ut;return Qi[Ut]=!0,It})},Tt=function(Xi,Qi,Ut){var It=Xi.x+Xi.width/2>=Ut.x,yt=(It?Xi.x:Xi.x+Xi.width)-Ut.x,pt=Xi.y-Ut.y,st=pt+Qi,Wt=C(w(yt*yt+pt*pt-st*st)),Vt=(It?+Wt:-Wt)||yt;return{x:Ut.x+(It?Vt:Vt-Xi.width),y:Xi.y+Qi}};function jt(Xi,Qi){return{checkInterval:Xi.checkInterval||Qi.checkInterval,size:I(Xi.size||0,Qi.size||0),percentStick:Xi.percentStick||Qi.percentStick,sizePointNormalState:I(Xi.sizePointNormalState||0,Qi.sizePointNormalState||0)}}function li(Xi){return Array.isArray(Xi)?{startValue:Xi[0],endValue:Xi[1]}:Xi||{}}function an(Xi,Qi,Ut,It,yt,pt){var st,Wt=!0,Vt=ye(pt,3)-ye(yt,3);return Vt&&(v(Vt)%360==0&&(yt=0,pt=360,st=!0,pt-=.01),yt>360&&(yt%=360),pt>360&&(pt%=360),yt>pt&&(yt-=360),Wt=!1),yt*=Q,pt*=Q,[Xi,Qi,Math.min(It,Ut),Math.max(It,Ut),Math.cos(yt),Math.sin(yt),Math.cos(pt),Math.sin(pt),st,s(v(pt-yt)/m)%2?"1":"0",Wt]}function xi(Xi,Qi){return Qi?Xi:[Xi.startValue,Xi.endValue]}function Je(Xi,Qi){return"datetime"===Xi.dataType?function(Ut,It){var yt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return new Date(Ut.getTime()+yt*It)}:"logarithmic"===Xi.axisType?function(Ut,It){var yt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Ti(gi(Ut,Xi.base)+yt*It,Xi.base)}:function(Ut,It){var pt=Ut+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)*It;return Qi&&pt*Ut<=0?0:pt}}function Ht(Xi,Qi,Ut,It){var yt=(0,d.O9)(Qi.startValue),pt=(0,d.O9)(Qi.endValue),st="discrete"!==Xi.axisType;It=It||Ut;var Wt=Je(Xi,!1),Vt=yt?Qi.startValue:It.min,ci=pt?Qi.endValue:It.max,bi=Qi.length,gt=It.categories;if(st&&!(0,d.O9)(Vt)&&!(0,d.O9)(ci))return{startValue:Vt,endValue:ci};if((0,d.O9)(bi))if(st)"datetime"===Xi.dataType&&!(0,d.kf)(bi)&&(bi=F(bi)),pt&&!yt||!pt&&!yt?((0,d.O9)(Ut.max)&&(ci=ci>Ut.max?Ut.max:ci),Vt=Wt(ci,bi,-1)):yt&&!pt&&((0,d.O9)(Ut.min)&&(Vt=Vt<Ut.min?Ut.min:Vt),ci=Wt(Vt,bi));else if(bi=parseInt(bi),!isNaN(bi)&&isFinite(bi))if(bi--,pt||yt){if(yt&&!pt)ci=Lt(gt,Vt,void 0).categories[bi];else if(!yt&&pt){var kt=Lt(gt,void 0,ci);Vt=kt.categories[kt.categories.length-1-bi]}}else ci=gt[gt.length-1],Vt=gt[gt.length-1-bi];return st&&((0,d.O9)(Ut.max)&&ci>Ut.max&&(ci=Ut.max),(0,d.O9)(Ut.min)&&Vt<Ut.min&&(Vt=Ut.min)),{startValue:Vt,endValue:ci}}function gi(Xi,Qi){var It=arguments.length>3?arguments[3]:void 0;if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2]))return _e(Xi,Qi);if(0===Xi)return 0;var yt=_e(v(Xi),Qi)-(It-1);return yt<0?0:(0,o.Ai)((0,o._S)(Xi)*yt,Number(O(Qi,It-1).toFixed(v(It))))}function Ti(Xi,Qi){var It=arguments.length>3?arguments[3]:void 0;if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2]))return oe(Xi,Qi);if(0===Xi)return 0;var yt=oe(v(Xi)+(It-1),Qi);return yt<0?0:(0,o.Ai)((0,o._S)(Xi)*yt,Number(O(Qi,It).toFixed(v(It))))}function ni(Xi,Qi){return Array.isArray(Qi)?Xi.length===Qi.length&&Xi.every((Ut,It)=>wi(Ut)===wi(Qi[It])):wi(Xi.startValue)===wi(Qi.startValue)&&wi(Xi.endValue)===wi(Qi.endValue)}function wi(Xi){return Xi&&Xi.valueOf()}function ui(Xi,Qi,Ut){return Qi>=Xi.left&&Qi<=Xi.right&&Ut>=Xi.top&&Ut<=Xi.bottom}var cn=()=>"DevExpress_".concat(re++);function Ui(Xi,Qi){return(0,d.Kg)(Xi)||!Xi?Xi:Qi?Xi.base:Xi.fillId||Xi.base}},37512:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>x});var r=D(43458),d=D(72463),L=D(5042),j="discrete",{abs:o,floor:E,ceil:R,min:m}=Math;function _(g,C,F){g.min=g.min<C?g.min:C,g.max=g.max>F?g.max:F}function v(g,C){if("logarithmic"!==g)return null;var F=C.getOptions().logarithmBase;return Y=>{var Q=(0,r.XE)(o(Y),F);return(Q<0?E:R)(Q)}}function h(g,C,F){var Y=_;return g===j?Y=function(Q,se,ie){se!==ie&&Q.categories.push(ie),Q.categories.push(se)}:C&&(Y=function(Q,se){var ie=C.calculateInterval(se,Q.prevValue),ee=Q.interval;Q.interval=(ee<ie?ee:ie)||ee,Q.prevValue=se,_(Q,se,se)}),F?(Q,se,ie)=>{var ee=[];Y(Q,se,ie),0!==se&&ee.push(F(se)),0!==ie&&ee.push(F(ie));var re=m.apply(null,ee);Q.linearThreshold=Q.linearThreshold<re?Q.linearThreshold:re}:Y}function s(g,C,F){var Y={axisType:g,dataType:C};return g===j?Y.categories=[]:(Y.min=(0,d.Gv)(F)?F.min:F,Y.max=(0,d.Gv)(F)?F.max:F),Y}function b(g){return g.categories&&(g.categories=(0,r.Am)(g.categories)),g}function w(g,C,F,Y,Q){var se=function O(g,C,F,Y){if(C&&(0,d.O9)(C.value)){var Q=g.value,ie=g.argument,re=(F-ie)*(C.value-Q)/(C.argument-ie)+Q.valueOf();return"datetime"===Y.dataType?new Date(re):re}return g.value}(F,Y,Q,C);g(C,se,se)}function f(g){return g.type.toLowerCase().indexOf("line")>=0||g.type.toLowerCase().indexOf("area")>=0}function k(g){var C=h(g.valueAxisType),F=g.getArgumentAxis(),Y=F&&g.getArgumentAxis().visualRange()||{},Q=f(g)?w:L.lQ;if(F&&F.getMarginOptions().checkInterval){var se=g.getArgumentAxis().getTranslator().getBusinessRange(),ie=(0,r.CX)(se,!1),ee=se.interval;isFinite(ee)&&(0,d.O9)(Y.startValue)&&(0,d.O9)(Y.endValue)&&(Y.startValue=ie(Y.startValue,ee,-1),Y.endValue=ie(Y.endValue,ee))}var re=I(Y);return function(ne,_e,be,oe){var me=_e.argument;return _e.hasValue()&&(re(me)?(ne.startCalc||(ne.startCalc=!0,Q(C,ne,_e,oe[be-1],Y.startValue)),C(ne,_e.getMinValue(),_e.getMaxValue())):!Y.categories&&(0,d.O9)(Y.startValue)&&me>Y.startValue&&(ne.startCalc||Q(C,ne,_e,oe[be-1],Y.startValue),ne.endCalc=!0,Q(C,ne,_e,oe[be-1],Y.endValue))),ne}}function I(g){if(g.categories){var C=g.categories.reduce((F,Y)=>(F[Y.valueOf()]=!0,F),{});return F=>(0,d.O9)(F)&&C[F.valueOf()]}return(0,d.O9)(g.startValue)||(0,d.O9)(g.endValue)?(0,d.O9)(g.endValue)?(0,d.O9)(g.startValue)?F=>F>=g.startValue&&F<=g.endValue:F=>F<=g.endValue:F=>F>=g.startValue:()=>!0}const x={getViewPortFilter:I,getArgumentRange:function(g){var C=g._data||[],F={};if(C.length)if(g.argumentAxisType===j)F={categories:C.map(ie=>ie.argument)};else{var Y;if(C.length>1){var Q=g.getArgumentAxis().calculateInterval(C[0].argument,C[1].argument),se=g.getArgumentAxis().calculateInterval(C[C.length-1].argument,C[C.length-2].argument);Y=m(Q,se)}F={min:C[0].argument,max:C[C.length-1].argument,interval:Y}}return b(F)},getRangeData:function(g){var C=g.getPoints(),F=g.useAggregation(),Y=g.getArgumentAxis(),Q=h(g.argumentAxisType,C.length>1&&Y,v(g.argumentAxisType,Y)),se=h(g.valueAxisType,null,v(g.valueAxisType,g.getValueAxis())),ie=k(g),ee=C.reduce(function(_e,be,oe,me){var we=be.argument;return be.isArgumentCorrect()&&(Q(_e.arg,we,we),be.hasValue()&&(se(_e.val,be.getMinValue(),be.getMaxValue()),ie(_e.viewport,be,oe,me))),_e},{arg:s(g.argumentAxisType,g.argumentType,null!=Y&&Y.aggregatedPointBetweenTicks()?void 0:g.getArgumentRangeInitialValue()),val:s(g.valueAxisType,g.valueType,C.length?g.getValueRangeInitialValue():void 0),viewport:s(g.valueAxisType,g.valueType,C.length?g.getValueRangeInitialValue():void 0)});if(F){var re=this.getArgumentRange(g);if(g.argumentAxisType===j)ee.arg=re;else{var ne=Y.getViewport();((0,d.O9)(ne.startValue)||(0,d.O9)(ne.length))&&Q(ee.arg,re.min,re.min),((0,d.O9)(ne.endValue)||(0,d.O9)(ne.length)&&(0,d.O9)(ne.startValue))&&Q(ee.arg,re.max,re.max)}}return b(ee.arg),b(ee.val),ee},getViewport:function(g){var F,C=g.getPoints(),Y=k(g);return F=s(g.valueAxisType,g.valueType,C.length?g.getValueRangeInitialValue():void 0),C.some(function(Q,se){return Y(F,Q,se,C),F.endCalc}),F},getPointsInViewPort:function(g){var C=I(g.getArgumentAxis().visualRange()||{}),F=g.getValueAxis().visualRange()||{},Y=I(F),Q=g.getPoints(),se=function(ee,re,ne){var _e=re.getMinValue(),be=re.getMaxValue(),oe=Y(_e),me=Y(be);oe&&ee.push(_e),be!==_e&&me&&ee.push(be),ne&&!oe&&!me&&ee.push(ee.length?F.endValue:F.startValue)},ie=f(g)?function(ee,re,ne){var _e=re[ne],be=re[ne-1],oe=re[ne+1];oe&&C(oe.argument)&&se(ee[1],_e,!0),be&&C(be.argument)&&se(ee[1],_e,!0)}:L.lQ;return Q.reduce(function(ee,re,ne){return C(re.argument)?se(ee[0],re):ie(ee,Q,ne),ee},[[],[]])}}},76946:(ei,rt,D)=>{"use strict";D.d(rt,{Q:()=>f});var r=D(72463),d=D(87951),L=D(43458),j=r.O9,o=r.$P,E=r.Tn,R="min",m="max",_="minVisible",v="maxVisible",h="base",s="axisType";function b(I,x){return x<I}function O(I,x){return x>I}function w(I,x,g,C){var F=j(x);j(I)?F&&C(I,x)&&g(x):F&&g(x)}var f=function(I){I&&(0,d.X)(this,I)};f.prototype={constructor:f,addRange:function(I){var x=this,g=x.categories,C=I.categories,F="discrete"===x[s],Y=function(ie,ee){w(x[ie],I[ie],function(re){x[ie]=re},ee)},Q=function(ie,ee,re){w(x[ie],x[ee],function(ne){j(x[ie])&&(x[ie]=ne)},re)},se=function(ie){x[ie]=x[ie]||I[ie]};return se("invert"),se("containsConstantLine"),se(s),se("dataType"),se("isSpacedMargin"),"logarithmic"===x[s]?se(h):x[h]=void 0,Y(R,b),Y(m,O),F?(se(_),se(v)):(Y(_,b),Y(v,O)),Y("interval",b),F||(Q(R,_,b),Q(R,v,b),Q(m,v,O),Q(m,_,O)),x.categories=void 0===g?C:C?(0,L.Am)(g.concat(C)):g,"logarithmic"===x[s]&&(se("allowNegatives"),Y("linearThreshold",b)),x},isEmpty:function(){return!(j(this[R])&&j(this[m])||this.categories&&0!==this.categories.length)},correctValueZeroLevel:function(){var I=this;if(o(I[m])||o(I[R]))return I;function x(g,C){I[g]<0&&I[C]<0&&(I[C]=0),I[g]>0&&I[C]>0&&(I[g]=0)}return x(R,m),x(_,v),I},sortCategories(I){if(!1!==I&&this.categories)if(Array.isArray(I)){var x=I.map(F=>F.valueOf()),g=this.categories.filter(F=>-1===x.indexOf(F.valueOf()));this.categories=I.concat(g)}else{var C=!E(I);C&&"string"!==this.dataType?I=(F,Y)=>F.valueOf()-Y.valueOf():C&&(I=!1),I&&this.categories.sort(I)}}}},69490:(ei,rt,D)=>{"use strict";D.d(rt,{YN:()=>R,yf:()=>E,yg:()=>o});var r=D(58168),L=(D(91593),D(12101)),{floor:j}=Math,o=function(m,_,v,h,s){var g,b=~~((v<h?v:h)/2),O=s.width||0,w=O<b?O:b,f=(m+=w/2)+(v-=w),k=(_+=w/2)+(h-=w),I=[],x=[],C=0,F=0,Y={top:[[m,_],[f,_]],right:[[f,_],[f,k]],bottom:[[f,k],[m,k]],left:[[m,k],[m,_]]};switch((0,L.__)(Y,function(Q){C=2*C+~~!!s[Q]}),C){case 13:case 9:g=["left","top","right","bottom"];break;case 11:g=["bottom","left","top","right"];break;default:g=["top","right","bottom","left"]}return(0,L.__)(g,function(Q,se){var ie=!!s[se];!F&&x.length&&(I.push(x),x=[]),ie&&(0,L.__)(Y[se].slice(F),function(ee,re){x=x.concat(re)}),F=~~ie}),x.length&&I.push(x),1===I.length&&(I=I[0]),{points:I,pathType:15===C?"area":"line"}},E=function(m,_){var v=["width","height"].every(s=>Math.abs(m[s]-_[s])<1),h=["left","right","top","bottom"].every(s=>m[s]===_[s]);return!(v&&h)},R=function(m){return(0,r.A)({},m,{height:j(m.height),width:j(m.width)})}},92887:(ei,rt,D)=>{var r=D(29293).default,d=D(53344).default,L=D(42958).default,j=D(82881).default;ei.exports=function o(E,R,m){function _(s,b){if(!R[s]){if(!E[s]){if(v)return v(s,!0);var w=new Error("Cannot find module '"+s+"'");throw w.code="MODULE_NOT_FOUND",w}var f=R[s]={exports:{}};E[s][0].call(f.exports,function(k){return _(E[s][1][k]||k)},f,f.exports,o,E,R,m)}return R[s].exports}for(var v=void 0,h=0;h<m.length;h++)_(m[h]);return _}({1:[function(o,E,R){"use strict";const m=o("fs"),_=o("fast-csv"),v=o("dayjs/plugin/customParseFormat"),h=o("dayjs/plugin/utc"),s=o("dayjs").extend(v).extend(h),b=o("../utils/stream-buf"),{fs:{exists:O}}=o("../utils/utils"),w={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};E.exports=class{constructor(f){this.workbook=f,this.worksheet=null}readFile(f,k){var I=this;return r(function*(){if(k=k||{},!(yield O(f)))throw new Error("File not found: "+f);const x=m.createReadStream(f),g=yield I.read(x,k);return x.close(),g})()}read(f,k){return k=k||{},new Promise((I,x)=>{const g=this.workbook.addWorksheet(k.sheetName),C=k.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],F=k.map||function(Q){if(""===Q)return null;const se=Number(Q);if(!Number.isNaN(se)&&se!==1/0)return se;const ie=C.reduce((re,ne)=>{if(re)return re;const _e=s(Q,ne,!0);return _e.isValid()?_e:null},null);if(ie)return new Date(ie.valueOf());const ee=w[Q];return void 0!==ee?ee:Q},Y=_.parse(k.parserOptions).on("data",Q=>{g.addRow(Q.map(F))}).on("end",()=>{Y.emit("worksheet",g)});Y.on("worksheet",I).on("error",x),f.pipe(Y)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(f,k){return new Promise((I,x)=>{const g=this.workbook.getWorksheet((k=k||{}).sheetName||k.sheetId),C=_.format(k.formatterOptions);f.on("finish",()=>{I()}),C.on("error",x),C.pipe(f);const{dateFormat:F,dateUTC:Y}=k,Q=k.map||(ee=>{if(ee){if(ee.text||ee.hyperlink)return ee.hyperlink||ee.text||"";if(ee.formula||ee.result)return ee.result||"";if(ee instanceof Date)return F?Y?s.utc(ee).format(F):s(ee).format(F):Y?s.utc(ee).format():s(ee).format();if(ee.error)return ee.error;if("object"==typeof ee)return JSON.stringify(ee)}return ee}),se=void 0===k.includeEmptyRows||k.includeEmptyRows;let ie=1;g&&g.eachRow((ee,re)=>{if(se)for(;ie++<re-1;)C.write([]);const{values:ne}=ee;ne.shift(),C.write(ne.map(Q)),ie=re}),C.end()})}writeFile(f,k){const I={encoding:(k=k||{}).encoding||"utf8"},x=m.createWriteStream(f,I);return this.write(x,k)}writeBuffer(f){var k=this;return r(function*(){const I=new b;return yield k.write(I,f),I.read()})()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(o,E,R){"use strict";const m=o("../utils/col-cache");class _{constructor(h,s){let b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.worksheet=h,s)if("string"==typeof s){const O=m.decodeAddress(s);this.nativeCol=O.col+b,this.nativeColOff=0,this.nativeRow=O.row+b,this.nativeRowOff=0}else void 0!==s.nativeCol?(this.nativeCol=s.nativeCol||0,this.nativeColOff=s.nativeColOff||0,this.nativeRow=s.nativeRow||0,this.nativeRowOff=s.nativeRowOff||0):void 0!==s.col?(this.col=s.col+b,this.row=s.row+b):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(h){return h instanceof _||null==h?h:new _(h)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(h){this.nativeCol=Math.floor(h),this.nativeColOff=Math.floor((h-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(h){this.nativeRow=Math.floor(h),this.nativeRowOff=Math.floor((h-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(h){this.nativeCol=h.nativeCol,this.nativeColOff=h.nativeColOff,this.nativeRow=h.nativeRow,this.nativeRowOff=h.nativeRowOff}}E.exports=_},{"../utils/col-cache":19}],3:[function(o,E,R){"use strict";const m=o("../utils/col-cache"),_=o("../utils/under-dash"),v=o("./enums"),{slideFormula:h}=o("../utils/shared-formula"),s=o("./note");class b{constructor(f,k,I){if(!f||!k)throw new Error("A Cell needs a Row");this._row=f,this._column=k,m.validateAddress(I),this._address=I,this._value=O.create(b.Types.Null,this),this.style=this._mergeStyle(f.style,k.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(f){this.style.numFmt=f}get font(){return this.style.font}set font(f){this.style.font=f}get alignment(){return this.style.alignment}set alignment(f){this.style.alignment=f}get border(){return this.style.border}set border(f){this.style.border=f}get fill(){return this.style.fill}set fill(f){this.style.fill=f}get protection(){return this.style.protection}set protection(f){this.style.protection=f}_mergeStyle(f,k,I){const x=f&&f.numFmt||k&&k.numFmt;x&&(I.numFmt=x);const g=f&&f.font||k&&k.font;g&&(I.font=g);const C=f&&f.alignment||k&&k.alignment;C&&(I.alignment=C);const F=f&&f.border||k&&k.border;F&&(I.border=F);const Y=f&&f.fill||k&&k.fill;Y&&(I.fill=Y);const Q=f&&f.protection||k&&k.protection;return Q&&(I.protection=Q),I}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===b.Types.Merge}merge(f,k){this._value.release(),this._value=O.create(b.Types.Merge,this,f),k||(this.style=f.style)}unmerge(){this.type===b.Types.Merge&&(this._value.release(),this._value=O.create(b.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(f){return this._value.type===b.Types.Merge&&this._value.isMergedTo(f)}get master(){return this.type===b.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===b.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(f){this.type!==b.Types.Merge?(this._value.release(),this._value=O.create(O.getType(f),this,f)):this._value.master.value=f}get note(){return this._comment&&this._comment.note}set note(f){this._comment=new s(f)}get text(){return this._value.toString()}get html(){return _.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(f){this.type===b.Types.String&&(this._value=O.create(b.Types.Hyperlink,this,{text:this._value.value,hyperlink:f}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:f}=this._row;return{sheetName:f.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(f){this.names=[f]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(f){const{definedNames:k}=this.workbook;k.removeAllNames(this.fullAddress),f.forEach(I=>{k.addEx(this.fullAddress,I)})}addName(f){this.workbook.definedNames.addEx(this.fullAddress,f)}removeName(f){this.workbook.definedNames.removeEx(this.fullAddress,f)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(f){this._dataValidations.add(this.address,f)}get model(){const{model:f}=this._value;return f.style=this.style,this._comment&&(f.comment=this._comment.model),f}set model(f){this._value.release(),this._value=O.create(f.type,this),this._value.model=f,f.comment&&"note"===f.comment.type&&(this._comment=s.fromModel(f.comment)),this.style=f.style?f.style:{}}}b.Types=v.ValueType;const O={getType:w=>null==w?b.Types.Null:w instanceof String||"string"==typeof w?b.Types.String:"number"==typeof w?b.Types.Number:"boolean"==typeof w?b.Types.Boolean:w instanceof Date?b.Types.Date:w.text&&w.hyperlink?b.Types.Hyperlink:w.formula||w.sharedFormula?b.Types.Formula:w.richText?b.Types.RichText:w.sharedString?b.Types.SharedString:w.error?b.Types.Error:b.Types.JSON,types:[{t:b.Types.Null,f:class{constructor(w){this.model={address:w.address,type:b.Types.Null}}get value(){return null}set value(w){}get type(){return b.Types.Null}get effectiveType(){return b.Types.Null}get address(){return this.model.address}set address(w){this.model.address=w}toCsvString(){return""}release(){}toString(){return""}}},{t:b.Types.Number,f:class{constructor(w,f){this.model={address:w.address,type:b.Types.Number,value:f}}get value(){return this.model.value}set value(w){this.model.value=w}get type(){return b.Types.Number}get effectiveType(){return b.Types.Number}get address(){return this.model.address}set address(w){this.model.address=w}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:b.Types.String,f:class{constructor(w,f){this.model={address:w.address,type:b.Types.String,value:f}}get value(){return this.model.value}set value(w){this.model.value=w}get type(){return b.Types.String}get effectiveType(){return b.Types.String}get address(){return this.model.address}set address(w){this.model.address=w}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:b.Types.Date,f:class{constructor(w,f){this.model={address:w.address,type:b.Types.Date,value:f}}get value(){return this.model.value}set value(w){this.model.value=w}get type(){return b.Types.Date}get effectiveType(){return b.Types.Date}get address(){return this.model.address}set address(w){this.model.address=w}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:b.Types.Hyperlink,f:class{constructor(w,f){this.model={address:w.address,type:b.Types.Hyperlink,text:f?f.text:void 0,hyperlink:f?f.hyperlink:void 0},f&&f.tooltip&&(this.model.tooltip=f.tooltip)}get value(){const w={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(w.tooltip=this.model.tooltip),w}set value(w){this.model={text:w.text,hyperlink:w.hyperlink},w.tooltip&&(this.model.tooltip=w.tooltip)}get text(){return this.model.text}set text(w){this.model.text=w}get hyperlink(){return this.model.hyperlink}set hyperlink(w){this.model.hyperlink=w}get type(){return b.Types.Hyperlink}get effectiveType(){return b.Types.Hyperlink}get address(){return this.model.address}set address(w){this.model.address=w}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:b.Types.Formula,f:class{constructor(w,f){this.cell=w,this.model={address:w.address,type:b.Types.Formula,shareType:f?f.shareType:void 0,ref:f?f.ref:void 0,formula:f?f.formula:void 0,sharedFormula:f?f.sharedFormula:void 0,result:f?f.result:void 0}}_copyModel(w){const f={},k=I=>{const x=w[I];x&&(f[I]=x)};return k("formula"),k("result"),k("ref"),k("shareType"),k("sharedFormula"),f}get value(){return this._copyModel(this.model)}set value(w){this.model=this._copyModel(w)}validate(w){switch(O.getType(w)){case b.Types.Null:case b.Types.String:case b.Types.Number:case b.Types.Date:break;default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(w){this.model.formula=w}get formulaType(){return this.model.formula?v.FormulaType.Master:this.model.sharedFormula?v.FormulaType.Shared:v.FormulaType.None}get result(){return this.model.result}set result(w){this.model.result=w}get type(){return b.Types.Formula}get effectiveType(){const w=this.model.result;return null==w?v.ValueType.Null:w instanceof String||"string"==typeof w?v.ValueType.String:"number"==typeof w?v.ValueType.Number:w instanceof Date?v.ValueType.Date:w.text&&w.hyperlink?v.ValueType.Hyperlink:w.formula?v.ValueType.Formula:v.ValueType.Null}get address(){return this.model.address}set address(w){this.model.address=w}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:w}=this.cell,f=w.findCell(this.model.sharedFormula);this._translatedFormula=f&&h(f.formula,f.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:b.Types.Merge,f:class{constructor(w,f){this.model={address:w.address,type:b.Types.Merge,master:f?f.address:void 0},this._master=f,f&&f.addMergeRef()}get value(){return this._master.value}set value(w){w instanceof b?(this._master&&this._master.releaseMergeRef(),w.addMergeRef(),this._master=w):this._master.value=w}isMergedTo(w){return w===this._master}get master(){return this._master}get type(){return b.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(w){this.model.address=w}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:b.Types.JSON,f:class{constructor(w,f){this.model={address:w.address,type:b.Types.String,value:JSON.stringify(f),rawValue:f}}get value(){return this.model.rawValue}set value(w){this.model.rawValue=w,this.model.value=JSON.stringify(w)}get type(){return b.Types.String}get effectiveType(){return b.Types.String}get address(){return this.model.address}set address(w){this.model.address=w}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:b.Types.SharedString,f:class{constructor(w,f){this.model={address:w.address,type:b.Types.SharedString,value:f}}get value(){return this.model.value}set value(w){this.model.value=w}get type(){return b.Types.SharedString}get effectiveType(){return b.Types.SharedString}get address(){return this.model.address}set address(w){this.model.address=w}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:b.Types.RichText,f:class{constructor(w,f){this.model={address:w.address,type:b.Types.String,value:f}}get value(){return this.model.value}set value(w){this.model.value=w}toString(){return this.model.value.richText.map(w=>w.text).join("")}get type(){return b.Types.RichText}get effectiveType(){return b.Types.RichText}get address(){return this.model.address}set address(w){this.model.address=w}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:b.Types.Boolean,f:class{constructor(w,f){this.model={address:w.address,type:b.Types.Boolean,value:f}}get value(){return this.model.value}set value(w){this.model.value=w}get type(){return b.Types.Boolean}get effectiveType(){return b.Types.Boolean}get address(){return this.model.address}set address(w){this.model.address=w}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:b.Types.Error,f:class{constructor(w,f){this.model={address:w.address,type:b.Types.Error,value:f}}get value(){return this.model.value}set value(w){this.model.value=w}get type(){return b.Types.Error}get effectiveType(){return b.Types.Error}get address(){return this.model.address}set address(w){this.model.address=w}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((w,f)=>(w[f.t]=f.f,w),[]),create(w,f,k){const I=this.types[w];if(!I)throw new Error("Could not create Value of type "+w);return new I(f,k)}};E.exports=b},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(o,E,R){"use strict";const m=o("../utils/under-dash"),_=o("./enums"),v=o("../utils/col-cache");class h{constructor(b,O,w){this._worksheet=b,this._number=O,!1!==w&&(this.defn=w)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return v.n2l(this._number)}get isCustomWidth(){return void 0!==this.width&&9!==this.width}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(b){b?(this.key=b.key,this.width=void 0!==b.width?b.width:9,this.outlineLevel=b.outlineLevel,this.style=b.style?b.style:{},this.header=b.header,this._hidden=!!b.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(b){void 0!==b?(this._header=b,this.headers.forEach((O,w)=>{this._worksheet.getCell(w+1,this.number).value=O})):this._header=void 0}get key(){return this._key}set key(b){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=b,b&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(b){this._hidden=b}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(b){this._outlineLevel=b}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(b){return this.width===b.width&&this.hidden===b.hidden&&this.outlineLevel===b.outlineLevel&&m.isEqual(this.style,b.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const b=this.style;return!b||!(b.font||b.numFmt||b.alignment||b.border||b.fill||b.protection)}get headerCount(){return this.headers.length}eachCell(b,O){const w=this.number;O||(O=b,b=null),this._worksheet.eachRow(b,(f,k)=>{O(f.getCell(w),k)})}get values(){const b=[];return this.eachCell((O,w)=>{O&&O.type!==_.ValueType.Null&&(b[w]=O.value)}),b}set values(b){if(!b)return;const O=this.number;let w=0;b.hasOwnProperty("0")&&(w=1),b.forEach((f,k)=>{this._worksheet.getCell(k+w,O).value=f})}_applyStyle(b,O){return this.style[b]=O,this.eachCell(w=>{w[b]=O}),O}get numFmt(){return this.style.numFmt}set numFmt(b){this._applyStyle("numFmt",b)}get font(){return this.style.font}set font(b){this._applyStyle("font",b)}get alignment(){return this.style.alignment}set alignment(b){this._applyStyle("alignment",b)}get protection(){return this.style.protection}set protection(b){this._applyStyle("protection",b)}get border(){return this.style.border}set border(b){this._applyStyle("border",b)}get fill(){return this.style.fill}set fill(b){this._applyStyle("fill",b)}static toModel(b){const O=[];let w=null;return b&&b.forEach((f,k)=>{f.isDefault?w&&(w=null):w&&f.equivalentTo(w)?w.max=k+1:(w={min:k+1,max:k+1,width:void 0!==f.width?f.width:9,style:f.style,isCustomWidth:f.isCustomWidth,hidden:f.hidden,outlineLevel:f.outlineLevel,collapsed:f.collapsed},O.push(w))}),O.length?O:void 0}static fromModel(b,O){const w=[];let f=1,k=0;for(O=(O=O||[]).sort(function(I,x){return I.min-x.min});k<O.length;){const I=O[k++];for(;f<I.min;)w.push(new h(b,f++));for(;f<=I.max;)w.push(new h(b,f++,I))}return w.length?w:null}}E.exports=h},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(o,E,R){"use strict";E.exports=class{constructor(m){this.model=m||{}}add(m,_){return this.model[m]=_}find(m){return this.model[m]}remove(m){this.model[m]=void 0}}},{}],6:[function(o,E,R){"use strict";const m=o("../utils/under-dash"),_=o("../utils/col-cache"),v=o("../utils/cell-matrix"),h=o("./range"),s=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;E.exports=class{constructor(){this.matrixMap={}}getMatrix(b){return this.matrixMap[b]||(this.matrixMap[b]=new v)}add(b,O){const w=_.decodeEx(b);this.addEx(w,O)}addEx(b,O){const w=this.getMatrix(O);if(b.top)for(let f=b.left;f<=b.right;f++)for(let k=b.top;k<=b.bottom;k++){const I={sheetName:b.sheetName,address:_.n2l(f)+k,row:k,col:f};w.addCellEx(I)}else w.addCellEx(b)}remove(b,O){const w=_.decodeEx(b);this.removeEx(w,O)}removeEx(b,O){this.getMatrix(O).removeCellEx(b)}removeAllNames(b){m.each(this.matrixMap,O=>{O.removeCellEx(b)})}forEach(b){m.each(this.matrixMap,(O,w)=>{O.forEach(f=>{b(w,f)})})}getNames(b){return this.getNamesEx(_.decodeEx(b))}getNamesEx(b){return m.map(this.matrixMap,(O,w)=>O.findCellEx(b)&&w).filter(Boolean)}_explore(b,O){O.mark=!1;const{sheetName:w}=O,f=new h(O.row,O.col,O.row,O.col,w);let k,I;function x(C,F){const Y=b.findCellAt(w,C,O.col);return!(!Y||!Y.mark||(f[F]=C,Y.mark=!1,0))}for(I=O.row-1;x(I,"top");I--);for(I=O.row+1;x(I,"bottom");I++);function g(C,F){const Y=[];for(I=f.top;I<=f.bottom;I++){const Q=b.findCellAt(w,I,C);if(!Q||!Q.mark)return!1;Y.push(Q)}f[F]=C;for(let Q=0;Q<Y.length;Q++)Y[Q].mark=!1;return!0}for(k=O.col-1;g(k,"left");k--);for(k=O.col+1;g(k,"right");k++);return f}getRanges(b,O){return(O=O||this.matrixMap[b])?(O.forEach(w=>{w.mark=!0}),{name:b,ranges:O.map(w=>w.mark&&this._explore(O,w)).filter(Boolean).map(w=>w.$shortRange)}):{name:b,ranges:[]}}normaliseMatrix(b,O){b.forEachInSheet(O,(w,f,k)=>{w&&(w.row===f&&w.col===k||(w.row=f,w.col=k,w.address=_.n2l(k)+f))})}spliceRows(b,O,w,f){m.each(this.matrixMap,k=>{k.spliceRows(b,O,w,f),this.normaliseMatrix(k,b)})}spliceColumns(b,O,w,f){m.each(this.matrixMap,k=>{k.spliceColumns(b,O,w,f),this.normaliseMatrix(k,b)})}get model(){return m.map(this.matrixMap,(b,O)=>this.getRanges(O,b)).filter(b=>b.ranges.length)}set model(b){const O=this.matrixMap={};b.forEach(w=>{const f=O[w.name]=new v;w.ranges.forEach(k=>{s.test(k.split("!").pop()||"")&&f.addCell(k)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(o,E,R){"use strict";E.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(o,E,R){"use strict";const m=o("../utils/col-cache"),_=o("./anchor");E.exports=class{constructor(v,h){this.worksheet=v,this.model=h}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(v){let{type:h,imageId:s,range:b,hyperlinks:O}=v;if(this.type=h,this.imageId=s,"image"===h)if("string"==typeof b){const w=m.decode(b);this.range={tl:new _(this.worksheet,{col:w.left,row:w.top},-1),br:new _(this.worksheet,{col:w.right,row:w.bottom},0),editAs:"oneCell"}}else this.range={tl:new _(this.worksheet,b.tl,0),br:b.br&&new _(this.worksheet,b.br,0),ext:b.ext,editAs:b.editAs,hyperlinks:O||b.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(o,E,R){"use strict";const m=o("../utils/under-dash");class _{constructor(h){this.note=h}get model(){let h=null;return h="string"==typeof this.note?{type:"note",note:{texts:[{text:this.note}]}}:{type:"note",note:this.note},m.deepMerge({},_.DEFAULT_CONFIGS,h)}set model(h){const{note:s}=h,{texts:b}=s;this.note=1===b.length&&1===Object.keys(b[0]).length?b[0].text:s}static fromModel(h){const s=new _;return s.model=h,s}}_.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},E.exports=_},{"../utils/under-dash":26}],10:[function(o,E,R){"use strict";const m=o("../utils/col-cache");class _{constructor(){this.decode(arguments)}setTLBR(h,s,b,O,w){if(arguments.length<4){const f=m.decodeAddress(h),k=m.decodeAddress(s);this.model={top:Math.min(f.row,k.row),left:Math.min(f.col,k.col),bottom:Math.max(f.row,k.row),right:Math.max(f.col,k.col),sheetName:b},this.setTLBR(f.row,f.col,k.row,k.col,w)}else this.model={top:Math.min(h,b),left:Math.min(s,O),bottom:Math.max(h,b),right:Math.max(s,O),sheetName:w}}decode(h){switch(h.length){case 5:this.setTLBR(h[0],h[1],h[2],h[3],h[4]);break;case 4:this.setTLBR(h[0],h[1],h[2],h[3]);break;case 3:this.setTLBR(h[0],h[1],h[2]);break;case 2:this.setTLBR(h[0],h[1]);break;case 1:{const s=h[0];if(s instanceof _)this.model={top:s.model.top,left:s.model.left,bottom:s.model.bottom,right:s.model.right,sheetName:s.sheetName};else if(s instanceof Array)this.decode(s);else if(s.top&&s.left&&s.bottom&&s.right)this.model={top:s.top,left:s.left,bottom:s.bottom,right:s.right,sheetName:s.sheetName};else{const b=m.decodeEx(s);this.model=b.top?{top:b.top,left:b.left,bottom:b.bottom,right:b.right,sheetName:b.sheetName}:{top:b.row,left:b.col,bottom:b.row,right:b.col,sheetName:b.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+h.length)}}get top(){return this.model.top||1}set top(h){this.model.top=h}get left(){return this.model.left||1}set left(h){this.model.left=h}get bottom(){return this.model.bottom||1}set bottom(h){this.model.bottom=h}get right(){return this.model.right||1}set right(h){this.model.right=h}get sheetName(){return this.model.sheetName}set sheetName(h){this.model.sheetName=h}get _serialisedSheetName(){const{sheetName:h}=this.model;return h?/^[a-zA-Z0-9]*$/.test(h)?h+"!":`'${h}'!`:""}expand(h,s,b,O){(!this.model.top||h<this.top)&&(this.top=h),(!this.model.left||s<this.left)&&(this.left=s),(!this.model.bottom||b>this.bottom)&&(this.bottom=b),(!this.model.right||O>this.right)&&(this.right=O)}expandRow(h){if(h){const{dimensions:s,number:b}=h;s&&this.expand(b,s.min,b,s.max)}}expandToAddress(h){const s=m.decodeEx(h);this.expand(s.row,s.col,s.row,s.col)}get tl(){return m.n2l(this.left)+this.top}get $t$l(){return`$${m.n2l(this.left)}$${this.top}`}get br(){return m.n2l(this.right)+this.bottom}get $b$r(){return`$${m.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(h){return!(h.sheetName&&this.sheetName&&h.sheetName!==this.sheetName||h.bottom<this.top||h.top>this.bottom||h.right<this.left||h.left>this.right)}contains(h){const s=m.decodeEx(h);return this.containsEx(s)}containsEx(h){return(!h.sheetName||!this.sheetName||h.sheetName===this.sheetName)&&h.row>=this.top&&h.row<=this.bottom&&h.col>=this.left&&h.col<=this.right}forEachAddress(h){for(let s=this.left;s<=this.right;s++)for(let b=this.top;b<=this.bottom;b++)h(m.encodeAddress(b,s),b,s)}}E.exports=_},{"../utils/col-cache":19}],11:[function(o,E,R){"use strict";const m=o("../utils/under-dash"),_=o("./enums"),v=o("../utils/col-cache"),h=o("./cell");E.exports=class{constructor(s,b){this._worksheet=s,this._number=b,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(s){return this._cells[s-1]}getCellEx(s){let b=this._cells[s.col-1];if(!b){const O=this._worksheet.getColumn(s.col);b=new h(this,O,s.address),this._cells[s.col-1]=b}return b}getCell(s){if("string"==typeof s){const b=this._worksheet.getColumnKey(s);s=b?b.number:v.l2n(s)}return this._cells[s-1]||this.getCellEx({address:v.encodeAddress(this._number,s),row:this._number,col:s})}splice(s,b){const O=s+b;for(var w=arguments.length,f=new Array(w>2?w-2:0),k=2;k<w;k++)f[k-2]=arguments[k];const I=f.length-b,x=this._cells.length;let g,C,F;if(I<0)for(g=s+f.length;g<=x;g++)F=this._cells[g-1],C=this._cells[g-I-1],C?(F=this.getCell(g),F.value=C.value,F.style=C.style,F._comment=C._comment):F&&(F.value=null,F.style={},F._comment=void 0);else if(I>0)for(g=x;g>=O;g--)C=this._cells[g-1],C?(F=this.getCell(g+I),F.value=C.value,F.style=C.style,F._comment=C._comment):this._cells[g+I-1]=void 0;for(g=0;g<f.length;g++)F=this.getCell(s+g),F.value=f[g],F.style={},F._comment=void 0}eachCell(s,b){if(b||(b=s,s=null),s&&s.includeEmpty){const O=this._cells.length;for(let w=1;w<=O;w++)b(this.getCell(w),w)}else this._cells.forEach((O,w)=>{O&&O.type!==_.ValueType.Null&&b(O,w+1)})}addPageBreak(s,b){const O=this._worksheet,w=Math.max(0,s-1)||0,f=Math.max(0,b-1)||16838,k={id:this._number,max:f,man:1};w&&(k.min=w),O.rowBreaks.push(k)}get values(){const s=[];return this._cells.forEach(b=>{b&&b.type!==_.ValueType.Null&&(s[b.col]=b.value)}),s}set values(s){if(this._cells=[],s)if(s instanceof Array){let b=0;s.hasOwnProperty("0")&&(b=1),s.forEach((O,w)=>{void 0!==O&&(this.getCellEx({address:v.encodeAddress(this._number,w+b),row:this._number,col:w+b}).value=O)})}else this._worksheet.eachColumnKey((b,O)=>{void 0!==s[O]&&(this.getCellEx({address:v.encodeAddress(this._number,b.number),row:this._number,col:b.number}).value=s[O])})}get hasValues(){return m.some(this._cells,s=>s&&s.type!==_.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let s=0;return this.eachCell(()=>{s++}),s}get dimensions(){let s=0,b=0;return this._cells.forEach(O=>{O&&O.type!==_.ValueType.Null&&((!s||s>O.col)&&(s=O.col),b<O.col&&(b=O.col))}),s>0?{min:s,max:b}:null}_applyStyle(s,b){return this.style[s]=b,this._cells.forEach(O=>{O&&(O[s]=b)}),b}get numFmt(){return this.style.numFmt}set numFmt(s){this._applyStyle("numFmt",s)}get font(){return this.style.font}set font(s){this._applyStyle("font",s)}get alignment(){return this.style.alignment}set alignment(s){this._applyStyle("alignment",s)}get protection(){return this.style.protection}set protection(s){this._applyStyle("protection",s)}get border(){return this.style.border}set border(s){this._applyStyle("border",s)}get fill(){return this.style.fill}set fill(s){this._applyStyle("fill",s)}get hidden(){return!!this._hidden}set hidden(s){this._hidden=s}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(s){this._outlineLevel=s}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const s=[];let b=0,O=0;return this._cells.forEach(w=>{if(w){const f=w.model;f&&((!b||b>w.col)&&(b=w.col),O<w.col&&(O=w.col),s.push(f))}}),this.height||s.length?{cells:s,number:this.number,min:b,max:O,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(s){if(s.number!==this._number)throw new Error("Invalid row number in model");let b;this._cells=[],s.cells.forEach(O=>{switch(O.type){case h.Types.Merge:break;default:{let w;if(O.address)w=v.decodeAddress(O.address);else if(b){const{row:f}=b,k=b.col+1;w={row:f,col:k,address:v.encodeAddress(f,k),$col$row:`$${v.n2l(k)}$${f}`}}b=w,this.getCellEx(w).model=O;break}}}),s.height?this.height=s.height:delete this.height,this.hidden=s.hidden,this.outlineLevel=s.outlineLevel||0,this.style=s.style&&JSON.parse(JSON.stringify(s.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(o,E,R){"use strict";const m=o("../utils/col-cache");class _{constructor(h,s,b){this.table=h,this.column=s,this.index=b}_set(h,s){this.table.cacheState(),this.column[h]=s}get name(){return this.column.name}set name(h){this._set("name",h)}get filterButton(){return this.column.filterButton}set filterButton(h){this.column.filterButton=h}get style(){return this.column.style}set style(h){this.column.style=h}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(h){this._set("totalsRowLabel",h)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(h){this._set("totalsRowFunction",h)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(h){this._set("totalsRowResult",h)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(h){this._set("totalsRowFormula",h)}}E.exports=class{constructor(v,h){this.worksheet=v,h&&(this.table=h,this.validate(),this.store())}getFormula(v){switch(v.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${v.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${v.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${v.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${v.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${v.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${v.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${v.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${v.name}])`;case"custom":return v.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+v.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:v}=this,h=(I,x,g)=>{void 0===I[x]&&(I[x]=g)};h(v,"headerRow",!0),h(v,"totalsRow",!1),h(v,"style",{}),h(v.style,"theme","TableStyleMedium2"),h(v.style,"showFirstColumn",!1),h(v.style,"showLastColumn",!1),h(v.style,"showRowStripes",!1),h(v.style,"showColumnStripes",!1);const s=(I,x)=>{if(!I)throw new Error(x)};s(v.ref,"Table must have ref"),s(v.columns,"Table must have column definitions"),s(v.rows,"Table must have row definitions"),v.tl=m.decodeAddress(v.ref);const{row:b,col:O}=v.tl;s(b>0,"Table must be on valid row"),s(O>0,"Table must be on valid col");const{width:w,filterHeight:f,tableHeight:k}=this;v.autoFilterRef=m.encode(b,O,b+f-1,O+w-1),v.tableRef=m.encode(b,O,b+k-1,O+w-1),v.columns.forEach((I,x)=>{s(I.name,`Column ${x} must have a name`),0===x?h(I,"totalsRowLabel","Total"):(h(I,"totalsRowFunction","none"),I.totalsRowFormula=this.getFormula(I))})}store(){const v=(f,k)=>{k&&Object.keys(k).forEach(I=>{f[I]=k[I]})},{worksheet:h,table:s}=this,{row:b,col:O}=s.tl;let w=0;if(s.headerRow){const f=h.getRow(b+w++);s.columns.forEach((k,I)=>{const{style:x,name:g}=k,C=f.getCell(O+I);C.value=g,v(C,x)})}if(s.rows.forEach(f=>{const k=h.getRow(b+w++);f.forEach((I,x)=>{const g=k.getCell(O+x);g.value=I,v(g,s.columns[x].style)})}),s.totalsRow){const f=h.getRow(b+w++);s.columns.forEach((k,I)=>{const x=f.getCell(O+I);if(0===I)x.value=k.totalsRowLabel;else{const g=this.getFormula(k);x.value=g?{formula:k.totalsRowFormula,result:k.totalsRowResult}:null}v(x,k.style)})}}load(v){const{table:h}=this,{row:s,col:b}=h.tl;let O=0;if(h.headerRow){const w=v.getRow(s+O++);h.columns.forEach((f,k)=>{w.getCell(b+k).value=f.name})}if(h.rows.forEach(w=>{const f=v.getRow(s+O++);w.forEach((k,I)=>{f.getCell(b+I).value=k})}),h.totalsRow){const w=v.getRow(s+O++);h.columns.forEach((f,k)=>{const I=w.getCell(b+k);0===k?I.value=f.totalsRowLabel:this.getFormula(f)&&(I.value={formula:f.totalsRowFormula,result:f.totalsRowResult})})}}get model(){return this.table}set model(v){this.table=v}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const v=m.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let h=0;h<this._cache.tableHeight;h++){const s=this.worksheet.getRow(v.row+h);for(let b=0;b<this._cache.width;b++)s.getCell(v.col+b).value=null}else{for(let h=this.tableHeight;h<this._cache.tableHeight;h++){const s=this.worksheet.getRow(v.row+h);for(let b=0;b<this._cache.width;b++)s.getCell(v.col+b).value=null}for(let h=0;h<this.tableHeight;h++){const s=this.worksheet.getRow(v.row+h);for(let b=this.width;b<this._cache.width;b++)s.getCell(v.col+b).value=null}}this.store()}addRow(v,h){this.cacheState(),void 0===h?this.table.rows.push(v):this.table.rows.splice(h,0,v)}removeRows(v){let h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(v,h)}getColumn(v){return new _(this,this.table.columns[v],v)}addColumn(v,h,s){this.cacheState(),void 0===s?(this.table.columns.push(v),this.table.rows.forEach((b,O)=>{b.push(h[O])})):(this.table.columns.splice(s,0,v),this.table.rows.forEach((b,O)=>{b.splice(s,0,h[O])}))}removeColumns(v){let h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(v,h),this.table.rows.forEach(s=>{s.splice(v,h)})}_assign(v,h,s){this.cacheState(),v[h]=s}get ref(){return this.table.ref}set ref(v){this._assign(this.table,"ref",v)}get name(){return this.table.name}set name(v){this.table.name=v}get displayName(){return this.table.displyName||this.table.name}set displayNamename(v){this.table.displayName=v}get headerRow(){return this.table.headerRow}set headerRow(v){this._assign(this.table,"headerRow",v)}get totalsRow(){return this.table.totalsRow}set totalsRow(v){this._assign(this.table,"totalsRow",v)}get theme(){return this.table.style.name}set theme(v){this.table.style.name=v}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(v){this.table.style.showFirstColumn=v}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(v){this.table.style.showLastColumn=v}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(v){this.table.style.showRowStripes=v}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(v){this.table.style.showColumnStripes=v}}},{"../utils/col-cache":19}],13:[function(o,E,R){"use strict";const m=o("./worksheet"),_=o("./defined-names"),v=o("../xlsx/xlsx"),h=o("../csv/csv");E.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new _}get xlsx(){return this._xlsx||(this._xlsx=new v(this)),this._xlsx}get csv(){return this._csv||(this._csv=new h(this)),this._csv}get nextId(){for(let s=1;s<this._worksheets.length;s++)if(!this._worksheets[s])return s;return this._worksheets.length||1}addWorksheet(s,b){const O=this.nextId;b&&("string"==typeof b?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),b={properties:{tabColor:{argb:b}}}):(b.argb||b.theme||b.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),b={properties:{tabColor:b}}));const w=this._worksheets.reduce((I,x)=>(x&&x.orderNo)>I?x.orderNo:I,0),f=Object.assign({},b,{id:O,name:s,orderNo:w+1,workbook:this}),k=new m(f);return this._worksheets[O]=k,k}removeWorksheetEx(s){delete this._worksheets[s.id]}removeWorksheet(s){const b=this.getWorksheet(s);b&&b.destroy()}getWorksheet(s){return void 0===s?this._worksheets.find(Boolean):"number"==typeof s?this._worksheets[s]:"string"==typeof s?this._worksheets.find(b=>b&&b.name===s):void 0}get worksheets(){return this._worksheets.slice(1).sort((s,b)=>s.orderNo-b.orderNo).filter(Boolean)}eachSheet(s){this.worksheets.forEach(b=>{s(b,b.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(s){const b=this.media.length;return this.media.push(Object.assign({},s,{type:"image"})),b}getImage(s){return this.media[s]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(s=>s.model),sheets:this.worksheets.map(s=>s.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(s){this.creator=s.creator,this.lastModifiedBy=s.lastModifiedBy,this.lastPrinted=s.lastPrinted,this.created=s.created,this.modified=s.modified,this.company=s.company,this.manager=s.manager,this.title=s.title,this.subject=s.subject,this.keywords=s.keywords,this.category=s.category,this.description=s.description,this.language=s.language,this.revision=s.revision,this.contentStatus=s.contentStatus,this.properties=s.properties,this.calcProperties=s.calcProperties,this._worksheets=[],s.worksheets.forEach(b=>{const{id:O,name:w,state:f}=b,k=s.sheets&&s.sheets.findIndex(I=>I.id===O);(this._worksheets[O]=new m({id:O,name:w,orderNo:k,state:f,workbook:this})).model=b}),this._definedNames.model=s.definedNames,this.views=s.views,this._themes=s.themes,this.media=s.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(o,E,R){"use strict";const m=o("../utils/under-dash"),_=o("../utils/col-cache"),v=o("./range"),h=o("./row"),s=o("./column"),b=o("./enums"),O=o("./image"),w=o("./table"),f=o("./data-validations"),k=o("../utils/encryptor"),{copyStyle:I}=o("../utils/copy-style");E.exports=class{constructor(x){this._workbook=(x=x||{}).workbook,this.id=x.id,this.orderNo=x.orderNo,this.name=x.name,this.state=x.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},x.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!x.pageSetup||!x.pageSetup.fitToWidth&&!x.pageSetup.fitToHeight||x.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},x.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},x.headerFooter),this.dataValidations=new f,this.views=x.views||[],this.autoFilter=x.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(x){if(void 0===x&&(x="sheet"+this.id),this._name!==x){if("string"!=typeof x)throw new Error("The name has to be a string.");if(""===x)throw new Error("The name can't be empty.");if("History"===x)throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(x))throw new Error(`Worksheet name ${x} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(x))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+x);if(x&&x.length>31&&(console.warn(`Worksheet name ${x} exceeds 31 chars. This will be truncated`),x=x.substring(0,31)),this._workbook._worksheets.find(g=>g&&g.name.toLowerCase()===x.toLowerCase()))throw new Error("Worksheet name already exists: "+x);this._name=x}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const x=new v;return this._rows.forEach(g=>{if(g){const C=g.dimensions;C&&x.expand(g.number,C.min,g.number,C.max)}}),x}get columns(){return this._columns}set columns(x){this._headerRowCount=x.reduce((F,Y)=>Math.max(F,(Y.header?1:Y.headers&&Y.headers.length)||0),0);let g=1;const C=this._columns=[];x.forEach(F=>{const Y=new s(this,g++,!1);C.push(Y),Y.defn=F})}getColumnKey(x){return this._keys[x]}setColumnKey(x,g){this._keys[x]=g}deleteColumnKey(x){delete this._keys[x]}eachColumnKey(x){m.each(this._keys,x)}getColumn(x){if("string"==typeof x){const g=this._keys[x];if(g)return g;x=_.l2n(x)}if(this._columns||(this._columns=[]),x>this._columns.length){let g=this._columns.length+1;for(;g<=x;)this._columns.push(new s(this,g++))}return this._columns[x-1]}spliceColumns(x,g){const C=this._rows.length;for(var F=arguments.length,Y=new Array(F>2?F-2:0),Q=2;Q<F;Q++)Y[Q-2]=arguments[Q];if(Y.length>0)for(let re=0;re<C;re++){const ne=[x,g];Y.forEach(be=>{ne.push(be[re]||null)});const _e=this.getRow(re+1);_e.splice.apply(_e,ne)}else this._rows.forEach(re=>{re&&re.splice(x,g)});const se=Y.length-g,ie=x+g,ee=this._columns.length;if(se<0)for(let re=x+Y.length;re<=ee;re++)this.getColumn(re).defn=this.getColumn(re-se).defn;else if(se>0)for(let re=ee;re>=ie;re--)this.getColumn(re+se).defn=this.getColumn(re).defn;for(let re=x;re<x+Y.length;re++)this.getColumn(re).defn=null;this.workbook.definedNames.spliceColumns(this.name,x,g,Y.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let x=0;return this.eachRow(g=>{x=Math.max(x,g.cellCount)}),x}get actualColumnCount(){const x=[];let g=0;return this.eachRow(C=>{C.eachCell(F=>{let{col:Y}=F;x[Y]||(x[Y]=!0,g++)})}),g}_commitRow(){}get _lastRowNumber(){const x=this._rows;let g=x.length;for(;g>0&&void 0===x[g-1];)g--;return g}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(x){return this._rows[x-1]}findRows(x,g){return this._rows.slice(x-1,x-1+g)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let x=0;return this.eachRow(()=>{x++}),x}getRow(x){let g=this._rows[x-1];return g||(g=this._rows[x-1]=new h(this,x)),g}getRows(x,g){if(g<1)return;const C=[];for(let F=x;F<x+g;F++)C.push(this.getRow(F));return C}addRow(x){let g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const C=this._nextRow,F=this.getRow(C);return F.values=x,this._setStyleOption(C,"i"===g[0]?g:"n"),F}addRows(x){let g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const C=[];return x.forEach(F=>{C.push(this.addRow(F,g))}),C}insertRow(x,g){let C=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(x,0,g),this._setStyleOption(x,C),this.getRow(x)}insertRows(x,g){let C=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows(x,0,...g),"n"!==C)for(let F=0;F<g.length;F++)"o"===C[0]&&void 0!==this.findRow(g.length+x+F)?this._copyStyle(g.length+x+F,x+F,"+"===C[1]):"i"===C[0]&&void 0!==this.findRow(x-1)&&this._copyStyle(x-1,x+F,"+"===C[1]);return this.getRows(x,g.length)}_setStyleOption(x){let g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";"o"===g[0]&&void 0!==this.findRow(x+1)?this._copyStyle(x+1,x,"+"===g[1]):"i"===g[0]&&void 0!==this.findRow(x-1)&&this._copyStyle(x-1,x,"+"===g[1])}_copyStyle(x,g){let C=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const F=this.getRow(x),Y=this.getRow(g);Y.style=I(F.style),F.eachCell({includeEmpty:C},(Q,se)=>{Y.getCell(se).style=I(Q.style)}),Y.height=F.height}duplicateRow(x,g){let C=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const F=this._rows[x-1],Y=new Array(g).fill(F.values);this.spliceRows(x+1,C?0:g,...Y);for(let Q=0;Q<g;Q++){const se=this._rows[x+Q];se.style=F.style,se.height=F.height,F.eachCell({includeEmpty:!0},(ie,ee)=>{se.getCell(ee).style=ie.style})}}spliceRows(x,g){const C=x+g;for(var F=arguments.length,Y=new Array(F>2?F-2:0),Q=2;Q<F;Q++)Y[Q-2]=arguments[Q];const se=Y.length,ie=se-g,ee=this._rows.length;let re,ne;if(ie<0)for(x===ee&&(this._rows[ee-1]=void 0),re=C;re<=ee;re++)if(ne=this._rows[re-1],ne){const _e=this.getRow(re+ie);_e.values=ne.values,_e.style=ne.style,_e.height=ne.height,ne.eachCell({includeEmpty:!0},(be,oe)=>{_e.getCell(oe).style=be.style}),this._rows[re-1]=void 0}else this._rows[re+ie-1]=void 0;else if(ie>0)for(re=ee;re>=C;re--)if(ne=this._rows[re-1],ne){const _e=this.getRow(re+ie);_e.values=ne.values,_e.style=ne.style,_e.height=ne.height,ne.eachCell({includeEmpty:!0},(be,oe)=>{if(_e.getCell(oe).style=be.style,"MergeValue"===be._value.constructor.name){const me=this.getRow(be._row._number+se).getCell(oe),we=be._value._master,N=this.getRow(we._row._number+se).getCell(we._column._number);me.merge(N)}})}else this._rows[re+ie-1]=void 0;for(re=0;re<se;re++){const _e=this.getRow(x+re);_e.style={},_e.values=Y[re]}this.workbook.definedNames.spliceRows(this.name,x,g,se)}eachRow(x,g){if(g||(g=x,x=void 0),x&&x.includeEmpty){const C=this._rows.length;for(let F=1;F<=C;F++)g(this.getRow(F),F)}else this._rows.forEach(C=>{C&&C.hasValues&&g(C,C.number)})}getSheetValues(){const x=[];return this._rows.forEach(g=>{g&&(x[g.number]=g.values)}),x}findCell(x,g){const C=_.getAddress(x,g),F=this._rows[C.row-1];return F?F.findCell(C.col):void 0}getCell(x,g){const C=_.getAddress(x,g);return this.getRow(C.row).getCellEx(C)}mergeCells(){for(var x=arguments.length,g=new Array(x),C=0;C<x;C++)g[C]=arguments[C];const F=new v(g);this._mergeCellsInternal(F)}mergeCellsWithoutStyle(){for(var x=arguments.length,g=new Array(x),C=0;C<x;C++)g[C]=arguments[C];const F=new v(g);this._mergeCellsInternal(F,!0)}_mergeCellsInternal(x,g){m.each(this._merges,F=>{if(F.intersects(x))throw new Error("Cannot merge already merged cells")});const C=this.getCell(x.top,x.left);for(let F=x.top;F<=x.bottom;F++)for(let Y=x.left;Y<=x.right;Y++)(F>x.top||Y>x.left)&&this.getCell(F,Y).merge(C,g);this._merges[C.address]=x}_unMergeMaster(x){const g=this._merges[x.address];if(g){for(let C=g.top;C<=g.bottom;C++)for(let F=g.left;F<=g.right;F++)this.getCell(C,F).unmerge();delete this._merges[x.address]}}get hasMerges(){return m.some(this._merges,Boolean)}unMergeCells(){for(var x=arguments.length,g=new Array(x),C=0;C<x;C++)g[C]=arguments[C];const F=new v(g);for(let Y=F.top;Y<=F.bottom;Y++)for(let Q=F.left;Q<=F.right;Q++){const se=this.findCell(Y,Q);se&&(se.type===b.ValueType.Merge?this._unMergeMaster(se.master):this._merges[se.address]&&this._unMergeMaster(se))}}fillFormula(x,g,C){let F=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"shared";const Y=_.decode(x),{top:Q,left:se,bottom:ie,right:ee}=Y,re=ee-se+1,ne=_.encodeAddress(Q,se),_e="shared"===F;let be;be="function"==typeof C?C:Array.isArray(C)?Array.isArray(C[0])?(me,we)=>C[me-Q][we-se]:(me,we)=>C[(me-Q)*re+(we-se)]:()=>{};let oe=!0;for(let me=Q;me<=ie;me++)for(let we=se;we<=ee;we++)oe?(this.getCell(me,we).value={shareType:F,formula:g,ref:x,result:be(me,we)},oe=!1):this.getCell(me,we).value=_e?{sharedFormula:ne,result:be(me,we)}:be(me,we)}addImage(x,g){this._media.push(new O(this,{type:"image",imageId:x,range:g}))}getImages(){return this._media.filter(x=>"image"===x.type)}addBackgroundImage(x){this._media.push(new O(this,{type:"background",imageId:x}))}getBackgroundImageId(){const x=this._media.find(g=>"background"===g.type);return x&&x.imageId}protect(x,g){return new Promise(C=>{this.sheetProtection={sheet:!0},g&&"spinCount"in g&&(g.spinCount=Number.isFinite(g.spinCount)?Math.round(Math.max(0,g.spinCount)):1e5),x&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=k.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=g&&"spinCount"in g?g.spinCount:1e5,this.sheetProtection.hashValue=k.convertPasswordToHash(x,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),g&&(this.sheetProtection=Object.assign(this.sheetProtection,g),!x&&"spinCount"in g&&delete this.sheetProtection.spinCount),C()})}unprotect(){this.sheetProtection=null}addTable(x){const g=new w(this,x);return this.tables[x.name]=g,g}getTable(x){return this.tables[x]}removeTable(x){delete this.tables[x]}getTables(){return Object.values(this.tables)}addConditionalFormatting(x){this.conditionalFormattings.push(x)}removeConditionalFormatting(x){"number"==typeof x?this.conditionalFormattings.splice(x,1):this.conditionalFormattings=x instanceof Function?this.conditionalFormattings.filter(x):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(x){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=x}get model(){const x={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(F=>F.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(F=>F.model),conditionalFormattings:this.conditionalFormattings};x.cols=s.toModel(this.columns);const g=x.rows=[],C=x.dimensions=new v;return this._rows.forEach(F=>{const Y=F&&F.model;Y&&(C.expand(Y.number,Y.min,Y.number,Y.max),g.push(Y))}),x.merges=[],m.each(this._merges,F=>{x.merges.push(F.range)}),x}_parseRows(x){this._rows=[],x.rows.forEach(g=>{const C=new h(this,g.number);this._rows[C.number-1]=C,C.model=g})}_parseMergeCells(x){m.each(x.mergeCells,g=>{this.mergeCellsWithoutStyle(g)})}set model(x){this.name=x.name,this._columns=s.fromModel(this,x.cols),this._parseRows(x),this._parseMergeCells(x),this.dataValidations=new f(x.dataValidations),this.properties=x.properties,this.pageSetup=x.pageSetup,this.headerFooter=x.headerFooter,this.views=x.views,this.autoFilter=x.autoFilter,this._media=x.media.map(g=>new O(this,g)),this.sheetProtection=x.sheetProtection,this.tables=x.tables.reduce((g,C)=>{const F=new w;return F.model=C,g[C.name]=F,g},{}),this.conditionalFormattings=x.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(o,E,R){"use strict";o("core-js/modules/es.promise"),o("core-js/modules/es.promise.finally"),o("core-js/modules/es.object.assign"),o("core-js/modules/es.object.keys"),o("core-js/modules/es.object.values"),o("core-js/modules/es.symbol"),o("core-js/modules/es.symbol.async-iterator"),o("core-js/modules/es.array.iterator"),o("core-js/modules/es.array.includes"),o("core-js/modules/es.array.find-index"),o("core-js/modules/es.array.find"),o("core-js/modules/es.string.from-code-point"),o("core-js/modules/es.string.includes"),o("core-js/modules/es.number.is-nan"),o("regenerator-runtime/runtime");const m={Workbook:o("./doc/workbook")},_=o("./doc/enums");Object.keys(_).forEach(v=>{m[v]=_[v]}),E.exports=m},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(o,E,R){"use strict";const m=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");R.bufferToString=function(_){return"string"==typeof _?_:m?m.decode(_):_.toString()}},{}],17:[function(o,E,R){"use strict";const m=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:_}=o("buffer");R.stringToBuffer=function(v){return"string"!=typeof v?v:_.from(m?m.encode(v).buffer:v)}},{buffer:220}],18:[function(o,E,R){"use strict";const m=o("./under-dash"),_=o("./col-cache");E.exports=class{constructor(v){this.template=v,this.sheets={}}addCell(v){this.addCellEx(_.decodeEx(v))}getCell(v){return this.findCellEx(_.decodeEx(v),!0)}findCell(v){return this.findCellEx(_.decodeEx(v),!1)}findCellAt(v,h,s){const b=this.sheets[v],O=b&&b[h];return O&&O[s]}addCellEx(v){if(v.top)for(let h=v.top;h<=v.bottom;h++)for(let s=v.left;s<=v.right;s++)this.getCellAt(v.sheetName,h,s);else this.findCellEx(v,!0)}getCellEx(v){return this.findCellEx(v,!0)}findCellEx(v,h){const s=this.findSheet(v,h),b=this.findSheetRow(s,v,h);return this.findRowCell(b,v,h)}getCellAt(v,h,s){const b=this.sheets[v]||(this.sheets[v]=[]),O=b[h]||(b[h]=[]);return O[s]||(O[s]={sheetName:v,address:_.n2l(s)+h,row:h,col:s})}removeCellEx(v){const h=this.findSheet(v);if(!h)return;const s=this.findSheetRow(h,v);s&&delete s[v.col]}forEachInSheet(v,h){const s=this.sheets[v];s&&s.forEach((b,O)=>{b&&b.forEach((w,f)=>{w&&h(w,O,f)})})}forEach(v){m.each(this.sheets,(h,s)=>{this.forEachInSheet(s,v)})}map(v){const h=[];return this.forEach(s=>{h.push(v(s))}),h}findSheet(v,h){const s=v.sheetName;return this.sheets[s]?this.sheets[s]:h?this.sheets[s]=[]:void 0}findSheetRow(v,h,s){const{row:b}=h;return v&&v[b]?v[b]:s?v[b]=[]:void 0}findRowCell(v,h,s){const{col:b}=h;return v&&v[b]?v[b]:s?v[b]=this.template?Object.assign(h,JSON.parse(JSON.stringify(this.template))):h:void 0}spliceRows(v,h,s,b){const O=this.sheets[v];if(O){const w=[];for(let f=0;f<b;f++)w.push([]);O.splice(h,s,...w)}}spliceColumns(v,h,s,b){const O=this.sheets[v];if(O){const w=[];for(let f=0;f<b;f++)w.push(null);m.each(O,f=>{f.splice(h,s,...w)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(o,E,R){"use strict";const m=/^[A-Z]+\d+$/,_={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:v=>v<=26?1:v<=676?2:3,_fill(v){let h,s,b,O,w,f=1;if(v>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&v>=1){for(;f<=26;)h=this._dictionary[f-1],this._n2l[f]=h,this._l2n[h]=f,f++;this._l2nFill=1}if(this._l2nFill<2&&v>=2){for(f=27;f<=702;)s=f-27,b=s%26,O=Math.floor(s/26),h=this._dictionary[O]+this._dictionary[b],this._n2l[f]=h,this._l2n[h]=f,f++;this._l2nFill=2}if(this._l2nFill<3&&v>=3){for(f=703;f<=16384;)s=f-703,b=s%26,O=Math.floor(s/26)%26,w=Math.floor(s/676),h=this._dictionary[w]+this._dictionary[O]+this._dictionary[b],this._n2l[f]=h,this._l2n[h]=f,f++;this._l2nFill=3}},l2n(v){if(this._l2n[v]||this._fill(v.length),!this._l2n[v])throw new Error("Out of bounds. Invalid column letter: "+v);return this._l2n[v]},n2l(v){if(v<1||v>16384)throw new Error(v+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[v]||this._fill(this._level(v)),this._n2l[v]},_hash:{},validateAddress(v){if(!m.test(v))throw new Error("Invalid Address: "+v);return!0},decodeAddress(v){const h=v.length<5&&this._hash[v];if(h)return h;let s=!1,b="",O=0,w=!1,f="",k=0;for(let x,g=0;g<v.length;g++)if(x=v.charCodeAt(g),!w&&x>=65&&x<=90)s=!0,b+=v[g],O=26*O+x-64;else if(x>=48&&x<=57)w=!0,f+=v[g],k=10*k+x-48;else if(w&&s&&36!==x)break;if(s){if(O>16384)throw new Error("Out of bounds. Invalid column letter: "+b)}else O=void 0;w||(k=void 0);const I={address:v=b+f,col:O,row:k,$col$row:`$${b}$${f}`};return O<=100&&k<=100&&(this._hash[v]=I,this._hash[I.$col$row]=I),I},getAddress(v,h){if(h){const s=this.n2l(h)+v;return this.decodeAddress(s)}return this.decodeAddress(v)},decode(v){const h=v.split(":");if(2===h.length){const s=this.decodeAddress(h[0]),b=this.decodeAddress(h[1]),O={top:Math.min(s.row,b.row),left:Math.min(s.col,b.col),bottom:Math.max(s.row,b.row),right:Math.max(s.col,b.col)};return O.tl=this.n2l(O.left)+O.top,O.br=this.n2l(O.right)+O.bottom,O.dimensions=`${O.tl}:${O.br}`,O}return this.decodeAddress(v)},decodeEx(v){const h=v.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),s=h[1]||h[2],b=h[3],O=b.split(":");if(O.length>1){let f=this.decodeAddress(O[0]),k=this.decodeAddress(O[1]);const I=Math.min(f.row,k.row),x=Math.min(f.col,k.col),g=Math.max(f.row,k.row),C=Math.max(f.col,k.col);return f=this.n2l(x)+I,k=this.n2l(C)+g,{top:I,left:x,bottom:g,right:C,sheetName:s,tl:{address:f,col:x,row:I,$col$row:`$${this.n2l(x)}$${I}`,sheetName:s},br:{address:k,col:C,row:g,$col$row:`$${this.n2l(C)}$${g}`,sheetName:s},dimensions:`${f}:${k}`}}if(b.startsWith("#"))return s?{sheetName:s,error:b}:{error:b};const w=this.decodeAddress(b);return s?{sheetName:s,...w}:w},encodeAddress:(v,h)=>_.n2l(h)+v,encode(){switch(arguments.length){case 2:return _.encodeAddress(arguments[0],arguments[1]);case 4:return`${_.encodeAddress(arguments[0],arguments[1])}:${_.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(v,h){const[s,b,,O,w]=v,[f,k]=h;return f>=s&&f<=O&&k>=b&&k<=w}};E.exports=_},{}],20:[function(o,E,R){"use strict";const m=(v,h)=>({...v,...h.reduce((s,b)=>(v[b]&&(s[b]={...v[b]}),s),{})}),_=function(v,h,s){v[s]&&(h[s]=m(v[s],arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]))};R.copyStyle=v=>{if(!v)return v;if(0===Object.keys(v).length)return{};const s={...v};return _(v,s,"font",["color"]),_(v,s,"alignment"),_(v,s,"protection"),v.border&&(_(v,s,"border"),_(v.border,s.border,"top",["color"]),_(v.border,s.border,"left",["color"]),_(v.border,s.border,"bottom",["color"]),_(v.border,s.border,"right",["color"]),_(v.border,s.border,"diagonal",["color"])),v.fill&&(_(v,s,"fill",["fgColor","bgColor","center"]),v.fill.stops&&(s.fill.stops=v.fill.stops.map(b=>m(b,["color"])))),s}},{}],21:[function(o,E,R){(function(m){(function(){"use strict";const _=o("crypto"),v={hash(h){const s=_.createHash(h);for(var b=arguments.length,O=new Array(b>1?b-1:0),w=1;w<b;w++)O[w-1]=arguments[w];return s.update(m.concat(O)),s.digest()},convertPasswordToHash(h,s,b,O){if(s=s.toLowerCase(),_.getHashes().indexOf(s)<0)throw new Error(`Hash algorithm '${s}' not supported!`);const w=m.from(h,"utf16le");let f=this.hash(s,m.from(b,"base64"),w);for(let k=0;k<O;k++){const I=m.alloc(4);I.writeUInt32LE(k,0),f=this.hash(s,f,I)}return f.toString("base64")},randomBytes:h=>_.randomBytes(h)};E.exports=v}).call(this)}).call(this,o("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(o,E,R){"use strict";const{SaxesParser:m}=o("saxes"),{PassThrough:_}=o("readable-stream"),{bufferToString:v}=o("./browser-buffer-decode");E.exports=function(){var h=L(function*(s){s.pipe&&!s[Symbol.asyncIterator]&&(s=s.pipe(new _));const b=new m;let O;b.on("error",C=>{O=C});let w=[];b.on("opentag",C=>w.push({eventType:"opentag",value:C})),b.on("text",C=>w.push({eventType:"text",value:C})),b.on("closetag",C=>w.push({eventType:"closetag",value:C}));var I,f=!1,k=!1;try{for(var g,x=j(s);f=!(g=yield d(x.next())).done;f=!1){if(b.write(v(g.value)),O)throw O;yield w,w=[]}}catch(C){k=!0,I=C}finally{try{f&&null!=x.return&&(yield d(x.return()))}finally{if(k)throw I}}});return function(s){return h.apply(this,arguments)}}()},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(o,E,R){"use strict";const m=o("./col-cache"),_=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,v=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;E.exports={slideFormula:function(h,s,b){const O=m.decode(s),w=m.decode(b);return h.replace(_,(f,k,I,x,g)=>{if(g)return f;const C=v.exec(x);if(C){const F=C[1],Y=C[2].toUpperCase(),Q=C[3],se=C[4];if(Y.length>3||3===Y.length&&Y>"XFD")return f;let ie=m.l2n(Y),ee=parseInt(se,10);return F||(ie+=w.col-O.col),Q||(ee+=w.row-O.row),(k||"")+(F||"")+m.n2l(ie)+(Q||"")+ee}return f})}}},{"./col-cache":19}],24:[function(o,E,R){(function(m,_){(function(){"use strict";const v=o("readable-stream"),h=o("./utils"),s=o("./string-buf");class b{constructor(x,g){this._data=x,this._encoding=g}get length(){return this.toBuffer().length}copy(x,g,C,F){return this.toBuffer().copy(x,g,C,F)}toBuffer(){return this._buffer||(this._buffer=_.from(this._data,this._encoding)),this._buffer}}class O{constructor(x){this._data=x}get length(){return this._data.length}copy(x,g,C,F){return this._data._buf.copy(x,g,C,F)}toBuffer(){return this._data.toBuffer()}}class w{constructor(x){this._data=x}get length(){return this._data.length}copy(x,g,C,F){this._data.copy(x,g,C,F)}toBuffer(){return this._data}}class f{constructor(x){this.size=x,this.buffer=_.alloc(x),this.iRead=0,this.iWrite=0}toBuffer(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;const x=_.alloc(this.iWrite-this.iRead);return this.buffer.copy(x,0,this.iRead,this.iWrite),x}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(x){let g;return 0===x?null:void 0===x||x>=this.length?(g=this.toBuffer(),this.iRead=this.iWrite,g):(g=_.alloc(x),this.buffer.copy(g,0,this.iRead,x),this.iRead+=x,g)}write(x,g,C){const F=Math.min(C,this.size-this.iWrite);return x.copy(this.buffer,this.iWrite,g,g+F),this.iWrite+=F,F}}const k=function(I){this.bufSize=(I=I||{}).bufSize||1048576,this.buffers=[],this.batch=I.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};h.inherits(k,v.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return _.concat(this.buffers.map(I=>I.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const x=this.buffers[this.buffers.length-1];if(!x.full)return x}const I=new f(this.bufSize);return this.buffers.push(I),I},_pipe(I){var x=this;return r(function*(){yield Promise.all(x.pipes.map(function(g){return new Promise(C=>{g.write(I.toBuffer(),()=>{C()})})}))})()},_writeToBuffers(I){let x=0;const g=I.length;for(;x<g;)x+=this._getWritableBuffer().write(I,x,g-x)},write(I,x,g){var C=this;return r(function*(){let F;if(x instanceof Function&&(g=x,x="utf8"),g=g||h.nop,I instanceof s)F=new O(I);else if(I instanceof _)F=new w(I);else{if(!("string"==typeof I||I instanceof String||I instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");F=new b(I,x)}if(C.pipes.length)if(C.batch)for(C._writeToBuffers(F);!C.corked&&C.buffers.length>1;)C._pipe(C.buffers.shift());else C.corked?(C._writeToBuffers(F),m.nextTick(g)):(yield C._pipe(F),g());else C.paused||C.emit("data",F.toBuffer()),C._writeToBuffers(F),C.emit("readable");return!0})()},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(I,x,g){const C=F=>{F?g(F):(this._flush(),this.pipes.forEach(Y=>{Y.end()}),this.emit("finish"))};I?this.write(I,x,C):C()},read(I){let x;if(I){for(x=[];I&&this.buffers.length&&!this.buffers[0].eod;){const g=this.buffers[0],C=g.read(I);I-=C.length,x.push(C),g.eod&&g.full&&this.buffers.shift()}return _.concat(x)}return x=this.buffers.map(g=>g.toBuffer()).filter(Boolean),this.buffers=[],_.concat(x)},setEncoding(I){this.encoding=I},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(I){this.pipes.push(I),!this.paused&&this.buffers.length&&this.end()},unpipe(I){this.pipes=this.pipes.filter(x=>x!==I)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),E.exports=k}).call(this)}).call(this,o("_process"),o("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(o,E,R){(function(m){(function(){"use strict";E.exports=class{constructor(_){this._buf=m.alloc(_&&_.size||16384),this._encoding=_&&_.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=m.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(_){_=_||0,this._buffer=void 0,this._inPos=_}_grow(_){let v=2*this._buf.length;for(;v<_;)v*=2;const h=m.alloc(v);this._buf.copy(h,0),this._buf=h}addText(_){this._buffer=void 0;let v=this._inPos+this._buf.write(_,this._inPos,this._encoding);for(;v>=this._buf.length-4;)this._grow(this._inPos+_.length),v=this._inPos+this._buf.write(_,this._inPos,this._encoding);this._inPos=v}addStringBuf(_){_.length&&(this._buffer=void 0,this.length+_.length>this.capacity&&this._grow(this.length+_.length),_._buf.copy(this._buf,this._inPos,0,_.length),this._inPos+=_.length)}}}).call(this)}).call(this,o("buffer").Buffer)},{buffer:220}],26:[function(o,E,R){"use strict";const{toString:m}=Object.prototype,_=/["&<>]/,v={each:function(h,s){h&&(Array.isArray(h)?h.forEach(s):Object.keys(h).forEach(b=>{s(h[b],b)}))},some:function(h,s){return!!h&&(Array.isArray(h)?h.some(s):Object.keys(h).some(b=>s(h[b],b)))},every:function(h,s){return!h||(Array.isArray(h)?h.every(s):Object.keys(h).every(b=>s(h[b],b)))},map:function(h,s){return h?Array.isArray(h)?h.map(s):Object.keys(h).map(b=>s(h[b],b)):[]},keyBy:(h,s)=>h.reduce((b,O)=>(b[O[s]]=O,b),{}),isEqual:function(h,s){const b=typeof h,O=typeof s,w=Array.isArray(h),f=Array.isArray(s);let k;if(b!==O)return!1;if("object"==typeof h){if(w||f)return!(!w||!f)&&h.length===s.length&&h.every((I,x)=>v.isEqual(I,s[x]));if(null===h||null===s)return h===s;if(k=Object.keys(h),Object.keys(s).length!==k.length)return!1;for(const I of k)if(!s.hasOwnProperty(I))return!1;return v.every(h,(I,x)=>v.isEqual(I,s[x]))}return h===s},escapeHtml(h){const s=_.exec(h);if(!s)return h;let b="",O="",w=0,f=s.index;for(;f<h.length;f++){switch(h.charAt(f)){case'"':O=""";break;case"&":O="&";break;case"'":O="'";break;case"<":O="<";break;case">":O=">";break;default:continue}w!==f&&(b+=h.substring(w,f)),w=f+1,b+=O}return w!==f?b+h.substring(w,f):b},strcmp:(h,s)=>h<s?-1:h>s?1:0,isUndefined:h=>"[object Undefined]"===m.call(h),isObject:h=>"[object Object]"===m.call(h),deepMerge(){const h=arguments[0]||{},{length:s}=arguments;let b,O,w;function f(k,I){b=h[I],w=Array.isArray(k),v.isObject(k)||w?(w?(w=!1,O=b&&Array.isArray(b)?b:[]):O=b&&v.isObject(b)?b:{},h[I]=v.deepMerge(O,k)):v.isUndefined(k)||(h[I]=k)}for(let k=0;k<s;k++)v.each(arguments[k],f);return h}};E.exports=v},{}],27:[function(o,E,R){(function(m,_){(function(){"use strict";const v=o("fs"),h=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,s={nop(){},promiseImmediate:b=>new Promise(O=>{m.setImmediate?_(()=>{O(b)}):setTimeout(()=>{O(b)},1)}),inherits:function(b,O,w,f){b.super_=O,f||(f=w,w=null),w&&Object.keys(w).forEach(I=>{Object.defineProperty(b,I,Object.getOwnPropertyDescriptor(w,I))});const k={constructor:{value:b,enumerable:!1,writable:!1,configurable:!0}};f&&Object.keys(f).forEach(I=>{k[I]=Object.getOwnPropertyDescriptor(f,I)}),b.prototype=Object.create(O.prototype,k)},dateToExcel:(b,O)=>25569+b.getTime()/864e5-(O?1462:0),excelToDate(b,O){const w=Math.round(24*(b-25569+(O?1462:0))*3600*1e3);return new Date(w)},parsePath(b){const O=b.lastIndexOf("/");return{path:b.substring(0,O),name:b.substring(O+1)}},getRelsPath(b){const O=s.parsePath(b);return`${O.path}/_rels/${O.name}.rels`},xmlEncode(b){const O=h.exec(b);if(!O)return b;let w="",f="",k=0,I=O.index;for(;I<b.length;I++){const x=b.charCodeAt(I);switch(x){case 34:f=""";break;case 38:f="&";break;case 39:f="'";break;case 60:f="<";break;case 62:f=">";break;case 127:f="";break;default:if(x<=31&&(x<=8||x>=11&&13!==x)){f="";break}continue}k!==I&&(w+=b.substring(k,I)),k=I+1,f&&(w+=f)}return k!==I?w+b.substring(k,I):w},xmlDecode:b=>b.replace(/&([a-z]*);/g,O=>{switch(O){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return O}}),validInt(b){const O=parseInt(b,10);return Number.isNaN(O)?0:O},isDateFmt:b=>!!b&&null!==(b=(b=b.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/),fs:{exists:b=>new Promise(O=>{v.access(b,v.constants.F_OK,w=>{O(!w)})})},toIsoDateString:b=>b.toIsoString().subsstr(0,10),parseBoolean:b=>!0===b||"true"===b||1===b||"1"===b};E.exports=s}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},o("timers").setImmediate)},{fs:216,timers:523}],28:[function(o,E,R){"use strict";const m=o("./under-dash"),_=o("./utils");function v(b,O,w){b.push(` ${O}="${_.xmlEncode(w.toString())}"`)}function h(b,O){if(O){const w=[];m.each(O,(f,k)=>{void 0!==f&&v(w,k,f)}),b.push(w.join(""))}}class s{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(O){const w=this._xml;w.push("<?xml"),h(w,O),w.push("?>\n")}openNode(O,w){const k=this._xml;this.tos&&this.open&&k.push(">"),this._stack.push(O),k.push("<"),k.push(O),h(k,w),this.leaf=!0,this.open=!0}addAttribute(O,w){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==w&&v(this._xml,O,w)}addAttributes(O){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");h(this._xml,O)}writeText(O){const w=this._xml;this.open&&(w.push(">"),this.open=!1),this.leaf=!1,w.push(_.xmlEncode(O.toString()))}writeXml(O){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(O)}closeNode(){const O=this._stack.pop(),w=this._xml;this.leaf?w.push("/>"):(w.push("</"),w.push(O),w.push(">")),this.open=!1,this.leaf=!1}leafNode(O,w,f){this.openNode(O,w),void 0!==f&&this.writeText(f),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const O=this._rollbacks.pop();this._xml.length>O.xml&&this._xml.splice(O.xml,this._xml.length-O.xml),this._stack.length>O.stack&&this._stack.splice(O.stack,this._stack.length-O.stack),this.leaf=O.leaf,this.open=O.open}get xml(){return this.closeAll(),this._xml.join("")}}s.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},E.exports=s},{"./under-dash":26,"./utils":27}],29:[function(o,E,R){(function(m){(function(){"use strict";const _=o("events"),v=o("jszip"),h=o("./stream-buf"),{stringToBuffer:s}=o("./browser-buffer-encode");E.exports={ZipWriter:class b extends _.EventEmitter{constructor(w){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},w),this.zip=new v,this.stream=new h}append(w,f){f.hasOwnProperty("base64")&&f.base64?this.zip.file(f.name,w,{base64:!0}):(m.browser&&"string"==typeof w&&(w=s(w)),this.zip.file(f.name,w))}finalize(){var w=this;return r(function*(){const f=yield w.zip.generateAsync(w.options);w.stream.end(f),w.emit("finish")})()}read(w){return this.stream.read(w)}setEncoding(w){return this.stream.setEncoding(w)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(w,f){return this.stream.pipe(w,f)}unpipe(w){return this.stream.unpipe(w)}unshift(w){return this.stream.unshift(w)}wrap(w){return this.stream.wrap(w)}}}}).call(this)}).call(this,o("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(o,E,R){"use strict";E.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},28:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"ja-jp":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":'yyyy"\ub144" mm"\uc6d4" dd"\uc77c"'},32:{"zh-tw":'hh"\u6642"mm"\u5206"',"zh-cn":'h"\u65f6"mm"\u5206"',"ja-jp":'h"\u6642"mm"\u5206"',"ko-kr":'h"\uc2dc" mm"\ubd84"'},33:{"zh-tw":'hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'h"\u6642"mm"\u5206"ss"\u79d2"',"ko-kr":'h"\uc2dc" mm"\ubd84" ss"\ucd08"'},34:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},51:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},52:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},55:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},58:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(o,E,R){"use strict";E.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(o,E,R){"use strict";const m=o("../../utils/parse-sax"),_=o("../../utils/xml-stream");class v{prepare(){}render(){}parseOpen(s){}parseText(s){}parseClose(s){}reconcile(s,b){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(s=>{s instanceof v?s.reset():s.xform&&s.xform.reset()})}mergeModel(s){this.model=Object.assign(this.model||{},s)}parse(s){var b=this;return r(function*(){var f,O=!1,w=!1;try{for(var I,k=j(s);O=!(I=yield k.next()).done;O=!1){const x=I.value;for(const{eventType:g,value:C}of x)if("opentag"===g)b.parseOpen(C);else if("text"===g)b.parseText(C);else if("closetag"===g&&!b.parseClose(C.name))return b.model}}catch(x){w=!0,f=x}finally{try{O&&null!=k.return&&(yield k.return())}finally{if(w)throw f}}return b.model})()}parseStream(s){var b=this;return r(function*(){return b.parse(m(s))})()}get xml(){return this.toXml(this.model)}toXml(s){const b=new _;return this.render(b,s),b.xml}static toAttribute(s,b){let O=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===s){if(O)return b}else if(O||s!==b)return s.toString()}static toStringAttribute(s,b){return v.toAttribute(s,b,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}static toStringValue(s,b){return void 0===s?b:s}static toBoolAttribute(s,b){let O=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===s){if(O)return b}else if(O||s!==b)return s?"1":"0"}static toBoolValue(s,b){return void 0===s?b:"1"===s}static toIntAttribute(s,b){return v.toAttribute(s,b,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}static toIntValue(s,b){return void 0===s?b:parseInt(s,10)}static toFloatAttribute(s,b){return v.toAttribute(s,b,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}static toFloatValue(s,b){return void 0===s?b:parseFloat(s)}}E.exports=v},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("../../../utils/col-cache");function v(s){try{return _.decodeEx(s),!0}catch{return!1}}function h(s){const b=[];let O=!1,w="";return s.split(",").forEach(f=>{if(!f)return;const k=(f.match(/'/g)||[]).length;if(!k)return void(O?w+=f+",":v(f)&&b.push(f));const I=k%2==0;!O&&I&&v(f)?b.push(f):O&&!I?(O=!1,v(w+f)&&b.push(w+f),w=""):(O=!0,w+=f+",")}),b}E.exports=class extends m{render(s,b){s.openNode("definedName",{name:b.name,localSheetId:b.localSheetId}),s.writeText(b.ranges.join(",")),s.closeNode()}parseOpen(s){return"definedName"===s.name&&(this._parsedName=s.attributes.name,this._parsedLocalSheetId=s.attributes.localSheetId,this._parsedText=[],!0)}parseText(s){this._parsedText.push(s)}parseClose(){return this.model={name:this._parsedName,ranges:h(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(o,E,R){"use strict";const m=o("../../../utils/utils"),_=o("../base-xform");E.exports=class extends _{render(v,h){v.leafNode("sheet",{sheetId:h.id,name:h.name,state:h.state,"r:id":h.rId})}parseOpen(v){return"sheet"===v.name&&(this.model={name:m.xmlDecode(v.attributes.name),id:parseInt(v.attributes.sheetId,10),state:v.attributes.state,rId:v.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{render(_,v){_.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:v.fullCalcOnLoad?1:void 0})}parseOpen(_){return"calcPr"===_.name&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{render(_,v){_.leafNode("workbookPr",{date1904:v.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(_){return"workbookPr"===_.name&&(this.model={date1904:"1"===_.attributes.date1904},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{render(_,v){const h={xWindow:v.x||0,yWindow:v.y||0,windowWidth:v.width||12e3,windowHeight:v.height||24e3,firstSheet:v.firstSheet,activeTab:v.activeTab};v.visibility&&"visible"!==v.visibility&&(h.visibility=v.visibility),_.leafNode("workbookView",h)}parseOpen(_){if("workbookView"===_.name){const v=this.model={},h=function(b,O,w){const f=void 0!==O?v[b]=O:w;void 0!==f&&(v[b]=f)},s=function(b,O,w){const f=void 0!==O?v[b]=parseInt(O,10):w;void 0!==f&&(v[b]=f)};return s("x",_.attributes.xWindow,0),s("y",_.attributes.yWindow,0),s("width",_.attributes.windowWidth,25e3),s("height",_.attributes.windowHeight,1e4),h("visibility",_.attributes.visibility,"visible"),s("activeTab",_.attributes.activeTab,void 0),s("firstSheet",_.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(o,E,R){"use strict";const m=o("../../../utils/under-dash"),_=o("../../../utils/col-cache"),v=o("../../../utils/xml-stream"),h=o("../base-xform"),s=o("../static-xform"),b=o("../list-xform"),O=o("./defined-name-xform"),w=o("./sheet-xform"),f=o("./workbook-view-xform"),k=o("./workbook-properties-xform"),I=o("./workbook-calc-properties-xform");class x extends h{constructor(){super(),this.map={fileVersion:x.STATIC_XFORMS.fileVersion,workbookPr:new k,bookViews:new b({tag:"bookViews",count:!1,childXform:new f}),sheets:new b({tag:"sheets",count:!1,childXform:new w}),definedNames:new b({tag:"definedNames",count:!1,childXform:new O}),calcPr:new I}}prepare(C){C.sheets=C.worksheets;const F=[];let Y=0;C.sheets.forEach(Q=>{if(Q.pageSetup&&Q.pageSetup.printArea&&Q.pageSetup.printArea.split("&&").forEach(se=>{const ie=se.split(":");F.push({name:"_xlnm.Print_Area",ranges:[`'${Q.name}'!$${ie[0]}:$${ie[1]}`],localSheetId:Y})}),Q.pageSetup&&(Q.pageSetup.printTitlesRow||Q.pageSetup.printTitlesColumn)){const se=[];if(Q.pageSetup.printTitlesColumn){const ee=Q.pageSetup.printTitlesColumn.split(":");se.push(`'${Q.name}'!$${ee[0]}:$${ee[1]}`)}if(Q.pageSetup.printTitlesRow){const ee=Q.pageSetup.printTitlesRow.split(":");se.push(`'${Q.name}'!$${ee[0]}:$${ee[1]}`)}F.push({name:"_xlnm.Print_Titles",ranges:se,localSheetId:Y})}Y++}),F.length&&(C.definedNames=C.definedNames.concat(F)),(C.media||[]).forEach((Q,se)=>{Q.name=Q.type+(se+1)})}render(C,F){C.openXml(v.StdDocAttributes),C.openNode("workbook",x.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(C),this.map.workbookPr.render(C,F.properties),this.map.bookViews.render(C,F.views),this.map.sheets.render(C,F.sheets),this.map.definedNames.render(C,F.definedNames),this.map.calcPr.render(C,F.calcProperties),C.closeNode()}parseOpen(C){return this.parser?(this.parser.parseOpen(C),!0):("workbook"===C.name||(this.parser=this.map[C.name],this.parser&&this.parser.parseOpen(C)),!0)}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){return this.parser?(this.parser.parseClose(C)||(this.parser=void 0),!0):"workbook"!==C||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}reconcile(C){const F=(C.workbookRels||[]).reduce((ee,re)=>(ee[re.Id]=re,ee),{}),Y=[];let Q,se=0;(C.sheets||[]).forEach(ee=>{const re=F[ee.rId];re&&(Q=C.worksheetHash["xl/"+re.Target.replace(/^(\s|\/xl\/)+/,"")],Q&&(Q.name=ee.name,Q.id=ee.id,Q.state=ee.state,Y[se++]=Q))});const ie=[];m.each(C.definedNames,ee=>{if("_xlnm.Print_Area"===ee.name){if(Q=Y[ee.localSheetId],Q){Q.pageSetup||(Q.pageSetup={});const re=_.decodeEx(ee.ranges[0]);Q.pageSetup.printArea=Q.pageSetup.printArea?`${Q.pageSetup.printArea}&&${re.dimensions}`:re.dimensions}}else if("_xlnm.Print_Titles"===ee.name){if(Q=Y[ee.localSheetId],Q){Q.pageSetup||(Q.pageSetup={});const re=ee.ranges.join(","),ne=/\$/g,be=re.match(/\$\d+:\$\d+/);be&&be.length&&(Q.pageSetup.printTitlesRow=be[0].replace(ne,""));const me=re.match(/\$[A-Z]+:\$[A-Z]+/);me&&me.length&&(Q.pageSetup.printTitlesColumn=me[0].replace(ne,""))}}else ie.push(ee)}),C.definedNames=ie,C.media.forEach((ee,re)=>{ee.index=re})}}x.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},x.STATIC_XFORMS={fileVersion:new s({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},E.exports=x},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(o,E,R){"use strict";const m=o("../strings/rich-text-xform"),_=o("../../../utils/utils"),v=o("../base-xform"),h=E.exports=function(s){this.model=s};_.inherits(h,v,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new m),this._richTextXform},render(s,b){s.openNode("comment",{ref:(b=b||this.model).ref,authorId:0}),s.openNode("text"),b&&b.note&&b.note.texts&&b.note.texts.forEach(O=>{this.richTextXform.render(s,O)}),s.closeNode(),s.closeNode()},parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"comment":return this.model={type:"note",note:{texts:[]},...s.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(s),!0;default:return!1}},parseText(s){this.parser&&this.parser.parseText(s)},parseClose(s){switch(s){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(s),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(o,E,R){"use strict";const m=o("../../../utils/xml-stream"),_=o("../../../utils/utils"),v=o("../base-xform"),h=o("./comment-xform"),s=E.exports=function(){this.map={comment:new h}};_.inherits(s,v,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(b,O){O=O||this.model,b.openXml(m.StdDocAttributes),b.openNode("comments",s.COMMENTS_ATTRIBUTES),b.openNode("authors"),b.leafNode("author",null,"Author"),b.closeNode(),b.openNode("commentList"),O.comments.forEach(w=>{this.map.comment.render(b,w)}),b.closeNode(),b.closeNode()},parseOpen(b){if(this.parser)return this.parser.parseOpen(b),!0;switch(b.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(b),!0;default:return!1}},parseText(b){this.parser&&this.parser.parseText(b)},parseClose(b){switch(b){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(b),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(o,E,R){"use strict";const m=o("../../base-xform");E.exports=class extends m{constructor(_){super(),this._model=_}get tag(){return this._model&&this._model.tag}render(_,v,h){(v===h[2]||"x:SizeWithCells"===this.tag&&v===h[1])&&_.leafNode(this.tag)}parseOpen(_){return _.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(o,E,R){"use strict";const m=o("../../base-xform");E.exports=class extends m{constructor(_){super(),this._model=_}get tag(){return this._model&&this._model.tag}render(_,v){_.leafNode(this.tag,null,v)}parseOpen(_){return _.name===this.tag&&(this.text="",!0)}parseText(_){this.text=_}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"x:Anchor"}getAnchorRect(_){const v=Math.floor(_.left),h=Math.floor(68*(_.left-v)),s=Math.floor(_.top),b=Math.floor(18*(_.top-s)),O=Math.floor(_.right),w=Math.floor(68*(_.right-O)),f=Math.floor(_.bottom);return[v,h,s,b,O,w,f,Math.floor(18*(_.bottom-f))]}getDefaultRect(_){const v=_.col,h=Math.max(_.row-2,0);return[v,6,h,14,v+2,2,h+4,16]}render(_,v){const h=v.anchor?this.getAnchorRect(v.anchor):this.getDefaultRect(v.refAddress);_.leafNode("x:Anchor",null,h.join(", "))}parseOpen(_){return _.name===this.tag&&(this.text="",!0)}parseText(_){this.text=_}parseClose(){return!1}}},{"../base-xform":32}],44:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("./vml-anchor-xform"),v=o("./style/vml-protection-xform"),h=o("./style/vml-position-xform"),s=["twoCells","oneCells","absolute"];E.exports=class extends m{constructor(){super(),this.map={"x:Anchor":new _,"x:Locked":new v({tag:"x:Locked"}),"x:LockText":new v({tag:"x:LockText"}),"x:SizeWithCells":new h({tag:"x:SizeWithCells"}),"x:MoveWithCells":new h({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(b,O){const{protection:w,editAs:f}=O.note;b.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(b,f,s),this.map["x:SizeWithCells"].render(b,f,s),this.map["x:Anchor"].render(b,O),this.map["x:Locked"].render(b,w.locked),b.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(b,w.lockText),b.leafNode("x:Row",null,O.refAddress.row-1),b.leafNode("x:Column",null,O.refAddress.col-1),b.closeNode()}parseOpen(b){return b.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b)),!0}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):b!==this.tag||(this.normalizeModel(),!1)}normalizeModel(){const b=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),O=Object.keys(b).length;this.model.editAs=s[O],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(o,E,R){"use strict";const m=o("../../../utils/xml-stream"),_=o("../base-xform"),v=o("./vml-shape-xform");class h extends _{constructor(){super(),this.map={"v:shape":new v}}get tag(){return"xml"}render(b,O){b.openXml(m.StdDocAttributes),b.openNode(this.tag,h.DRAWING_ATTRIBUTES),b.openNode("o:shapelayout",{"v:ext":"edit"}),b.leafNode("o:idmap",{"v:ext":"edit",data:1}),b.closeNode(),b.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),b.leafNode("v:stroke",{joinstyle:"miter"}),b.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),b.closeNode(),O.comments.forEach((w,f)=>{this.map["v:shape"].render(b,w,f)}),b.closeNode()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):(b.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b)),!0)}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return this.parser?(this.parser.parseClose(b)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):b!==this.tag}reconcile(b,O){b.anchors.forEach(w=>{w.br?this.map["xdr:twoCellAnchor"].reconcile(w,O):this.map["xdr:oneCellAnchor"].reconcile(w,O)})}}h.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},E.exports=h},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("./vml-textbox-xform"),v=o("./vml-client-data-xform");class h extends m{constructor(){super(),this.map={"v:textbox":new _,"x:ClientData":new v}}get tag(){return"v:shape"}render(b,O,w){b.openNode("v:shape",h.V_SHAPE_ATTRIBUTES(O,w)),b.leafNode("v:fill",{color2:"infoBackground [80]"}),b.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),b.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(b,O),this.map["x:ClientData"].render(b,O),b.closeNode()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):(b.name===this.tag?(this.reset(),this.model={margins:{insetmode:b.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b)),!0)}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):b!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}h.V_SHAPE_ATTRIBUTES=(s,b)=>({id:"_x0000_s"+(1025+b),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":s.note.margins&&s.note.margins.insetmode}),E.exports=h},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"v:textbox"}conversionUnit(_,v,h){return`${parseFloat(_)*v.toFixed(2)}${h}`}reverseConversionUnit(_){return(_||"").split(",").map(v=>Number(parseFloat(this.conversionUnit(parseFloat(v),.1,"")).toFixed(2)))}render(_,v){const h={style:"mso-direction-alt:auto"};if(v&&v.note){let{inset:s}=v.note&&v.note.margins;Array.isArray(s)&&(s=s.map(b=>this.conversionUnit(b,10,"mm")).join(",")),s&&(h.inset=s)}_.openNode("v:textbox",h),_.leafNode("div",{style:"text-align:left"}),_.closeNode()}parseOpen(_){return _.name!==this.tag||(this.model={inset:this.reverseConversionUnit(_.attributes.inset)},!0)}parseText(){}parseClose(_){return _!==this.tag}}},{"../base-xform":32}],48:[function(o,E,R){"use strict";const m=o("./base-xform");E.exports=class extends m{createNewModel(_){return{}}parseOpen(_){return this.parser=this.parser||this.map[_.name],this.parser?(this.parser.parseOpen(_),!0):_.name===this.tag&&(this.model=this.createNewModel(_),!0)}parseText(_){this.parser&&this.parser.parseText(_)}onParserClose(_,v){this.model[_]=v.model}parseClose(_){return this.parser?(this.parser.parseClose(_)||(this.onParserClose(_,this.parser),this.parser=void 0),!0):_!==this.tag}}},{"./base-xform":32}],49:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{render(_,v){_.openNode("HeadingPairs"),_.openNode("vt:vector",{size:2,baseType:"variant"}),_.openNode("vt:variant"),_.leafNode("vt:lpstr",void 0,"Worksheets"),_.closeNode(),_.openNode("vt:variant"),_.leafNode("vt:i4",void 0,v.length),_.closeNode(),_.closeNode(),_.closeNode()}parseOpen(_){return"HeadingPairs"===_.name}parseText(){}parseClose(_){return"HeadingPairs"!==_}}},{"../base-xform":32}],50:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{render(_,v){_.openNode("TitlesOfParts"),_.openNode("vt:vector",{size:v.length,baseType:"lpstr"}),v.forEach(h=>{_.leafNode("vt:lpstr",void 0,h.name)}),_.closeNode(),_.closeNode()}parseOpen(_){return"TitlesOfParts"===_.name}parseText(){}parseClose(_){return"TitlesOfParts"!==_}}},{"../base-xform":32}],51:[function(o,E,R){"use strict";const m=o("../../../utils/xml-stream"),_=o("../base-xform"),v=o("../simple/string-xform"),h=o("./app-heading-pairs-xform"),s=o("./app-titles-of-parts-xform");class b extends _{constructor(){super(),this.map={Company:new v({tag:"Company"}),Manager:new v({tag:"Manager"}),HeadingPairs:new h,TitleOfParts:new s}}render(w,f){w.openXml(m.StdDocAttributes),w.openNode("Properties",b.PROPERTY_ATTRIBUTES),w.leafNode("Application",void 0,"Microsoft Excel"),w.leafNode("DocSecurity",void 0,"0"),w.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(w,f.worksheets),this.map.TitleOfParts.render(w,f.worksheets),this.map.Company.render(w,f.company||""),this.map.Manager.render(w,f.manager),w.leafNode("LinksUpToDate",void 0,"false"),w.leafNode("SharedDoc",void 0,"false"),w.leafNode("HyperlinksChanged",void 0,"false"),w.leafNode("AppVersion",void 0,"16.0300"),w.closeNode()}parseOpen(w){return this.parser?(this.parser.parseOpen(w),!0):"Properties"===w.name||(this.parser=this.map[w.name],!!this.parser&&(this.parser.parseOpen(w),!0))}parseText(w){this.parser&&this.parser.parseText(w)}parseClose(w){return this.parser?(this.parser.parseClose(w)||(this.parser=void 0),!0):"Properties"!==w||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}b.DateFormat=function(O){return O.toISOString().replace(/[.]\d{3,6}/,"")},b.DateAttrs={"xsi:type":"dcterms:W3CDTF"},b.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},E.exports=b},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(o,E,R){"use strict";const m=o("../../../utils/xml-stream"),_=o("../base-xform");class v extends _{render(s,b){s.openXml(m.StdDocAttributes),s.openNode("Types",v.PROPERTY_ATTRIBUTES);const O={};(b.media||[]).forEach(w=>{if("image"===w.type){const f=w.extension;O[f]||(O[f]=!0,s.leafNode("Default",{Extension:f,ContentType:"image/"+f}))}}),s.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),s.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),s.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),b.worksheets.forEach(w=>{s.leafNode("Override",{PartName:`/xl/worksheets/sheet${w.id}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),s.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),s.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),b.sharedStrings&&b.sharedStrings.count&&s.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),b.tables&&b.tables.forEach(w=>{s.leafNode("Override",{PartName:"/xl/tables/"+w.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),b.drawings&&b.drawings.forEach(w=>{s.leafNode("Override",{PartName:`/xl/drawings/${w.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),b.commentRefs&&(s.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),b.commentRefs.forEach(w=>{let{commentName:f}=w;s.leafNode("Override",{PartName:`/xl/${f}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),s.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),s.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),s.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}v.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},E.exports=v},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(o,E,R){"use strict";const m=o("../../../utils/xml-stream"),_=o("../base-xform"),v=o("../simple/date-xform"),h=o("../simple/string-xform"),s=o("../simple/integer-xform");class b extends _{constructor(){super(),this.map={"dc:creator":new h({tag:"dc:creator"}),"dc:title":new h({tag:"dc:title"}),"dc:subject":new h({tag:"dc:subject"}),"dc:description":new h({tag:"dc:description"}),"dc:identifier":new h({tag:"dc:identifier"}),"dc:language":new h({tag:"dc:language"}),"cp:keywords":new h({tag:"cp:keywords"}),"cp:category":new h({tag:"cp:category"}),"cp:lastModifiedBy":new h({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new v({tag:"cp:lastPrinted",format:b.DateFormat}),"cp:revision":new s({tag:"cp:revision"}),"cp:version":new h({tag:"cp:version"}),"cp:contentStatus":new h({tag:"cp:contentStatus"}),"cp:contentType":new h({tag:"cp:contentType"}),"dcterms:created":new v({tag:"dcterms:created",attrs:b.DateAttrs,format:b.DateFormat}),"dcterms:modified":new v({tag:"dcterms:modified",attrs:b.DateAttrs,format:b.DateFormat})}}render(w,f){w.openXml(m.StdDocAttributes),w.openNode("cp:coreProperties",b.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(w,f.creator),this.map["dc:title"].render(w,f.title),this.map["dc:subject"].render(w,f.subject),this.map["dc:description"].render(w,f.description),this.map["dc:identifier"].render(w,f.identifier),this.map["dc:language"].render(w,f.language),this.map["cp:keywords"].render(w,f.keywords),this.map["cp:category"].render(w,f.category),this.map["cp:lastModifiedBy"].render(w,f.lastModifiedBy),this.map["cp:lastPrinted"].render(w,f.lastPrinted),this.map["cp:revision"].render(w,f.revision),this.map["cp:version"].render(w,f.version),this.map["cp:contentStatus"].render(w,f.contentStatus),this.map["cp:contentType"].render(w,f.contentType),this.map["dcterms:created"].render(w,f.created),this.map["dcterms:modified"].render(w,f.modified),w.closeNode()}parseOpen(w){if(this.parser)return this.parser.parseOpen(w),!0;switch(w.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[w.name],this.parser)return this.parser.parseOpen(w),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(w))}}parseText(w){this.parser&&this.parser.parseText(w)}parseClose(w){if(this.parser)return this.parser.parseClose(w)||(this.parser=void 0),!0;switch(w){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+w)}}}b.DateFormat=function(O){return O.toISOString().replace(/[.]\d{3}/,"")},b.DateAttrs={"xsi:type":"dcterms:W3CDTF"},b.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},E.exports=b},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{render(_,v){_.leafNode("Relationship",v)}parseOpen(_){return"Relationship"===_.name&&(this.model=_.attributes,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(o,E,R){"use strict";const m=o("../../../utils/xml-stream"),_=o("../base-xform"),v=o("./relationship-xform");class h extends _{constructor(){super(),this.map={Relationship:new v}}render(b,O){O=O||this._values,b.openXml(m.StdDocAttributes),b.openNode("Relationships",h.RELATIONSHIPS_ATTRIBUTES),O.forEach(w=>{this.map.Relationship.render(b,w)}),b.closeNode()}parseOpen(b){if(this.parser)return this.parser.parseOpen(b),!0;if("Relationships"===b.name)return this.model=[],!0;if(this.parser=this.map[b.name],this.parser)return this.parser.parseOpen(b),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(b))}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){if(this.parser)return this.parser.parseClose(b)||(this.model.push(this.parser.model),this.parser=void 0),!0;if("Relationships"===b)return!1;throw new Error("Unexpected xml node in parseClose: "+b)}}h.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},E.exports=h},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{parseOpen(_){return this.parser?(this.parser.parseOpen(_),!0):(_.name===this.tag?(this.reset(),this.model={range:{editAs:_.attributes.editAs||"oneCell"}}):(this.parser=this.map[_.name],this.parser&&this.parser.parseOpen(_)),!0)}parseText(_){this.parser&&this.parser.parseText(_)}reconcilePicture(_,v){if(_&&_.rId){const h=v.rels[_.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(h)return v.media[v.mediaIndex[h[1]]]}}}},{"../base-xform":32}],57:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("./blip-xform");E.exports=class extends m{constructor(){super(),this.map={"a:blip":new _}}get tag(){return"xdr:blipFill"}render(v,h){v.openNode(this.tag),this.map["a:blip"].render(v,h),v.openNode("a:stretch"),v.leafNode("a:fillRect"),v.closeNode(),v.closeNode()}parseOpen(v){return this.parser?(this.parser.parseOpen(v),!0):(v.name===this.tag?this.reset():(this.parser=this.map[v.name],this.parser&&this.parser.parseOpen(v)),!0)}parseText(){}parseClose(v){return this.parser?(this.parser.parseClose(v)||(this.parser=void 0),!0):v!==this.tag||(this.model=this.map["a:blip"].model,!1)}}},{"../base-xform":32,"./blip-xform":58}],58:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"a:blip"}render(_,v){_.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":v.rId,cstate:"print"})}parseOpen(_){return _.name!==this.tag||(this.model={rId:_.attributes["r:embed"]},!0)}parseText(){}parseClose(_){return _!==this.tag}}},{"../base-xform":32}],59:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"xdr:cNvPicPr"}render(_){_.openNode(this.tag),_.leafNode("a:picLocks",{noChangeAspect:"1"}),_.closeNode()}parseOpen(_){return!0}parseText(){}parseClose(_){return _!==this.tag}}},{"../base-xform":32}],60:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("./hlink-click-xform"),v=o("./ext-lst-xform");E.exports=class extends m{constructor(){super(),this.map={"a:hlinkClick":new _,"a:extLst":new v}}get tag(){return"xdr:cNvPr"}render(h,s){h.openNode(this.tag,{id:s.index,name:"Picture "+s.index}),this.map["a:hlinkClick"].render(h,s),this.map["a:extLst"].render(h,s),h.closeNode()}parseOpen(h){return this.parser?(this.parser.parseOpen(h),!0):(h.name===this.tag?this.reset():(this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)),!0)}parseText(){}parseClose(h){return this.parser?(this.parser.parseClose(h)||(this.parser=void 0),!0):h!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("../simple/integer-xform");E.exports=class extends m{constructor(v){super(),this.tag=v.tag,this.map={"xdr:col":new _({tag:"xdr:col",zero:!0}),"xdr:colOff":new _({tag:"xdr:colOff",zero:!0}),"xdr:row":new _({tag:"xdr:row",zero:!0}),"xdr:rowOff":new _({tag:"xdr:rowOff",zero:!0})}}render(v,h){v.openNode(this.tag),this.map["xdr:col"].render(v,h.nativeCol),this.map["xdr:colOff"].render(v,h.nativeColOff),this.map["xdr:row"].render(v,h.nativeRow),this.map["xdr:rowOff"].render(v,h.nativeRowOff),v.closeNode()}parseOpen(v){return this.parser?(this.parser.parseOpen(v),!0):(v.name===this.tag?this.reset():(this.parser=this.map[v.name],this.parser&&this.parser.parseOpen(v)),!0)}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){return this.parser?(this.parser.parseClose(v)||(this.parser=void 0),!0):v!==this.tag||(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1)}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(o,E,R){"use strict";const m=o("../../../utils/col-cache"),_=o("../../../utils/xml-stream"),v=o("../base-xform"),h=o("./two-cell-anchor-xform"),s=o("./one-cell-anchor-xform");class b extends v{constructor(){super(),this.map={"xdr:twoCellAnchor":new h,"xdr:oneCellAnchor":new s}}prepare(w){w.anchors.forEach((f,k)=>{var I;f.anchorType=("string"==typeof(I=f).range?m.decode(I.range):I.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor",this.map[f.anchorType].prepare(f,{index:k})})}get tag(){return"xdr:wsDr"}render(w,f){w.openXml(_.StdDocAttributes),w.openNode(this.tag,b.DRAWING_ATTRIBUTES),f.anchors.forEach(k=>{this.map[k.anchorType].render(w,k)}),w.closeNode()}parseOpen(w){return this.parser?(this.parser.parseOpen(w),!0):(w.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[w.name],this.parser&&this.parser.parseOpen(w)),!0)}parseText(w){this.parser&&this.parser.parseText(w)}parseClose(w){return this.parser?(this.parser.parseClose(w)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):w!==this.tag}reconcile(w,f){w.anchors.forEach(k=>{k.br?this.map["xdr:twoCellAnchor"].reconcile(k,f):this.map["xdr:oneCellAnchor"].reconcile(k,f)})}}b.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},E.exports=b},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"a:extLst"}render(_){_.openNode(this.tag),_.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),_.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),_.closeNode(),_.closeNode()}parseOpen(_){return!0}parseText(){}parseClose(_){return _!==this.tag}}},{"../base-xform":32}],64:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{constructor(_){super(),this.tag=_.tag,this.map={}}render(_,v){_.openNode(this.tag);const h=Math.floor(9525*v.width),s=Math.floor(9525*v.height);_.addAttribute("cx",h),_.addAttribute("cy",s),_.closeNode()}parseOpen(_){return _.name===this.tag&&(this.model={width:parseInt(_.attributes.cx||"0",10)/9525,height:parseInt(_.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"a:hlinkClick"}render(_,v){v.hyperlinks&&v.hyperlinks.rId&&_.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":v.hyperlinks.rId,tooltip:v.hyperlinks.tooltip})}parseOpen(_){return _.name!==this.tag||(this.model={hyperlinks:{rId:_.attributes["r:id"],tooltip:_.attributes.tooltip}},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("./c-nv-pr-xform"),v=o("./c-nv-pic-pr-xform");E.exports=class extends m{constructor(){super(),this.map={"xdr:cNvPr":new _,"xdr:cNvPicPr":new v}}get tag(){return"xdr:nvPicPr"}render(h,s){h.openNode(this.tag),this.map["xdr:cNvPr"].render(h,s),this.map["xdr:cNvPicPr"].render(h,s),h.closeNode()}parseOpen(h){return this.parser?(this.parser.parseOpen(h),!0):(h.name===this.tag?this.reset():(this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)),!0)}parseText(){}parseClose(h){return this.parser?(this.parser.parseClose(h)||(this.parser=void 0),!0):h!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(o,E,R){"use strict";const m=o("./base-cell-anchor-xform"),_=o("../static-xform"),v=o("./cell-position-xform"),h=o("./ext-xform"),s=o("./pic-xform");E.exports=class extends m{constructor(){super(),this.map={"xdr:from":new v({tag:"xdr:from"}),"xdr:ext":new h({tag:"xdr:ext"}),"xdr:pic":new s,"xdr:clientData":new _({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(b,O){this.map["xdr:pic"].prepare(b.picture,O)}render(b,O){b.openNode(this.tag,{editAs:O.range.editAs||"oneCell"}),this.map["xdr:from"].render(b,O.range.tl),this.map["xdr:ext"].render(b,O.range.ext),this.map["xdr:pic"].render(b,O.picture),this.map["xdr:clientData"].render(b,{}),b.closeNode()}parseClose(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):b!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(b,O){b.medium=this.reconcilePicture(b.picture,O)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("../static-xform"),v=o("./blip-fill-xform"),h=o("./nv-pic-pr-xform"),s=o("./sp-pr");E.exports=class extends m{constructor(){super(),this.map={"xdr:nvPicPr":new h,"xdr:blipFill":new v,"xdr:spPr":new _(s)}}get tag(){return"xdr:pic"}prepare(b,O){b.index=O.index+1}render(b,O){b.openNode(this.tag),this.map["xdr:nvPicPr"].render(b,O),this.map["xdr:blipFill"].render(b,O),this.map["xdr:spPr"].render(b,O),b.closeNode()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):(b.name===this.tag?this.reset():(this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b)),!0)}parseText(){}parseClose(b){return this.parser?(this.parser.parseClose(b)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):b!==this.tag}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(o,E,R){"use strict";E.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(o,E,R){"use strict";const m=o("./base-cell-anchor-xform"),_=o("../static-xform"),v=o("./cell-position-xform"),h=o("./pic-xform");E.exports=class extends m{constructor(){super(),this.map={"xdr:from":new v({tag:"xdr:from"}),"xdr:to":new v({tag:"xdr:to"}),"xdr:pic":new h,"xdr:clientData":new _({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(s,b){this.map["xdr:pic"].prepare(s.picture,b)}render(s,b){s.openNode(this.tag,{editAs:b.range.editAs||"oneCell"}),this.map["xdr:from"].render(s,b.range.tl),this.map["xdr:to"].render(s,b.range.br),this.map["xdr:pic"].render(s,b.picture),this.map["xdr:clientData"].render(s,{}),s.closeNode()}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):s!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(s,b){s.medium=this.reconcilePicture(s.picture,b)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(o,E,R){"use strict";const m=o("./base-xform");E.exports=class extends m{constructor(_){super(),this.tag=_.tag,this.always=!!_.always,this.count=_.count,this.empty=_.empty,this.$count=_.$count||"count",this.$=_.$,this.childXform=_.childXform,this.maxItems=_.maxItems}prepare(_,v){const{childXform:h}=this;_&&_.forEach((s,b)=>{v.index=b,h.prepare(s,v)})}render(_,v){if(this.always||v&&v.length){_.openNode(this.tag,this.$),this.count&&_.addAttribute(this.$count,v&&v.length||0);const{childXform:h}=this;(v||[]).forEach((s,b)=>{h.render(_,s,b)}),_.closeNode()}else this.empty&&_.leafNode(this.tag)}parseOpen(_){return this.parser?(this.parser.parseOpen(_),!0):_.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(_)&&(this.parser=this.childXform,!0)}parseText(_){this.parser&&this.parser.parseText(_)}parseClose(_){if(this.parser){if(!this.parser.parseClose(_)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(_,v){if(_){const{childXform:h}=this;_.forEach(s=>{h.reconcile(s,v)})}}}},{"./base-xform":32}],72:[function(o,E,R){"use strict";const m=o("../../../utils/col-cache"),_=o("../base-xform");E.exports=class extends _{get tag(){return"autoFilter"}render(v,h){if(h)if("string"==typeof h)v.leafNode("autoFilter",{ref:h});else{const s=function(w){return"string"==typeof w?w:m.getAddress(w.row,w.column).address},b=s(h.from),O=s(h.to);b&&O&&v.leafNode("autoFilter",{ref:`${b}:${O}`})}}parseOpen(v){"autoFilter"===v.name&&(this.model=v.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(o,E,R){"use strict";const m=o("../../../utils/utils"),_=o("../base-xform"),v=o("../../../doc/range"),h=o("../../../doc/enums"),s=o("../strings/rich-text-xform");function b(O){if(null==O)return h.ValueType.Null;if(O instanceof String||"string"==typeof O)return h.ValueType.String;if("number"==typeof O)return h.ValueType.Number;if("boolean"==typeof O)return h.ValueType.Boolean;if(O instanceof Date)return h.ValueType.Date;if(O.text&&O.hyperlink)return h.ValueType.Hyperlink;if(O.formula)return h.ValueType.Formula;if(O.error)return h.ValueType.Error;throw new Error("I could not understand type of value")}E.exports=class extends _{constructor(){super(),this.richTextXForm=new s}get tag(){return"c"}prepare(O,w){const f=w.styles.addStyleModel(O.style||{},(k=O).type===h.ValueType.Formula?b(k.result):k.type);var k;switch(f&&(O.styleId=f),O.comment&&w.comments.push({...O.comment,ref:O.address}),O.type){case h.ValueType.String:case h.ValueType.RichText:w.sharedStrings&&(O.ssId=w.sharedStrings.add(O.value));break;case h.ValueType.Date:w.date1904&&(O.date1904=!0);break;case h.ValueType.Hyperlink:w.sharedStrings&&null!=O.text&&(O.ssId=w.sharedStrings.add(O.text)),w.hyperlinks.push({address:O.address,target:O.hyperlink,tooltip:O.tooltip});break;case h.ValueType.Merge:w.merges.add(O);break;case h.ValueType.Formula:if(w.date1904&&(O.date1904=!0),"shared"===O.shareType&&(O.si=w.siFormulae++),O.formula)w.formulae[O.address]=O;else if(O.sharedFormula){const k=w.formulae[O.sharedFormula];if(!k)throw new Error("Shared Formula master must exist above and or left of clone for cell "+O.address);void 0===k.si?(k.shareType="shared",k.si=w.siFormulae++,k.range=new v(k.address,O.address)):k.range&&k.range.expandToAddress(O.address),O.si=k.si}}}renderFormula(O,w){let f=null;switch(w.shareType){case"shared":f={t:"shared",ref:w.ref||w.range.range,si:w.si};break;case"array":f={t:"array",ref:w.ref};break;default:void 0!==w.si&&(f={t:"shared",si:w.si})}switch(b(w.result)){case h.ValueType.Null:O.leafNode("f",f,w.formula);break;case h.ValueType.String:O.addAttribute("t","str"),O.leafNode("f",f,w.formula),O.leafNode("v",null,w.result);break;case h.ValueType.Number:O.leafNode("f",f,w.formula),O.leafNode("v",null,w.result);break;case h.ValueType.Boolean:O.addAttribute("t","b"),O.leafNode("f",f,w.formula),O.leafNode("v",null,w.result?1:0);break;case h.ValueType.Error:O.addAttribute("t","e"),O.leafNode("f",f,w.formula),O.leafNode("v",null,w.result.error);break;case h.ValueType.Date:O.leafNode("f",f,w.formula),O.leafNode("v",null,m.dateToExcel(w.result,w.date1904));break;default:throw new Error("I could not understand type of value")}}render(O,w){if(w.type!==h.ValueType.Null||w.styleId){switch(O.openNode("c"),O.addAttribute("r",w.address),w.styleId&&O.addAttribute("s",w.styleId),w.type){case h.ValueType.Null:break;case h.ValueType.Number:O.leafNode("v",null,w.value);break;case h.ValueType.Boolean:O.addAttribute("t","b"),O.leafNode("v",null,w.value?"1":"0");break;case h.ValueType.Error:O.addAttribute("t","e"),O.leafNode("v",null,w.value.error);break;case h.ValueType.String:case h.ValueType.RichText:void 0!==w.ssId?(O.addAttribute("t","s"),O.leafNode("v",null,w.ssId)):w.value&&w.value.richText?(O.addAttribute("t","inlineStr"),O.openNode("is"),w.value.richText.forEach(f=>{this.richTextXForm.render(O,f)}),O.closeNode("is")):(O.addAttribute("t","str"),O.leafNode("v",null,w.value));break;case h.ValueType.Date:O.leafNode("v",null,m.dateToExcel(w.value,w.date1904));break;case h.ValueType.Hyperlink:void 0!==w.ssId?(O.addAttribute("t","s"),O.leafNode("v",null,w.ssId)):(O.addAttribute("t","str"),O.leafNode("v",null,w.text));break;case h.ValueType.Formula:this.renderFormula(O,w)}O.closeNode()}}parseOpen(O){if(this.parser)return this.parser.parseOpen(O),!0;switch(O.name){case"c":return this.model={address:O.attributes.r},this.t=O.attributes.t,O.attributes.s&&(this.model.styleId=parseInt(O.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=O.attributes.si,this.model.shareType=O.attributes.t,this.model.ref=O.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(O),!0;default:return!1}}parseText(O){if(this.parser)this.parser.parseText(O);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+O:O;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+O:O:this.model.value=this.model.value?this.model.value+O:O}}parseClose(O){switch(O){case"c":{const{model:w}=this;if(w.formula||w.shareType)w.type=h.ValueType.Formula,w.value&&(w.result="str"===this.t?m.xmlDecode(w.value):"b"===this.t?0!==parseInt(w.value,10):"e"===this.t?{error:w.value}:parseFloat(w.value),w.value=void 0);else if(void 0!==w.value)switch(this.t){case"s":w.type=h.ValueType.String,w.value=parseInt(w.value,10);break;case"str":w.type=h.ValueType.String,w.value=m.xmlDecode(w.value);break;case"inlineStr":w.type=h.ValueType.String;break;case"b":w.type=h.ValueType.Boolean,w.value=0!==parseInt(w.value,10);break;case"e":w.type=h.ValueType.Error,w.value={error:w.value};break;default:w.type=h.ValueType.Number,w.value=parseFloat(w.value)}else w.type=w.styleId?h.ValueType.Null:h.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(O),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(O),!0)}}reconcile(O,w){const f=O.styleId&&w.styles&&w.styles.getStyleModel(O.styleId);switch(f&&(O.style=f),void 0!==O.styleId&&(O.styleId=void 0),O.type){case h.ValueType.String:"number"==typeof O.value&&w.sharedStrings&&(O.value=w.sharedStrings.getString(O.value)),O.value.richText&&(O.type=h.ValueType.RichText);break;case h.ValueType.Number:f&&m.isDateFmt(f.numFmt)&&(O.type=h.ValueType.Date,O.value=m.excelToDate(O.value,w.date1904));break;case h.ValueType.Formula:void 0!==O.result&&f&&m.isDateFmt(f.numFmt)&&(O.result=m.excelToDate(O.result,w.date1904)),"shared"===O.shareType&&(O.ref?w.formulae[O.si]=O.address:(O.sharedFormula=w.formulae[O.si],delete O.shareType),delete O.si)}const k=w.hyperlinkMap[O.address];k&&(O.type===h.ValueType.Formula?(O.text=O.result,O.result=void 0):(O.text=O.value,O.value=void 0),O.type=h.ValueType.Hyperlink,O.hyperlink=k);const I=w.commentsMap&&w.commentsMap[O.address];I&&(O.comment=I)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(o,E,R){"use strict";const m=o("../../base-xform");E.exports=class extends m{get tag(){return"x14:cfIcon"}render(_,v){_.leafNode(this.tag,{iconSet:v.iconSet,iconId:v.iconId})}parseOpen(_){let{attributes:v}=_;this.model={iconSet:v.iconSet,iconId:m.toIntValue(v.iconId)}}parseClose(_){return _!==this.tag}}},{"../../base-xform":32}],75:[function(o,E,R){"use strict";const{v4:m}=o("uuid"),_=o("../../base-xform"),v=o("../../composite-xform"),h=o("./databar-ext-xform"),s=o("./icon-set-ext-xform"),b={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class O extends v{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new h,"x14:iconSet":this.iconSetXform=new s}}get tag(){return"x14:cfRule"}static isExt(f){return"dataBar"===f.type?h.isExt(f):!("iconSet"!==f.type||!f.custom&&!b[f.iconSet])}prepare(f){O.isExt(f)&&(f.x14Id=`{${m()}}`.toUpperCase())}render(f,k){if(O.isExt(k))switch(k.type){case"dataBar":this.renderDataBar(f,k);break;case"iconSet":this.renderIconSet(f,k)}}renderDataBar(f,k){f.openNode(this.tag,{type:"dataBar",id:k.x14Id}),this.databarXform.render(f,k),f.closeNode()}renderIconSet(f,k){f.openNode(this.tag,{type:"iconSet",priority:k.priority,id:k.x14Id||`{${m()}}`}),this.iconSetXform.render(f,k),f.closeNode()}createNewModel(f){let{attributes:k}=f;return{type:k.type,x14Id:k.id,priority:_.toIntValue(k.priority)}}onParserClose(f,k){Object.assign(this.model,k.model)}}E.exports=O},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(o,E,R){"use strict";const m=o("../../composite-xform"),_=o("./f-ext-xform");E.exports=class extends m{constructor(){super(),this.map={"xm:f":this.fExtXform=new _}}get tag(){return"x14:cfvo"}render(v,h){v.openNode(this.tag,{type:h.type}),void 0!==h.value&&this.fExtXform.render(v,h.value),v.closeNode()}createNewModel(v){return{type:v.attributes.type}}onParserClose(v,h){"xm:f"===v&&(this.model.value=h.model?parseFloat(h.model):0)}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(o,E,R){"use strict";const m=o("../../composite-xform"),_=o("./sqref-ext-xform"),v=o("./cf-rule-ext-xform");E.exports=class extends m{constructor(){super(),this.map={"xm:sqref":this.sqRef=new _,"x14:cfRule":this.cfRule=new v}}get tag(){return"x14:conditionalFormatting"}prepare(h,s){h.rules.forEach(b=>{this.cfRule.prepare(b,s)})}render(h,s){s.rules.some(v.isExt)&&(h.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),s.rules.filter(v.isExt).forEach(b=>this.cfRule.render(h,b)),this.sqRef.render(h,s.ref),h.closeNode())}createNewModel(){return{rules:[]}}onParserClose(h,s){switch(h){case"xm:sqref":this.model.ref=s.model;break;case"x14:cfRule":this.model.rules.push(s.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(o,E,R){"use strict";const m=o("../../composite-xform"),_=o("./cf-rule-ext-xform"),v=o("./conditional-formatting-ext-xform");E.exports=class extends m{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new v}}get tag(){return"x14:conditionalFormattings"}hasContent(h){return void 0===h.hasExtContent&&(h.hasExtContent=h.some(s=>s.rules.some(_.isExt))),h.hasExtContent}prepare(h,s){h.forEach(b=>{this.cfXform.prepare(b,s)})}render(h,s){this.hasContent(s)&&(h.openNode(this.tag),s.forEach(b=>this.cfXform.render(h,b)),h.closeNode())}createNewModel(){return[]}onParserClose(h,s){this.model.push(s.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(o,E,R){"use strict";const m=o("../../base-xform"),_=o("../../composite-xform"),v=o("../../style/color-xform"),h=o("./cfvo-ext-xform");E.exports=class extends _{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new h,"x14:borderColor":this.borderColorXform=new v("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new v("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new v("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new v("x14:axisColor")}}static isExt(s){return!s.gradient}get tag(){return"x14:dataBar"}render(s,b){s.openNode(this.tag,{minLength:m.toIntAttribute(b.minLength,0,!0),maxLength:m.toIntAttribute(b.maxLength,100,!0),border:m.toBoolAttribute(b.border,!1),gradient:m.toBoolAttribute(b.gradient,!0),negativeBarColorSameAsPositive:m.toBoolAttribute(b.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:m.toBoolAttribute(b.negativeBarBorderColorSameAsPositive,!0),axisPosition:m.toAttribute(b.axisPosition,"auto"),direction:m.toAttribute(b.direction,"leftToRight")}),b.cfvo.forEach(O=>{this.cfvoXform.render(s,O)}),this.borderColorXform.render(s,b.borderColor),this.negativeBorderColorXform.render(s,b.negativeBorderColor),this.negativeFillColorXform.render(s,b.negativeFillColor),this.axisColorXform.render(s,b.axisColor),s.closeNode()}createNewModel(s){let{attributes:b}=s;return{cfvo:[],minLength:m.toIntValue(b.minLength,0),maxLength:m.toIntValue(b.maxLength,100),border:m.toBoolValue(b.border,!1),gradient:m.toBoolValue(b.gradient,!0),negativeBarColorSameAsPositive:m.toBoolValue(b.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:m.toBoolValue(b.negativeBarBorderColorSameAsPositive,!0),axisPosition:m.toStringValue(b.axisPosition,"auto"),direction:m.toStringValue(b.direction,"leftToRight")}}onParserClose(s,b){const[,O]=s.split(":");"cfvo"===O?this.model.cfvo.push(b.model):this.model[O]=b.model}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(o,E,R){"use strict";const m=o("../../base-xform");E.exports=class extends m{get tag(){return"xm:f"}render(_,v){_.leafNode(this.tag,null,v)}parseOpen(){this.model=""}parseText(_){this.model+=_}parseClose(_){return _!==this.tag}}},{"../../base-xform":32}],81:[function(o,E,R){"use strict";const m=o("../../base-xform"),_=o("../../composite-xform"),v=o("./cfvo-ext-xform"),h=o("./cf-icon-ext-xform");E.exports=class extends _{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new v,"x14:cfIcon":this.cfIconXform=new h}}get tag(){return"x14:iconSet"}render(s,b){s.openNode(this.tag,{iconSet:m.toStringAttribute(b.iconSet),reverse:m.toBoolAttribute(b.reverse,!1),showValue:m.toBoolAttribute(b.showValue,!0),custom:m.toBoolAttribute(b.icons,!1)}),b.cfvo.forEach(O=>{this.cfvoXform.render(s,O)}),b.icons&&b.icons.forEach((O,w)=>{O.iconId=w,this.cfIconXform.render(s,O)}),s.closeNode()}createNewModel(s){let{attributes:b}=s;return{cfvo:[],iconSet:m.toStringValue(b.iconSet,"3TrafficLights"),reverse:m.toBoolValue(b.reverse,!1),showValue:m.toBoolValue(b.showValue,!0)}}onParserClose(s,b){const[,O]=s.split(":");switch(O){case"cfvo":this.model.cfvo.push(b.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(b.model);break;default:this.model[O]=b.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(o,E,R){"use strict";const m=o("../../base-xform");E.exports=class extends m{get tag(){return"xm:sqref"}render(_,v){_.leafNode(this.tag,null,v)}parseOpen(){this.model=""}parseText(_){this.model+=_}parseClose(_){return _!==this.tag}}},{"../../base-xform":32}],83:[function(o,E,R){"use strict";const m=o("../../base-xform"),_=o("../../composite-xform"),v=o("../../../../doc/range"),h=o("./databar-xform"),s=o("./ext-lst-ref-xform"),b=o("./formula-xform"),O=o("./color-scale-xform"),w=o("./icon-set-xform"),f={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},k=x=>{const{type:g,operator:C}=x;switch(g){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:g};default:return{type:g,operator:C}}};class I extends _{constructor(){super(),this.map={dataBar:this.databarXform=new h,extLst:this.extLstRefXform=new s,formula:this.formulaXform=new b,colorScale:this.colorScaleXform=new O,iconSet:this.iconSetXform=new w}}get tag(){return"cfRule"}static isPrimitive(g){return"iconSet"!==g.type||!g.custom&&!f[g.iconSet]}render(g,C){switch(C.type){case"expression":this.renderExpression(g,C);break;case"cellIs":this.renderCellIs(g,C);break;case"top10":this.renderTop10(g,C);break;case"aboveAverage":this.renderAboveAverage(g,C);break;case"dataBar":this.renderDataBar(g,C);break;case"colorScale":this.renderColorScale(g,C);break;case"iconSet":this.renderIconSet(g,C);break;case"containsText":this.renderText(g,C);break;case"timePeriod":this.renderTimePeriod(g,C)}}renderExpression(g,C){g.openNode(this.tag,{type:"expression",dxfId:C.dxfId,priority:C.priority}),this.formulaXform.render(g,C.formulae[0]),g.closeNode()}renderCellIs(g,C){g.openNode(this.tag,{type:"cellIs",dxfId:C.dxfId,priority:C.priority,operator:C.operator}),C.formulae.forEach(F=>{this.formulaXform.render(g,F)}),g.closeNode()}renderTop10(g,C){g.leafNode(this.tag,{type:"top10",dxfId:C.dxfId,priority:C.priority,percent:m.toBoolAttribute(C.percent,!1),bottom:m.toBoolAttribute(C.bottom,!1),rank:m.toIntValue(C.rank,10,!0)})}renderAboveAverage(g,C){g.leafNode(this.tag,{type:"aboveAverage",dxfId:C.dxfId,priority:C.priority,aboveAverage:m.toBoolAttribute(C.aboveAverage,!0)})}renderDataBar(g,C){g.openNode(this.tag,{type:"dataBar",priority:C.priority}),this.databarXform.render(g,C),this.extLstRefXform.render(g,C),g.closeNode()}renderColorScale(g,C){g.openNode(this.tag,{type:"colorScale",priority:C.priority}),this.colorScaleXform.render(g,C),g.closeNode()}renderIconSet(g,C){I.isPrimitive(C)&&(g.openNode(this.tag,{type:"iconSet",priority:C.priority}),this.iconSetXform.render(g,C),g.closeNode())}renderText(g,C){g.openNode(this.tag,{type:C.operator,dxfId:C.dxfId,priority:C.priority,operator:m.toStringAttribute(C.operator,"containsText")});const F=(Y=>{if(Y.formulae&&Y.formulae[0])return Y.formulae[0];const Q=new v(Y.ref),{tl:se}=Q;switch(Y.operator){case"containsText":return`NOT(ISERROR(SEARCH("${Y.text}",${se})))`;case"containsBlanks":return`LEN(TRIM(${se}))=0`;case"notContainsBlanks":return`LEN(TRIM(${se}))>0`;case"containsErrors":return`ISERROR(${se})`;case"notContainsErrors":return`NOT(ISERROR(${se}))`;default:return}})(C);F&&this.formulaXform.render(g,F),g.closeNode()}renderTimePeriod(g,C){g.openNode(this.tag,{type:"timePeriod",dxfId:C.dxfId,priority:C.priority,timePeriod:C.timePeriod});const F=(Y=>{if(Y.formulae&&Y.formulae[0])return Y.formulae[0];const Q=new v(Y.ref),{tl:se}=Q;switch(Y.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${se},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${se},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${se},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${se},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${se},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${se},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${se},1)=TODAY()-1`;case"today":return`FLOOR(${se},1)=TODAY()`;case"tomorrow":return`FLOOR(${se},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${se},1)<=6,FLOOR(${se},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${se})=MONTH(EDATE(TODAY(),0-1)),YEAR(${se})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${se})=MONTH(TODAY()),YEAR(${se})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${se})=MONTH(EDATE(TODAY(),0+1)),YEAR(${se})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(C);F&&this.formulaXform.render(g,F),g.closeNode()}createNewModel(g){let{attributes:C}=g;return{...k(C),dxfId:m.toIntValue(C.dxfId),priority:m.toIntValue(C.priority),timePeriod:C.timePeriod,percent:m.toBoolValue(C.percent),bottom:m.toBoolValue(C.bottom),rank:m.toIntValue(C.rank),aboveAverage:m.toBoolValue(C.aboveAverage)}}onParserClose(g,C){switch(g){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,C.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(C.model)}}}E.exports=I},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(o,E,R){"use strict";const m=o("../../base-xform");E.exports=class extends m{get tag(){return"cfvo"}render(_,v){_.leafNode(this.tag,{type:v.type,val:v.value})}parseOpen(_){this.model={type:_.attributes.type,value:m.toFloatValue(_.attributes.val)}}parseClose(_){return _!==this.tag}}},{"../../base-xform":32}],85:[function(o,E,R){"use strict";const m=o("../../composite-xform"),_=o("../../style/color-xform"),v=o("./cfvo-xform");E.exports=class extends m{constructor(){super(),this.map={cfvo:this.cfvoXform=new v,color:this.colorXform=new _}}get tag(){return"colorScale"}render(h,s){h.openNode(this.tag),s.cfvo.forEach(b=>{this.cfvoXform.render(h,b)}),s.color.forEach(b=>{this.colorXform.render(h,b)}),h.closeNode()}createNewModel(h){return{cfvo:[],color:[]}}onParserClose(h,s){this.model[h].push(s.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(o,E,R){"use strict";const m=o("../../composite-xform"),_=o("./cf-rule-xform");E.exports=class extends m{constructor(){super(),this.map={cfRule:new _}}get tag(){return"conditionalFormatting"}render(v,h){h.rules.some(_.isPrimitive)&&(v.openNode(this.tag,{sqref:h.ref}),h.rules.forEach(s=>{_.isPrimitive(s)&&(s.ref=h.ref,this.map.cfRule.render(v,s))}),v.closeNode())}createNewModel(v){let{attributes:h}=v;return{ref:h.sqref,rules:[]}}onParserClose(v,h){this.model.rules.push(h.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(o,E,R){"use strict";const m=o("../../base-xform"),_=o("./conditional-formatting-xform");E.exports=class extends m{constructor(){super(),this.cfXform=new _}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(v,h){let s=v.reduce((b,O)=>Math.max(b,...O.rules.map(w=>w.priority||0)),1);v.forEach(b=>{b.rules.forEach(O=>{O.priority||(O.priority=s++),O.style&&(O.dxfId=h.styles.addDxfStyle(O.style))})})}render(v,h){h.forEach(s=>{this.cfXform.render(v,s)})}parseOpen(v){return this.parser?(this.parser.parseOpen(v),!0):"conditionalFormatting"===v.name&&(this.parser=this.cfXform,this.parser.parseOpen(v),!0)}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){return!(!this.parser||!this.parser.parseClose(v)&&(this.model.push(this.parser.model),this.parser=void 0,1))}reconcile(v,h){v.forEach(s=>{s.rules.forEach(b=>{void 0!==b.dxfId&&(b.style=h.styles.getDxfStyle(b.dxfId),delete b.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(o,E,R){"use strict";const m=o("../../composite-xform"),_=o("../../style/color-xform"),v=o("./cfvo-xform");E.exports=class extends m{constructor(){super(),this.map={cfvo:this.cfvoXform=new v,color:this.colorXform=new _}}get tag(){return"dataBar"}render(h,s){h.openNode(this.tag),s.cfvo.forEach(b=>{this.cfvoXform.render(h,b)}),this.colorXform.render(h,s.color),h.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(h,s){switch(h){case"cfvo":this.model.cfvo.push(s.model);break;case"color":this.model.color=s.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(o,E,R){"use strict";const m=o("../../base-xform"),_=o("../../composite-xform");class v extends m{get tag(){return"x14:id"}render(b,O){b.leafNode(this.tag,null,O)}parseOpen(){this.model=""}parseText(b){this.model+=b}parseClose(b){return b!==this.tag}}class h extends _{constructor(){super(),this.map={"x14:id":this.idXform=new v}}get tag(){return"ext"}render(b,O){b.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(b,O.x14Id),b.closeNode()}createNewModel(){return{}}onParserClose(b,O){this.model.x14Id=O.model}}E.exports=class extends _{constructor(){super(),this.map={ext:new h}}get tag(){return"extLst"}render(s,b){s.openNode(this.tag),this.map.ext.render(s,b),s.closeNode()}createNewModel(){return{}}onParserClose(s,b){Object.assign(this.model,b.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(o,E,R){"use strict";const m=o("../../base-xform");E.exports=class extends m{get tag(){return"formula"}render(_,v){_.leafNode(this.tag,null,v)}parseOpen(){this.model=""}parseText(_){this.model+=_}parseClose(_){return _!==this.tag}}},{"../../base-xform":32}],91:[function(o,E,R){"use strict";const m=o("../../base-xform"),_=o("../../composite-xform"),v=o("./cfvo-xform");E.exports=class extends _{constructor(){super(),this.map={cfvo:this.cfvoXform=new v}}get tag(){return"iconSet"}render(h,s){h.openNode(this.tag,{iconSet:m.toStringAttribute(s.iconSet,"3TrafficLights"),reverse:m.toBoolAttribute(s.reverse,!1),showValue:m.toBoolAttribute(s.showValue,!0)}),s.cfvo.forEach(b=>{this.cfvoXform.render(h,b)}),h.closeNode()}createNewModel(h){let{attributes:s}=h;return{iconSet:m.toStringValue(s.iconSet,"3TrafficLights"),reverse:m.toBoolValue(s.reverse),showValue:m.toBoolValue(s.showValue),cfvo:[]}}onParserClose(h,s){this.model[h].push(s.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(o,E,R){"use strict";const m=o("../../../utils/utils"),_=o("../base-xform");E.exports=class extends _{get tag(){return"col"}prepare(v,h){const s=h.styles.addStyleModel(v.style||{});s&&(v.styleId=s)}render(v,h){v.openNode("col"),v.addAttribute("min",h.min),v.addAttribute("max",h.max),h.width&&v.addAttribute("width",h.width),h.styleId&&v.addAttribute("style",h.styleId),h.hidden&&v.addAttribute("hidden","1"),h.bestFit&&v.addAttribute("bestFit","1"),h.outlineLevel&&v.addAttribute("outlineLevel",h.outlineLevel),h.collapsed&&v.addAttribute("collapsed","1"),v.addAttribute("customWidth","1"),v.closeNode()}parseOpen(v){if("col"===v.name){const h=this.model={min:parseInt(v.attributes.min||"0",10),max:parseInt(v.attributes.max||"0",10),width:void 0===v.attributes.width?void 0:parseFloat(v.attributes.width||"0")};return v.attributes.style&&(h.styleId=parseInt(v.attributes.style,10)),m.parseBoolean(v.attributes.hidden)&&(h.hidden=!0),m.parseBoolean(v.attributes.bestFit)&&(h.bestFit=!0),v.attributes.outlineLevel&&(h.outlineLevel=parseInt(v.attributes.outlineLevel,10)),m.parseBoolean(v.attributes.collapsed)&&(h.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(v,h){v.styleId&&(v.style=h.styles.getStyleModel(v.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(o,E,R){"use strict";const m=o("../../../utils/under-dash"),_=o("../../../utils/utils"),v=o("../../../utils/col-cache"),h=o("../base-xform"),s=o("../../../doc/range");function b(w,f,k,I){const x=f[k];void 0!==x?w[k]=x:void 0!==I&&(w[k]=I)}function O(w,f,k,I){const x=f[k];void 0!==x?w[k]=_.parseBoolean(x):void 0!==I&&(w[k]=I)}E.exports=class extends h{get tag(){return"dataValidations"}render(w,f){const k=function(I){const x=m.map(I,(F,Y)=>({address:Y,dataValidation:F,marked:!1})).sort((F,Y)=>m.strcmp(F.address,Y.address)),g=m.keyBy(x,"address"),C=(F,Y,Q)=>{for(let se=0;se<Y;se++){const ie=v.encodeAddress(F.row+se,Q);if(!I[ie]||!m.isEqual(I[F.address],I[ie]))return!1}return!0};return x.map(F=>{if(!F.marked){const Y=v.decodeEx(F.address);if(Y.dimensions)return g[Y.dimensions].marked=!0,{...F.dataValidation,sqref:F.address};let Q=1,se=v.encodeAddress(Y.row+Q,Y.col);for(;I[se]&&m.isEqual(F.dataValidation,I[se]);)Q++,se=v.encodeAddress(Y.row+Q,Y.col);let ie=1;for(;C(Y,Q,Y.col+ie);)ie++;for(let ee=0;ee<Q;ee++)for(let re=0;re<ie;re++)se=v.encodeAddress(Y.row+ee,Y.col+re),g[se].marked=!0;return Q>1||ie>1?{...F.dataValidation,sqref:`${F.address}:${v.encodeAddress(Y.row+(Q-1),Y.col+(ie-1))}`}:{...F.dataValidation,sqref:F.address}}return null}).filter(Boolean)}(f);k.length&&(w.openNode("dataValidations",{count:k.length}),k.forEach(I=>{w.openNode("dataValidation"),"any"!==I.type&&(w.addAttribute("type",I.type),I.operator&&"list"!==I.type&&"between"!==I.operator&&w.addAttribute("operator",I.operator),I.allowBlank&&w.addAttribute("allowBlank","1")),I.showInputMessage&&w.addAttribute("showInputMessage","1"),I.promptTitle&&w.addAttribute("promptTitle",I.promptTitle),I.prompt&&w.addAttribute("prompt",I.prompt),I.showErrorMessage&&w.addAttribute("showErrorMessage","1"),I.errorStyle&&w.addAttribute("errorStyle",I.errorStyle),I.errorTitle&&w.addAttribute("errorTitle",I.errorTitle),I.error&&w.addAttribute("error",I.error),w.addAttribute("sqref",I.sqref),(I.formulae||[]).forEach((x,g)=>{w.openNode("formula"+(g+1)),w.writeText("date"===I.type?_.dateToExcel(new Date(x)):x),w.closeNode()}),w.closeNode()}),w.closeNode())}parseOpen(w){switch(w.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=w.attributes.sqref;const f={type:w.attributes.type||"any",formulae:[]};switch(w.attributes.type&&O(f,w.attributes,"allowBlank"),O(f,w.attributes,"showInputMessage"),O(f,w.attributes,"showErrorMessage"),f.type){case"any":case"list":case"custom":break;default:b(f,w.attributes,"operator","between")}return b(f,w.attributes,"promptTitle"),b(f,w.attributes,"prompt"),b(f,w.attributes,"errorStyle"),b(f,w.attributes,"errorTitle"),b(f,w.attributes,"error"),this._dataValidation=f,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(w){this._formula&&this._formula.push(w)}parseClose(w){switch(w){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(f=>{f.includes(":")?new s(f).forEachAddress(k=>{this.model[k]=this._dataValidation}):this.model[f]=this._dataValidation}),!0;case"formula1":case"formula2":{let f=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":f=parseInt(f,10);break;case"decimal":f=parseFloat(f);break;case"date":f=_.excelToDate(parseFloat(f))}return this._dataValidation.formulae.push(f),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"dimension"}render(_,v){v&&_.leafNode("dimension",{ref:v})}parseOpen(_){return"dimension"===_.name&&(this.model=_.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"drawing"}render(_,v){v&&_.leafNode(this.tag,{"r:id":v.rId})}parseOpen(_){return _.name===this.tag&&(this.model={rId:_.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(o,E,R){"use strict";const m=o("../composite-xform"),_=o("./cf-ext/conditional-formattings-ext-xform");class v extends m{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new _}}get tag(){return"ext"}hasContent(s){return this.conditionalFormattings.hasContent(s.conditionalFormattings)}prepare(s,b){this.conditionalFormattings.prepare(s.conditionalFormattings,b)}render(s,b){s.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(s,b.conditionalFormattings),s.closeNode()}createNewModel(){return{}}onParserClose(s,b){this.model[s]=b.model}}E.exports=class extends m{constructor(){super(),this.map={ext:this.ext=new v}}get tag(){return"extLst"}prepare(h,s){this.ext.prepare(h,s)}hasContent(h){return this.ext.hasContent(h)}render(h,s){this.hasContent(s)&&(h.openNode("extLst"),this.ext.render(h,s),h.closeNode())}createNewModel(){return{}}onParserClose(h,s){Object.assign(this.model,s.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"headerFooter"}render(_,v){if(v){_.addRollback();let h=!1;_.openNode("headerFooter"),v.differentFirst&&(_.addAttribute("differentFirst","1"),h=!0),v.differentOddEven&&(_.addAttribute("differentOddEven","1"),h=!0),v.oddHeader&&"string"==typeof v.oddHeader&&(_.leafNode("oddHeader",null,v.oddHeader),h=!0),v.oddFooter&&"string"==typeof v.oddFooter&&(_.leafNode("oddFooter",null,v.oddFooter),h=!0),v.evenHeader&&"string"==typeof v.evenHeader&&(_.leafNode("evenHeader",null,v.evenHeader),h=!0),v.evenFooter&&"string"==typeof v.evenFooter&&(_.leafNode("evenFooter",null,v.evenFooter),h=!0),v.firstHeader&&"string"==typeof v.firstHeader&&(_.leafNode("firstHeader",null,v.firstHeader),h=!0),v.firstFooter&&"string"==typeof v.firstFooter&&(_.leafNode("firstFooter",null,v.firstFooter),h=!0),h?(_.closeNode(),_.commit()):_.rollback()}}parseOpen(_){switch(_.name){case"headerFooter":return this.model={},_.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(_.attributes.differentFirst,0)),_.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(_.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(_){switch(this.currentNode){case"oddHeader":this.model.oddHeader=_;break;case"oddFooter":this.model.oddFooter=_;break;case"evenHeader":this.model.evenHeader=_;break;case"evenFooter":this.model.evenFooter=_;break;case"firstHeader":this.model.firstHeader=_;break;case"firstFooter":this.model.firstFooter=_}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"hyperlink"}render(_,v){this.isInternalLink(v)?_.leafNode("hyperlink",{ref:v.address,"r:id":v.rId,tooltip:v.tooltip,location:v.target}):_.leafNode("hyperlink",{ref:v.address,"r:id":v.rId,tooltip:v.tooltip})}parseOpen(_){return"hyperlink"===_.name&&(this.model={address:_.attributes.ref,rId:_.attributes["r:id"],tooltip:_.attributes.tooltip},_.attributes.location&&(this.model.target=_.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(_){return _.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(_.target)}}},{"../base-xform":32}],99:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"mergeCell"}render(_,v){_.leafNode("mergeCell",{ref:v})}parseOpen(_){return"mergeCell"===_.name&&(this.model=_.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(o,E,R){"use strict";const m=o("../../../utils/under-dash"),_=o("../../../doc/range"),v=o("../../../utils/col-cache"),h=o("../../../doc/enums");E.exports=class{constructor(){this.merges={}}add(s){this.merges[s.master]?this.merges[s.master].expandToAddress(s.address):this.merges[s.master]=new _(`${s.master}:${s.address}`)}get mergeCells(){return m.map(this.merges,s=>s.range)}reconcile(s,b){m.each(s,O=>{const w=v.decode(O);for(let f=w.top;f<=w.bottom;f++){const k=b[f-1];for(let I=w.left;I<=w.right;I++){const x=k.cells[I-1];x?x.type===h.ValueType.Merge&&(x.master=w.tl):k.cells[I]={type:h.ValueType.Null,address:v.encodeAddress(f,I)}}}})}getMasterAddress(s){const b=this.hash[s];return b&&b.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(o,E,R){"use strict";const m=o("../base-xform"),_=v=>void 0!==v;E.exports=class extends m{get tag(){return"outlinePr"}render(v,h){return!(!h||!_(h.summaryBelow)&&!_(h.summaryRight)||(v.leafNode(this.tag,{summaryBelow:_(h.summaryBelow)?Number(h.summaryBelow):void 0,summaryRight:_(h.summaryRight)?Number(h.summaryRight):void 0}),0))}parseOpen(v){return v.name===this.tag&&(this.model={summaryBelow:_(v.attributes.summaryBelow)?!!Number(v.attributes.summaryBelow):void 0,summaryRight:_(v.attributes.summaryRight)?!!Number(v.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"brk"}render(_,v){_.leafNode("brk",v)}parseOpen(_){return"brk"===_.name&&(this.model=_.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(o,E,R){"use strict";const m=o("../../../utils/under-dash"),_=o("../base-xform");E.exports=class extends _{get tag(){return"pageMargins"}render(v,h){if(h){const s={left:h.left,right:h.right,top:h.top,bottom:h.bottom,header:h.header,footer:h.footer};m.some(s,b=>void 0!==b)&&v.leafNode(this.tag,s)}}parseOpen(v){return v.name===this.tag&&(this.model={left:parseFloat(v.attributes.left||.7),right:parseFloat(v.attributes.right||.7),top:parseFloat(v.attributes.top||.75),bottom:parseFloat(v.attributes.bottom||.75),header:parseFloat(v.attributes.header||.3),footer:parseFloat(v.attributes.footer||.3)},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"pageSetUpPr"}render(_,v){return!(!v||!v.fitToPage||(_.leafNode(this.tag,{fitToPage:v.fitToPage?"1":void 0}),0))}parseOpen(_){return _.name===this.tag&&(this.model={fitToPage:"1"===_.attributes.fitToPage},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(o,E,R){"use strict";const m=o("../../../utils/under-dash"),_=o("../base-xform");function v(O){return O?"1":void 0}function h(O){if("overThenDown"===O)return O}function s(O){switch(O){case"atEnd":case"asDisplyed":return O;default:return}}function b(O){switch(O){case"dash":case"blank":case"NA":return O;default:return}}E.exports=class extends _{get tag(){return"pageSetup"}render(O,w){if(w){const f={paperSize:w.paperSize,orientation:w.orientation,horizontalDpi:w.horizontalDpi,verticalDpi:w.verticalDpi,pageOrder:h(w.pageOrder),blackAndWhite:v(w.blackAndWhite),draft:v(w.draft),cellComments:s(w.cellComments),errors:b(w.errors),scale:w.scale,fitToWidth:w.fitToWidth,fitToHeight:w.fitToHeight,firstPageNumber:w.firstPageNumber,useFirstPageNumber:v(w.firstPageNumber),usePrinterDefaults:v(w.usePrinterDefaults),copies:w.copies};m.some(f,k=>void 0!==k)&&O.leafNode(this.tag,f)}}parseOpen(O){return O.name===this.tag&&(this.model={paperSize:(w=O.attributes.paperSize,void 0!==w?parseInt(w,10):void 0),orientation:O.attributes.orientation||"portrait",horizontalDpi:parseInt(O.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(O.attributes.verticalDpi||"4294967295",10),pageOrder:O.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===O.attributes.blackAndWhite,draft:"1"===O.attributes.draft,cellComments:O.attributes.cellComments||"None",errors:O.attributes.errors||"displayed",scale:parseInt(O.attributes.scale||"100",10),fitToWidth:parseInt(O.attributes.fitToWidth||"1",10),fitToHeight:parseInt(O.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(O.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===O.attributes.useFirstPageNumber,usePrinterDefaults:"1"===O.attributes.usePrinterDefaults,copies:parseInt(O.attributes.copies||"1",10)},!0);var w}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"picture"}render(_,v){v&&_.leafNode(this.tag,{"r:id":v.rId})}parseOpen(_){return _.name===this.tag&&(this.model={rId:_.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(o,E,R){"use strict";const m=o("../../../utils/under-dash"),_=o("../base-xform");function v(h){return h?"1":void 0}E.exports=class extends _{get tag(){return"printOptions"}render(h,s){if(s){const b={headings:v(s.showRowColHeaders),gridLines:v(s.showGridLines),horizontalCentered:v(s.horizontalCentered),verticalCentered:v(s.verticalCentered)};m.some(b,O=>void 0!==O)&&h.leafNode(this.tag,b)}}parseOpen(h){return h.name===this.tag&&(this.model={showRowColHeaders:"1"===h.attributes.headings,showGridLines:"1"===h.attributes.gridLines,horizontalCentered:"1"===h.attributes.horizontalCentered,verticalCentered:"1"===h.attributes.verticalCentered},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(o,E,R){"use strict";const m=o("./page-breaks-xform"),_=o("../list-xform");E.exports=class extends _{constructor(){super({tag:"rowBreaks",count:!0,childXform:new m})}render(v,h){if(h&&h.length){v.openNode(this.tag,this.$),this.count&&(v.addAttribute(this.$count,h.length),v.addAttribute("manualBreakCount",h.length));const{childXform:s}=this;h.forEach(b=>{s.render(v,b)}),v.closeNode()}else this.empty&&v.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("../../../utils/utils"),v=o("./cell-xform");E.exports=class extends m{constructor(h){super(),this.maxItems=h&&h.maxItems,this.map={c:new v}}get tag(){return"row"}prepare(h,s){const b=s.styles.addStyleModel(h.style);b&&(h.styleId=b);const O=this.map.c;h.cells.forEach(w=>{O.prepare(w,s)})}render(h,s,b){h.openNode("row"),h.addAttribute("r",s.number),s.height&&(h.addAttribute("ht",s.height),h.addAttribute("customHeight","1")),s.hidden&&h.addAttribute("hidden","1"),s.min>0&&s.max>0&&s.min<=s.max&&h.addAttribute("spans",`${s.min}:${s.max}`),s.styleId&&(h.addAttribute("s",s.styleId),h.addAttribute("customFormat","1")),h.addAttribute("x14ac:dyDescent","0.25"),s.outlineLevel&&h.addAttribute("outlineLevel",s.outlineLevel),s.collapsed&&h.addAttribute("collapsed","1");const O=this.map.c;s.cells.forEach(w=>{O.render(h,w,b)}),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;if("row"===h.name){this.numRowsSeen+=1;const s=h.attributes.spans?h.attributes.spans.split(":").map(O=>parseInt(O,10)):[void 0,void 0],b=this.model={number:parseInt(h.attributes.r,10),min:s[0],max:s[1],cells:[]};return h.attributes.s&&(b.styleId=parseInt(h.attributes.s,10)),_.parseBoolean(h.attributes.hidden)&&(b.hidden=!0),_.parseBoolean(h.attributes.bestFit)&&(b.bestFit=!0),h.attributes.ht&&(b.height=parseFloat(h.attributes.ht)),h.attributes.outlineLevel&&(b.outlineLevel=parseInt(h.attributes.outlineLevel,10)),_.parseBoolean(h.attributes.collapsed)&&(b.collapsed=!0),!0}return this.parser=this.map[h.name],!!this.parser&&(this.parser.parseOpen(h),!0)}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser){if(!this.parser.parseClose(h)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(h,s){h.style=h.styleId?s.styles.getStyleModel(h.styleId):{},void 0!==h.styleId&&(h.styleId=void 0);const b=this.map.c;h.cells.forEach(O=>{b.reconcile(O,s)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(o,E,R){"use strict";const m=o("../../../utils/under-dash"),_=o("../base-xform");E.exports=class extends _{get tag(){return"sheetFormatPr"}render(v,h){if(h){const s={defaultRowHeight:h.defaultRowHeight,outlineLevelRow:h.outlineLevelRow,outlineLevelCol:h.outlineLevelCol,"x14ac:dyDescent":h.dyDescent};h.defaultColWidth&&(s.defaultColWidth=h.defaultColWidth),h.defaultRowHeight&&15===h.defaultRowHeight||(s.customHeight="1"),m.some(s,b=>void 0!==b)&&v.leafNode("sheetFormatPr",s)}}parseOpen(v){return"sheetFormatPr"===v.name&&(this.model={defaultRowHeight:parseFloat(v.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(v.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(v.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(v.attributes.outlineLevelCol||"0",10)},v.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(v.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("../style/color-xform"),v=o("./page-setup-properties-xform"),h=o("./outline-properties-xform");E.exports=class extends m{constructor(){super(),this.map={tabColor:new _("tabColor"),pageSetUpPr:new v,outlinePr:new h}}get tag(){return"sheetPr"}render(s,b){if(b){s.addRollback(),s.openNode("sheetPr");let O=!1;O=this.map.tabColor.render(s,b.tabColor)||O,O=this.map.pageSetUpPr.render(s,b.pageSetup)||O,O=this.map.outlinePr.render(s,b.outlineProperties)||O,O?(s.closeNode(),s.commit()):s.rollback()}}parseOpen(s){return this.parser?(this.parser.parseOpen(s),!0):s.name===this.tag?(this.reset(),!0):!!this.map[s.name]&&(this.parser=this.map[s.name],this.parser.parseOpen(s),!0)}parseText(s){return!!this.parser&&(this.parser.parseText(s),!0)}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(o,E,R){"use strict";const m=o("../../../utils/under-dash"),_=o("../base-xform");function v(s,b){return s?b:void 0}function h(s,b){return s===b||void 0}E.exports=class extends _{get tag(){return"sheetProtection"}render(s,b){if(b){const O={sheet:v(b.sheet,"1"),selectLockedCells:!1===b.selectLockedCells?"1":void 0,selectUnlockedCells:!1===b.selectUnlockedCells?"1":void 0,formatCells:v(b.formatCells,"0"),formatColumns:v(b.formatColumns,"0"),formatRows:v(b.formatRows,"0"),insertColumns:v(b.insertColumns,"0"),insertRows:v(b.insertRows,"0"),insertHyperlinks:v(b.insertHyperlinks,"0"),deleteColumns:v(b.deleteColumns,"0"),deleteRows:v(b.deleteRows,"0"),sort:v(b.sort,"0"),autoFilter:v(b.autoFilter,"0"),pivotTables:v(b.pivotTables,"0")};b.sheet&&(O.algorithmName=b.algorithmName,O.hashValue=b.hashValue,O.saltValue=b.saltValue,O.spinCount=b.spinCount,O.objects=v(!1===b.objects,"1"),O.scenarios=v(!1===b.scenarios,"1")),m.some(O,w=>void 0!==w)&&s.leafNode(this.tag,O)}}parseOpen(s){return s.name===this.tag&&(this.model={sheet:h(s.attributes.sheet,"1"),objects:"1"!==s.attributes.objects&&void 0,scenarios:"1"!==s.attributes.scenarios&&void 0,selectLockedCells:"1"!==s.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==s.attributes.selectUnlockedCells&&void 0,formatCells:h(s.attributes.formatCells,"0"),formatColumns:h(s.attributes.formatColumns,"0"),formatRows:h(s.attributes.formatRows,"0"),insertColumns:h(s.attributes.insertColumns,"0"),insertRows:h(s.attributes.insertRows,"0"),insertHyperlinks:h(s.attributes.insertHyperlinks,"0"),deleteColumns:h(s.attributes.deleteColumns,"0"),deleteRows:h(s.attributes.deleteRows,"0"),sort:h(s.attributes.sort,"0"),autoFilter:h(s.attributes.autoFilter,"0"),pivotTables:h(s.attributes.pivotTables,"0")},s.attributes.algorithmName&&(this.model.algorithmName=s.attributes.algorithmName,this.model.hashValue=s.attributes.hashValue,this.model.saltValue=s.attributes.saltValue,this.model.spinCount=parseInt(s.attributes.spinCount,10)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(o,E,R){"use strict";const m=o("../../../utils/col-cache"),_=o("../base-xform"),v={frozen:"frozen",frozenSplit:"frozen",split:"split"};E.exports=class extends _{get tag(){return"sheetView"}prepare(h){switch(h.state){case"frozen":case"split":break;default:h.state="normal"}}render(h,s){h.openNode("sheetView",{workbookViewId:s.workbookViewId||0});const b=function(I,x,g){g&&h.addAttribute(I,x)};let O,w,f,k;switch(b("rightToLeft","1",!0===s.rightToLeft),b("tabSelected","1",s.tabSelected),b("showRuler","0",!1===s.showRuler),b("showRowColHeaders","0",!1===s.showRowColHeaders),b("showGridLines","0",!1===s.showGridLines),b("zoomScale",s.zoomScale,s.zoomScale),b("zoomScaleNormal",s.zoomScaleNormal,s.zoomScaleNormal),b("view",s.style,s.style),s.state){case"frozen":w=s.xSplit||0,f=s.ySplit||0,O=s.topLeftCell||m.getAddress(f+1,w+1).address,k=(s.xSplit&&s.ySplit?"bottomRight":s.xSplit&&"topRight")||"bottomLeft",h.leafNode("pane",{xSplit:s.xSplit||void 0,ySplit:s.ySplit||void 0,topLeftCell:O,activePane:k,state:"frozen"}),h.leafNode("selection",{pane:k,activeCell:s.activeCell,sqref:s.activeCell});break;case"split":"topLeft"===s.activePane&&(s.activePane=void 0),h.leafNode("pane",{xSplit:s.xSplit||void 0,ySplit:s.ySplit||void 0,topLeftCell:s.topLeftCell,activePane:s.activePane}),h.leafNode("selection",{pane:s.activePane,activeCell:s.activeCell,sqref:s.activeCell});break;case"normal":s.activeCell&&h.leafNode("selection",{activeCell:s.activeCell,sqref:s.activeCell})}h.closeNode()}parseOpen(h){switch(h.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(h.attributes.workbookViewId,10),rightToLeft:"1"===h.attributes.rightToLeft,tabSelected:"1"===h.attributes.tabSelected,showRuler:"0"!==h.attributes.showRuler,showRowColHeaders:"0"!==h.attributes.showRowColHeaders,showGridLines:"0"!==h.attributes.showGridLines,zoomScale:parseInt(h.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(h.attributes.zoomScaleNormal||"100",10),style:h.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(h.attributes.xSplit||"0",10),ySplit:parseInt(h.attributes.ySplit||"0",10),topLeftCell:h.attributes.topLeftCell,activePane:h.attributes.activePane||"topLeft",state:h.attributes.state},!0;case"selection":{const s=h.attributes.pane||"topLeft";return this.selections[s]={pane:s,activeCell:h.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(h){let s,b;return"sheetView"!==h||(this.sheetView&&this.pane?(s=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:v[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(s.activePane=this.pane.activePane),b=this.selections[this.pane.activePane],b&&b.activeCell&&(s.activeCell=b.activeCell),this.sheetView.style&&(s.style=this.sheetView.style)):(s=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},b=this.selections.topLeft,b&&b.activeCell&&(s.activeCell=b.activeCell),this.sheetView.style&&(s.style=this.sheetView.style)),!1)}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"tablePart"}render(_,v){v&&_.leafNode(this.tag,{"r:id":v.rId})}parseOpen(_){return _.name===this.tag&&(this.model={rId:_.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(o,E,R){"use strict";const m=o("../../../utils/under-dash"),_=o("../../../utils/col-cache"),v=o("../../../utils/xml-stream"),h=o("../../rel-type"),s=o("./merges"),b=o("../base-xform"),O=o("../list-xform"),w=o("./row-xform"),f=o("./col-xform"),k=o("./dimension-xform"),I=o("./hyperlink-xform"),x=o("./merge-cell-xform"),g=o("./data-validations-xform"),C=o("./sheet-properties-xform"),F=o("./sheet-format-properties-xform"),Y=o("./sheet-view-xform"),Q=o("./sheet-protection-xform"),se=o("./page-margins-xform"),ie=o("./page-setup-xform"),ee=o("./print-options-xform"),re=o("./auto-filter-xform"),ne=o("./picture-xform"),_e=o("./drawing-xform"),be=o("./table-part-xform"),oe=o("./row-breaks-xform"),me=o("./header-footer-xform"),we=o("./cf/conditional-formattings-xform"),N=o("./ext-lst-xform");class W extends b{constructor(X){super();const{maxRows:q,maxCols:ye,ignoreNodes:xe}=X||{};this.ignoreNodes=xe||[],this.map={sheetPr:new C,dimension:new k,sheetViews:new O({tag:"sheetViews",count:!1,childXform:new Y}),sheetFormatPr:new F,cols:new O({tag:"cols",count:!1,childXform:new f}),sheetData:new O({tag:"sheetData",count:!1,empty:!0,childXform:new w({maxItems:ye}),maxItems:q}),autoFilter:new re,mergeCells:new O({tag:"mergeCells",count:!0,childXform:new x}),rowBreaks:new oe,hyperlinks:new O({tag:"hyperlinks",count:!1,childXform:new I}),pageMargins:new se,dataValidations:new g,pageSetup:new ie,headerFooter:new me,printOptions:new ee,picture:new ne,drawing:new _e,sheetProtection:new Q,tableParts:new O({tag:"tableParts",count:!0,childXform:new be}),conditionalFormatting:new we,extLst:new N}}prepare(X,q){q.merges=new s,X.hyperlinks=q.hyperlinks=[],X.comments=q.comments=[],q.formulae={},q.siFormulae=0,this.map.cols.prepare(X.cols,q),this.map.sheetData.prepare(X.rows,q),this.map.conditionalFormatting.prepare(X.conditionalFormattings,q),X.mergeCells=q.merges.mergeCells;const ye=X.rels=[];function xe(he){return"rId"+(he.length+1)}if(X.hyperlinks.forEach(he=>{const Ie=xe(ye);he.rId=Ie,ye.push({Id:Ie,Type:h.Hyperlink,Target:he.target,TargetMode:"External"})}),X.comments.length>0){const he={Id:xe(ye),Type:h.Comments,Target:`../comments${X.id}.xml`};ye.push(he);const Ie={Id:xe(ye),Type:h.VmlDrawing,Target:`../drawings/vmlDrawing${X.id}.vml`};ye.push(Ie),X.comments.forEach(ce=>{ce.refAddress=_.decodeAddress(ce.ref)}),q.commentRefs.push({commentName:"comments"+X.id,vmlDrawing:"vmlDrawing"+X.id})}const ge=[];let Ee;X.media.forEach(he=>{if("background"===he.type){const Ie=xe(ye);Ee=q.media[he.imageId],ye.push({Id:Ie,Type:h.Image,Target:`../media/${Ee.name}.${Ee.extension}`}),X.background={rId:Ie},X.image=q.media[he.imageId]}else if("image"===he.type){let{drawing:Ie}=X;Ee=q.media[he.imageId],Ie||(Ie=X.drawing={rId:xe(ye),name:"drawing"+ ++q.drawingsCount,anchors:[],rels:[]},q.drawings.push(Ie),ye.push({Id:Ie.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${Ie.name}.xml`}));let ce=this.preImageId===he.imageId?ge[he.imageId]:ge[Ie.rels.length];ce||(ce=xe(Ie.rels),ge[Ie.rels.length]=ce,Ie.rels.push({Id:ce,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${Ee.name}.${Ee.extension}`}));const de={picture:{rId:ce},range:he.range};if(he.hyperlinks&&he.hyperlinks.hyperlink){const pe=xe(Ie.rels);ge[Ie.rels.length]=pe,de.picture.hyperlinks={tooltip:he.hyperlinks.tooltip,rId:pe},Ie.rels.push({Id:pe,Type:h.Hyperlink,Target:he.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=he.imageId,Ie.anchors.push(de)}}),X.tables.forEach(he=>{const Ie=xe(ye);he.rId=Ie,ye.push({Id:Ie,Type:h.Table,Target:"../tables/"+he.target}),he.columns.forEach(ce=>{const{style:de}=ce;de&&(ce.dxfId=q.styles.addDxfStyle(de))})}),this.map.extLst.prepare(X,q)}render(X,q){X.openXml(v.StdDocAttributes),X.openNode("worksheet",W.WORKSHEET_ATTRIBUTES);const ye=q.properties?{defaultRowHeight:q.properties.defaultRowHeight,dyDescent:q.properties.dyDescent,outlineLevelCol:q.properties.outlineLevelCol,outlineLevelRow:q.properties.outlineLevelRow}:void 0;q.properties&&q.properties.defaultColWidth&&(ye.defaultColWidth=q.properties.defaultColWidth);const ge=q.pageSetup&&q.pageSetup.margins,Ee={showRowColHeaders:q.pageSetup&&q.pageSetup.showRowColHeaders,showGridLines:q.pageSetup&&q.pageSetup.showGridLines,horizontalCentered:q.pageSetup&&q.pageSetup.horizontalCentered,verticalCentered:q.pageSetup&&q.pageSetup.verticalCentered},he=q.sheetProtection;this.map.sheetPr.render(X,{outlineProperties:q.properties&&q.properties.outlineProperties,tabColor:q.properties&&q.properties.tabColor,pageSetup:q.pageSetup&&q.pageSetup.fitToPage?{fitToPage:q.pageSetup.fitToPage}:void 0}),this.map.dimension.render(X,q.dimensions),this.map.sheetViews.render(X,q.views),this.map.sheetFormatPr.render(X,ye),this.map.cols.render(X,q.cols),this.map.sheetData.render(X,q.rows),this.map.sheetProtection.render(X,he),this.map.autoFilter.render(X,q.autoFilter),this.map.mergeCells.render(X,q.mergeCells),this.map.conditionalFormatting.render(X,q.conditionalFormattings),this.map.dataValidations.render(X,q.dataValidations),this.map.hyperlinks.render(X,q.hyperlinks),this.map.printOptions.render(X,Ee),this.map.pageMargins.render(X,ge),this.map.pageSetup.render(X,q.pageSetup),this.map.headerFooter.render(X,q.headerFooter),this.map.rowBreaks.render(X,q.rowBreaks),this.map.drawing.render(X,q.drawing),this.map.picture.render(X,q.background),this.map.tableParts.render(X,q.tables),this.map.extLst.render(X,q),q.rels&&q.rels.forEach(Ie=>{Ie.Type===h.VmlDrawing&&X.leafNode("legacyDrawing",{"r:id":Ie.Id})}),X.closeNode()}parseOpen(X){return this.parser?(this.parser.parseOpen(X),!0):"worksheet"===X.name?(m.each(this.map,q=>{q.reset()}),!0):(this.map[X.name]&&!this.ignoreNodes.includes(X.name)&&(this.parser=this.map[X.name],this.parser.parseOpen(X)),!0)}parseText(X){this.parser&&this.parser.parseText(X)}parseClose(X){if(this.parser)return this.parser.parseClose(X)||(this.parser=void 0),!0;if("worksheet"===X){const q=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(q.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(q.outlineProperties=this.map.sheetPr.model.outlineProperties);const xe=Object.assign({fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},this.map.pageSetup.model,this.map.printOptions.model),ge=((z,X)=>{if(!X||!X.length)return z;if(!z||!z.length)return X;const q={},ye={};return z.forEach(xe=>{q[xe.ref]=xe,xe.rules.forEach(ge=>{const{x14Id:Ee}=ge;Ee&&(ye[Ee]=ge)})}),X.forEach(xe=>{xe.rules.forEach(ge=>{const Ee=ye[ge.x14Id];var he,Ie;Ee?(he=Ee,Ie=ge,Object.keys(Ie).forEach(ce=>{const pe=Ie[ce];void 0===he[ce]&&void 0!==pe&&(he[ce]=pe)})):q[xe.ref]?q[xe.ref].rules.push(ge):z.push({ref:xe.ref,rules:[ge]})})}),z})(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:q,views:this.map.sheetViews.model,pageSetup:xe,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:ge},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}reconcile(X,q){const ye=(X.relationships||[]).reduce((ge,Ee)=>{if(ge[Ee.Id]=Ee,Ee.Type===h.Comments&&(X.comments=q.comments[Ee.Target].comments),Ee.Type===h.VmlDrawing&&X.comments&&X.comments.length){const he=q.vmlDrawings[Ee.Target].comments;X.comments.forEach((Ie,ce)=>{Ie.note=Object.assign({},Ie.note,he[ce])})}return ge},{});if(q.commentsMap=(X.comments||[]).reduce((ge,Ee)=>(Ee.ref&&(ge[Ee.ref]=Ee),ge),{}),q.hyperlinkMap=(X.hyperlinks||[]).reduce((ge,Ee)=>(Ee.rId&&(ge[Ee.address]=ye[Ee.rId].Target),ge),{}),q.formulae={},X.rows=X.rows&&X.rows.filter(Boolean)||[],X.rows.forEach(ge=>{ge.cells=ge.cells&&ge.cells.filter(Boolean)||[]}),this.map.cols.reconcile(X.cols,q),this.map.sheetData.reconcile(X.rows,q),this.map.conditionalFormatting.reconcile(X.conditionalFormattings,q),X.media=[],X.drawing){const ge=ye[X.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);ge&&q.drawings[ge[1]].anchors.forEach(he=>{he.medium&&X.media.push({type:"image",imageId:he.medium.index,range:he.range,hyperlinks:he.picture.hyperlinks})})}const xe=X.background&&ye[X.background.rId];if(xe){const ge=xe.Target.split("/media/")[1],Ee=q.mediaIndex&&q.mediaIndex[ge];void 0!==Ee&&X.media.push({type:"background",imageId:Ee})}X.tables=(X.tables||[]).map(ge=>q.tables[ye[ge.rId].Target]),delete X.relationships,delete X.hyperlinks,delete X.comments}}W.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},E.exports=W},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{constructor(_){super(),this.tag=_.tag,this.attr=_.attr}render(_,v){v&&(_.openNode(this.tag),_.closeNode())}parseOpen(_){_.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{constructor(_){super(),this.tag=_.tag,this.attr=_.attr,this.attrs=_.attrs,this._format=_.format||function(v){try{return Number.isNaN(v.getTime())?"":v.toISOString()}catch{return""}},this._parse=_.parse||function(v){return new Date(v)}}render(_,v){v&&(_.openNode(this.tag),this.attrs&&_.addAttributes(this.attrs),this.attr?_.addAttribute(this.attr,this._format(v)):_.writeText(this._format(v)),_.closeNode())}parseOpen(_){_.name===this.tag&&(this.attr?this.model=this._parse(_.attributes[this.attr]):this.text=[])}parseText(_){this.attr||this.text.push(_)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{constructor(_){super(),this.tag=_.tag,this.attr=_.attr,this.attrs=_.attrs,this.zero=_.zero}render(_,v){(v||this.zero)&&(_.openNode(this.tag),this.attrs&&_.addAttributes(this.attrs),this.attr?_.addAttribute(this.attr,v):_.writeText(v),_.closeNode())}parseOpen(_){return _.name===this.tag&&(this.attr?this.model=parseInt(_.attributes[this.attr],10):this.text=[],!0)}parseText(_){this.attr||this.text.push(_)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{constructor(_){super(),this.tag=_.tag,this.attr=_.attr,this.attrs=_.attrs}render(_,v){void 0!==v&&(_.openNode(this.tag),this.attrs&&_.addAttributes(this.attrs),this.attr?_.addAttribute(this.attr,v):_.writeText(v),_.closeNode())}parseOpen(_){_.name===this.tag&&(this.attr?this.model=_.attributes[this.attr]:this.text=[])}parseText(_){this.attr||this.text.push(_)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(o,E,R){"use strict";const m=o("./base-xform"),_=o("../../utils/xml-stream");E.exports=class extends m{constructor(v){super(),this._model=v}render(v){if(!this._xml){const h=new _;(function s(b,O){b.openNode(O.tag,O.$),O.c&&O.c.forEach(w=>{s(b,w)}),O.t&&b.writeText(O.t),b.closeNode()})(h,this._model),this._xml=h.xml}v.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(v){return v!==this._model.tag}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(o,E,R){"use strict";const m=o("./text-xform"),_=o("./rich-text-xform"),v=o("../base-xform");E.exports=class extends v{constructor(){super(),this.map={r:new _,t:new m}}get tag(){return"rPh"}render(h,s){if(h.openNode(this.tag,{sb:s.sb||0,eb:s.eb||0}),s&&s.hasOwnProperty("richText")&&s.richText){const{r:b}=this.map;s.richText.forEach(O=>{b.render(h,O)})}else s&&this.map.t.render(h,s.text);h.closeNode()}parseOpen(h){const{name:s}=h;return this.parser?(this.parser.parseOpen(h),!0):s===this.tag?(this.model={sb:parseInt(h.attributes.sb,10),eb:parseInt(h.attributes.eb,10)},!0):(this.parser=this.map[s],!!this.parser&&(this.parser.parseOpen(h),!0))}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser){if(!this.parser.parseClose(h)){switch(h){case"r":{let s=this.model.richText;s||(s=this.model.richText=[]),s.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return h!==this.tag}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(o,E,R){"use strict";const m=o("./text-xform"),_=o("../style/font-xform"),v=o("../base-xform");class h extends v{constructor(b){super(),this.model=b}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new m)}get fontXform(){return this._fontXform||(this._fontXform=new _(h.FONT_OPTIONS))}render(b,O){O=O||this.model,b.openNode("r"),O.font&&this.fontXform.render(b,O.font),this.textXform.render(b,O.text),b.closeNode()}parseOpen(b){if(this.parser)return this.parser.parseOpen(b),!0;switch(b.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(b),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(b),!0;default:return!1}}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){switch(b){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(b),!0}}}h.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},E.exports=h},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(o,E,R){"use strict";const m=o("./text-xform"),_=o("./rich-text-xform"),v=o("./phonetic-text-xform"),h=o("../base-xform");E.exports=class extends h{constructor(s){super(),this.model=s,this.map={r:new _,t:new m,rPh:new v}}get tag(){return"si"}render(s,b){s.openNode(this.tag),b&&b.hasOwnProperty("richText")&&b.richText?b.richText.length?b.richText.forEach(O=>{this.map.r.render(s,O)}):this.map.t.render(s,""):null!=b&&this.map.t.render(s,b),s.closeNode()}parseOpen(s){const{name:b}=s;return this.parser?(this.parser.parseOpen(s),!0):b===this.tag?(this.model={},!0):(this.parser=this.map[b],!!this.parser&&(this.parser.parseOpen(s),!0))}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser){if(!this.parser.parseClose(s)){switch(s){case"r":{let b=this.model.richText;b||(b=this.model.richText=[]),b.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}return s!==this.tag}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(o,E,R){"use strict";const m=o("../../../utils/xml-stream"),_=o("../base-xform"),v=o("./shared-string-xform");E.exports=class extends _{constructor(h){super(),this.model=h||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new v)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(h){return this.model.values[h]}add(h){return h.richText?this.addRichText(h):this.addText(h)}addText(h){let s=this.hash[h];return void 0===s&&(s=this.hash[h]=this.model.values.length,this.model.values.push(h)),this.model.count++,s}addRichText(h){const s=this.sharedStringXform.toXml(h);let b=this.rich[s];return void 0===b&&(b=this.rich[s]=this.model.values.length,this.model.values.push(h)),this.model.count++,b}render(h,s){s=s||this._values,h.openXml(m.StdDocAttributes),h.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:s.count,uniqueCount:s.values.length});const b=this.sharedStringXform;s.values.forEach(O=>{b.render(h,O)}),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(h),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(h))}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if("sst"===h)return!1;throw new Error("Unexpected xml node in parseClose: "+h)}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"t"}render(_,v){_.openNode("t"),/^\s|\n|\s$/.test(v)&&_.addAttribute("xml:space","preserve"),_.writeText(v),_.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(_,v)=>String.fromCharCode(parseInt(v,16)))}parseOpen(_){return"t"===_.name&&(this._text=[],!0)}parseText(_){this._text.push(_)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(o,E,R){"use strict";const m=o("../../../doc/enums"),_=o("../../../utils/utils"),v=o("../base-xform"),h={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((b,O)=>(b[O]=!0,b),{}),horizontal(b){return this.horizontalValues[b]?b:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((b,O)=>(b[O]=!0,b),{}),vertical(b){return"middle"===b?"center":this.verticalValues[b]?b:void 0},wrapText:b=>!!b||void 0,shrinkToFit:b=>!!b||void 0,textRotation:b=>"vertical"===b||(b=_.validInt(b))>=-90&&b<=90?b:void 0,indent:b=>(b=_.validInt(b),Math.max(0,b)),readingOrder(b){switch(b){case"ltr":return m.ReadingOrder.LeftToRight;case"rtl":return m.ReadingOrder.RightToLeft;default:return}}},s={toXml(b){if(b=h.textRotation(b)){if("vertical"===b)return 255;const O=Math.round(b);if(O>=0&&O<=90)return O;if(O<0&&O>=-90)return 90-O}},toModel(b){const O=_.validInt(b);if(void 0!==O){if(255===O)return"vertical";if(O>=0&&O<=90)return O;if(O>90&&O<=180)return 90-O}}};E.exports=class extends v{get tag(){return"alignment"}render(b,O){b.addRollback(),b.openNode("alignment");let w=!1;function f(k,I){I&&(b.addAttribute(k,I),w=!0)}f("horizontal",h.horizontal(O.horizontal)),f("vertical",h.vertical(O.vertical)),f("wrapText",!!h.wrapText(O.wrapText)&&"1"),f("shrinkToFit",!!h.shrinkToFit(O.shrinkToFit)&&"1"),f("indent",h.indent(O.indent)),f("textRotation",s.toXml(O.textRotation)),f("readingOrder",h.readingOrder(O.readingOrder)),b.closeNode(),w?b.commit():b.rollback()}parseOpen(b){const O={};let w=!1;function f(k,I,x){k&&(O[I]=x,w=!0)}f(b.attributes.horizontal,"horizontal",b.attributes.horizontal),f(b.attributes.vertical,"vertical","center"===b.attributes.vertical?"middle":b.attributes.vertical),f(b.attributes.wrapText,"wrapText",_.parseBoolean(b.attributes.wrapText)),f(b.attributes.shrinkToFit,"shrinkToFit",_.parseBoolean(b.attributes.shrinkToFit)),f(b.attributes.indent,"indent",parseInt(b.attributes.indent,10)),f(b.attributes.textRotation,"textRotation",s.toModel(b.attributes.textRotation)),f(b.attributes.readingOrder,"readingOrder","2"===b.attributes.readingOrder?"rtl":"ltr"),this.model=w?O:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("../../../utils/utils"),v=o("./color-xform");class h extends m{constructor(b){super(),this.name=b,this.map={color:new v}}get tag(){return this.name}render(b,O,w){const f=O&&O.color||w||this.defaultColor;b.openNode(this.name),O&&O.style&&(b.addAttribute("style",O.style),f&&this.map.color.render(b,f)),b.closeNode()}parseOpen(b){if(this.parser)return this.parser.parseOpen(b),!0;switch(b.name){case this.name:{const{style:O}=b.attributes;return this.model=O?{style:O}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(b),!0;default:return!1}}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):(b===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(b){return h.validStyleValues[b]}}h.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((s,b)=>(s[b]=!0,s),{}),E.exports=class extends m{constructor(){super(),this.map={top:new h("top"),left:new h("left"),bottom:new h("bottom"),right:new h("right"),diagonal:new h("diagonal")}}render(s,b){const{color:O}=b;function w(f,k){f&&!f.color&&b.color&&(f={...f,color:b.color}),k.render(s,f,O)}s.openNode("border"),b.diagonal&&b.diagonal.style&&(b.diagonal.up&&s.addAttribute("diagonalUp","1"),b.diagonal.down&&s.addAttribute("diagonalDown","1")),w(b.left,this.map.left),w(b.right,this.map.right),w(b.top,this.map.top),w(b.bottom,this.map.bottom),w(b.diagonal,this.map.diagonal),s.closeNode()}parseOpen(s){return this.parser?(this.parser.parseOpen(s),!0):"border"===s.name?(this.reset(),this.diagonalUp=_.parseBoolean(s.attributes.diagonalUp),this.diagonalDown=_.parseBoolean(s.attributes.diagonalDown),!0):(this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0))}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;if("border"===s){const b=this.model={},O=function(w,f,k){f&&(k&&Object.assign(f,k),b[w]=f)};O("left",this.map.left.model),O("right",this.map.right.model),O("top",this.map.top.model),O("bottom",this.map.bottom.model),O("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{constructor(_){super(),this.name=_||"color"}get tag(){return this.name}render(_,v){return!!v&&(_.openNode(this.name),v.argb?_.addAttribute("rgb",v.argb):void 0!==v.theme?(_.addAttribute("theme",v.theme),void 0!==v.tint&&_.addAttribute("tint",v.tint)):void 0!==v.indexed?_.addAttribute("indexed",v.indexed):_.addAttribute("auto","1"),_.closeNode(),!0)}parseOpen(_){return _.name===this.name&&(_.attributes.rgb?this.model={argb:_.attributes.rgb}:_.attributes.theme?(this.model={theme:parseInt(_.attributes.theme,10)},_.attributes.tint&&(this.model.tint=parseFloat(_.attributes.tint))):this.model=_.attributes.indexed?{indexed:parseInt(_.attributes.indexed,10)}:void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("./alignment-xform"),v=o("./border-xform"),h=o("./fill-xform"),s=o("./font-xform"),b=o("./numfmt-xform"),O=o("./protection-xform");E.exports=class extends m{constructor(){super(),this.map={alignment:new _,border:new v,fill:new h,font:new s,numFmt:new b,protection:new O}}get tag(){return"dxf"}render(w,f){w.openNode(this.tag),f.font&&this.map.font.render(w,f.font),f.numFmt&&f.numFmtId&&this.map.numFmt.render(w,{id:f.numFmtId,formatCode:f.numFmt}),f.fill&&this.map.fill.render(w,f.fill),f.alignment&&this.map.alignment.render(w,f.alignment),f.border&&this.map.border.render(w,f.border),f.protection&&this.map.protection.render(w,f.protection),w.closeNode()}parseOpen(w){return this.parser?(this.parser.parseOpen(w),!0):w.name===this.tag?(this.reset(),!0):(this.parser=this.map[w.name],this.parser&&this.parser.parseOpen(w),!0)}parseText(w){this.parser&&this.parser.parseText(w)}parseClose(w){return this.parser?(this.parser.parseClose(w)||(this.parser=void 0),!0):w!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("./color-xform");class v extends m{constructor(){super(),this.map={color:new _}}get tag(){return"stop"}render(w,f){w.openNode("stop"),w.addAttribute("position",f.position),this.map.color.render(w,f.color),w.closeNode()}parseOpen(w){if(this.parser)return this.parser.parseOpen(w),!0;switch(w.name){case"stop":return this.model={position:parseFloat(w.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(w),!0;default:return!1}}parseText(){}parseClose(w){return!!this.parser&&(this.parser.parseClose(w)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class h extends m{constructor(){super(),this.map={fgColor:new _("fgColor"),bgColor:new _("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(w,f){w.openNode("patternFill"),w.addAttribute("patternType",f.pattern),f.fgColor&&this.map.fgColor.render(w,f.fgColor),f.bgColor&&this.map.bgColor.render(w,f.bgColor),w.closeNode()}parseOpen(w){return this.parser?(this.parser.parseOpen(w),!0):"patternFill"===w.name?(this.model={type:"pattern",pattern:w.attributes.patternType},!0):(this.parser=this.map[w.name],!!this.parser&&(this.parser.parseOpen(w),!0))}parseText(w){this.parser&&this.parser.parseText(w)}parseClose(w){return!!this.parser&&(this.parser.parseClose(w)||(this.parser.model&&(this.model[w]=this.parser.model),this.parser=void 0),!0)}}class s extends m{constructor(){super(),this.map={stop:new v}}get name(){return"gradient"}get tag(){return"gradientFill"}render(w,f){switch(w.openNode("gradientFill"),f.gradient){case"angle":w.addAttribute("degree",f.degree);break;case"path":w.addAttribute("type","path"),f.center.left&&(w.addAttribute("left",f.center.left),void 0===f.center.right&&w.addAttribute("right",f.center.left)),f.center.right&&w.addAttribute("right",f.center.right),f.center.top&&(w.addAttribute("top",f.center.top),void 0===f.center.bottom&&w.addAttribute("bottom",f.center.top)),f.center.bottom&&w.addAttribute("bottom",f.center.bottom)}const k=this.map.stop;f.stops.forEach(I=>{k.render(w,I)}),w.closeNode()}parseOpen(w){if(this.parser)return this.parser.parseOpen(w),!0;switch(w.name){case"gradientFill":{const f=this.model={stops:[]};return w.attributes.degree?(f.gradient="angle",f.degree=parseInt(w.attributes.degree,10)):"path"===w.attributes.type&&(f.gradient="path",f.center={left:w.attributes.left?parseFloat(w.attributes.left):0,top:w.attributes.top?parseFloat(w.attributes.top):0},w.attributes.right!==w.attributes.left&&(f.center.right=w.attributes.right?parseFloat(w.attributes.right):0),w.attributes.bottom!==w.attributes.top&&(f.center.bottom=w.attributes.bottom?parseFloat(w.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(w),!0;default:return!1}}parseText(w){this.parser&&this.parser.parseText(w)}parseClose(w){return!!this.parser&&(this.parser.parseClose(w)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class b extends m{constructor(){super(),this.map={patternFill:new h,gradientFill:new s}}get tag(){return"fill"}render(w,f){switch(w.addRollback(),w.openNode("fill"),f.type){case"pattern":this.map.patternFill.render(w,f);break;case"gradient":this.map.gradientFill.render(w,f);break;default:return void w.rollback()}w.closeNode(),w.commit()}parseOpen(w){return this.parser?(this.parser.parseOpen(w),!0):"fill"===w.name?(this.model={},!0):(this.parser=this.map[w.name],!!this.parser&&(this.parser.parseOpen(w),!0))}parseText(w){this.parser&&this.parser.parseText(w)}parseClose(w){return!!this.parser&&(this.parser.parseClose(w)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(w){return b.validPatternValues[w]}}b.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((O,w)=>(O[w]=!0,O),{}),b.StopXform=v,b.PatternFillXform=h,b.GradientFillXform=s,E.exports=b},{"../base-xform":32,"./color-xform":128}],131:[function(o,E,R){"use strict";const m=o("./color-xform"),_=o("../simple/boolean-xform"),v=o("../simple/integer-xform"),h=o("../simple/string-xform"),s=o("./underline-xform"),b=o("../../../utils/under-dash"),O=o("../base-xform");class w extends O{constructor(k){super(),this.options=k||w.OPTIONS,this.map={b:{prop:"bold",xform:new _({tag:"b",attr:"val"})},i:{prop:"italic",xform:new _({tag:"i",attr:"val"})},u:{prop:"underline",xform:new s},charset:{prop:"charset",xform:new v({tag:"charset",attr:"val"})},color:{prop:"color",xform:new m},condense:{prop:"condense",xform:new _({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new _({tag:"extend",attr:"val"})},family:{prop:"family",xform:new v({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new _({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new h({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new h({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new _({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new _({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new v({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new h({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(k,I){const{map:x}=this;k.openNode(this.options.tagName),b.each(this.map,(g,C)=>{x[C].xform.render(k,I[g.prop])}),k.closeNode()}parseOpen(k){return this.parser?(this.parser.parseOpen(k),!0):this.map[k.name]?(this.parser=this.map[k.name].xform,this.parser.parseOpen(k)):k.name===this.options.tagName&&(this.model={},!0)}parseText(k){this.parser&&this.parser.parseText(k)}parseClose(k){return this.parser&&!this.parser.parseClose(k)?(this.parser.model&&(this.model[this.map[k].prop]=this.parser.model),this.parser=void 0,!0):k!==this.options.tagName}}w.OPTIONS={tagName:"font",fontNameTag:"name"},E.exports=w},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(o,E,R){"use strict";const m=o("../../../utils/under-dash"),_=o("../../defaultnumformats"),v=o("../base-xform"),h=function(){const b={};return m.each(_,(O,w)=>{O.f&&(b[O.f]=parseInt(w,10))}),b}();class s extends v{constructor(O,w){super(),this.id=O,this.formatCode=w}get tag(){return"numFmt"}render(O,w){O.leafNode("numFmt",{numFmtId:w.id,formatCode:w.formatCode})}parseOpen(O){return"numFmt"===O.name&&(this.model={id:parseInt(O.attributes.numFmtId,10),formatCode:O.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}parseText(){}parseClose(){return!1}}s.getDefaultFmtId=function(b){return h[b]},s.getDefaultFmtCode=function(b){return _[b]&&_[b].f},E.exports=s},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(o,E,R){"use strict";const m=o("../base-xform"),__boolean=(v,h)=>void 0===v?h:v;E.exports=class extends m{get tag(){return"protection"}render(v,h){v.addRollback(),v.openNode("protection");let s=!1;function b(O,w){void 0!==w&&(v.addAttribute(O,w),s=!0)}b("locked",__boolean(h.locked,!0)?void 0:"0"),b("hidden",__boolean(h.hidden,!1)?"1":void 0),v.closeNode(),s?v.commit():v.rollback()}parseOpen(v){const h={locked:"0"!==v.attributes.locked,hidden:"1"===v.attributes.hidden};this.model=!h.locked||h.hidden?h:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("./alignment-xform"),v=o("./protection-xform");E.exports=class extends m{constructor(h){super(),this.xfId=!(!h||!h.xfId),this.map={alignment:new _,protection:new v}}get tag(){return"xf"}render(h,s){h.openNode("xf",{numFmtId:s.numFmtId||0,fontId:s.fontId||0,fillId:s.fillId||0,borderId:s.borderId||0}),this.xfId&&h.addAttribute("xfId",s.xfId||0),s.numFmtId&&h.addAttribute("applyNumberFormat","1"),s.fontId&&h.addAttribute("applyFont","1"),s.fillId&&h.addAttribute("applyFill","1"),s.borderId&&h.addAttribute("applyBorder","1"),s.alignment&&h.addAttribute("applyAlignment","1"),s.protection&&h.addAttribute("applyProtection","1"),s.alignment&&this.map.alignment.render(h,s.alignment),s.protection&&this.map.protection.render(h,s.protection),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"xf":return this.model={numFmtId:parseInt(h.attributes.numFmtId,10),fontId:parseInt(h.attributes.fontId,10),fillId:parseInt(h.attributes.fillId,10),borderId:parseInt(h.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(h.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(h),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(h),!0;default:return!1}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){return this.parser?(this.parser.parseClose(h)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==h}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(o,E,R){"use strict";const m=o("../../../doc/enums"),_=o("../../../utils/xml-stream"),v=o("../base-xform"),h=o("../static-xform"),s=o("../list-xform"),b=o("./font-xform"),O=o("./fill-xform"),w=o("./border-xform"),f=o("./numfmt-xform"),k=o("./style-xform"),I=o("./dxf-xform");class x extends v{constructor(C){super(),this.map={numFmts:new s({tag:"numFmts",count:!0,childXform:new f}),fonts:new s({tag:"fonts",count:!0,childXform:new b,$:{"x14ac:knownFonts":1}}),fills:new s({tag:"fills",count:!0,childXform:new O}),borders:new s({tag:"borders",count:!0,childXform:new w}),cellStyleXfs:new s({tag:"cellStyleXfs",count:!0,childXform:new k}),cellXfs:new s({tag:"cellXfs",count:!0,childXform:new k({xfId:!0})}),dxfs:new s({tag:"dxfs",always:!0,count:!0,childXform:new I}),numFmt:new f,font:new b,fill:new O,border:new w,style:new k({xfId:!0}),cellStyles:x.STATIC_XFORMS.cellStyles,tableStyles:x.STATIC_XFORMS.tableStyles,extLst:x.STATIC_XFORMS.extLst},C&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(C,F){F=F||this.model,C.openXml(_.StdDocAttributes),C.openNode("styleSheet",x.STYLESHEET_ATTRIBUTES),this.index?(F.numFmts&&F.numFmts.length&&(C.openNode("numFmts",{count:F.numFmts.length}),F.numFmts.forEach(Y=>{C.writeXml(Y)}),C.closeNode()),F.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),C.openNode("fonts",{count:F.fonts.length,"x14ac:knownFonts":1}),F.fonts.forEach(Y=>{C.writeXml(Y)}),C.closeNode(),C.openNode("fills",{count:F.fills.length}),F.fills.forEach(Y=>{C.writeXml(Y)}),C.closeNode(),C.openNode("borders",{count:F.borders.length}),F.borders.forEach(Y=>{C.writeXml(Y)}),C.closeNode(),this.map.cellStyleXfs.render(C,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),C.openNode("cellXfs",{count:F.styles.length}),F.styles.forEach(Y=>{C.writeXml(Y)}),C.closeNode()):(this.map.numFmts.render(C,F.numFmts),this.map.fonts.render(C,F.fonts),this.map.fills.render(C,F.fills),this.map.borders.render(C,F.borders),this.map.cellStyleXfs.render(C,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(C,F.styles)),x.STATIC_XFORMS.cellStyles.render(C),this.map.dxfs.render(C,F.dxfs),x.STATIC_XFORMS.tableStyles.render(C),x.STATIC_XFORMS.extLst.render(C),C.closeNode()}parseOpen(C){return this.parser?(this.parser.parseOpen(C),!0):"styleSheet"===C.name?(this.initIndex(),!0):(this.parser=this.map[C.name],this.parser&&this.parser.parseOpen(C),!0)}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){if(this.parser)return this.parser.parseClose(C)||(this.parser=void 0),!0;if("styleSheet"===C){this.model={};const F=(Y,Q)=>{Q.model&&Q.model.length&&(this.model[Y]=Q.model)};if(F("numFmts",this.map.numFmts),F("fonts",this.map.fonts),F("fills",this.map.fills),F("borders",this.map.borders),F("styles",this.map.cellXfs),F("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const Y=this.index.numFmt;this.model.numFmts.forEach(Q=>{Y[Q.id]=Q.formatCode})}return!1}return!0}addStyleModel(C,F){if(!C)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(C))return this.weakMap.get(C);const Y={};if(F=F||m.ValueType.Number,C.numFmt)Y.numFmtId=this._addNumFmtStr(C.numFmt);else switch(F){case m.ValueType.Number:Y.numFmtId=this._addNumFmtStr("General");break;case m.ValueType.Date:Y.numFmtId=this._addNumFmtStr("mm-dd-yy")}C.font&&(Y.fontId=this._addFont(C.font)),C.border&&(Y.borderId=this._addBorder(C.border)),C.fill&&(Y.fillId=this._addFill(C.fill)),C.alignment&&(Y.alignment=C.alignment),C.protection&&(Y.protection=C.protection);const Q=this._addStyle(Y);return this.weakMap&&this.weakMap.set(C,Q),Q}getStyleModel(C){const F=this.model.styles[C];if(!F)return null;let Y=this.index.model[C];if(Y)return Y;if(Y=this.index.model[C]={},F.numFmtId){const se=this.index.numFmt[F.numFmtId]||f.getDefaultFmtCode(F.numFmtId);se&&(Y.numFmt=se)}function Q(se,ie,ee){if(ee||0===ee){const re=ie[ee];re&&(Y[se]=re)}}return Q("font",this.model.fonts,F.fontId),Q("border",this.model.borders,F.borderId),Q("fill",this.model.fills,F.fillId),F.alignment&&(Y.alignment=F.alignment),F.protection&&(Y.protection=F.protection),Y}addDxfStyle(C){return C.numFmt&&(C.numFmtId=this._addNumFmtStr(C.numFmt)),this.model.dxfs.push(C),this.model.dxfs.length-1}getDxfStyle(C){return this.model.dxfs[C]}_addStyle(C){const F=this.map.style.toXml(C);let Y=this.index.style[F];return void 0===Y&&(Y=this.index.style[F]=this.model.styles.length,this.model.styles.push(F)),Y}_addNumFmtStr(C){let F=f.getDefaultFmtId(C);if(void 0!==F||(F=this.index.numFmt[C],void 0!==F))return F;F=this.index.numFmt[C]=164+this.model.numFmts.length;const Y=this.map.numFmt.toXml({id:F,formatCode:C});return this.model.numFmts.push(Y),F}_addFont(C){const F=this.map.font.toXml(C);let Y=this.index.font[F];return void 0===Y&&(Y=this.index.font[F]=this.model.fonts.length,this.model.fonts.push(F)),Y}_addBorder(C){const F=this.map.border.toXml(C);let Y=this.index.border[F];return void 0===Y&&(Y=this.index.border[F]=this.model.borders.length,this.model.borders.push(F)),Y}_addFill(C){const F=this.map.fill.toXml(C);let Y=this.index.fill[F];return void 0===Y&&(Y=this.index.fill[F]=this.model.fills.length,this.model.fills.push(F)),Y}}x.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},x.STATIC_XFORMS={cellStyles:new h({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new h({tag:"dxfs",$:{count:0}}),tableStyles:new h({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new h({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},x.Mock=class extends x{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(g){return g.autodrain(),Promise.resolve()}addStyleModel(g,C){return C===m.ValueType.Date?this.dateStyleId:0}get dateStyleId(){if(!this._dateStyleId){const g={numFmtId:f.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(g)}return this._dateStyleId}getStyleModel(){return{}}},E.exports=x},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(o,E,R){"use strict";const m=o("../base-xform");class _ extends m{constructor(h){super(),this.model=h}get tag(){return"u"}render(h,s){if(!0===(s=s||this.model))h.leafNode("u");else{const b=_.Attributes[s];b&&h.leafNode("u",b)}}parseOpen(h){"u"===h.name&&(this.model=h.attributes.val||!0)}parseText(){}parseClose(){return!1}}_.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},E.exports=_},{"../base-xform":32}],137:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("./filter-column-xform");E.exports=class extends m{constructor(){super(),this.map={filterColumn:new _}}get tag(){return"autoFilter"}prepare(v){v.columns.forEach((h,s)=>{this.map.filterColumn.prepare(h,{index:s})})}render(v,h){return v.openNode(this.tag,{ref:h.autoFilterRef}),h.columns.forEach(s=>{this.map.filterColumn.render(v,s)}),v.closeNode(),!0}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;if(v.name===this.tag)return this.model={autoFilterRef:v.attributes.ref,columns:[]},!0;if(this.parser=this.map[v.name],this.parser)return this.parseOpen(v),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(v))}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){if(this.parser)return this.parser.parseClose(v)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(v===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: "+v)}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"customFilter"}render(_,v){_.leafNode(this.tag,{val:v.val,operator:v.operator})}parseOpen(_){return _.name===this.tag&&(this.model={val:_.attributes.val,operator:_.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(o,E,R){"use strict";const m=o("../base-xform"),_=o("../list-xform"),v=o("./custom-filter-xform"),h=o("./filter-xform");E.exports=class extends m{constructor(){super(),this.map={customFilters:new _({tag:"customFilters",count:!1,empty:!0,childXform:new v}),filters:new _({tag:"filters",count:!1,empty:!0,childXform:new h})}}get tag(){return"filterColumn"}prepare(s,b){s.colId=b.index.toString()}render(s,b){return b.customFilters?(s.openNode(this.tag,{colId:b.colId,hiddenButton:b.filterButton?"0":"1"}),this.map.customFilters.render(s,b.customFilters),s.closeNode(),!0):(s.leafNode(this.tag,{colId:b.colId,hiddenButton:b.filterButton?"0":"1"}),!0)}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;const{attributes:b}=s;if(s.name===this.tag)return this.model={filterButton:"0"===b.hiddenButton},!0;if(this.parser=this.map[s.name],this.parser)return this.parseOpen(s),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(s))}parseText(){}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.parser=void 0),!0):s!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"filter"}render(_,v){_.leafNode(this.tag,{val:v.val})}parseOpen(_){return _.name===this.tag&&(this.model={val:_.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"tableColumn"}prepare(_,v){_.id=v.index+1}render(_,v){return _.leafNode(this.tag,{id:v.id.toString(),name:v.name,totalsRowLabel:v.totalsRowLabel,totalsRowFunction:v.totalsRowFunction,dxfId:v.dxfId}),!0}parseOpen(_){if(_.name===this.tag){const{attributes:v}=_;return this.model={name:v.name,totalsRowLabel:v.totalsRowLabel,totalsRowFunction:v.totalsRowFunction,dxfId:v.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(o,E,R){"use strict";const m=o("../base-xform");E.exports=class extends m{get tag(){return"tableStyleInfo"}render(_,v){return _.leafNode(this.tag,{name:v.theme?v.theme:void 0,showFirstColumn:v.showFirstColumn?"1":"0",showLastColumn:v.showLastColumn?"1":"0",showRowStripes:v.showRowStripes?"1":"0",showColumnStripes:v.showColumnStripes?"1":"0"}),!0}parseOpen(_){if(_.name===this.tag){const{attributes:v}=_;return this.model={theme:v.name?v.name:null,showFirstColumn:"1"===v.showFirstColumn,showLastColumn:"1"===v.showLastColumn,showRowStripes:"1"===v.showRowStripes,showColumnStripes:"1"===v.showColumnStripes},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(o,E,R){"use strict";const m=o("../../../utils/xml-stream"),_=o("../base-xform"),v=o("../list-xform"),h=o("./auto-filter-xform"),s=o("./table-column-xform"),b=o("./table-style-info-xform");class O extends _{constructor(){super(),this.map={autoFilter:new h,tableColumns:new v({tag:"tableColumns",count:!0,empty:!0,childXform:new s}),tableStyleInfo:new b}}prepare(f,k){this.map.autoFilter.prepare(f),this.map.tableColumns.prepare(f.columns,k)}get tag(){return"table"}render(f,k){f.openXml(m.StdDocAttributes),f.openNode(this.tag,{...O.TABLE_ATTRIBUTES,id:k.id,name:k.name,displayName:k.displayName||k.name,ref:k.tableRef,totalsRowCount:k.totalsRow?"1":void 0,totalsRowShown:k.totalsRow?void 0:"1",headerRowCount:k.headerRow?"1":"0"}),this.map.autoFilter.render(f,k),this.map.tableColumns.render(f,k.columns),this.map.tableStyleInfo.render(f,k.style),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;const{name:k,attributes:I}=f;return k===this.tag?(this.reset(),this.model={name:I.name,displayName:I.displayName||I.name,tableRef:I.ref,totalsRow:"1"===I.totalsRowCount,headerRow:"1"===I.headerRowCount}):(this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)),!0}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((k,I)=>{this.model.columns[I].filterButton=k.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1)}reconcile(f,k){f.columns.forEach(I=>{void 0!==I.dxfId&&(I.style=k.styles.getDxfStyle(I.dxfId))})}}O.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},E.exports=O},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(o,E,R){(function(m,_){(function(){"use strict";const v=o("fs"),h=o("jszip"),{PassThrough:s}=o("readable-stream"),b=o("../utils/zip-stream"),O=o("../utils/stream-buf"),w=o("../utils/utils"),f=o("../utils/xml-stream"),{bufferToString:k}=o("../utils/browser-buffer-decode"),I=o("./xform/style/styles-xform"),x=o("./xform/core/core-xform"),g=o("./xform/strings/shared-strings-xform"),C=o("./xform/core/relationships-xform"),F=o("./xform/core/content-types-xform"),Y=o("./xform/core/app-xform"),Q=o("./xform/book/workbook-xform"),se=o("./xform/sheet/worksheet-xform"),ie=o("./xform/drawing/drawing-xform"),ee=o("./xform/table/table-xform"),re=o("./xform/comment/comments-xform"),ne=o("./xform/comment/vml-notes-xform"),_e=o("./xml/theme1");class be{constructor(me){this.workbook=me}readFile(me,we){var N=this;return r(function*(){if(!(yield w.fs.exists(me)))throw new Error("File not found: "+me);const G=v.createReadStream(me);try{const W=yield N.read(G,we);return G.close(),W}catch(W){throw G.close(),W}})()}parseRels(me){return(new C).parseStream(me)}parseWorkbook(me){return(new Q).parseStream(me)}parseSharedStrings(me){return(new g).parseStream(me)}reconcile(me,we){const N=new Q,G=new se(we),W=new ie,z=new ee;N.reconcile(me);const X={media:me.media,mediaIndex:me.mediaIndex};Object.keys(me.drawings).forEach(xe=>{const ge=me.drawings[xe],Ee=me.drawingRels[xe];Ee&&(X.rels=Ee.reduce((he,Ie)=>(he[Ie.Id]=Ie,he),{}),(ge.anchors||[]).forEach(he=>{const Ie=he.picture&&he.picture.hyperlinks;Ie&&X.rels[Ie.rId]&&(Ie.hyperlink=X.rels[Ie.rId].Target,delete Ie.rId)}),W.reconcile(ge,X))});const q={styles:me.styles};Object.values(me.tables).forEach(xe=>{z.reconcile(xe,q)});const ye={styles:me.styles,sharedStrings:me.sharedStrings,media:me.media,mediaIndex:me.mediaIndex,date1904:me.properties&&me.properties.date1904,drawings:me.drawings,comments:me.comments,tables:me.tables,vmlDrawings:me.vmlDrawings};me.worksheets.forEach(xe=>{xe.relationships=me.worksheetRels[xe.sheetNo],G.reconcile(xe,ye)}),delete me.worksheetHash,delete me.worksheetRels,delete me.globalRels,delete me.sharedStrings,delete me.workbookRels,delete me.sheetDefs,delete me.styles,delete me.mediaIndex,delete me.drawings,delete me.drawingRels,delete me.vmlDrawings}_processWorksheetEntry(me,we,N,G,W){return r(function*(){const z=new se(G),X=yield z.parseStream(me);X.sheetNo=N,we.worksheetHash[W]=X,we.worksheets.push(X)})()}_processCommentEntry(me,we,N){return r(function*(){const G=new re,W=yield G.parseStream(me);we.comments[`../${N}.xml`]=W})()}_processTableEntry(me,we,N){return r(function*(){const G=new ee,W=yield G.parseStream(me);we.tables[`../tables/${N}.xml`]=W})()}_processWorksheetRelsEntry(me,we,N){return r(function*(){const G=new C,W=yield G.parseStream(me);we.worksheetRels[N]=W})()}_processMediaEntry(me,we,N){return r(function*(){const G=N.lastIndexOf(".");if(G>=1){const W=N.substr(G+1),z=N.substr(0,G);yield new Promise((X,q)=>{const ye=new O;ye.on("finish",()=>{we.mediaIndex[N]=we.media.length,we.mediaIndex[z]=we.media.length;const xe={type:"image",name:z,extension:W,buffer:ye.toBuffer()};we.media.push(xe),X()}),me.on("error",xe=>{q(xe)}),me.pipe(ye)})}})()}_processDrawingEntry(me,we,N){return r(function*(){const G=new ie,W=yield G.parseStream(me);we.drawings[N]=W})()}_processDrawingRelsEntry(me,we,N){return r(function*(){const G=new C,W=yield G.parseStream(me);we.drawingRels[N]=W})()}_processVmlDrawingEntry(me,we,N){return r(function*(){const G=new ne,W=yield G.parseStream(me);we.vmlDrawings[`../drawings/${N}.vml`]=W})()}_processThemeEntry(me,we,N){return r(function*(){yield new Promise((G,W)=>{const z=new O;me.on("error",W),z.on("error",W),z.on("finish",()=>{we.themes[N]=z.read().toString(),G()}),me.pipe(z)})})()}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}read(me,we){var N=this;return r(function*(){!me[Symbol.asyncIterator]&&me.pipe&&(me=me.pipe(new s));const G=[];var X,W=!1,z=!1;try{for(var ye,q=j(me);W=!(ye=yield q.next()).done;W=!1)G.push(ye.value)}catch(xe){z=!0,X=xe}finally{try{W&&null!=q.return&&(yield q.return())}finally{if(z)throw X}}return N.load(_.concat(G),we)})()}load(me,we){var N=this;return r(function*(){let G;G=we&&we.base64?_.from(me.toString(),"base64"):me;const W={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},z=yield h.loadAsync(G);for(const X of Object.values(z.files))if(!X.dir){let q,ye=X.name;if("/"===ye[0]&&(ye=ye.substr(1)),ye.match(/xl\/media\//)||ye.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))q=new s,q.write(yield X.async("nodebuffer"));else{let xe;q=new s({writableObjectMode:!0,readableObjectMode:!0}),xe=m.browser?k(yield X.async("nodebuffer")):yield X.async("string");const ge=16384;for(let Ee=0;Ee<xe.length;Ee+=ge)q.write(xe.substring(Ee,Ee+ge))}switch(q.end(),ye){case"_rels/.rels":W.globalRels=yield N.parseRels(q);break;case"xl/workbook.xml":{const xe=yield N.parseWorkbook(q);W.sheets=xe.sheets,W.definedNames=xe.definedNames,W.views=xe.views,W.properties=xe.properties,W.calcProperties=xe.calcProperties;break}case"xl/_rels/workbook.xml.rels":W.workbookRels=yield N.parseRels(q);break;case"xl/sharedStrings.xml":W.sharedStrings=new g,yield W.sharedStrings.parseStream(q);break;case"xl/styles.xml":W.styles=new I,yield W.styles.parseStream(q);break;case"docProps/app.xml":{const xe=new Y,ge=yield xe.parseStream(q);W.company=ge.company,W.manager=ge.manager;break}case"docProps/core.xml":{const xe=new x,ge=yield xe.parseStream(q);Object.assign(W,ge);break}default:{let xe=ye.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(xe){yield N._processWorksheetEntry(q,W,xe[1],we,ye);break}if(xe=ye.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),xe){yield N._processWorksheetRelsEntry(q,W,xe[1]);break}if(xe=ye.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),xe){yield N._processThemeEntry(q,W,xe[1]);break}if(xe=ye.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),xe){yield N._processMediaEntry(q,W,xe[1]);break}if(xe=ye.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),xe){yield N._processDrawingEntry(q,W,xe[1]);break}if(xe=ye.match(/xl\/(comments\d+)[.]xml/),xe){yield N._processCommentEntry(q,W,xe[1]);break}if(xe=ye.match(/xl\/tables\/(table\d+)[.]xml/),xe){yield N._processTableEntry(q,W,xe[1]);break}if(xe=ye.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),xe){yield N._processDrawingRelsEntry(q,W,xe[1]);break}if(xe=ye.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),xe){yield N._processVmlDrawingEntry(q,W,xe[1]);break}}}}return N.reconcile(W,we),N.workbook.model=W,N.workbook})()}addMedia(me,we){return r(function*(){yield Promise.all(we.media.map(function(){var N=r(function*(G){if("image"===G.type){const W=`xl/media/${G.name}.${G.extension}`;if(G.filename){const z=yield(X=G.filename,new Promise((ye,xe)=>{v.readFile(X,undefined,(ge,Ee)=>{ge?xe(ge):ye(Ee)})}));return me.append(z,{name:W})}if(G.buffer)return me.append(G.buffer,{name:W});if(G.base64){const z=G.base64,X=z.substring(z.indexOf(",")+1);return me.append(X,{name:W,base64:!0})}}var X;throw new Error("Unsupported media")});return function(G){return N.apply(this,arguments)}}()))})()}addDrawings(me,we){const N=new ie,G=new C;we.worksheets.forEach(W=>{const{drawing:z}=W;if(z){N.prepare(z,{});let X=N.toXml(z);me.append(X,{name:`xl/drawings/${z.name}.xml`}),X=G.toXml(z.rels),me.append(X,{name:`xl/drawings/_rels/${z.name}.xml.rels`})}})}addTables(me,we){const N=new ee;we.worksheets.forEach(G=>{const{tables:W}=G;W.forEach(z=>{N.prepare(z,{});const X=N.toXml(z);me.append(X,{name:"xl/tables/"+z.target})})})}addContentTypes(me,we){return r(function*(){const N=(new F).toXml(we);me.append(N,{name:"[Content_Types].xml"})})()}addApp(me,we){return r(function*(){const N=(new Y).toXml(we);me.append(N,{name:"docProps/app.xml"})})()}addCore(me,we){return r(function*(){const N=new x;me.append(N.toXml(we),{name:"docProps/core.xml"})})()}addThemes(me,we){return r(function*(){const N=we.themes||{theme1:_e};Object.keys(N).forEach(G=>{me.append(N[G],{name:`xl/theme/${G}.xml`})})})()}addOfficeRels(me){return r(function*(){const we=(new C).toXml([{Id:"rId1",Type:be.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:be.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:be.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);me.append(we,{name:"_rels/.rels"})})()}addWorkbookRels(me,we){return r(function*(){let N=1;const G=[{Id:"rId"+N++,Type:be.RelType.Styles,Target:"styles.xml"},{Id:"rId"+N++,Type:be.RelType.Theme,Target:"theme/theme1.xml"}];we.sharedStrings.count&&G.push({Id:"rId"+N++,Type:be.RelType.SharedStrings,Target:"sharedStrings.xml"}),we.worksheets.forEach(z=>{z.rId="rId"+N++,G.push({Id:z.rId,Type:be.RelType.Worksheet,Target:`worksheets/sheet${z.id}.xml`})});const W=(new C).toXml(G);me.append(W,{name:"xl/_rels/workbook.xml.rels"})})()}addSharedStrings(me,we){return r(function*(){we.sharedStrings&&we.sharedStrings.count&&me.append(we.sharedStrings.xml,{name:"xl/sharedStrings.xml"})})()}addStyles(me,we){return r(function*(){const{xml:N}=we.styles;N&&me.append(N,{name:"xl/styles.xml"})})()}addWorkbook(me,we){return r(function*(){const N=new Q;me.append(N.toXml(we),{name:"xl/workbook.xml"})})()}addWorksheets(me,we){return r(function*(){const N=new se,G=new C,W=new re,z=new ne;we.worksheets.forEach(X=>{let q=new f;N.render(q,X),me.append(q.xml,{name:`xl/worksheets/sheet${X.id}.xml`}),X.rels&&X.rels.length&&(q=new f,G.render(q,X.rels),me.append(q.xml,{name:`xl/worksheets/_rels/sheet${X.id}.xml.rels`})),X.comments.length>0&&(q=new f,W.render(q,X),me.append(q.xml,{name:`xl/comments${X.id}.xml`}),q=new f,z.render(q,X),me.append(q.xml,{name:`xl/drawings/vmlDrawing${X.id}.vml`}))})})()}_finalize(me){return new Promise((we,N)=>{me.on("finish",()=>{we(this)}),me.on("error",N),me.finalize()})}prepareModel(me,we){me.creator=me.creator||"ExcelJS",me.lastModifiedBy=me.lastModifiedBy||"ExcelJS",me.created=me.created||new Date,me.modified=me.modified||new Date,me.useSharedStrings=void 0===we.useSharedStrings||we.useSharedStrings,me.useStyles=void 0===we.useStyles||we.useStyles,me.sharedStrings=new g,me.styles=me.useStyles?new I(!0):new I.Mock;const N=new Q,G=new se;N.prepare(me);const W={sharedStrings:me.sharedStrings,styles:me.styles,date1904:me.properties.date1904,drawingsCount:0,media:me.media};W.drawings=me.drawings=[],W.commentRefs=me.commentRefs=[];let z=0;me.tables=[],me.worksheets.forEach(X=>{X.tables.forEach(q=>{z++,q.target=`table${z}.xml`,q.id=z,me.tables.push(q)}),G.prepare(X,W)})}write(me,we){var N=this;return r(function*(){we=we||{};const{model:G}=N.workbook,W=new b.ZipWriter(we.zip);return W.pipe(me),N.prepareModel(G,we),yield N.addContentTypes(W,G),yield N.addOfficeRels(W,G),yield N.addWorkbookRels(W,G),yield N.addWorksheets(W,G),yield N.addSharedStrings(W,G),yield N.addDrawings(W,G),yield N.addTables(W,G),yield Promise.all([N.addThemes(W,G),N.addStyles(W,G)]),yield N.addMedia(W,G),yield Promise.all([N.addApp(W,G),N.addCore(W,G)]),yield N.addWorkbook(W,G),N._finalize(W)})()}writeFile(me,we){const N=v.createWriteStream(me);return new Promise((G,W)=>{N.on("finish",()=>{G()}),N.on("error",z=>{W(z)}),this.write(N,we).then(()=>{N.end()}).catch(z=>{W(z)})})}writeBuffer(me){var we=this;return r(function*(){const N=new O;return yield we.write(N,me),N.read()})()}}be.RelType=o("./rel-type"),E.exports=be}).call(this)}).call(this,o("_process"),o("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(o,E,R){"use strict";E.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/> <a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/> <a:font script="Hans" typeface="\u5b8b\u4f53"/> <a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/> <a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/> <a:font script="Hans" typeface="\u5b8b\u4f53"/> <a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},{}],146:[function(o,E,R){(function(m){(function(){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.CsvFormatterStream=void 0;const _=o("stream"),v=o("./formatter");R.CsvFormatterStream=class h extends _.Transform{constructor(b){super({writableObjectMode:b.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=b,this.rowFormatter=new v.RowFormatter(b),this.hasWrittenBOM=!b.writeBOM}transform(b){return this.rowFormatter.rowTransform=b,this}_transform(b,O,w){let f=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(b,(k,I)=>k?(f=!0,w(k)):(I&&I.forEach(x=>{this.push(m.from(x,"utf8"))}),f=!0,w()))}catch(k){if(f)throw k;w(k)}}_flush(b){this.rowFormatter.finish((O,w)=>O?b(O):(w&&w.forEach(f=>{this.push(m.from(f,"utf8"))}),b()))}}}).call(this)}).call(this,o("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.FormatterOptions=void 0,R.FormatterOptions=class{constructor(){let m=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var _;this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,m||{}),void 0===m?.quoteHeaders&&(this.quoteHeaders=this.quoteColumns),!0===m?.quote?this.quote='"':!1===m?.quote&&(this.quote=""),"string"!=typeof m?.escape&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(_=m.writeHeaders)||void 0===_||_),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(o,E,R){"use strict";var m=function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(R,"__esModule",{value:!0}),R.FieldFormatter=void 0;const _=m(o("lodash.isboolean")),v=m(o("lodash.isnil")),h=m(o("lodash.escaperegexp"));R.FieldFormatter=class{constructor(s){this._headers=null,this.formatterOptions=s,null!==s.headers&&(this.headers=s.headers),this.REPLACE_REGEXP=new RegExp(s.quote,"g");const b=`[${s.delimiter}${h.default(s.rowDelimiter)}|\r|\n]`;this.ESCAPE_REGEXP=new RegExp(b)}set headers(s){this._headers=s}shouldQuote(s,b){const O=b?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return _.default(O)?O:Array.isArray(O)?O[s]:null!==this._headers&&O[this._headers[s]]}format(s,b,O){const w=(""+(v.default(s)?"":s)).replace(/\0/g,""),{formatterOptions:f}=this;return""!==f.quote&&-1!==w.indexOf(f.quote)?this.quoteField(w.replace(this.REPLACE_REGEXP,f.escapedQuote)):-1!==w.search(this.ESCAPE_REGEXP)||this.shouldQuote(b,O)?this.quoteField(w):w}quoteField(s){const{quote:b}=this.formatterOptions;return`${b}${s}${b}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(o,E,R){"use strict";var m=function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(R,"__esModule",{value:!0}),R.RowFormatter=void 0;const _=m(o("lodash.isfunction")),v=m(o("lodash.isequal")),h=o("./FieldFormatter"),s=o("../types");class b{constructor(w){this.rowCount=0,this.formatterOptions=w,this.fieldFormatter=new h.FieldFormatter(w),this.headers=w.headers,this.shouldWriteHeaders=w.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),w.transform&&(this.rowTransform=w.transform)}static isRowHashArray(w){return!!Array.isArray(w)&&Array.isArray(w[0])&&2===w[0].length}static isRowArray(w){return Array.isArray(w)&&!this.isRowHashArray(w)}static gatherHeaders(w){return b.isRowHashArray(w)?w.map(f=>f[0]):Array.isArray(w)?w:Object.keys(w)}static createTransform(w){return s.isSyncTransform(w)?(f,k)=>{let I=null;try{I=w(f)}catch(x){return k(x)}return k(null,I)}:(f,k)=>{w(f,k)}}set rowTransform(w){if(!_.default(w))throw new TypeError("The transform should be a function");this._rowTransform=b.createTransform(w)}format(w,f){this.callTransformer(w,(k,I)=>{if(k)return f(k);if(!w)return f(null);const x=[];if(I){const{shouldFormatColumns:g,headers:C}=this.checkHeaders(I);if(this.shouldWriteHeaders&&C&&!this.hasWrittenHeaders&&(x.push(this.formatColumns(C,!0)),this.hasWrittenHeaders=!0),g){const F=this.gatherColumns(I);x.push(this.formatColumns(F,!1))}}return f(null,x)})}finish(w){const f=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return w(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));f.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&f.push(this.formatterOptions.rowDelimiter),w(null,f)}checkHeaders(w){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const f=b.gatherHeaders(w);return this.headers=f,this.fieldFormatter.headers=f,this.shouldWriteHeaders?{shouldFormatColumns:!v.default(f,w),headers:f}:{shouldFormatColumns:!0,headers:null}}gatherColumns(w){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(w)?b.isRowHashArray(w)?this.headers.map((f,k)=>{const I=w[k];return I?I[1]:""}):b.isRowArray(w)&&!this.shouldWriteHeaders?w:this.headers.map((f,k)=>w[k]):this.headers.map(f=>w[f])}callTransformer(w,f){return this._rowTransform?this._rowTransform(w,f):f(null,w)}formatColumns(w,f){const k=w.map((x,g)=>this.fieldFormatter.format(x,g,f)).join(this.formatterOptions.delimiter),{rowCount:I}=this;return this.rowCount+=1,I?[this.formatterOptions.rowDelimiter,k].join(""):k}}R.RowFormatter=b},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.FieldFormatter=R.RowFormatter=void 0;var m=o("./RowFormatter");Object.defineProperty(R,"RowFormatter",{enumerable:!0,get:function(){return m.RowFormatter}});var _=o("./FieldFormatter");Object.defineProperty(R,"FieldFormatter",{enumerable:!0,get:function(){return _.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(o,E,R){(function(m){(function(){"use strict";var _=Object.create?function(g,C,F,Y){void 0===Y&&(Y=F),Object.defineProperty(g,Y,{enumerable:!0,get:function(){return C[F]}})}:function(g,C,F,Y){void 0===Y&&(Y=F),g[Y]=C[F]},v=Object.create?function(g,C){Object.defineProperty(g,"default",{enumerable:!0,value:C})}:function(g,C){g.default=C};Object.defineProperty(R,"__esModule",{value:!0}),R.writeToPath=R.writeToString=R.writeToBuffer=R.writeToStream=R.write=R.format=R.FormatterOptions=R.CsvFormatterStream=void 0;const b=o("util"),O=o("stream"),w=function(g){if(g&&g.__esModule)return g;var C={};if(null!=g)for(var F in g)"default"!==F&&Object.prototype.hasOwnProperty.call(g,F)&&_(C,g,F);return v(C,g),C}(o("fs")),f=o("./FormatterOptions"),k=o("./CsvFormatterStream");!function(g,C){for(var F in g)"default"===F||Object.prototype.hasOwnProperty.call(C,F)||_(C,g,F)}(o("./types"),R);var I=o("./CsvFormatterStream");Object.defineProperty(R,"CsvFormatterStream",{enumerable:!0,get:function(){return I.CsvFormatterStream}});var x=o("./FormatterOptions");Object.defineProperty(R,"FormatterOptions",{enumerable:!0,get:function(){return x.FormatterOptions}}),R.format=g=>new k.CsvFormatterStream(new f.FormatterOptions(g)),R.write=(g,C)=>{const F=R.format(C),Y=b.promisify((Q,se)=>{F.write(Q,void 0,se)});return g.reduce((Q,se)=>Q.then(()=>Y(se)),Promise.resolve()).then(()=>F.end()).catch(Q=>{F.emit("error",Q)}),F},R.writeToStream=(g,C,F)=>R.write(C,F).pipe(g),R.writeToBuffer=function(g){let C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const F=[],Y=new O.Writable({write(Q,se,ie){F.push(Q),ie()}});return new Promise((Q,se)=>{Y.on("error",se).on("finish",()=>Q(m.concat(F))),R.write(g,C).pipe(Y)})},R.writeToString=(g,C)=>R.writeToBuffer(g,C).then(F=>F.toString()),R.writeToPath=(g,C,F)=>{const Y=w.createWriteStream(g,{encoding:"utf8"});return R.write(C,F).pipe(Y)}}).call(this)}).call(this,o("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.isSyncTransform=void 0,R.isSyncTransform=m=>1===m.length},{}],153:[function(o,E,R){(function(m){(function(){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.CsvParserStream=void 0;const _=o("string_decoder"),v=o("stream"),h=o("./transforms"),s=o("./parser");class b extends v.Transform{constructor(w){super({objectMode:w.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=w,this.parser=new s.Parser(w),this.headerTransformer=new h.HeaderTransformer(w),this.decoder=new _.StringDecoder(w.encoding),this.rowTransformerValidator=new h.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(w){return this.rowTransformerValidator.rowTransform=w,this}validate(w){return this.rowTransformerValidator.rowValidator=w,this}emit(w){if("end"===w)return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var f=arguments.length,k=new Array(f>1?f-1:0),I=1;I<f;I++)k[I-1]=arguments[I];return super.emit(w,...k)}_transform(w,f,k){if(this.hasHitRowLimit)return k();const I=b.wrapDoneCallback(k);try{const{lines:x}=this,g=x+this.decoder.write(w),C=this.parse(g,!0);return this.processRows(C,I)}catch(x){return I(x)}}_flush(w){const f=b.wrapDoneCallback(w);if(this.hasHitRowLimit)return f();try{const k=this.lines+this.decoder.end(),I=this.parse(k,!1);return this.processRows(I,f)}catch(k){return f(k)}}parse(w,f){if(!w)return[];const{line:k,rows:I}=this.parser.parse(w,f);return this.lines=k,I}processRows(w,f){const k=w.length,I=x=>{const g=Y=>Y?f(Y):x%100!=0?I(x+1):void m(()=>I(x+1));if(this.checkAndEmitHeaders(),x>=k||this.hasHitRowLimit)return f();if(this.parsedLineCount+=1,this.shouldSkipLine)return g();const C=w[x];this.rowCount+=1,this.parsedRowCount+=1;const F=this.rowCount;return this.transformRow(C,(Y,Q)=>{if(Y)return this.rowCount-=1,g(Y);if(!Q)return g(new Error("expected transform result"));if(Q.isValid){if(Q.row)return this.pushRow(Q.row,g)}else this.emit("data-invalid",Q.row,F,Q.reason);return g()})};I(0)}transformRow(w,f){try{this.headerTransformer.transform(w,(k,I)=>k?f(k):I?I.isValid?I.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(I.row,f):this.skipRow(f):(this.rowCount-=1,this.parsedRowCount-=1,f(null,{row:null,isValid:!0})):this.shouldEmitRows?f(null,{isValid:!1,row:w}):this.skipRow(f):f(new Error("Expected result from header transform")))}catch(k){f(k)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(w){return this.rowCount-=1,w(null,{row:null,isValid:!0})}pushRow(w,f){try{this.push(this.parserOptions.objectMode?w:JSON.stringify(w)),f()}catch(k){f(k)}}static wrapDoneCallback(w){let f=!1;return function(k){if(k){if(f)throw k;return f=!0,void w(k)}for(var I=arguments.length,x=new Array(I>1?I-1:0),g=1;g<I;g++)x[g-1]=arguments[g];w(...x)}}}R.CsvParserStream=b}).call(this)}).call(this,o("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(o,E,R){"use strict";var m=function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(R,"__esModule",{value:!0}),R.ParserOptions=void 0;const _=m(o("lodash.escaperegexp")),v=m(o("lodash.isnil"));R.ParserOptions=class{constructor(h){var s;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,h||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=_.default(this.delimiter),this.escapeChar=null!==(s=this.escape)&&void 0!==s?s:this.quote,this.supportsComments=!v.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(o,E,R){"use strict";var m=Object.create?function(I,x,g,C){void 0===C&&(C=g),Object.defineProperty(I,C,{enumerable:!0,get:function(){return x[g]}})}:function(I,x,g,C){void 0===C&&(C=g),I[C]=x[g]},_=Object.create?function(I,x){Object.defineProperty(I,"default",{enumerable:!0,value:x})}:function(I,x){I.default=x};Object.defineProperty(R,"__esModule",{value:!0}),R.parseString=R.parseFile=R.parseStream=R.parse=R.ParserOptions=R.CsvParserStream=void 0;const s=function(I){if(I&&I.__esModule)return I;var x={};if(null!=I)for(var g in I)"default"!==g&&Object.prototype.hasOwnProperty.call(I,g)&&m(x,I,g);return _(x,I),x}(o("fs")),b=o("stream"),O=o("./ParserOptions"),w=o("./CsvParserStream");!function(I,x){for(var g in I)"default"===g||Object.prototype.hasOwnProperty.call(x,g)||m(x,I,g)}(o("./types"),R);var f=o("./CsvParserStream");Object.defineProperty(R,"CsvParserStream",{enumerable:!0,get:function(){return f.CsvParserStream}});var k=o("./ParserOptions");Object.defineProperty(R,"ParserOptions",{enumerable:!0,get:function(){return k.ParserOptions}}),R.parse=I=>new w.CsvParserStream(new O.ParserOptions(I)),R.parseStream=(I,x)=>I.pipe(new w.CsvParserStream(new O.ParserOptions(x))),R.parseFile=function(I){let x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.createReadStream(I).pipe(new w.CsvParserStream(new O.ParserOptions(x)))},R.parseString=(I,x)=>{const g=new b.Readable;return g.push(I),g.push(null),g.pipe(new w.CsvParserStream(new O.ParserOptions(x)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.Parser=void 0;const m=o("./Scanner"),_=o("./RowParser"),v=o("./Token");class h{constructor(b){this.parserOptions=b,this.rowParser=new _.RowParser(this.parserOptions)}static removeBOM(b){return b&&65279===b.charCodeAt(0)?b.slice(1):b}parse(b,O){const w=new m.Scanner({line:h.removeBOM(b),parserOptions:this.parserOptions,hasMoreData:O});return this.parserOptions.supportsComments?this.parseWithComments(w):this.parseWithoutComments(w)}parseWithoutComments(b){const O=[];let w=!0;for(;w;)w=this.parseRow(b,O);return{line:b.line,rows:O}}parseWithComments(b){const{parserOptions:O}=this,w=[];for(let f=b.nextCharacterToken;null!==f;f=b.nextCharacterToken)if(v.Token.isTokenComment(f,O)){if(null===b.advancePastLine())return{line:b.lineFromCursor,rows:w};if(!b.hasMoreCharacters)return{line:b.lineFromCursor,rows:w};b.truncateToCursor()}else if(!this.parseRow(b,w))break;return{line:b.line,rows:w}}parseRow(b,O){if(!b.nextNonSpaceToken)return!1;const w=this.rowParser.parse(b);return null!==w&&(this.parserOptions.ignoreEmpty&&_.RowParser.isEmptyRow(w)||O.push(w),!0)}}R.Parser=h},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.RowParser=void 0;const m=o("./column"),_=o("./Token");R.RowParser=class{constructor(v){this.parserOptions=v,this.columnParser=new m.ColumnParser(v)}static isEmptyRow(v){return""===v.join("").replace(/\s+/g,"")}parse(v){const{parserOptions:h}=this,{hasMoreData:s}=v,b=v,O=[];let w=this.getStartToken(b,O);for(;w;){if(_.Token.isTokenRowDelimiter(w))return b.advancePastToken(w),!b.hasMoreCharacters&&_.Token.isTokenCarriageReturn(w,h)&&s?null:(b.truncateToCursor(),O);if(!this.shouldSkipColumnParse(b,w,O)){const f=this.columnParser.parse(b);if(null===f)return null;O.push(f)}w=b.nextNonSpaceToken}return s?null:(b.truncateToCursor(),O)}getStartToken(v,h){const s=v.nextNonSpaceToken;return null!==s&&_.Token.isTokenDelimiter(s,this.parserOptions)?(h.push(""),v.nextNonSpaceToken):s}shouldSkipColumnParse(v,h,s){const{parserOptions:b}=this;if(_.Token.isTokenDelimiter(h,b)){v.advancePastToken(h);const O=v.nextCharacterToken;if(!v.hasMoreCharacters||null!==O&&_.Token.isTokenRowDelimiter(O)||null!==O&&_.Token.isTokenDelimiter(O,b))return s.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.Scanner=void 0;const m=o("./Token"),_=/((?:\r\n)|\n|\r)/;R.Scanner=class{constructor(v){this.cursor=0,this.line=v.line,this.lineLength=this.line.length,this.parserOptions=v.parserOptions,this.hasMoreData=v.hasMoreData,this.cursor=v.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:v}=this,h=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===v.search(h))return null;const s=h.exec(v);if(null==s)return null;const b=s[1],O=this.cursor+(s.index||0);return new m.Token({token:b,startCursor:O,endCursor:O+b.length-1})}get nextCharacterToken(){const{cursor:v,lineLength:h}=this;return h<=v?null:new m.Token({token:this.line[v],startCursor:v,endCursor:v})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const v=_.exec(this.lineFromCursor);return v?(this.cursor+=(v.index||0)+v[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(v){return this.cursor=v,this}advanceToToken(v){return this.cursor=v.startCursor,this}advancePastToken(v){return this.cursor=v.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.Token=void 0,R.Token=class{constructor(m){this.token=m.token,this.startCursor=m.startCursor,this.endCursor=m.endCursor}static isTokenRowDelimiter(m){const _=m.token;return"\r"===_||"\n"===_||"\r\n"===_}static isTokenCarriageReturn(m,_){return m.token===_.carriageReturn}static isTokenComment(m,_){return _.supportsComments&&!!m&&m.token===_.comment}static isTokenEscapeCharacter(m,_){return m.token===_.escapeChar}static isTokenQuote(m,_){return m.token===_.quote}static isTokenDelimiter(m,_){return m.token===_.delimiter}}},{}],160:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.ColumnFormatter=void 0,R.ColumnFormatter=class{constructor(m){this.format=m.trim?_=>_.trim():m.ltrim?_=>_.trimLeft():m.rtrim?_=>_.trimRight():_=>_}}},{}],161:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.ColumnParser=void 0;const m=o("./NonQuotedColumnParser"),_=o("./QuotedColumnParser"),v=o("../Token");R.ColumnParser=class{constructor(h){this.parserOptions=h,this.quotedColumnParser=new _.QuotedColumnParser(h),this.nonQuotedColumnParser=new m.NonQuotedColumnParser(h)}parse(h){const{nextNonSpaceToken:s}=h;return null!==s&&v.Token.isTokenQuote(s,this.parserOptions)?(h.advanceToToken(s),this.quotedColumnParser.parse(h)):this.nonQuotedColumnParser.parse(h)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.NonQuotedColumnParser=void 0;const m=o("./ColumnFormatter"),_=o("../Token");R.NonQuotedColumnParser=class{constructor(v){this.parserOptions=v,this.columnFormatter=new m.ColumnFormatter(v)}parse(v){if(!v.hasMoreCharacters)return null;const{parserOptions:h}=this,s=[];let b=v.nextCharacterToken;for(;b&&!_.Token.isTokenDelimiter(b,h)&&!_.Token.isTokenRowDelimiter(b);b=v.nextCharacterToken)s.push(b.token),v.advancePastToken(b);return this.columnFormatter.format(s.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.QuotedColumnParser=void 0;const m=o("./ColumnFormatter"),_=o("../Token");R.QuotedColumnParser=class{constructor(v){this.parserOptions=v,this.columnFormatter=new m.ColumnFormatter(v)}parse(v){if(!v.hasMoreCharacters)return null;const h=v.cursor,{foundClosingQuote:s,col:b}=this.gatherDataBetweenQuotes(v);if(!s){if(v.advanceTo(h),!v.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${v.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(v),b}gatherDataBetweenQuotes(v){const{parserOptions:h}=this;let s=!1,b=!1;const O=[];let w=v.nextCharacterToken;for(;!b&&null!==w;w=v.nextCharacterToken){const f=_.Token.isTokenQuote(w,h);if(!s&&f)s=!0;else if(s)if(_.Token.isTokenEscapeCharacter(w,h)){v.advancePastToken(w);const k=v.nextCharacterToken;null!==k&&(_.Token.isTokenQuote(k,h)||_.Token.isTokenEscapeCharacter(k,h))?(O.push(k.token),w=k):f?b=!0:O.push(w.token)}else f?b=!0:O.push(w.token);v.advancePastToken(w)}return{col:this.columnFormatter.format(O.join("")),foundClosingQuote:b}}checkForMalformedColumn(v){const{parserOptions:h}=this,{nextNonSpaceToken:s}=v;if(s){const b=_.Token.isTokenDelimiter(s,h),O=_.Token.isTokenRowDelimiter(s);if(!b&&!O){const w=v.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${h.escapedDelimiter}' OR new line got: '${s.token}'. at '${w}`)}v.advanceToToken(s)}else v.hasMoreData||v.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.ColumnFormatter=R.QuotedColumnParser=R.NonQuotedColumnParser=R.ColumnParser=void 0;var m=o("./ColumnParser");Object.defineProperty(R,"ColumnParser",{enumerable:!0,get:function(){return m.ColumnParser}});var _=o("./NonQuotedColumnParser");Object.defineProperty(R,"NonQuotedColumnParser",{enumerable:!0,get:function(){return _.NonQuotedColumnParser}});var v=o("./QuotedColumnParser");Object.defineProperty(R,"QuotedColumnParser",{enumerable:!0,get:function(){return v.QuotedColumnParser}});var h=o("./ColumnFormatter");Object.defineProperty(R,"ColumnFormatter",{enumerable:!0,get:function(){return h.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.QuotedColumnParser=R.NonQuotedColumnParser=R.ColumnParser=R.Token=R.Scanner=R.RowParser=R.Parser=void 0;var m=o("./Parser");Object.defineProperty(R,"Parser",{enumerable:!0,get:function(){return m.Parser}});var _=o("./RowParser");Object.defineProperty(R,"RowParser",{enumerable:!0,get:function(){return _.RowParser}});var v=o("./Scanner");Object.defineProperty(R,"Scanner",{enumerable:!0,get:function(){return v.Scanner}});var h=o("./Token");Object.defineProperty(R,"Token",{enumerable:!0,get:function(){return h.Token}});var s=o("./column");Object.defineProperty(R,"ColumnParser",{enumerable:!0,get:function(){return s.ColumnParser}}),Object.defineProperty(R,"NonQuotedColumnParser",{enumerable:!0,get:function(){return s.NonQuotedColumnParser}}),Object.defineProperty(R,"QuotedColumnParser",{enumerable:!0,get:function(){return s.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(o,E,R){"use strict";var m=function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(R,"__esModule",{value:!0}),R.HeaderTransformer=void 0;const _=m(o("lodash.isundefined")),v=m(o("lodash.isfunction")),h=m(o("lodash.uniq")),s=m(o("lodash.groupby"));R.HeaderTransformer=class{constructor(b){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=b,!0===b.headers?this.shouldUseFirstRow=!0:Array.isArray(b.headers)?this.setHeaders(b.headers):v.default(b.headers)&&(this.headersTransform=b.headers)}transform(b,O){return this.shouldMapRow(b)?O(null,this.processRow(b)):O(null,{row:null,isValid:!0})}shouldMapRow(b){const{parserOptions:O}=this;if(!this.headersTransform&&O.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(b)){if(this.headersTransform)this.setHeaders(this.headersTransform(b));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(b)}return!1}return!0}processRow(b){if(!this.headers)return{row:b,isValid:!0};const{parserOptions:O}=this;if(!O.discardUnmappedColumns&&b.length>this.headersLength){if(!O.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${b.length}`);return{row:b,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${b.length}`}}return O.strictColumnHandling&&b.length<this.headersLength?{row:b,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${b.length}`}:{row:this.mapHeaders(b),isValid:!0}}mapHeaders(b){const O={},{headers:w,headersLength:f}=this;for(let k=0;k<f;k+=1){const I=w[k];if(!_.default(I)){const x=b[k];O[I]=_.default(x)?"":x}}return O}setHeaders(b){var O;const w=b.filter(f=>!!f);if(h.default(w).length!==w.length){const f=s.default(w),k=Object.keys(f).filter(I=>f[I].length>1);throw new Error("Duplicate headers found "+JSON.stringify(k))}this.headers=b,this.receivedHeaders=!0,this.headersLength=(null===(O=this.headers)||void 0===O?void 0:O.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.RowTransformerValidator=void 0;const _=(s=o("lodash.isfunction"))&&s.__esModule?s:{default:s},v=o("../types");var s;class h{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(b){return v.isSyncTransform(b)?(O,w)=>{let f=null;try{f=b(O)}catch(k){return w(k)}return w(null,f)}:b}static createValidator(b){return v.isSyncValidate(b)?(O,w)=>{w(null,{row:O,isValid:b(O)})}:(O,w)=>{b(O,(f,k,I)=>f?w(f):w(null,k?{row:O,isValid:k,reason:I}:{row:O,isValid:!1,reason:I}))}}set rowTransform(b){if(!_.default(b))throw new TypeError("The transform should be a function");this._rowTransform=h.createTransform(b)}set rowValidator(b){if(!_.default(b))throw new TypeError("The validate should be a function");this._rowValidator=h.createValidator(b)}transformAndValidate(b,O){return this.callTransformer(b,(w,f)=>w?O(w):f?this.callValidator(f,(k,I)=>k?O(k):O(null,I&&!I.isValid?{row:f,isValid:!1,reason:I.reason}:{row:f,isValid:!0})):O(null,{row:null,isValid:!0}))}callTransformer(b,O){return this._rowTransform?this._rowTransform(b,O):O(null,b)}callValidator(b,O){return this._rowValidator?this._rowValidator(b,O):O(null,{row:b,isValid:!0})}}R.RowTransformerValidator=h},{"../types":169,"lodash.isfunction":446}],168:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.HeaderTransformer=R.RowTransformerValidator=void 0;var m=o("./RowTransformerValidator");Object.defineProperty(R,"RowTransformerValidator",{enumerable:!0,get:function(){return m.RowTransformerValidator}});var _=o("./HeaderTransformer");Object.defineProperty(R,"HeaderTransformer",{enumerable:!0,get:function(){return _.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.isSyncValidate=R.isSyncTransform=void 0,R.isSyncTransform=m=>1===m.length,R.isSyncValidate=m=>1===m.length},{}],170:[function(o,E,R){"use strict";const m=R;m.bignum=o("bn.js"),m.define=o("./asn1/api").define,m.base=o("./asn1/base"),m.constants=o("./asn1/constants"),m.decoders=o("./asn1/decoders"),m.encoders=o("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(o,E,R){"use strict";const m=o("./encoders"),_=o("./decoders"),v=o("inherits");function h(s,b){this.name=s,this.body=b,this.decoders={},this.encoders={}}R.define=function(s,b){return new h(s,b)},h.prototype._createNamed=function(s){const b=this.name;function O(w){this._initNamed(w,b)}return v(O,s),O.prototype._initNamed=function(w,f){s.call(this,w,f)},new O(this)},h.prototype._getDecoder=function(s){return this.decoders.hasOwnProperty(s=s||"der")||(this.decoders[s]=this._createNamed(_[s])),this.decoders[s]},h.prototype.decode=function(s,b,O){return this._getDecoder(b).decode(s,O)},h.prototype._getEncoder=function(s){return this.encoders.hasOwnProperty(s=s||"der")||(this.encoders[s]=this._createNamed(m[s])),this.encoders[s]},h.prototype.encode=function(s,b,O){return this._getEncoder(b).encode(s,O)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(o,E,R){"use strict";const m=o("inherits"),_=o("../base/reporter").Reporter,v=o("safer-buffer").Buffer;function h(b,O){_.call(this,O),v.isBuffer(b)?(this.base=b,this.offset=0,this.length=b.length):this.error("Input not Buffer")}function s(b,O){if(Array.isArray(b))this.length=0,this.value=b.map(function(w){return s.isEncoderBuffer(w)||(w=new s(w,O)),this.length+=w.length,w},this);else if("number"==typeof b){if(!(0<=b&&b<=255))return O.error("non-byte EncoderBuffer value");this.value=b,this.length=1}else if("string"==typeof b)this.value=b,this.length=v.byteLength(b);else{if(!v.isBuffer(b))return O.error("Unsupported type: "+typeof b);this.value=b,this.length=b.length}}m(h,_),R.DecoderBuffer=h,h.isDecoderBuffer=function(b){return b instanceof h||"object"==typeof b&&v.isBuffer(b.base)&&"DecoderBuffer"===b.constructor.name&&"number"==typeof b.offset&&"number"==typeof b.length&&"function"==typeof b.save&&"function"==typeof b.restore&&"function"==typeof b.isEmpty&&"function"==typeof b.readUInt8&&"function"==typeof b.skip&&"function"==typeof b.raw},h.prototype.save=function(){return{offset:this.offset,reporter:_.prototype.save.call(this)}},h.prototype.restore=function(b){const O=new h(this.base);return O.offset=b.offset,O.length=this.offset,this.offset=b.offset,_.prototype.restore.call(this,b.reporter),O},h.prototype.isEmpty=function(){return this.offset===this.length},h.prototype.readUInt8=function(b){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(b||"DecoderBuffer overrun")},h.prototype.skip=function(b,O){if(!(this.offset+b<=this.length))return this.error(O||"DecoderBuffer overrun");const w=new h(this.base);return w._reporterState=this._reporterState,w.offset=this.offset,w.length=this.offset+b,this.offset+=b,w},h.prototype.raw=function(b){return this.base.slice(b?b.offset:this.offset,this.length)},R.EncoderBuffer=s,s.isEncoderBuffer=function(b){return b instanceof s||"object"==typeof b&&"EncoderBuffer"===b.constructor.name&&"number"==typeof b.length&&"function"==typeof b.join},s.prototype.join=function(b,O){return b||(b=v.alloc(this.length)),O||(O=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(w){w.join(b,O),O+=w.length}):("number"==typeof this.value?b[O]=this.value:"string"==typeof this.value?b.write(this.value,O):v.isBuffer(this.value)&&this.value.copy(b,O),O+=this.length)),b}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(o,E,R){"use strict";const m=R;m.Reporter=o("./reporter").Reporter,m.DecoderBuffer=o("./buffer").DecoderBuffer,m.EncoderBuffer=o("./buffer").EncoderBuffer,m.Node=o("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(o,E,R){"use strict";const m=o("../base/reporter").Reporter,_=o("../base/buffer").EncoderBuffer,v=o("../base/buffer").DecoderBuffer,h=o("minimalistic-assert"),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],b=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function O(f,k,I){const x={};this._baseState=x,x.name=I,x.enc=f,x.parent=k||null,x.children=null,x.tag=null,x.args=null,x.reverseArgs=null,x.choice=null,x.optional=!1,x.any=!1,x.obj=!1,x.use=null,x.useDecoder=null,x.key=null,x.default=null,x.explicit=null,x.implicit=null,x.contains=null,x.parent||(x.children=[],this._wrap())}E.exports=O;const w=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];O.prototype.clone=function(){const f=this._baseState,k={};w.forEach(function(x){k[x]=f[x]});const I=new this.constructor(k.parent);return I._baseState=k,I},O.prototype._wrap=function(){const f=this._baseState;b.forEach(function(k){this[k]=function(){const I=new this.constructor(this);return f.children.push(I),I[k].apply(I,arguments)}},this)},O.prototype._init=function(f){const k=this._baseState;h(null===k.parent),f.call(this),k.children=k.children.filter(function(I){return I._baseState.parent===this},this),h.equal(k.children.length,1,"Root node can have only one child")},O.prototype._useArgs=function(f){const k=this._baseState,I=f.filter(function(x){return x instanceof this.constructor},this);f=f.filter(function(x){return!(x instanceof this.constructor)},this),0!==I.length&&(h(null===k.children),k.children=I,I.forEach(function(x){x._baseState.parent=this},this)),0!==f.length&&(h(null===k.args),k.args=f,k.reverseArgs=f.map(function(x){if("object"!=typeof x||x.constructor!==Object)return x;const g={};return Object.keys(x).forEach(function(C){C==(0|C)&&(C|=0),g[x[C]]=C}),g}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(f){O.prototype[f]=function(){throw new Error(f+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(f){O.prototype[f]=function(){const k=this._baseState,I=Array.prototype.slice.call(arguments);return h(null===k.tag),k.tag=f,this._useArgs(I),this}}),O.prototype.use=function(f){h(f);const k=this._baseState;return h(null===k.use),k.use=f,this},O.prototype.optional=function(){return this._baseState.optional=!0,this},O.prototype.def=function(f){const k=this._baseState;return h(null===k.default),k.default=f,k.optional=!0,this},O.prototype.explicit=function(f){const k=this._baseState;return h(null===k.explicit&&null===k.implicit),k.explicit=f,this},O.prototype.implicit=function(f){const k=this._baseState;return h(null===k.explicit&&null===k.implicit),k.implicit=f,this},O.prototype.obj=function(){const f=this._baseState,k=Array.prototype.slice.call(arguments);return f.obj=!0,0!==k.length&&this._useArgs(k),this},O.prototype.key=function(f){const k=this._baseState;return h(null===k.key),k.key=f,this},O.prototype.any=function(){return this._baseState.any=!0,this},O.prototype.choice=function(f){const k=this._baseState;return h(null===k.choice),k.choice=f,this._useArgs(Object.keys(f).map(function(I){return f[I]})),this},O.prototype.contains=function(f){const k=this._baseState;return h(null===k.use),k.contains=f,this},O.prototype._decode=function(f,k){const I=this._baseState;if(null===I.parent)return f.wrapResult(I.children[0]._decode(f,k));let x,g=I.default,C=!0,F=null;if(null!==I.key&&(F=f.enterKey(I.key)),I.optional){let Y=null;if(null!==I.explicit?Y=I.explicit:null!==I.implicit?Y=I.implicit:null!==I.tag&&(Y=I.tag),null!==Y||I.any){if(C=this._peekTag(f,Y,I.any),f.isError(C))return C}else{const Q=f.save();try{null===I.choice?this._decodeGeneric(I.tag,f,k):this._decodeChoice(f,k),C=!0}catch{C=!1}f.restore(Q)}}if(I.obj&&C&&(x=f.enterObject()),C){if(null!==I.explicit){const Q=this._decodeTag(f,I.explicit);if(f.isError(Q))return Q;f=Q}const Y=f.offset;if(null===I.use&&null===I.choice){let Q;I.any&&(Q=f.save());const se=this._decodeTag(f,null!==I.implicit?I.implicit:I.tag,I.any);if(f.isError(se))return se;I.any?g=f.raw(Q):f=se}if(k&&k.track&&null!==I.tag&&k.track(f.path(),Y,f.length,"tagged"),k&&k.track&&null!==I.tag&&k.track(f.path(),f.offset,f.length,"content"),I.any||(g=null===I.choice?this._decodeGeneric(I.tag,f,k):this._decodeChoice(f,k)),f.isError(g))return g;if(I.any||null!==I.choice||null===I.children||I.children.forEach(function(Q){Q._decode(f,k)}),I.contains&&("octstr"===I.tag||"bitstr"===I.tag)){const Q=new v(g);g=this._getUse(I.contains,f._reporterState.obj)._decode(Q,k)}}return I.obj&&C&&(g=f.leaveObject(x)),null===I.key||null===g&&!0!==C?null!==F&&f.exitKey(F):f.leaveKey(F,I.key,g),g},O.prototype._decodeGeneric=function(f,k,I){const x=this._baseState;return"seq"===f||"set"===f?null:"seqof"===f||"setof"===f?this._decodeList(k,f,x.args[0],I):/str$/.test(f)?this._decodeStr(k,f,I):"objid"===f&&x.args?this._decodeObjid(k,x.args[0],x.args[1],I):"objid"===f?this._decodeObjid(k,null,null,I):"gentime"===f||"utctime"===f?this._decodeTime(k,f,I):"null_"===f?this._decodeNull(k,I):"bool"===f?this._decodeBool(k,I):"objDesc"===f?this._decodeStr(k,f,I):"int"===f||"enum"===f?this._decodeInt(k,x.args&&x.args[0],I):null!==x.use?this._getUse(x.use,k._reporterState.obj)._decode(k,I):k.error("unknown tag: "+f)},O.prototype._getUse=function(f,k){const I=this._baseState;return I.useDecoder=this._use(f,k),h(null===I.useDecoder._baseState.parent),I.useDecoder=I.useDecoder._baseState.children[0],I.implicit!==I.useDecoder._baseState.implicit&&(I.useDecoder=I.useDecoder.clone(),I.useDecoder._baseState.implicit=I.implicit),I.useDecoder},O.prototype._decodeChoice=function(f,k){const I=this._baseState;let x=null,g=!1;return Object.keys(I.choice).some(function(C){const F=f.save(),Y=I.choice[C];try{const Q=Y._decode(f,k);if(f.isError(Q))return!1;x={type:C,value:Q},g=!0}catch{return f.restore(F),!1}return!0},this),g?x:f.error("Choice not matched")},O.prototype._createEncoderBuffer=function(f){return new _(f,this.reporter)},O.prototype._encode=function(f,k,I){const x=this._baseState;if(null!==x.default&&x.default===f)return;const g=this._encodeValue(f,k,I);return void 0===g||this._skipDefault(g,k,I)?void 0:g},O.prototype._encodeValue=function(f,k,I){const x=this._baseState;if(null===x.parent)return x.children[0]._encode(f,k||new m);let g=null;if(this.reporter=k,x.optional&&void 0===f){if(null===x.default)return;f=x.default}let C=null,F=!1;if(x.any)g=this._createEncoderBuffer(f);else if(x.choice)g=this._encodeChoice(f,k);else if(x.contains)C=this._getUse(x.contains,I)._encode(f,k),F=!0;else if(x.children)C=x.children.map(function(Y){if("null_"===Y._baseState.tag)return Y._encode(null,k,f);if(null===Y._baseState.key)return k.error("Child should have a key");const Q=k.enterKey(Y._baseState.key);if("object"!=typeof f)return k.error("Child expected, but input is not object");const se=Y._encode(f[Y._baseState.key],k,f);return k.leaveKey(Q),se},this).filter(function(Y){return Y}),C=this._createEncoderBuffer(C);else if("seqof"===x.tag||"setof"===x.tag){if(!x.args||1!==x.args.length)return k.error("Too many args for : "+x.tag);if(!Array.isArray(f))return k.error("seqof/setof, but data is not Array");const Y=this.clone();Y._baseState.implicit=null,C=this._createEncoderBuffer(f.map(function(Q){return this._getUse(this._baseState.args[0],f)._encode(Q,k)},Y))}else null!==x.use?g=this._getUse(x.use,I)._encode(f,k):(C=this._encodePrimitive(x.tag,f),F=!0);if(!x.any&&null===x.choice){const Y=null!==x.implicit?x.implicit:x.tag,Q=null===x.implicit?"universal":"context";null===Y?null===x.use&&k.error("Tag could be omitted only for .use()"):null===x.use&&(g=this._encodeComposite(Y,F,Q,C))}return null!==x.explicit&&(g=this._encodeComposite(x.explicit,!1,"context",g)),g},O.prototype._encodeChoice=function(f,k){const I=this._baseState,x=I.choice[f.type];return x||h(!1,f.type+" not found in "+JSON.stringify(Object.keys(I.choice))),x._encode(f.value,k)},O.prototype._encodePrimitive=function(f,k){const I=this._baseState;if(/str$/.test(f))return this._encodeStr(k,f);if("objid"===f&&I.args)return this._encodeObjid(k,I.reverseArgs[0],I.args[1]);if("objid"===f)return this._encodeObjid(k,null,null);if("gentime"===f||"utctime"===f)return this._encodeTime(k,f);if("null_"===f)return this._encodeNull();if("int"===f||"enum"===f)return this._encodeInt(k,I.args&&I.reverseArgs[0]);if("bool"===f)return this._encodeBool(k);if("objDesc"===f)return this._encodeStr(k,f);throw new Error("Unsupported tag: "+f)},O.prototype._isNumstr=function(f){return/^[0-9 ]*$/.test(f)},O.prototype._isPrintstr=function(f){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(f)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(o,E,R){"use strict";const m=o("inherits");function _(h){this._reporterState={obj:null,path:[],options:h||{},errors:[]}}function v(h,s){this.path=h,this.rethrow(s)}R.Reporter=_,_.prototype.isError=function(h){return h instanceof v},_.prototype.save=function(){const h=this._reporterState;return{obj:h.obj,pathLen:h.path.length}},_.prototype.restore=function(h){const s=this._reporterState;s.obj=h.obj,s.path=s.path.slice(0,h.pathLen)},_.prototype.enterKey=function(h){return this._reporterState.path.push(h)},_.prototype.exitKey=function(h){const s=this._reporterState;s.path=s.path.slice(0,h-1)},_.prototype.leaveKey=function(h,s,b){const O=this._reporterState;this.exitKey(h),null!==O.obj&&(O.obj[s]=b)},_.prototype.path=function(){return this._reporterState.path.join("/")},_.prototype.enterObject=function(){const h=this._reporterState,s=h.obj;return h.obj={},s},_.prototype.leaveObject=function(h){const s=this._reporterState,b=s.obj;return s.obj=h,b},_.prototype.error=function(h){let s;const b=this._reporterState,O=h instanceof v;if(s=O?h:new v(b.path.map(function(w){return"["+JSON.stringify(w)+"]"}).join(""),h.message||h,h.stack),!b.options.partial)throw s;return O||b.errors.push(s),s},_.prototype.wrapResult=function(h){const s=this._reporterState;return s.options.partial?{result:this.isError(h)?null:h,errors:s.errors}:h},m(v,Error),v.prototype.rethrow=function(h){if(this.message=h+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,v),!this.stack)try{throw new Error(this.message)}catch(s){this.stack=s.stack}return this}},{inherits:440}],176:[function(o,E,R){"use strict";function m(_){const v={};return Object.keys(_).forEach(function(h){(0|h)==h&&(h|=0),v[_[h]]=h}),v}R.tagClass={0:"universal",1:"application",2:"context",3:"private"},R.tagClassByName=m(R.tagClass),R.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},R.tagByName=m(R.tag)},{}],177:[function(o,E,R){"use strict";const m=R;m._reverse=function(_){const v={};return Object.keys(_).forEach(function(h){(0|h)==h&&(h|=0),v[_[h]]=h}),v},m.der=o("./der")},{"./der":176}],178:[function(o,E,R){"use strict";const m=o("inherits"),_=o("bn.js"),v=o("../base/buffer").DecoderBuffer,h=o("../base/node"),s=o("../constants/der");function b(k){this.enc="der",this.name=k.name,this.entity=k,this.tree=new O,this.tree._init(k.body)}function O(k){h.call(this,"der",k)}function w(k,I){let x=k.readUInt8(I);if(k.isError(x))return x;const g=s.tagClass[x>>6],C=!(32&x);if(31&~x)x&=31;else{let F=x;for(x=0;!(128&~F);){if(F=k.readUInt8(I),k.isError(F))return F;x<<=7,x|=127&F}}return{cls:g,primitive:C,tag:x,tagStr:s.tag[x]}}function f(k,I,x){let g=k.readUInt8(x);if(k.isError(g))return g;if(!I&&128===g)return null;if(!(128&g))return g;const C=127&g;if(C>4)return k.error("length octect is too long");g=0;for(let F=0;F<C;F++){g<<=8;const Y=k.readUInt8(x);if(k.isError(Y))return Y;g|=Y}return g}E.exports=b,b.prototype.decode=function(k,I){return v.isDecoderBuffer(k)||(k=new v(k,I)),this.tree._decode(k,I)},m(O,h),O.prototype._peekTag=function(k,I,x){if(k.isEmpty())return!1;const g=k.save(),C=w(k,'Failed to peek tag: "'+I+'"');return k.isError(C)?C:(k.restore(g),C.tag===I||C.tagStr===I||C.tagStr+"of"===I||x)},O.prototype._decodeTag=function(k,I,x){const g=w(k,'Failed to decode tag of "'+I+'"');if(k.isError(g))return g;let C=f(k,g.primitive,'Failed to get length of "'+I+'"');if(k.isError(C))return C;if(!x&&g.tag!==I&&g.tagStr!==I&&g.tagStr+"of"!==I)return k.error('Failed to match tag: "'+I+'"');if(g.primitive||null!==C)return k.skip(C,'Failed to match body of: "'+I+'"');const F=k.save(),Y=this._skipUntilEnd(k,'Failed to skip indefinite length body: "'+this.tag+'"');return k.isError(Y)?Y:(C=k.offset-F.offset,k.restore(F),k.skip(C,'Failed to match body of: "'+I+'"'))},O.prototype._skipUntilEnd=function(k,I){for(;;){const x=w(k,I);if(k.isError(x))return x;const g=f(k,x.primitive,I);if(k.isError(g))return g;let C;if(C=x.primitive||null!==g?k.skip(g):this._skipUntilEnd(k,I),k.isError(C))return C;if("end"===x.tagStr)break}},O.prototype._decodeList=function(k,I,x,g){const C=[];for(;!k.isEmpty();){const F=this._peekTag(k,"end");if(k.isError(F))return F;const Y=x.decode(k,"der",g);if(k.isError(Y)&&F)break;C.push(Y)}return C},O.prototype._decodeStr=function(k,I){if("bitstr"===I){const x=k.readUInt8();return k.isError(x)?x:{unused:x,data:k.raw()}}if("bmpstr"===I){const x=k.raw();if(x.length%2==1)return k.error("Decoding of string type: bmpstr length mismatch");let g="";for(let C=0;C<x.length/2;C++)g+=String.fromCharCode(x.readUInt16BE(2*C));return g}if("numstr"===I){const x=k.raw().toString("ascii");return this._isNumstr(x)?x:k.error("Decoding of string type: numstr unsupported characters")}if("octstr"===I||"objDesc"===I)return k.raw();if("printstr"===I){const x=k.raw().toString("ascii");return this._isPrintstr(x)?x:k.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(I)?k.raw().toString():k.error("Decoding of string type: "+I+" unsupported")},O.prototype._decodeObjid=function(k,I,x){let g;const C=[];let F=0,Y=0;for(;!k.isEmpty();)Y=k.readUInt8(),F<<=7,F|=127&Y,!(128&Y)&&(C.push(F),F=0);if(128&Y&&C.push(F),g=x?C:[C[0]/40|0,C[0]%40].concat(C.slice(1)),I){let ie=I[g.join(" ")];void 0===ie&&(ie=I[g.join(".")]),void 0!==ie&&(g=ie)}return g},O.prototype._decodeTime=function(k,I){const x=k.raw().toString();let g,C,F,Y,Q,se;if("gentime"===I)g=0|x.slice(0,4),C=0|x.slice(4,6),F=0|x.slice(6,8),Y=0|x.slice(8,10),Q=0|x.slice(10,12),se=0|x.slice(12,14);else{if("utctime"!==I)return k.error("Decoding "+I+" time is not supported yet");g=0|x.slice(0,2),C=0|x.slice(2,4),F=0|x.slice(4,6),Y=0|x.slice(6,8),Q=0|x.slice(8,10),se=0|x.slice(10,12),g=g<70?2e3+g:1900+g}return Date.UTC(g,C-1,F,Y,Q,se,0)},O.prototype._decodeNull=function(){return null},O.prototype._decodeBool=function(k){const I=k.readUInt8();return k.isError(I)?I:0!==I},O.prototype._decodeInt=function(k,I){const x=k.raw();let g=new _(x);return I&&(g=I[g.toString(10)]||g),g},O.prototype._use=function(k,I){return"function"==typeof k&&(k=k(I)),k._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(o,E,R){"use strict";const m=R;m.der=o("./der"),m.pem=o("./pem")},{"./der":178,"./pem":180}],180:[function(o,E,R){"use strict";const m=o("inherits"),_=o("safer-buffer").Buffer,v=o("./der");function h(s){v.call(this,s),this.enc="pem"}m(h,v),E.exports=h,h.prototype.decode=function(s,b){const O=s.toString().split(/[\r\n]+/g),w=b.label.toUpperCase(),f=/^-----(BEGIN|END) ([^-]+)-----$/;let k=-1,I=-1;for(let C=0;C<O.length;C++){const F=O[C].match(f);if(null!==F&&F[2]===w){if(-1!==k){if("END"!==F[1])break;I=C;break}if("BEGIN"!==F[1])break;k=C}}if(-1===k||-1===I)throw new Error("PEM section not found for: "+w);const x=O.slice(k+1,I).join("");x.replace(/[^a-z0-9+/=]+/gi,"");const g=_.from(x,"base64");return v.prototype.decode.call(this,g,b)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(o,E,R){"use strict";const m=o("inherits"),_=o("safer-buffer").Buffer,v=o("../base/node"),h=o("../constants/der");function s(w){this.enc="der",this.name=w.name,this.entity=w,this.tree=new b,this.tree._init(w.body)}function b(w){v.call(this,"der",w)}function O(w){return w<10?"0"+w:w}E.exports=s,s.prototype.encode=function(w,f){return this.tree._encode(w,f).join()},m(b,v),b.prototype._encodeComposite=function(w,f,k,I){const x=function(F,Y,Q,se){let ie;if("seqof"===F?F="seq":"setof"===F&&(F="set"),h.tagByName.hasOwnProperty(F))ie=h.tagByName[F];else{if("number"!=typeof F||(0|F)!==F)return se.error("Unknown tag: "+F);ie=F}return ie>=31?se.error("Multi-octet tag encoding unsupported"):(Y||(ie|=32),ie|=h.tagClassByName[Q||"universal"]<<6,ie)}(w,f,k,this.reporter);if(I.length<128){const F=_.alloc(2);return F[0]=x,F[1]=I.length,this._createEncoderBuffer([F,I])}let g=1;for(let F=I.length;F>=256;F>>=8)g++;const C=_.alloc(2+g);C[0]=x,C[1]=128|g;for(let F=1+g,Y=I.length;Y>0;F--,Y>>=8)C[F]=255&Y;return this._createEncoderBuffer([C,I])},b.prototype._encodeStr=function(w,f){if("bitstr"===f)return this._createEncoderBuffer([0|w.unused,w.data]);if("bmpstr"===f){const k=_.alloc(2*w.length);for(let I=0;I<w.length;I++)k.writeUInt16BE(w.charCodeAt(I),2*I);return this._createEncoderBuffer(k)}return"numstr"===f?this._isNumstr(w)?this._createEncoderBuffer(w):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===f?this._isPrintstr(w)?this._createEncoderBuffer(w):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(f)||"objDesc"===f?this._createEncoderBuffer(w):this.reporter.error("Encoding of string type: "+f+" unsupported")},b.prototype._encodeObjid=function(w,f,k){if("string"==typeof w){if(!f)return this.reporter.error("string objid given, but no values map found");if(!f.hasOwnProperty(w))return this.reporter.error("objid not found in values map");w=f[w].split(/[\s.]+/g);for(let C=0;C<w.length;C++)w[C]|=0}else if(Array.isArray(w)){w=w.slice();for(let C=0;C<w.length;C++)w[C]|=0}if(!Array.isArray(w))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(w));if(!k){if(w[1]>=40)return this.reporter.error("Second objid identifier OOB");w.splice(0,2,40*w[0]+w[1])}let I=0;for(let C=0;C<w.length;C++){let F=w[C];for(I++;F>=128;F>>=7)I++}const x=_.alloc(I);let g=x.length-1;for(let C=w.length-1;C>=0;C--){let F=w[C];for(x[g--]=127&F;(F>>=7)>0;)x[g--]=128|127&F}return this._createEncoderBuffer(x)},b.prototype._encodeTime=function(w,f){let k;const I=new Date(w);return"gentime"===f?k=[O(I.getUTCFullYear()),O(I.getUTCMonth()+1),O(I.getUTCDate()),O(I.getUTCHours()),O(I.getUTCMinutes()),O(I.getUTCSeconds()),"Z"].join(""):"utctime"===f?k=[O(I.getUTCFullYear()%100),O(I.getUTCMonth()+1),O(I.getUTCDate()),O(I.getUTCHours()),O(I.getUTCMinutes()),O(I.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+f+" time is not supported yet"),this._encodeStr(k,"octstr")},b.prototype._encodeNull=function(){return this._createEncoderBuffer("")},b.prototype._encodeInt=function(w,f){if("string"==typeof w){if(!f)return this.reporter.error("String int or enum given, but no values map");if(!f.hasOwnProperty(w))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(w));w=f[w]}if("number"!=typeof w&&!_.isBuffer(w)){const x=w.toArray();!w.sign&&128&x[0]&&x.unshift(0),w=_.from(x)}if(_.isBuffer(w)){let x=w.length;0===w.length&&x++;const g=_.alloc(x);return w.copy(g),0===w.length&&(g[0]=0),this._createEncoderBuffer(g)}if(w<128)return this._createEncoderBuffer(w);if(w<256)return this._createEncoderBuffer([0,w]);let k=1;for(let x=w;x>=256;x>>=8)k++;const I=new Array(k);for(let x=I.length-1;x>=0;x--)I[x]=255&w,w>>=8;return 128&I[0]&&I.unshift(0),this._createEncoderBuffer(_.from(I))},b.prototype._encodeBool=function(w){return this._createEncoderBuffer(w?255:0)},b.prototype._use=function(w,f){return"function"==typeof w&&(w=w(f)),w._getEncoder("der").tree},b.prototype._skipDefault=function(w,f,k){const I=this._baseState;let x;if(null===I.default)return!1;const g=w.join();if(void 0===I.defaultBuffer&&(I.defaultBuffer=this._encodeValue(I.default,f,k).join()),g.length!==I.defaultBuffer.length)return!1;for(x=0;x<g.length;x++)if(g[x]!==I.defaultBuffer[x])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(o,E,R){"use strict";const m=R;m.der=o("./der"),m.pem=o("./pem")},{"./der":181,"./pem":183}],183:[function(o,E,R){"use strict";const m=o("inherits"),_=o("./der");function v(h){_.call(this,h),this.enc="pem"}m(v,_),E.exports=v,v.prototype.encode=function(h,s){const b=_.prototype.encode.call(this,h).toString("base64"),O=["-----BEGIN "+s.label+"-----"];for(let w=0;w<b.length;w+=64)O.push(b.slice(w,w+64));return O.push("-----END "+s.label+"-----"),O.join("\n")}},{"./der":181,inherits:440}],184:[function(o,E,R){"use strict";!function(m,_){function v(oe,me){if(!oe)throw new Error(me||"Assertion failed")}function h(oe,me){oe.super_=me;var we=function(){};we.prototype=me.prototype,oe.prototype=new we,oe.prototype.constructor=oe}function s(oe,me,we){if(s.isBN(oe))return oe;this.negative=0,this.words=null,this.length=0,this.red=null,null!==oe&&("le"!==me&&"be"!==me||(we=me,me=10),this._init(oe||0,me||10,we||"be"))}var b;"object"==typeof m?m.exports=s:(void 0).BN=s,s.BN=s,s.wordSize=26;try{b=typeof window<"u"&&void 0!==window.Buffer?window.Buffer:o("buffer").Buffer}catch{}function O(oe,me){var we=oe.charCodeAt(me);return we>=65&&we<=70?we-55:we>=97&&we<=102?we-87:we-48&15}function w(oe,me,we){var N=O(oe,we);return we-1>=me&&(N|=O(oe,we-1)<<4),N}function f(oe,me,we,N){for(var G=0,W=Math.min(oe.length,we),z=me;z<W;z++){var X=oe.charCodeAt(z)-48;G*=N,G+=X>=49?X-49+10:X>=17?X-17+10:X}return G}s.isBN=function(oe){return oe instanceof s||null!==oe&&"object"==typeof oe&&oe.constructor.wordSize===s.wordSize&&Array.isArray(oe.words)},s.max=function(oe,me){return oe.cmp(me)>0?oe:me},s.min=function(oe,me){return oe.cmp(me)<0?oe:me},s.prototype._init=function(oe,me,we){if("number"==typeof oe)return this._initNumber(oe,me,we);if("object"==typeof oe)return this._initArray(oe,me,we);"hex"===me&&(me=16),v(me===(0|me)&&me>=2&&me<=36);var N=0;"-"===(oe=oe.toString().replace(/\s+/g,""))[0]&&(N++,this.negative=1),N<oe.length&&(16===me?this._parseHex(oe,N,we):(this._parseBase(oe,me,N),"le"===we&&this._initArray(this.toArray(),me,we)))},s.prototype._initNumber=function(oe,me,we){oe<0&&(this.negative=1,oe=-oe),oe<67108864?(this.words=[67108863&oe],this.length=1):oe<4503599627370496?(this.words=[67108863&oe,oe/67108864&67108863],this.length=2):(v(oe<9007199254740992),this.words=[67108863&oe,oe/67108864&67108863,1],this.length=3),"le"===we&&this._initArray(this.toArray(),me,we)},s.prototype._initArray=function(oe,me,we){if(v("number"==typeof oe.length),oe.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(oe.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var G,W,z=0;if("be"===we)for(N=oe.length-1,G=0;N>=0;N-=3)this.words[G]|=(W=oe[N]|oe[N-1]<<8|oe[N-2]<<16)<<z&67108863,this.words[G+1]=W>>>26-z&67108863,(z+=24)>=26&&(z-=26,G++);else if("le"===we)for(N=0,G=0;N<oe.length;N+=3)this.words[G]|=(W=oe[N]|oe[N+1]<<8|oe[N+2]<<16)<<z&67108863,this.words[G+1]=W>>>26-z&67108863,(z+=24)>=26&&(z-=26,G++);return this.strip()},s.prototype._parseHex=function(oe,me,we){this.length=Math.ceil((oe.length-me)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var G,W=0,z=0;if("be"===we)for(N=oe.length-1;N>=me;N-=2)G=w(oe,me,N)<<W,this.words[z]|=67108863&G,W>=18?(W-=18,this.words[z+=1]|=G>>>26):W+=8;else for(N=(oe.length-me)%2==0?me+1:me;N<oe.length;N+=2)G=w(oe,me,N)<<W,this.words[z]|=67108863&G,W>=18?(W-=18,this.words[z+=1]|=G>>>26):W+=8;this.strip()},s.prototype._parseBase=function(oe,me,we){this.words=[0],this.length=1;for(var N=0,G=1;G<=67108863;G*=me)N++;N--,G=G/me|0;for(var W=oe.length-we,z=W%N,X=Math.min(W,W-z)+we,q=0,ye=we;ye<X;ye+=N)q=f(oe,ye,ye+N,me),this.imuln(G),this.words[0]+q<67108864?this.words[0]+=q:this._iaddn(q);if(0!==z){var xe=1;for(q=f(oe,ye,oe.length,me),ye=0;ye<z;ye++)xe*=me;this.imuln(xe),this.words[0]+q<67108864?this.words[0]+=q:this._iaddn(q)}this.strip()},s.prototype.copy=function(oe){oe.words=new Array(this.length);for(var me=0;me<this.length;me++)oe.words[me]=this.words[me];oe.length=this.length,oe.negative=this.negative,oe.red=this.red},s.prototype.clone=function(){var oe=new s(null);return this.copy(oe),oe},s.prototype._expand=function(oe){for(;this.length<oe;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var k=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],I=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],x=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function g(oe,me,we){we.negative=me.negative^oe.negative;var N=oe.length+me.length|0;we.length=N,N=N-1|0;var G=0|oe.words[0],W=0|me.words[0],z=G*W,q=z/67108864|0;we.words[0]=67108863&z;for(var ye=1;ye<N;ye++){for(var xe=q>>>26,ge=67108863&q,Ee=Math.min(ye,me.length-1),he=Math.max(0,ye-oe.length+1);he<=Ee;he++)xe+=(z=(G=0|oe.words[ye-he|0])*(W=0|me.words[he])+ge)/67108864|0,ge=67108863&z;we.words[ye]=0|ge,q=0|xe}return 0!==q?we.words[ye]=0|q:we.length--,we.strip()}s.prototype.toString=function(oe,me){var we;if(me=0|me||1,16===(oe=oe||10)||"hex"===oe){we="";for(var N=0,G=0,W=0;W<this.length;W++){var z=this.words[W],X=(16777215&(z<<N|G)).toString(16);we=0!=(G=z>>>24-N&16777215)||W!==this.length-1?k[6-X.length]+X+we:X+we,(N+=2)>=26&&(N-=26,W--)}for(0!==G&&(we=G.toString(16)+we);we.length%me!=0;)we="0"+we;return 0!==this.negative&&(we="-"+we),we}if(oe===(0|oe)&&oe>=2&&oe<=36){var q=I[oe],ye=x[oe];we="";var xe=this.clone();for(xe.negative=0;!xe.isZero();){var ge=xe.modn(ye).toString(oe);we=(xe=xe.idivn(ye)).isZero()?ge+we:k[q-ge.length]+ge+we}for(this.isZero()&&(we="0"+we);we.length%me!=0;)we="0"+we;return 0!==this.negative&&(we="-"+we),we}v(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var oe=this.words[0];return 2===this.length?oe+=67108864*this.words[1]:3===this.length&&1===this.words[2]?oe+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-oe:oe},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(oe,me){return v(void 0!==b),this.toArrayLike(b,oe,me)},s.prototype.toArray=function(oe,me){return this.toArrayLike(Array,oe,me)},s.prototype.toArrayLike=function(oe,me,we){var N=this.byteLength(),G=we||Math.max(1,N);v(N<=G,"byte array longer than desired length"),v(G>0,"Requested array length <= 0"),this.strip();var W,z,X="le"===me,q=new oe(G),ye=this.clone();if(X){for(z=0;!ye.isZero();z++)W=ye.andln(255),ye.iushrn(8),q[z]=W;for(;z<G;z++)q[z]=0}else{for(z=0;z<G-N;z++)q[z]=0;for(z=0;!ye.isZero();z++)W=ye.andln(255),ye.iushrn(8),q[G-z-1]=W}return q},s.prototype._countBits=Math.clz32?function(oe){return 32-Math.clz32(oe)}:function(oe){var me=oe,we=0;return me>=4096&&(we+=13,me>>>=13),me>=64&&(we+=7,me>>>=7),me>=8&&(we+=4,me>>>=4),me>=2&&(we+=2,me>>>=2),we+me},s.prototype._zeroBits=function(oe){if(0===oe)return 26;var me=oe,we=0;return!(8191&me)&&(we+=13,me>>>=13),!(127&me)&&(we+=7,me>>>=7),!(15&me)&&(we+=4,me>>>=4),!(3&me)&&(we+=2,me>>>=2),!(1&me)&&we++,we},s.prototype.bitLength=function(){var me=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+me},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var oe=0,me=0;me<this.length;me++){var we=this._zeroBits(this.words[me]);if(oe+=we,26!==we)break}return oe},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(oe){return 0!==this.negative?this.abs().inotn(oe).iaddn(1):this.clone()},s.prototype.fromTwos=function(oe){return this.testn(oe-1)?this.notn(oe).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(oe){for(;this.length<oe.length;)this.words[this.length++]=0;for(var me=0;me<oe.length;me++)this.words[me]=this.words[me]|oe.words[me];return this.strip()},s.prototype.ior=function(oe){return v(!(this.negative|oe.negative)),this.iuor(oe)},s.prototype.or=function(oe){return this.length>oe.length?this.clone().ior(oe):oe.clone().ior(this)},s.prototype.uor=function(oe){return this.length>oe.length?this.clone().iuor(oe):oe.clone().iuor(this)},s.prototype.iuand=function(oe){var me;me=this.length>oe.length?oe:this;for(var we=0;we<me.length;we++)this.words[we]=this.words[we]&oe.words[we];return this.length=me.length,this.strip()},s.prototype.iand=function(oe){return v(!(this.negative|oe.negative)),this.iuand(oe)},s.prototype.and=function(oe){return this.length>oe.length?this.clone().iand(oe):oe.clone().iand(this)},s.prototype.uand=function(oe){return this.length>oe.length?this.clone().iuand(oe):oe.clone().iuand(this)},s.prototype.iuxor=function(oe){var me,we;this.length>oe.length?(me=this,we=oe):(me=oe,we=this);for(var N=0;N<we.length;N++)this.words[N]=me.words[N]^we.words[N];if(this!==me)for(;N<me.length;N++)this.words[N]=me.words[N];return this.length=me.length,this.strip()},s.prototype.ixor=function(oe){return v(!(this.negative|oe.negative)),this.iuxor(oe)},s.prototype.xor=function(oe){return this.length>oe.length?this.clone().ixor(oe):oe.clone().ixor(this)},s.prototype.uxor=function(oe){return this.length>oe.length?this.clone().iuxor(oe):oe.clone().iuxor(this)},s.prototype.inotn=function(oe){v("number"==typeof oe&&oe>=0);var me=0|Math.ceil(oe/26),we=oe%26;this._expand(me),we>0&&me--;for(var N=0;N<me;N++)this.words[N]=67108863&~this.words[N];return we>0&&(this.words[N]=~this.words[N]&67108863>>26-we),this.strip()},s.prototype.notn=function(oe){return this.clone().inotn(oe)},s.prototype.setn=function(oe,me){v("number"==typeof oe&&oe>=0);var we=oe/26|0,N=oe%26;return this._expand(we+1),this.words[we]=me?this.words[we]|1<<N:this.words[we]&~(1<<N),this.strip()},s.prototype.iadd=function(oe){var me,we,N;if(0!==this.negative&&0===oe.negative)return this.negative=0,me=this.isub(oe),this.negative^=1,this._normSign();if(0===this.negative&&0!==oe.negative)return oe.negative=0,me=this.isub(oe),oe.negative=1,me._normSign();this.length>oe.length?(we=this,N=oe):(we=oe,N=this);for(var G=0,W=0;W<N.length;W++)this.words[W]=67108863&(me=(0|we.words[W])+(0|N.words[W])+G),G=me>>>26;for(;0!==G&&W<we.length;W++)this.words[W]=67108863&(me=(0|we.words[W])+G),G=me>>>26;if(this.length=we.length,0!==G)this.words[this.length]=G,this.length++;else if(we!==this)for(;W<we.length;W++)this.words[W]=we.words[W];return this},s.prototype.add=function(oe){var me;return 0!==oe.negative&&0===this.negative?(oe.negative=0,me=this.sub(oe),oe.negative^=1,me):0===oe.negative&&0!==this.negative?(this.negative=0,me=oe.sub(this),this.negative=1,me):this.length>oe.length?this.clone().iadd(oe):oe.clone().iadd(this)},s.prototype.isub=function(oe){if(0!==oe.negative){oe.negative=0;var me=this.iadd(oe);return oe.negative=1,me._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(oe),this.negative=1,this._normSign();var we,N,G=this.cmp(oe);if(0===G)return this.negative=0,this.length=1,this.words[0]=0,this;G>0?(we=this,N=oe):(we=oe,N=this);for(var W=0,z=0;z<N.length;z++)W=(me=(0|we.words[z])-(0|N.words[z])+W)>>26,this.words[z]=67108863&me;for(;0!==W&&z<we.length;z++)W=(me=(0|we.words[z])+W)>>26,this.words[z]=67108863&me;if(0===W&&z<we.length&&we!==this)for(;z<we.length;z++)this.words[z]=we.words[z];return this.length=Math.max(this.length,z),we!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(oe){return this.clone().isub(oe)};var C=function(oe,me,we){var N,G,W,z=oe.words,X=me.words,q=we.words,ye=0,xe=0|z[0],ge=8191&xe,Ee=xe>>>13,he=0|z[1],Ie=8191&he,ce=he>>>13,de=0|z[2],pe=8191&de,Be=de>>>13,We=0|z[3],tt=8191&We,vt=We>>>13,Xt=0|z[4],Nt=8191&Xt,Qe=Xt>>>13,Et=0|z[5],Lt=8191&Et,wt=Et>>>13,Mt=0|z[6],Ge=8191&Mt,ot=Mt>>>13,Tt=0|z[7],jt=8191&Tt,li=Tt>>>13,an=0|z[8],xi=8191&an,Je=an>>>13,Ht=0|z[9],gi=8191&Ht,Ti=Ht>>>13,ni=0|X[0],wi=8191&ni,ui=ni>>>13,cn=0|X[1],Ui=8191&cn,Xi=cn>>>13,Qi=0|X[2],Ut=8191&Qi,It=Qi>>>13,yt=0|X[3],pt=8191&yt,st=yt>>>13,Wt=0|X[4],Vt=8191&Wt,ci=Wt>>>13,bi=0|X[5],gt=8191&bi,ai=bi>>>13,kt=0|X[6],mi=8191&kt,Kt=kt>>>13,qi=0|X[7],Wi=8191&qi,yn=qi>>>13,Ur=0|X[8],ar=8191&Ur,na=Ur>>>13,po=0|X[9],sa=8191&po,Pr=po>>>13;we.negative=oe.negative^me.negative,we.length=19;var no=(ye+(N=Math.imul(ge,wi))|0)+((8191&(G=(G=Math.imul(ge,ui))+Math.imul(Ee,wi)|0))<<13)|0;ye=((W=Math.imul(Ee,ui))+(G>>>13)|0)+(no>>>26)|0,no&=67108863,N=Math.imul(Ie,wi),G=(G=Math.imul(Ie,ui))+Math.imul(ce,wi)|0,W=Math.imul(ce,ui);var ja=(ye+(N=N+Math.imul(ge,Ui)|0)|0)+((8191&(G=(G=G+Math.imul(ge,Xi)|0)+Math.imul(Ee,Ui)|0))<<13)|0;ye=((W=W+Math.imul(Ee,Xi)|0)+(G>>>13)|0)+(ja>>>26)|0,ja&=67108863,N=Math.imul(pe,wi),G=(G=Math.imul(pe,ui))+Math.imul(Be,wi)|0,W=Math.imul(Be,ui),N=N+Math.imul(Ie,Ui)|0,G=(G=G+Math.imul(Ie,Xi)|0)+Math.imul(ce,Ui)|0,W=W+Math.imul(ce,Xi)|0;var Na=(ye+(N=N+Math.imul(ge,Ut)|0)|0)+((8191&(G=(G=G+Math.imul(ge,It)|0)+Math.imul(Ee,Ut)|0))<<13)|0;ye=((W=W+Math.imul(Ee,It)|0)+(G>>>13)|0)+(Na>>>26)|0,Na&=67108863,N=Math.imul(tt,wi),G=(G=Math.imul(tt,ui))+Math.imul(vt,wi)|0,W=Math.imul(vt,ui),N=N+Math.imul(pe,Ui)|0,G=(G=G+Math.imul(pe,Xi)|0)+Math.imul(Be,Ui)|0,W=W+Math.imul(Be,Xi)|0,N=N+Math.imul(Ie,Ut)|0,G=(G=G+Math.imul(Ie,It)|0)+Math.imul(ce,Ut)|0,W=W+Math.imul(ce,It)|0;var uo=(ye+(N=N+Math.imul(ge,pt)|0)|0)+((8191&(G=(G=G+Math.imul(ge,st)|0)+Math.imul(Ee,pt)|0))<<13)|0;ye=((W=W+Math.imul(Ee,st)|0)+(G>>>13)|0)+(uo>>>26)|0,uo&=67108863,N=Math.imul(Nt,wi),G=(G=Math.imul(Nt,ui))+Math.imul(Qe,wi)|0,W=Math.imul(Qe,ui),N=N+Math.imul(tt,Ui)|0,G=(G=G+Math.imul(tt,Xi)|0)+Math.imul(vt,Ui)|0,W=W+Math.imul(vt,Xi)|0,N=N+Math.imul(pe,Ut)|0,G=(G=G+Math.imul(pe,It)|0)+Math.imul(Be,Ut)|0,W=W+Math.imul(Be,It)|0,N=N+Math.imul(Ie,pt)|0,G=(G=G+Math.imul(Ie,st)|0)+Math.imul(ce,pt)|0,W=W+Math.imul(ce,st)|0;var Eo=(ye+(N=N+Math.imul(ge,Vt)|0)|0)+((8191&(G=(G=G+Math.imul(ge,ci)|0)+Math.imul(Ee,Vt)|0))<<13)|0;ye=((W=W+Math.imul(Ee,ci)|0)+(G>>>13)|0)+(Eo>>>26)|0,Eo&=67108863,N=Math.imul(Lt,wi),G=(G=Math.imul(Lt,ui))+Math.imul(wt,wi)|0,W=Math.imul(wt,ui),N=N+Math.imul(Nt,Ui)|0,G=(G=G+Math.imul(Nt,Xi)|0)+Math.imul(Qe,Ui)|0,W=W+Math.imul(Qe,Xi)|0,N=N+Math.imul(tt,Ut)|0,G=(G=G+Math.imul(tt,It)|0)+Math.imul(vt,Ut)|0,W=W+Math.imul(vt,It)|0,N=N+Math.imul(pe,pt)|0,G=(G=G+Math.imul(pe,st)|0)+Math.imul(Be,pt)|0,W=W+Math.imul(Be,st)|0,N=N+Math.imul(Ie,Vt)|0,G=(G=G+Math.imul(Ie,ci)|0)+Math.imul(ce,Vt)|0,W=W+Math.imul(ce,ci)|0;var To=(ye+(N=N+Math.imul(ge,gt)|0)|0)+((8191&(G=(G=G+Math.imul(ge,ai)|0)+Math.imul(Ee,gt)|0))<<13)|0;ye=((W=W+Math.imul(Ee,ai)|0)+(G>>>13)|0)+(To>>>26)|0,To&=67108863,N=Math.imul(Ge,wi),G=(G=Math.imul(Ge,ui))+Math.imul(ot,wi)|0,W=Math.imul(ot,ui),N=N+Math.imul(Lt,Ui)|0,G=(G=G+Math.imul(Lt,Xi)|0)+Math.imul(wt,Ui)|0,W=W+Math.imul(wt,Xi)|0,N=N+Math.imul(Nt,Ut)|0,G=(G=G+Math.imul(Nt,It)|0)+Math.imul(Qe,Ut)|0,W=W+Math.imul(Qe,It)|0,N=N+Math.imul(tt,pt)|0,G=(G=G+Math.imul(tt,st)|0)+Math.imul(vt,pt)|0,W=W+Math.imul(vt,st)|0,N=N+Math.imul(pe,Vt)|0,G=(G=G+Math.imul(pe,ci)|0)+Math.imul(Be,Vt)|0,W=W+Math.imul(Be,ci)|0,N=N+Math.imul(Ie,gt)|0,G=(G=G+Math.imul(Ie,ai)|0)+Math.imul(ce,gt)|0,W=W+Math.imul(ce,ai)|0;var Bi=(ye+(N=N+Math.imul(ge,mi)|0)|0)+((8191&(G=(G=G+Math.imul(ge,Kt)|0)+Math.imul(Ee,mi)|0))<<13)|0;ye=((W=W+Math.imul(Ee,Kt)|0)+(G>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,N=Math.imul(jt,wi),G=(G=Math.imul(jt,ui))+Math.imul(li,wi)|0,W=Math.imul(li,ui),N=N+Math.imul(Ge,Ui)|0,G=(G=G+Math.imul(Ge,Xi)|0)+Math.imul(ot,Ui)|0,W=W+Math.imul(ot,Xi)|0,N=N+Math.imul(Lt,Ut)|0,G=(G=G+Math.imul(Lt,It)|0)+Math.imul(wt,Ut)|0,W=W+Math.imul(wt,It)|0,N=N+Math.imul(Nt,pt)|0,G=(G=G+Math.imul(Nt,st)|0)+Math.imul(Qe,pt)|0,W=W+Math.imul(Qe,st)|0,N=N+Math.imul(tt,Vt)|0,G=(G=G+Math.imul(tt,ci)|0)+Math.imul(vt,Vt)|0,W=W+Math.imul(vt,ci)|0,N=N+Math.imul(pe,gt)|0,G=(G=G+Math.imul(pe,ai)|0)+Math.imul(Be,gt)|0,W=W+Math.imul(Be,ai)|0,N=N+Math.imul(Ie,mi)|0,G=(G=G+Math.imul(Ie,Kt)|0)+Math.imul(ce,mi)|0,W=W+Math.imul(ce,Kt)|0;var _t=(ye+(N=N+Math.imul(ge,Wi)|0)|0)+((8191&(G=(G=G+Math.imul(ge,yn)|0)+Math.imul(Ee,Wi)|0))<<13)|0;ye=((W=W+Math.imul(Ee,yn)|0)+(G>>>13)|0)+(_t>>>26)|0,_t&=67108863,N=Math.imul(xi,wi),G=(G=Math.imul(xi,ui))+Math.imul(Je,wi)|0,W=Math.imul(Je,ui),N=N+Math.imul(jt,Ui)|0,G=(G=G+Math.imul(jt,Xi)|0)+Math.imul(li,Ui)|0,W=W+Math.imul(li,Xi)|0,N=N+Math.imul(Ge,Ut)|0,G=(G=G+Math.imul(Ge,It)|0)+Math.imul(ot,Ut)|0,W=W+Math.imul(ot,It)|0,N=N+Math.imul(Lt,pt)|0,G=(G=G+Math.imul(Lt,st)|0)+Math.imul(wt,pt)|0,W=W+Math.imul(wt,st)|0,N=N+Math.imul(Nt,Vt)|0,G=(G=G+Math.imul(Nt,ci)|0)+Math.imul(Qe,Vt)|0,W=W+Math.imul(Qe,ci)|0,N=N+Math.imul(tt,gt)|0,G=(G=G+Math.imul(tt,ai)|0)+Math.imul(vt,gt)|0,W=W+Math.imul(vt,ai)|0,N=N+Math.imul(pe,mi)|0,G=(G=G+Math.imul(pe,Kt)|0)+Math.imul(Be,mi)|0,W=W+Math.imul(Be,Kt)|0,N=N+Math.imul(Ie,Wi)|0,G=(G=G+Math.imul(Ie,yn)|0)+Math.imul(ce,Wi)|0,W=W+Math.imul(ce,yn)|0;var si=(ye+(N=N+Math.imul(ge,ar)|0)|0)+((8191&(G=(G=G+Math.imul(ge,na)|0)+Math.imul(Ee,ar)|0))<<13)|0;ye=((W=W+Math.imul(Ee,na)|0)+(G>>>13)|0)+(si>>>26)|0,si&=67108863,N=Math.imul(gi,wi),G=(G=Math.imul(gi,ui))+Math.imul(Ti,wi)|0,W=Math.imul(Ti,ui),N=N+Math.imul(xi,Ui)|0,G=(G=G+Math.imul(xi,Xi)|0)+Math.imul(Je,Ui)|0,W=W+Math.imul(Je,Xi)|0,N=N+Math.imul(jt,Ut)|0,G=(G=G+Math.imul(jt,It)|0)+Math.imul(li,Ut)|0,W=W+Math.imul(li,It)|0,N=N+Math.imul(Ge,pt)|0,G=(G=G+Math.imul(Ge,st)|0)+Math.imul(ot,pt)|0,W=W+Math.imul(ot,st)|0,N=N+Math.imul(Lt,Vt)|0,G=(G=G+Math.imul(Lt,ci)|0)+Math.imul(wt,Vt)|0,W=W+Math.imul(wt,ci)|0,N=N+Math.imul(Nt,gt)|0,G=(G=G+Math.imul(Nt,ai)|0)+Math.imul(Qe,gt)|0,W=W+Math.imul(Qe,ai)|0,N=N+Math.imul(tt,mi)|0,G=(G=G+Math.imul(tt,Kt)|0)+Math.imul(vt,mi)|0,W=W+Math.imul(vt,Kt)|0,N=N+Math.imul(pe,Wi)|0,G=(G=G+Math.imul(pe,yn)|0)+Math.imul(Be,Wi)|0,W=W+Math.imul(Be,yn)|0,N=N+Math.imul(Ie,ar)|0,G=(G=G+Math.imul(Ie,na)|0)+Math.imul(ce,ar)|0,W=W+Math.imul(ce,na)|0;var Dt=(ye+(N=N+Math.imul(ge,sa)|0)|0)+((8191&(G=(G=G+Math.imul(ge,Pr)|0)+Math.imul(Ee,sa)|0))<<13)|0;ye=((W=W+Math.imul(Ee,Pr)|0)+(G>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,N=Math.imul(gi,Ui),G=(G=Math.imul(gi,Xi))+Math.imul(Ti,Ui)|0,W=Math.imul(Ti,Xi),N=N+Math.imul(xi,Ut)|0,G=(G=G+Math.imul(xi,It)|0)+Math.imul(Je,Ut)|0,W=W+Math.imul(Je,It)|0,N=N+Math.imul(jt,pt)|0,G=(G=G+Math.imul(jt,st)|0)+Math.imul(li,pt)|0,W=W+Math.imul(li,st)|0,N=N+Math.imul(Ge,Vt)|0,G=(G=G+Math.imul(Ge,ci)|0)+Math.imul(ot,Vt)|0,W=W+Math.imul(ot,ci)|0,N=N+Math.imul(Lt,gt)|0,G=(G=G+Math.imul(Lt,ai)|0)+Math.imul(wt,gt)|0,W=W+Math.imul(wt,ai)|0,N=N+Math.imul(Nt,mi)|0,G=(G=G+Math.imul(Nt,Kt)|0)+Math.imul(Qe,mi)|0,W=W+Math.imul(Qe,Kt)|0,N=N+Math.imul(tt,Wi)|0,G=(G=G+Math.imul(tt,yn)|0)+Math.imul(vt,Wi)|0,W=W+Math.imul(vt,yn)|0,N=N+Math.imul(pe,ar)|0,G=(G=G+Math.imul(pe,na)|0)+Math.imul(Be,ar)|0,W=W+Math.imul(Be,na)|0;var Pi=(ye+(N=N+Math.imul(Ie,sa)|0)|0)+((8191&(G=(G=G+Math.imul(Ie,Pr)|0)+Math.imul(ce,sa)|0))<<13)|0;ye=((W=W+Math.imul(ce,Pr)|0)+(G>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,N=Math.imul(gi,Ut),G=(G=Math.imul(gi,It))+Math.imul(Ti,Ut)|0,W=Math.imul(Ti,It),N=N+Math.imul(xi,pt)|0,G=(G=G+Math.imul(xi,st)|0)+Math.imul(Je,pt)|0,W=W+Math.imul(Je,st)|0,N=N+Math.imul(jt,Vt)|0,G=(G=G+Math.imul(jt,ci)|0)+Math.imul(li,Vt)|0,W=W+Math.imul(li,ci)|0,N=N+Math.imul(Ge,gt)|0,G=(G=G+Math.imul(Ge,ai)|0)+Math.imul(ot,gt)|0,W=W+Math.imul(ot,ai)|0,N=N+Math.imul(Lt,mi)|0,G=(G=G+Math.imul(Lt,Kt)|0)+Math.imul(wt,mi)|0,W=W+Math.imul(wt,Kt)|0,N=N+Math.imul(Nt,Wi)|0,G=(G=G+Math.imul(Nt,yn)|0)+Math.imul(Qe,Wi)|0,W=W+Math.imul(Qe,yn)|0,N=N+Math.imul(tt,ar)|0,G=(G=G+Math.imul(tt,na)|0)+Math.imul(vt,ar)|0,W=W+Math.imul(vt,na)|0;var ln=(ye+(N=N+Math.imul(pe,sa)|0)|0)+((8191&(G=(G=G+Math.imul(pe,Pr)|0)+Math.imul(Be,sa)|0))<<13)|0;ye=((W=W+Math.imul(Be,Pr)|0)+(G>>>13)|0)+(ln>>>26)|0,ln&=67108863,N=Math.imul(gi,pt),G=(G=Math.imul(gi,st))+Math.imul(Ti,pt)|0,W=Math.imul(Ti,st),N=N+Math.imul(xi,Vt)|0,G=(G=G+Math.imul(xi,ci)|0)+Math.imul(Je,Vt)|0,W=W+Math.imul(Je,ci)|0,N=N+Math.imul(jt,gt)|0,G=(G=G+Math.imul(jt,ai)|0)+Math.imul(li,gt)|0,W=W+Math.imul(li,ai)|0,N=N+Math.imul(Ge,mi)|0,G=(G=G+Math.imul(Ge,Kt)|0)+Math.imul(ot,mi)|0,W=W+Math.imul(ot,Kt)|0,N=N+Math.imul(Lt,Wi)|0,G=(G=G+Math.imul(Lt,yn)|0)+Math.imul(wt,Wi)|0,W=W+Math.imul(wt,yn)|0,N=N+Math.imul(Nt,ar)|0,G=(G=G+Math.imul(Nt,na)|0)+Math.imul(Qe,ar)|0,W=W+Math.imul(Qe,na)|0;var An=(ye+(N=N+Math.imul(tt,sa)|0)|0)+((8191&(G=(G=G+Math.imul(tt,Pr)|0)+Math.imul(vt,sa)|0))<<13)|0;ye=((W=W+Math.imul(vt,Pr)|0)+(G>>>13)|0)+(An>>>26)|0,An&=67108863,N=Math.imul(gi,Vt),G=(G=Math.imul(gi,ci))+Math.imul(Ti,Vt)|0,W=Math.imul(Ti,ci),N=N+Math.imul(xi,gt)|0,G=(G=G+Math.imul(xi,ai)|0)+Math.imul(Je,gt)|0,W=W+Math.imul(Je,ai)|0,N=N+Math.imul(jt,mi)|0,G=(G=G+Math.imul(jt,Kt)|0)+Math.imul(li,mi)|0,W=W+Math.imul(li,Kt)|0,N=N+Math.imul(Ge,Wi)|0,G=(G=G+Math.imul(Ge,yn)|0)+Math.imul(ot,Wi)|0,W=W+Math.imul(ot,yn)|0,N=N+Math.imul(Lt,ar)|0,G=(G=G+Math.imul(Lt,na)|0)+Math.imul(wt,ar)|0,W=W+Math.imul(wt,na)|0;var jn=(ye+(N=N+Math.imul(Nt,sa)|0)|0)+((8191&(G=(G=G+Math.imul(Nt,Pr)|0)+Math.imul(Qe,sa)|0))<<13)|0;ye=((W=W+Math.imul(Qe,Pr)|0)+(G>>>13)|0)+(jn>>>26)|0,jn&=67108863,N=Math.imul(gi,gt),G=(G=Math.imul(gi,ai))+Math.imul(Ti,gt)|0,W=Math.imul(Ti,ai),N=N+Math.imul(xi,mi)|0,G=(G=G+Math.imul(xi,Kt)|0)+Math.imul(Je,mi)|0,W=W+Math.imul(Je,Kt)|0,N=N+Math.imul(jt,Wi)|0,G=(G=G+Math.imul(jt,yn)|0)+Math.imul(li,Wi)|0,W=W+Math.imul(li,yn)|0,N=N+Math.imul(Ge,ar)|0,G=(G=G+Math.imul(Ge,na)|0)+Math.imul(ot,ar)|0,W=W+Math.imul(ot,na)|0;var Gr=(ye+(N=N+Math.imul(Lt,sa)|0)|0)+((8191&(G=(G=G+Math.imul(Lt,Pr)|0)+Math.imul(wt,sa)|0))<<13)|0;ye=((W=W+Math.imul(wt,Pr)|0)+(G>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,N=Math.imul(gi,mi),G=(G=Math.imul(gi,Kt))+Math.imul(Ti,mi)|0,W=Math.imul(Ti,Kt),N=N+Math.imul(xi,Wi)|0,G=(G=G+Math.imul(xi,yn)|0)+Math.imul(Je,Wi)|0,W=W+Math.imul(Je,yn)|0,N=N+Math.imul(jt,ar)|0,G=(G=G+Math.imul(jt,na)|0)+Math.imul(li,ar)|0,W=W+Math.imul(li,na)|0;var ct=(ye+(N=N+Math.imul(Ge,sa)|0)|0)+((8191&(G=(G=G+Math.imul(Ge,Pr)|0)+Math.imul(ot,sa)|0))<<13)|0;ye=((W=W+Math.imul(ot,Pr)|0)+(G>>>13)|0)+(ct>>>26)|0,ct&=67108863,N=Math.imul(gi,Wi),G=(G=Math.imul(gi,yn))+Math.imul(Ti,Wi)|0,W=Math.imul(Ti,yn),N=N+Math.imul(xi,ar)|0,G=(G=G+Math.imul(xi,na)|0)+Math.imul(Je,ar)|0,W=W+Math.imul(Je,na)|0;var ri=(ye+(N=N+Math.imul(jt,sa)|0)|0)+((8191&(G=(G=G+Math.imul(jt,Pr)|0)+Math.imul(li,sa)|0))<<13)|0;ye=((W=W+Math.imul(li,Pr)|0)+(G>>>13)|0)+(ri>>>26)|0,ri&=67108863,N=Math.imul(gi,ar),G=(G=Math.imul(gi,na))+Math.imul(Ti,ar)|0,W=Math.imul(Ti,na);var Ci=(ye+(N=N+Math.imul(xi,sa)|0)|0)+((8191&(G=(G=G+Math.imul(xi,Pr)|0)+Math.imul(Je,sa)|0))<<13)|0;ye=((W=W+Math.imul(Je,Pr)|0)+(G>>>13)|0)+(Ci>>>26)|0,Ci&=67108863;var Ri=(ye+(N=Math.imul(gi,sa))|0)+((8191&(G=(G=Math.imul(gi,Pr))+Math.imul(Ti,sa)|0))<<13)|0;return ye=((W=Math.imul(Ti,Pr))+(G>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,q[0]=no,q[1]=ja,q[2]=Na,q[3]=uo,q[4]=Eo,q[5]=To,q[6]=Bi,q[7]=_t,q[8]=si,q[9]=Dt,q[10]=Pi,q[11]=ln,q[12]=An,q[13]=jn,q[14]=Gr,q[15]=ct,q[16]=ri,q[17]=Ci,q[18]=Ri,0!==ye&&(q[19]=ye,we.length++),we};function F(oe,me,we){return(new Y).mulp(oe,me,we)}function Y(oe,me){this.x=oe,this.y=me}Math.imul||(C=g),s.prototype.mulTo=function(oe,me){var we=this.length+oe.length;return 10===this.length&&10===oe.length?C(this,oe,me):we<63?g(this,oe,me):we<1024?function(N,G,W){W.negative=G.negative^N.negative,W.length=N.length+G.length;for(var z=0,X=0,q=0;q<W.length-1;q++){var ye=X;X=0;for(var xe=67108863&z,ge=Math.min(q,G.length-1),Ee=Math.max(0,q-N.length+1);Ee<=ge;Ee++){var Ie=(0|N.words[q-Ee])*(0|G.words[Ee]),ce=67108863&Ie;xe=67108863&(ce=ce+xe|0),X+=(ye=(ye=ye+(Ie/67108864|0)|0)+(ce>>>26)|0)>>>26,ye&=67108863}W.words[q]=xe,z=ye,ye=X}return 0!==z?W.words[q]=z:W.length--,W.strip()}(this,oe,me):F(this,oe,me)},Y.prototype.makeRBT=function(oe){for(var me=new Array(oe),we=s.prototype._countBits(oe)-1,N=0;N<oe;N++)me[N]=this.revBin(N,we,oe);return me},Y.prototype.revBin=function(oe,me,we){if(0===oe||oe===we-1)return oe;for(var N=0,G=0;G<me;G++)N|=(1&oe)<<me-G-1,oe>>=1;return N},Y.prototype.permute=function(oe,me,we,N,G,W){for(var z=0;z<W;z++)N[z]=me[oe[z]],G[z]=we[oe[z]]},Y.prototype.transform=function(oe,me,we,N,G,W){this.permute(W,oe,me,we,N,G);for(var z=1;z<G;z<<=1)for(var X=z<<1,q=Math.cos(2*Math.PI/X),ye=Math.sin(2*Math.PI/X),xe=0;xe<G;xe+=X)for(var ge=q,Ee=ye,he=0;he<z;he++){var Ie=we[xe+he],ce=N[xe+he],de=we[xe+he+z],pe=N[xe+he+z],Be=ge*de-Ee*pe;pe=ge*pe+Ee*de,we[xe+he]=Ie+(de=Be),N[xe+he]=ce+pe,we[xe+he+z]=Ie-de,N[xe+he+z]=ce-pe,he!==X&&(Be=q*ge-ye*Ee,Ee=q*Ee+ye*ge,ge=Be)}},Y.prototype.guessLen13b=function(oe,me){var we=1|Math.max(me,oe),N=1&we,G=0;for(we=we/2|0;we;we>>>=1)G++;return 1<<G+1+N},Y.prototype.conjugate=function(oe,me,we){if(!(we<=1))for(var N=0;N<we/2;N++){var G=oe[N];oe[N]=oe[we-N-1],oe[we-N-1]=G,G=me[N],me[N]=-me[we-N-1],me[we-N-1]=-G}},Y.prototype.normalize13b=function(oe,me){for(var we=0,N=0;N<me/2;N++){var G=8192*Math.round(oe[2*N+1]/me)+Math.round(oe[2*N]/me)+we;oe[N]=67108863&G,we=G<67108864?0:G/67108864|0}return oe},Y.prototype.convert13b=function(oe,me,we,N){for(var G=0,W=0;W<me;W++)we[2*W]=8191&(G+=0|oe[W]),we[2*W+1]=8191&(G>>>=13),G>>>=13;for(W=2*me;W<N;++W)we[W]=0;v(0===G),v(!(-8192&G))},Y.prototype.stub=function(oe){for(var me=new Array(oe),we=0;we<oe;we++)me[we]=0;return me},Y.prototype.mulp=function(oe,me,we){var N=2*this.guessLen13b(oe.length,me.length),G=this.makeRBT(N),W=this.stub(N),z=new Array(N),X=new Array(N),q=new Array(N),ye=new Array(N),xe=new Array(N),ge=new Array(N),Ee=we.words;Ee.length=N,this.convert13b(oe.words,oe.length,z,N),this.convert13b(me.words,me.length,ye,N),this.transform(z,W,X,q,N,G),this.transform(ye,W,xe,ge,N,G);for(var he=0;he<N;he++){var Ie=X[he]*xe[he]-q[he]*ge[he];q[he]=X[he]*ge[he]+q[he]*xe[he],X[he]=Ie}return this.conjugate(X,q,N),this.transform(X,q,Ee,W,N,G),this.conjugate(Ee,W,N),this.normalize13b(Ee,N),we.negative=oe.negative^me.negative,we.length=oe.length+me.length,we.strip()},s.prototype.mul=function(oe){var me=new s(null);return me.words=new Array(this.length+oe.length),this.mulTo(oe,me)},s.prototype.mulf=function(oe){var me=new s(null);return me.words=new Array(this.length+oe.length),F(this,oe,me)},s.prototype.imul=function(oe){return this.clone().mulTo(oe,this)},s.prototype.imuln=function(oe){v("number"==typeof oe),v(oe<67108864);for(var me=0,we=0;we<this.length;we++){var N=(0|this.words[we])*oe,G=(67108863&N)+(67108863&me);me>>=26,me+=N/67108864|0,me+=G>>>26,this.words[we]=67108863&G}return 0!==me&&(this.words[we]=me,this.length++),this},s.prototype.muln=function(oe){return this.clone().imuln(oe)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(oe){var me=function(W){for(var z=new Array(W.bitLength()),X=0;X<z.length;X++){var ye=X%26;z[X]=(W.words[X/26|0]&1<<ye)>>>ye}return z}(oe);if(0===me.length)return new s(1);for(var we=this,N=0;N<me.length&&0===me[N];N++,we=we.sqr());if(++N<me.length)for(var G=we.sqr();N<me.length;N++,G=G.sqr())0!==me[N]&&(we=we.mul(G));return we},s.prototype.iushln=function(oe){v("number"==typeof oe&&oe>=0);var me,we=oe%26,N=(oe-we)/26,G=67108863>>>26-we<<26-we;if(0!==we){var W=0;for(me=0;me<this.length;me++){var z=this.words[me]&G;this.words[me]=(0|this.words[me])-z<<we|W,W=z>>>26-we}W&&(this.words[me]=W,this.length++)}if(0!==N){for(me=this.length-1;me>=0;me--)this.words[me+N]=this.words[me];for(me=0;me<N;me++)this.words[me]=0;this.length+=N}return this.strip()},s.prototype.ishln=function(oe){return v(0===this.negative),this.iushln(oe)},s.prototype.iushrn=function(oe,me,we){var N;v("number"==typeof oe&&oe>=0),N=me?(me-me%26)/26:0;var G=oe%26,W=Math.min((oe-G)/26,this.length),z=67108863^67108863>>>G<<G,X=we;if(N-=W,N=Math.max(0,N),X){for(var q=0;q<W;q++)X.words[q]=this.words[q];X.length=W}if(0!==W)if(this.length>W)for(this.length-=W,q=0;q<this.length;q++)this.words[q]=this.words[q+W];else this.words[0]=0,this.length=1;var ye=0;for(q=this.length-1;q>=0&&(0!==ye||q>=N);q--){var xe=0|this.words[q];this.words[q]=ye<<26-G|xe>>>G,ye=xe&z}return X&&0!==ye&&(X.words[X.length++]=ye),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(oe,me,we){return v(0===this.negative),this.iushrn(oe,me,we)},s.prototype.shln=function(oe){return this.clone().ishln(oe)},s.prototype.ushln=function(oe){return this.clone().iushln(oe)},s.prototype.shrn=function(oe){return this.clone().ishrn(oe)},s.prototype.ushrn=function(oe){return this.clone().iushrn(oe)},s.prototype.testn=function(oe){v("number"==typeof oe&&oe>=0);var me=oe%26,we=(oe-me)/26;return!(this.length<=we||!(this.words[we]&1<<me))},s.prototype.imaskn=function(oe){v("number"==typeof oe&&oe>=0);var me=oe%26,we=(oe-me)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=we?this:(0!==me&&we++,this.length=Math.min(we,this.length),0!==me&&(this.words[this.length-1]&=67108863^67108863>>>me<<me),this.strip())},s.prototype.maskn=function(oe){return this.clone().imaskn(oe)},s.prototype.iaddn=function(oe){return v("number"==typeof oe),v(oe<67108864),oe<0?this.isubn(-oe):0!==this.negative?1===this.length&&(0|this.words[0])<oe?(this.words[0]=oe-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(oe),this.negative=1,this):this._iaddn(oe)},s.prototype._iaddn=function(oe){this.words[0]+=oe;for(var me=0;me<this.length&&this.words[me]>=67108864;me++)this.words[me]-=67108864,me===this.length-1?this.words[me+1]=1:this.words[me+1]++;return this.length=Math.max(this.length,me+1),this},s.prototype.isubn=function(oe){if(v("number"==typeof oe),v(oe<67108864),oe<0)return this.iaddn(-oe);if(0!==this.negative)return this.negative=0,this.iaddn(oe),this.negative=1,this;if(this.words[0]-=oe,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var me=0;me<this.length&&this.words[me]<0;me++)this.words[me]+=67108864,this.words[me+1]-=1;return this.strip()},s.prototype.addn=function(oe){return this.clone().iaddn(oe)},s.prototype.subn=function(oe){return this.clone().isubn(oe)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(oe,me,we){var N,G;this._expand(oe.length+we);var z=0;for(N=0;N<oe.length;N++){G=(0|this.words[N+we])+z;var X=(0|oe.words[N])*me;z=((G-=67108863&X)>>26)-(X/67108864|0),this.words[N+we]=67108863&G}for(;N<this.length-we;N++)z=(G=(0|this.words[N+we])+z)>>26,this.words[N+we]=67108863&G;if(0===z)return this.strip();for(v(-1===z),z=0,N=0;N<this.length;N++)z=(G=-(0|this.words[N])+z)>>26,this.words[N]=67108863&G;return this.negative=1,this.strip()},s.prototype._wordDiv=function(oe,me){var we,N=this.clone(),G=oe,W=0|G.words[G.length-1];0!=(we=26-this._countBits(W))&&(G=G.ushln(we),N.iushln(we),W=0|G.words[G.length-1]);var z,X=N.length-G.length;if("mod"!==me){(z=new s(null)).length=X+1,z.words=new Array(z.length);for(var q=0;q<z.length;q++)z.words[q]=0}var ye=N.clone()._ishlnsubmul(G,1,X);0===ye.negative&&(N=ye,z&&(z.words[X]=1));for(var xe=X-1;xe>=0;xe--){var ge=67108864*(0|N.words[G.length+xe])+(0|N.words[G.length+xe-1]);for(ge=Math.min(ge/W|0,67108863),N._ishlnsubmul(G,ge,xe);0!==N.negative;)ge--,N.negative=0,N._ishlnsubmul(G,1,xe),N.isZero()||(N.negative^=1);z&&(z.words[xe]=ge)}return z&&z.strip(),N.strip(),"div"!==me&&0!==we&&N.iushrn(we),{div:z||null,mod:N}},s.prototype.divmod=function(oe,me,we){return v(!oe.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===oe.negative?(W=this.neg().divmod(oe,me),"mod"!==me&&(N=W.div.neg()),"div"!==me&&(G=W.mod.neg(),we&&0!==G.negative&&G.iadd(oe)),{div:N,mod:G}):0===this.negative&&0!==oe.negative?(W=this.divmod(oe.neg(),me),"mod"!==me&&(N=W.div.neg()),{div:N,mod:W.mod}):this.negative&oe.negative?(W=this.neg().divmod(oe.neg(),me),"div"!==me&&(G=W.mod.neg(),we&&0!==G.negative&&G.isub(oe)),{div:W.div,mod:G}):oe.length>this.length||this.cmp(oe)<0?{div:new s(0),mod:this}:1===oe.length?"div"===me?{div:this.divn(oe.words[0]),mod:null}:"mod"===me?{div:null,mod:new s(this.modn(oe.words[0]))}:{div:this.divn(oe.words[0]),mod:new s(this.modn(oe.words[0]))}:this._wordDiv(oe,me);var N,G,W},s.prototype.div=function(oe){return this.divmod(oe,"div",!1).div},s.prototype.mod=function(oe){return this.divmod(oe,"mod",!1).mod},s.prototype.umod=function(oe){return this.divmod(oe,"mod",!0).mod},s.prototype.divRound=function(oe){var me=this.divmod(oe);if(me.mod.isZero())return me.div;var we=0!==me.div.negative?me.mod.isub(oe):me.mod,N=oe.ushrn(1),G=oe.andln(1),W=we.cmp(N);return W<0||1===G&&0===W?me.div:0!==me.div.negative?me.div.isubn(1):me.div.iaddn(1)},s.prototype.modn=function(oe){v(oe<=67108863);for(var me=(1<<26)%oe,we=0,N=this.length-1;N>=0;N--)we=(me*we+(0|this.words[N]))%oe;return we},s.prototype.idivn=function(oe){v(oe<=67108863);for(var me=0,we=this.length-1;we>=0;we--){var N=(0|this.words[we])+67108864*me;this.words[we]=N/oe|0,me=N%oe}return this.strip()},s.prototype.divn=function(oe){return this.clone().idivn(oe)},s.prototype.egcd=function(oe){v(0===oe.negative),v(!oe.isZero());var me=this,we=oe.clone();me=0!==me.negative?me.umod(oe):me.clone();for(var N=new s(1),G=new s(0),W=new s(0),z=new s(1),X=0;me.isEven()&&we.isEven();)me.iushrn(1),we.iushrn(1),++X;for(var q=we.clone(),ye=me.clone();!me.isZero();){for(var xe=0,ge=1;!(me.words[0]&ge)&&xe<26;++xe,ge<<=1);if(xe>0)for(me.iushrn(xe);xe-- >0;)(N.isOdd()||G.isOdd())&&(N.iadd(q),G.isub(ye)),N.iushrn(1),G.iushrn(1);for(var Ee=0,he=1;!(we.words[0]&he)&&Ee<26;++Ee,he<<=1);if(Ee>0)for(we.iushrn(Ee);Ee-- >0;)(W.isOdd()||z.isOdd())&&(W.iadd(q),z.isub(ye)),W.iushrn(1),z.iushrn(1);me.cmp(we)>=0?(me.isub(we),N.isub(W),G.isub(z)):(we.isub(me),W.isub(N),z.isub(G))}return{a:W,b:z,gcd:we.iushln(X)}},s.prototype._invmp=function(oe){v(0===oe.negative),v(!oe.isZero());var me=this,we=oe.clone();me=0!==me.negative?me.umod(oe):me.clone();for(var N,G=new s(1),W=new s(0),z=we.clone();me.cmpn(1)>0&&we.cmpn(1)>0;){for(var X=0,q=1;!(me.words[0]&q)&&X<26;++X,q<<=1);if(X>0)for(me.iushrn(X);X-- >0;)G.isOdd()&&G.iadd(z),G.iushrn(1);for(var ye=0,xe=1;!(we.words[0]&xe)&&ye<26;++ye,xe<<=1);if(ye>0)for(we.iushrn(ye);ye-- >0;)W.isOdd()&&W.iadd(z),W.iushrn(1);me.cmp(we)>=0?(me.isub(we),G.isub(W)):(we.isub(me),W.isub(G))}return(N=0===me.cmpn(1)?G:W).cmpn(0)<0&&N.iadd(oe),N},s.prototype.gcd=function(oe){if(this.isZero())return oe.abs();if(oe.isZero())return this.abs();var me=this.clone(),we=oe.clone();me.negative=0,we.negative=0;for(var N=0;me.isEven()&&we.isEven();N++)me.iushrn(1),we.iushrn(1);for(;;){for(;me.isEven();)me.iushrn(1);for(;we.isEven();)we.iushrn(1);var G=me.cmp(we);if(G<0){var W=me;me=we,we=W}else if(0===G||0===we.cmpn(1))break;me.isub(we)}return we.iushln(N)},s.prototype.invm=function(oe){return this.egcd(oe).a.umod(oe)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(oe){return this.words[0]&oe},s.prototype.bincn=function(oe){v("number"==typeof oe);var me=oe%26,we=(oe-me)/26,N=1<<me;if(this.length<=we)return this._expand(we+1),this.words[we]|=N,this;for(var G=N,W=we;0!==G&&W<this.length;W++){var z=0|this.words[W];G=(z+=G)>>>26,this.words[W]=z&=67108863}return 0!==G&&(this.words[W]=G,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(oe){var me,we=oe<0;if(0!==this.negative&&!we)return-1;if(0===this.negative&&we)return 1;if(this.strip(),this.length>1)me=1;else{we&&(oe=-oe),v(oe<=67108863,"Number is too big");var N=0|this.words[0];me=N===oe?0:N<oe?-1:1}return 0!==this.negative?0|-me:me},s.prototype.cmp=function(oe){if(0!==this.negative&&0===oe.negative)return-1;if(0===this.negative&&0!==oe.negative)return 1;var me=this.ucmp(oe);return 0!==this.negative?0|-me:me},s.prototype.ucmp=function(oe){if(this.length>oe.length)return 1;if(this.length<oe.length)return-1;for(var me=0,we=this.length-1;we>=0;we--){var N=0|this.words[we],G=0|oe.words[we];if(N!==G){N<G?me=-1:N>G&&(me=1);break}}return me},s.prototype.gtn=function(oe){return 1===this.cmpn(oe)},s.prototype.gt=function(oe){return 1===this.cmp(oe)},s.prototype.gten=function(oe){return this.cmpn(oe)>=0},s.prototype.gte=function(oe){return this.cmp(oe)>=0},s.prototype.ltn=function(oe){return-1===this.cmpn(oe)},s.prototype.lt=function(oe){return-1===this.cmp(oe)},s.prototype.lten=function(oe){return this.cmpn(oe)<=0},s.prototype.lte=function(oe){return this.cmp(oe)<=0},s.prototype.eqn=function(oe){return 0===this.cmpn(oe)},s.prototype.eq=function(oe){return 0===this.cmp(oe)},s.red=function(oe){return new _e(oe)},s.prototype.toRed=function(oe){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),oe.convertTo(this)._forceRed(oe)},s.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(oe){return this.red=oe,this},s.prototype.forceRed=function(oe){return v(!this.red,"Already a number in reduction context"),this._forceRed(oe)},s.prototype.redAdd=function(oe){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,oe)},s.prototype.redIAdd=function(oe){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,oe)},s.prototype.redSub=function(oe){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,oe)},s.prototype.redISub=function(oe){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,oe)},s.prototype.redShl=function(oe){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,oe)},s.prototype.redMul=function(oe){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,oe),this.red.mul(this,oe)},s.prototype.redIMul=function(oe){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,oe),this.red.imul(this,oe)},s.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(oe){return v(this.red&&!oe.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,oe)};var Q={k256:null,p224:null,p192:null,p25519:null};function se(oe,me){this.name=oe,this.p=new s(me,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){se.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ee(){se.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){se.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ne(){se.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _e(oe){if("string"==typeof oe){var me=s._prime(oe);this.m=me.p,this.prime=me}else v(oe.gtn(1),"modulus must be greater than 1"),this.m=oe,this.prime=null}function be(oe){_e.call(this,oe),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}se.prototype._tmp=function(){var oe=new s(null);return oe.words=new Array(Math.ceil(this.n/13)),oe},se.prototype.ireduce=function(oe){var me,we=oe;do{this.split(we,this.tmp),me=(we=(we=this.imulK(we)).iadd(this.tmp)).bitLength()}while(me>this.n);var N=me<this.n?-1:we.ucmp(this.p);return 0===N?(we.words[0]=0,we.length=1):N>0?we.isub(this.p):void 0!==we.strip?we.strip():we._strip(),we},se.prototype.split=function(oe,me){oe.iushrn(this.n,0,me)},se.prototype.imulK=function(oe){return oe.imul(this.k)},h(ie,se),ie.prototype.split=function(oe,me){for(var we=Math.min(oe.length,9),N=0;N<we;N++)me.words[N]=oe.words[N];if(me.length=we,oe.length<=9)return oe.words[0]=0,void(oe.length=1);var G=oe.words[9];for(me.words[me.length++]=4194303&G,N=10;N<oe.length;N++){var W=0|oe.words[N];oe.words[N-10]=(4194303&W)<<4|G>>>22,G=W}oe.words[N-10]=G>>>=22,oe.length-=0===G&&oe.length>10?10:9},ie.prototype.imulK=function(oe){oe.words[oe.length]=0,oe.words[oe.length+1]=0,oe.length+=2;for(var me=0,we=0;we<oe.length;we++){var N=0|oe.words[we];oe.words[we]=67108863&(me+=977*N),me=64*N+(me/67108864|0)}return 0===oe.words[oe.length-1]&&(oe.length--,0===oe.words[oe.length-1]&&oe.length--),oe},h(ee,se),h(re,se),h(ne,se),ne.prototype.imulK=function(oe){for(var me=0,we=0;we<oe.length;we++){var N=19*(0|oe.words[we])+me,G=67108863&N;N>>>=26,oe.words[we]=G,me=N}return 0!==me&&(oe.words[oe.length++]=me),oe},s._prime=function(oe){if(Q[oe])return Q[oe];var me;if("k256"===oe)me=new ie;else if("p224"===oe)me=new ee;else if("p192"===oe)me=new re;else{if("p25519"!==oe)throw new Error("Unknown prime "+oe);me=new ne}return Q[oe]=me,me},_e.prototype._verify1=function(oe){v(0===oe.negative,"red works only with positives"),v(oe.red,"red works only with red numbers")},_e.prototype._verify2=function(oe,me){v(!(oe.negative|me.negative),"red works only with positives"),v(oe.red&&oe.red===me.red,"red works only with red numbers")},_e.prototype.imod=function(oe){return this.prime?this.prime.ireduce(oe)._forceRed(this):oe.umod(this.m)._forceRed(this)},_e.prototype.neg=function(oe){return oe.isZero()?oe.clone():this.m.sub(oe)._forceRed(this)},_e.prototype.add=function(oe,me){this._verify2(oe,me);var we=oe.add(me);return we.cmp(this.m)>=0&&we.isub(this.m),we._forceRed(this)},_e.prototype.iadd=function(oe,me){this._verify2(oe,me);var we=oe.iadd(me);return we.cmp(this.m)>=0&&we.isub(this.m),we},_e.prototype.sub=function(oe,me){this._verify2(oe,me);var we=oe.sub(me);return we.cmpn(0)<0&&we.iadd(this.m),we._forceRed(this)},_e.prototype.isub=function(oe,me){this._verify2(oe,me);var we=oe.isub(me);return we.cmpn(0)<0&&we.iadd(this.m),we},_e.prototype.shl=function(oe,me){return this._verify1(oe),this.imod(oe.ushln(me))},_e.prototype.imul=function(oe,me){return this._verify2(oe,me),this.imod(oe.imul(me))},_e.prototype.mul=function(oe,me){return this._verify2(oe,me),this.imod(oe.mul(me))},_e.prototype.isqr=function(oe){return this.imul(oe,oe.clone())},_e.prototype.sqr=function(oe){return this.mul(oe,oe)},_e.prototype.sqrt=function(oe){if(oe.isZero())return oe.clone();var me=this.m.andln(3);if(v(me%2==1),3===me){var we=this.m.add(new s(1)).iushrn(2);return this.pow(oe,we)}for(var N=this.m.subn(1),G=0;!N.isZero()&&0===N.andln(1);)G++,N.iushrn(1);v(!N.isZero());var W=new s(1).toRed(this),z=W.redNeg(),X=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new s(2*q*q).toRed(this);0!==this.pow(q,X).cmp(z);)q.redIAdd(z);for(var ye=this.pow(q,N),xe=this.pow(oe,N.addn(1).iushrn(1)),ge=this.pow(oe,N),Ee=G;0!==ge.cmp(W);){for(var he=ge,Ie=0;0!==he.cmp(W);Ie++)he=he.redSqr();v(Ie<Ee);var ce=this.pow(ye,new s(1).iushln(Ee-Ie-1));xe=xe.redMul(ce),ye=ce.redSqr(),ge=ge.redMul(ye),Ee=Ie}return xe},_e.prototype.invm=function(oe){var me=oe._invmp(this.m);return 0!==me.negative?(me.negative=0,this.imod(me).redNeg()):this.imod(me)},_e.prototype.pow=function(oe,me){if(me.isZero())return new s(1).toRed(this);if(0===me.cmpn(1))return oe.clone();var we=new Array(16);we[0]=new s(1).toRed(this),we[1]=oe;for(var N=2;N<we.length;N++)we[N]=this.mul(we[N-1],oe);var G=we[0],W=0,z=0,X=me.bitLength()%26;for(0===X&&(X=26),N=me.length-1;N>=0;N--){for(var q=me.words[N],ye=X-1;ye>=0;ye--){var xe=q>>ye&1;G!==we[0]&&(G=this.sqr(G)),0!==xe||0!==W?(W<<=1,W|=xe,(4==++z||0===N&&0===ye)&&(G=this.mul(G,we[W]),z=0,W=0)):z=0}X=26}return G},_e.prototype.convertTo=function(oe){var me=oe.umod(this.m);return me===oe?me.clone():me},_e.prototype.convertFrom=function(oe){var me=oe.clone();return me.red=null,me},s.mont=function(oe){return new be(oe)},h(be,_e),be.prototype.convertTo=function(oe){return this.imod(oe.ushln(this.shift))},be.prototype.convertFrom=function(oe){var me=this.imod(oe.mul(this.rinv));return me.red=null,me},be.prototype.imul=function(oe,me){if(oe.isZero()||me.isZero())return oe.words[0]=0,oe.length=1,oe;var we=oe.imul(me),N=we.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=we.isub(N).iushrn(this.shift),W=G;return G.cmp(this.m)>=0?W=G.isub(this.m):G.cmpn(0)<0&&(W=G.iadd(this.m)),W._forceRed(this)},be.prototype.mul=function(oe,me){if(oe.isZero()||me.isZero())return new s(0)._forceRed(this);var we=oe.mul(me),N=we.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=we.isub(N).iushrn(this.shift),W=G;return G.cmp(this.m)>=0?W=G.isub(this.m):G.cmpn(0)<0&&(W=G.iadd(this.m)),W._forceRed(this)},be.prototype.invm=function(oe){return this.imod(oe._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===E||E)},{buffer:188}],185:[function(o,E,R){"use strict";R.byteLength=function(f){var k=O(f),x=k[1];return 3*(k[0]+x)/4-x},R.toByteArray=function(f){var k,I,ee,x=O(f),g=x[0],C=x[1],F=new v(3*(g+(ee=C))/4-ee),Y=0,Q=C>0?g-4:g;for(I=0;I<Q;I+=4)k=_[f.charCodeAt(I)]<<18|_[f.charCodeAt(I+1)]<<12|_[f.charCodeAt(I+2)]<<6|_[f.charCodeAt(I+3)],F[Y++]=k>>16&255,F[Y++]=k>>8&255,F[Y++]=255&k;return 2===C&&(k=_[f.charCodeAt(I)]<<2|_[f.charCodeAt(I+1)]>>4,F[Y++]=255&k),1===C&&(k=_[f.charCodeAt(I)]<<10|_[f.charCodeAt(I+1)]<<4|_[f.charCodeAt(I+2)]>>2,F[Y++]=k>>8&255,F[Y++]=255&k),F},R.fromByteArray=function(f){for(var k,I=f.length,x=I%3,g=[],C=0,F=I-x;C<F;C+=16383)g.push(w(f,C,C+16383>F?F:C+16383));return 1===x?g.push(m[(k=f[I-1])>>2]+m[k<<4&63]+"=="):2===x&&g.push(m[(k=(f[I-2]<<8)+f[I-1])>>10]+m[k>>4&63]+m[k<<2&63]+"="),g.join("")};for(var m=[],_=[],v=typeof Uint8Array<"u"?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)m[s]=h[s],_[h.charCodeAt(s)]=s;function O(f){var k=f.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=f.indexOf("=");return-1===I&&(I=k),[I,I===k?0:4-I%4]}function w(f,k,I){for(var g,C=[],F=k;F<I;F+=3)C.push(m[(g=(f[F]<<16&16711680)+(f[F+1]<<8&65280)+(255&f[F+2]))>>18&63]+m[g>>12&63]+m[g>>6&63]+m[63&g]);return C.join("")}_[45]=62,_[95]=63},{}],186:[function(o,E,R){"use strict";!function(m,_){function v(N,G){if(!N)throw new Error(G||"Assertion failed")}function h(N,G){N.super_=G;var W=function(){};W.prototype=G.prototype,N.prototype=new W,N.prototype.constructor=N}function s(N,G,W){if(s.isBN(N))return N;this.negative=0,this.words=null,this.length=0,this.red=null,null!==N&&("le"!==G&&"be"!==G||(W=G,G=10),this._init(N||0,G||10,W||"be"))}var b;"object"==typeof m?m.exports=s:(void 0).BN=s,s.BN=s,s.wordSize=26;try{b=typeof window<"u"&&void 0!==window.Buffer?window.Buffer:o("buffer").Buffer}catch{}function O(N,G){var W=N.charCodeAt(G);return W>=48&&W<=57?W-48:W>=65&&W<=70?W-55:W>=97&&W<=102?W-87:void v(!1,"Invalid character in "+N)}function w(N,G,W){var z=O(N,W);return W-1>=G&&(z|=O(N,W-1)<<4),z}function f(N,G,W,z){for(var X=0,q=0,ye=Math.min(N.length,W),xe=G;xe<ye;xe++){var ge=N.charCodeAt(xe)-48;X*=z,q=ge>=49?ge-49+10:ge>=17?ge-17+10:ge,v(ge>=0&&q<z,"Invalid character"),X+=q}return X}function k(N,G){N.words=G.words,N.length=G.length,N.negative=G.negative,N.red=G.red}if(s.isBN=function(N){return N instanceof s||null!==N&&"object"==typeof N&&N.constructor.wordSize===s.wordSize&&Array.isArray(N.words)},s.max=function(N,G){return N.cmp(G)>0?N:G},s.min=function(N,G){return N.cmp(G)<0?N:G},s.prototype._init=function(N,G,W){if("number"==typeof N)return this._initNumber(N,G,W);if("object"==typeof N)return this._initArray(N,G,W);"hex"===G&&(G=16),v(G===(0|G)&&G>=2&&G<=36);var z=0;"-"===(N=N.toString().replace(/\s+/g,""))[0]&&(z++,this.negative=1),z<N.length&&(16===G?this._parseHex(N,z,W):(this._parseBase(N,G,z),"le"===W&&this._initArray(this.toArray(),G,W)))},s.prototype._initNumber=function(N,G,W){N<0&&(this.negative=1,N=-N),N<67108864?(this.words=[67108863&N],this.length=1):N<4503599627370496?(this.words=[67108863&N,N/67108864&67108863],this.length=2):(v(N<9007199254740992),this.words=[67108863&N,N/67108864&67108863,1],this.length=3),"le"===W&&this._initArray(this.toArray(),G,W)},s.prototype._initArray=function(N,G,W){if(v("number"==typeof N.length),N.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(N.length/3),this.words=new Array(this.length);for(var z=0;z<this.length;z++)this.words[z]=0;var X,q,ye=0;if("be"===W)for(z=N.length-1,X=0;z>=0;z-=3)this.words[X]|=(q=N[z]|N[z-1]<<8|N[z-2]<<16)<<ye&67108863,this.words[X+1]=q>>>26-ye&67108863,(ye+=24)>=26&&(ye-=26,X++);else if("le"===W)for(z=0,X=0;z<N.length;z+=3)this.words[X]|=(q=N[z]|N[z+1]<<8|N[z+2]<<16)<<ye&67108863,this.words[X+1]=q>>>26-ye&67108863,(ye+=24)>=26&&(ye-=26,X++);return this._strip()},s.prototype._parseHex=function(N,G,W){this.length=Math.ceil((N.length-G)/6),this.words=new Array(this.length);for(var z=0;z<this.length;z++)this.words[z]=0;var X,q=0,ye=0;if("be"===W)for(z=N.length-1;z>=G;z-=2)X=w(N,G,z)<<q,this.words[ye]|=67108863&X,q>=18?(q-=18,this.words[ye+=1]|=X>>>26):q+=8;else for(z=(N.length-G)%2==0?G+1:G;z<N.length;z+=2)X=w(N,G,z)<<q,this.words[ye]|=67108863&X,q>=18?(q-=18,this.words[ye+=1]|=X>>>26):q+=8;this._strip()},s.prototype._parseBase=function(N,G,W){this.words=[0],this.length=1;for(var z=0,X=1;X<=67108863;X*=G)z++;z--,X=X/G|0;for(var q=N.length-W,ye=q%z,xe=Math.min(q,q-ye)+W,ge=0,Ee=W;Ee<xe;Ee+=z)ge=f(N,Ee,Ee+z,G),this.imuln(X),this.words[0]+ge<67108864?this.words[0]+=ge:this._iaddn(ge);if(0!==ye){var he=1;for(ge=f(N,Ee,N.length,G),Ee=0;Ee<ye;Ee++)he*=G;this.imuln(he),this.words[0]+ge<67108864?this.words[0]+=ge:this._iaddn(ge)}this._strip()},s.prototype.copy=function(N){N.words=new Array(this.length);for(var G=0;G<this.length;G++)N.words[G]=this.words[G];N.length=this.length,N.negative=this.negative,N.red=this.red},s.prototype._move=function(N){k(N,this)},s.prototype.clone=function(){var N=new s(null);return this.copy(N),N},s.prototype._expand=function(N){for(;this.length<N;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=I}catch{s.prototype.inspect=I}else s.prototype.inspect=I;function I(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var x=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function F(N,G,W){W.negative=G.negative^N.negative;var z=N.length+G.length|0;W.length=z,z=z-1|0;var X=0|N.words[0],q=0|G.words[0],ye=X*q,ge=ye/67108864|0;W.words[0]=67108863&ye;for(var Ee=1;Ee<z;Ee++){for(var he=ge>>>26,Ie=67108863&ge,ce=Math.min(Ee,G.length-1),de=Math.max(0,Ee-N.length+1);de<=ce;de++)he+=(ye=(X=0|N.words[Ee-de|0])*(q=0|G.words[de])+Ie)/67108864|0,Ie=67108863&ye;W.words[Ee]=0|Ie,ge=0|he}return 0!==ge?W.words[Ee]=0|ge:W.length--,W._strip()}s.prototype.toString=function(N,G){var W;if(G=0|G||1,16===(N=N||10)||"hex"===N){W="";for(var z=0,X=0,q=0;q<this.length;q++){var ye=this.words[q],xe=(16777215&(ye<<z|X)).toString(16);X=ye>>>24-z&16777215,(z+=2)>=26&&(z-=26,q--),W=0!==X||q!==this.length-1?x[6-xe.length]+xe+W:xe+W}for(0!==X&&(W=X.toString(16)+W);W.length%G!=0;)W="0"+W;return 0!==this.negative&&(W="-"+W),W}if(N===(0|N)&&N>=2&&N<=36){var ge=g[N],Ee=C[N];W="";var he=this.clone();for(he.negative=0;!he.isZero();){var Ie=he.modrn(Ee).toString(N);W=(he=he.idivn(Ee)).isZero()?Ie+W:x[ge-Ie.length]+Ie+W}for(this.isZero()&&(W="0"+W);W.length%G!=0;)W="0"+W;return 0!==this.negative&&(W="-"+W),W}v(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var N=this.words[0];return 2===this.length?N+=67108864*this.words[1]:3===this.length&&1===this.words[2]?N+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-N:N},s.prototype.toJSON=function(){return this.toString(16,2)},b&&(s.prototype.toBuffer=function(N,G){return this.toArrayLike(b,N,G)}),s.prototype.toArray=function(N,G){return this.toArrayLike(Array,N,G)},s.prototype.toArrayLike=function(N,G,W){this._strip();var z=this.byteLength(),X=W||Math.max(1,z);v(z<=X,"byte array longer than desired length"),v(X>0,"Requested array length <= 0");var ye,xe,q=(xe=X,(ye=N).allocUnsafe?ye.allocUnsafe(xe):new ye(xe));return this["_toArrayLike"+("le"===G?"LE":"BE")](q,z),q},s.prototype._toArrayLikeLE=function(N,G){for(var W=0,z=0,X=0,q=0;X<this.length;X++){var ye=this.words[X]<<q|z;N[W++]=255&ye,W<N.length&&(N[W++]=ye>>8&255),W<N.length&&(N[W++]=ye>>16&255),6===q?(W<N.length&&(N[W++]=ye>>24&255),z=0,q=0):(z=ye>>>24,q+=2)}if(W<N.length)for(N[W++]=z;W<N.length;)N[W++]=0},s.prototype._toArrayLikeBE=function(N,G){for(var W=N.length-1,z=0,X=0,q=0;X<this.length;X++){var ye=this.words[X]<<q|z;N[W--]=255&ye,W>=0&&(N[W--]=ye>>8&255),W>=0&&(N[W--]=ye>>16&255),6===q?(W>=0&&(N[W--]=ye>>24&255),z=0,q=0):(z=ye>>>24,q+=2)}if(W>=0)for(N[W--]=z;W>=0;)N[W--]=0},s.prototype._countBits=Math.clz32?function(N){return 32-Math.clz32(N)}:function(N){var G=N,W=0;return G>=4096&&(W+=13,G>>>=13),G>=64&&(W+=7,G>>>=7),G>=8&&(W+=4,G>>>=4),G>=2&&(W+=2,G>>>=2),W+G},s.prototype._zeroBits=function(N){if(0===N)return 26;var G=N,W=0;return!(8191&G)&&(W+=13,G>>>=13),!(127&G)&&(W+=7,G>>>=7),!(15&G)&&(W+=4,G>>>=4),!(3&G)&&(W+=2,G>>>=2),!(1&G)&&W++,W},s.prototype.bitLength=function(){var G=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+G},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,G=0;G<this.length;G++){var W=this._zeroBits(this.words[G]);if(N+=W,26!==W)break}return N},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(N){return 0!==this.negative?this.abs().inotn(N).iaddn(1):this.clone()},s.prototype.fromTwos=function(N){return this.testn(N-1)?this.notn(N).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(N){for(;this.length<N.length;)this.words[this.length++]=0;for(var G=0;G<N.length;G++)this.words[G]=this.words[G]|N.words[G];return this._strip()},s.prototype.ior=function(N){return v(!(this.negative|N.negative)),this.iuor(N)},s.prototype.or=function(N){return this.length>N.length?this.clone().ior(N):N.clone().ior(this)},s.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},s.prototype.iuand=function(N){var G;G=this.length>N.length?N:this;for(var W=0;W<G.length;W++)this.words[W]=this.words[W]&N.words[W];return this.length=G.length,this._strip()},s.prototype.iand=function(N){return v(!(this.negative|N.negative)),this.iuand(N)},s.prototype.and=function(N){return this.length>N.length?this.clone().iand(N):N.clone().iand(this)},s.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},s.prototype.iuxor=function(N){var G,W;this.length>N.length?(G=this,W=N):(G=N,W=this);for(var z=0;z<W.length;z++)this.words[z]=G.words[z]^W.words[z];if(this!==G)for(;z<G.length;z++)this.words[z]=G.words[z];return this.length=G.length,this._strip()},s.prototype.ixor=function(N){return v(!(this.negative|N.negative)),this.iuxor(N)},s.prototype.xor=function(N){return this.length>N.length?this.clone().ixor(N):N.clone().ixor(this)},s.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},s.prototype.inotn=function(N){v("number"==typeof N&&N>=0);var G=0|Math.ceil(N/26),W=N%26;this._expand(G),W>0&&G--;for(var z=0;z<G;z++)this.words[z]=67108863&~this.words[z];return W>0&&(this.words[z]=~this.words[z]&67108863>>26-W),this._strip()},s.prototype.notn=function(N){return this.clone().inotn(N)},s.prototype.setn=function(N,G){v("number"==typeof N&&N>=0);var W=N/26|0,z=N%26;return this._expand(W+1),this.words[W]=G?this.words[W]|1<<z:this.words[W]&~(1<<z),this._strip()},s.prototype.iadd=function(N){var G,W,z;if(0!==this.negative&&0===N.negative)return this.negative=0,G=this.isub(N),this.negative^=1,this._normSign();if(0===this.negative&&0!==N.negative)return N.negative=0,G=this.isub(N),N.negative=1,G._normSign();this.length>N.length?(W=this,z=N):(W=N,z=this);for(var X=0,q=0;q<z.length;q++)this.words[q]=67108863&(G=(0|W.words[q])+(0|z.words[q])+X),X=G>>>26;for(;0!==X&&q<W.length;q++)this.words[q]=67108863&(G=(0|W.words[q])+X),X=G>>>26;if(this.length=W.length,0!==X)this.words[this.length]=X,this.length++;else if(W!==this)for(;q<W.length;q++)this.words[q]=W.words[q];return this},s.prototype.add=function(N){var G;return 0!==N.negative&&0===this.negative?(N.negative=0,G=this.sub(N),N.negative^=1,G):0===N.negative&&0!==this.negative?(this.negative=0,G=N.sub(this),this.negative=1,G):this.length>N.length?this.clone().iadd(N):N.clone().iadd(this)},s.prototype.isub=function(N){if(0!==N.negative){N.negative=0;var G=this.iadd(N);return N.negative=1,G._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var W,z,X=this.cmp(N);if(0===X)return this.negative=0,this.length=1,this.words[0]=0,this;X>0?(W=this,z=N):(W=N,z=this);for(var q=0,ye=0;ye<z.length;ye++)q=(G=(0|W.words[ye])-(0|z.words[ye])+q)>>26,this.words[ye]=67108863&G;for(;0!==q&&ye<W.length;ye++)q=(G=(0|W.words[ye])+q)>>26,this.words[ye]=67108863&G;if(0===q&&ye<W.length&&W!==this)for(;ye<W.length;ye++)this.words[ye]=W.words[ye];return this.length=Math.max(this.length,ye),W!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(N){return this.clone().isub(N)};var Y=function(N,G,W){var z,X,q,ye=N.words,xe=G.words,ge=W.words,Ee=0,he=0|ye[0],Ie=8191&he,ce=he>>>13,de=0|ye[1],pe=8191&de,Be=de>>>13,We=0|ye[2],tt=8191&We,vt=We>>>13,Xt=0|ye[3],Nt=8191&Xt,Qe=Xt>>>13,Et=0|ye[4],Lt=8191&Et,wt=Et>>>13,Mt=0|ye[5],Ge=8191&Mt,ot=Mt>>>13,Tt=0|ye[6],jt=8191&Tt,li=Tt>>>13,an=0|ye[7],xi=8191&an,Je=an>>>13,Ht=0|ye[8],gi=8191&Ht,Ti=Ht>>>13,ni=0|ye[9],wi=8191&ni,ui=ni>>>13,cn=0|xe[0],Ui=8191&cn,Xi=cn>>>13,Qi=0|xe[1],Ut=8191&Qi,It=Qi>>>13,yt=0|xe[2],pt=8191&yt,st=yt>>>13,Wt=0|xe[3],Vt=8191&Wt,ci=Wt>>>13,bi=0|xe[4],gt=8191&bi,ai=bi>>>13,kt=0|xe[5],mi=8191&kt,Kt=kt>>>13,qi=0|xe[6],Wi=8191&qi,yn=qi>>>13,Ur=0|xe[7],ar=8191&Ur,na=Ur>>>13,po=0|xe[8],sa=8191&po,Pr=po>>>13,no=0|xe[9],ja=8191&no,Na=no>>>13;W.negative=N.negative^G.negative,W.length=19;var uo=(Ee+(z=Math.imul(Ie,Ui))|0)+((8191&(X=(X=Math.imul(Ie,Xi))+Math.imul(ce,Ui)|0))<<13)|0;Ee=((q=Math.imul(ce,Xi))+(X>>>13)|0)+(uo>>>26)|0,uo&=67108863,z=Math.imul(pe,Ui),X=(X=Math.imul(pe,Xi))+Math.imul(Be,Ui)|0,q=Math.imul(Be,Xi);var Eo=(Ee+(z=z+Math.imul(Ie,Ut)|0)|0)+((8191&(X=(X=X+Math.imul(Ie,It)|0)+Math.imul(ce,Ut)|0))<<13)|0;Ee=((q=q+Math.imul(ce,It)|0)+(X>>>13)|0)+(Eo>>>26)|0,Eo&=67108863,z=Math.imul(tt,Ui),X=(X=Math.imul(tt,Xi))+Math.imul(vt,Ui)|0,q=Math.imul(vt,Xi),z=z+Math.imul(pe,Ut)|0,X=(X=X+Math.imul(pe,It)|0)+Math.imul(Be,Ut)|0,q=q+Math.imul(Be,It)|0;var To=(Ee+(z=z+Math.imul(Ie,pt)|0)|0)+((8191&(X=(X=X+Math.imul(Ie,st)|0)+Math.imul(ce,pt)|0))<<13)|0;Ee=((q=q+Math.imul(ce,st)|0)+(X>>>13)|0)+(To>>>26)|0,To&=67108863,z=Math.imul(Nt,Ui),X=(X=Math.imul(Nt,Xi))+Math.imul(Qe,Ui)|0,q=Math.imul(Qe,Xi),z=z+Math.imul(tt,Ut)|0,X=(X=X+Math.imul(tt,It)|0)+Math.imul(vt,Ut)|0,q=q+Math.imul(vt,It)|0,z=z+Math.imul(pe,pt)|0,X=(X=X+Math.imul(pe,st)|0)+Math.imul(Be,pt)|0,q=q+Math.imul(Be,st)|0;var Bi=(Ee+(z=z+Math.imul(Ie,Vt)|0)|0)+((8191&(X=(X=X+Math.imul(Ie,ci)|0)+Math.imul(ce,Vt)|0))<<13)|0;Ee=((q=q+Math.imul(ce,ci)|0)+(X>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,z=Math.imul(Lt,Ui),X=(X=Math.imul(Lt,Xi))+Math.imul(wt,Ui)|0,q=Math.imul(wt,Xi),z=z+Math.imul(Nt,Ut)|0,X=(X=X+Math.imul(Nt,It)|0)+Math.imul(Qe,Ut)|0,q=q+Math.imul(Qe,It)|0,z=z+Math.imul(tt,pt)|0,X=(X=X+Math.imul(tt,st)|0)+Math.imul(vt,pt)|0,q=q+Math.imul(vt,st)|0,z=z+Math.imul(pe,Vt)|0,X=(X=X+Math.imul(pe,ci)|0)+Math.imul(Be,Vt)|0,q=q+Math.imul(Be,ci)|0;var _t=(Ee+(z=z+Math.imul(Ie,gt)|0)|0)+((8191&(X=(X=X+Math.imul(Ie,ai)|0)+Math.imul(ce,gt)|0))<<13)|0;Ee=((q=q+Math.imul(ce,ai)|0)+(X>>>13)|0)+(_t>>>26)|0,_t&=67108863,z=Math.imul(Ge,Ui),X=(X=Math.imul(Ge,Xi))+Math.imul(ot,Ui)|0,q=Math.imul(ot,Xi),z=z+Math.imul(Lt,Ut)|0,X=(X=X+Math.imul(Lt,It)|0)+Math.imul(wt,Ut)|0,q=q+Math.imul(wt,It)|0,z=z+Math.imul(Nt,pt)|0,X=(X=X+Math.imul(Nt,st)|0)+Math.imul(Qe,pt)|0,q=q+Math.imul(Qe,st)|0,z=z+Math.imul(tt,Vt)|0,X=(X=X+Math.imul(tt,ci)|0)+Math.imul(vt,Vt)|0,q=q+Math.imul(vt,ci)|0,z=z+Math.imul(pe,gt)|0,X=(X=X+Math.imul(pe,ai)|0)+Math.imul(Be,gt)|0,q=q+Math.imul(Be,ai)|0;var si=(Ee+(z=z+Math.imul(Ie,mi)|0)|0)+((8191&(X=(X=X+Math.imul(Ie,Kt)|0)+Math.imul(ce,mi)|0))<<13)|0;Ee=((q=q+Math.imul(ce,Kt)|0)+(X>>>13)|0)+(si>>>26)|0,si&=67108863,z=Math.imul(jt,Ui),X=(X=Math.imul(jt,Xi))+Math.imul(li,Ui)|0,q=Math.imul(li,Xi),z=z+Math.imul(Ge,Ut)|0,X=(X=X+Math.imul(Ge,It)|0)+Math.imul(ot,Ut)|0,q=q+Math.imul(ot,It)|0,z=z+Math.imul(Lt,pt)|0,X=(X=X+Math.imul(Lt,st)|0)+Math.imul(wt,pt)|0,q=q+Math.imul(wt,st)|0,z=z+Math.imul(Nt,Vt)|0,X=(X=X+Math.imul(Nt,ci)|0)+Math.imul(Qe,Vt)|0,q=q+Math.imul(Qe,ci)|0,z=z+Math.imul(tt,gt)|0,X=(X=X+Math.imul(tt,ai)|0)+Math.imul(vt,gt)|0,q=q+Math.imul(vt,ai)|0,z=z+Math.imul(pe,mi)|0,X=(X=X+Math.imul(pe,Kt)|0)+Math.imul(Be,mi)|0,q=q+Math.imul(Be,Kt)|0;var Dt=(Ee+(z=z+Math.imul(Ie,Wi)|0)|0)+((8191&(X=(X=X+Math.imul(Ie,yn)|0)+Math.imul(ce,Wi)|0))<<13)|0;Ee=((q=q+Math.imul(ce,yn)|0)+(X>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,z=Math.imul(xi,Ui),X=(X=Math.imul(xi,Xi))+Math.imul(Je,Ui)|0,q=Math.imul(Je,Xi),z=z+Math.imul(jt,Ut)|0,X=(X=X+Math.imul(jt,It)|0)+Math.imul(li,Ut)|0,q=q+Math.imul(li,It)|0,z=z+Math.imul(Ge,pt)|0,X=(X=X+Math.imul(Ge,st)|0)+Math.imul(ot,pt)|0,q=q+Math.imul(ot,st)|0,z=z+Math.imul(Lt,Vt)|0,X=(X=X+Math.imul(Lt,ci)|0)+Math.imul(wt,Vt)|0,q=q+Math.imul(wt,ci)|0,z=z+Math.imul(Nt,gt)|0,X=(X=X+Math.imul(Nt,ai)|0)+Math.imul(Qe,gt)|0,q=q+Math.imul(Qe,ai)|0,z=z+Math.imul(tt,mi)|0,X=(X=X+Math.imul(tt,Kt)|0)+Math.imul(vt,mi)|0,q=q+Math.imul(vt,Kt)|0,z=z+Math.imul(pe,Wi)|0,X=(X=X+Math.imul(pe,yn)|0)+Math.imul(Be,Wi)|0,q=q+Math.imul(Be,yn)|0;var Pi=(Ee+(z=z+Math.imul(Ie,ar)|0)|0)+((8191&(X=(X=X+Math.imul(Ie,na)|0)+Math.imul(ce,ar)|0))<<13)|0;Ee=((q=q+Math.imul(ce,na)|0)+(X>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,z=Math.imul(gi,Ui),X=(X=Math.imul(gi,Xi))+Math.imul(Ti,Ui)|0,q=Math.imul(Ti,Xi),z=z+Math.imul(xi,Ut)|0,X=(X=X+Math.imul(xi,It)|0)+Math.imul(Je,Ut)|0,q=q+Math.imul(Je,It)|0,z=z+Math.imul(jt,pt)|0,X=(X=X+Math.imul(jt,st)|0)+Math.imul(li,pt)|0,q=q+Math.imul(li,st)|0,z=z+Math.imul(Ge,Vt)|0,X=(X=X+Math.imul(Ge,ci)|0)+Math.imul(ot,Vt)|0,q=q+Math.imul(ot,ci)|0,z=z+Math.imul(Lt,gt)|0,X=(X=X+Math.imul(Lt,ai)|0)+Math.imul(wt,gt)|0,q=q+Math.imul(wt,ai)|0,z=z+Math.imul(Nt,mi)|0,X=(X=X+Math.imul(Nt,Kt)|0)+Math.imul(Qe,mi)|0,q=q+Math.imul(Qe,Kt)|0,z=z+Math.imul(tt,Wi)|0,X=(X=X+Math.imul(tt,yn)|0)+Math.imul(vt,Wi)|0,q=q+Math.imul(vt,yn)|0,z=z+Math.imul(pe,ar)|0,X=(X=X+Math.imul(pe,na)|0)+Math.imul(Be,ar)|0,q=q+Math.imul(Be,na)|0;var ln=(Ee+(z=z+Math.imul(Ie,sa)|0)|0)+((8191&(X=(X=X+Math.imul(Ie,Pr)|0)+Math.imul(ce,sa)|0))<<13)|0;Ee=((q=q+Math.imul(ce,Pr)|0)+(X>>>13)|0)+(ln>>>26)|0,ln&=67108863,z=Math.imul(wi,Ui),X=(X=Math.imul(wi,Xi))+Math.imul(ui,Ui)|0,q=Math.imul(ui,Xi),z=z+Math.imul(gi,Ut)|0,X=(X=X+Math.imul(gi,It)|0)+Math.imul(Ti,Ut)|0,q=q+Math.imul(Ti,It)|0,z=z+Math.imul(xi,pt)|0,X=(X=X+Math.imul(xi,st)|0)+Math.imul(Je,pt)|0,q=q+Math.imul(Je,st)|0,z=z+Math.imul(jt,Vt)|0,X=(X=X+Math.imul(jt,ci)|0)+Math.imul(li,Vt)|0,q=q+Math.imul(li,ci)|0,z=z+Math.imul(Ge,gt)|0,X=(X=X+Math.imul(Ge,ai)|0)+Math.imul(ot,gt)|0,q=q+Math.imul(ot,ai)|0,z=z+Math.imul(Lt,mi)|0,X=(X=X+Math.imul(Lt,Kt)|0)+Math.imul(wt,mi)|0,q=q+Math.imul(wt,Kt)|0,z=z+Math.imul(Nt,Wi)|0,X=(X=X+Math.imul(Nt,yn)|0)+Math.imul(Qe,Wi)|0,q=q+Math.imul(Qe,yn)|0,z=z+Math.imul(tt,ar)|0,X=(X=X+Math.imul(tt,na)|0)+Math.imul(vt,ar)|0,q=q+Math.imul(vt,na)|0,z=z+Math.imul(pe,sa)|0,X=(X=X+Math.imul(pe,Pr)|0)+Math.imul(Be,sa)|0,q=q+Math.imul(Be,Pr)|0;var An=(Ee+(z=z+Math.imul(Ie,ja)|0)|0)+((8191&(X=(X=X+Math.imul(Ie,Na)|0)+Math.imul(ce,ja)|0))<<13)|0;Ee=((q=q+Math.imul(ce,Na)|0)+(X>>>13)|0)+(An>>>26)|0,An&=67108863,z=Math.imul(wi,Ut),X=(X=Math.imul(wi,It))+Math.imul(ui,Ut)|0,q=Math.imul(ui,It),z=z+Math.imul(gi,pt)|0,X=(X=X+Math.imul(gi,st)|0)+Math.imul(Ti,pt)|0,q=q+Math.imul(Ti,st)|0,z=z+Math.imul(xi,Vt)|0,X=(X=X+Math.imul(xi,ci)|0)+Math.imul(Je,Vt)|0,q=q+Math.imul(Je,ci)|0,z=z+Math.imul(jt,gt)|0,X=(X=X+Math.imul(jt,ai)|0)+Math.imul(li,gt)|0,q=q+Math.imul(li,ai)|0,z=z+Math.imul(Ge,mi)|0,X=(X=X+Math.imul(Ge,Kt)|0)+Math.imul(ot,mi)|0,q=q+Math.imul(ot,Kt)|0,z=z+Math.imul(Lt,Wi)|0,X=(X=X+Math.imul(Lt,yn)|0)+Math.imul(wt,Wi)|0,q=q+Math.imul(wt,yn)|0,z=z+Math.imul(Nt,ar)|0,X=(X=X+Math.imul(Nt,na)|0)+Math.imul(Qe,ar)|0,q=q+Math.imul(Qe,na)|0,z=z+Math.imul(tt,sa)|0,X=(X=X+Math.imul(tt,Pr)|0)+Math.imul(vt,sa)|0,q=q+Math.imul(vt,Pr)|0;var jn=(Ee+(z=z+Math.imul(pe,ja)|0)|0)+((8191&(X=(X=X+Math.imul(pe,Na)|0)+Math.imul(Be,ja)|0))<<13)|0;Ee=((q=q+Math.imul(Be,Na)|0)+(X>>>13)|0)+(jn>>>26)|0,jn&=67108863,z=Math.imul(wi,pt),X=(X=Math.imul(wi,st))+Math.imul(ui,pt)|0,q=Math.imul(ui,st),z=z+Math.imul(gi,Vt)|0,X=(X=X+Math.imul(gi,ci)|0)+Math.imul(Ti,Vt)|0,q=q+Math.imul(Ti,ci)|0,z=z+Math.imul(xi,gt)|0,X=(X=X+Math.imul(xi,ai)|0)+Math.imul(Je,gt)|0,q=q+Math.imul(Je,ai)|0,z=z+Math.imul(jt,mi)|0,X=(X=X+Math.imul(jt,Kt)|0)+Math.imul(li,mi)|0,q=q+Math.imul(li,Kt)|0,z=z+Math.imul(Ge,Wi)|0,X=(X=X+Math.imul(Ge,yn)|0)+Math.imul(ot,Wi)|0,q=q+Math.imul(ot,yn)|0,z=z+Math.imul(Lt,ar)|0,X=(X=X+Math.imul(Lt,na)|0)+Math.imul(wt,ar)|0,q=q+Math.imul(wt,na)|0,z=z+Math.imul(Nt,sa)|0,X=(X=X+Math.imul(Nt,Pr)|0)+Math.imul(Qe,sa)|0,q=q+Math.imul(Qe,Pr)|0;var Gr=(Ee+(z=z+Math.imul(tt,ja)|0)|0)+((8191&(X=(X=X+Math.imul(tt,Na)|0)+Math.imul(vt,ja)|0))<<13)|0;Ee=((q=q+Math.imul(vt,Na)|0)+(X>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,z=Math.imul(wi,Vt),X=(X=Math.imul(wi,ci))+Math.imul(ui,Vt)|0,q=Math.imul(ui,ci),z=z+Math.imul(gi,gt)|0,X=(X=X+Math.imul(gi,ai)|0)+Math.imul(Ti,gt)|0,q=q+Math.imul(Ti,ai)|0,z=z+Math.imul(xi,mi)|0,X=(X=X+Math.imul(xi,Kt)|0)+Math.imul(Je,mi)|0,q=q+Math.imul(Je,Kt)|0,z=z+Math.imul(jt,Wi)|0,X=(X=X+Math.imul(jt,yn)|0)+Math.imul(li,Wi)|0,q=q+Math.imul(li,yn)|0,z=z+Math.imul(Ge,ar)|0,X=(X=X+Math.imul(Ge,na)|0)+Math.imul(ot,ar)|0,q=q+Math.imul(ot,na)|0,z=z+Math.imul(Lt,sa)|0,X=(X=X+Math.imul(Lt,Pr)|0)+Math.imul(wt,sa)|0,q=q+Math.imul(wt,Pr)|0;var ct=(Ee+(z=z+Math.imul(Nt,ja)|0)|0)+((8191&(X=(X=X+Math.imul(Nt,Na)|0)+Math.imul(Qe,ja)|0))<<13)|0;Ee=((q=q+Math.imul(Qe,Na)|0)+(X>>>13)|0)+(ct>>>26)|0,ct&=67108863,z=Math.imul(wi,gt),X=(X=Math.imul(wi,ai))+Math.imul(ui,gt)|0,q=Math.imul(ui,ai),z=z+Math.imul(gi,mi)|0,X=(X=X+Math.imul(gi,Kt)|0)+Math.imul(Ti,mi)|0,q=q+Math.imul(Ti,Kt)|0,z=z+Math.imul(xi,Wi)|0,X=(X=X+Math.imul(xi,yn)|0)+Math.imul(Je,Wi)|0,q=q+Math.imul(Je,yn)|0,z=z+Math.imul(jt,ar)|0,X=(X=X+Math.imul(jt,na)|0)+Math.imul(li,ar)|0,q=q+Math.imul(li,na)|0,z=z+Math.imul(Ge,sa)|0,X=(X=X+Math.imul(Ge,Pr)|0)+Math.imul(ot,sa)|0,q=q+Math.imul(ot,Pr)|0;var ri=(Ee+(z=z+Math.imul(Lt,ja)|0)|0)+((8191&(X=(X=X+Math.imul(Lt,Na)|0)+Math.imul(wt,ja)|0))<<13)|0;Ee=((q=q+Math.imul(wt,Na)|0)+(X>>>13)|0)+(ri>>>26)|0,ri&=67108863,z=Math.imul(wi,mi),X=(X=Math.imul(wi,Kt))+Math.imul(ui,mi)|0,q=Math.imul(ui,Kt),z=z+Math.imul(gi,Wi)|0,X=(X=X+Math.imul(gi,yn)|0)+Math.imul(Ti,Wi)|0,q=q+Math.imul(Ti,yn)|0,z=z+Math.imul(xi,ar)|0,X=(X=X+Math.imul(xi,na)|0)+Math.imul(Je,ar)|0,q=q+Math.imul(Je,na)|0,z=z+Math.imul(jt,sa)|0,X=(X=X+Math.imul(jt,Pr)|0)+Math.imul(li,sa)|0,q=q+Math.imul(li,Pr)|0;var Ci=(Ee+(z=z+Math.imul(Ge,ja)|0)|0)+((8191&(X=(X=X+Math.imul(Ge,Na)|0)+Math.imul(ot,ja)|0))<<13)|0;Ee=((q=q+Math.imul(ot,Na)|0)+(X>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,z=Math.imul(wi,Wi),X=(X=Math.imul(wi,yn))+Math.imul(ui,Wi)|0,q=Math.imul(ui,yn),z=z+Math.imul(gi,ar)|0,X=(X=X+Math.imul(gi,na)|0)+Math.imul(Ti,ar)|0,q=q+Math.imul(Ti,na)|0,z=z+Math.imul(xi,sa)|0,X=(X=X+Math.imul(xi,Pr)|0)+Math.imul(Je,sa)|0,q=q+Math.imul(Je,Pr)|0;var Ri=(Ee+(z=z+Math.imul(jt,ja)|0)|0)+((8191&(X=(X=X+Math.imul(jt,Na)|0)+Math.imul(li,ja)|0))<<13)|0;Ee=((q=q+Math.imul(li,Na)|0)+(X>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,z=Math.imul(wi,ar),X=(X=Math.imul(wi,na))+Math.imul(ui,ar)|0,q=Math.imul(ui,na),z=z+Math.imul(gi,sa)|0,X=(X=X+Math.imul(gi,Pr)|0)+Math.imul(Ti,sa)|0,q=q+Math.imul(Ti,Pr)|0;var ji=(Ee+(z=z+Math.imul(xi,ja)|0)|0)+((8191&(X=(X=X+Math.imul(xi,Na)|0)+Math.imul(Je,ja)|0))<<13)|0;Ee=((q=q+Math.imul(Je,Na)|0)+(X>>>13)|0)+(ji>>>26)|0,ji&=67108863,z=Math.imul(wi,sa),X=(X=Math.imul(wi,Pr))+Math.imul(ui,sa)|0,q=Math.imul(ui,Pr);var wn=(Ee+(z=z+Math.imul(gi,ja)|0)|0)+((8191&(X=(X=X+Math.imul(gi,Na)|0)+Math.imul(Ti,ja)|0))<<13)|0;Ee=((q=q+Math.imul(Ti,Na)|0)+(X>>>13)|0)+(wn>>>26)|0,wn&=67108863;var Nn=(Ee+(z=Math.imul(wi,ja))|0)+((8191&(X=(X=Math.imul(wi,Na))+Math.imul(ui,ja)|0))<<13)|0;return Ee=((q=Math.imul(ui,Na))+(X>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,ge[0]=uo,ge[1]=Eo,ge[2]=To,ge[3]=Bi,ge[4]=_t,ge[5]=si,ge[6]=Dt,ge[7]=Pi,ge[8]=ln,ge[9]=An,ge[10]=jn,ge[11]=Gr,ge[12]=ct,ge[13]=ri,ge[14]=Ci,ge[15]=Ri,ge[16]=ji,ge[17]=wn,ge[18]=Nn,0!==Ee&&(ge[19]=Ee,W.length++),W};function Q(N,G,W){W.negative=G.negative^N.negative,W.length=N.length+G.length;for(var z=0,X=0,q=0;q<W.length-1;q++){var ye=X;X=0;for(var xe=67108863&z,ge=Math.min(q,G.length-1),Ee=Math.max(0,q-N.length+1);Ee<=ge;Ee++){var Ie=(0|N.words[q-Ee])*(0|G.words[Ee]),ce=67108863&Ie;xe=67108863&(ce=ce+xe|0),X+=(ye=(ye=ye+(Ie/67108864|0)|0)+(ce>>>26)|0)>>>26,ye&=67108863}W.words[q]=xe,z=ye,ye=X}return 0!==z?W.words[q]=z:W.length--,W._strip()}function se(N,G,W){return Q(N,G,W)}function ie(N,G){this.x=N,this.y=G}Math.imul||(Y=F),s.prototype.mulTo=function(N,G){var W=this.length+N.length;return 10===this.length&&10===N.length?Y(this,N,G):W<63?F(this,N,G):W<1024?Q(this,N,G):se(this,N,G)},ie.prototype.makeRBT=function(N){for(var G=new Array(N),W=s.prototype._countBits(N)-1,z=0;z<N;z++)G[z]=this.revBin(z,W,N);return G},ie.prototype.revBin=function(N,G,W){if(0===N||N===W-1)return N;for(var z=0,X=0;X<G;X++)z|=(1&N)<<G-X-1,N>>=1;return z},ie.prototype.permute=function(N,G,W,z,X,q){for(var ye=0;ye<q;ye++)z[ye]=G[N[ye]],X[ye]=W[N[ye]]},ie.prototype.transform=function(N,G,W,z,X,q){this.permute(q,N,G,W,z,X);for(var ye=1;ye<X;ye<<=1)for(var xe=ye<<1,ge=Math.cos(2*Math.PI/xe),Ee=Math.sin(2*Math.PI/xe),he=0;he<X;he+=xe)for(var Ie=ge,ce=Ee,de=0;de<ye;de++){var pe=W[he+de],Be=z[he+de],We=W[he+de+ye],tt=z[he+de+ye],vt=Ie*We-ce*tt;tt=Ie*tt+ce*We,W[he+de]=pe+(We=vt),z[he+de]=Be+tt,W[he+de+ye]=pe-We,z[he+de+ye]=Be-tt,de!==xe&&(vt=ge*Ie-Ee*ce,ce=ge*ce+Ee*Ie,Ie=vt)}},ie.prototype.guessLen13b=function(N,G){var W=1|Math.max(G,N),z=1&W,X=0;for(W=W/2|0;W;W>>>=1)X++;return 1<<X+1+z},ie.prototype.conjugate=function(N,G,W){if(!(W<=1))for(var z=0;z<W/2;z++){var X=N[z];N[z]=N[W-z-1],N[W-z-1]=X,X=G[z],G[z]=-G[W-z-1],G[W-z-1]=-X}},ie.prototype.normalize13b=function(N,G){for(var W=0,z=0;z<G/2;z++){var X=8192*Math.round(N[2*z+1]/G)+Math.round(N[2*z]/G)+W;N[z]=67108863&X,W=X<67108864?0:X/67108864|0}return N},ie.prototype.convert13b=function(N,G,W,z){for(var X=0,q=0;q<G;q++)W[2*q]=8191&(X+=0|N[q]),W[2*q+1]=8191&(X>>>=13),X>>>=13;for(q=2*G;q<z;++q)W[q]=0;v(0===X),v(!(-8192&X))},ie.prototype.stub=function(N){for(var G=new Array(N),W=0;W<N;W++)G[W]=0;return G},ie.prototype.mulp=function(N,G,W){var z=2*this.guessLen13b(N.length,G.length),X=this.makeRBT(z),q=this.stub(z),ye=new Array(z),xe=new Array(z),ge=new Array(z),Ee=new Array(z),he=new Array(z),Ie=new Array(z),ce=W.words;ce.length=z,this.convert13b(N.words,N.length,ye,z),this.convert13b(G.words,G.length,Ee,z),this.transform(ye,q,xe,ge,z,X),this.transform(Ee,q,he,Ie,z,X);for(var de=0;de<z;de++){var pe=xe[de]*he[de]-ge[de]*Ie[de];ge[de]=xe[de]*Ie[de]+ge[de]*he[de],xe[de]=pe}return this.conjugate(xe,ge,z),this.transform(xe,ge,ce,q,z,X),this.conjugate(ce,q,z),this.normalize13b(ce,z),W.negative=N.negative^G.negative,W.length=N.length+G.length,W._strip()},s.prototype.mul=function(N){var G=new s(null);return G.words=new Array(this.length+N.length),this.mulTo(N,G)},s.prototype.mulf=function(N){var G=new s(null);return G.words=new Array(this.length+N.length),se(this,N,G)},s.prototype.imul=function(N){return this.clone().mulTo(N,this)},s.prototype.imuln=function(N){var G=N<0;G&&(N=-N),v("number"==typeof N),v(N<67108864);for(var W=0,z=0;z<this.length;z++){var X=(0|this.words[z])*N,q=(67108863&X)+(67108863&W);W>>=26,W+=X/67108864|0,W+=q>>>26,this.words[z]=67108863&q}return 0!==W&&(this.words[z]=W,this.length++),G?this.ineg():this},s.prototype.muln=function(N){return this.clone().imuln(N)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(N){var G=function(q){for(var ye=new Array(q.bitLength()),xe=0;xe<ye.length;xe++)ye[xe]=q.words[xe/26|0]>>>xe%26&1;return ye}(N);if(0===G.length)return new s(1);for(var W=this,z=0;z<G.length&&0===G[z];z++,W=W.sqr());if(++z<G.length)for(var X=W.sqr();z<G.length;z++,X=X.sqr())0!==G[z]&&(W=W.mul(X));return W},s.prototype.iushln=function(N){v("number"==typeof N&&N>=0);var G,W=N%26,z=(N-W)/26,X=67108863>>>26-W<<26-W;if(0!==W){var q=0;for(G=0;G<this.length;G++){var ye=this.words[G]&X;this.words[G]=(0|this.words[G])-ye<<W|q,q=ye>>>26-W}q&&(this.words[G]=q,this.length++)}if(0!==z){for(G=this.length-1;G>=0;G--)this.words[G+z]=this.words[G];for(G=0;G<z;G++)this.words[G]=0;this.length+=z}return this._strip()},s.prototype.ishln=function(N){return v(0===this.negative),this.iushln(N)},s.prototype.iushrn=function(N,G,W){var z;v("number"==typeof N&&N>=0),z=G?(G-G%26)/26:0;var X=N%26,q=Math.min((N-X)/26,this.length),ye=67108863^67108863>>>X<<X,xe=W;if(z-=q,z=Math.max(0,z),xe){for(var ge=0;ge<q;ge++)xe.words[ge]=this.words[ge];xe.length=q}if(0!==q)if(this.length>q)for(this.length-=q,ge=0;ge<this.length;ge++)this.words[ge]=this.words[ge+q];else this.words[0]=0,this.length=1;var Ee=0;for(ge=this.length-1;ge>=0&&(0!==Ee||ge>=z);ge--){var he=0|this.words[ge];this.words[ge]=Ee<<26-X|he>>>X,Ee=he&ye}return xe&&0!==Ee&&(xe.words[xe.length++]=Ee),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(N,G,W){return v(0===this.negative),this.iushrn(N,G,W)},s.prototype.shln=function(N){return this.clone().ishln(N)},s.prototype.ushln=function(N){return this.clone().iushln(N)},s.prototype.shrn=function(N){return this.clone().ishrn(N)},s.prototype.ushrn=function(N){return this.clone().iushrn(N)},s.prototype.testn=function(N){v("number"==typeof N&&N>=0);var G=N%26,W=(N-G)/26;return!(this.length<=W||!(this.words[W]&1<<G))},s.prototype.imaskn=function(N){v("number"==typeof N&&N>=0);var G=N%26,W=(N-G)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=W?this:(0!==G&&W++,this.length=Math.min(W,this.length),0!==G&&(this.words[this.length-1]&=67108863^67108863>>>G<<G),this._strip())},s.prototype.maskn=function(N){return this.clone().imaskn(N)},s.prototype.iaddn=function(N){return v("number"==typeof N),v(N<67108864),N<0?this.isubn(-N):0!==this.negative?1===this.length&&(0|this.words[0])<=N?(this.words[0]=N-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(N),this.negative=1,this):this._iaddn(N)},s.prototype._iaddn=function(N){this.words[0]+=N;for(var G=0;G<this.length&&this.words[G]>=67108864;G++)this.words[G]-=67108864,G===this.length-1?this.words[G+1]=1:this.words[G+1]++;return this.length=Math.max(this.length,G+1),this},s.prototype.isubn=function(N){if(v("number"==typeof N),v(N<67108864),N<0)return this.iaddn(-N);if(0!==this.negative)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var G=0;G<this.length&&this.words[G]<0;G++)this.words[G]+=67108864,this.words[G+1]-=1;return this._strip()},s.prototype.addn=function(N){return this.clone().iaddn(N)},s.prototype.subn=function(N){return this.clone().isubn(N)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(N,G,W){var z,X;this._expand(N.length+W);var ye=0;for(z=0;z<N.length;z++){X=(0|this.words[z+W])+ye;var xe=(0|N.words[z])*G;ye=((X-=67108863&xe)>>26)-(xe/67108864|0),this.words[z+W]=67108863&X}for(;z<this.length-W;z++)ye=(X=(0|this.words[z+W])+ye)>>26,this.words[z+W]=67108863&X;if(0===ye)return this._strip();for(v(-1===ye),ye=0,z=0;z<this.length;z++)ye=(X=-(0|this.words[z])+ye)>>26,this.words[z]=67108863&X;return this.negative=1,this._strip()},s.prototype._wordDiv=function(N,G){var W,z=this.clone(),X=N,q=0|X.words[X.length-1];0!=(W=26-this._countBits(q))&&(X=X.ushln(W),z.iushln(W),q=0|X.words[X.length-1]);var ye,xe=z.length-X.length;if("mod"!==G){(ye=new s(null)).length=xe+1,ye.words=new Array(ye.length);for(var ge=0;ge<ye.length;ge++)ye.words[ge]=0}var Ee=z.clone()._ishlnsubmul(X,1,xe);0===Ee.negative&&(z=Ee,ye&&(ye.words[xe]=1));for(var he=xe-1;he>=0;he--){var Ie=67108864*(0|z.words[X.length+he])+(0|z.words[X.length+he-1]);for(Ie=Math.min(Ie/q|0,67108863),z._ishlnsubmul(X,Ie,he);0!==z.negative;)Ie--,z.negative=0,z._ishlnsubmul(X,1,he),z.isZero()||(z.negative^=1);ye&&(ye.words[he]=Ie)}return ye&&ye._strip(),z._strip(),"div"!==G&&0!==W&&z.iushrn(W),{div:ye||null,mod:z}},s.prototype.divmod=function(N,G,W){return v(!N.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===N.negative?(q=this.neg().divmod(N,G),"mod"!==G&&(z=q.div.neg()),"div"!==G&&(X=q.mod.neg(),W&&0!==X.negative&&X.iadd(N)),{div:z,mod:X}):0===this.negative&&0!==N.negative?(q=this.divmod(N.neg(),G),"mod"!==G&&(z=q.div.neg()),{div:z,mod:q.mod}):this.negative&N.negative?(q=this.neg().divmod(N.neg(),G),"div"!==G&&(X=q.mod.neg(),W&&0!==X.negative&&X.isub(N)),{div:q.div,mod:X}):N.length>this.length||this.cmp(N)<0?{div:new s(0),mod:this}:1===N.length?"div"===G?{div:this.divn(N.words[0]),mod:null}:"mod"===G?{div:null,mod:new s(this.modrn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new s(this.modrn(N.words[0]))}:this._wordDiv(N,G);var z,X,q},s.prototype.div=function(N){return this.divmod(N,"div",!1).div},s.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},s.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},s.prototype.divRound=function(N){var G=this.divmod(N);if(G.mod.isZero())return G.div;var W=0!==G.div.negative?G.mod.isub(N):G.mod,z=N.ushrn(1),X=N.andln(1),q=W.cmp(z);return q<0||1===X&&0===q?G.div:0!==G.div.negative?G.div.isubn(1):G.div.iaddn(1)},s.prototype.modrn=function(N){var G=N<0;G&&(N=-N),v(N<=67108863);for(var W=(1<<26)%N,z=0,X=this.length-1;X>=0;X--)z=(W*z+(0|this.words[X]))%N;return G?-z:z},s.prototype.modn=function(N){return this.modrn(N)},s.prototype.idivn=function(N){var G=N<0;G&&(N=-N),v(N<=67108863);for(var W=0,z=this.length-1;z>=0;z--){var X=(0|this.words[z])+67108864*W;this.words[z]=X/N|0,W=X%N}return this._strip(),G?this.ineg():this},s.prototype.divn=function(N){return this.clone().idivn(N)},s.prototype.egcd=function(N){v(0===N.negative),v(!N.isZero());var G=this,W=N.clone();G=0!==G.negative?G.umod(N):G.clone();for(var z=new s(1),X=new s(0),q=new s(0),ye=new s(1),xe=0;G.isEven()&&W.isEven();)G.iushrn(1),W.iushrn(1),++xe;for(var ge=W.clone(),Ee=G.clone();!G.isZero();){for(var he=0,Ie=1;!(G.words[0]&Ie)&&he<26;++he,Ie<<=1);if(he>0)for(G.iushrn(he);he-- >0;)(z.isOdd()||X.isOdd())&&(z.iadd(ge),X.isub(Ee)),z.iushrn(1),X.iushrn(1);for(var ce=0,de=1;!(W.words[0]&de)&&ce<26;++ce,de<<=1);if(ce>0)for(W.iushrn(ce);ce-- >0;)(q.isOdd()||ye.isOdd())&&(q.iadd(ge),ye.isub(Ee)),q.iushrn(1),ye.iushrn(1);G.cmp(W)>=0?(G.isub(W),z.isub(q),X.isub(ye)):(W.isub(G),q.isub(z),ye.isub(X))}return{a:q,b:ye,gcd:W.iushln(xe)}},s.prototype._invmp=function(N){v(0===N.negative),v(!N.isZero());var G=this,W=N.clone();G=0!==G.negative?G.umod(N):G.clone();for(var z,X=new s(1),q=new s(0),ye=W.clone();G.cmpn(1)>0&&W.cmpn(1)>0;){for(var xe=0,ge=1;!(G.words[0]&ge)&&xe<26;++xe,ge<<=1);if(xe>0)for(G.iushrn(xe);xe-- >0;)X.isOdd()&&X.iadd(ye),X.iushrn(1);for(var Ee=0,he=1;!(W.words[0]&he)&&Ee<26;++Ee,he<<=1);if(Ee>0)for(W.iushrn(Ee);Ee-- >0;)q.isOdd()&&q.iadd(ye),q.iushrn(1);G.cmp(W)>=0?(G.isub(W),X.isub(q)):(W.isub(G),q.isub(X))}return(z=0===G.cmpn(1)?X:q).cmpn(0)<0&&z.iadd(N),z},s.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var G=this.clone(),W=N.clone();G.negative=0,W.negative=0;for(var z=0;G.isEven()&&W.isEven();z++)G.iushrn(1),W.iushrn(1);for(;;){for(;G.isEven();)G.iushrn(1);for(;W.isEven();)W.iushrn(1);var X=G.cmp(W);if(X<0){var q=G;G=W,W=q}else if(0===X||0===W.cmpn(1))break;G.isub(W)}return W.iushln(z)},s.prototype.invm=function(N){return this.egcd(N).a.umod(N)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(N){return this.words[0]&N},s.prototype.bincn=function(N){v("number"==typeof N);var G=N%26,W=(N-G)/26,z=1<<G;if(this.length<=W)return this._expand(W+1),this.words[W]|=z,this;for(var X=z,q=W;0!==X&&q<this.length;q++){var ye=0|this.words[q];X=(ye+=X)>>>26,this.words[q]=ye&=67108863}return 0!==X&&(this.words[q]=X,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(N){var G,W=N<0;if(0!==this.negative&&!W)return-1;if(0===this.negative&&W)return 1;if(this._strip(),this.length>1)G=1;else{W&&(N=-N),v(N<=67108863,"Number is too big");var z=0|this.words[0];G=z===N?0:z<N?-1:1}return 0!==this.negative?0|-G:G},s.prototype.cmp=function(N){if(0!==this.negative&&0===N.negative)return-1;if(0===this.negative&&0!==N.negative)return 1;var G=this.ucmp(N);return 0!==this.negative?0|-G:G},s.prototype.ucmp=function(N){if(this.length>N.length)return 1;if(this.length<N.length)return-1;for(var G=0,W=this.length-1;W>=0;W--){var z=0|this.words[W],X=0|N.words[W];if(z!==X){z<X?G=-1:z>X&&(G=1);break}}return G},s.prototype.gtn=function(N){return 1===this.cmpn(N)},s.prototype.gt=function(N){return 1===this.cmp(N)},s.prototype.gten=function(N){return this.cmpn(N)>=0},s.prototype.gte=function(N){return this.cmp(N)>=0},s.prototype.ltn=function(N){return-1===this.cmpn(N)},s.prototype.lt=function(N){return-1===this.cmp(N)},s.prototype.lten=function(N){return this.cmpn(N)<=0},s.prototype.lte=function(N){return this.cmp(N)<=0},s.prototype.eqn=function(N){return 0===this.cmpn(N)},s.prototype.eq=function(N){return 0===this.cmp(N)},s.red=function(N){return new me(N)},s.prototype.toRed=function(N){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),N.convertTo(this)._forceRed(N)},s.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(N){return this.red=N,this},s.prototype.forceRed=function(N){return v(!this.red,"Already a number in reduction context"),this._forceRed(N)},s.prototype.redAdd=function(N){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},s.prototype.redIAdd=function(N){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},s.prototype.redSub=function(N){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},s.prototype.redISub=function(N){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},s.prototype.redShl=function(N){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},s.prototype.redMul=function(N){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},s.prototype.redIMul=function(N){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},s.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(N){return v(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var ee={k256:null,p224:null,p192:null,p25519:null};function re(N,G){this.name=N,this.p=new s(G,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ne(){re.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){re.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function be(){re.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function oe(){re.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function me(N){if("string"==typeof N){var G=s._prime(N);this.m=G.p,this.prime=G}else v(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}function we(N){me.call(this,N),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}re.prototype._tmp=function(){var N=new s(null);return N.words=new Array(Math.ceil(this.n/13)),N},re.prototype.ireduce=function(N){var G,W=N;do{this.split(W,this.tmp),G=(W=(W=this.imulK(W)).iadd(this.tmp)).bitLength()}while(G>this.n);var z=G<this.n?-1:W.ucmp(this.p);return 0===z?(W.words[0]=0,W.length=1):z>0?W.isub(this.p):void 0!==W.strip?W.strip():W._strip(),W},re.prototype.split=function(N,G){N.iushrn(this.n,0,G)},re.prototype.imulK=function(N){return N.imul(this.k)},h(ne,re),ne.prototype.split=function(N,G){for(var W=Math.min(N.length,9),z=0;z<W;z++)G.words[z]=N.words[z];if(G.length=W,N.length<=9)return N.words[0]=0,void(N.length=1);var X=N.words[9];for(G.words[G.length++]=4194303&X,z=10;z<N.length;z++){var q=0|N.words[z];N.words[z-10]=(4194303&q)<<4|X>>>22,X=q}N.words[z-10]=X>>>=22,N.length-=0===X&&N.length>10?10:9},ne.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var G=0,W=0;W<N.length;W++){var z=0|N.words[W];N.words[W]=67108863&(G+=977*z),G=64*z+(G/67108864|0)}return 0===N.words[N.length-1]&&(N.length--,0===N.words[N.length-1]&&N.length--),N},h(_e,re),h(be,re),h(oe,re),oe.prototype.imulK=function(N){for(var G=0,W=0;W<N.length;W++){var z=19*(0|N.words[W])+G,X=67108863&z;z>>>=26,N.words[W]=X,G=z}return 0!==G&&(N.words[N.length++]=G),N},s._prime=function(N){if(ee[N])return ee[N];var G;if("k256"===N)G=new ne;else if("p224"===N)G=new _e;else if("p192"===N)G=new be;else{if("p25519"!==N)throw new Error("Unknown prime "+N);G=new oe}return ee[N]=G,G},me.prototype._verify1=function(N){v(0===N.negative,"red works only with positives"),v(N.red,"red works only with red numbers")},me.prototype._verify2=function(N,G){v(!(N.negative|G.negative),"red works only with positives"),v(N.red&&N.red===G.red,"red works only with red numbers")},me.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):(k(N,N.umod(this.m)._forceRed(this)),N)},me.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},me.prototype.add=function(N,G){this._verify2(N,G);var W=N.add(G);return W.cmp(this.m)>=0&&W.isub(this.m),W._forceRed(this)},me.prototype.iadd=function(N,G){this._verify2(N,G);var W=N.iadd(G);return W.cmp(this.m)>=0&&W.isub(this.m),W},me.prototype.sub=function(N,G){this._verify2(N,G);var W=N.sub(G);return W.cmpn(0)<0&&W.iadd(this.m),W._forceRed(this)},me.prototype.isub=function(N,G){this._verify2(N,G);var W=N.isub(G);return W.cmpn(0)<0&&W.iadd(this.m),W},me.prototype.shl=function(N,G){return this._verify1(N),this.imod(N.ushln(G))},me.prototype.imul=function(N,G){return this._verify2(N,G),this.imod(N.imul(G))},me.prototype.mul=function(N,G){return this._verify2(N,G),this.imod(N.mul(G))},me.prototype.isqr=function(N){return this.imul(N,N.clone())},me.prototype.sqr=function(N){return this.mul(N,N)},me.prototype.sqrt=function(N){if(N.isZero())return N.clone();var G=this.m.andln(3);if(v(G%2==1),3===G){var W=this.m.add(new s(1)).iushrn(2);return this.pow(N,W)}for(var z=this.m.subn(1),X=0;!z.isZero()&&0===z.andln(1);)X++,z.iushrn(1);v(!z.isZero());var q=new s(1).toRed(this),ye=q.redNeg(),xe=this.m.subn(1).iushrn(1),ge=this.m.bitLength();for(ge=new s(2*ge*ge).toRed(this);0!==this.pow(ge,xe).cmp(ye);)ge.redIAdd(ye);for(var Ee=this.pow(ge,z),he=this.pow(N,z.addn(1).iushrn(1)),Ie=this.pow(N,z),ce=X;0!==Ie.cmp(q);){for(var de=Ie,pe=0;0!==de.cmp(q);pe++)de=de.redSqr();v(pe<ce);var Be=this.pow(Ee,new s(1).iushln(ce-pe-1));he=he.redMul(Be),Ee=Be.redSqr(),Ie=Ie.redMul(Ee),ce=pe}return he},me.prototype.invm=function(N){var G=N._invmp(this.m);return 0!==G.negative?(G.negative=0,this.imod(G).redNeg()):this.imod(G)},me.prototype.pow=function(N,G){if(G.isZero())return new s(1).toRed(this);if(0===G.cmpn(1))return N.clone();var W=new Array(16);W[0]=new s(1).toRed(this),W[1]=N;for(var z=2;z<W.length;z++)W[z]=this.mul(W[z-1],N);var X=W[0],q=0,ye=0,xe=G.bitLength()%26;for(0===xe&&(xe=26),z=G.length-1;z>=0;z--){for(var ge=G.words[z],Ee=xe-1;Ee>=0;Ee--){var he=ge>>Ee&1;X!==W[0]&&(X=this.sqr(X)),0!==he||0!==q?(q<<=1,q|=he,(4==++ye||0===z&&0===Ee)&&(X=this.mul(X,W[q]),ye=0,q=0)):ye=0}xe=26}return X},me.prototype.convertTo=function(N){var G=N.umod(this.m);return G===N?G.clone():G},me.prototype.convertFrom=function(N){var G=N.clone();return G.red=null,G},s.mont=function(N){return new we(N)},h(we,me),we.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},we.prototype.convertFrom=function(N){var G=this.imod(N.mul(this.rinv));return G.red=null,G},we.prototype.imul=function(N,G){if(N.isZero()||G.isZero())return N.words[0]=0,N.length=1,N;var W=N.imul(G),z=W.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=W.isub(z).iushrn(this.shift),q=X;return X.cmp(this.m)>=0?q=X.isub(this.m):X.cmpn(0)<0&&(q=X.iadd(this.m)),q._forceRed(this)},we.prototype.mul=function(N,G){if(N.isZero()||G.isZero())return new s(0)._forceRed(this);var W=N.mul(G),z=W.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=W.isub(z).iushrn(this.shift),q=X;return X.cmp(this.m)>=0?q=X.isub(this.m):X.cmpn(0)<0&&(q=X.iadd(this.m)),q._forceRed(this)},we.prototype.invm=function(N){return this.imod(N._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===E||E)},{buffer:188}],187:[function(o,E,R){"use strict";var m;function _(h){this.rand=h}if(E.exports=function(h){return m||(m=new _(null)),m.generate(h)},E.exports.Rand=_,_.prototype.generate=function(h){return this._rand(h)},_.prototype._rand=function(h){if(this.rand.getBytes)return this.rand.getBytes(h);for(var s=new Uint8Array(h),b=0;b<s.length;b++)s[b]=this.rand.getByte();return s},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?_.prototype._rand=function(h){var s=new Uint8Array(h);return self.crypto.getRandomValues(s),s}:self.msCrypto&&self.msCrypto.getRandomValues?_.prototype._rand=function(h){var s=new Uint8Array(h);return self.msCrypto.getRandomValues(s),s}:"object"==typeof window&&(_.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var v=o("crypto");if("function"!=typeof v.randomBytes)throw new Error("Not supported");_.prototype._rand=function(h){return v.randomBytes(h)}}catch{}},{crypto:188}],188:[function(o,E,R){},{}],189:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer;function _(w){m.isBuffer(w)||(w=m.from(w));for(var f=w.length/4|0,k=new Array(f),I=0;I<f;I++)k[I]=w.readUInt32BE(4*I);return k}function v(w){for(;0<w.length;w++)w[0]=0}function h(w,f,k,I,x){for(var g,C,F,Y,Q=k[0],se=k[1],ie=k[2],ee=k[3],re=w[0]^f[0],ne=w[1]^f[1],_e=w[2]^f[2],be=w[3]^f[3],oe=4,me=1;me<x;me++)g=Q[re>>>24]^se[ne>>>16&255]^ie[_e>>>8&255]^ee[255&be]^f[oe++],C=Q[ne>>>24]^se[_e>>>16&255]^ie[be>>>8&255]^ee[255&re]^f[oe++],F=Q[_e>>>24]^se[be>>>16&255]^ie[re>>>8&255]^ee[255&ne]^f[oe++],Y=Q[be>>>24]^se[re>>>16&255]^ie[ne>>>8&255]^ee[255&_e]^f[oe++],re=g,ne=C,_e=F,be=Y;return g=(I[re>>>24]<<24|I[ne>>>16&255]<<16|I[_e>>>8&255]<<8|I[255&be])^f[oe++],C=(I[ne>>>24]<<24|I[_e>>>16&255]<<16|I[be>>>8&255]<<8|I[255&re])^f[oe++],F=(I[_e>>>24]<<24|I[be>>>16&255]<<16|I[re>>>8&255]<<8|I[255&ne])^f[oe++],Y=(I[be>>>24]<<24|I[re>>>16&255]<<16|I[ne>>>8&255]<<8|I[255&_e])^f[oe++],[g>>>=0,C>>>=0,F>>>=0,Y>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],b=function(){for(var w=new Array(256),f=0;f<256;f++)w[f]=f<128?f<<1:f<<1^283;for(var k=[],I=[],x=[[],[],[],[]],g=[[],[],[],[]],C=0,F=0,Y=0;Y<256;++Y){var Q=F^F<<1^F<<2^F<<3^F<<4;k[C]=Q=Q>>>8^255&Q^99,I[Q]=C;var se=w[C],ie=w[se],ee=w[ie],re=257*w[Q]^16843008*Q;x[0][C]=re<<24|re>>>8,x[1][C]=re<<16|re>>>16,x[2][C]=re<<8|re>>>24,x[3][C]=re,g[0][Q]=(re=16843009*ee^65537*ie^257*se^16843008*C)<<24|re>>>8,g[1][Q]=re<<16|re>>>16,g[2][Q]=re<<8|re>>>24,g[3][Q]=re,0===C?C=F=1:(C=se^w[w[w[ee^se]]],F^=w[w[F]])}return{SBOX:k,INV_SBOX:I,SUB_MIX:x,INV_SUB_MIX:g}}();function O(w){this._key=_(w),this._reset()}O.blockSize=16,O.keySize=32,O.prototype.blockSize=O.blockSize,O.prototype.keySize=O.keySize,O.prototype._reset=function(){for(var w=this._key,f=w.length,k=f+6,I=4*(k+1),x=[],g=0;g<f;g++)x[g]=w[g];for(g=f;g<I;g++){var C=x[g-1];g%f==0?(C=b.SBOX[(C=C<<8|C>>>24)>>>24]<<24|b.SBOX[C>>>16&255]<<16|b.SBOX[C>>>8&255]<<8|b.SBOX[255&C],C^=s[g/f|0]<<24):f>6&&g%f==4&&(C=b.SBOX[C>>>24]<<24|b.SBOX[C>>>16&255]<<16|b.SBOX[C>>>8&255]<<8|b.SBOX[255&C]),x[g]=x[g-f]^C}for(var F=[],Y=0;Y<I;Y++){var Q=I-Y,se=x[Q-(Y%4?0:4)];F[Y]=Y<4||Q<=4?se:b.INV_SUB_MIX[0][b.SBOX[se>>>24]]^b.INV_SUB_MIX[1][b.SBOX[se>>>16&255]]^b.INV_SUB_MIX[2][b.SBOX[se>>>8&255]]^b.INV_SUB_MIX[3][b.SBOX[255&se]]}this._nRounds=k,this._keySchedule=x,this._invKeySchedule=F},O.prototype.encryptBlockRaw=function(w){return h(w=_(w),this._keySchedule,b.SUB_MIX,b.SBOX,this._nRounds)},O.prototype.encryptBlock=function(w){var f=this.encryptBlockRaw(w),k=m.allocUnsafe(16);return k.writeUInt32BE(f[0],0),k.writeUInt32BE(f[1],4),k.writeUInt32BE(f[2],8),k.writeUInt32BE(f[3],12),k},O.prototype.decryptBlock=function(w){var f=(w=_(w))[1];w[1]=w[3],w[3]=f;var k=h(w,this._invKeySchedule,b.INV_SUB_MIX,b.INV_SBOX,this._nRounds),I=m.allocUnsafe(16);return I.writeUInt32BE(k[0],0),I.writeUInt32BE(k[3],4),I.writeUInt32BE(k[2],8),I.writeUInt32BE(k[1],12),I},O.prototype.scrub=function(){v(this._keySchedule),v(this._invKeySchedule),v(this._key)},E.exports.AES=O},{"safe-buffer":494}],190:[function(o,E,R){"use strict";var m=o("./aes"),_=o("safe-buffer").Buffer,v=o("cipher-base"),h=o("inherits"),s=o("./ghash"),b=o("buffer-xor"),O=o("./incr32");function w(f,k,I,x){v.call(this);var g=_.alloc(4,0);this._cipher=new m.AES(k);var C=this._cipher.encryptBlock(g);this._ghash=new s(C),I=function(F,Y,Q){if(12===Y.length)return F._finID=_.concat([Y,_.from([0,0,0,1])]),_.concat([Y,_.from([0,0,0,2])]);var se=new s(Q),ie=Y.length,ee=ie%16;se.update(Y),ee&&se.update(_.alloc(ee=16-ee,0)),se.update(_.alloc(8,0));var re=8*ie,ne=_.alloc(8);ne.writeUIntBE(re,0,8),se.update(ne),F._finID=se.state;var _e=_.from(F._finID);return O(_e),_e}(this,I,C),this._prev=_.from(I),this._cache=_.allocUnsafe(0),this._secCache=_.allocUnsafe(0),this._decrypt=x,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}h(w,v),w.prototype._update=function(f){if(!this._called&&this._alen){var k=16-this._alen%16;k<16&&(k=_.alloc(k,0),this._ghash.update(k))}this._called=!0;var I=this._mode.encrypt(this,f);return this._ghash.update(this._decrypt?f:I),this._len+=f.length,I},w.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var f=b(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(k,I){var x=0;k.length!==I.length&&x++;for(var g=Math.min(k.length,I.length),C=0;C<g;++C)x+=k[C]^I[C];return x}(f,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=f,this._cipher.scrub()},w.prototype.getAuthTag=function(){if(this._decrypt||!_.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},w.prototype.setAuthTag=function(f){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=f},w.prototype.setAAD=function(f){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(f),this._alen+=f.length},E.exports=w},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(o,E,R){"use strict";var m=o("./encrypter"),_=o("./decrypter"),v=o("./modes/list.json");R.createCipher=R.Cipher=m.createCipher,R.createCipheriv=R.Cipheriv=m.createCipheriv,R.createDecipher=R.Decipher=_.createDecipher,R.createDecipheriv=R.Decipheriv=_.createDecipheriv,R.listCiphers=R.getCiphers=function(){return Object.keys(v)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(o,E,R){"use strict";var m=o("./authCipher"),_=o("safe-buffer").Buffer,v=o("./modes"),h=o("./streamCipher"),s=o("cipher-base"),b=o("./aes"),O=o("evp_bytestokey");function w(I,x,g){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new b.AES(x),this._prev=_.from(g),this._mode=I,this._autopadding=!0}function f(){this.cache=_.allocUnsafe(0)}function k(I,x,g){var C=v[I.toLowerCase()];if(!C)throw new TypeError("invalid suite type");if("string"==typeof g&&(g=_.from(g)),"GCM"!==C.mode&&g.length!==C.iv)throw new TypeError("invalid iv length "+g.length);if("string"==typeof x&&(x=_.from(x)),x.length!==C.key/8)throw new TypeError("invalid key length "+x.length);return"stream"===C.type?new h(C.module,x,g,!0):"auth"===C.type?new m(C.module,x,g,!0):new w(C.module,x,g)}o("inherits")(w,s),w.prototype._update=function(I){var x,g;this._cache.add(I);for(var C=[];x=this._cache.get(this._autopadding);)g=this._mode.decrypt(this,x),C.push(g);return _.concat(C)},w.prototype._final=function(){var I=this._cache.flush();if(this._autopadding)return function(x){var g=x[15];if(g<1||g>16)throw new Error("unable to decrypt data");for(var C=-1;++C<g;)if(x[C+(16-g)]!==g)throw new Error("unable to decrypt data");if(16!==g)return x.slice(0,16-g)}(this._mode.decrypt(this,I));if(I)throw new Error("data not multiple of block length")},w.prototype.setAutoPadding=function(I){return this._autopadding=!!I,this},f.prototype.add=function(I){this.cache=_.concat([this.cache,I])},f.prototype.get=function(I){var x;if(I){if(this.cache.length>16)return x=this.cache.slice(0,16),this.cache=this.cache.slice(16),x}else if(this.cache.length>=16)return x=this.cache.slice(0,16),this.cache=this.cache.slice(16),x;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},R.createDecipher=function(I,x){var g=v[I.toLowerCase()];if(!g)throw new TypeError("invalid suite type");var C=O(x,!1,g.key,g.iv);return k(I,C.key,C.iv)},R.createDecipheriv=k},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(o,E,R){"use strict";var m=o("./modes"),_=o("./authCipher"),v=o("safe-buffer").Buffer,h=o("./streamCipher"),s=o("cipher-base"),b=o("./aes"),O=o("evp_bytestokey");function w(x,g,C){s.call(this),this._cache=new k,this._cipher=new b.AES(g),this._prev=v.from(C),this._mode=x,this._autopadding=!0}o("inherits")(w,s),w.prototype._update=function(x){var g,C;this._cache.add(x);for(var F=[];g=this._cache.get();)C=this._mode.encrypt(this,g),F.push(C);return v.concat(F)};var f=v.alloc(16,16);function k(){this.cache=v.allocUnsafe(0)}function I(x,g,C){var F=m[x.toLowerCase()];if(!F)throw new TypeError("invalid suite type");if("string"==typeof g&&(g=v.from(g)),g.length!==F.key/8)throw new TypeError("invalid key length "+g.length);if("string"==typeof C&&(C=v.from(C)),"GCM"!==F.mode&&C.length!==F.iv)throw new TypeError("invalid iv length "+C.length);return"stream"===F.type?new h(F.module,g,C):"auth"===F.type?new _(F.module,g,C):new w(F.module,g,C)}w.prototype._final=function(){var x=this._cache.flush();if(this._autopadding)return x=this._mode.encrypt(this,x),this._cipher.scrub(),x;if(!x.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},w.prototype.setAutoPadding=function(x){return this._autopadding=!!x,this},k.prototype.add=function(x){this.cache=v.concat([this.cache,x])},k.prototype.get=function(){if(this.cache.length>15){var x=this.cache.slice(0,16);return this.cache=this.cache.slice(16),x}return null},k.prototype.flush=function(){for(var x=16-this.cache.length,g=v.allocUnsafe(x),C=-1;++C<x;)g.writeUInt8(x,C);return v.concat([this.cache,g])},R.createCipheriv=I,R.createCipher=function(x,g){var C=m[x.toLowerCase()];if(!C)throw new TypeError("invalid suite type");var F=O(g,!1,C.key,C.iv);return I(x,F.key,F.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer,_=m.alloc(16,0);function v(s){var b=m.allocUnsafe(16);return b.writeUInt32BE(s[0]>>>0,0),b.writeUInt32BE(s[1]>>>0,4),b.writeUInt32BE(s[2]>>>0,8),b.writeUInt32BE(s[3]>>>0,12),b}function h(s){this.h=s,this.state=m.alloc(16,0),this.cache=m.allocUnsafe(0)}h.prototype.ghash=function(s){for(var b=-1;++b<s.length;)this.state[b]^=s[b];this._multiply()},h.prototype._multiply=function(){for(var s,b,O,w=[(s=this.h).readUInt32BE(0),s.readUInt32BE(4),s.readUInt32BE(8),s.readUInt32BE(12)],f=[0,0,0,0],k=-1;++k<128;){for(this.state[~~(k/8)]&1<<7-k%8&&(f[0]^=w[0],f[1]^=w[1],f[2]^=w[2],f[3]^=w[3]),O=!!(1&w[3]),b=3;b>0;b--)w[b]=w[b]>>>1|(1&w[b-1])<<31;w[0]=w[0]>>>1,O&&(w[0]=w[0]^225<<24)}this.state=v(f)},h.prototype.update=function(s){var b;for(this.cache=m.concat([this.cache,s]);this.cache.length>=16;)b=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(b)},h.prototype.final=function(s,b){return this.cache.length&&this.ghash(m.concat([this.cache,_],16)),this.ghash(v([0,s,0,b])),this.state},E.exports=h},{"safe-buffer":494}],195:[function(o,E,R){"use strict";E.exports=function(m){for(var _,v=m.length;v--;){if(255!==(_=m.readUInt8(v))){_++,m.writeUInt8(_,v);break}m.writeUInt8(0,v)}}},{}],196:[function(o,E,R){"use strict";var m=o("buffer-xor");R.encrypt=function(_,v){var h=m(v,_._prev);return _._prev=_._cipher.encryptBlock(h),_._prev},R.decrypt=function(_,v){var h=_._prev;_._prev=v;var s=_._cipher.decryptBlock(v);return m(s,h)}},{"buffer-xor":219}],197:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer,_=o("buffer-xor");function v(h,s,b){var O=s.length,w=_(s,h._cache);return h._cache=h._cache.slice(O),h._prev=m.concat([h._prev,b?s:w]),w}R.encrypt=function(h,s,b){for(var O,w=m.allocUnsafe(0);s.length;){if(0===h._cache.length&&(h._cache=h._cipher.encryptBlock(h._prev),h._prev=m.allocUnsafe(0)),!(h._cache.length<=s.length)){w=m.concat([w,v(h,s,b)]);break}w=m.concat([w,v(h,s.slice(0,O=h._cache.length),b)]),s=s.slice(O)}return w}},{"buffer-xor":219,"safe-buffer":494}],198:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer;function _(h,s,b){for(var O,w,f=-1,k=0;++f<8;)O=s&1<<7-f?128:0,k+=(128&(w=h._cipher.encryptBlock(h._prev)[0]^O))>>f%8,h._prev=v(h._prev,b?O:w);return k}function v(h,s){var b=h.length,O=-1,w=m.allocUnsafe(h.length);for(h=m.concat([h,m.from([s])]);++O<b;)w[O]=h[O]<<1|h[O+1]>>7;return w}R.encrypt=function(h,s,b){for(var O=s.length,w=m.allocUnsafe(O),f=-1;++f<O;)w[f]=_(h,s[f],b);return w}},{"safe-buffer":494}],199:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer;function _(v,h,s){var b=v._cipher.encryptBlock(v._prev)[0]^h;return v._prev=m.concat([v._prev.slice(1),m.from([s?h:b])]),b}R.encrypt=function(v,h,s){for(var b=h.length,O=m.allocUnsafe(b),w=-1;++w<b;)O[w]=_(v,h[w],s);return O}},{"safe-buffer":494}],200:[function(o,E,R){"use strict";var m=o("buffer-xor"),_=o("safe-buffer").Buffer,v=o("../incr32");function h(s){var b=s._cipher.encryptBlockRaw(s._prev);return v(s._prev),b}R.encrypt=function(s,b){var O=Math.ceil(b.length/16),w=s._cache.length;s._cache=_.concat([s._cache,_.allocUnsafe(16*O)]);for(var f=0;f<O;f++){var k=h(s),I=w+16*f;s._cache.writeUInt32BE(k[0],I+0),s._cache.writeUInt32BE(k[1],I+4),s._cache.writeUInt32BE(k[2],I+8),s._cache.writeUInt32BE(k[3],I+12)}var x=s._cache.slice(0,b.length);return s._cache=s._cache.slice(b.length),m(b,x)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(o,E,R){"use strict";R.encrypt=function(m,_){return m._cipher.encryptBlock(_)},R.decrypt=function(m,_){return m._cipher.decryptBlock(_)}},{}],202:[function(o,E,R){"use strict";var m={ECB:o("./ecb"),CBC:o("./cbc"),CFB:o("./cfb"),CFB8:o("./cfb8"),CFB1:o("./cfb1"),OFB:o("./ofb"),CTR:o("./ctr"),GCM:o("./ctr")},_=o("./list.json");for(var v in _)_[v].module=m[_[v].mode];E.exports=_},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(o,E,R){E.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(o,E,R){(function(m){(function(){"use strict";var _=o("buffer-xor");function v(h){return h._prev=h._cipher.encryptBlock(h._prev),h._prev}R.encrypt=function(h,s){for(;h._cache.length<s.length;)h._cache=m.concat([h._cache,v(h)]);var b=h._cache.slice(0,s.length);return h._cache=h._cache.slice(s.length),_(s,b)}}).call(this)}).call(this,o("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(o,E,R){"use strict";var m=o("./aes"),_=o("safe-buffer").Buffer,v=o("cipher-base");function h(s,b,O,w){v.call(this),this._cipher=new m.AES(b),this._prev=_.from(O),this._cache=_.allocUnsafe(0),this._secCache=_.allocUnsafe(0),this._decrypt=w,this._mode=s}o("inherits")(h,v),h.prototype._update=function(s){return this._mode.encrypt(this,s,this._decrypt)},h.prototype._final=function(){this._cipher.scrub()},E.exports=h},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(o,E,R){"use strict";var m=o("browserify-des"),_=o("browserify-aes/browser"),v=o("browserify-aes/modes"),h=o("browserify-des/modes"),s=o("evp_bytestokey");function b(w,f,k){if(w=w.toLowerCase(),v[w])return _.createCipheriv(w,f,k);if(h[w])return new m({key:f,iv:k,mode:w});throw new TypeError("invalid suite type")}function O(w,f,k){if(w=w.toLowerCase(),v[w])return _.createDecipheriv(w,f,k);if(h[w])return new m({key:f,iv:k,mode:w,decrypt:!0});throw new TypeError("invalid suite type")}R.createCipher=R.Cipher=function(w,f){var k,I;if(w=w.toLowerCase(),v[w])k=v[w].key,I=v[w].iv;else{if(!h[w])throw new TypeError("invalid suite type");k=8*h[w].key,I=h[w].iv}var x=s(f,!1,k,I);return b(w,x.key,x.iv)},R.createCipheriv=R.Cipheriv=b,R.createDecipher=R.Decipher=function(w,f){var k,I;if(w=w.toLowerCase(),v[w])k=v[w].key,I=v[w].iv;else{if(!h[w])throw new TypeError("invalid suite type");k=8*h[w].key,I=h[w].iv}var x=s(f,!1,k,I);return O(w,x.key,x.iv)},R.createDecipheriv=R.Decipheriv=O,R.listCiphers=R.getCiphers=function(){return Object.keys(h).concat(_.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(o,E,R){"use strict";var m=o("cipher-base"),_=o("des.js"),v=o("inherits"),h=o("safe-buffer").Buffer,s={"des-ede3-cbc":_.CBC.instantiate(_.EDE),"des-ede3":_.EDE,"des-ede-cbc":_.CBC.instantiate(_.EDE),"des-ede":_.EDE,"des-cbc":_.CBC.instantiate(_.DES),"des-ecb":_.DES};function b(O){m.call(this);var w,f=O.mode.toLowerCase(),k=s[f];w=O.decrypt?"decrypt":"encrypt";var I=O.key;h.isBuffer(I)||(I=h.from(I)),"des-ede"!==f&&"des-ede-cbc"!==f||(I=h.concat([I,I.slice(0,8)]));var x=O.iv;h.isBuffer(x)||(x=h.from(x)),this._des=k.create({key:I,iv:x,type:w})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],E.exports=b,v(b,m),b.prototype._update=function(O){return h.from(this._des.update(O))},b.prototype._final=function(){return h.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(o,E,R){"use strict";R["des-ecb"]={key:8,iv:0},R["des-cbc"]=R.des={key:8,iv:8},R["des-ede3-cbc"]=R.des3={key:24,iv:8},R["des-ede3"]={key:24,iv:0},R["des-ede-cbc"]={key:16,iv:8},R["des-ede"]={key:16,iv:0}},{}],209:[function(o,E,R){(function(m){(function(){"use strict";var _=o("bn.js"),v=o("randombytes");function h(b){var O,w=b.modulus.byteLength();do{O=new _(v(w))}while(O.cmp(b.modulus)>=0||!O.umod(b.prime1)||!O.umod(b.prime2));return O}function s(b,O){var ie,ee,w={blinder:(ee=h(ie=O)).toRed(_.mont(ie.modulus)).redPow(new _(ie.publicExponent)).fromRed(),unblinder:ee.invm(ie.modulus)},f=O.modulus.byteLength(),k=new _(b).mul(w.blinder).umod(O.modulus),I=k.toRed(_.mont(O.prime1)),x=k.toRed(_.mont(O.prime2)),g=O.coefficient,C=O.prime1,F=O.prime2,Y=I.redPow(O.exponent1).fromRed(),Q=x.redPow(O.exponent2).fromRed(),se=Y.isub(Q).imul(g).umod(C).imul(F);return Q.iadd(se).imul(w.unblinder).umod(O.modulus).toArrayLike(m,"be",f)}s.getr=h,E.exports=s}).call(this)}).call(this,o("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(o,E,R){"use strict";E.exports=o("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(o,E,R){E.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(o,E,R){E.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer,_=o("create-hash"),v=o("readable-stream"),h=o("inherits"),s=o("./sign"),b=o("./verify"),O=o("./algorithms.json");function w(x){v.Writable.call(this);var g=O[x];if(!g)throw new Error("Unknown message digest");this._hashType=g.hash,this._hash=_(g.hash),this._tag=g.id,this._signType=g.sign}function f(x){v.Writable.call(this);var g=O[x];if(!g)throw new Error("Unknown message digest");this._hash=_(g.hash),this._tag=g.id,this._signType=g.sign}function k(x){return new w(x)}function I(x){return new f(x)}Object.keys(O).forEach(function(x){O[x].id=m.from(O[x].id,"hex"),O[x.toLowerCase()]=O[x]}),h(w,v.Writable),w.prototype._write=function(x,g,C){this._hash.update(x),C()},w.prototype.update=function(x,g){return"string"==typeof x&&(x=m.from(x,g)),this._hash.update(x),this},w.prototype.sign=function(x,g){this.end();var C=this._hash.digest(),F=s(C,x,this._hashType,this._signType,this._tag);return g?F.toString(g):F},h(f,v.Writable),f.prototype._write=function(x,g,C){this._hash.update(x),C()},f.prototype.update=function(x,g){return"string"==typeof x&&(x=m.from(x,g)),this._hash.update(x),this},f.prototype.verify=function(x,g,C){"string"==typeof g&&(g=m.from(g,C)),this.end();var F=this._hash.digest();return b(g,F,x,this._signType,this._tag)},E.exports={Sign:k,Verify:I,createSign:k,createVerify:I}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer,_=o("create-hmac"),v=o("browserify-rsa"),h=o("elliptic").ec,s=o("bn.js"),b=o("parse-asn1"),O=o("./curves.json");function w(x,g,C,F){if((x=m.from(x.toArray())).length<g.byteLength()){var Y=m.alloc(g.byteLength()-x.length);x=m.concat([Y,x])}var Q=C.length,se=function(re,ne){re=(re=f(re,ne)).mod(ne);var _e=m.from(re.toArray());if(_e.length<ne.byteLength()){var be=m.alloc(ne.byteLength()-_e.length);_e=m.concat([be,_e])}return _e}(C,g),ie=m.alloc(Q);ie.fill(1);var ee=m.alloc(Q);return ee=_(F,ee).update(ie).update(m.from([0])).update(x).update(se).digest(),ie=_(F,ee).update(ie).digest(),{k:ee=_(F,ee).update(ie).update(m.from([1])).update(x).update(se).digest(),v:ie=_(F,ee).update(ie).digest()}}function f(x,g){var C=new s(x),F=(x.length<<3)-g.bitLength();return F>0&&C.ishrn(F),C}function k(x,g,C){var F,Y;do{for(F=m.alloc(0);8*F.length<x.bitLength();)g.v=_(C,g.k).update(g.v).digest(),F=m.concat([F,g.v]);Y=f(F,x),g.k=_(C,g.k).update(g.v).update(m.from([0])).digest(),g.v=_(C,g.k).update(g.v).digest()}while(-1!==Y.cmp(x));return Y}function I(x,g,C,F){return x.toRed(s.mont(C)).redPow(g).fromRed().mod(F)}E.exports=function(x,g,C,F,Y){var Q=b(g);if(Q.curve){if("ecdsa"!==F&&"ecdsa/rsa"!==F)throw new Error("wrong private key type");return function(re,ne){var _e=O[ne.curve.join(".")];if(!_e)throw new Error("unknown curve "+ne.curve.join("."));var be=new h(_e).keyFromPrivate(ne.privateKey).sign(re);return m.from(be.toDER())}(x,Q)}if("dsa"===Q.type){if("dsa"!==F)throw new Error("wrong private key type");return function(re,ne,_e){for(var be,oe=ne.params.priv_key,me=ne.params.p,we=ne.params.q,N=ne.params.g,G=new s(0),W=f(re,we).mod(we),z=!1,X=w(oe,we,re,_e);!1===z;)G=I(N,be=k(we,X,_e),me,we),0===(z=be.invm(we).imul(W.add(oe.mul(G))).mod(we)).cmpn(0)&&(z=!1,G=new s(0));return function(q,ye){q=q.toArray(),ye=ye.toArray(),128&q[0]&&(q=[0].concat(q)),128&ye[0]&&(ye=[0].concat(ye));var xe=[48,q.length+ye.length+4,2,q.length];return xe=xe.concat(q,[2,ye.length],ye),m.from(xe)}(G,z)}(x,Q,C)}if("rsa"!==F&&"ecdsa/rsa"!==F)throw new Error("wrong private key type");x=m.concat([Y,x]);for(var se=Q.modulus.byteLength(),ie=[0,1];x.length+ie.length+1<se;)ie.push(255);ie.push(0);for(var ee=-1;++ee<x.length;)ie.push(x[ee]);return v(ie,Q)},E.exports.getKey=w,E.exports.makeKey=k},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer,_=o("bn.js"),v=o("elliptic").ec,h=o("parse-asn1"),s=o("./curves.json");function b(O,w){if(O.cmpn(0)<=0)throw new Error("invalid sig");if(O.cmp(w)>=w)throw new Error("invalid sig")}E.exports=function(O,w,f,k,I){var x=h(f);if("ec"===x.type){if("ecdsa"!==k&&"ecdsa/rsa"!==k)throw new Error("wrong public key type");return function(ie,ee,re){var ne=s[re.data.algorithm.curve.join(".")];if(!ne)throw new Error("unknown curve "+re.data.algorithm.curve.join("."));return new v(ne).verify(ee,ie,re.data.subjectPrivateKey.data)}(O,w,x)}if("dsa"===x.type){if("dsa"!==k)throw new Error("wrong public key type");return function(ie,ee,re){var ne=re.data.p,_e=re.data.q,be=re.data.g,oe=re.data.pub_key,me=h.signature.decode(ie,"der"),we=me.s,N=me.r;b(we,_e),b(N,_e);var G=_.mont(ne),W=we.invm(_e);return 0===be.toRed(G).redPow(new _(ee).mul(W).mod(_e)).fromRed().mul(oe.toRed(G).redPow(N.mul(W).mod(_e)).fromRed()).mod(ne).mod(_e).cmp(N)}(O,w,x)}if("rsa"!==k&&"ecdsa/rsa"!==k)throw new Error("wrong public key type");w=m.concat([I,w]);for(var g=x.modulus.byteLength(),C=[1],F=0;w.length+C.length+2<g;)C.push(255),F++;C.push(0);for(var Y=-1;++Y<w.length;)C.push(w[Y]);C=m.from(C);var Q=_.mont(x.modulus);O=(O=new _(O).toRed(Q)).redPow(new _(x.publicExponent)),O=m.from(O.fromRed().toArray());var se=F<8?1:0;for(g=Math.min(O.length,C.length),O.length!==C.length&&(se=1),Y=-1;++Y<g;)se|=O[Y]^C[Y];return 0===se}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(o,E,R){},{}],217:[function(o,E,R){"use strict";var m=o("buffer"),_=m.Buffer;function v(s,b){for(var O in s)b[O]=s[O]}function h(s,b,O){return _(s,b,O)}_.from&&_.alloc&&_.allocUnsafe&&_.allocUnsafeSlow?E.exports=m:(v(m,R),R.Buffer=h),v(_,h),h.from=function(s,b,O){if("number"==typeof s)throw new TypeError("Argument must not be a number");return _(s,b,O)},h.alloc=function(s,b,O){if("number"!=typeof s)throw new TypeError("Argument must be a number");var w=_(s);return void 0!==b?"string"==typeof O?w.fill(b,O):w.fill(b):w.fill(0),w},h.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return _(s)},h.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return m.SlowBuffer(s)}},{buffer:220}],218:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer,_=m.isEncoding||function(x){switch((x=""+x)&&x.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function v(x){var g;switch(this.encoding=function(C){var F=function(Y){if(!Y)return"utf8";for(var Q;;)switch(Y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Y;default:if(Q)return;Y=(""+Y).toLowerCase(),Q=!0}}(C);if("string"!=typeof F&&(m.isEncoding===_||!_(C)))throw new Error("Unknown encoding: "+C);return F||C}(x),this.encoding){case"utf16le":this.text=b,this.end=O,g=4;break;case"utf8":this.fillLast=s,g=4;break;case"base64":this.text=w,this.end=f,g=3;break;default:return this.write=k,void(this.end=I)}this.lastNeed=0,this.lastTotal=0,this.lastChar=m.allocUnsafe(g)}function h(x){return x<=127?0:x>>5==6?2:x>>4==14?3:x>>3==30?4:x>>6==2?-1:-2}function s(x){var g=this.lastTotal-this.lastNeed,C=function(F,Y,Q){if(128!=(192&Y[0]))return F.lastNeed=0,"\ufffd";if(F.lastNeed>1&&Y.length>1){if(128!=(192&Y[1]))return F.lastNeed=1,"\ufffd";if(F.lastNeed>2&&Y.length>2&&128!=(192&Y[2]))return F.lastNeed=2,"\ufffd"}}(this,x);return void 0!==C?C:this.lastNeed<=x.length?(x.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(x.copy(this.lastChar,g,0,x.length),void(this.lastNeed-=x.length))}function b(x,g){if((x.length-g)%2==0){var C=x.toString("utf16le",g);if(C){var F=C.charCodeAt(C.length-1);if(F>=55296&&F<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",g,x.length-1)}function O(x){var g=x&&x.length?this.write(x):"";return this.lastNeed?g+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):g}function w(x,g){var C=(x.length-g)%3;return 0===C?x.toString("base64",g):(this.lastNeed=3-C,this.lastTotal=3,1===C?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",g,x.length-C))}function f(x){var g=x&&x.length?this.write(x):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function k(x){return x.toString(this.encoding)}function I(x){return x&&x.length?this.write(x):""}R.StringDecoder=v,v.prototype.write=function(x){if(0===x.length)return"";var g,C;if(this.lastNeed){if(void 0===(g=this.fillLast(x)))return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<x.length?g?g+this.text(x,C):this.text(x,C):g||""},v.prototype.end=function(x){var g=x&&x.length?this.write(x):"";return this.lastNeed?g+"\ufffd":g},v.prototype.text=function(x,g){var C=function(Y,Q,se){var ie=Q.length-1;if(ie<se)return 0;var ee=h(Q[ie]);return ee>=0?(ee>0&&(Y.lastNeed=ee-1),ee):--ie<se||-2===ee?0:(ee=h(Q[ie]))>=0?(ee>0&&(Y.lastNeed=ee-2),ee):--ie<se||-2===ee?0:(ee=h(Q[ie]))>=0?(ee>0&&(2===ee?ee=0:Y.lastNeed=ee-3),ee):0}(this,x,g);if(!this.lastNeed)return x.toString("utf8",g);this.lastTotal=C;var F=x.length-(C-this.lastNeed);return x.copy(this.lastChar,0,F),x.toString("utf8",g,F)},v.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length}},{"safe-buffer":217}],219:[function(o,E,R){(function(m){(function(){"use strict";E.exports=function(_,v){for(var h=Math.min(_.length,v.length),s=new m(h),b=0;b<h;++b)s[b]=_[b]^v[b];return s}}).call(this)}).call(this,o("buffer").Buffer)},{buffer:220}],220:[function(o,E,R){(function(m){(function(){"use strict";var _=o("base64-js"),v=o("ieee754");function h(ce){if(ce>2147483647)throw new RangeError('The value "'+ce+'" is invalid for option "size"');var de=new Uint8Array(ce);return de.__proto__=s.prototype,de}function s(ce,de,pe){if("number"==typeof ce){if("string"==typeof de)throw new TypeError('The "string" argument must be of type string. Received type number');return w(ce)}return b(ce,de,pe)}function b(ce,de,pe){if("string"==typeof ce)return function(tt,vt){if("string"==typeof vt&&""!==vt||(vt="utf8"),!s.isEncoding(vt))throw new TypeError("Unknown encoding: "+vt);var Xt=0|I(tt,vt),Nt=h(Xt),Qe=Nt.write(tt,vt);return Qe!==Xt&&(Nt=Nt.slice(0,Qe)),Nt}(ce,de);if(ArrayBuffer.isView(ce))return f(ce);if(null==ce)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ce);if(he(ce,ArrayBuffer)||ce&&he(ce.buffer,ArrayBuffer))return function(tt,vt,Xt){if(vt<0||tt.byteLength<vt)throw new RangeError('"offset" is outside of buffer bounds');if(tt.byteLength<vt+(Xt||0))throw new RangeError('"length" is outside of buffer bounds');var Nt;return(Nt=void 0===vt&&void 0===Xt?new Uint8Array(tt):void 0===Xt?new Uint8Array(tt,vt):new Uint8Array(tt,vt,Xt)).__proto__=s.prototype,Nt}(ce,de,pe);if("number"==typeof ce)throw new TypeError('The "value" argument must not be of type number. Received type number');var Be=ce.valueOf&&ce.valueOf();if(null!=Be&&Be!==ce)return s.from(Be,de,pe);var We=function(tt){if(s.isBuffer(tt)){var vt=0|k(tt.length),Xt=h(vt);return 0===Xt.length||tt.copy(Xt,0,0,vt),Xt}return void 0!==tt.length?"number"!=typeof tt.length||Ie(tt.length)?h(0):f(tt):"Buffer"===tt.type&&Array.isArray(tt.data)?f(tt.data):void 0}(ce);if(We)return We;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof ce[Symbol.toPrimitive])return s.from(ce[Symbol.toPrimitive]("string"),de,pe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ce)}function O(ce){if("number"!=typeof ce)throw new TypeError('"size" argument must be of type number');if(ce<0)throw new RangeError('The value "'+ce+'" is invalid for option "size"')}function w(ce){return O(ce),h(ce<0?0:0|k(ce))}function f(ce){for(var de=ce.length<0?0:0|k(ce.length),pe=h(de),Be=0;Be<de;Be+=1)pe[Be]=255&ce[Be];return pe}function k(ce){if(ce>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|ce}function I(ce,de){if(s.isBuffer(ce))return ce.length;if(ArrayBuffer.isView(ce)||he(ce,ArrayBuffer))return ce.byteLength;if("string"!=typeof ce)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ce);var pe=ce.length,Be=arguments.length>2&&!0===arguments[2];if(!Be&&0===pe)return 0;for(var We=!1;;)switch(de){case"ascii":case"latin1":case"binary":return pe;case"utf8":case"utf-8":return xe(ce).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*pe;case"hex":return pe>>>1;case"base64":return ge(ce).length;default:if(We)return Be?-1:xe(ce).length;de=(""+de).toLowerCase(),We=!0}}function x(ce,de,pe){var Be=!1;if((void 0===de||de<0)&&(de=0),de>this.length||((void 0===pe||pe>this.length)&&(pe=this.length),pe<=0)||(pe>>>=0)<=(de>>>=0))return"";for(ce||(ce="utf8");;)switch(ce){case"hex":return me(this,de,pe);case"utf8":case"utf-8":return _e(this,de,pe);case"ascii":return be(this,de,pe);case"latin1":case"binary":return oe(this,de,pe);case"base64":return ne(this,de,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return we(this,de,pe);default:if(Be)throw new TypeError("Unknown encoding: "+ce);ce=(ce+"").toLowerCase(),Be=!0}}function g(ce,de,pe){var Be=ce[de];ce[de]=ce[pe],ce[pe]=Be}function C(ce,de,pe,Be,We){if(0===ce.length)return-1;if("string"==typeof pe?(Be=pe,pe=0):pe>2147483647?pe=2147483647:pe<-2147483648&&(pe=-2147483648),Ie(pe=+pe)&&(pe=We?0:ce.length-1),pe<0&&(pe=ce.length+pe),pe>=ce.length){if(We)return-1;pe=ce.length-1}else if(pe<0){if(!We)return-1;pe=0}if("string"==typeof de&&(de=s.from(de,Be)),s.isBuffer(de))return 0===de.length?-1:F(ce,de,pe,Be,We);if("number"==typeof de)return de&=255,"function"==typeof Uint8Array.prototype.indexOf?We?Uint8Array.prototype.indexOf.call(ce,de,pe):Uint8Array.prototype.lastIndexOf.call(ce,de,pe):F(ce,[de],pe,Be,We);throw new TypeError("val must be string, number or Buffer")}function F(ce,de,pe,Be,We){var tt,vt=1,Xt=ce.length,Nt=de.length;if(void 0!==Be&&("ucs2"===(Be=String(Be).toLowerCase())||"ucs-2"===Be||"utf16le"===Be||"utf-16le"===Be)){if(ce.length<2||de.length<2)return-1;vt=2,Xt/=2,Nt/=2,pe/=2}function Qe(Mt,Ge){return 1===vt?Mt[Ge]:Mt.readUInt16BE(Ge*vt)}if(We){var Et=-1;for(tt=pe;tt<Xt;tt++)if(Qe(ce,tt)===Qe(de,-1===Et?0:tt-Et)){if(-1===Et&&(Et=tt),tt-Et+1===Nt)return Et*vt}else-1!==Et&&(tt-=tt-Et),Et=-1}else for(pe+Nt>Xt&&(pe=Xt-Nt),tt=pe;tt>=0;tt--){for(var Lt=!0,wt=0;wt<Nt;wt++)if(Qe(ce,tt+wt)!==Qe(de,wt)){Lt=!1;break}if(Lt)return tt}return-1}function Y(ce,de,pe,Be){pe=Number(pe)||0;var We=ce.length-pe;Be?(Be=Number(Be))>We&&(Be=We):Be=We;var tt=de.length;Be>tt/2&&(Be=tt/2);for(var vt=0;vt<Be;++vt){var Xt=parseInt(de.substr(2*vt,2),16);if(Ie(Xt))return vt;ce[pe+vt]=Xt}return vt}function Q(ce,de,pe,Be){return Ee(xe(de,ce.length-pe),ce,pe,Be)}function se(ce,de,pe,Be){return Ee(function(We){for(var tt=[],vt=0;vt<We.length;++vt)tt.push(255&We.charCodeAt(vt));return tt}(de),ce,pe,Be)}function ie(ce,de,pe,Be){return se(ce,de,pe,Be)}function ee(ce,de,pe,Be){return Ee(ge(de),ce,pe,Be)}function re(ce,de,pe,Be){return Ee(function(We,tt){for(var vt,Xt,Qe=[],Et=0;Et<We.length&&!((tt-=2)<0);++Et)Xt=(vt=We.charCodeAt(Et))>>8,Qe.push(vt%256),Qe.push(Xt);return Qe}(de,ce.length-pe),ce,pe,Be)}function ne(ce,de,pe){return _.fromByteArray(0===de&&pe===ce.length?ce:ce.slice(de,pe))}function _e(ce,de,pe){pe=Math.min(ce.length,pe);for(var Be=[],We=de;We<pe;){var tt,vt,Xt,Nt,Qe=ce[We],Et=null,Lt=Qe>239?4:Qe>223?3:Qe>191?2:1;if(We+Lt<=pe)switch(Lt){case 1:Qe<128&&(Et=Qe);break;case 2:128==(192&(tt=ce[We+1]))&&(Nt=(31&Qe)<<6|63&tt)>127&&(Et=Nt);break;case 3:vt=ce[We+2],128==(192&(tt=ce[We+1]))&&128==(192&vt)&&(Nt=(15&Qe)<<12|(63&tt)<<6|63&vt)>2047&&(Nt<55296||Nt>57343)&&(Et=Nt);break;case 4:vt=ce[We+2],Xt=ce[We+3],128==(192&(tt=ce[We+1]))&&128==(192&vt)&&128==(192&Xt)&&(Nt=(15&Qe)<<18|(63&tt)<<12|(63&vt)<<6|63&Xt)>65535&&Nt<1114112&&(Et=Nt)}null===Et?(Et=65533,Lt=1):Et>65535&&(Be.push((Et-=65536)>>>10&1023|55296),Et=56320|1023&Et),Be.push(Et),We+=Lt}return function(wt){var Mt=wt.length;if(Mt<=4096)return String.fromCharCode.apply(String,wt);for(var Ge="",ot=0;ot<Mt;)Ge+=String.fromCharCode.apply(String,wt.slice(ot,ot+=4096));return Ge}(Be)}function be(ce,de,pe){var Be="";pe=Math.min(ce.length,pe);for(var We=de;We<pe;++We)Be+=String.fromCharCode(127&ce[We]);return Be}function oe(ce,de,pe){var Be="";pe=Math.min(ce.length,pe);for(var We=de;We<pe;++We)Be+=String.fromCharCode(ce[We]);return Be}function me(ce,de,pe){var Be=ce.length;(!de||de<0)&&(de=0),(!pe||pe<0||pe>Be)&&(pe=Be);for(var We="",tt=de;tt<pe;++tt)We+=ye(ce[tt]);return We}function we(ce,de,pe){for(var Be=ce.slice(de,pe),We="",tt=0;tt<Be.length;tt+=2)We+=String.fromCharCode(Be[tt]+256*Be[tt+1]);return We}function N(ce,de,pe){if(ce%1!=0||ce<0)throw new RangeError("offset is not uint");if(ce+de>pe)throw new RangeError("Trying to access beyond buffer length")}function G(ce,de,pe,Be,We,tt){if(!s.isBuffer(ce))throw new TypeError('"buffer" argument must be a Buffer instance');if(de>We||de<tt)throw new RangeError('"value" argument is out of bounds');if(pe+Be>ce.length)throw new RangeError("Index out of range")}function W(ce,de,pe,Be,We,tt){if(pe+Be>ce.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("Index out of range")}function z(ce,de,pe,Be,We){return de=+de,pe>>>=0,We||W(ce,0,pe,4),v.write(ce,de,pe,Be,23,4),pe+4}function X(ce,de,pe,Be,We){return de=+de,pe>>>=0,We||W(ce,0,pe,8),v.write(ce,de,pe,Be,52,8),pe+8}R.Buffer=s,R.SlowBuffer=function(ce){return+ce!=ce&&(ce=0),s.alloc(+ce)},R.INSPECT_MAX_BYTES=50,R.kMaxLength=2147483647,(s.TYPED_ARRAY_SUPPORT=function(){try{var ce=new Uint8Array(1);return ce.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===ce.foo()}catch{return!1}}())||typeof console>"u"||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(ce,de,pe){return b(ce,de,pe)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(ce,de,pe){return We=de,tt=pe,O(Be=ce),Be<=0?h(Be):void 0!==We?"string"==typeof tt?h(Be).fill(We,tt):h(Be).fill(We):h(Be);var Be,We,tt},s.allocUnsafe=function(ce){return w(ce)},s.allocUnsafeSlow=function(ce){return w(ce)},s.isBuffer=function(ce){return null!=ce&&!0===ce._isBuffer&&ce!==s.prototype},s.compare=function(ce,de){if(he(ce,Uint8Array)&&(ce=s.from(ce,ce.offset,ce.byteLength)),he(de,Uint8Array)&&(de=s.from(de,de.offset,de.byteLength)),!s.isBuffer(ce)||!s.isBuffer(de))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ce===de)return 0;for(var pe=ce.length,Be=de.length,We=0,tt=Math.min(pe,Be);We<tt;++We)if(ce[We]!==de[We]){pe=ce[We],Be=de[We];break}return pe<Be?-1:Be<pe?1:0},s.isEncoding=function(ce){switch(String(ce).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(ce,de){if(!Array.isArray(ce))throw new TypeError('"list" argument must be an Array of Buffers');if(0===ce.length)return s.alloc(0);var pe;if(void 0===de)for(de=0,pe=0;pe<ce.length;++pe)de+=ce[pe].length;var Be=s.allocUnsafe(de),We=0;for(pe=0;pe<ce.length;++pe){var tt=ce[pe];if(he(tt,Uint8Array)&&(tt=s.from(tt)),!s.isBuffer(tt))throw new TypeError('"list" argument must be an Array of Buffers');tt.copy(Be,We),We+=tt.length}return Be},s.byteLength=I,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var ce=this.length;if(ce%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var de=0;de<ce;de+=2)g(this,de,de+1);return this},s.prototype.swap32=function(){var ce=this.length;if(ce%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var de=0;de<ce;de+=4)g(this,de,de+3),g(this,de+1,de+2);return this},s.prototype.swap64=function(){var ce=this.length;if(ce%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var de=0;de<ce;de+=8)g(this,de,de+7),g(this,de+1,de+6),g(this,de+2,de+5),g(this,de+3,de+4);return this},s.prototype.toString=function(){var ce=this.length;return 0===ce?"":0===arguments.length?_e(this,0,ce):x.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(ce){if(!s.isBuffer(ce))throw new TypeError("Argument must be a Buffer");return this===ce||0===s.compare(this,ce)},s.prototype.inspect=function(){var ce="",de=R.INSPECT_MAX_BYTES;return ce=this.toString("hex",0,de).replace(/(.{2})/g,"$1 ").trim(),this.length>de&&(ce+=" ... "),"<Buffer "+ce+">"},s.prototype.compare=function(ce,de,pe,Be,We){if(he(ce,Uint8Array)&&(ce=s.from(ce,ce.offset,ce.byteLength)),!s.isBuffer(ce))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ce);if(void 0===de&&(de=0),void 0===pe&&(pe=ce?ce.length:0),void 0===Be&&(Be=0),void 0===We&&(We=this.length),de<0||pe>ce.length||Be<0||We>this.length)throw new RangeError("out of range index");if(Be>=We&&de>=pe)return 0;if(Be>=We)return-1;if(de>=pe)return 1;if(this===ce)return 0;for(var tt=(We>>>=0)-(Be>>>=0),vt=(pe>>>=0)-(de>>>=0),Xt=Math.min(tt,vt),Nt=this.slice(Be,We),Qe=ce.slice(de,pe),Et=0;Et<Xt;++Et)if(Nt[Et]!==Qe[Et]){tt=Nt[Et],vt=Qe[Et];break}return tt<vt?-1:vt<tt?1:0},s.prototype.includes=function(ce,de,pe){return-1!==this.indexOf(ce,de,pe)},s.prototype.indexOf=function(ce,de,pe){return C(this,ce,de,pe,!0)},s.prototype.lastIndexOf=function(ce,de,pe){return C(this,ce,de,pe,!1)},s.prototype.write=function(ce,de,pe,Be){if(void 0===de)Be="utf8",pe=this.length,de=0;else if(void 0===pe&&"string"==typeof de)Be=de,pe=this.length,de=0;else{if(!isFinite(de))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");de>>>=0,isFinite(pe)?(pe>>>=0,void 0===Be&&(Be="utf8")):(Be=pe,pe=void 0)}var We=this.length-de;if((void 0===pe||pe>We)&&(pe=We),ce.length>0&&(pe<0||de<0)||de>this.length)throw new RangeError("Attempt to write outside buffer bounds");Be||(Be="utf8");for(var tt=!1;;)switch(Be){case"hex":return Y(this,ce,de,pe);case"utf8":case"utf-8":return Q(this,ce,de,pe);case"ascii":return se(this,ce,de,pe);case"latin1":case"binary":return ie(this,ce,de,pe);case"base64":return ee(this,ce,de,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,ce,de,pe);default:if(tt)throw new TypeError("Unknown encoding: "+Be);Be=(""+Be).toLowerCase(),tt=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(ce,de){var pe=this.length;(ce=~~ce)<0?(ce+=pe)<0&&(ce=0):ce>pe&&(ce=pe),(de=void 0===de?pe:~~de)<0?(de+=pe)<0&&(de=0):de>pe&&(de=pe),de<ce&&(de=ce);var Be=this.subarray(ce,de);return Be.__proto__=s.prototype,Be},s.prototype.readUIntLE=function(ce,de,pe){ce>>>=0,de>>>=0,pe||N(ce,de,this.length);for(var Be=this[ce],We=1,tt=0;++tt<de&&(We*=256);)Be+=this[ce+tt]*We;return Be},s.prototype.readUIntBE=function(ce,de,pe){ce>>>=0,de>>>=0,pe||N(ce,de,this.length);for(var Be=this[ce+--de],We=1;de>0&&(We*=256);)Be+=this[ce+--de]*We;return Be},s.prototype.readUInt8=function(ce,de){return ce>>>=0,de||N(ce,1,this.length),this[ce]},s.prototype.readUInt16LE=function(ce,de){return ce>>>=0,de||N(ce,2,this.length),this[ce]|this[ce+1]<<8},s.prototype.readUInt16BE=function(ce,de){return ce>>>=0,de||N(ce,2,this.length),this[ce]<<8|this[ce+1]},s.prototype.readUInt32LE=function(ce,de){return ce>>>=0,de||N(ce,4,this.length),(this[ce]|this[ce+1]<<8|this[ce+2]<<16)+16777216*this[ce+3]},s.prototype.readUInt32BE=function(ce,de){return ce>>>=0,de||N(ce,4,this.length),16777216*this[ce]+(this[ce+1]<<16|this[ce+2]<<8|this[ce+3])},s.prototype.readIntLE=function(ce,de,pe){ce>>>=0,de>>>=0,pe||N(ce,de,this.length);for(var Be=this[ce],We=1,tt=0;++tt<de&&(We*=256);)Be+=this[ce+tt]*We;return Be>=(We*=128)&&(Be-=Math.pow(2,8*de)),Be},s.prototype.readIntBE=function(ce,de,pe){ce>>>=0,de>>>=0,pe||N(ce,de,this.length);for(var Be=de,We=1,tt=this[ce+--Be];Be>0&&(We*=256);)tt+=this[ce+--Be]*We;return tt>=(We*=128)&&(tt-=Math.pow(2,8*de)),tt},s.prototype.readInt8=function(ce,de){return ce>>>=0,de||N(ce,1,this.length),128&this[ce]?-1*(255-this[ce]+1):this[ce]},s.prototype.readInt16LE=function(ce,de){ce>>>=0,de||N(ce,2,this.length);var pe=this[ce]|this[ce+1]<<8;return 32768&pe?4294901760|pe:pe},s.prototype.readInt16BE=function(ce,de){ce>>>=0,de||N(ce,2,this.length);var pe=this[ce+1]|this[ce]<<8;return 32768&pe?4294901760|pe:pe},s.prototype.readInt32LE=function(ce,de){return ce>>>=0,de||N(ce,4,this.length),this[ce]|this[ce+1]<<8|this[ce+2]<<16|this[ce+3]<<24},s.prototype.readInt32BE=function(ce,de){return ce>>>=0,de||N(ce,4,this.length),this[ce]<<24|this[ce+1]<<16|this[ce+2]<<8|this[ce+3]},s.prototype.readFloatLE=function(ce,de){return ce>>>=0,de||N(ce,4,this.length),v.read(this,ce,!0,23,4)},s.prototype.readFloatBE=function(ce,de){return ce>>>=0,de||N(ce,4,this.length),v.read(this,ce,!1,23,4)},s.prototype.readDoubleLE=function(ce,de){return ce>>>=0,de||N(ce,8,this.length),v.read(this,ce,!0,52,8)},s.prototype.readDoubleBE=function(ce,de){return ce>>>=0,de||N(ce,8,this.length),v.read(this,ce,!1,52,8)},s.prototype.writeUIntLE=function(ce,de,pe,Be){ce=+ce,de>>>=0,pe>>>=0,Be||G(this,ce,de,pe,Math.pow(2,8*pe)-1,0);var We=1,tt=0;for(this[de]=255&ce;++tt<pe&&(We*=256);)this[de+tt]=ce/We&255;return de+pe},s.prototype.writeUIntBE=function(ce,de,pe,Be){ce=+ce,de>>>=0,pe>>>=0,Be||G(this,ce,de,pe,Math.pow(2,8*pe)-1,0);var We=pe-1,tt=1;for(this[de+We]=255&ce;--We>=0&&(tt*=256);)this[de+We]=ce/tt&255;return de+pe},s.prototype.writeUInt8=function(ce,de,pe){return ce=+ce,de>>>=0,pe||G(this,ce,de,1,255,0),this[de]=255&ce,de+1},s.prototype.writeUInt16LE=function(ce,de,pe){return ce=+ce,de>>>=0,pe||G(this,ce,de,2,65535,0),this[de]=255&ce,this[de+1]=ce>>>8,de+2},s.prototype.writeUInt16BE=function(ce,de,pe){return ce=+ce,de>>>=0,pe||G(this,ce,de,2,65535,0),this[de]=ce>>>8,this[de+1]=255&ce,de+2},s.prototype.writeUInt32LE=function(ce,de,pe){return ce=+ce,de>>>=0,pe||G(this,ce,de,4,4294967295,0),this[de+3]=ce>>>24,this[de+2]=ce>>>16,this[de+1]=ce>>>8,this[de]=255&ce,de+4},s.prototype.writeUInt32BE=function(ce,de,pe){return ce=+ce,de>>>=0,pe||G(this,ce,de,4,4294967295,0),this[de]=ce>>>24,this[de+1]=ce>>>16,this[de+2]=ce>>>8,this[de+3]=255&ce,de+4},s.prototype.writeIntLE=function(ce,de,pe,Be){if(ce=+ce,de>>>=0,!Be){var We=Math.pow(2,8*pe-1);G(this,ce,de,pe,We-1,-We)}var tt=0,vt=1,Xt=0;for(this[de]=255&ce;++tt<pe&&(vt*=256);)ce<0&&0===Xt&&0!==this[de+tt-1]&&(Xt=1),this[de+tt]=(ce/vt|0)-Xt&255;return de+pe},s.prototype.writeIntBE=function(ce,de,pe,Be){if(ce=+ce,de>>>=0,!Be){var We=Math.pow(2,8*pe-1);G(this,ce,de,pe,We-1,-We)}var tt=pe-1,vt=1,Xt=0;for(this[de+tt]=255&ce;--tt>=0&&(vt*=256);)ce<0&&0===Xt&&0!==this[de+tt+1]&&(Xt=1),this[de+tt]=(ce/vt|0)-Xt&255;return de+pe},s.prototype.writeInt8=function(ce,de,pe){return ce=+ce,de>>>=0,pe||G(this,ce,de,1,127,-128),ce<0&&(ce=255+ce+1),this[de]=255&ce,de+1},s.prototype.writeInt16LE=function(ce,de,pe){return ce=+ce,de>>>=0,pe||G(this,ce,de,2,32767,-32768),this[de]=255&ce,this[de+1]=ce>>>8,de+2},s.prototype.writeInt16BE=function(ce,de,pe){return ce=+ce,de>>>=0,pe||G(this,ce,de,2,32767,-32768),this[de]=ce>>>8,this[de+1]=255&ce,de+2},s.prototype.writeInt32LE=function(ce,de,pe){return ce=+ce,de>>>=0,pe||G(this,ce,de,4,2147483647,-2147483648),this[de]=255&ce,this[de+1]=ce>>>8,this[de+2]=ce>>>16,this[de+3]=ce>>>24,de+4},s.prototype.writeInt32BE=function(ce,de,pe){return ce=+ce,de>>>=0,pe||G(this,ce,de,4,2147483647,-2147483648),ce<0&&(ce=4294967295+ce+1),this[de]=ce>>>24,this[de+1]=ce>>>16,this[de+2]=ce>>>8,this[de+3]=255&ce,de+4},s.prototype.writeFloatLE=function(ce,de,pe){return z(this,ce,de,!0,pe)},s.prototype.writeFloatBE=function(ce,de,pe){return z(this,ce,de,!1,pe)},s.prototype.writeDoubleLE=function(ce,de,pe){return X(this,ce,de,!0,pe)},s.prototype.writeDoubleBE=function(ce,de,pe){return X(this,ce,de,!1,pe)},s.prototype.copy=function(ce,de,pe,Be){if(!s.isBuffer(ce))throw new TypeError("argument should be a Buffer");if(pe||(pe=0),Be||0===Be||(Be=this.length),de>=ce.length&&(de=ce.length),de||(de=0),Be>0&&Be<pe&&(Be=pe),Be===pe||0===ce.length||0===this.length)return 0;if(de<0)throw new RangeError("targetStart out of bounds");if(pe<0||pe>=this.length)throw new RangeError("Index out of range");if(Be<0)throw new RangeError("sourceEnd out of bounds");Be>this.length&&(Be=this.length),ce.length-de<Be-pe&&(Be=ce.length-de+pe);var We=Be-pe;if(this===ce&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(de,pe,Be);else if(this===ce&&pe<de&&de<Be)for(var tt=We-1;tt>=0;--tt)ce[tt+de]=this[tt+pe];else Uint8Array.prototype.set.call(ce,this.subarray(pe,Be),de);return We},s.prototype.fill=function(ce,de,pe,Be){if("string"==typeof ce){if("string"==typeof de?(Be=de,de=0,pe=this.length):"string"==typeof pe&&(Be=pe,pe=this.length),void 0!==Be&&"string"!=typeof Be)throw new TypeError("encoding must be a string");if("string"==typeof Be&&!s.isEncoding(Be))throw new TypeError("Unknown encoding: "+Be);if(1===ce.length){var We=ce.charCodeAt(0);("utf8"===Be&&We<128||"latin1"===Be)&&(ce=We)}}else"number"==typeof ce&&(ce&=255);if(de<0||this.length<de||this.length<pe)throw new RangeError("Out of range index");if(pe<=de)return this;var tt;if(de>>>=0,pe=void 0===pe?this.length:pe>>>0,ce||(ce=0),"number"==typeof ce)for(tt=de;tt<pe;++tt)this[tt]=ce;else{var vt=s.isBuffer(ce)?ce:s.from(ce,Be),Xt=vt.length;if(0===Xt)throw new TypeError('The value "'+ce+'" is invalid for argument "value"');for(tt=0;tt<pe-de;++tt)this[tt+de]=vt[tt%Xt]}return this};var q=/[^+/0-9A-Za-z-_]/g;function ye(ce){return ce<16?"0"+ce.toString(16):ce.toString(16)}function xe(ce,de){var pe;de=de||1/0;for(var Be=ce.length,We=null,tt=[],vt=0;vt<Be;++vt){if((pe=ce.charCodeAt(vt))>55295&&pe<57344){if(!We){if(pe>56319){(de-=3)>-1&&tt.push(239,191,189);continue}if(vt+1===Be){(de-=3)>-1&&tt.push(239,191,189);continue}We=pe;continue}if(pe<56320){(de-=3)>-1&&tt.push(239,191,189),We=pe;continue}pe=65536+(We-55296<<10|pe-56320)}else We&&(de-=3)>-1&&tt.push(239,191,189);if(We=null,pe<128){if((de-=1)<0)break;tt.push(pe)}else if(pe<2048){if((de-=2)<0)break;tt.push(pe>>6|192,63&pe|128)}else if(pe<65536){if((de-=3)<0)break;tt.push(pe>>12|224,pe>>6&63|128,63&pe|128)}else{if(!(pe<1114112))throw new Error("Invalid code point");if((de-=4)<0)break;tt.push(pe>>18|240,pe>>12&63|128,pe>>6&63|128,63&pe|128)}}return tt}function ge(ce){return _.toByteArray(function(de){if((de=(de=de.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;de.length%4!=0;)de+="=";return de}(ce))}function Ee(ce,de,pe,Be){for(var We=0;We<Be&&!(We+pe>=de.length||We>=ce.length);++We)de[We+pe]=ce[We];return We}function he(ce,de){return ce instanceof de||null!=ce&&null!=ce.constructor&&null!=ce.constructor.name&&ce.constructor.name===de.name}function Ie(ce){return ce!=ce}}).call(this)}).call(this,o("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer,_=o("stream").Transform,v=o("string_decoder").StringDecoder;function h(s){_.call(this),this.hashMode="string"==typeof s,this.hashMode?this[s]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}o("inherits")(h,_),h.prototype.update=function(s,b,O){"string"==typeof s&&(s=m.from(s,b));var w=this._update(s);return this.hashMode?this:(O&&(w=this._toString(w,O)),w)},h.prototype.setAutoPadding=function(){},h.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},h.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},h.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},h.prototype._transform=function(s,b,O){var w;try{this.hashMode?this._update(s):this.push(this._update(s))}catch(f){w=f}finally{O(w)}},h.prototype._flush=function(s){var b;try{this.push(this.__final())}catch(O){b=O}s(b)},h.prototype._finalOrDigest=function(s){var b=this.__final()||m.alloc(0);return s&&(b=this._toString(b,s,!0)),b},h.prototype._toString=function(s,b,O){if(this._decoder||(this._decoder=new v(b),this._encoding=b),this._encoding!==b)throw new Error("can't switch encodings");var w=this._decoder.write(s);return O&&(w+=this._decoder.end()),w},E.exports=h},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(o,E,R){"use strict";var m=o("../internals/is-callable"),_=o("../internals/try-to-string"),v=TypeError;E.exports=function(h){if(m(h))return h;throw new v(_(h)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(o,E,R){"use strict";var m=o("../internals/is-constructor"),_=o("../internals/try-to-string"),v=TypeError;E.exports=function(h){if(m(h))return h;throw new v(_(h)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(o,E,R){"use strict";var m=o("../internals/is-callable"),_=String,v=TypeError;E.exports=function(h){if("object"==typeof h||m(h))return h;throw new v("Can't set "+_(h)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(o,E,R){"use strict";var m=o("../internals/well-known-symbol"),_=o("../internals/object-create"),v=o("../internals/object-define-property").f,h=m("unscopables"),s=Array.prototype;void 0===s[h]&&v(s,h,{configurable:!0,value:_(null)}),E.exports=function(b){s[h][b]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(o,E,R){"use strict";var m=o("../internals/object-is-prototype-of"),_=TypeError;E.exports=function(v,h){if(m(h,v))return v;throw new _("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(o,E,R){"use strict";var m=o("../internals/is-object"),_=String,v=TypeError;E.exports=function(h){if(m(h))return h;throw new v(_(h)+" is not an object")}},{"../internals/is-object":289}],228:[function(o,E,R){"use strict";var m=o("../internals/to-indexed-object"),_=o("../internals/to-absolute-index"),v=o("../internals/length-of-array-like"),h=function(s){return function(b,O,w){var f,k=m(b),I=v(k),x=_(w,I);if(s&&O!=O){for(;I>x;)if((f=k[x++])!=f)return!0}else for(;I>x;x++)if((s||x in k)&&k[x]===O)return s||x||0;return!s&&-1}};E.exports={includes:h(!0),indexOf:h(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(o,E,R){"use strict";var m=o("../internals/function-bind-context"),_=o("../internals/function-uncurry-this"),v=o("../internals/indexed-object"),h=o("../internals/to-object"),s=o("../internals/length-of-array-like"),b=o("../internals/array-species-create"),O=_([].push),w=function(f){var k=1===f,I=2===f,x=3===f,g=4===f,C=6===f,F=7===f,Y=5===f||C;return function(Q,se,ie,ee){for(var re,ne,_e=h(Q),be=v(_e),oe=m(se,ie),me=s(be),we=0,N=ee||b,G=k?N(Q,me):I||F?N(Q,0):void 0;me>we;we++)if((Y||we in be)&&(ne=oe(re=be[we],we,_e),f))if(k)G[we]=ne;else if(ne)switch(f){case 3:return!0;case 5:return re;case 6:return we;case 2:O(G,re)}else switch(f){case 4:return!1;case 7:O(G,re)}return C?-1:x||g?g:G}};E.exports={forEach:w(0),map:w(1),filter:w(2),some:w(3),every:w(4),find:w(5),findIndex:w(6),filterReject:w(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(o,E,R){"use strict";var m=o("../internals/to-absolute-index"),_=o("../internals/length-of-array-like"),v=o("../internals/create-property"),h=Array,s=Math.max;E.exports=function(b,O,w){for(var f=_(b),k=m(O,f),I=m(void 0===w?f:w,f),x=h(s(I-k,0)),g=0;k<I;k++,g++)v(x,g,b[k]);return x.length=g,x}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this");E.exports=m([].slice)},{"../internals/function-uncurry-this":268}],232:[function(o,E,R){"use strict";var m=o("../internals/is-array"),_=o("../internals/is-constructor"),v=o("../internals/is-object"),h=o("../internals/well-known-symbol")("species"),s=Array;E.exports=function(b){var O;return m(b)&&(_(O=b.constructor)&&(O===s||m(O.prototype))||v(O)&&null===(O=O[h]))&&(O=void 0),void 0===O?s:O}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(o,E,R){"use strict";var m=o("../internals/array-species-constructor");E.exports=function(_,v){return new(m(_))(0===v?0:v)}},{"../internals/array-species-constructor":232}],234:[function(o,E,R){"use strict";var m=o("../internals/well-known-symbol")("iterator"),_=!1;try{var v=0,h={next:function(){return{done:!!v++}},return:function(){_=!0}};h[m]=function(){return this},Array.from(h,function(){throw 2})}catch{}E.exports=function(s,b){try{if(!b&&!_)return!1}catch{return!1}var O=!1;try{var w={};w[m]=function(){return{next:function(){return{done:O=!0}}}},s(w)}catch{}return O}},{"../internals/well-known-symbol":357}],235:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this"),_=m({}.toString),v=m("".slice);E.exports=function(h){return v(_(h),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(o,E,R){"use strict";var m=o("../internals/to-string-tag-support"),_=o("../internals/is-callable"),v=o("../internals/classof-raw"),h=o("../internals/well-known-symbol")("toStringTag"),s=Object,b="Arguments"===v(function(){return arguments}());E.exports=m?v:function(O){var w,f,k;return void 0===O?"Undefined":null===O?"Null":"string"==typeof(f=function(I,x){try{return I[x]}catch{}}(w=s(O),h))?f:b?v(w):"Object"===(k=v(w))&&_(w.callee)?"Arguments":k}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(o,E,R){"use strict";var m=o("../internals/has-own-property"),_=o("../internals/own-keys"),v=o("../internals/object-get-own-property-descriptor"),h=o("../internals/object-define-property");E.exports=function(s,b,O){for(var w=_(b),f=h.f,k=v.f,I=0;I<w.length;I++){var x=w[I];m(s,x)||O&&m(O,x)||f(s,x,k(b,x))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(o,E,R){"use strict";var m=o("../internals/well-known-symbol")("match");E.exports=function(_){var v=/./;try{"/./"[_](v)}catch{try{return v[m]=!1,"/./"[_](v)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(o,E,R){"use strict";var m=o("../internals/fails");E.exports=!m(function(){function _(){}return _.prototype.constructor=null,Object.getPrototypeOf(new _)!==_.prototype})},{"../internals/fails":260}],240:[function(o,E,R){"use strict";E.exports=function(m,_){return{value:m,done:_}}},{}],241:[function(o,E,R){"use strict";var m=o("../internals/descriptors"),_=o("../internals/object-define-property"),v=o("../internals/create-property-descriptor");E.exports=m?function(h,s,b){return _.f(h,s,v(1,b))}:function(h,s,b){return h[s]=b,h}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(o,E,R){"use strict";E.exports=function(m,_){return{enumerable:!(1&m),configurable:!(2&m),writable:!(4&m),value:_}}},{}],243:[function(o,E,R){"use strict";var m=o("../internals/to-property-key"),_=o("../internals/object-define-property"),v=o("../internals/create-property-descriptor");E.exports=function(h,s,b){var O=m(s);O in h?_.f(h,O,v(0,b)):h[O]=b}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(o,E,R){"use strict";var m=o("../internals/make-built-in"),_=o("../internals/object-define-property");E.exports=function(v,h,s){return s.get&&m(s.get,h,{getter:!0}),s.set&&m(s.set,h,{setter:!0}),_.f(v,h,s)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(o,E,R){"use strict";var m=o("../internals/is-callable"),_=o("../internals/object-define-property"),v=o("../internals/make-built-in"),h=o("../internals/define-global-property");E.exports=function(s,b,O,w){w||(w={});var f=w.enumerable,k=void 0!==w.name?w.name:b;if(m(O)&&v(O,k,w),w.global)f?s[b]=O:h(b,O);else{try{w.unsafe?s[b]&&(f=!0):delete s[b]}catch{}f?s[b]=O:_.f(s,b,{value:O,enumerable:!1,configurable:!w.nonConfigurable,writable:!w.nonWritable})}return s}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(o,E,R){"use strict";var m=o("../internals/global"),_=Object.defineProperty;E.exports=function(v,h){try{_(m,v,{value:h,configurable:!0,writable:!0})}catch{m[v]=h}return h}},{"../internals/global":274}],247:[function(o,E,R){"use strict";var m=o("../internals/fails");E.exports=!m(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":260}],248:[function(o,E,R){"use strict";var m="object"==typeof document&&document.all;E.exports={all:m,IS_HTMLDDA:void 0===m&&void 0!==m}},{}],249:[function(o,E,R){"use strict";var m=o("../internals/global"),_=o("../internals/is-object"),v=m.document,h=_(v)&&_(v.createElement);E.exports=function(s){return h?v.createElement(s):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(o,E,R){"use strict";var m=o("../internals/engine-is-deno"),_=o("../internals/engine-is-node");E.exports=!m&&!_&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(o,E,R){"use strict";E.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],252:[function(o,E,R){"use strict";var m=o("../internals/engine-user-agent");E.exports=/ipad|iphone|ipod/i.test(m)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(o,E,R){"use strict";var m=o("../internals/engine-user-agent");E.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(m)},{"../internals/engine-user-agent":256}],254:[function(o,E,R){"use strict";var m=o("../internals/global"),_=o("../internals/classof-raw");E.exports="process"===_(m.process)},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(o,E,R){"use strict";var m=o("../internals/engine-user-agent");E.exports=/web0s(?!.*chrome)/i.test(m)},{"../internals/engine-user-agent":256}],256:[function(o,E,R){"use strict";E.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(o,E,R){"use strict";var m,_,v=o("../internals/global"),h=o("../internals/engine-user-agent"),s=v.process,b=v.Deno,O=s&&s.versions||b&&b.version,w=O&&O.v8;w&&(_=(m=w.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!_&&h&&(!(m=h.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=h.match(/Chrome\/(\d+)/))&&(_=+m[1]),E.exports=_},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(o,E,R){"use strict";E.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(o,E,R){"use strict";var m=o("../internals/global"),_=o("../internals/object-get-own-property-descriptor").f,v=o("../internals/create-non-enumerable-property"),h=o("../internals/define-built-in"),s=o("../internals/define-global-property"),b=o("../internals/copy-constructor-properties"),O=o("../internals/is-forced");E.exports=function(w,f){var k,I,x,g,C,F=w.target,Y=w.global,Q=w.stat;if(k=Y?m:Q?m[F]||s(F,{}):(m[F]||{}).prototype)for(I in f){if(g=f[I],x=w.dontCallGetSet?(C=_(k,I))&&C.value:k[I],!O(Y?I:F+(Q?".":"#")+I,w.forced)&&void 0!==x){if(typeof g==typeof x)continue;b(g,x)}(w.sham||x&&x.sham)&&v(g,"sham",!0),h(k,I,g,w)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(o,E,R){"use strict";E.exports=function(m){try{return!!m()}catch{return!0}}},{}],261:[function(o,E,R){"use strict";var m=o("../internals/function-bind-native"),_=Function.prototype,v=_.apply,h=_.call;E.exports="object"==typeof Reflect&&Reflect.apply||(m?h.bind(v):function(){return h.apply(v,arguments)})},{"../internals/function-bind-native":263}],262:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this-clause"),_=o("../internals/a-callable"),v=o("../internals/function-bind-native"),h=m(m.bind);E.exports=function(s,b){return _(s),void 0===b?s:v?h(s,b):function(){return s.apply(b,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(o,E,R){"use strict";var m=o("../internals/fails");E.exports=!m(function(){var _=function(){}.bind();return"function"!=typeof _||_.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(o,E,R){"use strict";var m=o("../internals/function-bind-native"),_=Function.prototype.call;E.exports=m?_.bind(_):function(){return _.apply(_,arguments)}},{"../internals/function-bind-native":263}],265:[function(o,E,R){"use strict";var m=o("../internals/descriptors"),_=o("../internals/has-own-property"),v=Function.prototype,h=m&&Object.getOwnPropertyDescriptor,s=_(v,"name"),b=s&&"something"===function(){}.name,O=s&&(!m||m&&h(v,"name").configurable);E.exports={EXISTS:s,PROPER:b,CONFIGURABLE:O}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this"),_=o("../internals/a-callable");E.exports=function(v,h,s){try{return m(_(Object.getOwnPropertyDescriptor(v,h)[s]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(o,E,R){"use strict";var m=o("../internals/classof-raw"),_=o("../internals/function-uncurry-this");E.exports=function(v){if("Function"===m(v))return _(v)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(o,E,R){"use strict";var m=o("../internals/function-bind-native"),_=Function.prototype,v=_.call,h=m&&_.bind.bind(v,v);E.exports=m?h:function(s){return function(){return v.apply(s,arguments)}}},{"../internals/function-bind-native":263}],269:[function(o,E,R){"use strict";var m=o("../internals/global"),_=o("../internals/is-callable");E.exports=function(h,s){return arguments.length<2?function(h){return _(h)?h:void 0}(m[h]):m[h]&&m[h][s]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(o,E,R){"use strict";var m=o("../internals/classof"),_=o("../internals/get-method"),v=o("../internals/is-null-or-undefined"),h=o("../internals/iterators"),s=o("../internals/well-known-symbol")("iterator");E.exports=function(b){if(!v(b))return _(b,s)||_(b,"@@iterator")||h[m(b)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(o,E,R){"use strict";var m=o("../internals/function-call"),_=o("../internals/a-callable"),v=o("../internals/an-object"),h=o("../internals/try-to-string"),s=o("../internals/get-iterator-method"),b=TypeError;E.exports=function(O,w){var f=arguments.length<2?s(O):w;if(_(f))return v(m(f,O));throw new b(h(O)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this"),_=o("../internals/is-array"),v=o("../internals/is-callable"),h=o("../internals/classof-raw"),s=o("../internals/to-string"),b=m([].push);E.exports=function(O){if(v(O))return O;if(_(O)){for(var w=O.length,f=[],k=0;k<w;k++){var I=O[k];"string"==typeof I?b(f,I):"number"!=typeof I&&"Number"!==h(I)&&"String"!==h(I)||b(f,s(I))}var x=f.length,g=!0;return function(C,F){if(g)return g=!1,F;if(_(this))return F;for(var Y=0;Y<x;Y++)if(f[Y]===C)return F}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(o,E,R){"use strict";var m=o("../internals/a-callable"),_=o("../internals/is-null-or-undefined");E.exports=function(v,h){var s=v[h];return _(s)?void 0:m(s)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(o,E,R){(function(m){(function(){"use strict";var _=function(v){return v&&v.Math===Math&&v};E.exports=_("object"==typeof globalThis&&globalThis)||_("object"==typeof window&&window)||_("object"==typeof self&&self)||_("object"==typeof m&&m)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this"),_=o("../internals/to-object"),v=m({}.hasOwnProperty);E.exports=Object.hasOwn||function(h,s){return v(_(h),s)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(o,E,R){"use strict";E.exports={}},{}],277:[function(o,E,R){"use strict";E.exports=function(m,_){try{1===arguments.length?console.error(m):console.error(m,_)}catch{}}},{}],278:[function(o,E,R){"use strict";var m=o("../internals/get-built-in");E.exports=m("document","documentElement")},{"../internals/get-built-in":269}],279:[function(o,E,R){"use strict";var m=o("../internals/descriptors"),_=o("../internals/fails"),v=o("../internals/document-create-element");E.exports=!m&&!_(function(){return 7!==Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this"),_=o("../internals/fails"),v=o("../internals/classof-raw"),h=Object,s=m("".split);E.exports=_(function(){return!h("z").propertyIsEnumerable(0)})?function(b){return"String"===v(b)?s(b,""):h(b)}:h},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this"),_=o("../internals/is-callable"),v=o("../internals/shared-store"),h=m(Function.toString);_(v.inspectSource)||(v.inspectSource=function(s){return h(s)}),E.exports=v.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(o,E,R){"use strict";var m,_,v,h=o("../internals/weak-map-basic-detection"),s=o("../internals/global"),b=o("../internals/is-object"),O=o("../internals/create-non-enumerable-property"),w=o("../internals/has-own-property"),f=o("../internals/shared-store"),k=o("../internals/shared-key"),I=o("../internals/hidden-keys"),x=s.TypeError;if(h||f.state){var C=f.state||(f.state=new(0,s.WeakMap));C.get=C.get,C.has=C.has,C.set=C.set,m=function(Y,Q){if(C.has(Y))throw new x("Object already initialized");return Q.facade=Y,C.set(Y,Q),Q},_=function(Y){return C.get(Y)||{}},v=function(Y){return C.has(Y)}}else{var F=k("state");I[F]=!0,m=function(Y,Q){if(w(Y,F))throw new x("Object already initialized");return Q.facade=Y,O(Y,F,Q),Q},_=function(Y){return w(Y,F)?Y[F]:{}},v=function(Y){return w(Y,F)}}E.exports={set:m,get:_,has:v,enforce:function(Y){return v(Y)?_(Y):m(Y,{})},getterFor:function(Y){return function(Q){var se;if(!b(Q)||(se=_(Q)).type!==Y)throw new x("Incompatible receiver, "+Y+" required");return se}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(o,E,R){"use strict";var m=o("../internals/well-known-symbol"),_=o("../internals/iterators"),v=m("iterator"),h=Array.prototype;E.exports=function(s){return void 0!==s&&(_.Array===s||h[v]===s)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(o,E,R){"use strict";var m=o("../internals/classof-raw");E.exports=Array.isArray||function(_){return"Array"===m(_)}},{"../internals/classof-raw":235}],285:[function(o,E,R){"use strict";var m=o("../internals/document-all"),_=m.all;E.exports=m.IS_HTMLDDA?function(v){return"function"==typeof v||v===_}:function(v){return"function"==typeof v}},{"../internals/document-all":248}],286:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this"),_=o("../internals/fails"),v=o("../internals/is-callable"),h=o("../internals/classof"),s=o("../internals/get-built-in"),b=o("../internals/inspect-source"),O=function(){},w=[],f=s("Reflect","construct"),k=/^\s*(?:class|function)\b/,I=m(k.exec),x=!k.test(O),g=function(F){if(!v(F))return!1;try{return f(O,w,F),!0}catch{return!1}},C=function(F){if(!v(F))return!1;switch(h(F)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return x||!!I(k,b(F))}catch{return!0}};C.sham=!0,E.exports=!f||_(function(){var F;return g(g.call)||!g(Object)||!g(function(){F=!0})||F})?C:g},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(o,E,R){"use strict";var m=o("../internals/fails"),_=o("../internals/is-callable"),v=/#|\.prototype\./,h=function(f,k){var I=b[s(f)];return I===w||I!==O&&(_(k)?m(k):!!k)},s=h.normalize=function(f){return String(f).replace(v,".").toLowerCase()},b=h.data={},O=h.NATIVE="N",w=h.POLYFILL="P";E.exports=h},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(o,E,R){"use strict";E.exports=function(m){return null==m}},{}],289:[function(o,E,R){"use strict";var m=o("../internals/is-callable"),_=o("../internals/document-all"),v=_.all;E.exports=_.IS_HTMLDDA?function(h){return"object"==typeof h?null!==h:m(h)||h===v}:function(h){return"object"==typeof h?null!==h:m(h)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(o,E,R){"use strict";E.exports=!1},{}],291:[function(o,E,R){"use strict";var m=o("../internals/is-object"),_=o("../internals/classof-raw"),v=o("../internals/well-known-symbol")("match");E.exports=function(h){var s;return m(h)&&(void 0!==(s=h[v])?!!s:"RegExp"===_(h))}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(o,E,R){"use strict";var m=o("../internals/get-built-in"),_=o("../internals/is-callable"),v=o("../internals/object-is-prototype-of"),h=o("../internals/use-symbol-as-uid"),s=Object;E.exports=h?function(b){return"symbol"==typeof b}:function(b){var O=m("Symbol");return _(O)&&v(O.prototype,s(b))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(o,E,R){"use strict";var m=o("../internals/function-bind-context"),_=o("../internals/function-call"),v=o("../internals/an-object"),h=o("../internals/try-to-string"),s=o("../internals/is-array-iterator-method"),b=o("../internals/length-of-array-like"),O=o("../internals/object-is-prototype-of"),w=o("../internals/get-iterator"),f=o("../internals/get-iterator-method"),k=o("../internals/iterator-close"),I=TypeError,x=function(C,F){this.stopped=C,this.result=F},g=x.prototype;E.exports=function(C,F,Y){var Q,se,ie,ee,re,ne,_e,oe=!(!Y||!Y.AS_ENTRIES),me=!(!Y||!Y.IS_RECORD),we=!(!Y||!Y.IS_ITERATOR),N=!(!Y||!Y.INTERRUPTED),G=m(F,Y&&Y.that),W=function(X){return Q&&k(Q,"normal",X),new x(!0,X)},z=function(X){return oe?(v(X),N?G(X[0],X[1],W):G(X[0],X[1])):N?G(X,W):G(X)};if(me)Q=C.iterator;else if(we)Q=C;else{if(!(se=f(C)))throw new I(h(C)+" is not iterable");if(s(se)){for(ie=0,ee=b(C);ee>ie;ie++)if((re=z(C[ie]))&&O(g,re))return re;return new x(!1)}Q=w(C,se)}for(ne=me?C.next:Q.next;!(_e=_(ne,Q)).done;){try{re=z(_e.value)}catch(X){k(Q,"throw",X)}if("object"==typeof re&&re&&O(g,re))return re}return new x(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(o,E,R){"use strict";var m=o("../internals/function-call"),_=o("../internals/an-object"),v=o("../internals/get-method");E.exports=function(h,s,b){var O,w;_(h);try{if(!(O=v(h,"return"))){if("throw"===s)throw b;return b}O=m(O,h)}catch(f){w=!0,O=f}if("throw"===s)throw b;if(w)throw O;return _(O),b}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(o,E,R){"use strict";var m=o("../internals/iterators-core").IteratorPrototype,_=o("../internals/object-create"),v=o("../internals/create-property-descriptor"),h=o("../internals/set-to-string-tag"),s=o("../internals/iterators"),b=function(){return this};E.exports=function(O,w,f,k){var I=w+" Iterator";return O.prototype=_(m,{next:v(+!k,f)}),h(O,I,!1,!0),s[I]=b,O}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/function-call"),v=o("../internals/is-pure"),h=o("../internals/function-name"),s=o("../internals/is-callable"),b=o("../internals/iterator-create-constructor"),O=o("../internals/object-get-prototype-of"),w=o("../internals/object-set-prototype-of"),f=o("../internals/set-to-string-tag"),k=o("../internals/create-non-enumerable-property"),I=o("../internals/define-built-in"),x=o("../internals/well-known-symbol"),g=o("../internals/iterators"),C=o("../internals/iterators-core"),F=h.PROPER,Y=h.CONFIGURABLE,Q=C.IteratorPrototype,se=C.BUGGY_SAFARI_ITERATORS,ie=x("iterator"),ee=function(){return this};E.exports=function(re,ne,_e,be,oe,me,we){b(_e,ne,be);var N,G,W,z=function(he){if(he===oe&&ge)return ge;if(!se&&he&&he in ye)return ye[he];switch(he){case"keys":case"values":case"entries":return function(){return new _e(this,he)}}return function(){return new _e(this)}},X=ne+" Iterator",q=!1,ye=re.prototype,xe=ye[ie]||ye["@@iterator"]||oe&&ye[oe],ge=!se&&xe||z(oe),Ee="Array"===ne&&ye.entries||xe;if(Ee&&(N=O(Ee.call(new re)))!==Object.prototype&&N.next&&(v||O(N)===Q||(w?w(N,Q):s(N[ie])||I(N,ie,ee)),f(N,X,!0,!0),v&&(g[X]=ee)),F&&"values"===oe&&xe&&"values"!==xe.name&&(!v&&Y?k(ye,"name","values"):(q=!0,ge=function(){return _(xe,this)})),oe)if(G={values:z("values"),keys:me?ge:z("keys"),entries:z("entries")},we)for(W in G)(se||q||!(W in ye))&&I(ye,W,G[W]);else m({target:ne,proto:!0,forced:se||q},G);return v&&!we||ye[ie]===ge||I(ye,ie,ge,{name:oe}),g[ne]=ge,G}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(o,E,R){"use strict";var m,_,v,h=o("../internals/fails"),s=o("../internals/is-callable"),b=o("../internals/is-object"),O=o("../internals/object-create"),w=o("../internals/object-get-prototype-of"),f=o("../internals/define-built-in"),k=o("../internals/well-known-symbol"),I=o("../internals/is-pure"),x=k("iterator"),g=!1;[].keys&&("next"in(v=[].keys())?(_=w(w(v)))!==Object.prototype&&(m=_):g=!0),!b(m)||h(function(){var C={};return m[x].call(C)!==C})?m={}:I&&(m=O(m)),s(m[x])||f(m,x,function(){return this}),E.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:g}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(o,E,R){arguments[4][276][0].apply(R,arguments)},{dup:276}],299:[function(o,E,R){"use strict";var m=o("../internals/to-length");E.exports=function(_){return m(_.length)}},{"../internals/to-length":343}],300:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this"),_=o("../internals/fails"),v=o("../internals/is-callable"),h=o("../internals/has-own-property"),s=o("../internals/descriptors"),b=o("../internals/function-name").CONFIGURABLE,O=o("../internals/inspect-source"),w=o("../internals/internal-state"),f=w.enforce,k=w.get,I=String,x=Object.defineProperty,g=m("".slice),C=m("".replace),F=m([].join),Y=s&&!_(function(){return 8!==x(function(){},"length",{value:8}).length}),Q=String(String).split("String"),se=E.exports=function(ie,ee,re){"Symbol("===g(I(ee),0,7)&&(ee="["+C(I(ee),/^Symbol\(([^)]*)\)/,"$1")+"]"),re&&re.getter&&(ee="get "+ee),re&&re.setter&&(ee="set "+ee),(!h(ie,"name")||b&&ie.name!==ee)&&(s?x(ie,"name",{value:ee,configurable:!0}):ie.name=ee),Y&&re&&h(re,"arity")&&ie.length!==re.arity&&x(ie,"length",{value:re.arity});try{re&&h(re,"constructor")&&re.constructor?s&&x(ie,"prototype",{writable:!1}):ie.prototype&&(ie.prototype=void 0)}catch{}var ne=f(ie);return h(ne,"source")||(ne.source=F(Q,"string"==typeof ee?ee:"")),ie};Function.prototype.toString=se(function(){return v(this)&&k(this).source||O(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(o,E,R){"use strict";var m=Math.ceil,_=Math.floor;E.exports=Math.trunc||function(v){var h=+v;return(h>0?_:m)(h)}},{}],302:[function(o,E,R){"use strict";var m,_,v,h,s,b=o("../internals/global"),O=o("../internals/function-bind-context"),w=o("../internals/object-get-own-property-descriptor").f,f=o("../internals/task").set,k=o("../internals/queue"),I=o("../internals/engine-is-ios"),x=o("../internals/engine-is-ios-pebble"),g=o("../internals/engine-is-webos-webkit"),C=o("../internals/engine-is-node"),F=b.MutationObserver||b.WebKitMutationObserver,Y=b.document,Q=b.process,se=b.Promise,ie=w(b,"queueMicrotask"),ee=ie&&ie.value;if(!ee){var re=new k,ne=function(){var _e,be;for(C&&(_e=Q.domain)&&_e.exit();be=re.get();)try{be()}catch(oe){throw re.head&&m(),oe}_e&&_e.enter()};I||C||g||!F||!Y?!x&&se&&se.resolve?((h=se.resolve(void 0)).constructor=se,s=O(h.then,h),m=function(){s(ne)}):C?m=function(){Q.nextTick(ne)}:(f=O(f,b),m=function(){f(ne)}):(_=!0,v=Y.createTextNode(""),new F(ne).observe(v,{characterData:!0}),m=function(){v.data=_=!_}),ee=function(_e){re.head||m(),re.add(_e)}}E.exports=ee},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(o,E,R){"use strict";var m=o("../internals/a-callable"),_=TypeError,v=function(h){var s,b;this.promise=new h(function(O,w){if(void 0!==s||void 0!==b)throw new _("Bad Promise constructor");s=O,b=w}),this.resolve=m(s),this.reject=m(b)};E.exports.f=function(h){return new v(h)}},{"../internals/a-callable":222}],304:[function(o,E,R){"use strict";var m=o("../internals/is-regexp"),_=TypeError;E.exports=function(v){if(m(v))throw new _("The method doesn't accept regular expressions");return v}},{"../internals/is-regexp":291}],305:[function(o,E,R){"use strict";var m=o("../internals/descriptors"),_=o("../internals/function-uncurry-this"),v=o("../internals/function-call"),h=o("../internals/fails"),s=o("../internals/object-keys"),b=o("../internals/object-get-own-property-symbols"),O=o("../internals/object-property-is-enumerable"),w=o("../internals/to-object"),f=o("../internals/indexed-object"),k=Object.assign,I=Object.defineProperty,x=_([].concat);E.exports=!k||h(function(){if(m&&1!==k({b:1},k(I({},"a",{enumerable:!0,get:function(){I(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var g={},C={},F=Symbol("assign detection");return g[F]=7,"abcdefghijklmnopqrst".split("").forEach(function(Y){C[Y]=Y}),7!==k({},g)[F]||"abcdefghijklmnopqrst"!==s(k({},C)).join("")})?function(g,C){for(var F=w(g),Y=arguments.length,Q=1,se=b.f,ie=O.f;Y>Q;)for(var ee,re=f(arguments[Q++]),ne=se?x(s(re),se(re)):s(re),_e=ne.length,be=0;_e>be;)ee=ne[be++],m&&!v(ie,re,ee)||(F[ee]=re[ee]);return F}:k},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(o,E,R){"use strict";var m,_=o("../internals/an-object"),v=o("../internals/object-define-properties"),h=o("../internals/enum-bug-keys"),s=o("../internals/hidden-keys"),b=o("../internals/html"),O=o("../internals/document-create-element"),f=o("../internals/shared-key")("IE_PROTO"),k=function(){},I=function(C){return"<script>"+C+"<\/script>"},x=function(C){C.write(I("")),C.close();var F=C.parentWindow.Object;return C=null,F},g=function(){try{m=new ActiveXObject("htmlfile")}catch{}var C,F;g=typeof document<"u"?document.domain&&m?x(m):((F=O("iframe")).style.display="none",b.appendChild(F),F.src="javascript:",(C=F.contentWindow.document).open(),C.write(I("document.F=Object")),C.close(),C.F):x(m);for(var Y=h.length;Y--;)delete g.prototype[h[Y]];return g()};s[f]=!0,E.exports=Object.create||function(C,F){var Y;return null!==C?(k.prototype=_(C),Y=new k,k.prototype=null,Y[f]=C):Y=g(),void 0===F?Y:v.f(Y,F)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(o,E,R){"use strict";var m=o("../internals/descriptors"),_=o("../internals/v8-prototype-define-bug"),v=o("../internals/object-define-property"),h=o("../internals/an-object"),s=o("../internals/to-indexed-object"),b=o("../internals/object-keys");R.f=m&&!_?Object.defineProperties:function(O,w){h(O);for(var f,k=s(w),I=b(w),x=I.length,g=0;x>g;)v.f(O,f=I[g++],k[f]);return O}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(o,E,R){"use strict";var m=o("../internals/descriptors"),_=o("../internals/ie8-dom-define"),v=o("../internals/v8-prototype-define-bug"),h=o("../internals/an-object"),s=o("../internals/to-property-key"),b=TypeError,O=Object.defineProperty,w=Object.getOwnPropertyDescriptor;R.f=m?v?function(f,k,I){if(h(f),k=s(k),h(I),"function"==typeof f&&"prototype"===k&&"value"in I&&"writable"in I&&!I.writable){var x=w(f,k);x&&x.writable&&(f[k]=I.value,I={configurable:"configurable"in I?I.configurable:x.configurable,enumerable:"enumerable"in I?I.enumerable:x.enumerable,writable:!1})}return O(f,k,I)}:O:function(f,k,I){if(h(f),k=s(k),h(I),_)try{return O(f,k,I)}catch{}if("get"in I||"set"in I)throw new b("Accessors not supported");return"value"in I&&(f[k]=I.value),f}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(o,E,R){"use strict";var m=o("../internals/descriptors"),_=o("../internals/function-call"),v=o("../internals/object-property-is-enumerable"),h=o("../internals/create-property-descriptor"),s=o("../internals/to-indexed-object"),b=o("../internals/to-property-key"),O=o("../internals/has-own-property"),w=o("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;R.f=m?f:function(k,I){if(k=s(k),I=b(I),w)try{return f(k,I)}catch{}if(O(k,I))return h(!_(v.f,k,I),k[I])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(o,E,R){"use strict";var m=o("../internals/classof-raw"),_=o("../internals/to-indexed-object"),v=o("../internals/object-get-own-property-names").f,h=o("../internals/array-slice-simple"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];E.exports.f=function(b){return s&&"Window"===m(b)?function(O){try{return v(O)}catch{return h(s)}}(b):v(_(b))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(o,E,R){"use strict";var m=o("../internals/object-keys-internal"),_=o("../internals/enum-bug-keys").concat("length","prototype");R.f=Object.getOwnPropertyNames||function(v){return m(v,_)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(o,E,R){"use strict";R.f=Object.getOwnPropertySymbols},{}],313:[function(o,E,R){"use strict";var m=o("../internals/has-own-property"),_=o("../internals/is-callable"),v=o("../internals/to-object"),h=o("../internals/shared-key"),s=o("../internals/correct-prototype-getter"),b=h("IE_PROTO"),O=Object,w=O.prototype;E.exports=s?O.getPrototypeOf:function(f){var k=v(f);if(m(k,b))return k[b];var I=k.constructor;return _(I)&&k instanceof I?I.prototype:k instanceof O?w:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this");E.exports=m({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this"),_=o("../internals/has-own-property"),v=o("../internals/to-indexed-object"),h=o("../internals/array-includes").indexOf,s=o("../internals/hidden-keys"),b=m([].push);E.exports=function(O,w){var f,k=v(O),I=0,x=[];for(f in k)!_(s,f)&&_(k,f)&&b(x,f);for(;w.length>I;)_(k,f=w[I++])&&(~h(x,f)||b(x,f));return x}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(o,E,R){"use strict";var m=o("../internals/object-keys-internal"),_=o("../internals/enum-bug-keys");E.exports=Object.keys||function(v){return m(v,_)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(o,E,R){"use strict";var m={}.propertyIsEnumerable,_=Object.getOwnPropertyDescriptor,v=_&&!m.call({1:2},1);R.f=v?function(h){var s=_(this,h);return!!s&&s.enumerable}:m},{}],318:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this-accessor"),_=o("../internals/an-object"),v=o("../internals/a-possible-prototype");E.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h,s=!1,b={};try{(h=m(Object.prototype,"__proto__","set"))(b,[]),s=b instanceof Array}catch{}return function(O,w){return _(O),v(w),s?h(O,w):O.__proto__=w,O}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(o,E,R){"use strict";var m=o("../internals/descriptors"),_=o("../internals/fails"),v=o("../internals/function-uncurry-this"),h=o("../internals/object-get-prototype-of"),s=o("../internals/object-keys"),b=o("../internals/to-indexed-object"),O=v(o("../internals/object-property-is-enumerable").f),w=v([].push),f=m&&_(function(){var I=Object.create(null);return I[2]=2,!O(I,2)}),k=function(I){return function(x){for(var g,C=b(x),F=s(C),Y=f&&null===h(C),Q=F.length,se=0,ie=[];Q>se;)g=F[se++],m&&!(Y?g in C:O(C,g))||w(ie,I?[g,C[g]]:C[g]);return ie}};E.exports={entries:k(!0),values:k(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(o,E,R){"use strict";var m=o("../internals/function-call"),_=o("../internals/is-callable"),v=o("../internals/is-object"),h=TypeError;E.exports=function(s,b){var O,w;if("string"===b&&_(O=s.toString)&&!v(w=m(O,s))||_(O=s.valueOf)&&!v(w=m(O,s))||"string"!==b&&_(O=s.toString)&&!v(w=m(O,s)))return w;throw new h("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(o,E,R){"use strict";var m=o("../internals/get-built-in"),_=o("../internals/function-uncurry-this"),v=o("../internals/object-get-own-property-names"),h=o("../internals/object-get-own-property-symbols"),s=o("../internals/an-object"),b=_([].concat);E.exports=m("Reflect","ownKeys")||function(O){var w=v.f(s(O)),f=h.f;return f?b(w,f(O)):w}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(o,E,R){"use strict";var m=o("../internals/global");E.exports=m},{"../internals/global":274}],323:[function(o,E,R){"use strict";E.exports=function(m){try{return{error:!1,value:m()}}catch(_){return{error:!0,value:_}}}},{}],324:[function(o,E,R){"use strict";var m=o("../internals/global"),_=o("../internals/promise-native-constructor"),v=o("../internals/is-callable"),h=o("../internals/is-forced"),s=o("../internals/inspect-source"),b=o("../internals/well-known-symbol"),O=o("../internals/engine-is-browser"),w=o("../internals/engine-is-deno"),f=o("../internals/is-pure"),k=o("../internals/engine-v8-version"),I=_&&_.prototype,x=b("species"),g=!1,C=v(m.PromiseRejectionEvent),F=h("Promise",function(){var Y=s(_),Q=Y!==String(_);if(!Q&&66===k||f&&(!I.catch||!I.finally))return!0;if(!k||k<51||!/native code/.test(Y)){var se=new _(function(ee){ee(1)}),ie=function(ee){ee(function(){},function(){})};if((se.constructor={})[x]=ie,!(g=se.then(function(){})instanceof ie))return!0}return!Q&&(O||w)&&!C});E.exports={CONSTRUCTOR:F,REJECTION_EVENT:C,SUBCLASSING:g}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(o,E,R){"use strict";var m=o("../internals/global");E.exports=m.Promise},{"../internals/global":274}],326:[function(o,E,R){"use strict";var m=o("../internals/an-object"),_=o("../internals/is-object"),v=o("../internals/new-promise-capability");E.exports=function(h,s){if(m(h),_(s)&&s.constructor===h)return s;var b=v.f(h);return(0,b.resolve)(s),b.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(o,E,R){"use strict";var m=o("../internals/promise-native-constructor"),_=o("../internals/check-correctness-of-iteration"),v=o("../internals/promise-constructor-detection").CONSTRUCTOR;E.exports=v||!_(function(h){m.all(h).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(o,E,R){"use strict";var m=function(){this.head=null,this.tail=null};m.prototype={add:function(_){var v={item:_,next:null},h=this.tail;h?h.next=v:this.head=v,this.tail=v},get:function(){var _=this.head;if(_)return null===(this.head=_.next)&&(this.tail=null),_.item}},E.exports=m},{}],329:[function(o,E,R){"use strict";var m=o("../internals/is-null-or-undefined"),_=TypeError;E.exports=function(v){if(m(v))throw new _("Can't call method on "+v);return v}},{"../internals/is-null-or-undefined":288}],330:[function(o,E,R){"use strict";var m=o("../internals/get-built-in"),_=o("../internals/define-built-in-accessor"),v=o("../internals/well-known-symbol"),h=o("../internals/descriptors"),s=v("species");E.exports=function(b){var O=m(b);h&&O&&!O[s]&&_(O,s,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(o,E,R){"use strict";var m=o("../internals/object-define-property").f,_=o("../internals/has-own-property"),v=o("../internals/well-known-symbol")("toStringTag");E.exports=function(h,s,b){h&&!b&&(h=h.prototype),h&&!_(h,v)&&m(h,v,{configurable:!0,value:s})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(o,E,R){"use strict";var m=o("../internals/shared"),_=o("../internals/uid"),v=m("keys");E.exports=function(h){return v[h]||(v[h]=_(h))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(o,E,R){"use strict";var m=o("../internals/global"),_=o("../internals/define-global-property"),v=m["__core-js_shared__"]||_("__core-js_shared__",{});E.exports=v},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(o,E,R){"use strict";var m=o("../internals/is-pure"),_=o("../internals/shared-store");(E.exports=function(v,h){return _[v]||(_[v]=void 0!==h?h:{})})("versions",[]).push({version:"3.33.0",mode:m?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(o,E,R){"use strict";var m=o("../internals/an-object"),_=o("../internals/a-constructor"),v=o("../internals/is-null-or-undefined"),h=o("../internals/well-known-symbol")("species");E.exports=function(s,b){var O,w=m(s).constructor;return void 0===w||v(O=m(w)[h])?b:_(O)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(o,E,R){"use strict";var m=o("../internals/engine-v8-version"),_=o("../internals/fails"),v=o("../internals/global").String;E.exports=!!Object.getOwnPropertySymbols&&!_(function(){var h=Symbol("symbol detection");return!v(h)||!(Object(h)instanceof Symbol)||!Symbol.sham&&m&&m<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(o,E,R){"use strict";var m=o("../internals/function-call"),_=o("../internals/get-built-in"),v=o("../internals/well-known-symbol"),h=o("../internals/define-built-in");E.exports=function(){var s=_("Symbol"),b=s&&s.prototype,O=b&&b.valueOf,w=v("toPrimitive");b&&!b[w]&&h(b,w,function(f){return m(O,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(o,E,R){"use strict";var m=o("../internals/symbol-constructor-detection");E.exports=m&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(o,E,R){"use strict";var m,_,v,h,s=o("../internals/global"),b=o("../internals/function-apply"),O=o("../internals/function-bind-context"),w=o("../internals/is-callable"),f=o("../internals/has-own-property"),k=o("../internals/fails"),I=o("../internals/html"),x=o("../internals/array-slice"),g=o("../internals/document-create-element"),C=o("../internals/validate-arguments-length"),F=o("../internals/engine-is-ios"),Y=o("../internals/engine-is-node"),Q=s.setImmediate,se=s.clearImmediate,ie=s.process,ee=s.Dispatch,re=s.Function,ne=s.MessageChannel,_e=s.String,be=0,oe={};k(function(){m=s.location});var me=function(W){if(f(oe,W)){var z=oe[W];delete oe[W],z()}},we=function(W){return function(){me(W)}},N=function(W){me(W.data)},G=function(W){s.postMessage(_e(W),m.protocol+"//"+m.host)};Q&&se||(Q=function(W){C(arguments.length,1);var z=w(W)?W:re(W),X=x(arguments,1);return oe[++be]=function(){b(z,void 0,X)},_(be),be},se=function(W){delete oe[W]},Y?_=function(W){ie.nextTick(we(W))}:ee&&ee.now?_=function(W){ee.now(we(W))}:ne&&!F?(h=(v=new ne).port2,v.port1.onmessage=N,_=O(h.postMessage,h)):s.addEventListener&&w(s.postMessage)&&!s.importScripts&&m&&"file:"!==m.protocol&&!k(G)?(_=G,s.addEventListener("message",N,!1)):_="onreadystatechange"in g("script")?function(W){I.appendChild(g("script")).onreadystatechange=function(){I.removeChild(this),me(W)}}:function(W){setTimeout(we(W),0)}),E.exports={set:Q,clear:se}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(o,E,R){"use strict";var m=o("../internals/to-integer-or-infinity"),_=Math.max,v=Math.min;E.exports=function(h,s){var b=m(h);return b<0?_(b+s,0):v(b,s)}},{"../internals/to-integer-or-infinity":342}],341:[function(o,E,R){"use strict";var m=o("../internals/indexed-object"),_=o("../internals/require-object-coercible");E.exports=function(v){return m(_(v))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(o,E,R){"use strict";var m=o("../internals/math-trunc");E.exports=function(_){var v=+_;return v!=v||0===v?0:m(v)}},{"../internals/math-trunc":301}],343:[function(o,E,R){"use strict";var m=o("../internals/to-integer-or-infinity"),_=Math.min;E.exports=function(v){return v>0?_(m(v),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(o,E,R){"use strict";var m=o("../internals/require-object-coercible"),_=Object;E.exports=function(v){return _(m(v))}},{"../internals/require-object-coercible":329}],345:[function(o,E,R){"use strict";var m=o("../internals/function-call"),_=o("../internals/is-object"),v=o("../internals/is-symbol"),h=o("../internals/get-method"),s=o("../internals/ordinary-to-primitive"),b=o("../internals/well-known-symbol"),O=TypeError,w=b("toPrimitive");E.exports=function(f,k){if(!_(f)||v(f))return f;var I,x=h(f,w);if(x){if(void 0===k&&(k="default"),I=m(x,f,k),!_(I)||v(I))return I;throw new O("Can't convert object to primitive value")}return void 0===k&&(k="number"),s(f,k)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(o,E,R){"use strict";var m=o("../internals/to-primitive"),_=o("../internals/is-symbol");E.exports=function(v){var h=m(v,"string");return _(h)?h:h+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(o,E,R){"use strict";var m={};m[o("../internals/well-known-symbol")("toStringTag")]="z",E.exports="[object z]"===String(m)},{"../internals/well-known-symbol":357}],348:[function(o,E,R){"use strict";var m=o("../internals/classof"),_=String;E.exports=function(v){if("Symbol"===m(v))throw new TypeError("Cannot convert a Symbol value to a string");return _(v)}},{"../internals/classof":236}],349:[function(o,E,R){"use strict";var m=String;E.exports=function(_){try{return m(_)}catch{return"Object"}}},{}],350:[function(o,E,R){"use strict";var m=o("../internals/function-uncurry-this"),_=0,v=Math.random(),h=m(1..toString);E.exports=function(s){return"Symbol("+(void 0===s?"":s)+")_"+h(++_+v,36)}},{"../internals/function-uncurry-this":268}],351:[function(o,E,R){"use strict";var m=o("../internals/symbol-constructor-detection");E.exports=m&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":336}],352:[function(o,E,R){"use strict";var m=o("../internals/descriptors"),_=o("../internals/fails");E.exports=m&&_(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(o,E,R){"use strict";var m=TypeError;E.exports=function(_,v){if(_<v)throw new m("Not enough arguments");return _}},{}],354:[function(o,E,R){"use strict";var m=o("../internals/global"),_=o("../internals/is-callable"),v=m.WeakMap;E.exports=_(v)&&/native code/.test(String(v))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(o,E,R){"use strict";var m=o("../internals/path"),_=o("../internals/has-own-property"),v=o("../internals/well-known-symbol-wrapped"),h=o("../internals/object-define-property").f;E.exports=function(s){var b=m.Symbol||(m.Symbol={});_(b,s)||h(b,s,{value:v.f(s)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(o,E,R){"use strict";var m=o("../internals/well-known-symbol");R.f=m},{"../internals/well-known-symbol":357}],357:[function(o,E,R){"use strict";var m=o("../internals/global"),_=o("../internals/shared"),v=o("../internals/has-own-property"),h=o("../internals/uid"),s=o("../internals/symbol-constructor-detection"),b=o("../internals/use-symbol-as-uid"),O=m.Symbol,w=_("wks"),f=b?O.for||O:O&&O.withoutSetter||h;E.exports=function(k){return v(w,k)||(w[k]=s&&v(O,k)?O[k]:f("Symbol."+k)),w[k]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/array-iteration").findIndex,v=o("../internals/add-to-unscopables"),h=!0;"findIndex"in[]&&Array(1).findIndex(function(){h=!1}),m({target:"Array",proto:!0,forced:h},{findIndex:function(s){return _(this,s,arguments.length>1?arguments[1]:void 0)}}),v("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/array-iteration").find,v=o("../internals/add-to-unscopables"),h=!0;"find"in[]&&Array(1).find(function(){h=!1}),m({target:"Array",proto:!0,forced:h},{find:function(s){return _(this,s,arguments.length>1?arguments[1]:void 0)}}),v("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/array-includes").includes,v=o("../internals/fails"),h=o("../internals/add-to-unscopables");m({target:"Array",proto:!0,forced:v(function(){return!Array(1).includes()})},{includes:function(s){return _(this,s,arguments.length>1?arguments[1]:void 0)}}),h("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(o,E,R){"use strict";var m=o("../internals/to-indexed-object"),_=o("../internals/add-to-unscopables"),v=o("../internals/iterators"),h=o("../internals/internal-state"),s=o("../internals/object-define-property").f,b=o("../internals/iterator-define"),O=o("../internals/create-iter-result-object"),w=o("../internals/is-pure"),f=o("../internals/descriptors"),k=h.set,I=h.getterFor("Array Iterator");E.exports=b(Array,"Array",function(g,C){k(this,{type:"Array Iterator",target:m(g),index:0,kind:C})},function(){var g=I(this),C=g.target,F=g.kind,Y=g.index++;if(!C||Y>=C.length)return g.target=void 0,O(void 0,!0);switch(F){case"keys":return O(Y,!1);case"values":return O(C[Y],!1)}return O([Y,C[Y]],!1)},"values");var x=v.Arguments=v.Array;if(_("keys"),_("values"),_("entries"),!w&&f&&"values"!==x.name)try{s(x,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/get-built-in"),v=o("../internals/function-apply"),h=o("../internals/function-call"),s=o("../internals/function-uncurry-this"),b=o("../internals/fails"),O=o("../internals/is-callable"),w=o("../internals/is-symbol"),f=o("../internals/array-slice"),k=o("../internals/get-json-replacer-function"),I=o("../internals/symbol-constructor-detection"),x=String,g=_("JSON","stringify"),C=s(/./.exec),F=s("".charAt),Y=s("".charCodeAt),Q=s("".replace),se=s(1..toString),ie=/[\uD800-\uDFFF]/g,ee=/^[\uD800-\uDBFF]$/,re=/^[\uDC00-\uDFFF]$/,ne=!I||b(function(){var me=_("Symbol")("stringify detection");return"[null]"!==g([me])||"{}"!==g({a:me})||"{}"!==g(Object(me))}),_e=b(function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")}),be=function(me,we){var N=f(arguments),G=k(we);if(O(G)||void 0!==me&&!w(me))return N[1]=function(W,z){if(O(G)&&(z=h(G,this,x(W),z)),!w(z))return z},v(g,null,N)},oe=function(me,we,N){var G=F(N,we-1),W=F(N,we+1);return C(ee,me)&&!C(re,W)||C(re,me)&&!C(ee,G)?"\\u"+se(Y(me,0),16):me};g&&m({target:"JSON",stat:!0,arity:3,forced:ne||_e},{stringify:function(me,we,N){var G=f(arguments),W=v(ne?be:g,null,G);return _e&&"string"==typeof W?Q(W,ie,oe):W}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(o,E,R){"use strict";o("../internals/export")({target:"Number",stat:!0},{isNaN:function(m){return m!=m}})},{"../internals/export":259}],364:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/object-assign");m({target:"Object",stat:!0,arity:2,forced:Object.assign!==_},{assign:_})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/symbol-constructor-detection"),v=o("../internals/fails"),h=o("../internals/object-get-own-property-symbols"),s=o("../internals/to-object");m({target:"Object",stat:!0,forced:!_||v(function(){h.f(1)})},{getOwnPropertySymbols:function(b){var O=h.f;return O?O(s(b)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/to-object"),v=o("../internals/object-keys");m({target:"Object",stat:!0,forced:o("../internals/fails")(function(){v(1)})},{keys:function(h){return v(_(h))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/object-to-array").values;m({target:"Object",stat:!0},{values:function(v){return _(v)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/function-call"),v=o("../internals/a-callable"),h=o("../internals/new-promise-capability"),s=o("../internals/perform"),b=o("../internals/iterate");m({target:"Promise",stat:!0,forced:o("../internals/promise-statics-incorrect-iteration")},{all:function(O){var w=this,f=h.f(w),k=f.resolve,I=f.reject,x=s(function(){var g=v(w.resolve),C=[],F=0,Y=1;b(O,function(Q){var se=F++,ie=!1;Y++,_(g,w,Q).then(function(ee){ie||(ie=!0,C[se]=ee,--Y||k(C))},I)}),--Y||k(C)});return x.error&&I(x.value),f.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/is-pure"),v=o("../internals/promise-constructor-detection").CONSTRUCTOR,h=o("../internals/promise-native-constructor"),s=o("../internals/get-built-in"),b=o("../internals/is-callable"),O=o("../internals/define-built-in"),w=h&&h.prototype;if(m({target:"Promise",proto:!0,forced:v,real:!0},{catch:function(k){return this.then(void 0,k)}}),!_&&b(h)){var f=s("Promise").prototype.catch;w.catch!==f&&O(w,"catch",f,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(o,E,R){"use strict";var m,_,v,h=o("../internals/export"),s=o("../internals/is-pure"),b=o("../internals/engine-is-node"),O=o("../internals/global"),w=o("../internals/function-call"),f=o("../internals/define-built-in"),k=o("../internals/object-set-prototype-of"),I=o("../internals/set-to-string-tag"),x=o("../internals/set-species"),g=o("../internals/a-callable"),C=o("../internals/is-callable"),F=o("../internals/is-object"),Y=o("../internals/an-instance"),Q=o("../internals/species-constructor"),se=o("../internals/task").set,ie=o("../internals/microtask"),ee=o("../internals/host-report-errors"),re=o("../internals/perform"),ne=o("../internals/queue"),_e=o("../internals/internal-state"),be=o("../internals/promise-native-constructor"),oe=o("../internals/promise-constructor-detection"),me=o("../internals/new-promise-capability"),we=oe.CONSTRUCTOR,N=oe.REJECTION_EVENT,G=oe.SUBCLASSING,W=_e.getterFor("Promise"),z=_e.set,X=be&&be.prototype,q=be,ye=X,xe=O.TypeError,ge=O.document,Ee=O.process,he=me.f,Ie=he,ce=!!(ge&&ge.createEvent&&O.dispatchEvent),de=function(Lt){var wt;return!(!F(Lt)||!C(wt=Lt.then))&&wt},pe=function(Lt,wt){var Mt,Ge,ot,Tt=wt.value,jt=1===wt.state,li=jt?Lt.ok:Lt.fail,an=Lt.resolve,xi=Lt.reject,Je=Lt.domain;try{li?(jt||(2===wt.rejection&&Xt(wt),wt.rejection=1),!0===li?Mt=Tt:(Je&&Je.enter(),Mt=li(Tt),Je&&(Je.exit(),ot=!0)),Mt===Lt.promise?xi(new xe("Promise-chain cycle")):(Ge=de(Mt))?w(Ge,Mt,an,xi):an(Mt)):xi(Tt)}catch(Ht){Je&&!ot&&Je.exit(),xi(Ht)}},Be=function(Lt,wt){Lt.notified||(Lt.notified=!0,ie(function(){for(var Mt,Ge=Lt.reactions;Mt=Ge.get();)pe(Mt,Lt);Lt.notified=!1,wt&&!Lt.rejection&&tt(Lt)}))},We=function(Lt,wt,Mt){var Ge,ot;ce?((Ge=ge.createEvent("Event")).promise=wt,Ge.reason=Mt,Ge.initEvent(Lt,!1,!0),O.dispatchEvent(Ge)):Ge={promise:wt,reason:Mt},!N&&(ot=O["on"+Lt])?ot(Ge):"unhandledrejection"===Lt&&ee("Unhandled promise rejection",Mt)},tt=function(Lt){w(se,O,function(){var wt,Mt=Lt.facade,Ge=Lt.value;if(vt(Lt)&&(wt=re(function(){b?Ee.emit("unhandledRejection",Ge,Mt):We("unhandledrejection",Mt,Ge)}),Lt.rejection=b||vt(Lt)?2:1,wt.error))throw wt.value})},vt=function(Lt){return 1!==Lt.rejection&&!Lt.parent},Xt=function(Lt){w(se,O,function(){var wt=Lt.facade;b?Ee.emit("rejectionHandled",wt):We("rejectionhandled",wt,Lt.value)})},Nt=function(Lt,wt,Mt){return function(Ge){Lt(wt,Ge,Mt)}},Qe=function(Lt,wt,Mt){Lt.done||(Lt.done=!0,Mt&&(Lt=Mt),Lt.value=wt,Lt.state=2,Be(Lt,!0))},Et=function(Lt,wt,Mt){if(!Lt.done){Lt.done=!0,Mt&&(Lt=Mt);try{if(Lt.facade===wt)throw new xe("Promise can't be resolved itself");var Ge=de(wt);Ge?ie(function(){var ot={done:!1};try{w(Ge,wt,Nt(Et,ot,Lt),Nt(Qe,ot,Lt))}catch(Tt){Qe(ot,Tt,Lt)}}):(Lt.value=wt,Lt.state=1,Be(Lt,!1))}catch(ot){Qe({done:!1},ot,Lt)}}};if(we&&(ye=(q=function(Lt){Y(this,ye),g(Lt),w(m,this);var wt=W(this);try{Lt(Nt(Et,wt),Nt(Qe,wt))}catch(Mt){Qe(wt,Mt)}}).prototype,(m=function(Lt){z(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new ne,rejection:!1,state:0,value:void 0})}).prototype=f(ye,"then",function(Lt,wt){var Mt=W(this),Ge=he(Q(this,q));return Mt.parent=!0,Ge.ok=!C(Lt)||Lt,Ge.fail=C(wt)&&wt,Ge.domain=b?Ee.domain:void 0,0===Mt.state?Mt.reactions.add(Ge):ie(function(){pe(Ge,Mt)}),Ge.promise}),_=function(){var Lt=new m,wt=W(Lt);this.promise=Lt,this.resolve=Nt(Et,wt),this.reject=Nt(Qe,wt)},me.f=he=function(Lt){return Lt===q||void 0===Lt?new _(Lt):Ie(Lt)},!s&&C(be)&&X!==Object.prototype)){v=X.then,G||f(X,"then",function(Lt,wt){var Mt=this;return new q(function(Ge,ot){w(v,Mt,Ge,ot)}).then(Lt,wt)},{unsafe:!0});try{delete X.constructor}catch{}k&&k(X,ye)}h({global:!0,constructor:!0,wrap:!0,forced:we},{Promise:q}),I(q,"Promise",!1,!0),x("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/is-pure"),v=o("../internals/promise-native-constructor"),h=o("../internals/fails"),s=o("../internals/get-built-in"),b=o("../internals/is-callable"),O=o("../internals/species-constructor"),w=o("../internals/promise-resolve"),f=o("../internals/define-built-in"),k=v&&v.prototype;if(m({target:"Promise",proto:!0,real:!0,forced:!!v&&h(function(){k.finally.call({then:function(){}},function(){})})},{finally:function(x){var g=O(this,s("Promise")),C=b(x);return this.then(C?function(F){return w(g,x()).then(function(){return F})}:x,C?function(F){return w(g,x()).then(function(){throw F})}:x)}}),!_&&b(v)){var I=s("Promise").prototype.finally;k.finally!==I&&f(k,"finally",I,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(o,E,R){"use strict";o("../modules/es.promise.constructor"),o("../modules/es.promise.all"),o("../modules/es.promise.catch"),o("../modules/es.promise.race"),o("../modules/es.promise.reject"),o("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/function-call"),v=o("../internals/a-callable"),h=o("../internals/new-promise-capability"),s=o("../internals/perform"),b=o("../internals/iterate");m({target:"Promise",stat:!0,forced:o("../internals/promise-statics-incorrect-iteration")},{race:function(O){var w=this,f=h.f(w),k=f.reject,I=s(function(){var x=v(w.resolve);b(O,function(g){_(x,w,g).then(f.resolve,k)})});return I.error&&k(I.value),f.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/function-call"),v=o("../internals/new-promise-capability");m({target:"Promise",stat:!0,forced:o("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(h){var s=v.f(this);return _(s.reject,void 0,h),s.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/get-built-in"),v=o("../internals/is-pure"),h=o("../internals/promise-native-constructor"),s=o("../internals/promise-constructor-detection").CONSTRUCTOR,b=o("../internals/promise-resolve"),O=_("Promise"),w=v&&!s;m({target:"Promise",stat:!0,forced:v||s},{resolve:function(f){return b(w&&this===O?h:this,f)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/function-uncurry-this"),v=o("../internals/to-absolute-index"),h=RangeError,s=String.fromCharCode,b=String.fromCodePoint,O=_([].join);m({target:"String",stat:!0,arity:1,forced:!!b&&1!==b.length},{fromCodePoint:function(w){for(var f,k=[],I=arguments.length,x=0;I>x;){if(f=+arguments[x++],v(f,1114111)!==f)throw new h(f+" is not a valid code point");k[x]=f<65536?s(f):s(55296+((f-=65536)>>10),f%1024+56320)}return O(k,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/function-uncurry-this"),v=o("../internals/not-a-regexp"),h=o("../internals/require-object-coercible"),s=o("../internals/to-string"),b=o("../internals/correct-is-regexp-logic"),O=_("".indexOf);m({target:"String",proto:!0,forced:!b("includes")},{includes:function(w){return!!~O(s(h(this)),s(v(w)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(o,E,R){"use strict";o("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/global"),v=o("../internals/function-call"),h=o("../internals/function-uncurry-this"),s=o("../internals/is-pure"),b=o("../internals/descriptors"),O=o("../internals/symbol-constructor-detection"),w=o("../internals/fails"),f=o("../internals/has-own-property"),k=o("../internals/object-is-prototype-of"),I=o("../internals/an-object"),x=o("../internals/to-indexed-object"),g=o("../internals/to-property-key"),C=o("../internals/to-string"),F=o("../internals/create-property-descriptor"),Y=o("../internals/object-create"),Q=o("../internals/object-keys"),se=o("../internals/object-get-own-property-names"),ie=o("../internals/object-get-own-property-names-external"),ee=o("../internals/object-get-own-property-symbols"),re=o("../internals/object-get-own-property-descriptor"),ne=o("../internals/object-define-property"),_e=o("../internals/object-define-properties"),be=o("../internals/object-property-is-enumerable"),oe=o("../internals/define-built-in"),me=o("../internals/define-built-in-accessor"),we=o("../internals/shared"),N=o("../internals/shared-key"),G=o("../internals/hidden-keys"),W=o("../internals/uid"),z=o("../internals/well-known-symbol"),X=o("../internals/well-known-symbol-wrapped"),q=o("../internals/well-known-symbol-define"),ye=o("../internals/symbol-define-to-primitive"),xe=o("../internals/set-to-string-tag"),ge=o("../internals/internal-state"),Ee=o("../internals/array-iteration").forEach,he=N("hidden"),Ie=ge.set,ce=ge.getterFor("Symbol"),de=Object.prototype,pe=_.Symbol,Be=pe&&pe.prototype,We=_.RangeError,tt=_.TypeError,vt=_.QObject,Xt=re.f,Nt=ne.f,Qe=ie.f,Et=be.f,Lt=h([].push),wt=we("symbols"),Mt=we("op-symbols"),Ge=we("wks"),ot=!vt||!vt.prototype||!vt.prototype.findChild,Tt=function(ni,wi,ui){var cn=Xt(de,wi);cn&&delete de[wi],Nt(ni,wi,ui),cn&&ni!==de&&Nt(de,wi,cn)},jt=b&&w(function(){return 7!==Y(Nt({},"a",{get:function(){return Nt(this,"a",{value:7}).a}})).a})?Tt:Nt,li=function(ni,wi){var ui=wt[ni]=Y(Be);return Ie(ui,{type:"Symbol",tag:ni,description:wi}),b||(ui.description=wi),ui},an=function(ni,wi,ui){ni===de&&an(Mt,wi,ui),I(ni);var cn=g(wi);return I(ui),f(wt,cn)?(ui.enumerable?(f(ni,he)&&ni[he][cn]&&(ni[he][cn]=!1),ui=Y(ui,{enumerable:F(0,!1)})):(f(ni,he)||Nt(ni,he,F(1,{})),ni[he][cn]=!0),jt(ni,cn,ui)):Nt(ni,cn,ui)},xi=function(ni,wi){I(ni);var ui=x(wi),cn=Q(ui).concat(Ti(ui));return Ee(cn,function(Ui){b&&!v(Je,ui,Ui)||an(ni,Ui,ui[Ui])}),ni},Je=function(ni){var wi=g(ni),ui=v(Et,this,wi);return!(this===de&&f(wt,wi)&&!f(Mt,wi))&&(!(ui||!f(this,wi)||!f(wt,wi)||f(this,he)&&this[he][wi])||ui)},Ht=function(ni,wi){var ui=x(ni),cn=g(wi);if(ui!==de||!f(wt,cn)||f(Mt,cn)){var Ui=Xt(ui,cn);return!Ui||!f(wt,cn)||f(ui,he)&&ui[he][cn]||(Ui.enumerable=!0),Ui}},gi=function(ni){var wi=Qe(x(ni)),ui=[];return Ee(wi,function(cn){f(wt,cn)||f(G,cn)||Lt(ui,cn)}),ui},Ti=function(ni){var wi=ni===de,ui=Qe(wi?Mt:x(ni)),cn=[];return Ee(ui,function(Ui){!f(wt,Ui)||wi&&!f(de,Ui)||Lt(cn,wt[Ui])}),cn};O||(oe(Be=(pe=function(){if(k(Be,this))throw new tt("Symbol is not a constructor");var ni=arguments.length&&void 0!==arguments[0]?C(arguments[0]):void 0,wi=W(ni),ui=function(cn){this===de&&v(ui,Mt,cn),f(this,he)&&f(this[he],wi)&&(this[he][wi]=!1);var Ui=F(1,cn);try{jt(this,wi,Ui)}catch(Xi){if(!(Xi instanceof We))throw Xi;Tt(this,wi,Ui)}};return b&&ot&&jt(de,wi,{configurable:!0,set:ui}),li(wi,ni)}).prototype,"toString",function(){return ce(this).tag}),oe(pe,"withoutSetter",function(ni){return li(W(ni),ni)}),be.f=Je,ne.f=an,_e.f=xi,re.f=Ht,se.f=ie.f=gi,ee.f=Ti,X.f=function(ni){return li(z(ni),ni)},b&&(me(Be,"description",{configurable:!0,get:function(){return ce(this).description}}),s||oe(de,"propertyIsEnumerable",Je,{unsafe:!0}))),m({global:!0,constructor:!0,wrap:!0,forced:!O,sham:!O},{Symbol:pe}),Ee(Q(Ge),function(ni){q(ni)}),m({target:"Symbol",stat:!0,forced:!O},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),m({target:"Object",stat:!0,forced:!O,sham:!b},{create:function(ni,wi){return void 0===wi?Y(ni):xi(Y(ni),wi)},defineProperty:an,defineProperties:xi,getOwnPropertyDescriptor:Ht}),m({target:"Object",stat:!0,forced:!O},{getOwnPropertyNames:gi}),ye(),xe(pe,"Symbol"),G[he]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/get-built-in"),v=o("../internals/has-own-property"),h=o("../internals/to-string"),s=o("../internals/shared"),b=o("../internals/symbol-registry-detection"),O=s("string-to-symbol-registry"),w=s("symbol-to-string-registry");m({target:"Symbol",stat:!0,forced:!b},{for:function(f){var k=h(f);if(v(O,k))return O[k];var I=_("Symbol")(k);return O[k]=I,w[I]=k,I}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(o,E,R){"use strict";o("../modules/es.symbol.constructor"),o("../modules/es.symbol.for"),o("../modules/es.symbol.key-for"),o("../modules/es.json.stringify"),o("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(o,E,R){"use strict";var m=o("../internals/export"),_=o("../internals/has-own-property"),v=o("../internals/is-symbol"),h=o("../internals/try-to-string"),s=o("../internals/shared"),b=o("../internals/symbol-registry-detection"),O=s("symbol-to-string-registry");m({target:"Symbol",stat:!0,forced:!b},{keyFor:function(w){if(!v(w))throw new TypeError(h(w)+" is not a symbol");if(_(O,w))return O[w]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(o,E,R){"use strict";function m(_){return Object.prototype.toString.call(_)}R.isArray=function(_){return Array.isArray?Array.isArray(_):"[object Array]"===m(_)},R.isBoolean=function(_){return"boolean"==typeof _},R.isNull=function(_){return null===_},R.isNullOrUndefined=function(_){return null==_},R.isNumber=function(_){return"number"==typeof _},R.isString=function(_){return"string"==typeof _},R.isSymbol=function(_){return"symbol"==typeof _},R.isUndefined=function(_){return void 0===_},R.isRegExp=function(_){return"[object RegExp]"===m(_)},R.isObject=function(_){return"object"==typeof _&&null!==_},R.isDate=function(_){return"[object Date]"===m(_)},R.isError=function(_){return"[object Error]"===m(_)||_ instanceof Error},R.isFunction=function(_){return"function"==typeof _},R.isPrimitive=function(_){return null===_||"boolean"==typeof _||"number"==typeof _||"string"==typeof _||"symbol"==typeof _||void 0===_},R.isBuffer=o("buffer").Buffer.isBuffer},{buffer:220}],384:[function(o,E,R){(function(m){(function(){"use strict";var _=o("elliptic"),v=o("bn.js");E.exports=function(O){return new s(O)};var h={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(O){this.curveType=h[O],this.curveType||(this.curveType={name:O}),this.curve=new _.ec(this.curveType.name),this.keys=void 0}function b(O,w,f){Array.isArray(O)||(O=O.toArray());var k=new m(O);if(f&&k.length<f){var I=new m(f-k.length);I.fill(0),k=m.concat([I,k])}return w?k.toString(w):k}h.p224=h.secp224r1,h.p256=h.secp256r1=h.prime256v1,h.p192=h.secp192r1=h.prime192v1,h.p384=h.secp384r1,h.p521=h.secp521r1,s.prototype.generateKeys=function(O,w){return this.keys=this.curve.genKeyPair(),this.getPublicKey(O,w)},s.prototype.computeSecret=function(O,w,f){return w=w||"utf8",m.isBuffer(O)||(O=new m(O,w)),b(this.curve.keyFromPublic(O).getPublic().mul(this.keys.getPrivate()).getX(),f,this.curveType.byteLength)},s.prototype.getPublicKey=function(O,w){var f=this.keys.getPublic("compressed"===w,!0);return"hybrid"===w&&(f[0]=f[f.length-1]%2?7:6),b(f,O)},s.prototype.getPrivateKey=function(O){return b(this.keys.getPrivate(),O)},s.prototype.setPublicKey=function(O,w){return w=w||"utf8",m.isBuffer(O)||(O=new m(O,w)),this.keys._importPublic(O),this},s.prototype.setPrivateKey=function(O,w){w=w||"utf8",m.isBuffer(O)||(O=new m(O,w));var f=new v(O);return f=f.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(f),this}}).call(this)}).call(this,o("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(o,E,R){arguments[4][184][0].apply(R,arguments)},{buffer:188,dup:184}],386:[function(o,E,R){"use strict";var m=o("inherits"),_=o("md5.js"),v=o("ripemd160"),h=o("sha.js"),s=o("cipher-base");function b(O){s.call(this,"digest"),this._hash=O}m(b,s),b.prototype._update=function(O){this._hash.update(O)},b.prototype._final=function(){return this._hash.digest()},E.exports=function(O){return"md5"===(O=O.toLowerCase())?new _:"rmd160"===O||"ripemd160"===O?new v:new b(h(O))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(o,E,R){"use strict";var m=o("md5.js");E.exports=function(_){return(new m).update(_).digest()}},{"md5.js":450}],388:[function(o,E,R){"use strict";var m=o("inherits"),_=o("./legacy"),v=o("cipher-base"),h=o("safe-buffer").Buffer,s=o("create-hash/md5"),b=o("ripemd160"),O=o("sha.js"),w=h.alloc(128);function f(k,I){v.call(this,"digest"),"string"==typeof I&&(I=h.from(I));var x="sha512"===k||"sha384"===k?128:64;this._alg=k,this._key=I,I.length>x?I=("rmd160"===k?new b:O(k)).update(I).digest():I.length<x&&(I=h.concat([I,w],x));for(var g=this._ipad=h.allocUnsafe(x),C=this._opad=h.allocUnsafe(x),F=0;F<x;F++)g[F]=54^I[F],C[F]=92^I[F];this._hash="rmd160"===k?new b:O(k),this._hash.update(g)}m(f,v),f.prototype._update=function(k){this._hash.update(k)},f.prototype._final=function(){var k=this._hash.digest();return("rmd160"===this._alg?new b:O(this._alg)).update(this._opad).update(k).digest()},E.exports=function(k,I){return"rmd160"===(k=k.toLowerCase())||"ripemd160"===k?new f("rmd160",I):"md5"===k?new _(s,I):new f(k,I)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(o,E,R){"use strict";var m=o("inherits"),_=o("safe-buffer").Buffer,v=o("cipher-base"),h=_.alloc(128);function s(b,O){v.call(this,"digest"),"string"==typeof O&&(O=_.from(O)),this._alg=b,this._key=O,O.length>64?O=b(O):O.length<64&&(O=_.concat([O,h],64));for(var w=this._ipad=_.allocUnsafe(64),f=this._opad=_.allocUnsafe(64),k=0;k<64;k++)w[k]=54^O[k],f[k]=92^O[k];this._hash=[w]}m(s,v),s.prototype._update=function(b){this._hash.push(b)},s.prototype._final=function(){var b=this._alg(_.concat(this._hash));return this._alg(_.concat([this._opad,b]))},E.exports=s},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(o,E,R){"use strict";R.randomBytes=R.rng=R.pseudoRandomBytes=R.prng=o("randombytes"),R.createHash=R.Hash=o("create-hash"),R.createHmac=R.Hmac=o("create-hmac");var m=o("browserify-sign/algos"),_=Object.keys(m),v=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(_);R.getHashes=function(){return v};var h=o("pbkdf2");R.pbkdf2=h.pbkdf2,R.pbkdf2Sync=h.pbkdf2Sync;var s=o("browserify-cipher");R.Cipher=s.Cipher,R.createCipher=s.createCipher,R.Cipheriv=s.Cipheriv,R.createCipheriv=s.createCipheriv,R.Decipher=s.Decipher,R.createDecipher=s.createDecipher,R.Decipheriv=s.Decipheriv,R.createDecipheriv=s.createDecipheriv,R.getCiphers=s.getCiphers,R.listCiphers=s.listCiphers;var b=o("diffie-hellman");R.DiffieHellmanGroup=b.DiffieHellmanGroup,R.createDiffieHellmanGroup=b.createDiffieHellmanGroup,R.getDiffieHellman=b.getDiffieHellman,R.createDiffieHellman=b.createDiffieHellman,R.DiffieHellman=b.DiffieHellman;var O=o("browserify-sign");R.createSign=O.createSign,R.Sign=O.Sign,R.createVerify=O.createVerify,R.Verify=O.Verify,R.createECDH=o("create-ecdh");var w=o("public-encrypt");R.publicEncrypt=w.publicEncrypt,R.privateEncrypt=w.privateEncrypt,R.publicDecrypt=w.publicDecrypt,R.privateDecrypt=w.privateDecrypt;var f=o("randomfill");R.randomFill=f.randomFill,R.randomFillSync=f.randomFillSync,R.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},R.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(o,E,R){"use strict";var m,_;m=void 0,_=function(){var m=6e4,_=36e5,v="millisecond",h="second",s="minute",b="hour",O="day",w="week",f="month",k="quarter",I="year",x="date",g="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var G=["th","st","nd","rd"],W=N%100;return"["+N+(G[(W-20)%10]||G[W]||G[0])+"]"}},Q=function(N,G,W){var z=String(N);return!z||z.length>=G?N:""+Array(G+1-z.length).join(W)+N},se={s:Q,z:function(N){var G=-N.utcOffset(),W=Math.abs(G),z=Math.floor(W/60),X=W%60;return(G<=0?"+":"-")+Q(z,2,"0")+":"+Q(X,2,"0")},m:function N(G,W){if(G.date()<W.date())return-N(W,G);var z=12*(W.year()-G.year())+(W.month()-G.month()),X=G.clone().add(z,f),q=W-X<0,ye=G.clone().add(z+(q?-1:1),f);return+(-(z+(W-X)/(q?X-ye:ye-X))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:I,w,d:O,D:x,h:b,m:s,s:h,ms:v,Q:k}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return void 0===N}},ie="en",ee={};ee[ie]=Y;var re="$isDayjsObject",ne=function(N){return N instanceof me||!(!N||!N[re])},_e=function N(G,W,z){var X;if(!G)return ie;if("string"==typeof G){var q=G.toLowerCase();ee[q]&&(X=q),W&&(ee[q]=W,X=q);var ye=G.split("-");if(!X&&ye.length>1)return N(ye[0])}else{var xe=G.name;ee[xe]=G,X=xe}return!z&&X&&(ie=X),X||!z&&ie},be=function(N,G){if(ne(N))return N.clone();var W="object"==typeof G?G:{};return W.date=N,W.args=arguments,new me(W)},oe=se;oe.l=_e,oe.i=ne,oe.w=function(N,G){return be(N,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var me=function(){function N(W){this.$L=_e(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[re]=!0}var G=N.prototype;return G.parse=function(W){this.$d=function(z){var X=z.date,q=z.utc;if(null===X)return new Date(NaN);if(oe.u(X))return new Date;if(X instanceof Date)return new Date(X);if("string"==typeof X&&!/Z$/i.test(X)){var ye=X.match(C);if(ye){var xe=ye[2]-1||0,ge=(ye[7]||"0").substring(0,3);return q?new Date(Date.UTC(ye[1],xe,ye[3]||1,ye[4]||0,ye[5]||0,ye[6]||0,ge)):new Date(ye[1],xe,ye[3]||1,ye[4]||0,ye[5]||0,ye[6]||0,ge)}}return new Date(X)}(W),this.init()},G.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},G.$utils=function(){return oe},G.isValid=function(){return this.$d.toString()!==g},G.isSame=function(W,z){var X=be(W);return this.startOf(z)<=X&&X<=this.endOf(z)},G.isAfter=function(W,z){return be(W)<this.startOf(z)},G.isBefore=function(W,z){return this.endOf(z)<be(W)},G.$g=function(W,z,X){return oe.u(W)?this[z]:this.set(X,W)},G.unix=function(){return Math.floor(this.valueOf()/1e3)},G.valueOf=function(){return this.$d.getTime()},G.startOf=function(W,z){var X=this,q=!!oe.u(z)||z,ye=oe.p(W),xe=function(Be,We){var tt=oe.w(X.$u?Date.UTC(X.$y,We,Be):new Date(X.$y,We,Be),X);return q?tt:tt.endOf(O)},ge=function(Be,We){return oe.w(X.toDate()[Be].apply(X.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(We)),X)},Ee=this.$W,he=this.$M,Ie=this.$D,ce="set"+(this.$u?"UTC":"");switch(ye){case I:return q?xe(1,0):xe(31,11);case f:return q?xe(1,he):xe(0,he+1);case w:var de=this.$locale().weekStart||0,pe=(Ee<de?Ee+7:Ee)-de;return xe(q?Ie-pe:Ie+(6-pe),he);case O:case x:return ge(ce+"Hours",0);case b:return ge(ce+"Minutes",1);case s:return ge(ce+"Seconds",2);case h:return ge(ce+"Milliseconds",3);default:return this.clone()}},G.endOf=function(W){return this.startOf(W,!1)},G.$set=function(W,z){var X,q=oe.p(W),ye="set"+(this.$u?"UTC":""),xe=(X={},X[O]=ye+"Date",X[x]=ye+"Date",X[f]=ye+"Month",X[I]=ye+"FullYear",X[b]=ye+"Hours",X[s]=ye+"Minutes",X[h]=ye+"Seconds",X[v]=ye+"Milliseconds",X)[q],ge=q===O?this.$D+(z-this.$W):z;if(q===f||q===I){var Ee=this.clone().set(x,1);Ee.$d[xe](ge),Ee.init(),this.$d=Ee.set(x,Math.min(this.$D,Ee.daysInMonth())).$d}else xe&&this.$d[xe](ge);return this.init(),this},G.set=function(W,z){return this.clone().$set(W,z)},G.get=function(W){return this[oe.p(W)]()},G.add=function(W,z){var X,q=this;W=Number(W);var ye=oe.p(z),xe=function(he){var Ie=be(q);return oe.w(Ie.date(Ie.date()+Math.round(he*W)),q)};if(ye===f)return this.set(f,this.$M+W);if(ye===I)return this.set(I,this.$y+W);if(ye===O)return xe(1);if(ye===w)return xe(7);var ge=(X={},X[s]=m,X[b]=_,X[h]=1e3,X)[ye]||1,Ee=this.$d.getTime()+W*ge;return oe.w(Ee,this)},G.subtract=function(W,z){return this.add(-1*W,z)},G.format=function(W){var z=this,X=this.$locale();if(!this.isValid())return X.invalidDate||g;var q=W||"YYYY-MM-DDTHH:mm:ssZ",ye=oe.z(this),xe=this.$H,ge=this.$m,Ee=this.$M,he=X.weekdays,Ie=X.months,de=function(We,tt,vt,Xt){return We&&(We[tt]||We(z,q))||vt[tt].slice(0,Xt)},pe=function(We){return oe.s(xe%12||12,We,"0")},Be=X.meridiem||function(We,tt,vt){var Xt=We<12?"AM":"PM";return vt?Xt.toLowerCase():Xt};return q.replace(F,function(We,tt){return tt||function(vt){switch(vt){case"YY":return String(z.$y).slice(-2);case"YYYY":return oe.s(z.$y,4,"0");case"M":return Ee+1;case"MM":return oe.s(Ee+1,2,"0");case"MMM":return de(X.monthsShort,Ee,Ie,3);case"MMMM":return de(Ie,Ee);case"D":return z.$D;case"DD":return oe.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return de(X.weekdaysMin,z.$W,he,2);case"ddd":return de(X.weekdaysShort,z.$W,he,3);case"dddd":return he[z.$W];case"H":return String(xe);case"HH":return oe.s(xe,2,"0");case"h":return pe(1);case"hh":return pe(2);case"a":return Be(xe,ge,!0);case"A":return Be(xe,ge,!1);case"m":return String(ge);case"mm":return oe.s(ge,2,"0");case"s":return String(z.$s);case"ss":return oe.s(z.$s,2,"0");case"SSS":return oe.s(z.$ms,3,"0");case"Z":return ye}return null}(We)||ye.replace(":","")})},G.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},G.diff=function(W,z,X){var q,ye=this,xe=oe.p(z),ge=be(W),Ee=(ge.utcOffset()-this.utcOffset())*m,he=this-ge,Ie=function(){return oe.m(ye,ge)};switch(xe){case I:q=Ie()/12;break;case f:q=Ie();break;case k:q=Ie()/3;break;case w:q=(he-Ee)/6048e5;break;case O:q=(he-Ee)/864e5;break;case b:q=he/_;break;case s:q=he/m;break;case h:q=he/1e3;break;default:q=he}return X?q:oe.a(q)},G.daysInMonth=function(){return this.endOf(f).$D},G.$locale=function(){return ee[this.$L]},G.locale=function(W,z){if(!W)return this.$L;var X=this.clone(),q=_e(W,z,!0);return q&&(X.$L=q),X},G.clone=function(){return oe.w(this.$d,this)},G.toDate=function(){return new Date(this.valueOf())},G.toJSON=function(){return this.isValid()?this.toISOString():null},G.toISOString=function(){return this.$d.toISOString()},G.toString=function(){return this.$d.toUTCString()},N}(),we=me.prototype;return be.prototype=we,[["$ms",v],["$s",h],["$m",s],["$H",b],["$W",O],["$M",f],["$y",I],["$D",x]].forEach(function(N){we[N[1]]=function(G){return this.$g(G,N[0],N[1])}}),be.extend=function(N,G){return N.$i||(N(G,me,be),N.$i=!0),be},be.locale=_e,be.isDayjs=ne,be.unix=function(N){return be(1e3*N)},be.en=ee[ie],be.Ls=ee,be.p={},be},"object"==typeof R&&void 0!==E?E.exports=_():(m=typeof globalThis<"u"?globalThis:m||self).dayjs=_()},{}],392:[function(o,E,R){"use strict";var m,_;m=void 0,_=function(){var m={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},_=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,v=/\d\d/,h=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,b={},O=function(C){return(C=+C)+(C>68?1900:2e3)},w=function(C){return function(F){this[C]=+F}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(F){if(!F||"Z"===F)return 0;var Y=F.match(/([+-]|\d\d)/g),Q=60*Y[1]+(+Y[2]||0);return 0===Q?0:"+"===Y[0]?-Q:Q}(C)}],k=function(C){var F=b[C];return F&&(F.indexOf?F:F.s.concat(F.f))},I=function(C,F){var Y,Q=b.meridiem;if(Q){for(var se=1;se<=24;se+=1)if(C.indexOf(Q(se,0,F))>-1){Y=se>12;break}}else Y=C===(F?"pm":"PM");return Y},x={A:[s,function(C){this.afternoon=I(C,!1)}],a:[s,function(C){this.afternoon=I(C,!0)}],S:[/\d/,function(C){this.milliseconds=100*+C}],SS:[v,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[h,w("seconds")],ss:[h,w("seconds")],m:[h,w("minutes")],mm:[h,w("minutes")],H:[h,w("hours")],h:[h,w("hours")],HH:[h,w("hours")],hh:[h,w("hours")],D:[h,w("day")],DD:[v,w("day")],Do:[s,function(C){var F=b.ordinal,Y=C.match(/\d+/);if(this.day=Y[0],F)for(var Q=1;Q<=31;Q+=1)F(Q).replace(/\[|\]/g,"")===C&&(this.day=Q)}],M:[h,w("month")],MM:[v,w("month")],MMM:[s,function(C){var F=k("months"),Y=(k("monthsShort")||F.map(function(Q){return Q.slice(0,3)})).indexOf(C)+1;if(Y<1)throw new Error;this.month=Y%12||Y}],MMMM:[s,function(C){var F=k("months").indexOf(C)+1;if(F<1)throw new Error;this.month=F%12||F}],Y:[/[+-]?\d+/,w("year")],YY:[v,function(C){this.year=O(C)}],YYYY:[/\d{4}/,w("year")],Z:f,ZZ:f};return function(C,F,Y){Y.p.customParseFormat=!0,C&&C.parseTwoDigitYear&&(O=C.parseTwoDigitYear);var Q=F.prototype,se=Q.parse;Q.parse=function(ie){var ee=ie.date,re=ie.utc,ne=ie.args;this.$u=re;var _e=ne[1];if("string"==typeof _e){var be=!0===ne[2],oe=!0===ne[3],me=be||oe,we=ne[2];oe&&(we=ne[2]),b=this.$locale(),!be&&we&&(b=Y.Ls[we]),this.$d=function(z,X,q){try{if(["x","X"].indexOf(X)>-1)return new Date(("X"===X?1e3:1)*z);var ye=function g(C){var Y;Y=b&&b.formats;for(var Q=(C=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(be,oe,me){var we=me&&me.toUpperCase();return oe||Y[me]||m[me]||Y[we].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,G,W){return G||W.slice(1)})})).match(_),se=Q.length,ie=0;ie<se;ie+=1){var ee=Q[ie],re=x[ee],_e=re&&re[1];Q[ie]=_e?{regex:re&&re[0],parser:_e}:ee.replace(/^\[|\]$/g,"")}return function(be){for(var oe={},me=0,we=0;me<se;me+=1){var N=Q[me];if("string"==typeof N)we+=N.length;else{var G=N.regex,W=N.parser,z=be.slice(we),X=G.exec(z)[0];W.call(oe,X),be=be.replace(X,"")}}return function(q){var ye=q.afternoon;if(void 0!==ye){var xe=q.hours;ye?xe<12&&(q.hours+=12):12===xe&&(q.hours=0),delete q.afternoon}}(oe),oe}}(X)(z),xe=ye.year,ge=ye.month,Ee=ye.day,he=ye.hours,Ie=ye.minutes,ce=ye.seconds,de=ye.milliseconds,pe=ye.zone,Be=new Date,We=Ee||(xe||ge?1:Be.getDate()),tt=xe||Be.getFullYear(),vt=0;xe&&!ge||(vt=ge>0?ge-1:Be.getMonth());var Xt=he||0,Nt=Ie||0,Qe=ce||0,Et=de||0;return pe?new Date(Date.UTC(tt,vt,We,Xt,Nt,Qe,Et+60*pe.offset*1e3)):q?new Date(Date.UTC(tt,vt,We,Xt,Nt,Qe,Et)):new Date(tt,vt,We,Xt,Nt,Qe,Et)}catch{return new Date("")}}(ee,_e,re),this.init(),we&&!0!==we&&(this.$L=this.locale(we).$L),me&&ee!=this.format(_e)&&(this.$d=new Date("")),b={}}else if(_e instanceof Array)for(var N=_e.length,G=1;G<=N;G+=1){ne[1]=_e[G-1];var W=Y.apply(this,ne);if(W.isValid()){this.$d=W.$d,this.$L=W.$L,this.init();break}G===N&&(this.$d=new Date(""))}else se.call(this,ie)}}},"object"==typeof R&&void 0!==E?E.exports=_():(m=typeof globalThis<"u"?globalThis:m||self).dayjs_plugin_customParseFormat=_()},{}],393:[function(o,E,R){"use strict";var m,_;m=void 0,_=function(){var m="minute",_=/[+-]\d\d(?::?\d\d)?/g,v=/([+-]|\d\d)/g;return function(h,s,b){var O=s.prototype;b.utc=function(C){return new s({date:C,utc:!0,args:arguments})},O.utc=function(C){var F=b(this.toDate(),{locale:this.$L,utc:!0});return C?F.add(this.utcOffset(),m):F},O.local=function(){return b(this.toDate(),{locale:this.$L,utc:!1})};var w=O.parse;O.parse=function(C){C.utc&&(this.$u=!0),this.$utils().u(C.$offset)||(this.$offset=C.$offset),w.call(this,C)};var f=O.init;O.init=function(){if(this.$u){var C=this.$d;this.$y=C.getUTCFullYear(),this.$M=C.getUTCMonth(),this.$D=C.getUTCDate(),this.$W=C.getUTCDay(),this.$H=C.getUTCHours(),this.$m=C.getUTCMinutes(),this.$s=C.getUTCSeconds(),this.$ms=C.getUTCMilliseconds()}else f.call(this)};var k=O.utcOffset;O.utcOffset=function(C,F){var Y=this.$utils().u;if(Y(C))return this.$u?0:Y(this.$offset)?k.call(this):this.$offset;if("string"==typeof C&&null===(C=function(ee){void 0===ee&&(ee="");var re=ee.match(_);if(!re)return null;var ne=(""+re[0]).match(v)||["-",0,0],be=60*+ne[1]+ +ne[2];return 0===be?0:"+"===ne[0]?be:-be}(C)))return this;var Q=Math.abs(C)<=16?60*C:C,se=this;if(F)return se.$offset=Q,se.$u=0===C,se;if(0!==C){var ie=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(se=this.local().add(Q+ie,m)).$offset=Q,se.$x.$localOffset=ie}else se=this.utc();return se};var I=O.format;O.format=function(C){return I.call(this,C||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},O.valueOf=function(){var C=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*C},O.isUTC=function(){return!!this.$u},O.toISOString=function(){return this.toDate().toISOString()},O.toString=function(){return this.toDate().toUTCString()};var x=O.toDate;O.toDate=function(C){return"s"===C&&this.$offset?b(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var g=O.diff;O.diff=function(C,F,Y){if(C&&this.$u===C.$u)return g.call(this,C,F,Y);var Q=this.local(),se=b(C).local();return g.call(Q,se,F,Y)}}},"object"==typeof R&&void 0!==E?E.exports=_():(m=typeof globalThis<"u"?globalThis:m||self).dayjs_plugin_utc=_()},{}],394:[function(o,E,R){"use strict";R.utils=o("./des/utils"),R.Cipher=o("./des/cipher"),R.DES=o("./des/des"),R.CBC=o("./des/cbc"),R.EDE=o("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(o,E,R){"use strict";var m=o("minimalistic-assert"),_=o("inherits"),v={};function h(s){m.equal(s.length,8,"Invalid IV length"),this.iv=new Array(8);for(var b=0;b<this.iv.length;b++)this.iv[b]=s[b]}R.instantiate=function(s){function b(k){s.call(this,k),this._cbcInit()}_(b,s);for(var O=Object.keys(v),w=0;w<O.length;w++){var f=O[w];b.prototype[f]=v[f]}return b.create=function(k){return new b(k)},b},v._cbcInit=function(){var s=new h(this.options.iv);this._cbcState=s},v._update=function(s,b,O,w){var k=this.constructor.super_.prototype,I=this._cbcState.iv;if("encrypt"===this.type){for(var x=0;x<this.blockSize;x++)I[x]^=s[b+x];for(k._update.call(this,I,0,O,w),x=0;x<this.blockSize;x++)I[x]=O[w+x]}else{for(k._update.call(this,s,b,O,w),x=0;x<this.blockSize;x++)O[w+x]^=I[x];for(x=0;x<this.blockSize;x++)I[x]=s[b+x]}}},{inherits:440,"minimalistic-assert":453}],396:[function(o,E,R){"use strict";var m=o("minimalistic-assert");function _(v){this.options=v,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==v.padding}E.exports=_,_.prototype._init=function(){},_.prototype.update=function(v){return 0===v.length?[]:"decrypt"===this.type?this._updateDecrypt(v):this._updateEncrypt(v)},_.prototype._buffer=function(v,h){for(var s=Math.min(this.buffer.length-this.bufferOff,v.length-h),b=0;b<s;b++)this.buffer[this.bufferOff+b]=v[h+b];return this.bufferOff+=s,s},_.prototype._flushBuffer=function(v,h){return this._update(this.buffer,0,v,h),this.bufferOff=0,this.blockSize},_.prototype._updateEncrypt=function(v){var h=0,s=0,O=new Array(((this.bufferOff+v.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(h+=this._buffer(v,h),this.bufferOff===this.buffer.length&&(s+=this._flushBuffer(O,s)));for(var w=v.length-(v.length-h)%this.blockSize;h<w;h+=this.blockSize)this._update(v,h,O,s),s+=this.blockSize;for(;h<v.length;h++,this.bufferOff++)this.buffer[this.bufferOff]=v[h];return O},_.prototype._updateDecrypt=function(v){for(var h=0,s=0,b=Math.ceil((this.bufferOff+v.length)/this.blockSize)-1,O=new Array(b*this.blockSize);b>0;b--)h+=this._buffer(v,h),s+=this._flushBuffer(O,s);return h+=this._buffer(v,h),O},_.prototype.final=function(v){var h,s;return v&&(h=this.update(v)),s="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),h?h.concat(s):s},_.prototype._pad=function(v,h){if(0===h)return!1;for(;h<v.length;)v[h++]=0;return!0},_.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var v=new Array(this.blockSize);return this._update(this.buffer,0,v,0),v},_.prototype._unpad=function(v){return v},_.prototype._finalDecrypt=function(){m.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var v=new Array(this.blockSize);return this._flushBuffer(v,0),this._unpad(v)}},{"minimalistic-assert":453}],397:[function(o,E,R){"use strict";var m=o("minimalistic-assert"),_=o("inherits"),v=o("./utils"),h=o("./cipher");function s(){this.tmp=new Array(2),this.keys=null}function b(w){h.call(this,w);var f=new s;this._desState=f,this.deriveKeys(f,w.key)}_(b,h),E.exports=b,b.create=function(w){return new b(w)};var O=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];b.prototype.deriveKeys=function(w,f){w.keys=new Array(32),m.equal(f.length,this.blockSize,"Invalid key length");var k=v.readUInt32BE(f,0),I=v.readUInt32BE(f,4);v.pc1(k,I,w.tmp,0),k=w.tmp[0],I=w.tmp[1];for(var x=0;x<w.keys.length;x+=2){var g=O[x>>>1];k=v.r28shl(k,g),I=v.r28shl(I,g),v.pc2(k,I,w.keys,x)}},b.prototype._update=function(w,f,k,I){var x=this._desState,g=v.readUInt32BE(w,f),C=v.readUInt32BE(w,f+4);v.ip(g,C,x.tmp,0),g=x.tmp[0],C=x.tmp[1],"encrypt"===this.type?this._encrypt(x,g,C,x.tmp,0):this._decrypt(x,g,C,x.tmp,0),C=x.tmp[1],v.writeUInt32BE(k,g=x.tmp[0],I),v.writeUInt32BE(k,C,I+4)},b.prototype._pad=function(w,f){if(!1===this.padding)return!1;for(var k=w.length-f,I=f;I<w.length;I++)w[I]=k;return!0},b.prototype._unpad=function(w){if(!1===this.padding)return w;for(var f=w[w.length-1],k=w.length-f;k<w.length;k++)m.equal(w[k],f);return w.slice(0,w.length-f)},b.prototype._encrypt=function(w,f,k,I,x){for(var g=f,C=k,F=0;F<w.keys.length;F+=2){var Y=w.keys[F],Q=w.keys[F+1];v.expand(C,w.tmp,0);var se=v.substitute(Y^=w.tmp[0],Q^=w.tmp[1]),ie=C;C=(g^v.permute(se))>>>0,g=ie}v.rip(C,g,I,x)},b.prototype._decrypt=function(w,f,k,I,x){for(var g=k,C=f,F=w.keys.length-2;F>=0;F-=2){var Y=w.keys[F],Q=w.keys[F+1];v.expand(g,w.tmp,0);var se=v.substitute(Y^=w.tmp[0],Q^=w.tmp[1]),ie=g;g=(C^v.permute(se))>>>0,C=ie}v.rip(g,C,I,x)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(o,E,R){"use strict";var m=o("minimalistic-assert"),_=o("inherits"),v=o("./cipher"),h=o("./des");function s(O,w){m.equal(w.length,24,"Invalid key length");var f=w.slice(0,8),k=w.slice(8,16),I=w.slice(16,24);this.ciphers="encrypt"===O?[h.create({type:"encrypt",key:f}),h.create({type:"decrypt",key:k}),h.create({type:"encrypt",key:I})]:[h.create({type:"decrypt",key:I}),h.create({type:"encrypt",key:k}),h.create({type:"decrypt",key:f})]}function b(O){v.call(this,O);var w=new s(this.type,this.options.key);this._edeState=w}_(b,v),E.exports=b,b.create=function(O){return new b(O)},b.prototype._update=function(O,w,f,k){var I=this._edeState;I.ciphers[0]._update(O,w,f,k),I.ciphers[1]._update(f,k,f,k),I.ciphers[2]._update(f,k,f,k)},b.prototype._pad=h.prototype._pad,b.prototype._unpad=h.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(o,E,R){"use strict";R.readUInt32BE=function(h,s){return(h[0+s]<<24|h[1+s]<<16|h[2+s]<<8|h[3+s])>>>0},R.writeUInt32BE=function(h,s,b){h[0+b]=s>>>24,h[1+b]=s>>>16&255,h[2+b]=s>>>8&255,h[3+b]=255&s},R.ip=function(h,s,b,O){for(var w=0,f=0,k=6;k>=0;k-=2){for(var I=0;I<=24;I+=8)w<<=1,w|=s>>>I+k&1;for(I=0;I<=24;I+=8)w<<=1,w|=h>>>I+k&1}for(k=6;k>=0;k-=2){for(I=1;I<=25;I+=8)f<<=1,f|=s>>>I+k&1;for(I=1;I<=25;I+=8)f<<=1,f|=h>>>I+k&1}b[O+0]=w>>>0,b[O+1]=f>>>0},R.rip=function(h,s,b,O){for(var w=0,f=0,k=0;k<4;k++)for(var I=24;I>=0;I-=8)w<<=1,w|=s>>>I+k&1,w<<=1,w|=h>>>I+k&1;for(k=4;k<8;k++)for(I=24;I>=0;I-=8)f<<=1,f|=s>>>I+k&1,f<<=1,f|=h>>>I+k&1;b[O+0]=w>>>0,b[O+1]=f>>>0},R.pc1=function(h,s,b,O){for(var w=0,f=0,k=7;k>=5;k--){for(var I=0;I<=24;I+=8)w<<=1,w|=s>>I+k&1;for(I=0;I<=24;I+=8)w<<=1,w|=h>>I+k&1}for(I=0;I<=24;I+=8)w<<=1,w|=s>>I+k&1;for(k=1;k<=3;k++){for(I=0;I<=24;I+=8)f<<=1,f|=s>>I+k&1;for(I=0;I<=24;I+=8)f<<=1,f|=h>>I+k&1}for(I=0;I<=24;I+=8)f<<=1,f|=h>>I+k&1;b[O+0]=w>>>0,b[O+1]=f>>>0},R.r28shl=function(h,s){return h<<s&268435455|h>>>28-s};var m=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];R.pc2=function(h,s,b,O){for(var w=0,f=0,k=m.length>>>1,I=0;I<k;I++)w<<=1,w|=h>>>m[I]&1;for(I=k;I<m.length;I++)f<<=1,f|=s>>>m[I]&1;b[O+0]=w>>>0,b[O+1]=f>>>0},R.expand=function(h,s,b){var O=0,w=0;O=(1&h)<<5|h>>>27;for(var f=23;f>=15;f-=4)O<<=6,O|=h>>>f&63;for(f=11;f>=3;f-=4)w|=h>>>f&63,w<<=6;w|=(31&h)<<1|h>>>31,s[b+0]=O>>>0,s[b+1]=w>>>0};var _=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];R.substitute=function(h,s){for(var b=0,O=0;O<4;O++)b<<=4,b|=_[64*O+(h>>>18-6*O&63)];for(O=0;O<4;O++)b<<=4,b|=_[256+64*O+(s>>>18-6*O&63)];return b>>>0};var v=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];R.permute=function(h){for(var s=0,b=0;b<v.length;b++)s<<=1,s|=h>>>v[b]&1;return s>>>0},R.padSplit=function(h,s,b){for(var O=h.toString(2);O.length<s;)O="0"+O;for(var w=[],f=0;f<s;f+=b)w.push(O.slice(f,f+b));return w.join(" ")}},{}],400:[function(o,E,R){(function(m){(function(){"use strict";var _=o("./lib/generatePrime"),v=o("./lib/primes.json"),h=o("./lib/dh"),s={binary:!0,hex:!0,base64:!0};R.DiffieHellmanGroup=R.createDiffieHellmanGroup=R.getDiffieHellman=function(b){var O=new m(v[b].prime,"hex"),w=new m(v[b].gen,"hex");return new h(O,w)},R.createDiffieHellman=R.DiffieHellman=function b(O,w,f,k){return m.isBuffer(w)||void 0===s[w]?b(O,"binary",w,f):(w=w||"binary",k=k||"binary",f=f||new m([2]),m.isBuffer(f)||(f=new m(f,k)),"number"==typeof O?new h(_(O,f),f,!0):(m.isBuffer(O)||(O=new m(O,w)),new h(O,f,!0)))}}).call(this)}).call(this,o("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(o,E,R){(function(m){(function(){"use strict";var _=o("bn.js"),v=new(o("miller-rabin")),h=new _(24),s=new _(11),b=new _(10),O=new _(3),w=new _(7),f=o("./generatePrime"),k=o("randombytes");function I(Y,Q){return Q=Q||"utf8",m.isBuffer(Y)||(Y=new m(Y,Q)),this._pub=new _(Y),this}function x(Y,Q){return Q=Q||"utf8",m.isBuffer(Y)||(Y=new m(Y,Q)),this._priv=new _(Y),this}E.exports=C;var g={};function C(Y,Q,se){this.setGenerator(Q),this.__prime=new _(Y),this._prime=_.mont(this.__prime),this._primeLen=Y.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,se?(this.setPublicKey=I,this.setPrivateKey=x):this._primeCode=8}function F(Y,Q){var se=new m(Y.toArray());return Q?se.toString(Q):se}Object.defineProperty(C.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(Y,Q){var se=Q.toString("hex"),ie=[se,Y.toString(16)].join("_");if(ie in g)return g[ie];var ee,re=0;if(Y.isEven()||!f.simpleSieve||!f.fermatTest(Y)||!v.test(Y))return re+=1,g[ie]=re+="02"===se||"05"===se?8:4,re;switch(v.test(Y.shrn(1))||(re+=2),se){case"02":Y.mod(h).cmp(s)&&(re+=8);break;case"05":(ee=Y.mod(b)).cmp(O)&&ee.cmp(w)&&(re+=8);break;default:re+=4}return g[ie]=re,re}(this.__prime,this.__gen)),this._primeCode}}),C.prototype.generateKeys=function(){return this._priv||(this._priv=new _(k(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},C.prototype.computeSecret=function(Y){var Q=(Y=(Y=new _(Y)).toRed(this._prime)).redPow(this._priv).fromRed(),se=new m(Q.toArray()),ie=this.getPrime();if(se.length<ie.length){var ee=new m(ie.length-se.length);ee.fill(0),se=m.concat([ee,se])}return se},C.prototype.getPublicKey=function(Y){return F(this._pub,Y)},C.prototype.getPrivateKey=function(Y){return F(this._priv,Y)},C.prototype.getPrime=function(Y){return F(this.__prime,Y)},C.prototype.getGenerator=function(Y){return F(this._gen,Y)},C.prototype.setGenerator=function(Y,Q){return Q=Q||"utf8",m.isBuffer(Y)||(Y=new m(Y,Q)),this.__gen=Y,this._gen=new _(Y),this}}).call(this)}).call(this,o("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(o,E,R){"use strict";var m=o("randombytes");E.exports=Y,Y.simpleSieve=C,Y.fermatTest=F;var _=o("bn.js"),v=new _(24),h=new(o("miller-rabin")),s=new _(1),b=new _(2),O=new _(5),w=(new _(16),new _(8),new _(10)),f=new _(3),k=(new _(7),new _(11)),I=new _(4),x=(new _(12),null);function C(Q){for(var se=function g(){if(null!==x)return x;var Q=[];Q[0]=2;for(var se=1,ie=3;ie<1048576;ie+=2){for(var ee=Math.ceil(Math.sqrt(ie)),re=0;re<se&&Q[re]<=ee&&ie%Q[re]!=0;re++);se!==re&&Q[re]<=ee||(Q[se++]=ie)}return x=Q,Q}(),ie=0;ie<se.length;ie++)if(0===Q.modn(se[ie]))return 0===Q.cmpn(se[ie]);return!0}function F(Q){var se=_.mont(Q);return 0===b.toRed(se).redPow(Q.subn(1)).fromRed().cmpn(1)}function Y(Q,se){if(Q<16)return new _(2===se||5===se?[140,123]:[140,39]);var ie,ee;for(se=new _(se);;){for(ie=new _(m(Math.ceil(Q/8)));ie.bitLength()>Q;)ie.ishrn(1);if(ie.isEven()&&ie.iadd(s),ie.testn(1)||ie.iadd(b),se.cmp(b)){if(!se.cmp(O))for(;ie.mod(w).cmp(f);)ie.iadd(I)}else for(;ie.mod(v).cmp(k);)ie.iadd(I);if(C(ee=ie.shrn(1))&&C(ie)&&F(ee)&&F(ie)&&h.test(ee)&&h.test(ie))return ie}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(o,E,R){E.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(o,E,R){arguments[4][184][0].apply(R,arguments)},{buffer:188,dup:184}],405:[function(o,E,R){"use strict";var m=R;m.version=o("../package.json").version,m.utils=o("./elliptic/utils"),m.rand=o("brorand"),m.curve=o("./elliptic/curve"),m.curves=o("./elliptic/curves"),m.ec=o("./elliptic/ec"),m.eddsa=o("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(o,E,R){"use strict";var m=o("bn.js"),_=o("../utils"),v=_.getNAF,h=_.getJSF,s=_.assert;function b(w,f){this.type=w,this.p=new m(f.p,16),this.red=f.prime?m.red(f.prime):m.mont(this.p),this.zero=new m(0).toRed(this.red),this.one=new m(1).toRed(this.red),this.two=new m(2).toRed(this.red),this.n=f.n&&new m(f.n,16),this.g=f.g&&this.pointFromJSON(f.g,f.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var k=this.n&&this.p.div(this.n);!k||k.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function O(w,f){this.curve=w,this.type=f,this.precomputed=null}E.exports=b,b.prototype.point=function(){throw new Error("Not implemented")},b.prototype.validate=function(){throw new Error("Not implemented")},b.prototype._fixedNafMul=function(w,f){s(w.precomputed);var k=w._getDoubles(),I=v(f,1,this._bitLength),x=(1<<k.step+1)-(k.step%2==0?2:1);x/=3;var g,C,F=[];for(g=0;g<I.length;g+=k.step){C=0;for(var Y=g+k.step-1;Y>=g;Y--)C=(C<<1)+I[Y];F.push(C)}for(var Q=this.jpoint(null,null,null),se=this.jpoint(null,null,null),ie=x;ie>0;ie--){for(g=0;g<F.length;g++)(C=F[g])===ie?se=se.mixedAdd(k.points[g]):C===-ie&&(se=se.mixedAdd(k.points[g].neg()));Q=Q.add(se)}return Q.toP()},b.prototype._wnafMul=function(w,f){for(var k=4,I=w._getNAFPoints(k),x=I.points,g=v(f,k=I.wnd,this._bitLength),C=this.jpoint(null,null,null),F=g.length-1;F>=0;F--){for(var Y=0;F>=0&&0===g[F];F--)Y++;if(F>=0&&Y++,C=C.dblp(Y),F<0)break;var Q=g[F];s(0!==Q),C="affine"===w.type?C.mixedAdd(Q>0?x[Q-1>>1]:x[-Q-1>>1].neg()):C.add(Q>0?x[Q-1>>1]:x[-Q-1>>1].neg())}return"affine"===w.type?C.toP():C},b.prototype._wnafMulAdd=function(w,f,k,I,x){var g,C,F,Y=this._wnafT1,Q=this._wnafT2,se=this._wnafT3,ie=0;for(g=0;g<I;g++){var ee=(F=f[g])._getNAFPoints(w);Y[g]=ee.wnd,Q[g]=ee.points}for(g=I-1;g>=1;g-=2){var re=g-1,ne=g;if(1===Y[re]&&1===Y[ne]){var _e=[f[re],null,null,f[ne]];0===f[re].y.cmp(f[ne].y)?(_e[1]=f[re].add(f[ne]),_e[2]=f[re].toJ().mixedAdd(f[ne].neg())):0===f[re].y.cmp(f[ne].y.redNeg())?(_e[1]=f[re].toJ().mixedAdd(f[ne]),_e[2]=f[re].add(f[ne].neg())):(_e[1]=f[re].toJ().mixedAdd(f[ne]),_e[2]=f[re].toJ().mixedAdd(f[ne].neg()));var be=[-3,-1,-5,-7,0,7,5,1,3],oe=h(k[re],k[ne]);for(ie=Math.max(oe[0].length,ie),se[re]=new Array(ie),se[ne]=new Array(ie),C=0;C<ie;C++)se[re][C]=be[3*(1+(0|oe[0][C]))+(1+(0|oe[1][C]))],se[ne][C]=0,Q[re]=_e}else se[re]=v(k[re],Y[re],this._bitLength),se[ne]=v(k[ne],Y[ne],this._bitLength),ie=Math.max(se[re].length,ie),ie=Math.max(se[ne].length,ie)}var N=this.jpoint(null,null,null),G=this._wnafT4;for(g=ie;g>=0;g--){for(var W=0;g>=0;){var z=!0;for(C=0;C<I;C++)G[C]=0|se[C][g],0!==G[C]&&(z=!1);if(!z)break;W++,g--}if(g>=0&&W++,N=N.dblp(W),g<0)break;for(C=0;C<I;C++){var X=G[C];0!==X&&(X>0?F=Q[C][X-1>>1]:X<0&&(F=Q[C][-X-1>>1].neg()),N="affine"===F.type?N.mixedAdd(F):N.add(F))}}for(g=0;g<I;g++)Q[g]=null;return x?N:N.toP()},b.BasePoint=O,O.prototype.eq=function(){throw new Error("Not implemented")},O.prototype.validate=function(){return this.curve.validate(this)},b.prototype.decodePoint=function(w,f){w=_.toArray(w,f);var k=this.p.byteLength();if((4===w[0]||6===w[0]||7===w[0])&&w.length-1==2*k)return 6===w[0]?s(w[w.length-1]%2==0):7===w[0]&&s(w[w.length-1]%2==1),this.point(w.slice(1,1+k),w.slice(1+k,1+2*k));if((2===w[0]||3===w[0])&&w.length-1===k)return this.pointFromX(w.slice(1,1+k),3===w[0]);throw new Error("Unknown point format")},O.prototype.encodeCompressed=function(w){return this.encode(w,!0)},O.prototype._encode=function(w){var f=this.curve.p.byteLength(),k=this.getX().toArray("be",f);return w?[this.getY().isEven()?2:3].concat(k):[4].concat(k,this.getY().toArray("be",f))},O.prototype.encode=function(w,f){return _.encode(this._encode(f),w)},O.prototype.precompute=function(w){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,w),f.beta=this._getBeta(),this.precomputed=f,this},O.prototype._hasDoubles=function(w){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return!!f&&f.points.length>=Math.ceil((w.bitLength()+1)/f.step)},O.prototype._getDoubles=function(w,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var k=[this],I=this,x=0;x<f;x+=w){for(var g=0;g<w;g++)I=I.dbl();k.push(I)}return{step:w,points:k}},O.prototype._getNAFPoints=function(w){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],k=(1<<w)-1,I=1===k?null:this.dbl(),x=1;x<k;x++)f[x]=f[x-1].add(I);return{wnd:w,points:f}},O.prototype._getBeta=function(){return null},O.prototype.dblp=function(w){for(var f=this,k=0;k<w;k++)f=f.dbl();return f}},{"../utils":419,"bn.js":420}],407:[function(o,E,R){"use strict";var m=o("../utils"),_=o("bn.js"),v=o("inherits"),h=o("./base"),s=m.assert;function b(w){this.twisted=1!=(0|w.a),this.mOneA=this.twisted&&-1==(0|w.a),this.extended=this.mOneA,h.call(this,"edwards",w),this.a=new _(w.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new _(w.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new _(w.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|w.c)}function O(w,f,k,I,x){h.BasePoint.call(this,w,"projective"),null===f&&null===k&&null===I?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new _(f,16),this.y=new _(k,16),this.z=I?new _(I,16):this.curve.one,this.t=x&&new _(x,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}v(b,h),E.exports=b,b.prototype._mulA=function(w){return this.mOneA?w.redNeg():this.a.redMul(w)},b.prototype._mulC=function(w){return this.oneC?w:this.c.redMul(w)},b.prototype.jpoint=function(w,f,k,I){return this.point(w,f,k,I)},b.prototype.pointFromX=function(w,f){(w=new _(w,16)).red||(w=w.toRed(this.red));var k=w.redSqr(),I=this.c2.redSub(this.a.redMul(k)),x=this.one.redSub(this.c2.redMul(this.d).redMul(k)),g=I.redMul(x.redInvm()),C=g.redSqrt();if(0!==C.redSqr().redSub(g).cmp(this.zero))throw new Error("invalid point");var F=C.fromRed().isOdd();return(f&&!F||!f&&F)&&(C=C.redNeg()),this.point(w,C)},b.prototype.pointFromY=function(w,f){(w=new _(w,16)).red||(w=w.toRed(this.red));var k=w.redSqr(),I=k.redSub(this.c2),x=k.redMul(this.d).redMul(this.c2).redSub(this.a),g=I.redMul(x.redInvm());if(0===g.cmp(this.zero)){if(f)throw new Error("invalid point");return this.point(this.zero,w)}var C=g.redSqrt();if(0!==C.redSqr().redSub(g).cmp(this.zero))throw new Error("invalid point");return C.fromRed().isOdd()!==f&&(C=C.redNeg()),this.point(C,w)},b.prototype.validate=function(w){if(w.isInfinity())return!0;w.normalize();var f=w.x.redSqr(),k=w.y.redSqr(),I=f.redMul(this.a).redAdd(k),x=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(k)));return 0===I.cmp(x)},v(O,h.BasePoint),b.prototype.pointFromJSON=function(w){return O.fromJSON(this,w)},b.prototype.point=function(w,f,k,I){return new O(this,w,f,k,I)},O.fromJSON=function(w,f){return new O(w,f[0],f[1],f[2])},O.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},O.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},O.prototype._extDbl=function(){var w=this.x.redSqr(),f=this.y.redSqr(),k=this.z.redSqr();k=k.redIAdd(k);var I=this.curve._mulA(w),x=this.x.redAdd(this.y).redSqr().redISub(w).redISub(f),g=I.redAdd(f),C=g.redSub(k),F=I.redSub(f),Y=x.redMul(C),Q=g.redMul(F),se=x.redMul(F),ie=C.redMul(g);return this.curve.point(Y,Q,ie,se)},O.prototype._projDbl=function(){var w,f,k,I,x,g,C=this.x.redAdd(this.y).redSqr(),F=this.x.redSqr(),Y=this.y.redSqr();if(this.curve.twisted){var Q=(I=this.curve._mulA(F)).redAdd(Y);this.zOne?(w=C.redSub(F).redSub(Y).redMul(Q.redSub(this.curve.two)),f=Q.redMul(I.redSub(Y)),k=Q.redSqr().redSub(Q).redSub(Q)):(x=this.z.redSqr(),g=Q.redSub(x).redISub(x),w=C.redSub(F).redISub(Y).redMul(g),f=Q.redMul(I.redSub(Y)),k=Q.redMul(g))}else I=F.redAdd(Y),x=this.curve._mulC(this.z).redSqr(),g=I.redSub(x).redSub(x),w=this.curve._mulC(C.redISub(I)).redMul(g),f=this.curve._mulC(I).redMul(F.redISub(Y)),k=I.redMul(g);return this.curve.point(w,f,k)},O.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},O.prototype._extAdd=function(w){var f=this.y.redSub(this.x).redMul(w.y.redSub(w.x)),k=this.y.redAdd(this.x).redMul(w.y.redAdd(w.x)),I=this.t.redMul(this.curve.dd).redMul(w.t),x=this.z.redMul(w.z.redAdd(w.z)),g=k.redSub(f),C=x.redSub(I),F=x.redAdd(I),Y=k.redAdd(f),Q=g.redMul(C),se=F.redMul(Y),ie=g.redMul(Y),ee=C.redMul(F);return this.curve.point(Q,se,ee,ie)},O.prototype._projAdd=function(w){var f,k,I=this.z.redMul(w.z),x=I.redSqr(),g=this.x.redMul(w.x),C=this.y.redMul(w.y),F=this.curve.d.redMul(g).redMul(C),Y=x.redSub(F),Q=x.redAdd(F),se=this.x.redAdd(this.y).redMul(w.x.redAdd(w.y)).redISub(g).redISub(C),ie=I.redMul(Y).redMul(se);return this.curve.twisted?(f=I.redMul(Q).redMul(C.redSub(this.curve._mulA(g))),k=Y.redMul(Q)):(f=I.redMul(Q).redMul(C.redSub(g)),k=this.curve._mulC(Y).redMul(Q)),this.curve.point(ie,f,k)},O.prototype.add=function(w){return this.isInfinity()?w:w.isInfinity()?this:this.curve.extended?this._extAdd(w):this._projAdd(w)},O.prototype.mul=function(w){return this._hasDoubles(w)?this.curve._fixedNafMul(this,w):this.curve._wnafMul(this,w)},O.prototype.mulAdd=function(w,f,k){return this.curve._wnafMulAdd(1,[this,f],[w,k],2,!1)},O.prototype.jmulAdd=function(w,f,k){return this.curve._wnafMulAdd(1,[this,f],[w,k],2,!0)},O.prototype.normalize=function(){if(this.zOne)return this;var w=this.z.redInvm();return this.x=this.x.redMul(w),this.y=this.y.redMul(w),this.t&&(this.t=this.t.redMul(w)),this.z=this.curve.one,this.zOne=!0,this},O.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},O.prototype.getX=function(){return this.normalize(),this.x.fromRed()},O.prototype.getY=function(){return this.normalize(),this.y.fromRed()},O.prototype.eq=function(w){return this===w||0===this.getX().cmp(w.getX())&&0===this.getY().cmp(w.getY())},O.prototype.eqXToP=function(w){var f=w.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(f))return!0;for(var k=w.clone(),I=this.curve.redN.redMul(this.z);;){if(k.iadd(this.curve.n),k.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(I),0===this.x.cmp(f))return!0}},O.prototype.toP=O.prototype.normalize,O.prototype.mixedAdd=O.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(o,E,R){"use strict";var m=R;m.base=o("./base"),m.short=o("./short"),m.mont=o("./mont"),m.edwards=o("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(o,E,R){"use strict";var m=o("bn.js"),_=o("inherits"),v=o("./base"),h=o("../utils");function s(O){v.call(this,"mont",O),this.a=new m(O.a,16).toRed(this.red),this.b=new m(O.b,16).toRed(this.red),this.i4=new m(4).toRed(this.red).redInvm(),this.two=new m(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function b(O,w,f){v.BasePoint.call(this,O,"projective"),null===w&&null===f?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new m(w,16),this.z=new m(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}_(s,v),E.exports=s,s.prototype.validate=function(O){var w=O.normalize().x,f=w.redSqr(),k=f.redMul(w).redAdd(f.redMul(this.a)).redAdd(w);return 0===k.redSqrt().redSqr().cmp(k)},_(b,v.BasePoint),s.prototype.decodePoint=function(O,w){return this.point(h.toArray(O,w),1)},s.prototype.point=function(O,w){return new b(this,O,w)},s.prototype.pointFromJSON=function(O){return b.fromJSON(this,O)},b.prototype.precompute=function(){},b.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},b.fromJSON=function(O,w){return new b(O,w[0],w[1]||O.one)},b.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},b.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},b.prototype.dbl=function(){var O=this.x.redAdd(this.z).redSqr(),w=this.x.redSub(this.z).redSqr(),f=O.redSub(w),k=O.redMul(w),I=f.redMul(w.redAdd(this.curve.a24.redMul(f)));return this.curve.point(k,I)},b.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.diffAdd=function(O,w){var f=this.x.redAdd(this.z),k=this.x.redSub(this.z),I=O.x.redAdd(O.z),x=O.x.redSub(O.z).redMul(f),g=I.redMul(k),C=w.z.redMul(x.redAdd(g).redSqr()),F=w.x.redMul(x.redISub(g).redSqr());return this.curve.point(C,F)},b.prototype.mul=function(O){for(var w=O.clone(),f=this,k=this.curve.point(null,null),I=[];0!==w.cmpn(0);w.iushrn(1))I.push(w.andln(1));for(var x=I.length-1;x>=0;x--)0===I[x]?(f=f.diffAdd(k,this),k=k.dbl()):(k=f.diffAdd(k,this),f=f.dbl());return k},b.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},b.prototype.eq=function(O){return 0===this.getX().cmp(O.getX())},b.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},b.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(o,E,R){"use strict";var m=o("../utils"),_=o("bn.js"),v=o("inherits"),h=o("./base"),s=m.assert;function b(f){h.call(this,"short",f),this.a=new _(f.a,16).toRed(this.red),this.b=new _(f.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(f),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function O(f,k,I,x){h.BasePoint.call(this,f,"affine"),null===k&&null===I?(this.x=null,this.y=null,this.inf=!0):(this.x=new _(k,16),this.y=new _(I,16),x&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function w(f,k,I,x){h.BasePoint.call(this,f,"jacobian"),null===k&&null===I&&null===x?(this.x=this.curve.one,this.y=this.curve.one,this.z=new _(0)):(this.x=new _(k,16),this.y=new _(I,16),this.z=new _(x,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}v(b,h),E.exports=b,b.prototype._getEndomorphism=function(f){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var k,I;if(f.beta)k=new _(f.beta,16).toRed(this.red);else{var x=this._getEndoRoots(this.p);k=(k=x[0].cmp(x[1])<0?x[0]:x[1]).toRed(this.red)}if(f.lambda)I=new _(f.lambda,16);else{var g=this._getEndoRoots(this.n);0===this.g.mul(g[0]).x.cmp(this.g.x.redMul(k))?I=g[0]:s(0===this.g.mul(I=g[1]).x.cmp(this.g.x.redMul(k)))}return{beta:k,lambda:I,basis:f.basis?f.basis.map(function(C){return{a:new _(C.a,16),b:new _(C.b,16)}}):this._getEndoBasis(I)}}},b.prototype._getEndoRoots=function(f){var k=f===this.p?this.red:_.mont(f),I=new _(2).toRed(k).redInvm(),x=I.redNeg(),g=new _(3).toRed(k).redNeg().redSqrt().redMul(I);return[x.redAdd(g).fromRed(),x.redSub(g).fromRed()]},b.prototype._getEndoBasis=function(f){for(var k,I,x,g,C,F,Y,Q,se,ie=this.n.ushrn(Math.floor(this.n.bitLength()/2)),ee=f,re=this.n.clone(),ne=new _(1),_e=new _(0),be=new _(0),oe=new _(1),me=0;0!==ee.cmpn(0);){var we=re.div(ee);Q=re.sub(we.mul(ee)),se=be.sub(we.mul(ne));var N=oe.sub(we.mul(_e));if(!x&&Q.cmp(ie)<0)k=Y.neg(),I=ne,x=Q.neg(),g=se;else if(x&&2==++me)break;Y=Q,re=ee,ee=Q,be=ne,ne=se,oe=_e,_e=N}C=Q.neg(),F=se;var G=x.sqr().add(g.sqr());return C.sqr().add(F.sqr()).cmp(G)>=0&&(C=k,F=I),x.negative&&(x=x.neg(),g=g.neg()),C.negative&&(C=C.neg(),F=F.neg()),[{a:x,b:g},{a:C,b:F}]},b.prototype._endoSplit=function(f){var k=this.endo.basis,I=k[0],x=k[1],g=x.b.mul(f).divRound(this.n),C=I.b.neg().mul(f).divRound(this.n),F=g.mul(I.a),Y=C.mul(x.a),Q=g.mul(I.b),se=C.mul(x.b);return{k1:f.sub(F).sub(Y),k2:Q.add(se).neg()}},b.prototype.pointFromX=function(f,k){(f=new _(f,16)).red||(f=f.toRed(this.red));var I=f.redSqr().redMul(f).redIAdd(f.redMul(this.a)).redIAdd(this.b),x=I.redSqrt();if(0!==x.redSqr().redSub(I).cmp(this.zero))throw new Error("invalid point");var g=x.fromRed().isOdd();return(k&&!g||!k&&g)&&(x=x.redNeg()),this.point(f,x)},b.prototype.validate=function(f){if(f.inf)return!0;var k=f.x,I=f.y,x=this.a.redMul(k),g=k.redSqr().redMul(k).redIAdd(x).redIAdd(this.b);return 0===I.redSqr().redISub(g).cmpn(0)},b.prototype._endoWnafMulAdd=function(f,k,I){for(var x=this._endoWnafT1,g=this._endoWnafT2,C=0;C<f.length;C++){var F=this._endoSplit(k[C]),Y=f[C],Q=Y._getBeta();F.k1.negative&&(F.k1.ineg(),Y=Y.neg(!0)),F.k2.negative&&(F.k2.ineg(),Q=Q.neg(!0)),x[2*C]=Y,x[2*C+1]=Q,g[2*C]=F.k1,g[2*C+1]=F.k2}for(var se=this._wnafMulAdd(1,x,g,2*C,I),ie=0;ie<2*C;ie++)x[ie]=null,g[ie]=null;return se},v(O,h.BasePoint),b.prototype.point=function(f,k,I){return new O(this,f,k,I)},b.prototype.pointFromJSON=function(f,k){return O.fromJSON(this,f,k)},O.prototype._getBeta=function(){if(this.curve.endo){var f=this.precomputed;if(f&&f.beta)return f.beta;var k=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(f){var I=this.curve,x=function(g){return I.point(g.x.redMul(I.endo.beta),g.y)};f.beta=k,k.precomputed={beta:null,naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(x)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(x)}}}return k}},O.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},O.fromJSON=function(f,k,I){"string"==typeof k&&(k=JSON.parse(k));var x=f.point(k[0],k[1],I);if(!k[2])return x;function g(F){return f.point(F[0],F[1],I)}var C=k[2];return x.precomputed={beta:null,doubles:C.doubles&&{step:C.doubles.step,points:[x].concat(C.doubles.points.map(g))},naf:C.naf&&{wnd:C.naf.wnd,points:[x].concat(C.naf.points.map(g))}},x},O.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},O.prototype.isInfinity=function(){return this.inf},O.prototype.add=function(f){if(this.inf)return f;if(f.inf)return this;if(this.eq(f))return this.dbl();if(this.neg().eq(f))return this.curve.point(null,null);if(0===this.x.cmp(f.x))return this.curve.point(null,null);var k=this.y.redSub(f.y);0!==k.cmpn(0)&&(k=k.redMul(this.x.redSub(f.x).redInvm()));var I=k.redSqr().redISub(this.x).redISub(f.x),x=k.redMul(this.x.redSub(I)).redISub(this.y);return this.curve.point(I,x)},O.prototype.dbl=function(){if(this.inf)return this;var f=this.y.redAdd(this.y);if(0===f.cmpn(0))return this.curve.point(null,null);var k=this.curve.a,I=this.x.redSqr(),x=f.redInvm(),g=I.redAdd(I).redIAdd(I).redIAdd(k).redMul(x),C=g.redSqr().redISub(this.x.redAdd(this.x)),F=g.redMul(this.x.redSub(C)).redISub(this.y);return this.curve.point(C,F)},O.prototype.getX=function(){return this.x.fromRed()},O.prototype.getY=function(){return this.y.fromRed()},O.prototype.mul=function(f){return f=new _(f,16),this.isInfinity()?this:this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve.endo?this.curve._endoWnafMulAdd([this],[f]):this.curve._wnafMul(this,f)},O.prototype.mulAdd=function(f,k,I){var x=[this,k],g=[f,I];return this.curve.endo?this.curve._endoWnafMulAdd(x,g):this.curve._wnafMulAdd(1,x,g,2)},O.prototype.jmulAdd=function(f,k,I){var x=[this,k],g=[f,I];return this.curve.endo?this.curve._endoWnafMulAdd(x,g,!0):this.curve._wnafMulAdd(1,x,g,2,!0)},O.prototype.eq=function(f){return this===f||this.inf===f.inf&&(this.inf||0===this.x.cmp(f.x)&&0===this.y.cmp(f.y))},O.prototype.neg=function(f){if(this.inf)return this;var k=this.curve.point(this.x,this.y.redNeg());if(f&&this.precomputed){var I=this.precomputed,x=function(g){return g.neg()};k.precomputed={naf:I.naf&&{wnd:I.naf.wnd,points:I.naf.points.map(x)},doubles:I.doubles&&{step:I.doubles.step,points:I.doubles.points.map(x)}}}return k},O.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(w,h.BasePoint),b.prototype.jpoint=function(f,k,I){return new w(this,f,k,I)},w.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f=this.z.redInvm(),k=f.redSqr(),I=this.x.redMul(k),x=this.y.redMul(k).redMul(f);return this.curve.point(I,x)},w.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},w.prototype.add=function(f){if(this.isInfinity())return f;if(f.isInfinity())return this;var k=f.z.redSqr(),I=this.z.redSqr(),x=this.x.redMul(k),g=f.x.redMul(I),C=this.y.redMul(k.redMul(f.z)),F=f.y.redMul(I.redMul(this.z)),Y=x.redSub(g),Q=C.redSub(F);if(0===Y.cmpn(0))return 0!==Q.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var se=Y.redSqr(),ie=se.redMul(Y),ee=x.redMul(se),re=Q.redSqr().redIAdd(ie).redISub(ee).redISub(ee),ne=Q.redMul(ee.redISub(re)).redISub(C.redMul(ie)),_e=this.z.redMul(f.z).redMul(Y);return this.curve.jpoint(re,ne,_e)},w.prototype.mixedAdd=function(f){if(this.isInfinity())return f.toJ();if(f.isInfinity())return this;var k=this.z.redSqr(),I=this.x,x=f.x.redMul(k),g=this.y,C=f.y.redMul(k).redMul(this.z),F=I.redSub(x),Y=g.redSub(C);if(0===F.cmpn(0))return 0!==Y.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Q=F.redSqr(),se=Q.redMul(F),ie=I.redMul(Q),ee=Y.redSqr().redIAdd(se).redISub(ie).redISub(ie),re=Y.redMul(ie.redISub(ee)).redISub(g.redMul(se)),ne=this.z.redMul(F);return this.curve.jpoint(ee,re,ne)},w.prototype.dblp=function(f){if(0===f)return this;if(this.isInfinity())return this;if(!f)return this.dbl();var k;if(this.curve.zeroA||this.curve.threeA){var I=this;for(k=0;k<f;k++)I=I.dbl();return I}var x=this.curve.a,g=this.curve.tinv,C=this.x,F=this.y,Y=this.z,Q=Y.redSqr().redSqr(),se=F.redAdd(F);for(k=0;k<f;k++){var ie=C.redSqr(),ee=se.redSqr(),re=ee.redSqr(),ne=ie.redAdd(ie).redIAdd(ie).redIAdd(x.redMul(Q)),_e=C.redMul(ee),be=ne.redSqr().redISub(_e.redAdd(_e)),oe=_e.redISub(be),me=ne.redMul(oe);me=me.redIAdd(me).redISub(re);var we=se.redMul(Y);k+1<f&&(Q=Q.redMul(re)),C=be,Y=we,se=me}return this.curve.jpoint(C,se.redMul(g),Y)},w.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},w.prototype._zeroDbl=function(){var f,k,I;if(this.zOne){var x=this.x.redSqr(),g=this.y.redSqr(),C=g.redSqr(),F=this.x.redAdd(g).redSqr().redISub(x).redISub(C);F=F.redIAdd(F);var Y=x.redAdd(x).redIAdd(x),Q=Y.redSqr().redISub(F).redISub(F),se=C.redIAdd(C);se=(se=se.redIAdd(se)).redIAdd(se),f=Q,k=Y.redMul(F.redISub(Q)).redISub(se),I=this.y.redAdd(this.y)}else{var ie=this.x.redSqr(),ee=this.y.redSqr(),re=ee.redSqr(),ne=this.x.redAdd(ee).redSqr().redISub(ie).redISub(re);ne=ne.redIAdd(ne);var _e=ie.redAdd(ie).redIAdd(ie),be=_e.redSqr(),oe=re.redIAdd(re);oe=(oe=oe.redIAdd(oe)).redIAdd(oe),f=be.redISub(ne).redISub(ne),k=_e.redMul(ne.redISub(f)).redISub(oe),I=(I=this.y.redMul(this.z)).redIAdd(I)}return this.curve.jpoint(f,k,I)},w.prototype._threeDbl=function(){var f,k,I;if(this.zOne){var x=this.x.redSqr(),g=this.y.redSqr(),C=g.redSqr(),F=this.x.redAdd(g).redSqr().redISub(x).redISub(C);F=F.redIAdd(F);var Y=x.redAdd(x).redIAdd(x).redIAdd(this.curve.a),Q=Y.redSqr().redISub(F).redISub(F);f=Q;var se=C.redIAdd(C);se=(se=se.redIAdd(se)).redIAdd(se),k=Y.redMul(F.redISub(Q)).redISub(se),I=this.y.redAdd(this.y)}else{var ie=this.z.redSqr(),ee=this.y.redSqr(),re=this.x.redMul(ee),ne=this.x.redSub(ie).redMul(this.x.redAdd(ie));ne=ne.redAdd(ne).redIAdd(ne);var _e=re.redIAdd(re),be=(_e=_e.redIAdd(_e)).redAdd(_e);f=ne.redSqr().redISub(be),I=this.y.redAdd(this.z).redSqr().redISub(ee).redISub(ie);var oe=ee.redSqr();oe=(oe=(oe=oe.redIAdd(oe)).redIAdd(oe)).redIAdd(oe),k=ne.redMul(_e.redISub(f)).redISub(oe)}return this.curve.jpoint(f,k,I)},w.prototype._dbl=function(){var f=this.curve.a,k=this.x,I=this.y,x=this.z,g=x.redSqr().redSqr(),C=k.redSqr(),F=I.redSqr(),Y=C.redAdd(C).redIAdd(C).redIAdd(f.redMul(g)),Q=k.redAdd(k),se=(Q=Q.redIAdd(Q)).redMul(F),ie=Y.redSqr().redISub(se.redAdd(se)),ee=se.redISub(ie),re=F.redSqr();re=(re=(re=re.redIAdd(re)).redIAdd(re)).redIAdd(re);var ne=Y.redMul(ee).redISub(re),_e=I.redAdd(I).redMul(x);return this.curve.jpoint(ie,ne,_e)},w.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var f=this.x.redSqr(),k=this.y.redSqr(),I=this.z.redSqr(),x=k.redSqr(),g=f.redAdd(f).redIAdd(f),C=g.redSqr(),F=this.x.redAdd(k).redSqr().redISub(f).redISub(x),Y=(F=(F=(F=F.redIAdd(F)).redAdd(F).redIAdd(F)).redISub(C)).redSqr(),Q=x.redIAdd(x);Q=(Q=(Q=Q.redIAdd(Q)).redIAdd(Q)).redIAdd(Q);var se=g.redIAdd(F).redSqr().redISub(C).redISub(Y).redISub(Q),ie=k.redMul(se);ie=(ie=ie.redIAdd(ie)).redIAdd(ie);var ee=this.x.redMul(Y).redISub(ie);ee=(ee=ee.redIAdd(ee)).redIAdd(ee);var re=this.y.redMul(se.redMul(Q.redISub(se)).redISub(F.redMul(Y)));re=(re=(re=re.redIAdd(re)).redIAdd(re)).redIAdd(re);var ne=this.z.redAdd(F).redSqr().redISub(I).redISub(Y);return this.curve.jpoint(ee,re,ne)},w.prototype.mul=function(f,k){return f=new _(f,k),this.curve._wnafMul(this,f)},w.prototype.eq=function(f){if("affine"===f.type)return this.eq(f.toJ());if(this===f)return!0;var k=this.z.redSqr(),I=f.z.redSqr();if(0!==this.x.redMul(I).redISub(f.x.redMul(k)).cmpn(0))return!1;var x=k.redMul(this.z),g=I.redMul(f.z);return 0===this.y.redMul(g).redISub(f.y.redMul(x)).cmpn(0)},w.prototype.eqXToP=function(f){var k=this.z.redSqr(),I=f.toRed(this.curve.red).redMul(k);if(0===this.x.cmp(I))return!0;for(var x=f.clone(),g=this.curve.redN.redMul(k);;){if(x.iadd(this.curve.n),x.cmp(this.curve.p)>=0)return!1;if(I.redIAdd(g),0===this.x.cmp(I))return!0}},w.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},w.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(o,E,R){"use strict";var m,_=R,v=o("hash.js"),h=o("./curve"),s=o("./utils").assert;function b(w){this.curve="short"===w.type?new h.short(w):"edwards"===w.type?new h.edwards(w):new h.mont(w),this.g=this.curve.g,this.n=this.curve.n,this.hash=w.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function O(w,f){Object.defineProperty(_,w,{configurable:!0,enumerable:!0,get:function(){var k=new b(f);return Object.defineProperty(_,w,{configurable:!0,enumerable:!0,value:k}),k}})}_.PresetCurve=b,O("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:v.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),O("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:v.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),O("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:v.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),O("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:v.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),O("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:v.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),O("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:v.sha256,gRed:!1,g:["9"]}),O("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:v.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{m=o("./precomputed/secp256k1")}catch{m=void 0}O("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:v.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",m]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(o,E,R){"use strict";var m=o("bn.js"),_=o("hmac-drbg"),v=o("../utils"),h=o("../curves"),s=o("brorand"),b=v.assert,O=o("./key"),w=o("./signature");function f(k){if(!(this instanceof f))return new f(k);"string"==typeof k&&(b(Object.prototype.hasOwnProperty.call(h,k),"Unknown curve "+k),k=h[k]),k instanceof h.PresetCurve&&(k={curve:k}),this.curve=k.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=k.curve.g,this.g.precompute(k.curve.n.bitLength()+1),this.hash=k.hash||k.curve.hash}E.exports=f,f.prototype.keyPair=function(k){return new O(this,k)},f.prototype.keyFromPrivate=function(k,I){return O.fromPrivate(this,k,I)},f.prototype.keyFromPublic=function(k,I){return O.fromPublic(this,k,I)},f.prototype.genKeyPair=function(k){k||(k={});for(var I=new _({hash:this.hash,pers:k.pers,persEnc:k.persEnc||"utf8",entropy:k.entropy||s(this.hash.hmacStrength),entropyEnc:k.entropy&&k.entropyEnc||"utf8",nonce:this.n.toArray()}),x=this.n.byteLength(),g=this.n.sub(new m(2));;){var C=new m(I.generate(x));if(!(C.cmp(g)>0))return C.iaddn(1),this.keyFromPrivate(C)}},f.prototype._truncateToN=function(k,I){var x=8*k.byteLength()-this.n.bitLength();return x>0&&(k=k.ushrn(x)),!I&&k.cmp(this.n)>=0?k.sub(this.n):k},f.prototype.sign=function(k,I,x,g){"object"==typeof x&&(g=x,x=null),g||(g={}),I=this.keyFromPrivate(I,x),k=this._truncateToN(new m(k,16));for(var C=this.n.byteLength(),F=I.getPrivate().toArray("be",C),Y=k.toArray("be",C),Q=new _({hash:this.hash,entropy:F,nonce:Y,pers:g.pers,persEnc:g.persEnc||"utf8"}),se=this.n.sub(new m(1)),ie=0;;ie++){var ee=g.k?g.k(ie):new m(Q.generate(this.n.byteLength()));if(!((ee=this._truncateToN(ee,!0)).cmpn(1)<=0||ee.cmp(se)>=0)){var re=this.g.mul(ee);if(!re.isInfinity()){var ne=re.getX(),_e=ne.umod(this.n);if(0!==_e.cmpn(0)){var be=ee.invm(this.n).mul(_e.mul(I.getPrivate()).iadd(k));if(0!==(be=be.umod(this.n)).cmpn(0)){var oe=(re.getY().isOdd()?1:0)|(0!==ne.cmp(_e)?2:0);return g.canonical&&be.cmp(this.nh)>0&&(be=this.n.sub(be),oe^=1),new w({r:_e,s:be,recoveryParam:oe})}}}}}},f.prototype.verify=function(k,I,x,g){k=this._truncateToN(new m(k,16)),x=this.keyFromPublic(x,g);var C=(I=new w(I,"hex")).r,F=I.s;if(C.cmpn(1)<0||C.cmp(this.n)>=0||F.cmpn(1)<0||F.cmp(this.n)>=0)return!1;var Y,Q=F.invm(this.n),se=Q.mul(k).umod(this.n),ie=Q.mul(C).umod(this.n);return this.curve._maxwellTrick?!(Y=this.g.jmulAdd(se,x.getPublic(),ie)).isInfinity()&&Y.eqXToP(C):!(Y=this.g.mulAdd(se,x.getPublic(),ie)).isInfinity()&&0===Y.getX().umod(this.n).cmp(C)},f.prototype.recoverPubKey=function(k,I,x,g){b((3&x)===x,"The recovery param is more than two bits"),I=new w(I,g);var C=this.n,F=new m(k),Y=I.r,Q=I.s,se=1&x,ie=x>>1;if(Y.cmp(this.curve.p.umod(this.curve.n))>=0&&ie)throw new Error("Unable to find sencond key candinate");Y=this.curve.pointFromX(ie?Y.add(this.curve.n):Y,se);var ee=I.r.invm(C),re=C.sub(F).mul(ee).umod(C),ne=Q.mul(ee).umod(C);return this.g.mulAdd(re,Y,ne)},f.prototype.getKeyRecoveryParam=function(k,I,x,g){if(null!==(I=new w(I,g)).recoveryParam)return I.recoveryParam;for(var C=0;C<4;C++){var F;try{F=this.recoverPubKey(k,I,C)}catch{continue}if(F.eq(x))return C}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(o,E,R){"use strict";var m=o("bn.js"),_=o("../utils").assert;function v(h,s){this.ec=h,this.priv=null,this.pub=null,s.priv&&this._importPrivate(s.priv,s.privEnc),s.pub&&this._importPublic(s.pub,s.pubEnc)}E.exports=v,v.fromPublic=function(h,s,b){return s instanceof v?s:new v(h,{pub:s,pubEnc:b})},v.fromPrivate=function(h,s,b){return s instanceof v?s:new v(h,{priv:s,privEnc:b})},v.prototype.validate=function(){var h=this.getPublic();return h.isInfinity()?{result:!1,reason:"Invalid public key"}:h.validate()?h.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},v.prototype.getPublic=function(h,s){return"string"==typeof h&&(s=h,h=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),s?this.pub.encode(s,h):this.pub},v.prototype.getPrivate=function(h){return"hex"===h?this.priv.toString(16,2):this.priv},v.prototype._importPrivate=function(h,s){this.priv=new m(h,s||16),this.priv=this.priv.umod(this.ec.curve.n)},v.prototype._importPublic=function(h,s){if(h.x||h.y)return"mont"===this.ec.curve.type?_(h.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||_(h.x&&h.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(h.x,h.y));this.pub=this.ec.curve.decodePoint(h,s)},v.prototype.derive=function(h){return h.validate()||_(h.validate(),"public point not validated"),h.mul(this.priv).getX()},v.prototype.sign=function(h,s,b){return this.ec.sign(h,this,s,b)},v.prototype.verify=function(h,s){return this.ec.verify(h,s,this)},v.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(o,E,R){"use strict";var m=o("bn.js"),_=o("../utils"),v=_.assert;function h(f,k){if(f instanceof h)return f;this._importDER(f,k)||(v(f.r&&f.s,"Signature without r or s"),this.r=new m(f.r,16),this.s=new m(f.s,16),this.recoveryParam=void 0===f.recoveryParam?null:f.recoveryParam)}function s(){this.place=0}function b(f,k){var I=f[k.place++];if(!(128&I))return I;var x=15&I;if(0===x||x>4)return!1;for(var g=0,C=0,F=k.place;C<x;C++,F++)g<<=8,g|=f[F],g>>>=0;return!(g<=127)&&(k.place=F,g)}function O(f){for(var k=0,I=f.length-1;!f[k]&&!(128&f[k+1])&&k<I;)k++;return 0===k?f:f.slice(k)}function w(f,k){if(k<128)f.push(k);else{var I=1+(Math.log(k)/Math.LN2>>>3);for(f.push(128|I);--I;)f.push(k>>>(I<<3)&255);f.push(k)}}E.exports=h,h.prototype._importDER=function(f,k){f=_.toArray(f,k);var I=new s;if(48!==f[I.place++])return!1;var x=b(f,I);if(!1===x||x+I.place!==f.length||2!==f[I.place++])return!1;var g=b(f,I);if(!1===g)return!1;var C=f.slice(I.place,g+I.place);if(I.place+=g,2!==f[I.place++])return!1;var F=b(f,I);if(!1===F||f.length!==F+I.place)return!1;var Y=f.slice(I.place,F+I.place);if(0===C[0]){if(!(128&C[1]))return!1;C=C.slice(1)}if(0===Y[0]){if(!(128&Y[1]))return!1;Y=Y.slice(1)}return this.r=new m(C),this.s=new m(Y),this.recoveryParam=null,!0},h.prototype.toDER=function(f){var k=this.r.toArray(),I=this.s.toArray();for(128&k[0]&&(k=[0].concat(k)),128&I[0]&&(I=[0].concat(I)),k=O(k),I=O(I);!(I[0]||128&I[1]);)I=I.slice(1);var x=[2];w(x,k.length),(x=x.concat(k)).push(2),w(x,I.length);var g=x.concat(I),C=[48];return w(C,g.length),C=C.concat(g),_.encode(C,f)}},{"../utils":419,"bn.js":420}],415:[function(o,E,R){"use strict";var m=o("hash.js"),_=o("../curves"),v=o("../utils"),h=v.assert,s=v.parseBytes,b=o("./key"),O=o("./signature");function w(f){if(h("ed25519"===f,"only tested with ed25519 so far"),!(this instanceof w))return new w(f);this.curve=f=_[f].curve,this.g=f.g,this.g.precompute(f.n.bitLength()+1),this.pointClass=f.point().constructor,this.encodingLength=Math.ceil(f.n.bitLength()/8),this.hash=m.sha512}E.exports=w,w.prototype.sign=function(f,k){f=s(f);var I=this.keyFromSecret(k),x=this.hashInt(I.messagePrefix(),f),g=this.g.mul(x),C=this.encodePoint(g),F=this.hashInt(C,I.pubBytes(),f).mul(I.priv()),Y=x.add(F).umod(this.curve.n);return this.makeSignature({R:g,S:Y,Rencoded:C})},w.prototype.verify=function(f,k,I){f=s(f),k=this.makeSignature(k);var x=this.keyFromPublic(I),g=this.hashInt(k.Rencoded(),x.pubBytes(),f),C=this.g.mul(k.S());return k.R().add(x.pub().mul(g)).eq(C)},w.prototype.hashInt=function(){for(var f=this.hash(),k=0;k<arguments.length;k++)f.update(arguments[k]);return v.intFromLE(f.digest()).umod(this.curve.n)},w.prototype.keyFromPublic=function(f){return b.fromPublic(this,f)},w.prototype.keyFromSecret=function(f){return b.fromSecret(this,f)},w.prototype.makeSignature=function(f){return f instanceof O?f:new O(this,f)},w.prototype.encodePoint=function(f){var k=f.getY().toArray("le",this.encodingLength);return k[this.encodingLength-1]|=f.getX().isOdd()?128:0,k},w.prototype.decodePoint=function(f){var k=(f=v.parseBytes(f)).length-1,I=f.slice(0,k).concat(-129&f[k]),x=!!(128&f[k]),g=v.intFromLE(I);return this.curve.pointFromY(g,x)},w.prototype.encodeInt=function(f){return f.toArray("le",this.encodingLength)},w.prototype.decodeInt=function(f){return v.intFromLE(f)},w.prototype.isPoint=function(f){return f instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(o,E,R){"use strict";var m=o("../utils"),_=m.assert,v=m.parseBytes,h=m.cachedProperty;function s(b,O){this.eddsa=b,this._secret=v(O.secret),b.isPoint(O.pub)?this._pub=O.pub:this._pubBytes=v(O.pub)}s.fromPublic=function(b,O){return O instanceof s?O:new s(b,{pub:O})},s.fromSecret=function(b,O){return O instanceof s?O:new s(b,{secret:O})},s.prototype.secret=function(){return this._secret},h(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),h(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),h(s,"privBytes",function(){var b=this.eddsa,O=this.hash(),w=b.encodingLength-1,f=O.slice(0,b.encodingLength);return f[0]&=248,f[w]&=127,f[w]|=64,f}),h(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),h(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),h(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(b){return _(this._secret,"KeyPair can only verify"),this.eddsa.sign(b,this)},s.prototype.verify=function(b,O){return this.eddsa.verify(b,O,this)},s.prototype.getSecret=function(b){return _(this._secret,"KeyPair is public only"),m.encode(this.secret(),b)},s.prototype.getPublic=function(b){return m.encode(this.pubBytes(),b)},E.exports=s},{"../utils":419}],417:[function(o,E,R){"use strict";var m=o("bn.js"),_=o("../utils"),v=_.assert,h=_.cachedProperty,s=_.parseBytes;function b(O,w){this.eddsa=O,"object"!=typeof w&&(w=s(w)),Array.isArray(w)&&(w={R:w.slice(0,O.encodingLength),S:w.slice(O.encodingLength)}),v(w.R&&w.S,"Signature without R or S"),O.isPoint(w.R)&&(this._R=w.R),w.S instanceof m&&(this._S=w.S),this._Rencoded=Array.isArray(w.R)?w.R:w.Rencoded,this._Sencoded=Array.isArray(w.S)?w.S:w.Sencoded}h(b,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),h(b,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),h(b,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),h(b,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),b.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},b.prototype.toHex=function(){return _.encode(this.toBytes(),"hex").toUpperCase()},E.exports=b},{"../utils":419,"bn.js":420}],418:[function(o,E,R){"use strict";E.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(o,E,R){"use strict";var m=R,_=o("bn.js"),v=o("minimalistic-assert"),h=o("minimalistic-crypto-utils");m.assert=v,m.toArray=h.toArray,m.zero2=h.zero2,m.toHex=h.toHex,m.encode=h.encode,m.getNAF=function(s,b,O){var w=new Array(Math.max(s.bitLength(),O)+1);w.fill(0);for(var f=1<<b+1,k=s.clone(),I=0;I<w.length;I++){var x,g=k.andln(f-1);k.isOdd()?k.isubn(x=g>(f>>1)-1?(f>>1)-g:g):x=0,w[I]=x,k.iushrn(1)}return w},m.getJSF=function(s,b){var O=[[],[]];s=s.clone(),b=b.clone();for(var w,f=0,k=0;s.cmpn(-f)>0||b.cmpn(-k)>0;){var I,x,g=s.andln(3)+f&3,C=b.andln(3)+k&3;3===g&&(g=-1),3===C&&(C=-1),I=1&g?3!=(w=s.andln(7)+f&7)&&5!==w||2!==C?g:-g:0,O[0].push(I),x=1&C?3!=(w=b.andln(7)+k&7)&&5!==w||2!==g?C:-C:0,O[1].push(x),2*f===I+1&&(f=1-f),2*k===x+1&&(k=1-k),s.iushrn(1),b.iushrn(1)}return O},m.cachedProperty=function(s,b,O){var w="_"+b;s.prototype[b]=function(){return void 0!==this[w]?this[w]:this[w]=O.call(this)}},m.parseBytes=function(s){return"string"==typeof s?m.toArray(s,"hex"):s},m.intFromLE=function(s){return new _(s,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(o,E,R){arguments[4][184][0].apply(R,arguments)},{buffer:188,dup:184}],421:[function(o,E,R){E.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(o,E,R){"use strict";var m=Object.create||function(ee){var re=function(){};return re.prototype=ee,new re},_=Object.keys||function(ee){var re=[];for(var ne in ee)Object.prototype.hasOwnProperty.call(ee,ne)&&re.push(ne);return ne},v=Function.prototype.bind||function(ee){var re=this;return function(){return re.apply(ee,arguments)}};function h(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=m(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}E.exports=h,h.EventEmitter=h,h.prototype._events=void 0,h.prototype._maxListeners=void 0;var s,b=10;try{var O={};Object.defineProperty&&Object.defineProperty(O,"x",{value:0}),s=0===O.x}catch{s=!1}function w(ee){return void 0===ee._maxListeners?h.defaultMaxListeners:ee._maxListeners}function C(ee,re,ne,_e){var be,oe,me;if("function"!=typeof ne)throw new TypeError('"listener" argument must be a function');if((oe=ee._events)?(oe.newListener&&(ee.emit("newListener",re,ne.listener?ne.listener:ne),oe=ee._events),me=oe[re]):(oe=ee._events=m(null),ee._eventsCount=0),me){if("function"==typeof me?me=oe[re]=_e?[ne,me]:[me,ne]:_e?me.unshift(ne):me.push(ne),!me.warned&&(be=w(ee))&&be>0&&me.length>be){me.warned=!0;var we=new Error("Possible EventEmitter memory leak detected. "+me.length+' "'+String(re)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');we.name="MaxListenersExceededWarning",we.emitter=ee,we.type=re,we.count=me.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",we.name,we.message)}}else me=oe[re]=ne,++ee._eventsCount;return ee}function F(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var ee=new Array(arguments.length),re=0;re<ee.length;++re)ee[re]=arguments[re];this.listener.apply(this.target,ee)}}function Y(ee,re,ne){var _e={fired:!1,wrapFn:void 0,target:ee,type:re,listener:ne},be=v.call(F,_e);return be.listener=ne,_e.wrapFn=be,be}function Q(ee,re,ne){var _e=ee._events;if(!_e)return[];var be=_e[re];return be?"function"==typeof be?ne?[be.listener||be]:[be]:ne?function(oe){for(var me=new Array(oe.length),we=0;we<me.length;++we)me[we]=oe[we].listener||oe[we];return me}(be):ie(be,be.length):[]}function se(ee){var re=this._events;if(re){var ne=re[ee];if("function"==typeof ne)return 1;if(ne)return ne.length}return 0}function ie(ee,re){for(var ne=new Array(re),_e=0;_e<re;++_e)ne[_e]=ee[_e];return ne}s?Object.defineProperty(h,"defaultMaxListeners",{enumerable:!0,get:function(){return b},set:function(ee){if("number"!=typeof ee||ee<0||ee!=ee)throw new TypeError('"defaultMaxListeners" must be a positive number');b=ee}}):h.defaultMaxListeners=b,h.prototype.setMaxListeners=function(ee){if("number"!=typeof ee||ee<0||isNaN(ee))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=ee,this},h.prototype.getMaxListeners=function(){return w(this)},h.prototype.emit=function(ee){var re,ne,_e,be,oe,me,we="error"===ee;if(me=this._events)we=we&&null==me.error;else if(!we)return!1;if(we){if(arguments.length>1&&(re=arguments[1]),re instanceof Error)throw re;var N=new Error('Unhandled "error" event. ('+re+")");throw N.context=re,N}if(!(ne=me[ee]))return!1;var G="function"==typeof ne;switch(_e=arguments.length){case 1:!function f(ee,re,ne){if(re)ee.call(ne);else for(var _e=ee.length,be=ie(ee,_e),oe=0;oe<_e;++oe)be[oe].call(ne)}(ne,G,this);break;case 2:!function k(ee,re,ne,_e){if(re)ee.call(ne,_e);else for(var be=ee.length,oe=ie(ee,be),me=0;me<be;++me)oe[me].call(ne,_e)}(ne,G,this,arguments[1]);break;case 3:!function I(ee,re,ne,_e,be){if(re)ee.call(ne,_e,be);else for(var oe=ee.length,me=ie(ee,oe),we=0;we<oe;++we)me[we].call(ne,_e,be)}(ne,G,this,arguments[1],arguments[2]);break;case 4:!function x(ee,re,ne,_e,be,oe){if(re)ee.call(ne,_e,be,oe);else for(var me=ee.length,we=ie(ee,me),N=0;N<me;++N)we[N].call(ne,_e,be,oe)}(ne,G,this,arguments[1],arguments[2],arguments[3]);break;default:for(be=new Array(_e-1),oe=1;oe<_e;oe++)be[oe-1]=arguments[oe];!function g(ee,re,ne,_e){if(re)ee.apply(ne,_e);else for(var be=ee.length,oe=ie(ee,be),me=0;me<be;++me)oe[me].apply(ne,_e)}(ne,G,this,be)}return!0},h.prototype.on=h.prototype.addListener=function(ee,re){return C(this,ee,re,!1)},h.prototype.prependListener=function(ee,re){return C(this,ee,re,!0)},h.prototype.once=function(ee,re){if("function"!=typeof re)throw new TypeError('"listener" argument must be a function');return this.on(ee,Y(this,ee,re)),this},h.prototype.prependOnceListener=function(ee,re){if("function"!=typeof re)throw new TypeError('"listener" argument must be a function');return this.prependListener(ee,Y(this,ee,re)),this},h.prototype.removeListener=function(ee,re){var ne,_e,be,oe,me;if("function"!=typeof re)throw new TypeError('"listener" argument must be a function');if(!(_e=this._events))return this;if(!(ne=_e[ee]))return this;if(ne===re||ne.listener===re)0==--this._eventsCount?this._events=m(null):(delete _e[ee],_e.removeListener&&this.emit("removeListener",ee,ne.listener||re));else if("function"!=typeof ne){for(be=-1,oe=ne.length-1;oe>=0;oe--)if(ne[oe]===re||ne[oe].listener===re){me=ne[oe].listener,be=oe;break}if(be<0)return this;0===be?ne.shift():function(we,N){for(var G=N,W=G+1,z=we.length;W<z;G+=1,W+=1)we[G]=we[W];we.pop()}(ne,be),1===ne.length&&(_e[ee]=ne[0]),_e.removeListener&&this.emit("removeListener",ee,me||re)}return this},h.prototype.removeAllListeners=function(ee){var re,ne,_e;if(!(ne=this._events))return this;if(!ne.removeListener)return 0===arguments.length?(this._events=m(null),this._eventsCount=0):ne[ee]&&(0==--this._eventsCount?this._events=m(null):delete ne[ee]),this;if(0===arguments.length){var be,oe=_(ne);for(_e=0;_e<oe.length;++_e)"removeListener"!==(be=oe[_e])&&this.removeAllListeners(be);return this.removeAllListeners("removeListener"),this._events=m(null),this._eventsCount=0,this}if("function"==typeof(re=ne[ee]))this.removeListener(ee,re);else if(re)for(_e=re.length-1;_e>=0;_e--)this.removeListener(ee,re[_e]);return this},h.prototype.listeners=function(ee){return Q(this,ee,!0)},h.prototype.rawListeners=function(ee){return Q(this,ee,!1)},h.listenerCount=function(ee,re){return"function"==typeof ee.listenerCount?ee.listenerCount(re):se.call(ee,re)},h.prototype.listenerCount=se,h.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer,_=o("md5.js");E.exports=function(v,h,s,b){if(m.isBuffer(v)||(v=m.from(v,"binary")),h&&(m.isBuffer(h)||(h=m.from(h,"binary")),8!==h.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var O=s/8,w=m.alloc(O),f=m.alloc(b||0),k=m.alloc(0);O>0||b>0;){var I=new _;I.update(k),I.update(v),h&&I.update(h),k=I.digest();var x=0;if(O>0){var g=w.length-O;x=Math.min(O,k.length),k.copy(w,g,0,x),O-=x}if(x<k.length&&b>0){var C=f.length-b,F=Math.min(b,k.length-x);k.copy(f,C,x,x+F),b-=F}}return k.fill(0),{key:w,iv:f}}},{"md5.js":450,"safe-buffer":494}],424:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.CsvParserStream=R.ParserOptions=R.parseFile=R.parseStream=R.parseString=R.parse=R.FormatterOptions=R.CsvFormatterStream=R.writeToPath=R.writeToString=R.writeToBuffer=R.writeToStream=R.write=R.format=void 0;var m=o("@fast-csv/format");Object.defineProperty(R,"format",{enumerable:!0,get:function(){return m.format}}),Object.defineProperty(R,"write",{enumerable:!0,get:function(){return m.write}}),Object.defineProperty(R,"writeToStream",{enumerable:!0,get:function(){return m.writeToStream}}),Object.defineProperty(R,"writeToBuffer",{enumerable:!0,get:function(){return m.writeToBuffer}}),Object.defineProperty(R,"writeToString",{enumerable:!0,get:function(){return m.writeToString}}),Object.defineProperty(R,"writeToPath",{enumerable:!0,get:function(){return m.writeToPath}}),Object.defineProperty(R,"CsvFormatterStream",{enumerable:!0,get:function(){return m.CsvFormatterStream}}),Object.defineProperty(R,"FormatterOptions",{enumerable:!0,get:function(){return m.FormatterOptions}});var _=o("@fast-csv/parse");Object.defineProperty(R,"parse",{enumerable:!0,get:function(){return _.parse}}),Object.defineProperty(R,"parseString",{enumerable:!0,get:function(){return _.parseString}}),Object.defineProperty(R,"parseStream",{enumerable:!0,get:function(){return _.parseStream}}),Object.defineProperty(R,"parseFile",{enumerable:!0,get:function(){return _.parseFile}}),Object.defineProperty(R,"ParserOptions",{enumerable:!0,get:function(){return _.ParserOptions}}),Object.defineProperty(R,"CsvParserStream",{enumerable:!0,get:function(){return _.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer,_=o("readable-stream").Transform;function v(h){_.call(this),this._block=m.allocUnsafe(h),this._blockSize=h,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}o("inherits")(v,_),v.prototype._transform=function(h,s,b){var O=null;try{this.update(h,s)}catch(w){O=w}b(O)},v.prototype._flush=function(h){var s=null;try{this.push(this.digest())}catch(b){s=b}h(s)},v.prototype.update=function(h,s){if(function(I,x){if(!m.isBuffer(I)&&"string"!=typeof I)throw new TypeError("Data must be a string or a buffer")}(h),this._finalized)throw new Error("Digest already called");m.isBuffer(h)||(h=m.from(h,s));for(var b=this._block,O=0;this._blockOffset+h.length-O>=this._blockSize;){for(var w=this._blockOffset;w<this._blockSize;)b[w++]=h[O++];this._update(),this._blockOffset=0}for(;O<h.length;)b[this._blockOffset++]=h[O++];for(var f=0,k=8*h.length;k>0;++f)this._length[f]+=k,(k=this._length[f]/4294967296|0)>0&&(this._length[f]-=4294967296*k);return this},v.prototype._update=function(){throw new Error("_update is not implemented")},v.prototype.digest=function(h){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var s=this._digest();void 0!==h&&(s=s.toString(h)),this._block.fill(0),this._blockOffset=0;for(var b=0;b<4;++b)this._length[b]=0;return s},v.prototype._digest=function(){throw new Error("_digest is not implemented")},E.exports=v},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(o,E,R){"use strict";var m=R;m.utils=o("./hash/utils"),m.common=o("./hash/common"),m.sha=o("./hash/sha"),m.ripemd=o("./hash/ripemd"),m.hmac=o("./hash/hmac"),m.sha1=m.sha.sha1,m.sha256=m.sha.sha256,m.sha224=m.sha.sha224,m.sha384=m.sha.sha384,m.sha512=m.sha.sha512,m.ripemd160=m.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(o,E,R){"use strict";var m=o("./utils"),_=o("minimalistic-assert");function v(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}R.BlockHash=v,v.prototype.update=function(h,s){if(h=m.toArray(h,s),this.pending=this.pending?this.pending.concat(h):h,this.pendingTotal+=h.length,this.pending.length>=this._delta8){var b=(h=this.pending).length%this._delta8;this.pending=h.slice(h.length-b,h.length),0===this.pending.length&&(this.pending=null),h=m.join32(h,0,h.length-b,this.endian);for(var O=0;O<h.length;O+=this._delta32)this._update(h,O,O+this._delta32)}return this},v.prototype.digest=function(h){return this.update(this._pad()),_(null===this.pending),this._digest(h)},v.prototype._pad=function(){var h=this.pendingTotal,s=this._delta8,b=s-(h+this.padLength)%s,O=new Array(b+this.padLength);O[0]=128;for(var w=1;w<b;w++)O[w]=0;if(h<<=3,"big"===this.endian){for(var f=8;f<this.padLength;f++)O[w++]=0;O[w++]=0,O[w++]=0,O[w++]=0,O[w++]=0,O[w++]=h>>>24&255,O[w++]=h>>>16&255,O[w++]=h>>>8&255,O[w++]=255&h}else for(O[w++]=255&h,O[w++]=h>>>8&255,O[w++]=h>>>16&255,O[w++]=h>>>24&255,O[w++]=0,O[w++]=0,O[w++]=0,O[w++]=0,f=8;f<this.padLength;f++)O[w++]=0;return O}},{"./utils":437,"minimalistic-assert":453}],428:[function(o,E,R){"use strict";var m=o("./utils"),_=o("minimalistic-assert");function v(h,s,b){if(!(this instanceof v))return new v(h,s,b);this.Hash=h,this.blockSize=h.blockSize/8,this.outSize=h.outSize/8,this.inner=null,this.outer=null,this._init(m.toArray(s,b))}E.exports=v,v.prototype._init=function(h){h.length>this.blockSize&&(h=(new this.Hash).update(h).digest()),_(h.length<=this.blockSize);for(var s=h.length;s<this.blockSize;s++)h.push(0);for(s=0;s<h.length;s++)h[s]^=54;for(this.inner=(new this.Hash).update(h),s=0;s<h.length;s++)h[s]^=106;this.outer=(new this.Hash).update(h)},v.prototype.update=function(h,s){return this.inner.update(h,s),this},v.prototype.digest=function(h){return this.outer.update(this.inner.digest()),this.outer.digest(h)}},{"./utils":437,"minimalistic-assert":453}],429:[function(o,E,R){"use strict";var m=o("./utils"),_=o("./common"),v=m.rotl32,h=m.sum32,s=m.sum32_3,b=m.sum32_4,O=_.BlockHash;function w(){if(!(this instanceof w))return new w;O.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(Y,Q,se,ie){return Y<=15?Q^se^ie:Y<=31?Q&se|~Q&ie:Y<=47?(Q|~se)^ie:Y<=63?Q&ie|se&~ie:Q^(se|~ie)}function k(Y){return Y<=15?0:Y<=31?1518500249:Y<=47?1859775393:Y<=63?2400959708:2840853838}function I(Y){return Y<=15?1352829926:Y<=31?1548603684:Y<=47?1836072691:Y<=63?2053994217:0}m.inherits(w,O),R.ripemd160=w,w.blockSize=512,w.outSize=160,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(Y,Q){for(var se=this.h[0],ie=this.h[1],ee=this.h[2],re=this.h[3],ne=this.h[4],_e=se,be=ie,oe=ee,me=re,we=ne,N=0;N<80;N++){var G=h(v(b(se,f(N,ie,ee,re),Y[x[N]+Q],k(N)),C[N]),ne);se=ne,ne=re,re=v(ee,10),ee=ie,ie=G,G=h(v(b(_e,f(79-N,be,oe,me),Y[g[N]+Q],I(N)),F[N]),we),_e=we,we=me,me=v(oe,10),oe=be,be=G}G=s(this.h[1],ee,me),this.h[1]=s(this.h[2],re,we),this.h[2]=s(this.h[3],ne,_e),this.h[3]=s(this.h[4],se,be),this.h[4]=s(this.h[0],ie,oe),this.h[0]=G},w.prototype._digest=function(Y){return"hex"===Y?m.toHex32(this.h,"little"):m.split32(this.h,"little")};var x=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],C=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],F=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(o,E,R){"use strict";R.sha1=o("./sha/1"),R.sha224=o("./sha/224"),R.sha256=o("./sha/256"),R.sha384=o("./sha/384"),R.sha512=o("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(o,E,R){"use strict";var m=o("../utils"),_=o("../common"),v=o("./common"),h=m.rotl32,s=m.sum32,b=m.sum32_5,O=v.ft_1,w=_.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function k(){if(!(this instanceof k))return new k;w.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}m.inherits(k,w),E.exports=k,k.blockSize=512,k.outSize=160,k.hmacStrength=80,k.padLength=64,k.prototype._update=function(I,x){for(var g=this.W,C=0;C<16;C++)g[C]=I[x+C];for(;C<g.length;C++)g[C]=h(g[C-3]^g[C-8]^g[C-14]^g[C-16],1);var F=this.h[0],Y=this.h[1],Q=this.h[2],se=this.h[3],ie=this.h[4];for(C=0;C<g.length;C++){var ee=~~(C/20),re=b(h(F,5),O(ee,Y,Q,se),ie,g[C],f[ee]);ie=se,se=Q,Q=h(Y,30),Y=F,F=re}this.h[0]=s(this.h[0],F),this.h[1]=s(this.h[1],Y),this.h[2]=s(this.h[2],Q),this.h[3]=s(this.h[3],se),this.h[4]=s(this.h[4],ie)},k.prototype._digest=function(I){return"hex"===I?m.toHex32(this.h,"big"):m.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(o,E,R){"use strict";var m=o("../utils"),_=o("./256");function v(){if(!(this instanceof v))return new v;_.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}m.inherits(v,_),E.exports=v,v.blockSize=512,v.outSize=224,v.hmacStrength=192,v.padLength=64,v.prototype._digest=function(h){return"hex"===h?m.toHex32(this.h.slice(0,7),"big"):m.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(o,E,R){"use strict";var m=o("../utils"),_=o("../common"),v=o("./common"),h=o("minimalistic-assert"),s=m.sum32,b=m.sum32_4,O=m.sum32_5,w=v.ch32,f=v.maj32,k=v.s0_256,I=v.s1_256,x=v.g0_256,g=v.g1_256,C=_.BlockHash,F=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Y(){if(!(this instanceof Y))return new Y;C.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=F,this.W=new Array(64)}m.inherits(Y,C),E.exports=Y,Y.blockSize=512,Y.outSize=256,Y.hmacStrength=192,Y.padLength=64,Y.prototype._update=function(Q,se){for(var ie=this.W,ee=0;ee<16;ee++)ie[ee]=Q[se+ee];for(;ee<ie.length;ee++)ie[ee]=b(g(ie[ee-2]),ie[ee-7],x(ie[ee-15]),ie[ee-16]);var re=this.h[0],ne=this.h[1],_e=this.h[2],be=this.h[3],oe=this.h[4],me=this.h[5],we=this.h[6],N=this.h[7];for(h(this.k.length===ie.length),ee=0;ee<ie.length;ee++){var G=O(N,I(oe),w(oe,me,we),this.k[ee],ie[ee]),W=s(k(re),f(re,ne,_e));N=we,we=me,me=oe,oe=s(be,G),be=_e,_e=ne,ne=re,re=s(G,W)}this.h[0]=s(this.h[0],re),this.h[1]=s(this.h[1],ne),this.h[2]=s(this.h[2],_e),this.h[3]=s(this.h[3],be),this.h[4]=s(this.h[4],oe),this.h[5]=s(this.h[5],me),this.h[6]=s(this.h[6],we),this.h[7]=s(this.h[7],N)},Y.prototype._digest=function(Q){return"hex"===Q?m.toHex32(this.h,"big"):m.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(o,E,R){"use strict";var m=o("../utils"),_=o("./512");function v(){if(!(this instanceof v))return new v;_.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}m.inherits(v,_),E.exports=v,v.blockSize=1024,v.outSize=384,v.hmacStrength=192,v.padLength=128,v.prototype._digest=function(h){return"hex"===h?m.toHex32(this.h.slice(0,12),"big"):m.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(o,E,R){"use strict";var m=o("../utils"),_=o("../common"),v=o("minimalistic-assert"),h=m.rotr64_hi,s=m.rotr64_lo,b=m.shr64_hi,O=m.shr64_lo,w=m.sum64,f=m.sum64_hi,k=m.sum64_lo,I=m.sum64_4_hi,x=m.sum64_4_lo,g=m.sum64_5_hi,C=m.sum64_5_lo,F=_.BlockHash,Y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(){if(!(this instanceof Q))return new Q;F.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Y,this.W=new Array(160)}function se(W,z,X,q,ye){var xe=W&X^~W&ye;return xe<0&&(xe+=4294967296),xe}function ie(W,z,X,q,ye,xe){var ge=z&q^~z&xe;return ge<0&&(ge+=4294967296),ge}function ee(W,z,X,q,ye){var xe=W&X^W&ye^X&ye;return xe<0&&(xe+=4294967296),xe}function re(W,z,X,q,ye,xe){var ge=z&q^z&xe^q&xe;return ge<0&&(ge+=4294967296),ge}function ne(W,z){var X=h(W,z,28)^h(z,W,2)^h(z,W,7);return X<0&&(X+=4294967296),X}function _e(W,z){var X=s(W,z,28)^s(z,W,2)^s(z,W,7);return X<0&&(X+=4294967296),X}function be(W,z){var X=h(W,z,14)^h(W,z,18)^h(z,W,9);return X<0&&(X+=4294967296),X}function oe(W,z){var X=s(W,z,14)^s(W,z,18)^s(z,W,9);return X<0&&(X+=4294967296),X}function me(W,z){var X=h(W,z,1)^h(W,z,8)^b(W,z,7);return X<0&&(X+=4294967296),X}function we(W,z){var X=s(W,z,1)^s(W,z,8)^O(W,z,7);return X<0&&(X+=4294967296),X}function N(W,z){var X=h(W,z,19)^h(z,W,29)^b(W,z,6);return X<0&&(X+=4294967296),X}function G(W,z){var X=s(W,z,19)^s(z,W,29)^O(W,z,6);return X<0&&(X+=4294967296),X}m.inherits(Q,F),E.exports=Q,Q.blockSize=1024,Q.outSize=512,Q.hmacStrength=192,Q.padLength=128,Q.prototype._prepareBlock=function(W,z){for(var X=this.W,q=0;q<32;q++)X[q]=W[z+q];for(;q<X.length;q+=2){var ye=N(X[q-4],X[q-3]),xe=G(X[q-4],X[q-3]),ge=X[q-14],Ee=X[q-13],he=me(X[q-30],X[q-29]),Ie=we(X[q-30],X[q-29]),ce=X[q-32],de=X[q-31];X[q]=I(ye,xe,ge,Ee,he,Ie,ce,de),X[q+1]=x(ye,xe,ge,Ee,he,Ie,ce,de)}},Q.prototype._update=function(W,z){this._prepareBlock(W,z);var X=this.W,q=this.h[0],ye=this.h[1],xe=this.h[2],ge=this.h[3],Ee=this.h[4],he=this.h[5],Ie=this.h[6],ce=this.h[7],de=this.h[8],pe=this.h[9],Be=this.h[10],We=this.h[11],tt=this.h[12],vt=this.h[13],Xt=this.h[14],Nt=this.h[15];v(this.k.length===X.length);for(var Qe=0;Qe<X.length;Qe+=2){var Et=Xt,Lt=Nt,wt=be(de,pe),Mt=oe(de,pe),Ge=se(de,0,Be,0,tt),ot=ie(0,pe,0,We,0,vt),Tt=this.k[Qe],jt=this.k[Qe+1],li=X[Qe],an=X[Qe+1],xi=g(Et,Lt,wt,Mt,Ge,ot,Tt,jt,li,an),Je=C(Et,Lt,wt,Mt,Ge,ot,Tt,jt,li,an);Et=ne(q,ye),Lt=_e(q,ye),wt=ee(q,0,xe,0,Ee),Mt=re(0,ye,0,ge,0,he);var Ht=f(Et,Lt,wt,Mt),gi=k(Et,Lt,wt,Mt);Xt=tt,Nt=vt,tt=Be,vt=We,Be=de,We=pe,de=f(Ie,ce,xi,Je),pe=k(ce,ce,xi,Je),Ie=Ee,ce=he,Ee=xe,he=ge,xe=q,ge=ye,q=f(xi,Je,Ht,gi),ye=k(xi,Je,Ht,gi)}w(this.h,0,q,ye),w(this.h,2,xe,ge),w(this.h,4,Ee,he),w(this.h,6,Ie,ce),w(this.h,8,de,pe),w(this.h,10,Be,We),w(this.h,12,tt,vt),w(this.h,14,Xt,Nt)},Q.prototype._digest=function(W){return"hex"===W?m.toHex32(this.h,"big"):m.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(o,E,R){"use strict";var m=o("../utils").rotr32;function _(s,b,O){return s&b^~s&O}function v(s,b,O){return s&b^s&O^b&O}function h(s,b,O){return s^b^O}R.ft_1=function(s,b,O,w){return 0===s?_(b,O,w):1===s||3===s?h(b,O,w):2===s?v(b,O,w):void 0},R.ch32=_,R.maj32=v,R.p32=h,R.s0_256=function(s){return m(s,2)^m(s,13)^m(s,22)},R.s1_256=function(s){return m(s,6)^m(s,11)^m(s,25)},R.g0_256=function(s){return m(s,7)^m(s,18)^s>>>3},R.g1_256=function(s){return m(s,17)^m(s,19)^s>>>10}},{"../utils":437}],437:[function(o,E,R){"use strict";var m=o("minimalistic-assert"),_=o("inherits");function v(O,w){return 55296==(64512&O.charCodeAt(w))&&!(w<0||w+1>=O.length)&&56320==(64512&O.charCodeAt(w+1))}function h(O){return(O>>>24|O>>>8&65280|O<<8&16711680|(255&O)<<24)>>>0}function s(O){return 1===O.length?"0"+O:O}function b(O){return 7===O.length?"0"+O:6===O.length?"00"+O:5===O.length?"000"+O:4===O.length?"0000"+O:3===O.length?"00000"+O:2===O.length?"000000"+O:1===O.length?"0000000"+O:O}R.inherits=_,R.toArray=function(O,w){if(Array.isArray(O))return O.slice();if(!O)return[];var f=[];if("string"==typeof O)if(w){if("hex"===w)for((O=O.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(O="0"+O),I=0;I<O.length;I+=2)f.push(parseInt(O[I]+O[I+1],16))}else for(var k=0,I=0;I<O.length;I++){var x=O.charCodeAt(I);x<128?f[k++]=x:x<2048?(f[k++]=x>>6|192,f[k++]=63&x|128):v(O,I)?(x=65536+((1023&x)<<10)+(1023&O.charCodeAt(++I)),f[k++]=x>>18|240,f[k++]=x>>12&63|128,f[k++]=x>>6&63|128,f[k++]=63&x|128):(f[k++]=x>>12|224,f[k++]=x>>6&63|128,f[k++]=63&x|128)}else for(I=0;I<O.length;I++)f[I]=0|O[I];return f},R.toHex=function(O){for(var w="",f=0;f<O.length;f++)w+=s(O[f].toString(16));return w},R.htonl=h,R.toHex32=function(O,w){for(var f="",k=0;k<O.length;k++){var I=O[k];"little"===w&&(I=h(I)),f+=b(I.toString(16))}return f},R.zero2=s,R.zero8=b,R.join32=function(O,w,f,k){var I=f-w;m(I%4==0);for(var x=new Array(I/4),g=0,C=w;g<x.length;g++,C+=4)x[g]=("big"===k?O[C]<<24|O[C+1]<<16|O[C+2]<<8|O[C+3]:O[C+3]<<24|O[C+2]<<16|O[C+1]<<8|O[C])>>>0;return x},R.split32=function(O,w){for(var f=new Array(4*O.length),k=0,I=0;k<O.length;k++,I+=4){var x=O[k];"big"===w?(f[I]=x>>>24,f[I+1]=x>>>16&255,f[I+2]=x>>>8&255,f[I+3]=255&x):(f[I+3]=x>>>24,f[I+2]=x>>>16&255,f[I+1]=x>>>8&255,f[I]=255&x)}return f},R.rotr32=function(O,w){return O>>>w|O<<32-w},R.rotl32=function(O,w){return O<<w|O>>>32-w},R.sum32=function(O,w){return O+w>>>0},R.sum32_3=function(O,w,f){return O+w+f>>>0},R.sum32_4=function(O,w,f,k){return O+w+f+k>>>0},R.sum32_5=function(O,w,f,k,I){return O+w+f+k+I>>>0},R.sum64=function(O,w,f,k){var x=k+O[w+1]>>>0;O[w]=(x<k?1:0)+f+O[w]>>>0,O[w+1]=x},R.sum64_hi=function(O,w,f,k){return(w+k>>>0<w?1:0)+O+f>>>0},R.sum64_lo=function(O,w,f,k){return w+k>>>0},R.sum64_4_hi=function(O,w,f,k,I,x,g,C){var F=0,Y=w;return F+=(Y=Y+k>>>0)<w?1:0,F+=(Y=Y+x>>>0)<x?1:0,O+f+I+g+(F+=(Y=Y+C>>>0)<C?1:0)>>>0},R.sum64_4_lo=function(O,w,f,k,I,x,g,C){return w+k+x+C>>>0},R.sum64_5_hi=function(O,w,f,k,I,x,g,C,F,Y){var Q=0,se=w;return Q+=(se=se+k>>>0)<w?1:0,Q+=(se=se+x>>>0)<x?1:0,Q+=(se=se+C>>>0)<C?1:0,O+f+I+g+F+(Q+=(se=se+Y>>>0)<Y?1:0)>>>0},R.sum64_5_lo=function(O,w,f,k,I,x,g,C,F,Y){return w+k+x+C+Y>>>0},R.rotr64_hi=function(O,w,f){return(w<<32-f|O>>>f)>>>0},R.rotr64_lo=function(O,w,f){return(O<<32-f|w>>>f)>>>0},R.shr64_hi=function(O,w,f){return O>>>f},R.shr64_lo=function(O,w,f){return(O<<32-f|w>>>f)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(o,E,R){"use strict";var m=o("hash.js"),_=o("minimalistic-crypto-utils"),v=o("minimalistic-assert");function h(s){if(!(this instanceof h))return new h(s);this.hash=s.hash,this.predResist=!!s.predResist,this.outLen=this.hash.outSize,this.minEntropy=s.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var b=_.toArray(s.entropy,s.entropyEnc||"hex"),O=_.toArray(s.nonce,s.nonceEnc||"hex"),w=_.toArray(s.pers,s.persEnc||"hex");v(b.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(b,O,w)}E.exports=h,h.prototype._init=function(s,b,O){var w=s.concat(b).concat(O);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var f=0;f<this.V.length;f++)this.K[f]=0,this.V[f]=1;this._update(w),this._reseed=1,this.reseedInterval=281474976710656},h.prototype._hmac=function(){return new m.hmac(this.hash,this.K)},h.prototype._update=function(s){var b=this._hmac().update(this.V).update([0]);s&&(b=b.update(s)),this.K=b.digest(),this.V=this._hmac().update(this.V).digest(),s&&(this.K=this._hmac().update(this.V).update([1]).update(s).digest(),this.V=this._hmac().update(this.V).digest())},h.prototype.reseed=function(s,b,O,w){"string"!=typeof b&&(w=O,O=b,b=null),s=_.toArray(s,b),O=_.toArray(O,w),v(s.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(s.concat(O||[])),this._reseed=1},h.prototype.generate=function(s,b,O,w){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof b&&(w=O,O=b,b=null),O&&(O=_.toArray(O,w||"hex"),this._update(O));for(var f=[];f.length<s;)this.V=this._hmac().update(this.V).digest(),f=f.concat(this.V);var k=f.slice(0,s);return this._update(O),this._reseed++,_.encode(k,b)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(o,E,R){"use strict";R.read=function(m,_,v,h,s){var b,O,w=8*s-h-1,f=(1<<w)-1,k=f>>1,I=-7,x=v?s-1:0,g=v?-1:1,C=m[_+x];for(x+=g,b=C&(1<<-I)-1,C>>=-I,I+=w;I>0;b=256*b+m[_+x],x+=g,I-=8);for(O=b&(1<<-I)-1,b>>=-I,I+=h;I>0;O=256*O+m[_+x],x+=g,I-=8);if(0===b)b=1-k;else{if(b===f)return O?NaN:1/0*(C?-1:1);O+=Math.pow(2,h),b-=k}return(C?-1:1)*O*Math.pow(2,b-h)},R.write=function(m,_,v,h,s,b){var O,w,f,k=8*b-s-1,I=(1<<k)-1,x=I>>1,g=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,C=h?0:b-1,F=h?1:-1,Y=_<0||0===_&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(w=isNaN(_)?1:0,O=I):(O=Math.floor(Math.log(_)/Math.LN2),_*(f=Math.pow(2,-O))<1&&(O--,f*=2),(_+=O+x>=1?g/f:g*Math.pow(2,1-x))*f>=2&&(O++,f/=2),O+x>=I?(w=0,O=I):O+x>=1?(w=(_*f-1)*Math.pow(2,s),O+=x):(w=_*Math.pow(2,x-1)*Math.pow(2,s),O=0));s>=8;m[v+C]=255&w,C+=F,w/=256,s-=8);for(O=O<<s|w,k+=s;k>0;m[v+C]=255&O,C+=F,O/=256,k-=8);m[v+C-F]|=128*Y}},{}],440:[function(o,E,R){"use strict";E.exports="function"==typeof Object.create?function(m,_){_&&(m.super_=_,m.prototype=Object.create(_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:function(m,_){if(_){m.super_=_;var v=function(){};v.prototype=_.prototype,m.prototype=new v,m.prototype.constructor=m}}},{}],441:[function(o,E,R){(function(m,_,v,h,s,b,O,w){(function(){"use strict";!function(f){"object"==typeof R&&void 0!==E?E.exports=f():(typeof window<"u"?window:void 0!==_?_:typeof self<"u"?self:this).JSZip=f()}(function(){return function f(k,I,x){function g(Y,Q){if(!I[Y]){if(!k[Y]){var se="function"==typeof o&&o;if(!Q&&se)return se(Y,!0);if(C)return C(Y,!0);var ie=new Error("Cannot find module '"+Y+"'");throw ie.code="MODULE_NOT_FOUND",ie}var ee=I[Y]={exports:{}};k[Y][0].call(ee.exports,function(re){return g(k[Y][1][re]||re)},ee,ee.exports,f,k,I,x)}return I[Y].exports}for(var C="function"==typeof o&&o,F=0;F<x.length;F++)g(x[F]);return g}({1:[function(f,k,I){var x=f("./utils"),g=f("./support"),C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";I.encode=function(F){for(var Y,Q,se,ee,re,ne,_e=[],be=0,oe=F.length,me=oe,we="string"!==x.getTypeOf(F);be<F.length;)me=oe-be,se=we?(Y=F[be++],Q=be<oe?F[be++]:0,be<oe?F[be++]:0):(Y=F.charCodeAt(be++),Q=be<oe?F.charCodeAt(be++):0,be<oe?F.charCodeAt(be++):0),ee=(3&Y)<<4|Q>>4,re=1<me?(15&Q)<<2|se>>6:64,ne=2<me?63&se:64,_e.push(C.charAt(Y>>2)+C.charAt(ee)+C.charAt(re)+C.charAt(ne));return _e.join("")},I.decode=function(F){var Y,Q,se,ie,ee,re,ne=0,_e=0;if("data:"===F.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.");var oe,me=3*(F=F.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(F.charAt(F.length-1)===C.charAt(64)&&me--,F.charAt(F.length-2)===C.charAt(64)&&me--,me%1!=0)throw new Error("Invalid base64 input, bad content length.");for(oe=g.uint8array?new Uint8Array(0|me):new Array(0|me);ne<F.length;)Y=C.indexOf(F.charAt(ne++))<<2|(ie=C.indexOf(F.charAt(ne++)))>>4,Q=(15&ie)<<4|(ee=C.indexOf(F.charAt(ne++)))>>2,se=(3&ee)<<6|(re=C.indexOf(F.charAt(ne++))),oe[_e++]=Y,64!==ee&&(oe[_e++]=Q),64!==re&&(oe[_e++]=se);return oe}},{"./support":30,"./utils":32}],2:[function(f,k,I){var x=f("./external"),g=f("./stream/DataWorker"),C=f("./stream/Crc32Probe"),F=f("./stream/DataLengthProbe");function Y(Q,se,ie,ee,re){this.compressedSize=Q,this.uncompressedSize=se,this.crc32=ie,this.compression=ee,this.compressedContent=re}Y.prototype={getContentWorker:function(){var Q=new g(x.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new F("data_length")),se=this;return Q.on("end",function(){if(this.streamInfo.data_length!==se.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new g(x.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},Y.createWorkerFrom=function(Q,se,ie){return Q.pipe(new C).pipe(new F("uncompressedSize")).pipe(se.compressWorker(ie)).pipe(new F("compressedSize")).withStreamInfo("compression",se)},k.exports=Y},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(f,k,I){var x=f("./stream/GenericWorker");I.STORE={magic:"\0\0",compressWorker:function(){return new x("STORE compression")},uncompressWorker:function(){return new x("STORE decompression")}},I.DEFLATE=f("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(f,k,I){var x=f("./utils"),g=function(){for(var C,F=[],Y=0;Y<256;Y++){C=Y;for(var Q=0;Q<8;Q++)C=1&C?3988292384^C>>>1:C>>>1;F[Y]=C}return F}();k.exports=function(C,F){return void 0!==C&&C.length?"string"!==x.getTypeOf(C)?function(Y,Q,se,ie){var ee=g,re=0+se;Y^=-1;for(var ne=0;ne<re;ne++)Y=Y>>>8^ee[255&(Y^Q[ne])];return~Y}(0|F,C,C.length):function(Y,Q,se,ie){var ee=g,re=0+se;Y^=-1;for(var ne=0;ne<re;ne++)Y=Y>>>8^ee[255&(Y^Q.charCodeAt(ne))];return~Y}(0|F,C,C.length):0}},{"./utils":32}],5:[function(f,k,I){I.base64=!1,I.binary=!1,I.dir=!1,I.createFolders=!0,I.date=null,I.compression=null,I.compressionOptions=null,I.comment=null,I.unixPermissions=null,I.dosPermissions=null},{}],6:[function(f,k,I){var x;x=typeof Promise<"u"?Promise:f("lie"),k.exports={Promise:x}},{lie:37}],7:[function(f,k,I){var x=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",g=f("pako"),C=f("./utils"),F=f("./stream/GenericWorker"),Y=x?"uint8array":"array";function Q(se,ie){F.call(this,"FlateWorker/"+se),this._pako=null,this._pakoAction=se,this._pakoOptions=ie,this.meta={}}I.magic="\b\0",C.inherits(Q,F),Q.prototype.processChunk=function(se){this.meta=se.meta,null===this._pako&&this._createPako(),this._pako.push(C.transformTo(Y,se.data),!1)},Q.prototype.flush=function(){F.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},Q.prototype.cleanUp=function(){F.prototype.cleanUp.call(this),this._pako=null},Q.prototype._createPako=function(){this._pako=new g[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var se=this;this._pako.onData=function(ie){se.push({data:ie,meta:se.meta})}},I.compressWorker=function(se){return new Q("Deflate",se)},I.uncompressWorker=function(){return new Q("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(f,k,I){function x(ee,re){var ne,_e="";for(ne=0;ne<re;ne++)_e+=String.fromCharCode(255&ee),ee>>>=8;return _e}function g(ee,re,ne,_e,be,oe){var me,we,N=ee.file,G=ee.compression,W=oe!==Y.utf8encode,z=C.transformTo("string",oe(N.name)),X=C.transformTo("string",Y.utf8encode(N.name)),q=N.comment,ye=C.transformTo("string",oe(q)),xe=C.transformTo("string",Y.utf8encode(q)),ge=X.length!==N.name.length,Ee=xe.length!==q.length,he="",Ie="",ce="",de=N.dir,pe=N.date,Be={crc32:0,compressedSize:0,uncompressedSize:0};re&&!ne||(Be.crc32=ee.crc32,Be.compressedSize=ee.compressedSize,Be.uncompressedSize=ee.uncompressedSize);var We=0;re&&(We|=8),W||!ge&&!Ee||(We|=2048);var Nt,Et,tt=0,vt=0;de&&(tt|=16),"UNIX"===be?(vt=798,tt|=(Et=Nt=N.unixPermissions,Nt||(Et=de?16893:33204),(65535&Et)<<16)):(vt=20,tt|=function(Nt){return 63&(Nt||0)}(N.dosPermissions)),me=pe.getUTCHours(),me<<=6,me|=pe.getUTCMinutes(),me<<=5,me|=pe.getUTCSeconds()/2,we=pe.getUTCFullYear()-1980,we<<=4,we|=pe.getUTCMonth()+1,we<<=5,we|=pe.getUTCDate(),ge&&(Ie=x(1,1)+x(Q(z),4)+X,he+="up"+x(Ie.length,2)+Ie),Ee&&(ce=x(1,1)+x(Q(ye),4)+xe,he+="uc"+x(ce.length,2)+ce);var Xt="";return Xt+="\n\0",Xt+=x(We,2),Xt+=G.magic,Xt+=x(me,2),Xt+=x(we,2),Xt+=x(Be.crc32,4),Xt+=x(Be.compressedSize,4),Xt+=x(Be.uncompressedSize,4),Xt+=x(z.length,2),Xt+=x(he.length,2),{fileRecord:se.LOCAL_FILE_HEADER+Xt+z+he,dirRecord:se.CENTRAL_FILE_HEADER+x(vt,2)+Xt+x(ye.length,2)+"\0\0\0\0"+x(tt,4)+x(_e,4)+z+he+ye}}var C=f("../utils"),F=f("../stream/GenericWorker"),Y=f("../utf8"),Q=f("../crc32"),se=f("../signature");function ie(ee,re,ne,_e){F.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=re,this.zipPlatform=ne,this.encodeFileName=_e,this.streamFiles=ee,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}C.inherits(ie,F),ie.prototype.push=function(ee){var re=ee.meta.percent||0,ne=this.entriesCount,_e=this._sources.length;this.accumulate?this.contentBuffer.push(ee):(this.bytesWritten+=ee.data.length,F.prototype.push.call(this,{data:ee.data,meta:{currentFile:this.currentFile,percent:ne?(re+100*(ne-_e-1))/ne:100}}))},ie.prototype.openedSource=function(ee){this.currentSourceOffset=this.bytesWritten,this.currentFile=ee.file.name;var re=this.streamFiles&&!ee.file.dir;if(re){var ne=g(ee,re,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:ne.fileRecord,meta:{percent:0}})}else this.accumulate=!0},ie.prototype.closedSource=function(ee){this.accumulate=!1;var _e,re=this.streamFiles&&!ee.file.dir,ne=g(ee,re,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(ne.dirRecord),re)this.push({data:(_e=ee,se.DATA_DESCRIPTOR+x(_e.crc32,4)+x(_e.compressedSize,4)+x(_e.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:ne.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},ie.prototype.flush=function(){for(var ee=this.bytesWritten,re=0;re<this.dirRecords.length;re++)this.push({data:this.dirRecords[re],meta:{percent:100}});var be,oe,me,G,_e=(be=this.dirRecords.length,oe=this.bytesWritten-ee,me=ee,G=C.transformTo("string",(0,this.encodeFileName)(this.zipComment)),se.CENTRAL_DIRECTORY_END+"\0\0\0\0"+x(be,2)+x(be,2)+x(oe,4)+x(me,4)+x(G.length,2)+G);this.push({data:_e,meta:{percent:100}})},ie.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},ie.prototype.registerPrevious=function(ee){this._sources.push(ee);var re=this;return ee.on("data",function(ne){re.processChunk(ne)}),ee.on("end",function(){re.closedSource(re.previous.streamInfo),re._sources.length?re.prepareNextSource():re.end()}),ee.on("error",function(ne){re.error(ne)}),this},ie.prototype.resume=function(){return!!F.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},ie.prototype.error=function(ee){var re=this._sources;if(!F.prototype.error.call(this,ee))return!1;for(var ne=0;ne<re.length;ne++)try{re[ne].error(ee)}catch{}return!0},ie.prototype.lock=function(){F.prototype.lock.call(this);for(var ee=this._sources,re=0;re<ee.length;re++)ee[re].lock()},k.exports=ie},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(f,k,I){var x=f("../compressions"),g=f("./ZipFileWorker");I.generateWorker=function(C,F,Y){var Q=new g(F.streamFiles,Y,F.platform,F.encodeFileName),se=0;try{C.forEach(function(ie,ee){se++;var re=function(oe,me){var we=oe||me,N=x[we];if(!N)throw new Error(we+" is not a valid compression method !");return N}(ee.options.compression,F.compression),_e=ee.dir,be=ee.date;ee._compressWorker(re,ee.options.compressionOptions||F.compressionOptions||{}).withStreamInfo("file",{name:ie,dir:_e,date:be,comment:ee.comment||"",unixPermissions:ee.unixPermissions,dosPermissions:ee.dosPermissions}).pipe(Q)}),Q.entriesCount=se}catch(ie){Q.error(ie)}return Q}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(f,k,I){function x(){if(!(this instanceof x))return new x;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var g=new x;for(var C in this)"function"!=typeof this[C]&&(g[C]=this[C]);return g}}(x.prototype=f("./object")).loadAsync=f("./load"),x.support=f("./support"),x.defaults=f("./defaults"),x.version="3.10.1",x.loadAsync=function(g,C){return(new x).loadAsync(g,C)},x.external=f("./external"),k.exports=x},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(f,k,I){var x=f("./utils"),g=f("./external"),C=f("./utf8"),F=f("./zipEntries"),Y=f("./stream/Crc32Probe"),Q=f("./nodejsUtils");function se(ie){return new g.Promise(function(ee,re){var ne=ie.decompressed.getContentWorker().pipe(new Y);ne.on("error",function(_e){re(_e)}).on("end",function(){ne.streamInfo.crc32!==ie.decompressed.crc32?re(new Error("Corrupted zip : CRC32 mismatch")):ee()}).resume()})}k.exports=function(ie,ee){var re=this;return ee=x.extend(ee||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:C.utf8decode}),Q.isNode&&Q.isStream(ie)?g.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):x.prepareContent("the loaded zip file",ie,!0,ee.optimizedBinaryString,ee.base64).then(function(ne){var _e=new F(ee);return _e.load(ne),_e}).then(function(ne){var _e=[g.Promise.resolve(ne)],be=ne.files;if(ee.checkCRC32)for(var oe=0;oe<be.length;oe++)_e.push(se(be[oe]));return g.Promise.all(_e)}).then(function(ne){for(var _e=ne.shift(),be=_e.files,oe=0;oe<be.length;oe++){var me=be[oe],we=me.fileNameStr,N=x.resolve(me.fileNameStr);re.file(N,me.decompressed,{binary:!0,optimizedBinaryString:!0,date:me.date,dir:me.dir,comment:me.fileCommentStr.length?me.fileCommentStr:null,unixPermissions:me.unixPermissions,dosPermissions:me.dosPermissions,createFolders:ee.createFolders}),me.dir||(re.file(N).unsafeOriginalName=we)}return _e.zipComment.length&&(re.comment=_e.zipComment),re})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(f,k,I){var x=f("../utils"),g=f("../stream/GenericWorker");function C(F,Y){g.call(this,"Nodejs stream input adapter for "+F),this._upstreamEnded=!1,this._bindStream(Y)}x.inherits(C,g),C.prototype._bindStream=function(F){var Y=this;(this._stream=F).pause(),F.on("data",function(Q){Y.push({data:Q,meta:{percent:0}})}).on("error",function(Q){Y.isPaused?this.generatedError=Q:Y.error(Q)}).on("end",function(){Y.isPaused?Y._upstreamEnded=!0:Y.end()})},C.prototype.pause=function(){return!!g.prototype.pause.call(this)&&(this._stream.pause(),!0)},C.prototype.resume=function(){return!!g.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},k.exports=C},{"../stream/GenericWorker":28,"../utils":32}],13:[function(f,k,I){var x=f("readable-stream").Readable;function g(C,F,Y){x.call(this,F),this._helper=C;var Q=this;C.on("data",function(se,ie){Q.push(se)||Q._helper.pause(),Y&&Y(ie)}).on("error",function(se){Q.emit("error",se)}).on("end",function(){Q.push(null)})}f("../utils").inherits(g,x),g.prototype._read=function(){this._helper.resume()},k.exports=g},{"../utils":32,"readable-stream":16}],14:[function(f,k,I){k.exports={isNode:void 0!==v,newBufferFrom:function(x,g){if(v.from&&v.from!==Uint8Array.from)return v.from(x,g);if("number"==typeof x)throw new Error('The "data" argument must not be a number');return new v(x,g)},allocBuffer:function(x){if(v.alloc)return v.alloc(x);var g=new v(x);return g.fill(0),g},isBuffer:function(x){return v.isBuffer(x)},isStream:function(x){return x&&"function"==typeof x.on&&"function"==typeof x.pause&&"function"==typeof x.resume}}},{}],15:[function(f,k,I){function x(N,G,W){var z,xe,X=C.getTypeOf(G),q=C.extend(W||{},Q);q.date=q.date||new Date,null!==q.compression&&(q.compression=q.compression.toUpperCase()),"string"==typeof q.unixPermissions&&(q.unixPermissions=parseInt(q.unixPermissions,8)),q.unixPermissions&&16384&q.unixPermissions&&(q.dir=!0),q.dosPermissions&&16&q.dosPermissions&&(q.dir=!0),q.dir&&(N=be(N)),q.createFolders&&(z=_e(N))&&oe.call(this,z,!0),W&&void 0!==W.binary||(q.binary=!("string"===X&&!1===q.binary&&!1===q.base64)),(G instanceof se&&0===G.uncompressedSize||q.dir||!G||0===G.length)&&(q.base64=!1,q.binary=!0,G="",q.compression="STORE",X="string"),xe=G instanceof se||G instanceof F?G:re.isNode&&re.isStream(G)?new ne(N,G):C.prepareContent(N,G,q.binary,q.optimizedBinaryString,q.base64);var ge=new ie(N,xe,q);this.files[N]=ge}var g=f("./utf8"),C=f("./utils"),F=f("./stream/GenericWorker"),Y=f("./stream/StreamHelper"),Q=f("./defaults"),se=f("./compressedObject"),ie=f("./zipObject"),ee=f("./generate"),re=f("./nodejsUtils"),ne=f("./nodejs/NodejsStreamInputAdapter"),_e=function(N){"/"===N.slice(-1)&&(N=N.substring(0,N.length-1));var G=N.lastIndexOf("/");return 0<G?N.substring(0,G):""},be=function(N){return"/"!==N.slice(-1)&&(N+="/"),N},oe=function(N,G){return G=void 0!==G?G:Q.createFolders,N=be(N),this.files[N]||x.call(this,N,null,{dir:!0,createFolders:G}),this.files[N]};function me(N){return"[object RegExp]"===Object.prototype.toString.call(N)}var we={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(N){var G,W,z;for(G in this.files)z=this.files[G],(W=G.slice(this.root.length,G.length))&&G.slice(0,this.root.length)===this.root&&N(W,z)},filter:function(N){var G=[];return this.forEach(function(W,z){N(W,z)&&G.push(z)}),G},file:function(N,G,W){if(1!==arguments.length)return x.call(this,N=this.root+N,G,W),this;if(me(N)){var z=N;return this.filter(function(q,ye){return!ye.dir&&z.test(q)})}var X=this.files[this.root+N];return X&&!X.dir?X:null},folder:function(N){if(!N)return this;if(me(N))return this.filter(function(X,q){return q.dir&&N.test(X)});var W=oe.call(this,this.root+N),z=this.clone();return z.root=W.name,z},remove:function(N){var G=this.files[N=this.root+N];if(G||("/"!==N.slice(-1)&&(N+="/"),G=this.files[N]),G&&!G.dir)delete this.files[N];else for(var W=this.filter(function(X,q){return q.name.slice(0,N.length)===N}),z=0;z<W.length;z++)delete this.files[W[z].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(N){var G,W={};try{if((W=C.extend(N||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:g.utf8encode})).type=W.type.toLowerCase(),W.compression=W.compression.toUpperCase(),"binarystring"===W.type&&(W.type="string"),!W.type)throw new Error("No output type specified.");C.checkSupport(W.type),"darwin"!==W.platform&&"freebsd"!==W.platform&&"linux"!==W.platform&&"sunos"!==W.platform||(W.platform="UNIX"),"win32"===W.platform&&(W.platform="DOS"),G=ee.generateWorker(this,W,W.comment||this.comment||"")}catch(X){(G=new F("error")).error(X)}return new Y(G,W.type||"string",W.mimeType)},generateAsync:function(N,G){return this.generateInternalStream(N).accumulate(G)},generateNodeStream:function(N,G){return(N=N||{}).type||(N.type="nodebuffer"),this.generateInternalStream(N).toNodejsStream(G)}};k.exports=we},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(f,k,I){k.exports=f("stream")},{stream:void 0}],17:[function(f,k,I){var x=f("./DataReader");function g(C){x.call(this,C);for(var F=0;F<this.data.length;F++)C[F]=255&C[F]}f("../utils").inherits(g,x),g.prototype.byteAt=function(C){return this.data[this.zero+C]},g.prototype.lastIndexOfSignature=function(C){for(var F=C.charCodeAt(0),Y=C.charCodeAt(1),Q=C.charCodeAt(2),se=C.charCodeAt(3),ie=this.length-4;0<=ie;--ie)if(this.data[ie]===F&&this.data[ie+1]===Y&&this.data[ie+2]===Q&&this.data[ie+3]===se)return ie-this.zero;return-1},g.prototype.readAndCheckSignature=function(C){var F=C.charCodeAt(0),Y=C.charCodeAt(1),Q=C.charCodeAt(2),se=C.charCodeAt(3),ie=this.readData(4);return F===ie[0]&&Y===ie[1]&&Q===ie[2]&&se===ie[3]},g.prototype.readData=function(C){if(this.checkOffset(C),0===C)return[];var F=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,F},k.exports=g},{"../utils":32,"./DataReader":18}],18:[function(f,k,I){var x=f("../utils");function g(C){this.data=C,this.length=C.length,this.index=0,this.zero=0}g.prototype={checkOffset:function(C){this.checkIndex(this.index+C)},checkIndex:function(C){if(this.length<this.zero+C||C<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+C+"). Corrupted zip ?")},setIndex:function(C){this.checkIndex(C),this.index=C},skip:function(C){this.setIndex(this.index+C)},byteAt:function(){},readInt:function(C){var F,Y=0;for(this.checkOffset(C),F=this.index+C-1;F>=this.index;F--)Y=(Y<<8)+this.byteAt(F);return this.index+=C,Y},readString:function(C){return x.transformTo("string",this.readData(C))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var C=this.readInt(4);return new Date(Date.UTC(1980+(C>>25&127),(C>>21&15)-1,C>>16&31,C>>11&31,C>>5&63,(31&C)<<1))}},k.exports=g},{"../utils":32}],19:[function(f,k,I){var x=f("./Uint8ArrayReader");function g(C){x.call(this,C)}f("../utils").inherits(g,x),g.prototype.readData=function(C){this.checkOffset(C);var F=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,F},k.exports=g},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(f,k,I){var x=f("./DataReader");function g(C){x.call(this,C)}f("../utils").inherits(g,x),g.prototype.byteAt=function(C){return this.data.charCodeAt(this.zero+C)},g.prototype.lastIndexOfSignature=function(C){return this.data.lastIndexOf(C)-this.zero},g.prototype.readAndCheckSignature=function(C){return C===this.readData(4)},g.prototype.readData=function(C){this.checkOffset(C);var F=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,F},k.exports=g},{"../utils":32,"./DataReader":18}],21:[function(f,k,I){var x=f("./ArrayReader");function g(C){x.call(this,C)}f("../utils").inherits(g,x),g.prototype.readData=function(C){if(this.checkOffset(C),0===C)return new Uint8Array(0);var F=this.data.subarray(this.zero+this.index,this.zero+this.index+C);return this.index+=C,F},k.exports=g},{"../utils":32,"./ArrayReader":17}],22:[function(f,k,I){var x=f("../utils"),g=f("../support"),C=f("./ArrayReader"),F=f("./StringReader"),Y=f("./NodeBufferReader"),Q=f("./Uint8ArrayReader");k.exports=function(se){var ie=x.getTypeOf(se);return x.checkSupport(ie),"string"!==ie||g.uint8array?"nodebuffer"===ie?new Y(se):g.uint8array?new Q(x.transformTo("uint8array",se)):new C(x.transformTo("array",se)):new F(se)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(f,k,I){I.LOCAL_FILE_HEADER="PK\x03\x04",I.CENTRAL_FILE_HEADER="PK\x01\x02",I.CENTRAL_DIRECTORY_END="PK\x05\x06",I.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",I.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",I.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(f,k,I){var x=f("./GenericWorker"),g=f("../utils");function C(F){x.call(this,"ConvertWorker to "+F),this.destType=F}g.inherits(C,x),C.prototype.processChunk=function(F){this.push({data:g.transformTo(this.destType,F.data),meta:F.meta})},k.exports=C},{"../utils":32,"./GenericWorker":28}],25:[function(f,k,I){var x=f("./GenericWorker"),g=f("../crc32");function C(){x.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}f("../utils").inherits(C,x),C.prototype.processChunk=function(F){this.streamInfo.crc32=g(F.data,this.streamInfo.crc32||0),this.push(F)},k.exports=C},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(f,k,I){var x=f("../utils"),g=f("./GenericWorker");function C(F){g.call(this,"DataLengthProbe for "+F),this.propName=F,this.withStreamInfo(F,0)}x.inherits(C,g),C.prototype.processChunk=function(F){F&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+F.data.length),g.prototype.processChunk.call(this,F)},k.exports=C},{"../utils":32,"./GenericWorker":28}],27:[function(f,k,I){var x=f("../utils"),g=f("./GenericWorker");function C(F){g.call(this,"DataWorker");var Y=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,F.then(function(Q){Y.dataIsReady=!0,Y.data=Q,Y.max=Q&&Q.length||0,Y.type=x.getTypeOf(Q),Y.isPaused||Y._tickAndRepeat()},function(Q){Y.error(Q)})}x.inherits(C,g),C.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this.data=null},C.prototype.resume=function(){return!!g.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,x.delay(this._tickAndRepeat,[],this)),!0)},C.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(x.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},C.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var F=null,Y=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":F=this.data.substring(this.index,Y);break;case"uint8array":F=this.data.subarray(this.index,Y);break;case"array":case"nodebuffer":F=this.data.slice(this.index,Y)}return this.index=Y,this.push({data:F,meta:{percent:this.max?this.index/this.max*100:0}})},k.exports=C},{"../utils":32,"./GenericWorker":28}],28:[function(f,k,I){function x(g){this.name=g||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}x.prototype={push:function(g){this.emit("data",g)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(g){this.emit("error",g)}return!0},error:function(g){return!this.isFinished&&(this.isPaused?this.generatedError=g:(this.isFinished=!0,this.emit("error",g),this.previous&&this.previous.error(g),this.cleanUp()),!0)},on:function(g,C){return this._listeners[g].push(C),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(g,C){if(this._listeners[g])for(var F=0;F<this._listeners[g].length;F++)this._listeners[g][F].call(this,C)},pipe:function(g){return g.registerPrevious(this)},registerPrevious:function(g){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=g.streamInfo,this.mergeStreamInfo(),this.previous=g;var C=this;return g.on("data",function(F){C.processChunk(F)}),g.on("end",function(){C.end()}),g.on("error",function(F){C.error(F)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var g=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),g=!0),this.previous&&this.previous.resume(),!g},flush:function(){},processChunk:function(g){this.push(g)},withStreamInfo:function(g,C){return this.extraStreamInfo[g]=C,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var g in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,g)&&(this.streamInfo[g]=this.extraStreamInfo[g])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var g="Worker "+this.name;return this.previous?this.previous+" -> "+g:g}},k.exports=x},{}],29:[function(f,k,I){var x=f("../utils"),g=f("./ConvertWorker"),C=f("./GenericWorker"),F=f("../base64"),Y=f("../support"),Q=f("../external"),se=null;if(Y.nodestream)try{se=f("../nodejs/NodejsStreamOutputAdapter")}catch{}function ie(ee,re,ne){var _e=re;switch(re){case"blob":case"arraybuffer":_e="uint8array";break;case"base64":_e="string"}try{this._internalType=_e,this._outputType=re,this._mimeType=ne,x.checkSupport(_e),this._worker=ee.pipe(new g(_e)),ee.lock()}catch(be){this._worker=new C("error"),this._worker.error(be)}}ie.prototype={accumulate:function(ee){return re=this,ne=ee,new Q.Promise(function(_e,be){var oe=[],me=re._internalType,we=re._outputType,N=re._mimeType;re.on("data",function(G,W){oe.push(G),ne&&ne(W)}).on("error",function(G){oe=[],be(G)}).on("end",function(){try{var G=function(W,z,X){switch(W){case"blob":return x.newBlob(x.transformTo("arraybuffer",z),X);case"base64":return F.encode(z);default:return x.transformTo(W,z)}}(we,function(W,z){var X,q=0,ye=null,xe=0;for(X=0;X<z.length;X++)xe+=z[X].length;switch(W){case"string":return z.join("");case"array":return Array.prototype.concat.apply([],z);case"uint8array":for(ye=new Uint8Array(xe),X=0;X<z.length;X++)ye.set(z[X],q),q+=z[X].length;return ye;case"nodebuffer":return v.concat(z);default:throw new Error("concat : unsupported type '"+W+"'")}}(me,oe),N);_e(G)}catch(W){be(W)}oe=[]}).resume()});var re,ne},on:function(ee,re){var ne=this;return this._worker.on(ee,"data"===ee?function(_e){re.call(ne,_e.data,_e.meta)}:function(){x.delay(re,arguments,ne)}),this},resume:function(){return x.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(ee){if(x.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new se(this,{objectMode:"nodebuffer"!==this._outputType},ee)}},k.exports=ie},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(f,k,I){if(I.base64=!0,I.array=!0,I.string=!0,I.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",I.nodebuffer=void 0!==v,I.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")I.blob=!1;else{var x=new ArrayBuffer(0);try{I.blob=0===new Blob([x],{type:"application/zip"}).size}catch{try{var g=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);g.append(x),I.blob=0===g.getBlob("application/zip").size}catch{I.blob=!1}}}try{I.nodestream=!!f("readable-stream").Readable}catch{I.nodestream=!1}},{"readable-stream":16}],31:[function(f,k,I){for(var x=f("./utils"),g=f("./support"),C=f("./nodejsUtils"),F=f("./stream/GenericWorker"),Y=new Array(256),Q=0;Q<256;Q++)Y[Q]=252<=Q?6:248<=Q?5:240<=Q?4:224<=Q?3:192<=Q?2:1;function se(){F.call(this,"utf-8 decode"),this.leftOver=null}function ie(){F.call(this,"utf-8 encode")}Y[254]=Y[254]=1,I.utf8encode=function(ee){return g.nodebuffer?C.newBufferFrom(ee,"utf-8"):function(re){var ne,_e,be,oe,me,we=re.length,N=0;for(oe=0;oe<we;oe++)55296==(64512&(_e=re.charCodeAt(oe)))&&oe+1<we&&56320==(64512&(be=re.charCodeAt(oe+1)))&&(_e=65536+(_e-55296<<10)+(be-56320),oe++),N+=_e<128?1:_e<2048?2:_e<65536?3:4;for(ne=g.uint8array?new Uint8Array(N):new Array(N),oe=me=0;me<N;oe++)55296==(64512&(_e=re.charCodeAt(oe)))&&oe+1<we&&56320==(64512&(be=re.charCodeAt(oe+1)))&&(_e=65536+(_e-55296<<10)+(be-56320),oe++),_e<128?ne[me++]=_e:(_e<2048?ne[me++]=192|_e>>>6:(_e<65536?ne[me++]=224|_e>>>12:(ne[me++]=240|_e>>>18,ne[me++]=128|_e>>>12&63),ne[me++]=128|_e>>>6&63),ne[me++]=128|63&_e);return ne}(ee)},I.utf8decode=function(ee){return g.nodebuffer?x.transformTo("nodebuffer",ee).toString("utf-8"):function(re){var ne,_e,be,oe,me=re.length,we=new Array(2*me);for(ne=_e=0;ne<me;)if((be=re[ne++])<128)we[_e++]=be;else if(4<(oe=Y[be]))we[_e++]=65533,ne+=oe-1;else{for(be&=2===oe?31:3===oe?15:7;1<oe&&ne<me;)be=be<<6|63&re[ne++],oe--;1<oe?we[_e++]=65533:be<65536?we[_e++]=be:(we[_e++]=55296|(be-=65536)>>10&1023,we[_e++]=56320|1023&be)}return we.length!==_e&&(we.subarray?we=we.subarray(0,_e):we.length=_e),x.applyFromCharCode(we)}(ee=x.transformTo(g.uint8array?"uint8array":"array",ee))},x.inherits(se,F),se.prototype.processChunk=function(ee){var re=x.transformTo(g.uint8array?"uint8array":"array",ee.data);if(this.leftOver&&this.leftOver.length){if(g.uint8array){var ne=re;(re=new Uint8Array(ne.length+this.leftOver.length)).set(this.leftOver,0),re.set(ne,this.leftOver.length)}else re=this.leftOver.concat(re);this.leftOver=null}var _e=function(oe,me){var we;for((me=me||oe.length)>oe.length&&(me=oe.length),we=me-1;0<=we&&128==(192&oe[we]);)we--;return we<0||0===we?me:we+Y[oe[we]]>me?we:me}(re),be=re;_e!==re.length&&(g.uint8array?(be=re.subarray(0,_e),this.leftOver=re.subarray(_e,re.length)):(be=re.slice(0,_e),this.leftOver=re.slice(_e,re.length))),this.push({data:I.utf8decode(be),meta:ee.meta})},se.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:I.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},I.Utf8DecodeWorker=se,x.inherits(ie,F),ie.prototype.processChunk=function(ee){this.push({data:I.utf8encode(ee.data),meta:ee.meta})},I.Utf8EncodeWorker=ie},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(f,k,I){var x=f("./support"),g=f("./base64"),C=f("./nodejsUtils"),F=f("./external");function Y(ne){return ne}function Q(ne,_e){for(var be=0;be<ne.length;++be)_e[be]=255&ne.charCodeAt(be);return _e}f("setimmediate"),I.newBlob=function(ne,_e){I.checkSupport("blob");try{return new Blob([ne],{type:_e})}catch{try{var be=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return be.append(ne),be.getBlob(_e)}catch{throw new Error("Bug : can't construct the Blob.")}}};var se={stringifyByChunk:function(ne,_e,be){var oe=[],me=0,we=ne.length;if(we<=be)return String.fromCharCode.apply(null,ne);for(;me<we;)oe.push(String.fromCharCode.apply(null,"array"===_e||"nodebuffer"===_e?ne.slice(me,Math.min(me+be,we)):ne.subarray(me,Math.min(me+be,we)))),me+=be;return oe.join("")},stringifyByChar:function(ne){for(var _e="",be=0;be<ne.length;be++)_e+=String.fromCharCode(ne[be]);return _e},applyCanBeUsed:{uint8array:function(){try{return x.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch{return!1}}(),nodebuffer:function(){try{return x.nodebuffer&&1===String.fromCharCode.apply(null,C.allocBuffer(1)).length}catch{return!1}}()}};function ie(ne){var _e=65536,be=I.getTypeOf(ne),oe=!0;if("uint8array"===be?oe=se.applyCanBeUsed.uint8array:"nodebuffer"===be&&(oe=se.applyCanBeUsed.nodebuffer),oe)for(;1<_e;)try{return se.stringifyByChunk(ne,be,_e)}catch{_e=Math.floor(_e/2)}return se.stringifyByChar(ne)}function ee(ne,_e){for(var be=0;be<ne.length;be++)_e[be]=ne[be];return _e}I.applyFromCharCode=ie;var re={};re.string={string:Y,array:function(ne){return Q(ne,new Array(ne.length))},arraybuffer:function(ne){return re.string.uint8array(ne).buffer},uint8array:function(ne){return Q(ne,new Uint8Array(ne.length))},nodebuffer:function(ne){return Q(ne,C.allocBuffer(ne.length))}},re.array={string:ie,array:Y,arraybuffer:function(ne){return new Uint8Array(ne).buffer},uint8array:function(ne){return new Uint8Array(ne)},nodebuffer:function(ne){return C.newBufferFrom(ne)}},re.arraybuffer={string:function(ne){return ie(new Uint8Array(ne))},array:function(ne){return ee(new Uint8Array(ne),new Array(ne.byteLength))},arraybuffer:Y,uint8array:function(ne){return new Uint8Array(ne)},nodebuffer:function(ne){return C.newBufferFrom(new Uint8Array(ne))}},re.uint8array={string:ie,array:function(ne){return ee(ne,new Array(ne.length))},arraybuffer:function(ne){return ne.buffer},uint8array:Y,nodebuffer:function(ne){return C.newBufferFrom(ne)}},re.nodebuffer={string:ie,array:function(ne){return ee(ne,new Array(ne.length))},arraybuffer:function(ne){return re.nodebuffer.uint8array(ne).buffer},uint8array:function(ne){return ee(ne,new Uint8Array(ne.length))},nodebuffer:Y},I.transformTo=function(ne,_e){if(_e=_e||"",!ne)return _e;I.checkSupport(ne);var be=I.getTypeOf(_e);return re[be][ne](_e)},I.resolve=function(ne){for(var _e=ne.split("/"),be=[],oe=0;oe<_e.length;oe++){var me=_e[oe];"."===me||""===me&&0!==oe&&oe!==_e.length-1||(".."===me?be.pop():be.push(me))}return be.join("/")},I.getTypeOf=function(ne){return"string"==typeof ne?"string":"[object Array]"===Object.prototype.toString.call(ne)?"array":x.nodebuffer&&C.isBuffer(ne)?"nodebuffer":x.uint8array&&ne instanceof Uint8Array?"uint8array":x.arraybuffer&&ne instanceof ArrayBuffer?"arraybuffer":void 0},I.checkSupport=function(ne){if(!x[ne.toLowerCase()])throw new Error(ne+" is not supported by this platform")},I.MAX_VALUE_16BITS=65535,I.MAX_VALUE_32BITS=-1,I.pretty=function(ne){var _e,be,oe="";for(be=0;be<(ne||"").length;be++)oe+="\\x"+((_e=ne.charCodeAt(be))<16?"0":"")+_e.toString(16).toUpperCase();return oe},I.delay=function(ne,_e,be){w(function(){ne.apply(be||null,_e||[])})},I.inherits=function(ne,_e){function be(){}be.prototype=_e.prototype,ne.prototype=new be},I.extend=function(){var ne,_e,be={};for(ne=0;ne<arguments.length;ne++)for(_e in arguments[ne])Object.prototype.hasOwnProperty.call(arguments[ne],_e)&&void 0===be[_e]&&(be[_e]=arguments[ne][_e]);return be},I.prepareContent=function(ne,_e,be,oe,me){return F.Promise.resolve(_e).then(function(we){return x.blob&&(we instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(we)))&&typeof FileReader<"u"?new F.Promise(function(N,G){var W=new FileReader;W.onload=function(z){N(z.target.result)},W.onerror=function(z){G(z.target.error)},W.readAsArrayBuffer(we)}):we}).then(function(we){var G,N=I.getTypeOf(we);return N?("arraybuffer"===N?we=I.transformTo("uint8array",we):"string"===N&&(me?we=g.decode(we):be&&!0!==oe&&(we=Q(G=we,x.uint8array?new Uint8Array(G.length):new Array(G.length)))),we):F.Promise.reject(new Error("Can't read the data of '"+ne+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(f,k,I){var x=f("./reader/readerFor"),g=f("./utils"),C=f("./signature"),F=f("./zipEntry"),Y=f("./support");function Q(se){this.files=[],this.loadOptions=se}Q.prototype={checkSignature:function(se){if(!this.reader.readAndCheckSignature(se)){this.reader.index-=4;var ie=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+g.pretty(ie)+", expected "+g.pretty(se)+")")}},isSignature:function(se,ie){var ee=this.reader.index;this.reader.setIndex(se);var re=this.reader.readString(4)===ie;return this.reader.setIndex(ee),re},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var se=this.reader.readData(this.zipCommentLength),ee=g.transformTo(Y.uint8array?"uint8array":"array",se);this.zipComment=this.loadOptions.decodeFileName(ee)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var se,ie,ee,re=this.zip64EndOfCentralSize-44;0<re;)se=this.reader.readInt(2),ie=this.reader.readInt(4),ee=this.reader.readData(ie),this.zip64ExtensibleData[se]={id:se,length:ie,value:ee}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var se,ie;for(se=0;se<this.files.length;se++)this.reader.setIndex((ie=this.files[se]).localHeaderOffset),this.checkSignature(C.LOCAL_FILE_HEADER),ie.readLocalPart(this.reader),ie.handleUTF8(),ie.processAttributes()},readCentralDir:function(){var se;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(C.CENTRAL_FILE_HEADER);)(se=new F({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(se);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var se=this.reader.lastIndexOfSignature(C.CENTRAL_DIRECTORY_END);if(se<0)throw this.isSignature(0,C.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(se);var ie=se;if(this.checkSignature(C.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===g.MAX_VALUE_16BITS||this.diskWithCentralDirStart===g.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===g.MAX_VALUE_16BITS||this.centralDirRecords===g.MAX_VALUE_16BITS||this.centralDirSize===g.MAX_VALUE_32BITS||this.centralDirOffset===g.MAX_VALUE_32BITS){if(this.zip64=!0,(se=this.reader.lastIndexOfSignature(C.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(se),this.checkSignature(C.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,C.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(C.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(C.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var ee=this.centralDirOffset+this.centralDirSize;this.zip64&&(ee+=20,ee+=12+this.zip64EndOfCentralSize);var re=ie-ee;if(0<re)this.isSignature(ie,C.CENTRAL_FILE_HEADER)||(this.reader.zero=re);else if(re<0)throw new Error("Corrupted zip: missing "+Math.abs(re)+" bytes.")},prepareReader:function(se){this.reader=x(se)},load:function(se){this.prepareReader(se),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},k.exports=Q},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(f,k,I){var x=f("./reader/readerFor"),g=f("./utils"),C=f("./compressedObject"),F=f("./crc32"),Y=f("./utf8"),Q=f("./compressions"),se=f("./support");function ie(ee,re){this.options=ee,this.loadOptions=re}ie.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(ee){var re,ne;if(ee.skip(22),this.fileNameLength=ee.readInt(2),ne=ee.readInt(2),this.fileName=ee.readData(this.fileNameLength),ee.skip(ne),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(re=function(_e){for(var be in Q)if(Object.prototype.hasOwnProperty.call(Q,be)&&Q[be].magic===_e)return Q[be];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+g.pretty(this.compressionMethod)+" unknown (inner file : "+g.transformTo("string",this.fileName)+")");this.decompressed=new C(this.compressedSize,this.uncompressedSize,this.crc32,re,ee.readData(this.compressedSize))},readCentralPart:function(ee){this.versionMadeBy=ee.readInt(2),ee.skip(2),this.bitFlag=ee.readInt(2),this.compressionMethod=ee.readString(2),this.date=ee.readDate(),this.crc32=ee.readInt(4),this.compressedSize=ee.readInt(4),this.uncompressedSize=ee.readInt(4);var re=ee.readInt(2);if(this.extraFieldsLength=ee.readInt(2),this.fileCommentLength=ee.readInt(2),this.diskNumberStart=ee.readInt(2),this.internalFileAttributes=ee.readInt(2),this.externalFileAttributes=ee.readInt(4),this.localHeaderOffset=ee.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");ee.skip(re),this.readExtraFields(ee),this.parseZIP64ExtraField(ee),this.fileComment=ee.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var ee=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==ee&&(this.dosPermissions=63&this.externalFileAttributes),3==ee&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var ee=x(this.extraFields[1].value);this.uncompressedSize===g.MAX_VALUE_32BITS&&(this.uncompressedSize=ee.readInt(8)),this.compressedSize===g.MAX_VALUE_32BITS&&(this.compressedSize=ee.readInt(8)),this.localHeaderOffset===g.MAX_VALUE_32BITS&&(this.localHeaderOffset=ee.readInt(8)),this.diskNumberStart===g.MAX_VALUE_32BITS&&(this.diskNumberStart=ee.readInt(4))}},readExtraFields:function(ee){var re,ne,_e,be=ee.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});ee.index+4<be;)re=ee.readInt(2),ne=ee.readInt(2),_e=ee.readData(ne),this.extraFields[re]={id:re,length:ne,value:_e};ee.setIndex(be)},handleUTF8:function(){var ee=se.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Y.utf8decode(this.fileName),this.fileCommentStr=Y.utf8decode(this.fileComment);else{var re=this.findExtraFieldUnicodePath();if(null!==re)this.fileNameStr=re;else{var ne=g.transformTo(ee,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(ne)}var _e=this.findExtraFieldUnicodeComment();if(null!==_e)this.fileCommentStr=_e;else{var be=g.transformTo(ee,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(be)}}},findExtraFieldUnicodePath:function(){var ee=this.extraFields[28789];if(ee){var re=x(ee.value);return 1!==re.readInt(1)||F(this.fileName)!==re.readInt(4)?null:Y.utf8decode(re.readData(ee.length-5))}return null},findExtraFieldUnicodeComment:function(){var ee=this.extraFields[25461];if(ee){var re=x(ee.value);return 1!==re.readInt(1)||F(this.fileComment)!==re.readInt(4)?null:Y.utf8decode(re.readData(ee.length-5))}return null}},k.exports=ie},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(f,k,I){function x(re,ne,_e){this.name=re,this.dir=_e.dir,this.date=_e.date,this.comment=_e.comment,this.unixPermissions=_e.unixPermissions,this.dosPermissions=_e.dosPermissions,this._data=ne,this._dataBinary=_e.binary,this.options={compression:_e.compression,compressionOptions:_e.compressionOptions}}var g=f("./stream/StreamHelper"),C=f("./stream/DataWorker"),F=f("./utf8"),Y=f("./compressedObject"),Q=f("./stream/GenericWorker");x.prototype={internalStream:function(re){var ne=null,_e="string";try{if(!re)throw new Error("No output type specified.");var be="string"===(_e=re.toLowerCase())||"text"===_e;"binarystring"!==_e&&"text"!==_e||(_e="string"),ne=this._decompressWorker();var oe=!this._dataBinary;oe&&!be&&(ne=ne.pipe(new F.Utf8EncodeWorker)),!oe&&be&&(ne=ne.pipe(new F.Utf8DecodeWorker))}catch(me){(ne=new Q("error")).error(me)}return new g(ne,_e,"")},async:function(re,ne){return this.internalStream(re).accumulate(ne)},nodeStream:function(re,ne){return this.internalStream(re||"nodebuffer").toNodejsStream(ne)},_compressWorker:function(re,ne){if(this._data instanceof Y&&this._data.compression.magic===re.magic)return this._data.getCompressedWorker();var _e=this._decompressWorker();return this._dataBinary||(_e=_e.pipe(new F.Utf8EncodeWorker)),Y.createWorkerFrom(_e,re,ne)},_decompressWorker:function(){return this._data instanceof Y?this._data.getContentWorker():this._data instanceof Q?this._data:new C(this._data)}};for(var se=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],ie=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},ee=0;ee<se.length;ee++)x.prototype[se[ee]]=ie;k.exports=x},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(f,k,I){(function(x){var g,C,F=x.MutationObserver||x.WebKitMutationObserver;if(F){var Y=0,Q=new F(re),se=x.document.createTextNode("");Q.observe(se,{characterData:!0}),g=function(){se.data=Y=++Y%2}}else if(x.setImmediate||void 0===x.MessageChannel)g="document"in x&&"onreadystatechange"in x.document.createElement("script")?function(){var ne=x.document.createElement("script");ne.onreadystatechange=function(){re(),ne.onreadystatechange=null,ne.parentNode.removeChild(ne),ne=null},x.document.documentElement.appendChild(ne)}:function(){setTimeout(re,0)};else{var ie=new x.MessageChannel;ie.port1.onmessage=re,g=function(){ie.port2.postMessage(0)}}var ee=[];function re(){var ne,_e;C=!0;for(var be=ee.length;be;){for(_e=ee,ee=[],ne=-1;++ne<be;)_e[ne]();be=ee.length}C=!1}k.exports=function(ne){1!==ee.push(ne)||C||g()}}).call(this,void 0!==_?_:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(f,k,I){var x=f("immediate");function g(){}var C={},F=["REJECTED"],Y=["FULFILLED"],Q=["PENDING"];function se(be){if("function"!=typeof be)throw new TypeError("resolver must be a function");this.state=Q,this.queue=[],this.outcome=void 0,be!==g&&ne(this,be)}function ie(be,oe,me){this.promise=be,"function"==typeof oe&&(this.onFulfilled=oe,this.callFulfilled=this.otherCallFulfilled),"function"==typeof me&&(this.onRejected=me,this.callRejected=this.otherCallRejected)}function ee(be,oe,me){x(function(){var we;try{we=oe(me)}catch(N){return C.reject(be,N)}we===be?C.reject(be,new TypeError("Cannot resolve promise with itself")):C.resolve(be,we)})}function re(be){var oe=be&&be.then;if(be&&("object"==typeof be||"function"==typeof be)&&"function"==typeof oe)return function(){oe.apply(be,arguments)}}function ne(be,oe){var me=!1;function we(W){me||(me=!0,C.reject(be,W))}function N(W){me||(me=!0,C.resolve(be,W))}var G=_e(function(){oe(N,we)});"error"===G.status&&we(G.value)}function _e(be,oe){var me={};try{me.value=be(oe),me.status="success"}catch(we){me.status="error",me.value=we}return me}(k.exports=se).prototype.finally=function(be){if("function"!=typeof be)return this;var oe=this.constructor;return this.then(function(me){return oe.resolve(be()).then(function(){return me})},function(me){return oe.resolve(be()).then(function(){throw me})})},se.prototype.catch=function(be){return this.then(null,be)},se.prototype.then=function(be,oe){if("function"!=typeof be&&this.state===Y||"function"!=typeof oe&&this.state===F)return this;var me=new this.constructor(g);return this.state!==Q?ee(me,this.state===Y?be:oe,this.outcome):this.queue.push(new ie(me,be,oe)),me},ie.prototype.callFulfilled=function(be){C.resolve(this.promise,be)},ie.prototype.otherCallFulfilled=function(be){ee(this.promise,this.onFulfilled,be)},ie.prototype.callRejected=function(be){C.reject(this.promise,be)},ie.prototype.otherCallRejected=function(be){ee(this.promise,this.onRejected,be)},C.resolve=function(be,oe){var me=_e(re,oe);if("error"===me.status)return C.reject(be,me.value);var we=me.value;if(we)ne(be,we);else{be.state=Y,be.outcome=oe;for(var N=-1,G=be.queue.length;++N<G;)be.queue[N].callFulfilled(oe)}return be},C.reject=function(be,oe){be.state=F,be.outcome=oe;for(var me=-1,we=be.queue.length;++me<we;)be.queue[me].callRejected(oe);return be},se.resolve=function(be){return be instanceof this?be:C.resolve(new this(g),be)},se.reject=function(be){var oe=new this(g);return C.reject(oe,be)},se.all=function(be){var oe=this;if("[object Array]"!==Object.prototype.toString.call(be))return this.reject(new TypeError("must be an array"));var me=be.length,we=!1;if(!me)return this.resolve([]);for(var N=new Array(me),G=0,W=-1,z=new this(g);++W<me;)X(be[W],W);return z;function X(q,ye){oe.resolve(q).then(function(xe){N[ye]=xe,++G!==me||we||(we=!0,C.resolve(z,N))},function(xe){we||(we=!0,C.reject(z,xe))})}},se.race=function(be){if("[object Array]"!==Object.prototype.toString.call(be))return this.reject(new TypeError("must be an array"));var oe=be.length,me=!1;if(!oe)return this.resolve([]);for(var N=-1,G=new this(g);++N<oe;)this.resolve(be[N]).then(function(W){me||(me=!0,C.resolve(G,W))},function(W){me||(me=!0,C.reject(G,W))});return G}},{immediate:36}],38:[function(f,k,I){var x={};(0,f("./lib/utils/common").assign)(x,f("./lib/deflate"),f("./lib/inflate"),f("./lib/zlib/constants")),k.exports=x},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(f,k,I){var x=f("./zlib/deflate"),g=f("./utils/common"),C=f("./utils/strings"),F=f("./zlib/messages"),Y=f("./zlib/zstream"),Q=Object.prototype.toString;function se(ee){if(!(this instanceof se))return new se(ee);this.options=g.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},ee||{});var re=this.options;re.raw&&0<re.windowBits?re.windowBits=-re.windowBits:re.gzip&&0<re.windowBits&&re.windowBits<16&&(re.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Y,this.strm.avail_out=0;var ne=x.deflateInit2(this.strm,re.level,re.method,re.windowBits,re.memLevel,re.strategy);if(0!==ne)throw new Error(F[ne]);if(re.header&&x.deflateSetHeader(this.strm,re.header),re.dictionary){var _e;if(_e="string"==typeof re.dictionary?C.string2buf(re.dictionary):"[object ArrayBuffer]"===Q.call(re.dictionary)?new Uint8Array(re.dictionary):re.dictionary,0!==(ne=x.deflateSetDictionary(this.strm,_e)))throw new Error(F[ne]);this._dict_set=!0}}function ie(ee,re){var ne=new se(re);if(ne.push(ee,!0),ne.err)throw ne.msg||F[ne.err];return ne.result}se.prototype.push=function(ee,re){var ne,_e,be=this.strm,oe=this.options.chunkSize;if(this.ended)return!1;_e=re===~~re?re:!0===re?4:0,be.input="string"==typeof ee?C.string2buf(ee):"[object ArrayBuffer]"===Q.call(ee)?new Uint8Array(ee):ee,be.next_in=0,be.avail_in=be.input.length;do{if(0===be.avail_out&&(be.output=new g.Buf8(oe),be.next_out=0,be.avail_out=oe),1!==(ne=x.deflate(be,_e))&&0!==ne)return this.onEnd(ne),!(this.ended=!0);0!==be.avail_out&&(0!==be.avail_in||4!==_e&&2!==_e)||this.onData("string"===this.options.to?C.buf2binstring(g.shrinkBuf(be.output,be.next_out)):g.shrinkBuf(be.output,be.next_out))}while((0<be.avail_in||0===be.avail_out)&&1!==ne);return 4===_e?(ne=x.deflateEnd(this.strm),this.onEnd(ne),this.ended=!0,0===ne):2!==_e||(this.onEnd(0),!(be.avail_out=0))},se.prototype.onData=function(ee){this.chunks.push(ee)},se.prototype.onEnd=function(ee){0===ee&&(this.result="string"===this.options.to?this.chunks.join(""):g.flattenChunks(this.chunks)),this.chunks=[],this.err=ee,this.msg=this.strm.msg},I.Deflate=se,I.deflate=ie,I.deflateRaw=function(ee,re){return(re=re||{}).raw=!0,ie(ee,re)},I.gzip=function(ee,re){return(re=re||{}).gzip=!0,ie(ee,re)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(f,k,I){var x=f("./zlib/inflate"),g=f("./utils/common"),C=f("./utils/strings"),F=f("./zlib/constants"),Y=f("./zlib/messages"),Q=f("./zlib/zstream"),se=f("./zlib/gzheader"),ie=Object.prototype.toString;function ee(ne){if(!(this instanceof ee))return new ee(ne);this.options=g.assign({chunkSize:16384,windowBits:0,to:""},ne||{});var _e=this.options;_e.raw&&0<=_e.windowBits&&_e.windowBits<16&&(_e.windowBits=-_e.windowBits,0===_e.windowBits&&(_e.windowBits=-15)),!(0<=_e.windowBits&&_e.windowBits<16)||ne&&ne.windowBits||(_e.windowBits+=32),15<_e.windowBits&&_e.windowBits<48&&!(15&_e.windowBits)&&(_e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Q,this.strm.avail_out=0;var be=x.inflateInit2(this.strm,_e.windowBits);if(be!==F.Z_OK)throw new Error(Y[be]);this.header=new se,x.inflateGetHeader(this.strm,this.header)}function re(ne,_e){var be=new ee(_e);if(be.push(ne,!0),be.err)throw be.msg||Y[be.err];return be.result}ee.prototype.push=function(ne,_e){var be,oe,me,we,N,G,W=this.strm,z=this.options.chunkSize,X=this.options.dictionary,q=!1;if(this.ended)return!1;oe=_e===~~_e?_e:!0===_e?F.Z_FINISH:F.Z_NO_FLUSH,W.input="string"==typeof ne?C.binstring2buf(ne):"[object ArrayBuffer]"===ie.call(ne)?new Uint8Array(ne):ne,W.next_in=0,W.avail_in=W.input.length;do{if(0===W.avail_out&&(W.output=new g.Buf8(z),W.next_out=0,W.avail_out=z),(be=x.inflate(W,F.Z_NO_FLUSH))===F.Z_NEED_DICT&&X&&(G="string"==typeof X?C.string2buf(X):"[object ArrayBuffer]"===ie.call(X)?new Uint8Array(X):X,be=x.inflateSetDictionary(this.strm,G)),be===F.Z_BUF_ERROR&&!0===q&&(be=F.Z_OK,q=!1),be!==F.Z_STREAM_END&&be!==F.Z_OK)return this.onEnd(be),!(this.ended=!0);W.next_out&&(0!==W.avail_out&&be!==F.Z_STREAM_END&&(0!==W.avail_in||oe!==F.Z_FINISH&&oe!==F.Z_SYNC_FLUSH)||("string"===this.options.to?(me=C.utf8border(W.output,W.next_out),we=W.next_out-me,N=C.buf2string(W.output,me),W.next_out=we,W.avail_out=z-we,we&&g.arraySet(W.output,W.output,me,we,0),this.onData(N)):this.onData(g.shrinkBuf(W.output,W.next_out)))),0===W.avail_in&&0===W.avail_out&&(q=!0)}while((0<W.avail_in||0===W.avail_out)&&be!==F.Z_STREAM_END);return be===F.Z_STREAM_END&&(oe=F.Z_FINISH),oe===F.Z_FINISH?(be=x.inflateEnd(this.strm),this.onEnd(be),this.ended=!0,be===F.Z_OK):oe!==F.Z_SYNC_FLUSH||(this.onEnd(F.Z_OK),!(W.avail_out=0))},ee.prototype.onData=function(ne){this.chunks.push(ne)},ee.prototype.onEnd=function(ne){ne===F.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):g.flattenChunks(this.chunks)),this.chunks=[],this.err=ne,this.msg=this.strm.msg},I.Inflate=ee,I.inflate=re,I.inflateRaw=function(ne,_e){return(_e=_e||{}).raw=!0,re(ne,_e)},I.ungzip=re},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(f,k,I){var x=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";I.assign=function(F){for(var Y=Array.prototype.slice.call(arguments,1);Y.length;){var Q=Y.shift();if(Q){if("object"!=typeof Q)throw new TypeError(Q+"must be non-object");for(var se in Q)Q.hasOwnProperty(se)&&(F[se]=Q[se])}}return F},I.shrinkBuf=function(F,Y){return F.length===Y?F:F.subarray?F.subarray(0,Y):(F.length=Y,F)};var g={arraySet:function(F,Y,Q,se,ie){if(Y.subarray&&F.subarray)F.set(Y.subarray(Q,Q+se),ie);else for(var ee=0;ee<se;ee++)F[ie+ee]=Y[Q+ee]},flattenChunks:function(F){var Y,Q,se,ie,ee,re;for(Y=se=0,Q=F.length;Y<Q;Y++)se+=F[Y].length;for(re=new Uint8Array(se),Y=ie=0,Q=F.length;Y<Q;Y++)re.set(ee=F[Y],ie),ie+=ee.length;return re}},C={arraySet:function(F,Y,Q,se,ie){for(var ee=0;ee<se;ee++)F[ie+ee]=Y[Q+ee]},flattenChunks:function(F){return[].concat.apply([],F)}};I.setTyped=function(F){F?(I.Buf8=Uint8Array,I.Buf16=Uint16Array,I.Buf32=Int32Array,I.assign(I,g)):(I.Buf8=Array,I.Buf16=Array,I.Buf32=Array,I.assign(I,C))},I.setTyped(x)},{}],42:[function(f,k,I){var x=f("./common"),g=!0,C=!0;try{String.fromCharCode.apply(null,[0])}catch{g=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{C=!1}for(var F=new x.Buf8(256),Y=0;Y<256;Y++)F[Y]=252<=Y?6:248<=Y?5:240<=Y?4:224<=Y?3:192<=Y?2:1;function Q(se,ie){if(ie<65537&&(se.subarray&&C||!se.subarray&&g))return String.fromCharCode.apply(null,x.shrinkBuf(se,ie));for(var ee="",re=0;re<ie;re++)ee+=String.fromCharCode(se[re]);return ee}F[254]=F[254]=1,I.string2buf=function(se){var ie,ee,re,ne,_e,be=se.length,oe=0;for(ne=0;ne<be;ne++)55296==(64512&(ee=se.charCodeAt(ne)))&&ne+1<be&&56320==(64512&(re=se.charCodeAt(ne+1)))&&(ee=65536+(ee-55296<<10)+(re-56320),ne++),oe+=ee<128?1:ee<2048?2:ee<65536?3:4;for(ie=new x.Buf8(oe),ne=_e=0;_e<oe;ne++)55296==(64512&(ee=se.charCodeAt(ne)))&&ne+1<be&&56320==(64512&(re=se.charCodeAt(ne+1)))&&(ee=65536+(ee-55296<<10)+(re-56320),ne++),ee<128?ie[_e++]=ee:(ee<2048?ie[_e++]=192|ee>>>6:(ee<65536?ie[_e++]=224|ee>>>12:(ie[_e++]=240|ee>>>18,ie[_e++]=128|ee>>>12&63),ie[_e++]=128|ee>>>6&63),ie[_e++]=128|63&ee);return ie},I.buf2binstring=function(se){return Q(se,se.length)},I.binstring2buf=function(se){for(var ie=new x.Buf8(se.length),ee=0,re=ie.length;ee<re;ee++)ie[ee]=se.charCodeAt(ee);return ie},I.buf2string=function(se,ie){var ee,re,ne,_e,be=ie||se.length,oe=new Array(2*be);for(ee=re=0;ee<be;)if((ne=se[ee++])<128)oe[re++]=ne;else if(4<(_e=F[ne]))oe[re++]=65533,ee+=_e-1;else{for(ne&=2===_e?31:3===_e?15:7;1<_e&&ee<be;)ne=ne<<6|63&se[ee++],_e--;1<_e?oe[re++]=65533:ne<65536?oe[re++]=ne:(oe[re++]=55296|(ne-=65536)>>10&1023,oe[re++]=56320|1023&ne)}return Q(oe,re)},I.utf8border=function(se,ie){var ee;for((ie=ie||se.length)>se.length&&(ie=se.length),ee=ie-1;0<=ee&&128==(192&se[ee]);)ee--;return ee<0||0===ee?ie:ee+F[se[ee]]>ie?ee:ie}},{"./common":41}],43:[function(f,k,I){k.exports=function(x,g,C,F){for(var Y=65535&x,Q=x>>>16&65535,se=0;0!==C;){for(C-=se=2e3<C?2e3:C;Q=Q+(Y=Y+g[F++]|0)|0,--se;);Y%=65521,Q%=65521}return Y|Q<<16}},{}],44:[function(f,k,I){k.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(f,k,I){var x=function(){for(var g,C=[],F=0;F<256;F++){g=F;for(var Y=0;Y<8;Y++)g=1&g?3988292384^g>>>1:g>>>1;C[F]=g}return C}();k.exports=function(g,C,F,Y){var Q=x,se=Y+F;g^=-1;for(var ie=Y;ie<se;ie++)g=g>>>8^Q[255&(g^C[ie])];return~g}},{}],46:[function(f,k,I){var x,g=f("../utils/common"),C=f("./trees"),F=f("./adler32"),Y=f("./crc32"),Q=f("./messages"),se=-2,ie=258,ee=262,re=113;function ne(he,Ie){return he.msg=Q[Ie],Ie}function _e(he){return(he<<1)-(4<he?9:0)}function be(he){for(var Ie=he.length;0<=--Ie;)he[Ie]=0}function oe(he){var Ie=he.state,ce=Ie.pending;ce>he.avail_out&&(ce=he.avail_out),0!==ce&&(g.arraySet(he.output,Ie.pending_buf,Ie.pending_out,ce,he.next_out),he.next_out+=ce,Ie.pending_out+=ce,he.total_out+=ce,he.avail_out-=ce,Ie.pending-=ce,0===Ie.pending&&(Ie.pending_out=0))}function me(he,Ie){C._tr_flush_block(he,0<=he.block_start?he.block_start:-1,he.strstart-he.block_start,Ie),he.block_start=he.strstart,oe(he.strm)}function we(he,Ie){he.pending_buf[he.pending++]=Ie}function N(he,Ie){he.pending_buf[he.pending++]=Ie>>>8&255,he.pending_buf[he.pending++]=255&Ie}function G(he,Ie){var ce,de,pe=he.max_chain_length,Be=he.strstart,We=he.prev_length,tt=he.nice_match,vt=he.strstart>he.w_size-ee?he.strstart-(he.w_size-ee):0,Xt=he.window,Nt=he.w_mask,Qe=he.prev,Et=he.strstart+ie,Lt=Xt[Be+We-1],wt=Xt[Be+We];he.prev_length>=he.good_match&&(pe>>=2),tt>he.lookahead&&(tt=he.lookahead);do{if(Xt[(ce=Ie)+We]===wt&&Xt[ce+We-1]===Lt&&Xt[ce]===Xt[Be]&&Xt[++ce]===Xt[Be+1]){Be+=2,ce++;do{}while(Xt[++Be]===Xt[++ce]&&Xt[++Be]===Xt[++ce]&&Xt[++Be]===Xt[++ce]&&Xt[++Be]===Xt[++ce]&&Xt[++Be]===Xt[++ce]&&Xt[++Be]===Xt[++ce]&&Xt[++Be]===Xt[++ce]&&Xt[++Be]===Xt[++ce]&&Be<Et);if(de=ie-(Et-Be),Be=Et-ie,We<de){if(he.match_start=Ie,tt<=(We=de))break;Lt=Xt[Be+We-1],wt=Xt[Be+We]}}}while((Ie=Qe[Ie&Nt])>vt&&0!=--pe);return We<=he.lookahead?We:he.lookahead}function W(he){var Ie,ce,de,pe,Be,We,tt,vt,Xt,Nt,Qe=he.w_size;do{if(pe=he.window_size-he.lookahead-he.strstart,he.strstart>=Qe+(Qe-ee)){for(g.arraySet(he.window,he.window,Qe,Qe,0),he.match_start-=Qe,he.strstart-=Qe,he.block_start-=Qe,Ie=ce=he.hash_size;de=he.head[--Ie],he.head[Ie]=Qe<=de?de-Qe:0,--ce;);for(Ie=ce=Qe;de=he.prev[--Ie],he.prev[Ie]=Qe<=de?de-Qe:0,--ce;);pe+=Qe}if(0===he.strm.avail_in)break;if(tt=he.window,vt=he.strstart+he.lookahead,Nt=void 0,(Xt=pe)<(Nt=(We=he.strm).avail_in)&&(Nt=Xt),ce=0===Nt?0:(We.avail_in-=Nt,g.arraySet(tt,We.input,We.next_in,Nt,vt),1===We.state.wrap?We.adler=F(We.adler,tt,Nt,vt):2===We.state.wrap&&(We.adler=Y(We.adler,tt,Nt,vt)),We.next_in+=Nt,We.total_in+=Nt,Nt),he.lookahead+=ce,he.lookahead+he.insert>=3)for(he.ins_h=he.window[Be=he.strstart-he.insert],he.ins_h=(he.ins_h<<he.hash_shift^he.window[Be+1])&he.hash_mask;he.insert&&(he.ins_h=(he.ins_h<<he.hash_shift^he.window[Be+3-1])&he.hash_mask,he.prev[Be&he.w_mask]=he.head[he.ins_h],he.head[he.ins_h]=Be,Be++,he.insert--,!(he.lookahead+he.insert<3)););}while(he.lookahead<ee&&0!==he.strm.avail_in)}function z(he,Ie){for(var ce,de;;){if(he.lookahead<ee){if(W(he),he.lookahead<ee&&0===Ie)return 1;if(0===he.lookahead)break}if(ce=0,he.lookahead>=3&&(he.ins_h=(he.ins_h<<he.hash_shift^he.window[he.strstart+3-1])&he.hash_mask,ce=he.prev[he.strstart&he.w_mask]=he.head[he.ins_h],he.head[he.ins_h]=he.strstart),0!==ce&&he.strstart-ce<=he.w_size-ee&&(he.match_length=G(he,ce)),he.match_length>=3)if(de=C._tr_tally(he,he.strstart-he.match_start,he.match_length-3),he.lookahead-=he.match_length,he.match_length<=he.max_lazy_match&&he.lookahead>=3){for(he.match_length--;he.strstart++,he.ins_h=(he.ins_h<<he.hash_shift^he.window[he.strstart+3-1])&he.hash_mask,ce=he.prev[he.strstart&he.w_mask]=he.head[he.ins_h],he.head[he.ins_h]=he.strstart,0!=--he.match_length;);he.strstart++}else he.strstart+=he.match_length,he.match_length=0,he.ins_h=he.window[he.strstart],he.ins_h=(he.ins_h<<he.hash_shift^he.window[he.strstart+1])&he.hash_mask;else de=C._tr_tally(he,0,he.window[he.strstart]),he.lookahead--,he.strstart++;if(de&&(me(he,!1),0===he.strm.avail_out))return 1}return he.insert=he.strstart<2?he.strstart:2,4===Ie?(me(he,!0),0===he.strm.avail_out?3:4):he.last_lit&&(me(he,!1),0===he.strm.avail_out)?1:2}function X(he,Ie){for(var ce,de,pe;;){if(he.lookahead<ee){if(W(he),he.lookahead<ee&&0===Ie)return 1;if(0===he.lookahead)break}if(ce=0,he.lookahead>=3&&(he.ins_h=(he.ins_h<<he.hash_shift^he.window[he.strstart+3-1])&he.hash_mask,ce=he.prev[he.strstart&he.w_mask]=he.head[he.ins_h],he.head[he.ins_h]=he.strstart),he.prev_length=he.match_length,he.prev_match=he.match_start,he.match_length=2,0!==ce&&he.prev_length<he.max_lazy_match&&he.strstart-ce<=he.w_size-ee&&(he.match_length=G(he,ce),he.match_length<=5&&(1===he.strategy||3===he.match_length&&4096<he.strstart-he.match_start)&&(he.match_length=2)),he.prev_length>=3&&he.match_length<=he.prev_length){for(pe=he.strstart+he.lookahead-3,de=C._tr_tally(he,he.strstart-1-he.prev_match,he.prev_length-3),he.lookahead-=he.prev_length-1,he.prev_length-=2;++he.strstart<=pe&&(he.ins_h=(he.ins_h<<he.hash_shift^he.window[he.strstart+3-1])&he.hash_mask,ce=he.prev[he.strstart&he.w_mask]=he.head[he.ins_h],he.head[he.ins_h]=he.strstart),0!=--he.prev_length;);if(he.match_available=0,he.match_length=2,he.strstart++,de&&(me(he,!1),0===he.strm.avail_out))return 1}else if(he.match_available){if((de=C._tr_tally(he,0,he.window[he.strstart-1]))&&me(he,!1),he.strstart++,he.lookahead--,0===he.strm.avail_out)return 1}else he.match_available=1,he.strstart++,he.lookahead--}return he.match_available&&(de=C._tr_tally(he,0,he.window[he.strstart-1]),he.match_available=0),he.insert=he.strstart<2?he.strstart:2,4===Ie?(me(he,!0),0===he.strm.avail_out?3:4):he.last_lit&&(me(he,!1),0===he.strm.avail_out)?1:2}function q(he,Ie,ce,de,pe){this.good_length=he,this.max_lazy=Ie,this.nice_length=ce,this.max_chain=de,this.func=pe}function ye(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new g.Buf16(1146),this.dyn_dtree=new g.Buf16(122),this.bl_tree=new g.Buf16(78),be(this.dyn_ltree),be(this.dyn_dtree),be(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new g.Buf16(16),this.heap=new g.Buf16(573),be(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new g.Buf16(573),be(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function xe(he){var Ie;return he&&he.state?(he.total_in=he.total_out=0,he.data_type=2,(Ie=he.state).pending=0,Ie.pending_out=0,Ie.wrap<0&&(Ie.wrap=-Ie.wrap),Ie.status=Ie.wrap?42:re,he.adler=2===Ie.wrap?0:1,Ie.last_flush=0,C._tr_init(Ie),0):ne(he,se)}function ge(he){var ce,Ie=xe(he);return 0===Ie&&((ce=he.state).window_size=2*ce.w_size,be(ce.head),ce.max_lazy_match=x[ce.level].max_lazy,ce.good_match=x[ce.level].good_length,ce.nice_match=x[ce.level].nice_length,ce.max_chain_length=x[ce.level].max_chain,ce.strstart=0,ce.block_start=0,ce.lookahead=0,ce.insert=0,ce.match_length=ce.prev_length=2,ce.match_available=0,ce.ins_h=0),Ie}function Ee(he,Ie,ce,de,pe,Be){if(!he)return se;var We=1;if(-1===Ie&&(Ie=6),de<0?(We=0,de=-de):15<de&&(We=2,de-=16),pe<1||9<pe||8!==ce||de<8||15<de||Ie<0||9<Ie||Be<0||4<Be)return ne(he,se);8===de&&(de=9);var tt=new ye;return(he.state=tt).strm=he,tt.wrap=We,tt.gzhead=null,tt.w_bits=de,tt.w_size=1<<tt.w_bits,tt.w_mask=tt.w_size-1,tt.hash_bits=pe+7,tt.hash_size=1<<tt.hash_bits,tt.hash_mask=tt.hash_size-1,tt.hash_shift=~~((tt.hash_bits+3-1)/3),tt.window=new g.Buf8(2*tt.w_size),tt.head=new g.Buf16(tt.hash_size),tt.prev=new g.Buf16(tt.w_size),tt.lit_bufsize=1<<pe+6,tt.pending_buf_size=4*tt.lit_bufsize,tt.pending_buf=new g.Buf8(tt.pending_buf_size),tt.d_buf=1*tt.lit_bufsize,tt.l_buf=3*tt.lit_bufsize,tt.level=Ie,tt.strategy=Be,tt.method=ce,ge(he)}x=[new q(0,0,0,0,function(he,Ie){var ce=65535;for(ce>he.pending_buf_size-5&&(ce=he.pending_buf_size-5);;){if(he.lookahead<=1){if(W(he),0===he.lookahead&&0===Ie)return 1;if(0===he.lookahead)break}he.strstart+=he.lookahead,he.lookahead=0;var de=he.block_start+ce;if((0===he.strstart||he.strstart>=de)&&(he.lookahead=he.strstart-de,he.strstart=de,me(he,!1),0===he.strm.avail_out)||he.strstart-he.block_start>=he.w_size-ee&&(me(he,!1),0===he.strm.avail_out))return 1}return he.insert=0,4===Ie?(me(he,!0),0===he.strm.avail_out?3:4):(he.strstart>he.block_start&&me(he,!1),1)}),new q(4,4,8,4,z),new q(4,5,16,8,z),new q(4,6,32,32,z),new q(4,4,16,16,X),new q(8,16,32,32,X),new q(8,16,128,128,X),new q(8,32,128,256,X),new q(32,128,258,1024,X),new q(32,258,258,4096,X)],I.deflateInit=function(he,Ie){return Ee(he,Ie,8,15,8,0)},I.deflateInit2=Ee,I.deflateReset=ge,I.deflateResetKeep=xe,I.deflateSetHeader=function(he,Ie){return he&&he.state?2!==he.state.wrap?se:(he.state.gzhead=Ie,0):se},I.deflate=function(he,Ie){var ce,de,pe,Be;if(!he||!he.state||5<Ie||Ie<0)return he?ne(he,se):se;if(de=he.state,!he.output||!he.input&&0!==he.avail_in||666===de.status&&4!==Ie)return ne(he,0===he.avail_out?-5:se);if(de.strm=he,ce=de.last_flush,de.last_flush=Ie,42===de.status)if(2===de.wrap)he.adler=0,we(de,31),we(de,139),we(de,8),de.gzhead?(we(de,(de.gzhead.text?1:0)+(de.gzhead.hcrc?2:0)+(de.gzhead.extra?4:0)+(de.gzhead.name?8:0)+(de.gzhead.comment?16:0)),we(de,255&de.gzhead.time),we(de,de.gzhead.time>>8&255),we(de,de.gzhead.time>>16&255),we(de,de.gzhead.time>>24&255),we(de,9===de.level?2:2<=de.strategy||de.level<2?4:0),we(de,255&de.gzhead.os),de.gzhead.extra&&de.gzhead.extra.length&&(we(de,255&de.gzhead.extra.length),we(de,de.gzhead.extra.length>>8&255)),de.gzhead.hcrc&&(he.adler=Y(he.adler,de.pending_buf,de.pending,0)),de.gzindex=0,de.status=69):(we(de,0),we(de,0),we(de,0),we(de,0),we(de,0),we(de,9===de.level?2:2<=de.strategy||de.level<2?4:0),we(de,3),de.status=re);else{var We=8+(de.w_bits-8<<4)<<8;We|=(2<=de.strategy||de.level<2?0:de.level<6?1:6===de.level?2:3)<<6,0!==de.strstart&&(We|=32),We+=31-We%31,de.status=re,N(de,We),0!==de.strstart&&(N(de,he.adler>>>16),N(de,65535&he.adler)),he.adler=1}if(69===de.status)if(de.gzhead.extra){for(pe=de.pending;de.gzindex<(65535&de.gzhead.extra.length)&&(de.pending!==de.pending_buf_size||(de.gzhead.hcrc&&de.pending>pe&&(he.adler=Y(he.adler,de.pending_buf,de.pending-pe,pe)),oe(he),pe=de.pending,de.pending!==de.pending_buf_size));)we(de,255&de.gzhead.extra[de.gzindex]),de.gzindex++;de.gzhead.hcrc&&de.pending>pe&&(he.adler=Y(he.adler,de.pending_buf,de.pending-pe,pe)),de.gzindex===de.gzhead.extra.length&&(de.gzindex=0,de.status=73)}else de.status=73;if(73===de.status)if(de.gzhead.name){pe=de.pending;do{if(de.pending===de.pending_buf_size&&(de.gzhead.hcrc&&de.pending>pe&&(he.adler=Y(he.adler,de.pending_buf,de.pending-pe,pe)),oe(he),pe=de.pending,de.pending===de.pending_buf_size)){Be=1;break}Be=de.gzindex<de.gzhead.name.length?255&de.gzhead.name.charCodeAt(de.gzindex++):0,we(de,Be)}while(0!==Be);de.gzhead.hcrc&&de.pending>pe&&(he.adler=Y(he.adler,de.pending_buf,de.pending-pe,pe)),0===Be&&(de.gzindex=0,de.status=91)}else de.status=91;if(91===de.status)if(de.gzhead.comment){pe=de.pending;do{if(de.pending===de.pending_buf_size&&(de.gzhead.hcrc&&de.pending>pe&&(he.adler=Y(he.adler,de.pending_buf,de.pending-pe,pe)),oe(he),pe=de.pending,de.pending===de.pending_buf_size)){Be=1;break}Be=de.gzindex<de.gzhead.comment.length?255&de.gzhead.comment.charCodeAt(de.gzindex++):0,we(de,Be)}while(0!==Be);de.gzhead.hcrc&&de.pending>pe&&(he.adler=Y(he.adler,de.pending_buf,de.pending-pe,pe)),0===Be&&(de.status=103)}else de.status=103;if(103===de.status&&(de.gzhead.hcrc?(de.pending+2>de.pending_buf_size&&oe(he),de.pending+2<=de.pending_buf_size&&(we(de,255&he.adler),we(de,he.adler>>8&255),he.adler=0,de.status=re)):de.status=re),0!==de.pending){if(oe(he),0===he.avail_out)return de.last_flush=-1,0}else if(0===he.avail_in&&_e(Ie)<=_e(ce)&&4!==Ie)return ne(he,-5);if(666===de.status&&0!==he.avail_in)return ne(he,-5);if(0!==he.avail_in||0!==de.lookahead||0!==Ie&&666!==de.status){var tt=2===de.strategy?function(vt,Xt){for(var Nt;;){if(0===vt.lookahead&&(W(vt),0===vt.lookahead)){if(0===Xt)return 1;break}if(vt.match_length=0,Nt=C._tr_tally(vt,0,vt.window[vt.strstart]),vt.lookahead--,vt.strstart++,Nt&&(me(vt,!1),0===vt.strm.avail_out))return 1}return vt.insert=0,4===Xt?(me(vt,!0),0===vt.strm.avail_out?3:4):vt.last_lit&&(me(vt,!1),0===vt.strm.avail_out)?1:2}(de,Ie):3===de.strategy?function(vt,Xt){for(var Nt,Qe,Et,Lt,wt=vt.window;;){if(vt.lookahead<=ie){if(W(vt),vt.lookahead<=ie&&0===Xt)return 1;if(0===vt.lookahead)break}if(vt.match_length=0,vt.lookahead>=3&&0<vt.strstart&&(Qe=wt[Et=vt.strstart-1])===wt[++Et]&&Qe===wt[++Et]&&Qe===wt[++Et]){Lt=vt.strstart+ie;do{}while(Qe===wt[++Et]&&Qe===wt[++Et]&&Qe===wt[++Et]&&Qe===wt[++Et]&&Qe===wt[++Et]&&Qe===wt[++Et]&&Qe===wt[++Et]&&Qe===wt[++Et]&&Et<Lt);vt.match_length=ie-(Lt-Et),vt.match_length>vt.lookahead&&(vt.match_length=vt.lookahead)}if(vt.match_length>=3?(Nt=C._tr_tally(vt,1,vt.match_length-3),vt.lookahead-=vt.match_length,vt.strstart+=vt.match_length,vt.match_length=0):(Nt=C._tr_tally(vt,0,vt.window[vt.strstart]),vt.lookahead--,vt.strstart++),Nt&&(me(vt,!1),0===vt.strm.avail_out))return 1}return vt.insert=0,4===Xt?(me(vt,!0),0===vt.strm.avail_out?3:4):vt.last_lit&&(me(vt,!1),0===vt.strm.avail_out)?1:2}(de,Ie):x[de.level].func(de,Ie);if(3!==tt&&4!==tt||(de.status=666),1===tt||3===tt)return 0===he.avail_out&&(de.last_flush=-1),0;if(2===tt&&(1===Ie?C._tr_align(de):5!==Ie&&(C._tr_stored_block(de,0,0,!1),3===Ie&&(be(de.head),0===de.lookahead&&(de.strstart=0,de.block_start=0,de.insert=0))),oe(he),0===he.avail_out))return de.last_flush=-1,0}return 4!==Ie?0:de.wrap<=0?1:(2===de.wrap?(we(de,255&he.adler),we(de,he.adler>>8&255),we(de,he.adler>>16&255),we(de,he.adler>>24&255),we(de,255&he.total_in),we(de,he.total_in>>8&255),we(de,he.total_in>>16&255),we(de,he.total_in>>24&255)):(N(de,he.adler>>>16),N(de,65535&he.adler)),oe(he),0<de.wrap&&(de.wrap=-de.wrap),0!==de.pending?0:1)},I.deflateEnd=function(he){var Ie;return he&&he.state?42!==(Ie=he.state.status)&&69!==Ie&&73!==Ie&&91!==Ie&&103!==Ie&&Ie!==re&&666!==Ie?ne(he,se):(he.state=null,Ie===re?ne(he,-3):0):se},I.deflateSetDictionary=function(he,Ie){var ce,de,pe,Be,We,tt,vt,Xt,Nt=Ie.length;if(!he||!he.state||2===(Be=(ce=he.state).wrap)||1===Be&&42!==ce.status||ce.lookahead)return se;for(1===Be&&(he.adler=F(he.adler,Ie,Nt,0)),ce.wrap=0,Nt>=ce.w_size&&(0===Be&&(be(ce.head),ce.strstart=0,ce.block_start=0,ce.insert=0),Xt=new g.Buf8(ce.w_size),g.arraySet(Xt,Ie,Nt-ce.w_size,ce.w_size,0),Ie=Xt,Nt=ce.w_size),We=he.avail_in,tt=he.next_in,vt=he.input,he.avail_in=Nt,he.next_in=0,he.input=Ie,W(ce);ce.lookahead>=3;){for(de=ce.strstart,pe=ce.lookahead-2;ce.ins_h=(ce.ins_h<<ce.hash_shift^ce.window[de+3-1])&ce.hash_mask,ce.prev[de&ce.w_mask]=ce.head[ce.ins_h],ce.head[ce.ins_h]=de,de++,--pe;);ce.strstart=de,ce.lookahead=2,W(ce)}return ce.strstart+=ce.lookahead,ce.block_start=ce.strstart,ce.insert=ce.lookahead,ce.lookahead=0,ce.match_length=ce.prev_length=2,ce.match_available=0,he.next_in=tt,he.input=vt,he.avail_in=We,ce.wrap=Be,0},I.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(f,k,I){k.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(f,k,I){k.exports=function(x,g){var C,F,Y,Q,se,ie,ee,re,ne,_e,be,oe,me,we,N,G,W,z,X,q,ye,xe,ge,Ee,he;Ee=x.input,Y=(F=x.next_in)+(x.avail_in-5),he=x.output,se=(Q=x.next_out)-(g-x.avail_out),ie=Q+(x.avail_out-257),ee=(C=x.state).dmax,re=C.wsize,ne=C.whave,_e=C.wnext,be=C.window,oe=C.hold,me=C.bits,we=C.lencode,N=C.distcode,G=(1<<C.lenbits)-1,W=(1<<C.distbits)-1;e:do{me<15&&(oe+=Ee[F++]<<me,oe+=Ee[F++]<<(me+=8),me+=8),z=we[oe&G];t:for(;;){if(oe>>>=X=z>>>24,me-=X,0==(X=z>>>16&255))he[Q++]=65535&z;else{if(!(16&X)){if(!(64&X)){z=we[(65535&z)+(oe&(1<<X)-1)];continue t}if(32&X){C.mode=12;break e}x.msg="invalid literal/length code",C.mode=30;break e}q=65535&z,(X&=15)&&(me<X&&(oe+=Ee[F++]<<me,me+=8),q+=oe&(1<<X)-1,oe>>>=X,me-=X),me<15&&(oe+=Ee[F++]<<me,oe+=Ee[F++]<<(me+=8),me+=8),z=N[oe&W];i:for(;;){if(oe>>>=X=z>>>24,me-=X,!(16&(X=z>>>16&255))){if(!(64&X)){z=N[(65535&z)+(oe&(1<<X)-1)];continue i}x.msg="invalid distance code",C.mode=30;break e}if(ye=65535&z,me<(X&=15)&&(oe+=Ee[F++]<<me,(me+=8)<X&&(oe+=Ee[F++]<<me,me+=8)),ee<(ye+=oe&(1<<X)-1)){x.msg="invalid distance too far back",C.mode=30;break e}if(oe>>>=X,me-=X,(X=Q-se)<ye){if(ne<(X=ye-X)&&C.sane){x.msg="invalid distance too far back",C.mode=30;break e}if(ge=be,(xe=0)===_e){if(xe+=re-X,X<q){for(q-=X;he[Q++]=be[xe++],--X;);xe=Q-ye,ge=he}}else if(_e<X){if(xe+=re+_e-X,(X-=_e)<q){for(q-=X;he[Q++]=be[xe++],--X;);if(xe=0,_e<q){for(q-=X=_e;he[Q++]=be[xe++],--X;);xe=Q-ye,ge=he}}}else if(xe+=_e-X,X<q){for(q-=X;he[Q++]=be[xe++],--X;);xe=Q-ye,ge=he}for(;2<q;)he[Q++]=ge[xe++],he[Q++]=ge[xe++],he[Q++]=ge[xe++],q-=3;q&&(he[Q++]=ge[xe++],1<q&&(he[Q++]=ge[xe++]))}else{for(xe=Q-ye;he[Q++]=he[xe++],he[Q++]=he[xe++],he[Q++]=he[xe++],2<(q-=3););q&&(he[Q++]=he[xe++],1<q&&(he[Q++]=he[xe++]))}break}}break}}while(F<Y&&Q<ie);F-=q=me>>3,oe&=(1<<(me-=q<<3))-1,x.next_in=F,x.next_out=Q,x.avail_in=F<Y?Y-F+5:5-(F-Y),x.avail_out=Q<ie?ie-Q+257:257-(Q-ie),C.hold=oe,C.bits=me}},{}],49:[function(f,k,I){var x=f("../utils/common"),g=f("./adler32"),C=f("./crc32"),F=f("./inffast"),Y=f("./inftrees"),Q=-2;function se(G){return(G>>>24&255)+(G>>>8&65280)+((65280&G)<<8)+((255&G)<<24)}function ie(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new x.Buf16(320),this.work=new x.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ee(G){var W;return G&&G.state?(G.total_in=G.total_out=(W=G.state).total=0,G.msg="",W.wrap&&(G.adler=1&W.wrap),W.mode=1,W.last=0,W.havedict=0,W.dmax=32768,W.head=null,W.hold=0,W.bits=0,W.lencode=W.lendyn=new x.Buf32(852),W.distcode=W.distdyn=new x.Buf32(592),W.sane=1,W.back=-1,0):Q}function re(G){var W;return G&&G.state?((W=G.state).wsize=0,W.whave=0,W.wnext=0,ee(G)):Q}function ne(G,W){var z,X;return G&&G.state?(X=G.state,W<0?(z=0,W=-W):(z=1+(W>>4),W<48&&(W&=15)),W&&(W<8||15<W)?Q:(null!==X.window&&X.wbits!==W&&(X.window=null),X.wrap=z,X.wbits=W,re(G))):Q}function _e(G,W){var z,X;return G?(X=new ie,(G.state=X).window=null,0!==(z=ne(G,W))&&(G.state=null),z):Q}var be,oe,me=!0;function we(G){if(me){var W;for(be=new x.Buf32(512),oe=new x.Buf32(32),W=0;W<144;)G.lens[W++]=8;for(;W<256;)G.lens[W++]=9;for(;W<280;)G.lens[W++]=7;for(;W<288;)G.lens[W++]=8;for(Y(1,G.lens,0,288,be,0,G.work,{bits:9}),W=0;W<32;)G.lens[W++]=5;Y(2,G.lens,0,32,oe,0,G.work,{bits:5}),me=!1}G.lencode=be,G.lenbits=9,G.distcode=oe,G.distbits=5}function N(G,W,z,X){var q,ye=G.state;return null===ye.window&&(ye.wsize=1<<ye.wbits,ye.wnext=0,ye.whave=0,ye.window=new x.Buf8(ye.wsize)),X>=ye.wsize?(x.arraySet(ye.window,W,z-ye.wsize,ye.wsize,0),ye.wnext=0,ye.whave=ye.wsize):(X<(q=ye.wsize-ye.wnext)&&(q=X),x.arraySet(ye.window,W,z-X,q,ye.wnext),(X-=q)?(x.arraySet(ye.window,W,z-X,X,0),ye.wnext=X,ye.whave=ye.wsize):(ye.wnext+=q,ye.wnext===ye.wsize&&(ye.wnext=0),ye.whave<ye.wsize&&(ye.whave+=q))),0}I.inflateReset=re,I.inflateReset2=ne,I.inflateResetKeep=ee,I.inflateInit=function(G){return _e(G,15)},I.inflateInit2=_e,I.inflate=function(G,W){var z,X,q,ye,xe,ge,Ee,he,Ie,ce,de,pe,Be,We,tt,vt,Xt,Nt,Qe,Et,Lt,wt,Mt,Ge,ot=0,Tt=new x.Buf8(4),jt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!G||!G.state||!G.output||!G.input&&0!==G.avail_in)return Q;12===(z=G.state).mode&&(z.mode=13),xe=G.next_out,q=G.output,ye=G.next_in,X=G.input,he=z.hold,Ie=z.bits,ce=ge=G.avail_in,de=Ee=G.avail_out,wt=0;e:for(;;)switch(z.mode){case 1:if(0===z.wrap){z.mode=13;break}for(;Ie<16;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}if(2&z.wrap&&35615===he){Tt[z.check=0]=255&he,Tt[1]=he>>>8&255,z.check=C(z.check,Tt,2,0),Ie=he=0,z.mode=2;break}if(z.flags=0,z.head&&(z.head.done=!1),!(1&z.wrap)||(((255&he)<<8)+(he>>8))%31){G.msg="incorrect header check",z.mode=30;break}if(8!=(15&he)){G.msg="unknown compression method",z.mode=30;break}if(Ie-=4,Lt=8+(15&(he>>>=4)),0===z.wbits)z.wbits=Lt;else if(Lt>z.wbits){G.msg="invalid window size",z.mode=30;break}z.dmax=1<<Lt,G.adler=z.check=1,z.mode=512&he?10:12,Ie=he=0;break;case 2:for(;Ie<16;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}if(z.flags=he,8!=(255&z.flags)){G.msg="unknown compression method",z.mode=30;break}if(57344&z.flags){G.msg="unknown header flags set",z.mode=30;break}z.head&&(z.head.text=he>>8&1),512&z.flags&&(Tt[0]=255&he,Tt[1]=he>>>8&255,z.check=C(z.check,Tt,2,0)),Ie=he=0,z.mode=3;case 3:for(;Ie<32;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}z.head&&(z.head.time=he),512&z.flags&&(Tt[0]=255&he,Tt[1]=he>>>8&255,Tt[2]=he>>>16&255,Tt[3]=he>>>24&255,z.check=C(z.check,Tt,4,0)),Ie=he=0,z.mode=4;case 4:for(;Ie<16;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}z.head&&(z.head.xflags=255&he,z.head.os=he>>8),512&z.flags&&(Tt[0]=255&he,Tt[1]=he>>>8&255,z.check=C(z.check,Tt,2,0)),Ie=he=0,z.mode=5;case 5:if(1024&z.flags){for(;Ie<16;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}z.length=he,z.head&&(z.head.extra_len=he),512&z.flags&&(Tt[0]=255&he,Tt[1]=he>>>8&255,z.check=C(z.check,Tt,2,0)),Ie=he=0}else z.head&&(z.head.extra=null);z.mode=6;case 6:if(1024&z.flags&&(ge<(pe=z.length)&&(pe=ge),pe&&(z.head&&(Lt=z.head.extra_len-z.length,z.head.extra||(z.head.extra=new Array(z.head.extra_len)),x.arraySet(z.head.extra,X,ye,pe,Lt)),512&z.flags&&(z.check=C(z.check,X,pe,ye)),ge-=pe,ye+=pe,z.length-=pe),z.length))break e;z.length=0,z.mode=7;case 7:if(2048&z.flags){if(0===ge)break e;for(pe=0;Lt=X[ye+pe++],z.head&&Lt&&z.length<65536&&(z.head.name+=String.fromCharCode(Lt)),Lt&&pe<ge;);if(512&z.flags&&(z.check=C(z.check,X,pe,ye)),ge-=pe,ye+=pe,Lt)break e}else z.head&&(z.head.name=null);z.length=0,z.mode=8;case 8:if(4096&z.flags){if(0===ge)break e;for(pe=0;Lt=X[ye+pe++],z.head&&Lt&&z.length<65536&&(z.head.comment+=String.fromCharCode(Lt)),Lt&&pe<ge;);if(512&z.flags&&(z.check=C(z.check,X,pe,ye)),ge-=pe,ye+=pe,Lt)break e}else z.head&&(z.head.comment=null);z.mode=9;case 9:if(512&z.flags){for(;Ie<16;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}if(he!==(65535&z.check)){G.msg="header crc mismatch",z.mode=30;break}Ie=he=0}z.head&&(z.head.hcrc=z.flags>>9&1,z.head.done=!0),G.adler=z.check=0,z.mode=12;break;case 10:for(;Ie<32;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}G.adler=z.check=se(he),Ie=he=0,z.mode=11;case 11:if(0===z.havedict)return G.next_out=xe,G.avail_out=Ee,G.next_in=ye,G.avail_in=ge,z.hold=he,z.bits=Ie,2;G.adler=z.check=1,z.mode=12;case 12:if(5===W||6===W)break e;case 13:if(z.last){he>>>=7&Ie,Ie-=7&Ie,z.mode=27;break}for(;Ie<3;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}switch(z.last=1&he,Ie-=1,3&(he>>>=1)){case 0:z.mode=14;break;case 1:if(we(z),z.mode=20,6!==W)break;he>>>=2,Ie-=2;break e;case 2:z.mode=17;break;case 3:G.msg="invalid block type",z.mode=30}he>>>=2,Ie-=2;break;case 14:for(he>>>=7&Ie,Ie-=7&Ie;Ie<32;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}if((65535&he)!=(he>>>16^65535)){G.msg="invalid stored block lengths",z.mode=30;break}if(z.length=65535&he,Ie=he=0,z.mode=15,6===W)break e;case 15:z.mode=16;case 16:if(pe=z.length){if(ge<pe&&(pe=ge),Ee<pe&&(pe=Ee),0===pe)break e;x.arraySet(q,X,ye,pe,xe),ge-=pe,ye+=pe,Ee-=pe,xe+=pe,z.length-=pe;break}z.mode=12;break;case 17:for(;Ie<14;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}if(z.nlen=257+(31&he),Ie-=5,z.ndist=1+(31&(he>>>=5)),Ie-=5,z.ncode=4+(15&(he>>>=5)),he>>>=4,Ie-=4,286<z.nlen||30<z.ndist){G.msg="too many length or distance symbols",z.mode=30;break}z.have=0,z.mode=18;case 18:for(;z.have<z.ncode;){for(;Ie<3;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}z.lens[jt[z.have++]]=7&he,he>>>=3,Ie-=3}for(;z.have<19;)z.lens[jt[z.have++]]=0;if(z.lencode=z.lendyn,z.lenbits=7,wt=Y(0,z.lens,0,19,z.lencode,0,z.work,Mt={bits:z.lenbits}),z.lenbits=Mt.bits,wt){G.msg="invalid code lengths set",z.mode=30;break}z.have=0,z.mode=19;case 19:for(;z.have<z.nlen+z.ndist;){for(;vt=(ot=z.lencode[he&(1<<z.lenbits)-1])>>>16&255,Xt=65535&ot,!((tt=ot>>>24)<=Ie);){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}if(Xt<16)he>>>=tt,Ie-=tt,z.lens[z.have++]=Xt;else{if(16===Xt){for(Ge=tt+2;Ie<Ge;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}if(he>>>=tt,Ie-=tt,0===z.have){G.msg="invalid bit length repeat",z.mode=30;break}Lt=z.lens[z.have-1],pe=3+(3&he),he>>>=2,Ie-=2}else if(17===Xt){for(Ge=tt+3;Ie<Ge;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}Ie-=tt,Lt=0,pe=3+(7&(he>>>=tt)),he>>>=3,Ie-=3}else{for(Ge=tt+7;Ie<Ge;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}Ie-=tt,Lt=0,pe=11+(127&(he>>>=tt)),he>>>=7,Ie-=7}if(z.have+pe>z.nlen+z.ndist){G.msg="invalid bit length repeat",z.mode=30;break}for(;pe--;)z.lens[z.have++]=Lt}}if(30===z.mode)break;if(0===z.lens[256]){G.msg="invalid code -- missing end-of-block",z.mode=30;break}if(z.lenbits=9,wt=Y(1,z.lens,0,z.nlen,z.lencode,0,z.work,Mt={bits:z.lenbits}),z.lenbits=Mt.bits,wt){G.msg="invalid literal/lengths set",z.mode=30;break}if(z.distbits=6,z.distcode=z.distdyn,wt=Y(2,z.lens,z.nlen,z.ndist,z.distcode,0,z.work,Mt={bits:z.distbits}),z.distbits=Mt.bits,wt){G.msg="invalid distances set",z.mode=30;break}if(z.mode=20,6===W)break e;case 20:z.mode=21;case 21:if(6<=ge&&258<=Ee){G.next_out=xe,G.avail_out=Ee,G.next_in=ye,G.avail_in=ge,z.hold=he,z.bits=Ie,F(G,de),xe=G.next_out,q=G.output,Ee=G.avail_out,ye=G.next_in,X=G.input,ge=G.avail_in,he=z.hold,Ie=z.bits,12===z.mode&&(z.back=-1);break}for(z.back=0;vt=(ot=z.lencode[he&(1<<z.lenbits)-1])>>>16&255,Xt=65535&ot,!((tt=ot>>>24)<=Ie);){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}if(vt&&!(240&vt)){for(Nt=tt,Qe=vt,Et=Xt;vt=(ot=z.lencode[Et+((he&(1<<Nt+Qe)-1)>>Nt)])>>>16&255,Xt=65535&ot,!(Nt+(tt=ot>>>24)<=Ie);){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}he>>>=Nt,Ie-=Nt,z.back+=Nt}if(he>>>=tt,Ie-=tt,z.back+=tt,z.length=Xt,0===vt){z.mode=26;break}if(32&vt){z.back=-1,z.mode=12;break}if(64&vt){G.msg="invalid literal/length code",z.mode=30;break}z.extra=15&vt,z.mode=22;case 22:if(z.extra){for(Ge=z.extra;Ie<Ge;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}z.length+=he&(1<<z.extra)-1,he>>>=z.extra,Ie-=z.extra,z.back+=z.extra}z.was=z.length,z.mode=23;case 23:for(;vt=(ot=z.distcode[he&(1<<z.distbits)-1])>>>16&255,Xt=65535&ot,!((tt=ot>>>24)<=Ie);){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}if(!(240&vt)){for(Nt=tt,Qe=vt,Et=Xt;vt=(ot=z.distcode[Et+((he&(1<<Nt+Qe)-1)>>Nt)])>>>16&255,Xt=65535&ot,!(Nt+(tt=ot>>>24)<=Ie);){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}he>>>=Nt,Ie-=Nt,z.back+=Nt}if(he>>>=tt,Ie-=tt,z.back+=tt,64&vt){G.msg="invalid distance code",z.mode=30;break}z.offset=Xt,z.extra=15&vt,z.mode=24;case 24:if(z.extra){for(Ge=z.extra;Ie<Ge;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}z.offset+=he&(1<<z.extra)-1,he>>>=z.extra,Ie-=z.extra,z.back+=z.extra}if(z.offset>z.dmax){G.msg="invalid distance too far back",z.mode=30;break}z.mode=25;case 25:if(0===Ee)break e;if(z.offset>(pe=de-Ee)){if((pe=z.offset-pe)>z.whave&&z.sane){G.msg="invalid distance too far back",z.mode=30;break}Be=pe>z.wnext?z.wsize-(pe-=z.wnext):z.wnext-pe,pe>z.length&&(pe=z.length),We=z.window}else We=q,Be=xe-z.offset,pe=z.length;for(Ee<pe&&(pe=Ee),Ee-=pe,z.length-=pe;q[xe++]=We[Be++],--pe;);0===z.length&&(z.mode=21);break;case 26:if(0===Ee)break e;q[xe++]=z.length,Ee--,z.mode=21;break;case 27:if(z.wrap){for(;Ie<32;){if(0===ge)break e;ge--,he|=X[ye++]<<Ie,Ie+=8}if(G.total_out+=de-=Ee,z.total+=de,de&&(G.adler=z.check=z.flags?C(z.check,q,de,xe-de):g(z.check,q,de,xe-de)),de=Ee,(z.flags?he:se(he))!==z.check){G.msg="incorrect data check",z.mode=30;break}Ie=he=0}z.mode=28;case 28:if(z.wrap&&z.flags){for(;Ie<32;){if(0===ge)break e;ge--,he+=X[ye++]<<Ie,Ie+=8}if(he!==(4294967295&z.total)){G.msg="incorrect length check",z.mode=30;break}Ie=he=0}z.mode=29;case 29:wt=1;break e;case 30:wt=-3;break e;case 31:return-4;default:return Q}return G.next_out=xe,G.avail_out=Ee,G.next_in=ye,G.avail_in=ge,z.hold=he,z.bits=Ie,(z.wsize||de!==G.avail_out&&z.mode<30&&(z.mode<27||4!==W))&&N(G,G.output,G.next_out,de-G.avail_out)?(z.mode=31,-4):(de-=G.avail_out,G.total_in+=ce-=G.avail_in,G.total_out+=de,z.total+=de,z.wrap&&de&&(G.adler=z.check=z.flags?C(z.check,q,de,G.next_out-de):g(z.check,q,de,G.next_out-de)),G.data_type=z.bits+(z.last?64:0)+(12===z.mode?128:0)+(20===z.mode||15===z.mode?256:0),(0==ce&&0===de||4===W)&&0===wt&&(wt=-5),wt)},I.inflateEnd=function(G){if(!G||!G.state)return Q;var W=G.state;return W.window&&(W.window=null),G.state=null,0},I.inflateGetHeader=function(G,W){var z;return G&&G.state&&2&(z=G.state).wrap?((z.head=W).done=!1,0):Q},I.inflateSetDictionary=function(G,W){var z,X=W.length;return G&&G.state?0!==(z=G.state).wrap&&11!==z.mode?Q:11===z.mode&&g(1,W,X,0)!==z.check?-3:N(G,W,X,X)?(z.mode=31,-4):(z.havedict=1,0):Q},I.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(f,k,I){var x=f("../utils/common"),g=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],C=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],F=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Y=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];k.exports=function(Q,se,ie,ee,re,ne,_e,be){var oe,me,we,N,G,W,z,X,q,ye=be.bits,xe=0,ge=0,Ee=0,he=0,Ie=0,ce=0,de=0,pe=0,Be=0,We=0,tt=null,vt=0,Xt=new x.Buf16(16),Nt=new x.Buf16(16),Qe=null,Et=0;for(xe=0;xe<=15;xe++)Xt[xe]=0;for(ge=0;ge<ee;ge++)Xt[se[ie+ge]]++;for(Ie=ye,he=15;1<=he&&0===Xt[he];he--);if(he<Ie&&(Ie=he),0===he)return re[ne++]=20971520,re[ne++]=20971520,be.bits=1,0;for(Ee=1;Ee<he&&0===Xt[Ee];Ee++);for(Ie<Ee&&(Ie=Ee),xe=pe=1;xe<=15;xe++)if(pe<<=1,(pe-=Xt[xe])<0)return-1;if(0<pe&&(0===Q||1!==he))return-1;for(Nt[1]=0,xe=1;xe<15;xe++)Nt[xe+1]=Nt[xe]+Xt[xe];for(ge=0;ge<ee;ge++)0!==se[ie+ge]&&(_e[Nt[se[ie+ge]]++]=ge);if(W=0===Q?(tt=Qe=_e,19):1===Q?(tt=g,vt-=257,Qe=C,Et-=257,256):(tt=F,Qe=Y,-1),xe=Ee,G=ne,de=ge=We=0,we=-1,N=(Be=1<<(ce=Ie))-1,1===Q&&852<Be||2===Q&&592<Be)return 1;for(;;){for(z=xe-de,q=_e[ge]<W?(X=0,_e[ge]):_e[ge]>W?(X=Qe[Et+_e[ge]],tt[vt+_e[ge]]):(X=96,0),oe=1<<xe-de,Ee=me=1<<ce;re[G+(We>>de)+(me-=oe)]=z<<24|X<<16|q,0!==me;);for(oe=1<<xe-1;We&oe;)oe>>=1;if(0!==oe?(We&=oe-1,We+=oe):We=0,ge++,0==--Xt[xe]){if(xe===he)break;xe=se[ie+_e[ge]]}if(Ie<xe&&(We&N)!==we){for(0===de&&(de=Ie),G+=Ee,pe=1<<(ce=xe-de);ce+de<he&&!((pe-=Xt[ce+de])<=0);)ce++,pe<<=1;if(Be+=1<<ce,1===Q&&852<Be||2===Q&&592<Be)return 1;re[we=We&N]=Ie<<24|ce<<16|G-ne}}return 0!==We&&(re[G+We]=xe-de<<24|64<<16),be.bits=Ie,0}},{"../utils/common":41}],51:[function(f,k,I){k.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(f,k,I){var x=f("../utils/common");function g(Qe){for(var Et=Qe.length;0<=--Et;)Qe[Et]=0}var Q=15,se=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ie=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],re=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ne=new Array(576);g(ne);var _e=new Array(60);g(_e);var be=new Array(512);g(be);var oe=new Array(256);g(oe);var me=new Array(29);g(me);var we,N,G,W=new Array(30);function z(Qe,Et,Lt,wt,Mt){this.static_tree=Qe,this.extra_bits=Et,this.extra_base=Lt,this.elems=wt,this.max_length=Mt,this.has_stree=Qe&&Qe.length}function X(Qe,Et){this.dyn_tree=Qe,this.max_code=0,this.stat_desc=Et}function q(Qe){return Qe<256?be[Qe]:be[256+(Qe>>>7)]}function ye(Qe,Et){Qe.pending_buf[Qe.pending++]=255&Et,Qe.pending_buf[Qe.pending++]=Et>>>8&255}function xe(Qe,Et,Lt){Qe.bi_valid>16-Lt?(Qe.bi_buf|=Et<<Qe.bi_valid&65535,ye(Qe,Qe.bi_buf),Qe.bi_buf=Et>>16-Qe.bi_valid,Qe.bi_valid+=Lt-16):(Qe.bi_buf|=Et<<Qe.bi_valid&65535,Qe.bi_valid+=Lt)}function ge(Qe,Et,Lt){xe(Qe,Lt[2*Et],Lt[2*Et+1])}function Ee(Qe,Et){for(var Lt=0;Lt|=1&Qe,Qe>>>=1,Lt<<=1,0<--Et;);return Lt>>>1}function he(Qe,Et,Lt){var wt,Mt,Ge=new Array(16),ot=0;for(wt=1;wt<=Q;wt++)Ge[wt]=ot=ot+Lt[wt-1]<<1;for(Mt=0;Mt<=Et;Mt++){var Tt=Qe[2*Mt+1];0!==Tt&&(Qe[2*Mt]=Ee(Ge[Tt]++,Tt))}}function Ie(Qe){var Et;for(Et=0;Et<286;Et++)Qe.dyn_ltree[2*Et]=0;for(Et=0;Et<30;Et++)Qe.dyn_dtree[2*Et]=0;for(Et=0;Et<19;Et++)Qe.bl_tree[2*Et]=0;Qe.dyn_ltree[512]=1,Qe.opt_len=Qe.static_len=0,Qe.last_lit=Qe.matches=0}function ce(Qe){8<Qe.bi_valid?ye(Qe,Qe.bi_buf):0<Qe.bi_valid&&(Qe.pending_buf[Qe.pending++]=Qe.bi_buf),Qe.bi_buf=0,Qe.bi_valid=0}function de(Qe,Et,Lt,wt){var Mt=2*Et,Ge=2*Lt;return Qe[Mt]<Qe[Ge]||Qe[Mt]===Qe[Ge]&&wt[Et]<=wt[Lt]}function pe(Qe,Et,Lt){for(var wt=Qe.heap[Lt],Mt=Lt<<1;Mt<=Qe.heap_len&&(Mt<Qe.heap_len&&de(Et,Qe.heap[Mt+1],Qe.heap[Mt],Qe.depth)&&Mt++,!de(Et,wt,Qe.heap[Mt],Qe.depth));)Qe.heap[Lt]=Qe.heap[Mt],Lt=Mt,Mt<<=1;Qe.heap[Lt]=wt}function Be(Qe,Et,Lt){var wt,Mt,Ge,ot,Tt=0;if(0!==Qe.last_lit)for(;wt=Qe.pending_buf[Qe.d_buf+2*Tt]<<8|Qe.pending_buf[Qe.d_buf+2*Tt+1],Mt=Qe.pending_buf[Qe.l_buf+Tt],Tt++,0===wt?ge(Qe,Mt,Et):(ge(Qe,(Ge=oe[Mt])+256+1,Et),0!==(ot=se[Ge])&&xe(Qe,Mt-=me[Ge],ot),ge(Qe,Ge=q(--wt),Lt),0!==(ot=ie[Ge])&&xe(Qe,wt-=W[Ge],ot)),Tt<Qe.last_lit;);ge(Qe,256,Et)}function We(Qe,Et){var Lt,wt,Mt,Ge=Et.dyn_tree,ot=Et.stat_desc.static_tree,Tt=Et.stat_desc.has_stree,jt=Et.stat_desc.elems,li=-1;for(Qe.heap_len=0,Qe.heap_max=573,Lt=0;Lt<jt;Lt++)0!==Ge[2*Lt]?(Qe.heap[++Qe.heap_len]=li=Lt,Qe.depth[Lt]=0):Ge[2*Lt+1]=0;for(;Qe.heap_len<2;)Ge[2*(Mt=Qe.heap[++Qe.heap_len]=li<2?++li:0)]=1,Qe.depth[Mt]=0,Qe.opt_len--,Tt&&(Qe.static_len-=ot[2*Mt+1]);for(Et.max_code=li,Lt=Qe.heap_len>>1;1<=Lt;Lt--)pe(Qe,Ge,Lt);for(Mt=jt;Lt=Qe.heap[1],Qe.heap[1]=Qe.heap[Qe.heap_len--],pe(Qe,Ge,1),wt=Qe.heap[1],Qe.heap[--Qe.heap_max]=Lt,Qe.heap[--Qe.heap_max]=wt,Ge[2*Mt]=Ge[2*Lt]+Ge[2*wt],Qe.depth[Mt]=(Qe.depth[Lt]>=Qe.depth[wt]?Qe.depth[Lt]:Qe.depth[wt])+1,Ge[2*Lt+1]=Ge[2*wt+1]=Mt,Qe.heap[1]=Mt++,pe(Qe,Ge,1),2<=Qe.heap_len;);Qe.heap[--Qe.heap_max]=Qe.heap[1],function(an,xi){var Je,Ht,gi,Ti,ni,wi,ui=xi.dyn_tree,cn=xi.max_code,Ui=xi.stat_desc.static_tree,Xi=xi.stat_desc.has_stree,Qi=xi.stat_desc.extra_bits,Ut=xi.stat_desc.extra_base,It=xi.stat_desc.max_length,yt=0;for(Ti=0;Ti<=Q;Ti++)an.bl_count[Ti]=0;for(ui[2*an.heap[an.heap_max]+1]=0,Je=an.heap_max+1;Je<573;Je++)It<(Ti=ui[2*ui[2*(Ht=an.heap[Je])+1]+1]+1)&&(Ti=It,yt++),ui[2*Ht+1]=Ti,cn<Ht||(an.bl_count[Ti]++,ni=0,Ut<=Ht&&(ni=Qi[Ht-Ut]),an.opt_len+=(wi=ui[2*Ht])*(Ti+ni),Xi&&(an.static_len+=wi*(Ui[2*Ht+1]+ni)));if(0!==yt){do{for(Ti=It-1;0===an.bl_count[Ti];)Ti--;an.bl_count[Ti]--,an.bl_count[Ti+1]+=2,an.bl_count[It]--,yt-=2}while(0<yt);for(Ti=It;0!==Ti;Ti--)for(Ht=an.bl_count[Ti];0!==Ht;)cn<(gi=an.heap[--Je])||(ui[2*gi+1]!==Ti&&(an.opt_len+=(Ti-ui[2*gi+1])*ui[2*gi],ui[2*gi+1]=Ti),Ht--)}}(Qe,Et),he(Ge,li,Qe.bl_count)}function tt(Qe,Et,Lt){var wt,Mt,Ge=-1,ot=Et[1],Tt=0,jt=7,li=4;for(0===ot&&(jt=138,li=3),Et[2*(Lt+1)+1]=65535,wt=0;wt<=Lt;wt++)Mt=ot,ot=Et[2*(wt+1)+1],++Tt<jt&&Mt===ot||(Tt<li?Qe.bl_tree[2*Mt]+=Tt:0!==Mt?(Mt!==Ge&&Qe.bl_tree[2*Mt]++,Qe.bl_tree[32]++):Tt<=10?Qe.bl_tree[34]++:Qe.bl_tree[36]++,Ge=Mt,li=(Tt=0)===ot?(jt=138,3):Mt===ot?(jt=6,3):(jt=7,4))}function vt(Qe,Et,Lt){var wt,Mt,Ge=-1,ot=Et[1],Tt=0,jt=7,li=4;for(0===ot&&(jt=138,li=3),wt=0;wt<=Lt;wt++)if(Mt=ot,ot=Et[2*(wt+1)+1],!(++Tt<jt&&Mt===ot)){if(Tt<li)for(;ge(Qe,Mt,Qe.bl_tree),0!=--Tt;);else 0!==Mt?(Mt!==Ge&&(ge(Qe,Mt,Qe.bl_tree),Tt--),ge(Qe,16,Qe.bl_tree),xe(Qe,Tt-3,2)):Tt<=10?(ge(Qe,17,Qe.bl_tree),xe(Qe,Tt-3,3)):(ge(Qe,18,Qe.bl_tree),xe(Qe,Tt-11,7));Ge=Mt,li=(Tt=0)===ot?(jt=138,3):Mt===ot?(jt=6,3):(jt=7,4)}}g(W);var Xt=!1;function Nt(Qe,Et,Lt,wt){var Mt,Ge,ot;xe(Qe,0+(wt?1:0),3),Ge=Et,ot=Lt,ce(Mt=Qe),ye(Mt,ot),ye(Mt,~ot),x.arraySet(Mt.pending_buf,Mt.window,Ge,ot,Mt.pending),Mt.pending+=ot}I._tr_init=function(Qe){Xt||(function(){var Et,Lt,wt,Mt,Ge,ot=new Array(16);for(Mt=wt=0;Mt<28;Mt++)for(me[Mt]=wt,Et=0;Et<1<<se[Mt];Et++)oe[wt++]=Mt;for(oe[wt-1]=Mt,Mt=Ge=0;Mt<16;Mt++)for(W[Mt]=Ge,Et=0;Et<1<<ie[Mt];Et++)be[Ge++]=Mt;for(Ge>>=7;Mt<30;Mt++)for(W[Mt]=Ge<<7,Et=0;Et<1<<ie[Mt]-7;Et++)be[256+Ge++]=Mt;for(Lt=0;Lt<=Q;Lt++)ot[Lt]=0;for(Et=0;Et<=143;)ne[2*Et+1]=8,Et++,ot[8]++;for(;Et<=255;)ne[2*Et+1]=9,Et++,ot[9]++;for(;Et<=279;)ne[2*Et+1]=7,Et++,ot[7]++;for(;Et<=287;)ne[2*Et+1]=8,Et++,ot[8]++;for(he(ne,287,ot),Et=0;Et<30;Et++)_e[2*Et+1]=5,_e[2*Et]=Ee(Et,5);we=new z(ne,se,257,286,Q),N=new z(_e,ie,0,30,Q),G=new z(new Array(0),ee,0,19,7)}(),Xt=!0),Qe.l_desc=new X(Qe.dyn_ltree,we),Qe.d_desc=new X(Qe.dyn_dtree,N),Qe.bl_desc=new X(Qe.bl_tree,G),Qe.bi_buf=0,Qe.bi_valid=0,Ie(Qe)},I._tr_stored_block=Nt,I._tr_flush_block=function(Qe,Et,Lt,wt){var Mt,Ge,ot=0;0<Qe.level?(2===Qe.strm.data_type&&(Qe.strm.data_type=function(Tt){var jt,li=4093624447;for(jt=0;jt<=31;jt++,li>>>=1)if(1&li&&0!==Tt.dyn_ltree[2*jt])return 0;if(0!==Tt.dyn_ltree[18]||0!==Tt.dyn_ltree[20]||0!==Tt.dyn_ltree[26])return 1;for(jt=32;jt<256;jt++)if(0!==Tt.dyn_ltree[2*jt])return 1;return 0}(Qe)),We(Qe,Qe.l_desc),We(Qe,Qe.d_desc),ot=function(Tt){var jt;for(tt(Tt,Tt.dyn_ltree,Tt.l_desc.max_code),tt(Tt,Tt.dyn_dtree,Tt.d_desc.max_code),We(Tt,Tt.bl_desc),jt=18;3<=jt&&0===Tt.bl_tree[2*re[jt]+1];jt--);return Tt.opt_len+=3*(jt+1)+5+5+4,jt}(Qe),(Ge=Qe.static_len+3+7>>>3)<=(Mt=Qe.opt_len+3+7>>>3)&&(Mt=Ge)):Mt=Ge=Lt+5,Lt+4<=Mt&&-1!==Et?Nt(Qe,Et,Lt,wt):4===Qe.strategy||Ge===Mt?(xe(Qe,2+(wt?1:0),3),Be(Qe,ne,_e)):(xe(Qe,4+(wt?1:0),3),function(Tt,jt,li,an){var xi;for(xe(Tt,jt-257,5),xe(Tt,li-1,5),xe(Tt,an-4,4),xi=0;xi<an;xi++)xe(Tt,Tt.bl_tree[2*re[xi]+1],3);vt(Tt,Tt.dyn_ltree,jt-1),vt(Tt,Tt.dyn_dtree,li-1)}(Qe,Qe.l_desc.max_code+1,Qe.d_desc.max_code+1,ot+1),Be(Qe,Qe.dyn_ltree,Qe.dyn_dtree)),Ie(Qe),wt&&ce(Qe)},I._tr_tally=function(Qe,Et,Lt){return Qe.pending_buf[Qe.d_buf+2*Qe.last_lit]=Et>>>8&255,Qe.pending_buf[Qe.d_buf+2*Qe.last_lit+1]=255&Et,Qe.pending_buf[Qe.l_buf+Qe.last_lit]=255&Lt,Qe.last_lit++,0===Et?Qe.dyn_ltree[2*Lt]++:(Qe.matches++,Et--,Qe.dyn_ltree[2*(oe[Lt]+256+1)]++,Qe.dyn_dtree[2*q(Et)]++),Qe.last_lit===Qe.lit_bufsize-1},I._tr_align=function(Qe){var Et;xe(Qe,2,3),ge(Qe,256,ne),16===(Et=Qe).bi_valid?(ye(Et,Et.bi_buf),Et.bi_buf=0,Et.bi_valid=0):8<=Et.bi_valid&&(Et.pending_buf[Et.pending++]=255&Et.bi_buf,Et.bi_buf>>=8,Et.bi_valid-=8)}},{"../utils/common":41}],53:[function(f,k,I){k.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(f,k,I){(function(x){!function(g,C){if(!g.setImmediate){var F,Y,Q,se,ie=1,ee={},re=!1,ne=g.document,_e=Object.getPrototypeOf&&Object.getPrototypeOf(g);_e=_e&&_e.setTimeout?_e:g,F="[object process]"==={}.toString.call(g.process)?function(we){m.nextTick(function(){oe(we)})}:function(){if(g.postMessage&&!g.importScripts){var we=!0,N=g.onmessage;return g.onmessage=function(){we=!1},g.postMessage("","*"),g.onmessage=N,we}}()?(se="setImmediate$"+Math.random()+"$",g.addEventListener?g.addEventListener("message",me,!1):g.attachEvent("onmessage",me),function(we){g.postMessage(se+we,"*")}):g.MessageChannel?((Q=new MessageChannel).port1.onmessage=function(we){oe(we.data)},function(we){Q.port2.postMessage(we)}):ne&&"onreadystatechange"in ne.createElement("script")?(Y=ne.documentElement,function(we){var N=ne.createElement("script");N.onreadystatechange=function(){oe(we),N.onreadystatechange=null,Y.removeChild(N),N=null},Y.appendChild(N)}):function(we){setTimeout(oe,0,we)},_e.setImmediate=function(we){"function"!=typeof we&&(we=new Function(""+we));for(var N=new Array(arguments.length-1),G=0;G<N.length;G++)N[G]=arguments[G+1];return ee[ie]={callback:we,args:N},F(ie),ie++},_e.clearImmediate=be}function be(we){delete ee[we]}function oe(we){if(re)setTimeout(oe,0,we);else{var N=ee[we];if(N){re=!0;try{!function(G){var W=G.callback,z=G.args;switch(z.length){case 0:W();break;case 1:W(z[0]);break;case 2:W(z[0],z[1]);break;case 3:W(z[0],z[1],z[2]);break;default:W.apply(void 0,z)}}(N)}finally{be(we),re=!1}}}}function me(we){we.source===g&&"string"==typeof we.data&&0===we.data.indexOf(se)&&oe(+we.data.slice(se.length))}}(typeof self>"u"?void 0===x?this:x:self)}).call(this,void 0!==_?_:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,o("_process"),typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],o("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(o,E,R){(function(m){(function(){"use strict";var _=/[\\^$.*+?()[\]{}|]/g,v=RegExp(_.source),s="object"==typeof self&&self&&self.Object===Object&&self,b="object"==typeof m&&m&&m.Object===Object&&m||s||Function("return this")(),O=Object.prototype.toString,w=b.Symbol,f=w?w.prototype:void 0,k=f?f.toString:void 0;E.exports=function(x){var g;return(x=null==(g=x)?"":function I(x){if("string"==typeof x)return x;if("symbol"==typeof(C=x)||function(F){return!!F&&"object"==typeof F}(C)&&"[object Symbol]"==O.call(C))return k?k.call(x):"";var C,g=x+"";return"0"==g&&1/x==-1/0?"-0":g}(g))&&v.test(x)?x.replace(_,"\\$&"):x}}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(o,E,R){(function(m){(function(){"use strict";var _="[object Arguments]",v="[object Map]",h="[object Object]",s="[object Set]",b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O=/^\w*$/,w=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,I=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[_]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g[v]=g["[object Number]"]=g[h]=g["[object RegExp]"]=g[s]=g["[object String]"]=g["[object WeakMap]"]=!1;var C="object"==typeof m&&m&&m.Object===Object&&m,F="object"==typeof self&&self&&self.Object===Object&&self,Y=C||F||Function("return this")(),Q="object"==typeof R&&R&&!R.nodeType&&R,se=Q&&"object"==typeof E&&E&&!E.nodeType&&E,ie=se&&se.exports===Q&&C.process,ee=function(){try{return ie&&ie.binding("util")}catch{}}(),re=ee&&ee.isTypedArray;function ne(Dt,Pi,ln,An){for(var jn=-1,Gr=Dt?Dt.length:0;++jn<Gr;){var ct=Dt[jn];Pi(An,ct,ln(ct),Dt)}return An}function _e(Dt,Pi){for(var ln=-1,An=Dt?Dt.length:0;++ln<An;)if(Pi(Dt[ln],ln,Dt))return!0;return!1}function be(Dt){var Pi=!1;if(null!=Dt&&"function"!=typeof Dt.toString)try{Pi=!!(Dt+"")}catch{}return Pi}function oe(Dt){var Pi=-1,ln=Array(Dt.size);return Dt.forEach(function(An,jn){ln[++Pi]=[jn,An]}),ln}function me(Dt){var Pi=-1,ln=Array(Dt.size);return Dt.forEach(function(An){ln[++Pi]=An}),ln}var we,N,G,W=Array.prototype,z=Function.prototype,X=Object.prototype,q=Y["__core-js_shared__"],ye=(we=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+we:"",xe=z.toString,ge=X.hasOwnProperty,Ee=X.toString,he=RegExp("^"+xe.call(ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ie=Y.Symbol,ce=Y.Uint8Array,de=X.propertyIsEnumerable,pe=W.splice,Be=(N=Object.keys,G=Object,function(Dt){return N(G(Dt))}),We=ci(Y,"DataView"),tt=ci(Y,"Map"),vt=ci(Y,"Promise"),Xt=ci(Y,"Set"),Nt=ci(Y,"WeakMap"),Qe=ci(Object,"create"),Et=Wi(We),Lt=Wi(tt),wt=Wi(vt),Mt=Wi(Xt),Ge=Wi(Nt),ot=Ie?Ie.prototype:void 0,Tt=ot?ot.valueOf:void 0,jt=ot?ot.toString:void 0;function li(Dt){var Pi=-1,ln=Dt?Dt.length:0;for(this.clear();++Pi<ln;){var An=Dt[Pi];this.set(An[0],An[1])}}function an(Dt){var Pi=-1,ln=Dt?Dt.length:0;for(this.clear();++Pi<ln;){var An=Dt[Pi];this.set(An[0],An[1])}}function xi(Dt){var Pi=-1,ln=Dt?Dt.length:0;for(this.clear();++Pi<ln;){var An=Dt[Pi];this.set(An[0],An[1])}}function Je(Dt){var Pi=-1,ln=Dt?Dt.length:0;for(this.__data__=new xi;++Pi<ln;)this.add(Dt[Pi])}function Ht(Dt){this.__data__=new an(Dt)}function Ti(Dt,Pi){for(var ln=Dt.length;ln--;)if(po(Dt[ln][0],Pi))return ln;return-1}function ni(Dt,Pi,ln,An){return cn(Dt,function(jn,Gr,ct){Pi(An,jn,ln(jn),ct)}),An}li.prototype.clear=function(){this.__data__=Qe?Qe(null):{}},li.prototype.delete=function(Dt){return this.has(Dt)&&delete this.__data__[Dt]},li.prototype.get=function(Dt){var Pi=this.__data__;if(Qe){var ln=Pi[Dt];return"__lodash_hash_undefined__"===ln?void 0:ln}return ge.call(Pi,Dt)?Pi[Dt]:void 0},li.prototype.has=function(Dt){var Pi=this.__data__;return Qe?void 0!==Pi[Dt]:ge.call(Pi,Dt)},li.prototype.set=function(Dt,Pi){return this.__data__[Dt]=Qe&&void 0===Pi?"__lodash_hash_undefined__":Pi,this},an.prototype.clear=function(){this.__data__=[]},an.prototype.delete=function(Dt){var Pi=this.__data__,ln=Ti(Pi,Dt);return!(ln<0||(ln==Pi.length-1?Pi.pop():pe.call(Pi,ln,1),0))},an.prototype.get=function(Dt){var Pi=this.__data__,ln=Ti(Pi,Dt);return ln<0?void 0:Pi[ln][1]},an.prototype.has=function(Dt){return Ti(this.__data__,Dt)>-1},an.prototype.set=function(Dt,Pi){var ln=this.__data__,An=Ti(ln,Dt);return An<0?ln.push([Dt,Pi]):ln[An][1]=Pi,this},xi.prototype.clear=function(){this.__data__={hash:new li,map:new(tt||an),string:new li}},xi.prototype.delete=function(Dt){return Vt(this,Dt).delete(Dt)},xi.prototype.get=function(Dt){return Vt(this,Dt).get(Dt)},xi.prototype.has=function(Dt){return Vt(this,Dt).has(Dt)},xi.prototype.set=function(Dt,Pi){return Vt(this,Dt).set(Dt,Pi),this},Je.prototype.add=Je.prototype.push=function(Dt){return this.__data__.set(Dt,"__lodash_hash_undefined__"),this},Je.prototype.has=function(Dt){return this.__data__.has(Dt)},Ht.prototype.clear=function(){this.__data__=new an},Ht.prototype.delete=function(Dt){return this.__data__.delete(Dt)},Ht.prototype.get=function(Dt){return this.__data__.get(Dt)},Ht.prototype.has=function(Dt){return this.__data__.has(Dt)},Ht.prototype.set=function(Dt,Pi){var ln=this.__data__;if(ln instanceof an){var An=ln.__data__;if(!tt||An.length<199)return An.push([Dt,Pi]),this;ln=this.__data__=new xi(An)}return ln.set(Dt,Pi),this};var wi,cn=(wi=function(Dt,Pi){return Dt&&Ui(Dt,Pi,_t)},function(Dt,Pi){if(null==Dt)return Dt;if(!no(Dt))return wi(Dt,Pi);for(var ln=Dt.length,An=-1,jn=Object(Dt);++An<ln&&!1!==Pi(jn[An],An,jn););return Dt}),Ui=function(Dt){return function(Pi,ln,An){for(var jn=-1,Gr=Object(Pi),ct=An(Pi),ri=ct.length;ri--;){var Ci=ct[++jn];if(!1===ln(Gr[Ci],Ci,Gr))break}return Pi}}();function Xi(Dt,Pi){for(var ln=0,An=(Pi=ai(Pi,Dt)?[Pi]:st(Pi)).length;null!=Dt&&ln<An;)Dt=Dt[qi(Pi[ln++])];return ln&&ln==An?Dt:void 0}function Qi(Dt,Pi){return null!=Dt&&Pi in Object(Dt)}function Ut(Dt,Pi,ln,An,jn){return Dt===Pi||(null==Dt||null==Pi||!uo(Dt)&&!Eo(Pi)?Dt!=Dt&&Pi!=Pi:function(Gr,ct,ri,Ci,Ri,ji){var wn=Pr(Gr),Nn=Pr(ct),En="[object Array]",_r="[object Array]";wn||(En=(En=bi(Gr))==_?h:En),Nn||(_r=(_r=bi(ct))==_?h:_r);var ha=En==h&&!be(Gr),aa=_r==h&&!be(ct),Fa=En==_r;if(Fa&&!ha)return ji||(ji=new Ht),wn||Bi(Gr)?Wt(Gr,ct,ri,Ci,Ri,ji):function(ia,$o,mo,fl,Jl,zo,Ao){switch(mo){case"[object DataView]":if(ia.byteLength!=$o.byteLength||ia.byteOffset!=$o.byteOffset)return!1;ia=ia.buffer,$o=$o.buffer;case"[object ArrayBuffer]":return!(ia.byteLength!=$o.byteLength||!fl(new ce(ia),new ce($o)));case"[object Boolean]":case"[object Date]":case"[object Number]":return po(+ia,+$o);case"[object Error]":return ia.name==$o.name&&ia.message==$o.message;case"[object RegExp]":case"[object String]":return ia==$o+"";case v:var Ha=oe;case s:if(Ha||(Ha=me),ia.size!=$o.size&&!(2&zo))return!1;var Ql=Ao.get(ia);if(Ql)return Ql==$o;zo|=1,Ao.set(ia,$o);var ms=Wt(Ha(ia),Ha($o),fl,Jl,zo,Ao);return Ao.delete(ia),ms;case"[object Symbol]":if(Tt)return Tt.call(ia)==Tt.call($o)}return!1}(Gr,ct,En,ri,Ci,Ri,ji);if(!(2&Ri)){var Ya=ha&&ge.call(Gr,"__wrapped__"),_o=aa&&ge.call(ct,"__wrapped__");if(Ya||_o){var Yo=Ya?Gr.value():Gr,Va=_o?ct.value():ct;return ji||(ji=new Ht),ri(Yo,Va,Ci,Ri,ji)}}return!!Fa&&(ji||(ji=new Ht),function(ia,$o,mo,fl,Jl,zo){var Ao=2&Jl,Ha=_t(ia),us=Ha.length;if(us!=_t($o).length&&!Ao)return!1;for(var ms=us;ms--;){var El=Ha[ms];if(!(Ao?El in $o:ge.call($o,El)))return!1}var Wl=zo.get(ia);if(Wl&&zo.get($o))return Wl==$o;var Xd=!0;zo.set(ia,$o),zo.set($o,ia);for(var rs=Ao;++ms<us;){var Ho=ia[El=Ha[ms]],Zs=$o[El];if(fl)var jl=Ao?fl(Zs,Ho,El,$o,ia,zo):fl(Ho,Zs,El,ia,$o,zo);if(!(void 0===jl?Ho===Zs||mo(Ho,Zs,fl,Jl,zo):jl)){Xd=!1;break}rs||(rs="constructor"==El)}if(Xd&&!rs){var Ms=ia.constructor,Ko=$o.constructor;Ms==Ko||!("constructor"in ia)||!("constructor"in $o)||"function"==typeof Ms&&Ms instanceof Ms&&"function"==typeof Ko&&Ko instanceof Ko||(Xd=!1)}return zo.delete(ia),zo.delete($o),Xd}(Gr,ct,ri,Ci,Ri,ji))}(Dt,Pi,Ut,ln,An,jn))}function st(Dt){return Pr(Dt)?Dt:Kt(Dt)}function Wt(Dt,Pi,ln,An,jn,Gr){var ct=2&jn,ri=Dt.length,Ci=Pi.length;if(ri!=Ci&&!(ct&&Ci>ri))return!1;var Ri=Gr.get(Dt);if(Ri&&Gr.get(Pi))return Ri==Pi;var ji=-1,wn=!0,Nn=1&jn?new Je:void 0;for(Gr.set(Dt,Pi),Gr.set(Pi,Dt);++ji<ri;){var En=Dt[ji],_r=Pi[ji];if(An)var ha=ct?An(_r,En,ji,Pi,Dt,Gr):An(En,_r,ji,Dt,Pi,Gr);if(void 0!==ha){if(ha)continue;wn=!1;break}if(Nn){if(!_e(Pi,function(aa,Fa){if(!Nn.has(Fa)&&(En===aa||ln(En,aa,An,jn,Gr)))return Nn.add(Fa)})){wn=!1;break}}else if(En!==_r&&!ln(En,_r,An,jn,Gr)){wn=!1;break}}return Gr.delete(Dt),Gr.delete(Pi),wn}function Vt(Dt,Pi){var ln,An,jn=Dt.__data__;return("string"==(An=typeof(ln=Pi))||"number"==An||"symbol"==An||"boolean"==An?"__proto__"!==ln:null===ln)?jn["string"==typeof Pi?"string":"hash"]:jn.map}function ci(Dt,Pi){var An,jn,ln=(An=Dt,jn=Pi,An?.[jn]);return function It(Dt){return!(!uo(Dt)||(Pi=Dt,ye&&ye in Pi))&&(ja(Dt)||be(Dt)?he:I).test(Wi(Dt));var Pi}(ln)?ln:void 0}var bi=function(Dt){return Ee.call(Dt)};function gt(Dt,Pi){return!!(Pi=Pi??9007199254740991)&&("number"==typeof Dt||x.test(Dt))&&Dt>-1&&Dt%1==0&&Dt<Pi}function ai(Dt,Pi){if(Pr(Dt))return!1;var ln=typeof Dt;return!("number"!=ln&&"symbol"!=ln&&"boolean"!=ln&&null!=Dt&&!To(Dt))||O.test(Dt)||!b.test(Dt)||null!=Pi&&Dt in Object(Pi)}function kt(Dt){return Dt==Dt&&!uo(Dt)}function mi(Dt,Pi){return function(ln){return null!=ln&&ln[Dt]===Pi&&(void 0!==Pi||Dt in Object(ln))}}(We&&"[object DataView]"!=bi(new We(new ArrayBuffer(1)))||tt&&bi(new tt)!=v||vt&&"[object Promise]"!=bi(vt.resolve())||Xt&&bi(new Xt)!=s||Nt&&"[object WeakMap]"!=bi(new Nt))&&(bi=function(Dt){var Pi=Ee.call(Dt),ln=Pi==h?Dt.constructor:void 0,An=ln?Wi(ln):void 0;if(An)switch(An){case Et:return"[object DataView]";case Lt:return v;case wt:return"[object Promise]";case Mt:return s;case Ge:return"[object WeakMap]"}return Pi});var Kt=na(function(Dt){var Pi;Dt=null==(Pi=Dt)?"":function(An){if("string"==typeof An)return An;if(To(An))return jt?jt.call(An):"";var jn=An+"";return"0"==jn&&1/An==-1/0?"-0":jn}(Pi);var ln=[];return w.test(Dt)&&ln.push(""),Dt.replace(f,function(An,jn,Gr,ct){ln.push(Gr?ct.replace(k,"$1"):jn||An)}),ln});function qi(Dt){if("string"==typeof Dt||To(Dt))return Dt;var Pi=Dt+"";return"0"==Pi&&1/Dt==-1/0?"-0":Pi}function Wi(Dt){if(null!=Dt){try{return xe.call(Dt)}catch{}try{return Dt+""}catch{}}return""}var yn,ar=(yn=function(Dt,Pi,ln){ge.call(Dt,ln)?Dt[ln].push(Pi):Dt[ln]=[Pi]},function(Dt,Pi){var An={};return(Pr(Dt)?ne:ni)(Dt,yn,function yt(Dt){return"function"==typeof Dt?Dt:null==Dt?si:"object"==typeof Dt?Pr(Dt)?(jn=Dt[1],ai(An=Dt[0])&&kt(jn)?mi(qi(An),jn):function(Gr){var ri,ji,ct=void 0===(ji=null==(ri=Gr)?void 0:Xi(ri,An))?void 0:ji;return void 0===ct&&ct===jn?function(ri,Ci){return null!=ri&&function(Ri,ji,wn){for(var Nn,En=-1,_r=(ji=ai(ji,Ri)?[ji]:st(ji)).length;++En<_r;){var ha=qi(ji[En]);if(!(Nn=null!=Ri&&wn(Ri,ha)))break;Ri=Ri[ha]}return Nn||!!(_r=Ri?Ri.length:0)&&Na(_r)&>(ha,_r)&&(Pr(Ri)||sa(Ri))}(ri,Ci,Qi)}(Gr,An):Ut(jn,ct,void 0,3)}):function(An){var jn=function(Gr){for(var ct=_t(Gr),ri=ct.length;ri--;){var Ci=ct[ri],Ri=Gr[Ci];ct[ri]=[Ci,Ri,kt(Ri)]}return ct}(An);return 1==jn.length&&jn[0][2]?mi(jn[0][0],jn[0][1]):function(Gr){return Gr===An||function(ct,ri,Ci,Ri){var ji=Ci.length,wn=ji;if(null==ct)return!wn;for(ct=Object(ct);ji--;){var En=Ci[ji];if(En[2]?En[1]!==ct[En[0]]:!(En[0]in ct))return!1}for(;++ji<wn;){var _r=(En=Ci[ji])[0],ha=ct[_r],aa=En[1];if(En[2]){if(void 0===ha&&!(_r in ct))return!1}else{var Ya,Fa=new Ht;if(!(void 0===Ya?Ut(aa,ha,Ri,3,Fa):Ya))return!1}}return!0}(Gr,0,jn)}}(Dt):ai(Pi=Dt)?(ln=qi(Pi),function(An){return An?.[ln]}):function(An){return function(jn){return Xi(jn,An)}}(Pi);var An,jn,Pi,ln}(Pi),An)});function na(Dt,Pi){if("function"!=typeof Dt||Pi&&"function"!=typeof Pi)throw new TypeError("Expected a function");var ln=function(){var An=arguments,jn=Pi?Pi.apply(this,An):An[0],Gr=ln.cache;if(Gr.has(jn))return Gr.get(jn);var ct=Dt.apply(this,An);return ln.cache=Gr.set(jn,ct),ct};return ln.cache=new(na.Cache||xi),ln}function po(Dt,Pi){return Dt===Pi||Dt!=Dt&&Pi!=Pi}function sa(Dt){return Eo(Pi=Dt)&&no(Pi)&&ge.call(Dt,"callee")&&(!de.call(Dt,"callee")||Ee.call(Dt)==_);var Pi}na.Cache=xi;var Pr=Array.isArray;function no(Dt){return null!=Dt&&Na(Dt.length)&&!ja(Dt)}function ja(Dt){var Pi=uo(Dt)?Ee.call(Dt):"";return"[object Function]"==Pi||"[object GeneratorFunction]"==Pi}function Na(Dt){return"number"==typeof Dt&&Dt>-1&&Dt%1==0&&Dt<=9007199254740991}function uo(Dt){var Pi=typeof Dt;return!!Dt&&("object"==Pi||"function"==Pi)}function Eo(Dt){return!!Dt&&"object"==typeof Dt}function To(Dt){return"symbol"==typeof Dt||Eo(Dt)&&"[object Symbol]"==Ee.call(Dt)}var Bi=re?function(Dt){return function(Pi){return Dt(Pi)}}(re):function(Dt){return Eo(Dt)&&Na(Dt.length)&&!!g[Ee.call(Dt)]};function _t(Dt){return no(Dt)?function gi(Dt,Pi){var ln=Pr(Dt)||sa(Dt)?function(ct,ri){for(var Ci=-1,Ri=Array(ct);++Ci<ct;)Ri[Ci]=ri(Ci);return Ri}(Dt.length,String):[],An=ln.length,jn=!!An;for(var Gr in Dt)!Pi&&!ge.call(Dt,Gr)||jn&&("length"==Gr||gt(Gr,An))||ln.push(Gr);return ln}(Dt):function pt(Dt){if(ln=(Pi=Dt)&&Pi.constructor,Pi!==("function"==typeof ln&&ln.prototype||X))return Be(Dt);var Pi,ln,jn=[];for(var Gr in Object(Dt))ge.call(Dt,Gr)&&"constructor"!=Gr&&jn.push(Gr);return jn}(Dt)}function si(Dt){return Dt}E.exports=ar}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(o,E,R){"use strict";var m=Object.prototype.toString;E.exports=function(_){return!0===_||!1===_||function(v){return!!v&&"object"==typeof v}(_)&&"[object Boolean]"==m.call(_)}},{}],445:[function(o,E,R){(function(m){(function(){"use strict";var _="[object Arguments]",v="[object Map]",h="[object Object]",s="[object Set]",b=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[_]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w["[object Function]"]=w[v]=w["[object Number]"]=w[h]=w["[object RegExp]"]=w[s]=w["[object String]"]=w["[object WeakMap]"]=!1;var f="object"==typeof m&&m&&m.Object===Object&&m,k="object"==typeof self&&self&&self.Object===Object&&self,I=f||k||Function("return this")(),x="object"==typeof R&&R&&!R.nodeType&&R,g=x&&"object"==typeof E&&E&&!E.nodeType&&E,C=g&&g.exports===x,F=C&&f.process,Y=function(){try{return F&&F.binding&&F.binding("util")}catch{}}(),Q=Y&&Y.isTypedArray;function se(Kt,qi){for(var Wi=-1,yn=null==Kt?0:Kt.length;++Wi<yn;)if(qi(Kt[Wi],Wi,Kt))return!0;return!1}function ie(Kt){var qi=-1,Wi=Array(Kt.size);return Kt.forEach(function(yn,Ur){Wi[++qi]=[Ur,yn]}),Wi}function ee(Kt){var qi=-1,Wi=Array(Kt.size);return Kt.forEach(function(yn){Wi[++qi]=yn}),Wi}var re,ne,_e,be=Array.prototype,me=Object.prototype,we=I["__core-js_shared__"],N=Function.prototype.toString,G=me.hasOwnProperty,W=(re=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+re:"",z=me.toString,X=RegExp("^"+N.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=C?I.Buffer:void 0,ye=I.Symbol,xe=I.Uint8Array,ge=me.propertyIsEnumerable,Ee=be.splice,he=ye?ye.toStringTag:void 0,Ie=Object.getOwnPropertySymbols,ce=q?q.isBuffer:void 0,de=(ne=Object.keys,_e=Object,function(Kt){return ne(_e(Kt))}),pe=Xi(I,"DataView"),Be=Xi(I,"Map"),We=Xi(I,"Promise"),tt=Xi(I,"Set"),vt=Xi(I,"WeakMap"),Xt=Xi(Object,"create"),Nt=yt(pe),Qe=yt(Be),Et=yt(We),Lt=yt(tt),wt=yt(vt),Mt=ye?ye.prototype:void 0,Ge=Mt?Mt.valueOf:void 0;function ot(Kt){var qi=-1,Wi=null==Kt?0:Kt.length;for(this.clear();++qi<Wi;){var yn=Kt[qi];this.set(yn[0],yn[1])}}function Tt(Kt){var qi=-1,Wi=null==Kt?0:Kt.length;for(this.clear();++qi<Wi;){var yn=Kt[qi];this.set(yn[0],yn[1])}}function jt(Kt){var qi=-1,Wi=null==Kt?0:Kt.length;for(this.clear();++qi<Wi;){var yn=Kt[qi];this.set(yn[0],yn[1])}}function li(Kt){var qi=-1,Wi=null==Kt?0:Kt.length;for(this.__data__=new jt;++qi<Wi;)this.add(Kt[qi])}function an(Kt){var qi=this.__data__=new Tt(Kt);this.size=qi.size}function Je(Kt,qi){for(var Wi=Kt.length;Wi--;)if(pt(Kt[Wi][0],qi))return Wi;return-1}function Ht(Kt){return null==Kt?void 0===Kt?"[object Undefined]":"[object Null]":he&&he in Object(Kt)?function(qi){var Wi=G.call(qi,he),yn=qi[he];try{qi[he]=void 0;var Ur=!0}catch{}var ar=z.call(qi);return Ur&&(Wi?qi[he]=yn:delete qi[he]),ar}(Kt):z.call(Kt)}function gi(Kt){return ai(Kt)&&Ht(Kt)==_}function Ti(Kt,qi,Wi,yn,Ur){return Kt===qi||(null==Kt||null==qi||!ai(Kt)&&!ai(qi)?Kt!=Kt&&qi!=qi:function(ar,na,po,sa,Pr,no){var ja=Wt(ar),Na=Wt(na),uo=ja?"[object Array]":Ut(ar),Eo=Na?"[object Array]":Ut(na),To=(uo=uo==_?h:uo)==h,Bi=(Eo=Eo==_?h:Eo)==h,_t=uo==Eo;if(_t&&Vt(ar)){if(!Vt(na))return!1;ja=!0,To=!1}if(_t&&!To)return no||(no=new an),ja||kt(ar)?ui(ar,na,po,sa,Pr,no):function(An,jn,Gr,ct,ri,Ci,Ri){switch(Gr){case"[object DataView]":if(An.byteLength!=jn.byteLength||An.byteOffset!=jn.byteOffset)return!1;An=An.buffer,jn=jn.buffer;case"[object ArrayBuffer]":return!(An.byteLength!=jn.byteLength||!Ci(new xe(An),new xe(jn)));case"[object Boolean]":case"[object Date]":case"[object Number]":return pt(+An,+jn);case"[object Error]":return An.name==jn.name&&An.message==jn.message;case"[object RegExp]":case"[object String]":return An==jn+"";case v:var ji=ie;case s:if(ji||(ji=ee),An.size!=jn.size&&!(1&ct))return!1;var Nn=Ri.get(An);if(Nn)return Nn==jn;ct|=2,Ri.set(An,jn);var En=ui(ji(An),ji(jn),ct,ri,Ci,Ri);return Ri.delete(An),En;case"[object Symbol]":if(Ge)return Ge.call(An)==Ge.call(jn)}return!1}(ar,na,uo,po,sa,Pr,no);if(!(1&po)){var si=To&&G.call(ar,"__wrapped__"),Dt=Bi&&G.call(na,"__wrapped__");if(si||Dt){var Pi=si?ar.value():ar,ln=Dt?na.value():na;return no||(no=new an),Pr(Pi,ln,po,sa,no)}}return!!_t&&(no||(no=new an),function(An,jn,Gr,ct,ri,Ci){var Ri=1&Gr,ji=cn(An),wn=ji.length;if(wn!=cn(jn).length&&!Ri)return!1;for(var En=wn;En--;){var _r=ji[En];if(!(Ri?_r in jn:G.call(jn,_r)))return!1}var ha=Ci.get(An);if(ha&&Ci.get(jn))return ha==jn;var aa=!0;Ci.set(An,jn),Ci.set(jn,An);for(var Fa=Ri;++En<wn;){var Ya=An[_r=ji[En]],_o=jn[_r];if(ct)var Yo=Ri?ct(_o,Ya,_r,jn,An,Ci):ct(Ya,_o,_r,An,jn,Ci);if(!(void 0===Yo?Ya===_o||ri(Ya,_o,Gr,ct,Ci):Yo)){aa=!1;break}Fa||(Fa="constructor"==_r)}if(aa&&!Fa){var Va=An.constructor,ia=jn.constructor;Va==ia||!("constructor"in An)||!("constructor"in jn)||"function"==typeof Va&&Va instanceof Va&&"function"==typeof ia&&ia instanceof ia||(aa=!1)}return Ci.delete(An),Ci.delete(jn),aa}(ar,na,po,sa,Pr,no))}(Kt,qi,Wi,yn,Ti,Ur))}function ui(Kt,qi,Wi,yn,Ur,ar){var na=1&Wi,po=Kt.length,sa=qi.length;if(po!=sa&&!(na&&sa>po))return!1;var Pr=ar.get(Kt);if(Pr&&ar.get(qi))return Pr==qi;var no=-1,ja=!0,Na=2&Wi?new li:void 0;for(ar.set(Kt,qi),ar.set(qi,Kt);++no<po;){var uo=Kt[no],Eo=qi[no];if(yn)var To=na?yn(Eo,uo,no,qi,Kt,ar):yn(uo,Eo,no,Kt,qi,ar);if(void 0!==To){if(To)continue;ja=!1;break}if(Na){if(!se(qi,function(Bi,_t){if(!Na.has(_t)&&(uo===Bi||Ur(uo,Bi,Wi,yn,ar)))return Na.push(_t)})){ja=!1;break}}else if(uo!==Eo&&!Ur(uo,Eo,Wi,yn,ar)){ja=!1;break}}return ar.delete(Kt),ar.delete(qi),ja}function cn(Kt){return yn=Qi,Ur=function mi(Kt){return null!=(qi=Kt)&&bi(qi.length)&&!ci(qi)?function xi(Kt,qi){var Wi=Wt(Kt),yn=!Wi&&st(Kt),Ur=!Wi&&!yn&&Vt(Kt),ar=!Wi&&!yn&&!Ur&&kt(Kt),na=Wi||yn||Ur||ar,po=na?function(no,ja){for(var Na=-1,uo=Array(no);++Na<no;)uo[Na]=ja(Na);return uo}(Kt.length,String):[],sa=po.length;for(var Pr in Kt)!qi&&!G.call(Kt,Pr)||na&&("length"==Pr||Ur&&("offset"==Pr||"parent"==Pr)||ar&&("buffer"==Pr||"byteLength"==Pr||"byteOffset"==Pr)||It(Pr,sa))||po.push(Pr);return po}(Kt):function wi(Kt){if(Wi=(qi=Kt)&&qi.constructor,qi!==("function"==typeof Wi&&Wi.prototype||me))return de(Kt);var qi,Wi,Ur=[];for(var ar in Object(Kt))G.call(Kt,ar)&&"constructor"!=ar&&Ur.push(ar);return Ur}(Kt);var qi}(qi=Kt),Wt(qi)?Ur:function(ar,na){for(var po=-1,sa=na.length,Pr=ar.length;++po<sa;)ar[Pr+po]=na[po];return ar}(Ur,yn(qi));var qi,yn,Ur}function Ui(Kt,qi){var Wi,yn,Ur=Kt.__data__;return("string"==(yn=typeof(Wi=qi))||"number"==yn||"symbol"==yn||"boolean"==yn?"__proto__"!==Wi:null===Wi)?Ur["string"==typeof qi?"string":"hash"]:Ur.map}function Xi(Kt,qi){var yn,Ur,Wi=(yn=Kt,Ur=qi,yn?.[Ur]);return function ni(Kt){return!(!gt(Kt)||(qi=Kt,W&&W in qi))&&(ci(Kt)?X:b).test(yt(Kt));var qi}(Wi)?Wi:void 0}ot.prototype.clear=function(){this.__data__=Xt?Xt(null):{},this.size=0},ot.prototype.delete=function(Kt){var qi=this.has(Kt)&&delete this.__data__[Kt];return this.size-=qi?1:0,qi},ot.prototype.get=function(Kt){var qi=this.__data__;if(Xt){var Wi=qi[Kt];return"__lodash_hash_undefined__"===Wi?void 0:Wi}return G.call(qi,Kt)?qi[Kt]:void 0},ot.prototype.has=function(Kt){var qi=this.__data__;return Xt?void 0!==qi[Kt]:G.call(qi,Kt)},ot.prototype.set=function(Kt,qi){var Wi=this.__data__;return this.size+=this.has(Kt)?0:1,Wi[Kt]=Xt&&void 0===qi?"__lodash_hash_undefined__":qi,this},Tt.prototype.clear=function(){this.__data__=[],this.size=0},Tt.prototype.delete=function(Kt){var qi=this.__data__,Wi=Je(qi,Kt);return!(Wi<0||(Wi==qi.length-1?qi.pop():Ee.call(qi,Wi,1),--this.size,0))},Tt.prototype.get=function(Kt){var qi=this.__data__,Wi=Je(qi,Kt);return Wi<0?void 0:qi[Wi][1]},Tt.prototype.has=function(Kt){return Je(this.__data__,Kt)>-1},Tt.prototype.set=function(Kt,qi){var Wi=this.__data__,yn=Je(Wi,Kt);return yn<0?(++this.size,Wi.push([Kt,qi])):Wi[yn][1]=qi,this},jt.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(Be||Tt),string:new ot}},jt.prototype.delete=function(Kt){var qi=Ui(this,Kt).delete(Kt);return this.size-=qi?1:0,qi},jt.prototype.get=function(Kt){return Ui(this,Kt).get(Kt)},jt.prototype.has=function(Kt){return Ui(this,Kt).has(Kt)},jt.prototype.set=function(Kt,qi){var Wi=Ui(this,Kt),yn=Wi.size;return Wi.set(Kt,qi),this.size+=Wi.size==yn?0:1,this},li.prototype.add=li.prototype.push=function(Kt){return this.__data__.set(Kt,"__lodash_hash_undefined__"),this},li.prototype.has=function(Kt){return this.__data__.has(Kt)},an.prototype.clear=function(){this.__data__=new Tt,this.size=0},an.prototype.delete=function(Kt){var qi=this.__data__,Wi=qi.delete(Kt);return this.size=qi.size,Wi},an.prototype.get=function(Kt){return this.__data__.get(Kt)},an.prototype.has=function(Kt){return this.__data__.has(Kt)},an.prototype.set=function(Kt,qi){var Wi=this.__data__;if(Wi instanceof Tt){var yn=Wi.__data__;if(!Be||yn.length<199)return yn.push([Kt,qi]),this.size=++Wi.size,this;Wi=this.__data__=new jt(yn)}return Wi.set(Kt,qi),this.size=Wi.size,this};var Qi=Ie?function(Kt){return null==Kt?[]:(Kt=Object(Kt),function(qi,Wi){for(var yn=-1,Ur=null==qi?0:qi.length,ar=0,na=[];++yn<Ur;){var po=qi[yn];Wi(po)&&(na[ar++]=po)}return na}(Ie(Kt),function(qi){return ge.call(Kt,qi)}))}:function(){return[]},Ut=Ht;function It(Kt,qi){return!!(qi=qi??9007199254740991)&&("number"==typeof Kt||O.test(Kt))&&Kt>-1&&Kt%1==0&&Kt<qi}function yt(Kt){if(null!=Kt){try{return N.call(Kt)}catch{}try{return Kt+""}catch{}}return""}function pt(Kt,qi){return Kt===qi||Kt!=Kt&&qi!=qi}(pe&&"[object DataView]"!=Ut(new pe(new ArrayBuffer(1)))||Be&&Ut(new Be)!=v||We&&"[object Promise]"!=Ut(We.resolve())||tt&&Ut(new tt)!=s||vt&&"[object WeakMap]"!=Ut(new vt))&&(Ut=function(Kt){var qi=Ht(Kt),Wi=qi==h?Kt.constructor:void 0,yn=Wi?yt(Wi):"";if(yn)switch(yn){case Nt:return"[object DataView]";case Qe:return v;case Et:return"[object Promise]";case Lt:return s;case wt:return"[object WeakMap]"}return qi});var st=gi(function(){return arguments}())?gi:function(Kt){return ai(Kt)&&G.call(Kt,"callee")&&!ge.call(Kt,"callee")},Wt=Array.isArray,Vt=ce||function(){return!1};function ci(Kt){if(!gt(Kt))return!1;var qi=Ht(Kt);return"[object Function]"==qi||"[object GeneratorFunction]"==qi||"[object AsyncFunction]"==qi||"[object Proxy]"==qi}function bi(Kt){return"number"==typeof Kt&&Kt>-1&&Kt%1==0&&Kt<=9007199254740991}function gt(Kt){var qi=typeof Kt;return null!=Kt&&("object"==qi||"function"==qi)}function ai(Kt){return null!=Kt&&"object"==typeof Kt}var kt=Q?function(Kt){return function(qi){return Kt(qi)}}(Q):function(Kt){return ai(Kt)&&bi(Kt.length)&&!!w[Ht(Kt)]};E.exports=function(Kt,qi){return Ti(Kt,qi)}}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(o,E,R){(function(m){(function(){"use strict";var v="object"==typeof self&&self&&self.Object===Object&&self,h="object"==typeof m&&m&&m.Object===Object&&m||v||Function("return this")(),s=Object.prototype,b=s.hasOwnProperty,O=s.toString,w=h.Symbol,f=w?w.toStringTag:void 0;E.exports=function(I){if(C=typeof(g=I),null==g||"object"!=C&&"function"!=C)return!1;var g,C,x=function k(I){return null==I?void 0===I?"[object Undefined]":"[object Null]":f&&f in Object(I)?function(x){var g=b.call(x,f),C=x[f];try{x[f]=void 0;var F=!0}catch{}var Y=O.call(x);return F&&(g?x[f]=C:delete x[f]),Y}(I):O.call(I)}(I);return"[object Function]"==x||"[object GeneratorFunction]"==x||"[object AsyncFunction]"==x||"[object Proxy]"==x}}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(o,E,R){"use strict";E.exports=function(m){return null==m}},{}],448:[function(o,E,R){"use strict";E.exports=function(m){return void 0===m}},{}],449:[function(o,E,R){(function(m){(function(){"use strict";var _=/^\[object .+?Constructor\]$/,h="object"==typeof self&&self&&self.Object===Object&&self,s="object"==typeof m&&m&&m.Object===Object&&m||h||Function("return this")();function b(xe,ge){return!(!xe||!xe.length)&&function(Ee,he,Ie){if(he!=he)return function(pe,Be,We,tt){for(var vt=pe.length,Xt=-1;++Xt<vt;)if(Be(pe[Xt],Xt,pe))return Xt;return-1}(Ee,w);for(var ce=-1,de=Ee.length;++ce<de;)if(Ee[ce]===he)return ce;return-1}(xe,ge)>-1}function w(xe){return xe!=xe}function f(xe,ge){return xe.has(ge)}function k(xe){var ge=-1,Ee=Array(xe.size);return xe.forEach(function(he){Ee[++ge]=he}),Ee}var I,x=Array.prototype,g=Function.prototype,C=Object.prototype,F=s["__core-js_shared__"],Y=(I=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"",Q=g.toString,se=C.hasOwnProperty,ie=C.toString,ee=RegExp("^"+Q.call(se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=x.splice,ne=q(s,"Map"),_e=q(s,"Set"),be=q(Object,"create");function oe(xe){var ge=-1,Ee=xe?xe.length:0;for(this.clear();++ge<Ee;){var he=xe[ge];this.set(he[0],he[1])}}function me(xe){var ge=-1,Ee=xe?xe.length:0;for(this.clear();++ge<Ee;){var he=xe[ge];this.set(he[0],he[1])}}function we(xe){var ge=-1,Ee=xe?xe.length:0;for(this.clear();++ge<Ee;){var he=xe[ge];this.set(he[0],he[1])}}function N(xe){var ge=-1,Ee=xe?xe.length:0;for(this.__data__=new we;++ge<Ee;)this.add(xe[ge])}function G(xe,ge){for(var Ee,he,Ie=xe.length;Ie--;)if((Ee=xe[Ie][0])===(he=ge)||Ee!=Ee&&he!=he)return Ie;return-1}oe.prototype.clear=function(){this.__data__=be?be(null):{}},oe.prototype.delete=function(xe){return this.has(xe)&&delete this.__data__[xe]},oe.prototype.get=function(xe){var ge=this.__data__;if(be){var Ee=ge[xe];return"__lodash_hash_undefined__"===Ee?void 0:Ee}return se.call(ge,xe)?ge[xe]:void 0},oe.prototype.has=function(xe){var ge=this.__data__;return be?void 0!==ge[xe]:se.call(ge,xe)},oe.prototype.set=function(xe,ge){return this.__data__[xe]=be&&void 0===ge?"__lodash_hash_undefined__":ge,this},me.prototype.clear=function(){this.__data__=[]},me.prototype.delete=function(xe){var ge=this.__data__,Ee=G(ge,xe);return!(Ee<0||(Ee==ge.length-1?ge.pop():re.call(ge,Ee,1),0))},me.prototype.get=function(xe){var ge=this.__data__,Ee=G(ge,xe);return Ee<0?void 0:ge[Ee][1]},me.prototype.has=function(xe){return G(this.__data__,xe)>-1},me.prototype.set=function(xe,ge){var Ee=this.__data__,he=G(Ee,xe);return he<0?Ee.push([xe,ge]):Ee[he][1]=ge,this},we.prototype.clear=function(){this.__data__={hash:new oe,map:new(ne||me),string:new oe}},we.prototype.delete=function(xe){return X(this,xe).delete(xe)},we.prototype.get=function(xe){return X(this,xe).get(xe)},we.prototype.has=function(xe){return X(this,xe).has(xe)},we.prototype.set=function(xe,ge){return X(this,xe).set(xe,ge),this},N.prototype.add=N.prototype.push=function(xe){return this.__data__.set(xe,"__lodash_hash_undefined__"),this},N.prototype.has=function(xe){return this.__data__.has(xe)};var z=_e&&1/k(new _e([,-0]))[1]==1/0?function(xe){return new _e(xe)}:function(){};function X(xe,ge){var Ee,he,Ie=xe.__data__;return("string"==(he=typeof(Ee=ge))||"number"==he||"symbol"==he||"boolean"==he?"__proto__"!==Ee:null===Ee)?Ie["string"==typeof ge?"string":"hash"]:Ie.map}function q(xe,ge){var he,Ie,Ee=(he=xe,Ie=ge,he?.[Ie]);return function W(xe){return!(!ye(xe)||(ge=xe,Y&&Y in ge))&&(Ee=xe,he=ye(Ee)?ie.call(Ee):"","[object Function]"==he||"[object GeneratorFunction]"==he||function(Ee){var he=!1;if(null!=Ee&&"function"!=typeof Ee.toString)try{he=!!(Ee+"")}catch{}return he}(xe)?ee:_).test(function(Ee){if(null!=Ee){try{return Q.call(Ee)}catch{}try{return Ee+""}catch{}}return""}(xe));var Ee,he,ge}(Ee)?Ee:void 0}function ye(xe){var ge=typeof xe;return!!xe&&("object"==ge||"function"==ge)}E.exports=function(xe){return xe&&xe.length?function(ge,Ee,he){var Ie=-1,ce=b,de=ge.length,pe=!0,Be=[],We=Be;if(de>=200){var tt=z(ge);if(tt)return k(tt);pe=!1,ce=f,We=new N}else We=Be;e:for(;++Ie<de;){var vt=ge[Ie],Xt=vt;if(vt=0!==vt?vt:0,pe&&Xt==Xt){for(var Nt=We.length;Nt--;)if(We[Nt]===Xt)continue e;Be.push(vt)}else ce(We,Xt,he)||(We!==Be&&We.push(Xt),Be.push(vt))}return Be}(xe):[]}}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(o,E,R){"use strict";var m=o("inherits"),_=o("hash-base"),v=o("safe-buffer").Buffer,h=new Array(16);function s(){_.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function b(I,x){return I<<x|I>>>32-x}function O(I,x,g,C,F,Y,Q){return b(I+(x&g|~x&C)+F+Y|0,Q)+x|0}function w(I,x,g,C,F,Y,Q){return b(I+(x&C|g&~C)+F+Y|0,Q)+x|0}function f(I,x,g,C,F,Y,Q){return b(I+(x^g^C)+F+Y|0,Q)+x|0}function k(I,x,g,C,F,Y,Q){return b(I+(g^(x|~C))+F+Y|0,Q)+x|0}m(s,_),s.prototype._update=function(){for(var I=h,x=0;x<16;++x)I[x]=this._block.readInt32LE(4*x);var g=this._a,C=this._b,F=this._c,Y=this._d;g=O(g,C,F,Y,I[0],3614090360,7),Y=O(Y,g,C,F,I[1],3905402710,12),F=O(F,Y,g,C,I[2],606105819,17),C=O(C,F,Y,g,I[3],3250441966,22),g=O(g,C,F,Y,I[4],4118548399,7),Y=O(Y,g,C,F,I[5],1200080426,12),F=O(F,Y,g,C,I[6],2821735955,17),C=O(C,F,Y,g,I[7],4249261313,22),g=O(g,C,F,Y,I[8],1770035416,7),Y=O(Y,g,C,F,I[9],2336552879,12),F=O(F,Y,g,C,I[10],4294925233,17),C=O(C,F,Y,g,I[11],2304563134,22),g=O(g,C,F,Y,I[12],1804603682,7),Y=O(Y,g,C,F,I[13],4254626195,12),F=O(F,Y,g,C,I[14],2792965006,17),g=w(g,C=O(C,F,Y,g,I[15],1236535329,22),F,Y,I[1],4129170786,5),Y=w(Y,g,C,F,I[6],3225465664,9),F=w(F,Y,g,C,I[11],643717713,14),C=w(C,F,Y,g,I[0],3921069994,20),g=w(g,C,F,Y,I[5],3593408605,5),Y=w(Y,g,C,F,I[10],38016083,9),F=w(F,Y,g,C,I[15],3634488961,14),C=w(C,F,Y,g,I[4],3889429448,20),g=w(g,C,F,Y,I[9],568446438,5),Y=w(Y,g,C,F,I[14],3275163606,9),F=w(F,Y,g,C,I[3],4107603335,14),C=w(C,F,Y,g,I[8],1163531501,20),g=w(g,C,F,Y,I[13],2850285829,5),Y=w(Y,g,C,F,I[2],4243563512,9),F=w(F,Y,g,C,I[7],1735328473,14),g=f(g,C=w(C,F,Y,g,I[12],2368359562,20),F,Y,I[5],4294588738,4),Y=f(Y,g,C,F,I[8],2272392833,11),F=f(F,Y,g,C,I[11],1839030562,16),C=f(C,F,Y,g,I[14],4259657740,23),g=f(g,C,F,Y,I[1],2763975236,4),Y=f(Y,g,C,F,I[4],1272893353,11),F=f(F,Y,g,C,I[7],4139469664,16),C=f(C,F,Y,g,I[10],3200236656,23),g=f(g,C,F,Y,I[13],681279174,4),Y=f(Y,g,C,F,I[0],3936430074,11),F=f(F,Y,g,C,I[3],3572445317,16),C=f(C,F,Y,g,I[6],76029189,23),g=f(g,C,F,Y,I[9],3654602809,4),Y=f(Y,g,C,F,I[12],3873151461,11),F=f(F,Y,g,C,I[15],530742520,16),g=k(g,C=f(C,F,Y,g,I[2],3299628645,23),F,Y,I[0],4096336452,6),Y=k(Y,g,C,F,I[7],1126891415,10),F=k(F,Y,g,C,I[14],2878612391,15),C=k(C,F,Y,g,I[5],4237533241,21),g=k(g,C,F,Y,I[12],1700485571,6),Y=k(Y,g,C,F,I[3],2399980690,10),F=k(F,Y,g,C,I[10],4293915773,15),C=k(C,F,Y,g,I[1],2240044497,21),g=k(g,C,F,Y,I[8],1873313359,6),Y=k(Y,g,C,F,I[15],4264355552,10),F=k(F,Y,g,C,I[6],2734768916,15),C=k(C,F,Y,g,I[13],1309151649,21),g=k(g,C,F,Y,I[4],4149444226,6),Y=k(Y,g,C,F,I[11],3174756917,10),F=k(F,Y,g,C,I[2],718787259,15),C=k(C,F,Y,g,I[9],3951481745,21),this._a=this._a+g|0,this._b=this._b+C|0,this._c=this._c+F|0,this._d=this._d+Y|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var I=v.allocUnsafe(16);return I.writeInt32LE(this._a,0),I.writeInt32LE(this._b,4),I.writeInt32LE(this._c,8),I.writeInt32LE(this._d,12),I},E.exports=s},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(o,E,R){"use strict";var m=o("bn.js"),_=o("brorand");function v(h){this.rand=h||new _.Rand}E.exports=v,v.create=function(h){return new v(h)},v.prototype._randbelow=function(h){var s=h.bitLength(),b=Math.ceil(s/8);do{var O=new m(this.rand.generate(b))}while(O.cmp(h)>=0);return O},v.prototype._randrange=function(h,s){var b=s.sub(h);return h.add(this._randbelow(b))},v.prototype.test=function(h,s,b){var O=h.bitLength(),w=m.mont(h),f=new m(1).toRed(w);s||(s=Math.max(1,O/48|0));for(var k=h.subn(1),I=0;!k.testn(I);I++);for(var x=h.shrn(I),g=k.toRed(w);s>0;s--){var C=this._randrange(new m(2),k);b&&b(C);var F=C.toRed(w).redPow(x);if(0!==F.cmp(f)&&0!==F.cmp(g)){for(var Y=1;Y<I;Y++){if(0===(F=F.redSqr()).cmp(f))return!1;if(0===F.cmp(g))break}if(Y===I)return!1}}return!0},v.prototype.getDivisor=function(h,s){var b=h.bitLength(),O=m.mont(h),w=new m(1).toRed(O);s||(s=Math.max(1,b/48|0));for(var f=h.subn(1),k=0;!f.testn(k);k++);for(var I=h.shrn(k),x=f.toRed(O);s>0;s--){var g=this._randrange(new m(2),f),C=h.gcd(g);if(0!==C.cmpn(1))return C;var F=g.toRed(O).redPow(I);if(0!==F.cmp(w)&&0!==F.cmp(x)){for(var Y=1;Y<k;Y++){if(0===(F=F.redSqr()).cmp(w))return F.fromRed().subn(1).gcd(h);if(0===F.cmp(x))break}if(Y===k)return(F=F.redSqr()).fromRed().subn(1).gcd(h)}}return!1}},{"bn.js":452,brorand:187}],452:[function(o,E,R){arguments[4][184][0].apply(R,arguments)},{buffer:188,dup:184}],453:[function(o,E,R){"use strict";function m(_,v){if(!_)throw new Error(v||"Assertion failed")}E.exports=m,m.equal=function(_,v,h){if(_!=v)throw new Error(h||"Assertion failed: "+_+" != "+v)}},{}],454:[function(o,E,R){"use strict";var m=R;function _(h){return 1===h.length?"0"+h:h}function v(h){for(var s="",b=0;b<h.length;b++)s+=_(h[b].toString(16));return s}m.toArray=function(h,s){if(Array.isArray(h))return h.slice();if(!h)return[];var b=[];if("string"!=typeof h){for(var O=0;O<h.length;O++)b[O]=0|h[O];return b}if("hex"===s)for((h=h.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(h="0"+h),O=0;O<h.length;O+=2)b.push(parseInt(h[O]+h[O+1],16));else for(O=0;O<h.length;O++){var w=h.charCodeAt(O),f=w>>8,k=255&w;f?b.push(f,k):b.push(k)}return b},m.zero2=_,m.toHex=v,m.encode=function(h,s){return"hex"===s?v(h):h}},{}],455:[function(o,E,R){E.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(o,E,R){"use strict";var m=o("asn1.js");R.certificate=o("./certificate");var _=m.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});R.RSAPrivateKey=_;var v=m.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});R.RSAPublicKey=v;var h=m.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});R.PublicKey=h;var s=m.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),b=m.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});R.PrivateKey=b;var O=m.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});R.EncryptedPrivateKey=O;var w=m.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});R.DSAPrivateKey=w,R.DSAparam=m.define("DSAparam",function(){this.int()});var f=m.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(k),this.key("publicKey").optional().explicit(1).bitstr())});R.ECPrivateKey=f;var k=m.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});R.signature=m.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(o,E,R){"use strict";var m=o("asn1.js"),_=m.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),v=m.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),h=m.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=m.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(h),this.key("subjectPublicKey").bitstr())}),b=m.define("RelativeDistinguishedName",function(){this.setof(v)}),O=m.define("RDNSequence",function(){this.seqof(b)}),w=m.define("Name",function(){this.choice({rdnSequence:this.use(O)})}),f=m.define("Validity",function(){this.seq().obj(this.key("notBefore").use(_),this.key("notAfter").use(_))}),k=m.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),I=m.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(h),this.key("issuer").use(w),this.key("validity").use(f),this.key("subject").use(w),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(k).optional())}),x=m.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(I),this.key("signatureAlgorithm").use(h),this.key("signatureValue").bitstr())});E.exports=x},{"asn1.js":170}],458:[function(o,E,R){"use strict";var m=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,_=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,v=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,h=o("evp_bytestokey"),s=o("browserify-aes"),b=o("safe-buffer").Buffer;E.exports=function(O,w){var f,k=O.toString(),I=k.match(m);if(I){var x="aes"+I[1],g=b.from(I[2],"hex"),C=b.from(I[3].replace(/[\r\n]/g,""),"base64"),F=h(w,g.slice(0,8),parseInt(I[1],10)).key,Y=[],Q=s.createDecipheriv(x,F,g);Y.push(Q.update(C)),Y.push(Q.final()),f=b.concat(Y)}else{var se=k.match(v);f=b.from(se[2].replace(/[\r\n]/g,""),"base64")}return{tag:k.match(_)[1],data:f}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(o,E,R){"use strict";var m=o("./asn1"),_=o("./aesid.json"),v=o("./fixProc"),h=o("browserify-aes"),s=o("pbkdf2"),b=o("safe-buffer").Buffer;function O(w){var f;"object"!=typeof w||b.isBuffer(w)||(f=w.passphrase,w=w.key),"string"==typeof w&&(w=b.from(w));var k,I,F,Y,Q,se,ie,ee,re,ne,_e,be,oe,x=v(w,f),g=x.tag,C=x.data;switch(g){case"CERTIFICATE":I=m.certificate.decode(C,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(I||(I=m.PublicKey.decode(C,"der")),k=I.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return m.RSAPublicKey.decode(I.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return I.subjectPrivateKey=I.subjectPublicKey,{type:"ec",data:I};case"1.2.840.10040.4.1":return I.algorithm.params.pub_key=m.DSAparam.decode(I.subjectPublicKey.data,"der"),{type:"dsa",data:I.algorithm.params};default:throw new Error("unknown key id "+k)}case"ENCRYPTED PRIVATE KEY":Y=f,Q=(F=C=m.EncryptedPrivateKey.decode(C,"der")).algorithm.decrypt.kde.kdeparams.salt,se=parseInt(F.algorithm.decrypt.kde.kdeparams.iters.toString(),10),ie=_[F.algorithm.decrypt.cipher.algo.join(".")],ee=F.algorithm.decrypt.cipher.iv,re=F.subjectPrivateKey,ne=parseInt(ie.split("-")[1],10)/8,_e=s.pbkdf2Sync(Y,Q,se,ne,"sha1"),be=h.createDecipheriv(ie,_e,ee),(oe=[]).push(be.update(re)),oe.push(be.final()),C=b.concat(oe);case"PRIVATE KEY":switch(k=(I=m.PrivateKey.decode(C,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return m.RSAPrivateKey.decode(I.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:I.algorithm.curve,privateKey:m.ECPrivateKey.decode(I.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return I.algorithm.params.priv_key=m.DSAparam.decode(I.subjectPrivateKey,"der"),{type:"dsa",params:I.algorithm.params};default:throw new Error("unknown key id "+k)}case"RSA PUBLIC KEY":return m.RSAPublicKey.decode(C,"der");case"RSA PRIVATE KEY":return m.RSAPrivateKey.decode(C,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:m.DSAPrivateKey.decode(C,"der")};case"EC PRIVATE KEY":return{curve:(C=m.ECPrivateKey.decode(C,"der")).parameters.value,privateKey:C.privateKey};default:throw new Error("unknown key type "+g)}}E.exports=O,O.signature=m.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(o,E,R){"use strict";R.pbkdf2=o("./lib/async"),R.pbkdf2Sync=o("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(o,E,R){(function(m){(function(){"use strict";var _,v,h=o("safe-buffer").Buffer,s=o("./precondition"),b=o("./default-encoding"),O=o("./sync"),w=o("./to-buffer"),f=m.crypto&&m.crypto.subtle,k={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},I=[];function x(){return v||(v=m.process&&m.process.nextTick?m.process.nextTick:m.queueMicrotask?m.queueMicrotask:m.setImmediate?m.setImmediate:m.setTimeout)}function g(C,F,Y,Q,se){return f.importKey("raw",C,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ie){return f.deriveBits({name:"PBKDF2",salt:F,iterations:Y,hash:{name:se}},ie,Q<<3)}).then(function(ie){return h.from(ie)})}E.exports=function(C,F,Y,Q,se,ie){"function"==typeof se&&(ie=se,se=void 0);var re,ne,ee=k[(se=se||"sha1").toLowerCase()];if(ee&&"function"==typeof m.Promise){if(s(Y,Q),C=w(C,b,"Password"),F=w(F,b,"Salt"),"function"!=typeof ie)throw new Error("No callback provided to pbkdf2");re=function(re){if(m.process&&!m.process.browser||!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==I[re])return I[re];var ne=g(_=_||h.alloc(8),_,10,128,re).then(function(){return!0}).catch(function(){return!1});return I[re]=ne,ne}(ee).then(function(re){return re?g(C,F,Y,Q,ee):O(C,F,Y,Q,se)}),ne=ie,re.then(function(_e){x()(function(){ne(null,_e)})},function(_e){x()(function(){ne(_e)})})}else x()(function(){var re;try{re=O(C,F,Y,Q,se)}catch(ne){return ie(ne)}ie(null,re)})}}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(o,E,R){(function(m,_){(function(){"use strict";var v;v=_.process&&_.process.browser?"utf-8":_.process&&_.process.version?parseInt(m.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",E.exports=v}).call(this)}).call(this,o("_process"),typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(o,E,R){"use strict";var m=Math.pow(2,30)-1;E.exports=function(_,v){if("number"!=typeof _)throw new TypeError("Iterations not a number");if(_<0)throw new TypeError("Bad iterations");if("number"!=typeof v)throw new TypeError("Key length not a number");if(v<0||v>m||v!=v)throw new TypeError("Bad key length")}},{}],464:[function(o,E,R){"use strict";var m=o("create-hash/md5"),_=o("ripemd160"),v=o("sha.js"),h=o("safe-buffer").Buffer,s=o("./precondition"),b=o("./default-encoding"),O=o("./to-buffer"),w=h.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function k(I,x,g){var C=function(ee){return"rmd160"===ee||"ripemd160"===ee?function(ne){return(new _).update(ne).digest()}:"md5"===ee?m:function re(ne){return v(ee).update(ne).digest()}}(I),F="sha512"===I||"sha384"===I?128:64;x.length>F?x=C(x):x.length<F&&(x=h.concat([x,w],F));for(var Y=h.allocUnsafe(F+f[I]),Q=h.allocUnsafe(F+f[I]),se=0;se<F;se++)Y[se]=54^x[se],Q[se]=92^x[se];var ie=h.allocUnsafe(F+g+4);Y.copy(ie,0,0,F),this.ipad1=ie,this.ipad2=Y,this.opad=Q,this.alg=I,this.blocksize=F,this.hash=C,this.size=f[I]}k.prototype.run=function(I,x){return I.copy(x,this.blocksize),this.hash(x).copy(this.opad,this.blocksize),this.hash(this.opad)},E.exports=function(I,x,g,C,F){s(g,C);var Y=new k(F=F||"sha1",I=O(I,b,"Password"),(x=O(x,b,"Salt")).length),Q=h.allocUnsafe(C),se=h.allocUnsafe(x.length+4);x.copy(se,0,0,x.length);for(var ie=0,ee=f[F],re=Math.ceil(C/ee),ne=1;ne<=re;ne++){se.writeUInt32BE(ne,x.length);for(var _e=Y.run(se,Y.ipad1),be=_e,oe=1;oe<g;oe++){be=Y.run(be,Y.ipad2);for(var me=0;me<ee;me++)_e[me]^=be[me]}_e.copy(Q,ie),ie+=ee}return Q}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer;E.exports=function(_,v,h){if(m.isBuffer(_))return _;if("string"==typeof _)return m.from(_,v);if(ArrayBuffer.isView(_))return m.from(_.buffer);throw new TypeError(h+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(o,E,R){(function(m){(function(){"use strict";E.exports=void 0===m||!m.version||0===m.version.indexOf("v0.")||0===m.version.indexOf("v1.")&&0!==m.version.indexOf("v1.8.")?{nextTick:function(_,v,h,s){if("function"!=typeof _)throw new TypeError('"callback" argument must be a function');var b,O,w=arguments.length;switch(w){case 0:case 1:return m.nextTick(_);case 2:return m.nextTick(function(){_.call(null,v)});case 3:return m.nextTick(function(){_.call(null,v,h)});case 4:return m.nextTick(function(){_.call(null,v,h,s)});default:for(b=new Array(w-1),O=0;O<b.length;)b[O++]=arguments[O];return m.nextTick(function(){_.apply(null,b)})}}}:m}).call(this)}).call(this,o("_process"))},{_process:467}],467:[function(o,E,R){"use strict";var m,_,v=E.exports={};function h(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function b(F){if(m===setTimeout)return setTimeout(F,0);if((m===h||!m)&&setTimeout)return m=setTimeout,setTimeout(F,0);try{return m(F,0)}catch{try{return m.call(null,F,0)}catch{return m.call(this,F,0)}}}!function(){try{m="function"==typeof setTimeout?setTimeout:h}catch{m=h}try{_="function"==typeof clearTimeout?clearTimeout:s}catch{_=s}}();var O,w=[],f=!1,k=-1;function I(){f&&O&&(f=!1,O.length?w=O.concat(w):k=-1,w.length&&x())}function x(){if(!f){var F=b(I);f=!0;for(var Y=w.length;Y;){for(O=w,w=[];++k<Y;)O&&O[k].run();k=-1,Y=w.length}O=null,f=!1,function(Q){if(_===clearTimeout)return clearTimeout(Q);if((_===s||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(Q);try{_(Q)}catch{try{return _.call(null,Q)}catch{return _.call(this,Q)}}}(F)}}function g(F,Y){this.fun=F,this.array=Y}function C(){}v.nextTick=function(F){var Y=new Array(arguments.length-1);if(arguments.length>1)for(var Q=1;Q<arguments.length;Q++)Y[Q-1]=arguments[Q];w.push(new g(F,Y)),1!==w.length||f||b(x)},g.prototype.run=function(){this.fun.apply(null,this.array)},v.title="browser",v.browser=!0,v.env={},v.argv=[],v.version="",v.versions={},v.on=C,v.addListener=C,v.once=C,v.off=C,v.removeListener=C,v.removeAllListeners=C,v.emit=C,v.prependListener=C,v.prependOnceListener=C,v.listeners=function(F){return[]},v.binding=function(F){throw new Error("process.binding is not supported")},v.cwd=function(){return"/"},v.chdir=function(F){throw new Error("process.chdir is not supported")},v.umask=function(){return 0}},{}],468:[function(o,E,R){"use strict";R.publicEncrypt=o("./publicEncrypt"),R.privateDecrypt=o("./privateDecrypt"),R.privateEncrypt=function(m,_){return R.publicEncrypt(m,_,!0)},R.publicDecrypt=function(m,_){return R.privateDecrypt(m,_,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(o,E,R){"use strict";var m=o("create-hash"),_=o("safe-buffer").Buffer;function v(h){var s=_.allocUnsafe(4);return s.writeUInt32BE(h,0),s}E.exports=function(h,s){for(var b,O=_.alloc(0),w=0;O.length<s;)b=v(w++),O=_.concat([O,m("sha1").update(h).update(b).digest()]);return O.slice(0,s)}},{"create-hash":386,"safe-buffer":494}],470:[function(o,E,R){arguments[4][184][0].apply(R,arguments)},{buffer:188,dup:184}],471:[function(o,E,R){"use strict";var m=o("parse-asn1"),_=o("./mgf"),v=o("./xor"),h=o("bn.js"),s=o("browserify-rsa"),b=o("create-hash"),O=o("./withPublic"),w=o("safe-buffer").Buffer;E.exports=function(f,k,I){var x;x=f.padding?f.padding:I?1:4;var g,C=m(f),F=C.modulus.byteLength();if(k.length>F||new h(k).cmp(C.modulus)>=0)throw new Error("decryption error");g=I?O(new h(k),C):s(k,C);var Y=w.alloc(F-g.length);if(g=w.concat([Y,g],F),4===x)return function(Q,se){var ie=Q.modulus.byteLength(),ee=b("sha1").update(w.alloc(0)).digest(),re=ee.length;if(0!==se[0])throw new Error("decryption error");var ne=se.slice(1,re+1),_e=se.slice(re+1),be=v(ne,_(_e,re)),oe=v(_e,_(be,ie-re-1));if(function(we,N){we=w.from(we),N=w.from(N);var G=0,W=we.length;we.length!==N.length&&(G++,W=Math.min(we.length,N.length));for(var z=-1;++z<W;)G+=we[z]^N[z];return G}(ee,oe.slice(0,re)))throw new Error("decryption error");for(var me=re;0===oe[me];)me++;if(1!==oe[me++])throw new Error("decryption error");return oe.slice(me)}(C,g);if(1===x)return function(Q,se,ie){for(var ee=se.slice(0,2),re=2,ne=0;0!==se[re++];)if(re>=se.length){ne++;break}var _e=se.slice(2,re-1);if(("0002"!==ee.toString("hex")&&!ie||"0001"!==ee.toString("hex")&&ie)&&ne++,_e.length<8&&ne++,ne)throw new Error("decryption error");return se.slice(re)}(0,g,I);if(3===x)return g;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(o,E,R){"use strict";var m=o("parse-asn1"),_=o("randombytes"),v=o("create-hash"),h=o("./mgf"),s=o("./xor"),b=o("bn.js"),O=o("./withPublic"),w=o("browserify-rsa"),f=o("safe-buffer").Buffer;E.exports=function(k,I,x){var g;g=k.padding?k.padding:x?1:4;var C,F=m(k);if(4===g)C=function(Y,Q){var se=Y.modulus.byteLength(),ie=Q.length,ee=v("sha1").update(f.alloc(0)).digest(),re=ee.length,ne=2*re;if(ie>se-ne-2)throw new Error("message too long");var _e=f.alloc(se-ie-ne-2),be=se-re-1,oe=_(re),me=s(f.concat([ee,_e,f.alloc(1,1),Q],be),h(oe,be)),we=s(oe,h(me,re));return new b(f.concat([f.alloc(1),we,me],se))}(F,I);else if(1===g)C=function(Y,Q,se){var ie,ee=Q.length,re=Y.modulus.byteLength();if(ee>re-11)throw new Error("message too long");return ie=se?f.alloc(re-ee-3,255):function(ne){for(var _e,be=f.allocUnsafe(ne),oe=0,me=_(2*ne),we=0;oe<ne;)we===me.length&&(me=_(2*ne),we=0),(_e=me[we++])&&(be[oe++]=_e);return be}(re-ee-3),new b(f.concat([f.from([0,se?1:2]),ie,f.alloc(1),Q],re))}(F,I,x);else{if(3!==g)throw new Error("unknown padding");if((C=new b(I)).cmp(F.modulus)>=0)throw new Error("data too long for modulus")}return x?w(C,F):O(C,F)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(o,E,R){"use strict";var m=o("bn.js"),_=o("safe-buffer").Buffer;E.exports=function(v,h){return _.from(v.toRed(m.mont(h.modulus)).redPow(new m(h.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(o,E,R){"use strict";E.exports=function(m,_){for(var v=m.length,h=-1;++h<v;)m[h]^=_[h];return m}},{}],475:[function(o,E,R){(function(m,_){(function(){"use strict";var v=o("safe-buffer").Buffer,h=_.crypto||_.msCrypto;E.exports=h&&h.getRandomValues?function(s,b){if(s>4294967295)throw new RangeError("requested too many random bytes");var O=v.allocUnsafe(s);if(s>0)if(s>65536)for(var w=0;w<s;w+=65536)h.getRandomValues(O.slice(w,w+65536));else h.getRandomValues(O);return"function"==typeof b?m.nextTick(function(){b(null,O)}):O}:function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this)}).call(this,o("_process"),typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(o,E,R){(function(m,_){(function(){"use strict";function v(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var h=o("safe-buffer"),s=o("randombytes"),b=h.Buffer,O=h.kMaxLength,w=_.crypto||_.msCrypto,f=Math.pow(2,32)-1;function k(g,C){if("number"!=typeof g||g!=g)throw new TypeError("offset must be a number");if(g>f||g<0)throw new TypeError("offset must be a uint32");if(g>O||g>C)throw new RangeError("offset out of range")}function I(g,C,F){if("number"!=typeof g||g!=g)throw new TypeError("size must be a number");if(g>f||g<0)throw new TypeError("size must be a uint32");if(g+C>F||g>O)throw new RangeError("buffer too small")}function x(g,C,F,Y){if(m.browser){var se=new Uint8Array(g.buffer,C,F);return w.getRandomValues(se),Y?void m.nextTick(function(){Y(null,g)}):g}if(!Y)return s(F).copy(g,C),g;s(F,function(ie,ee){if(ie)return Y(ie);ee.copy(g,C),Y(null,g)})}w&&w.getRandomValues||!m.browser?(R.randomFill=function(g,C,F,Y){if(!(b.isBuffer(g)||g instanceof _.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof C)Y=C,C=0,F=g.length;else if("function"==typeof F)Y=F,F=g.length-C;else if("function"!=typeof Y)throw new TypeError('"cb" argument must be a function');return k(C,g.length),I(F,C,g.length),x(g,C,F,Y)},R.randomFillSync=function(g,C,F){if(void 0===C&&(C=0),!(b.isBuffer(g)||g instanceof _.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return k(C,g.length),void 0===F&&(F=g.length-C),I(F,C,g.length),x(g,C,F)}):(R.randomFill=v,R.randomFillSync=v)}).call(this)}).call(this,o("_process"),typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(o,E,R){"use strict";var m={};function _(h,s,b){b||(b=Error);var O=function(w){var f,k;function I(x,g,C){return w.call(this,"string"==typeof s?s:s(x,g,C))||this}return k=w,(f=I).prototype=Object.create(k.prototype),f.prototype.constructor=f,f.__proto__=k,I}(b);O.prototype.name=b.name,O.prototype.code=h,m[h]=O}function v(h,s){if(Array.isArray(h)){var b=h.length;return h=h.map(function(O){return String(O)}),b>2?"one of ".concat(s," ").concat(h.slice(0,b-1).join(", "),", or ")+h[b-1]:2===b?"one of ".concat(s," ").concat(h[0]," or ").concat(h[1]):"of ".concat(s," ").concat(h[0])}return"of ".concat(s," ").concat(String(h))}_("ERR_INVALID_OPT_VALUE",function(h,s){return'The value "'+s+'" is invalid for option "'+h+'"'},TypeError),_("ERR_INVALID_ARG_TYPE",function(h,s,b){var O,k,x,C;if("string"==typeof s&&"not "===s.substr(0,"not ".length)?(O="must not be",s=s.replace(/^not /,"")):O="must be",x=h,(void 0===C||C>x.length)&&(C=x.length)," argument"===x.substring(C-" argument".length,C))k="The ".concat(h," ").concat(O," ").concat(v(s,"type"));else{var I=function(x,g,C){return"number"!=typeof C&&(C=0),!(C+1>x.length)&&-1!==x.indexOf(".",C)}(h)?"property":"argument";k='The "'.concat(h,'" ').concat(I," ").concat(O," ").concat(v(s,"type"))}return k+". Received type ".concat(typeof b)},TypeError),_("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),_("ERR_METHOD_NOT_IMPLEMENTED",function(h){return"The "+h+" method is not implemented"}),_("ERR_STREAM_PREMATURE_CLOSE","Premature close"),_("ERR_STREAM_DESTROYED",function(h){return"Cannot call "+h+" after a stream was destroyed"}),_("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),_("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),_("ERR_STREAM_WRITE_AFTER_END","write after end"),_("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),_("ERR_UNKNOWN_ENCODING",function(h){return"Unknown encoding: "+h},TypeError),_("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),E.exports.codes=m},{}],478:[function(o,E,R){(function(m){(function(){"use strict";var _=Object.keys||function(I){var x=[];for(var g in I)x.push(g);return x};E.exports=w;var v=o("./_stream_readable"),h=o("./_stream_writable");o("inherits")(w,v);for(var s=_(h.prototype),b=0;b<s.length;b++){var O=s[b];w.prototype[O]||(w.prototype[O]=h.prototype[O])}function w(I){if(!(this instanceof w))return new w(I);v.call(this,I),h.call(this,I),this.allowHalfOpen=!0,I&&(!1===I.readable&&(this.readable=!1),!1===I.writable&&(this.writable=!1),!1===I.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||m.nextTick(k,this)}function k(I){I.end()}Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(I){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=I,this._writableState.destroyed=I)}})}).call(this)}).call(this,o("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(o,E,R){"use strict";E.exports=_;var m=o("./_stream_transform");function _(v){if(!(this instanceof _))return new _(v);m.call(this,v)}o("inherits")(_,m),_.prototype._transform=function(v,h,s){s(null,v)}},{"./_stream_transform":481,inherits:440}],480:[function(o,E,R){(function(m,_){(function(){"use strict";var v;E.exports=be,be.ReadableState=_e,o("events");var w,h=function(ce,de){return ce.listeners(de).length},s=o("./internal/streams/stream"),b=o("buffer").Buffer,O=(void 0!==_?_:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},f=o("util");w=f&&f.debuglog?f.debuglog("stream"):function(){};var k,I,x,g=o("./internal/streams/buffer_list"),C=o("./internal/streams/destroy"),F=o("./internal/streams/state").getHighWaterMark,Y=o("../errors").codes,Q=Y.ERR_INVALID_ARG_TYPE,se=Y.ERR_STREAM_PUSH_AFTER_EOF,ie=Y.ERR_METHOD_NOT_IMPLEMENTED,ee=Y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;o("inherits")(be,s);var re=C.errorOrDestroy,ne=["error","close","destroy","pause","resume"];function _e(ce,de,pe){v=v||o("./_stream_duplex"),"boolean"!=typeof pe&&(pe=de instanceof v),this.objectMode=!!(ce=ce||{}).objectMode,pe&&(this.objectMode=this.objectMode||!!ce.readableObjectMode),this.highWaterMark=F(this,ce,"readableHighWaterMark",pe),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==ce.emitClose,this.autoDestroy=!!ce.autoDestroy,this.destroyed=!1,this.defaultEncoding=ce.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ce.encoding&&(k||(k=o("string_decoder/").StringDecoder),this.decoder=new k(ce.encoding),this.encoding=ce.encoding)}function be(ce){if(v=v||o("./_stream_duplex"),!(this instanceof be))return new be(ce);this._readableState=new _e(ce,this,this instanceof v),this.readable=!0,ce&&("function"==typeof ce.read&&(this._read=ce.read),"function"==typeof ce.destroy&&(this._destroy=ce.destroy)),s.call(this)}function oe(ce,de,pe,Be,We){w("readableAddChunk",de);var tt,Xt,Nt,Qe,Et,vt=ce._readableState;if(null===de)vt.reading=!1,function(Xt,Nt){if(w("onEofChunk"),!Nt.ended){if(Nt.decoder){var Qe=Nt.decoder.end();Qe&&Qe.length&&(Nt.buffer.push(Qe),Nt.length+=Nt.objectMode?1:Qe.length)}Nt.ended=!0,Nt.sync?N(Xt):(Nt.needReadable=!1,Nt.emittedReadable||(Nt.emittedReadable=!0,G(Xt)))}}(ce,vt);else if(We||(Xt=vt,b.isBuffer(Et=Nt=de)||Et instanceof O||"string"==typeof Nt||void 0===Nt||Xt.objectMode||(Qe=new Q("chunk",["string","Buffer","Uint8Array"],Nt)),tt=Qe),tt)re(ce,tt);else if(vt.objectMode||de&&de.length>0)if("string"==typeof de||vt.objectMode||Object.getPrototypeOf(de)===b.prototype||(de=function(Xt){return b.from(Xt)}(de)),Be)vt.endEmitted?re(ce,new ee):me(ce,vt,de,!0);else if(vt.ended)re(ce,new se);else{if(vt.destroyed)return!1;vt.reading=!1,vt.decoder&&!pe?(de=vt.decoder.write(de),vt.objectMode||0!==de.length?me(ce,vt,de,!1):W(ce,vt)):me(ce,vt,de,!1)}else Be||(vt.reading=!1,W(ce,vt));return!vt.ended&&(vt.length<vt.highWaterMark||0===vt.length)}function me(ce,de,pe,Be){de.flowing&&0===de.length&&!de.sync?(de.awaitDrain=0,ce.emit("data",pe)):(de.length+=de.objectMode?1:pe.length,Be?de.buffer.unshift(pe):de.buffer.push(pe),de.needReadable&&N(ce)),W(ce,de)}function we(ce,de){return ce<=0||0===de.length&&de.ended?0:de.objectMode?1:ce!=ce?de.flowing&&de.length?de.buffer.head.data.length:de.length:(ce>de.highWaterMark&&(de.highWaterMark=((pe=ce)>=1073741824?pe=1073741824:(pe--,pe|=pe>>>1,pe|=pe>>>2,pe|=pe>>>4,pe|=pe>>>8,pe|=pe>>>16,pe++),pe)),ce<=de.length?ce:de.ended?de.length:(de.needReadable=!0,0));var pe}function N(ce){var de=ce._readableState;w("emitReadable",de.needReadable,de.emittedReadable),de.needReadable=!1,de.emittedReadable||(w("emitReadable",de.flowing),de.emittedReadable=!0,m.nextTick(G,ce))}function G(ce){var de=ce._readableState;w("emitReadable_",de.destroyed,de.length,de.ended),de.destroyed||!de.length&&!de.ended||(ce.emit("readable"),de.emittedReadable=!1),de.needReadable=!de.flowing&&!de.ended&&de.length<=de.highWaterMark,xe(ce)}function W(ce,de){de.readingMore||(de.readingMore=!0,m.nextTick(z,ce,de))}function z(ce,de){for(;!de.reading&&!de.ended&&(de.length<de.highWaterMark||de.flowing&&0===de.length);){var pe=de.length;if(w("maybeReadMore read 0"),ce.read(0),pe===de.length)break}de.readingMore=!1}function X(ce){var de=ce._readableState;de.readableListening=ce.listenerCount("readable")>0,de.resumeScheduled&&!de.paused?de.flowing=!0:ce.listenerCount("data")>0&&ce.resume()}function q(ce){w("readable nexttick read 0"),ce.read(0)}function ye(ce,de){w("resume",de.reading),de.reading||ce.read(0),de.resumeScheduled=!1,ce.emit("resume"),xe(ce),de.flowing&&!de.reading&&ce.read(0)}function xe(ce){var de=ce._readableState;for(w("flow",de.flowing);de.flowing&&null!==ce.read(););}function ge(ce,de){return 0===de.length?null:(de.objectMode?pe=de.buffer.shift():!ce||ce>=de.length?(pe=de.decoder?de.buffer.join(""):1===de.buffer.length?de.buffer.first():de.buffer.concat(de.length),de.buffer.clear()):pe=de.buffer.consume(ce,de.decoder),pe);var pe}function Ee(ce){var de=ce._readableState;w("endReadable",de.endEmitted),de.endEmitted||(de.ended=!0,m.nextTick(he,de,ce))}function he(ce,de){if(w("endReadableNT",ce.endEmitted,ce.length),!ce.endEmitted&&0===ce.length&&(ce.endEmitted=!0,de.readable=!1,de.emit("end"),ce.autoDestroy)){var pe=de._writableState;(!pe||pe.autoDestroy&&pe.finished)&&de.destroy()}}function Ie(ce,de){for(var pe=0,Be=ce.length;pe<Be;pe++)if(ce[pe]===de)return pe;return-1}Object.defineProperty(be.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(ce){this._readableState&&(this._readableState.destroyed=ce)}}),be.prototype.destroy=C.destroy,be.prototype._undestroy=C.undestroy,be.prototype._destroy=function(ce,de){de(ce)},be.prototype.push=function(ce,de){var pe,Be=this._readableState;return Be.objectMode?pe=!0:"string"==typeof ce&&((de=de||Be.defaultEncoding)!==Be.encoding&&(ce=b.from(ce,de),de=""),pe=!0),oe(this,ce,de,!1,pe)},be.prototype.unshift=function(ce){return oe(this,ce,null,!0,!1)},be.prototype.isPaused=function(){return!1===this._readableState.flowing},be.prototype.setEncoding=function(ce){k||(k=o("string_decoder/").StringDecoder);var de=new k(ce);this._readableState.decoder=de,this._readableState.encoding=this._readableState.decoder.encoding;for(var pe=this._readableState.buffer.head,Be="";null!==pe;)Be+=de.write(pe.data),pe=pe.next;return this._readableState.buffer.clear(),""!==Be&&this._readableState.buffer.push(Be),this._readableState.length=Be.length,this},be.prototype.read=function(ce){w("read",ce),ce=parseInt(ce,10);var de=this._readableState,pe=ce;if(0!==ce&&(de.emittedReadable=!1),0===ce&&de.needReadable&&((0!==de.highWaterMark?de.length>=de.highWaterMark:de.length>0)||de.ended))return w("read: emitReadable",de.length,de.ended),0===de.length&&de.ended?Ee(this):N(this),null;if(0===(ce=we(ce,de))&&de.ended)return 0===de.length&&Ee(this),null;var Be,We=de.needReadable;return w("need readable",We),(0===de.length||de.length-ce<de.highWaterMark)&&w("length less than watermark",We=!0),de.ended||de.reading?w("reading or ended",We=!1):We&&(w("do read"),de.reading=!0,de.sync=!0,0===de.length&&(de.needReadable=!0),this._read(de.highWaterMark),de.sync=!1,de.reading||(ce=we(pe,de))),null===(Be=ce>0?ge(ce,de):null)?(de.needReadable=de.length<=de.highWaterMark,ce=0):(de.length-=ce,de.awaitDrain=0),0===de.length&&(de.ended||(de.needReadable=!0),pe!==ce&&de.ended&&Ee(this)),null!==Be&&this.emit("data",Be),Be},be.prototype._read=function(ce){re(this,new ie("_read()"))},be.prototype.pipe=function(ce,de){var pe=this,Be=this._readableState;switch(Be.pipesCount){case 0:Be.pipes=ce;break;case 1:Be.pipes=[Be.pipes,ce];break;default:Be.pipes.push(ce)}Be.pipesCount+=1,w("pipe count=%d opts=%j",Be.pipesCount,de);var We=de&&!1===de.end||ce===m.stdout||ce===m.stderr?Mt:vt;function vt(){w("onend"),ce.end()}Be.endEmitted?m.nextTick(We):pe.once("end",We),ce.on("unpipe",function tt(Ge,ot){w("onunpipe"),Ge===pe&&ot&&!1===ot.hasUnpiped&&(ot.hasUnpiped=!0,w("cleanup"),ce.removeListener("close",Lt),ce.removeListener("finish",wt),ce.removeListener("drain",Xt),ce.removeListener("error",Et),ce.removeListener("unpipe",tt),pe.removeListener("end",vt),pe.removeListener("end",Mt),pe.removeListener("data",Qe),Nt=!0,!Be.awaitDrain||ce._writableState&&!ce._writableState.needDrain||Xt())});var Xt=function(Ge){return function(){var ot=Ge._readableState;w("pipeOnDrain",ot.awaitDrain),ot.awaitDrain&&ot.awaitDrain--,0===ot.awaitDrain&&h(Ge,"data")&&(ot.flowing=!0,xe(Ge))}}(pe);ce.on("drain",Xt);var Nt=!1;function Qe(Ge){w("ondata");var ot=ce.write(Ge);w("dest.write",ot),!1===ot&&((1===Be.pipesCount&&Be.pipes===ce||Be.pipesCount>1&&-1!==Ie(Be.pipes,ce))&&!Nt&&(w("false write response, pause",Be.awaitDrain),Be.awaitDrain++),pe.pause())}function Et(Ge){w("onerror",Ge),Mt(),ce.removeListener("error",Et),0===h(ce,"error")&&re(ce,Ge)}function Lt(){ce.removeListener("finish",wt),Mt()}function wt(){w("onfinish"),ce.removeListener("close",Lt),Mt()}function Mt(){w("unpipe"),pe.unpipe(ce)}return pe.on("data",Qe),function(Ge,ot,Tt){if("function"==typeof Ge.prependListener)return Ge.prependListener(ot,Tt);Ge._events&&Ge._events[ot]?Array.isArray(Ge._events[ot])?Ge._events[ot].unshift(Tt):Ge._events[ot]=[Tt,Ge._events[ot]]:Ge.on(ot,Tt)}(ce,"error",Et),ce.once("close",Lt),ce.once("finish",wt),ce.emit("pipe",pe),Be.flowing||(w("pipe resume"),pe.resume()),ce},be.prototype.unpipe=function(ce){var de=this._readableState,pe={hasUnpiped:!1};if(0===de.pipesCount)return this;if(1===de.pipesCount)return ce&&ce!==de.pipes||(ce||(ce=de.pipes),de.pipes=null,de.pipesCount=0,de.flowing=!1,ce&&ce.emit("unpipe",this,pe)),this;if(!ce){var Be=de.pipes,We=de.pipesCount;de.pipes=null,de.pipesCount=0,de.flowing=!1;for(var tt=0;tt<We;tt++)Be[tt].emit("unpipe",this,{hasUnpiped:!1});return this}var vt=Ie(de.pipes,ce);return-1===vt||(de.pipes.splice(vt,1),de.pipesCount-=1,1===de.pipesCount&&(de.pipes=de.pipes[0]),ce.emit("unpipe",this,pe)),this},be.prototype.addListener=be.prototype.on=function(ce,de){var pe=s.prototype.on.call(this,ce,de),Be=this._readableState;return"data"===ce?(Be.readableListening=this.listenerCount("readable")>0,!1!==Be.flowing&&this.resume()):"readable"===ce&&(Be.endEmitted||Be.readableListening||(Be.readableListening=Be.needReadable=!0,Be.flowing=!1,Be.emittedReadable=!1,w("on readable",Be.length,Be.reading),Be.length?N(this):Be.reading||m.nextTick(q,this))),pe},be.prototype.removeListener=function(ce,de){var pe=s.prototype.removeListener.call(this,ce,de);return"readable"===ce&&m.nextTick(X,this),pe},be.prototype.removeAllListeners=function(ce){var de=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==ce&&void 0!==ce||m.nextTick(X,this),de},be.prototype.resume=function(){var pe,ce=this._readableState;return ce.flowing||(w("resume"),ce.flowing=!ce.readableListening,this,(pe=ce).resumeScheduled||(pe.resumeScheduled=!0,m.nextTick(ye,this,pe))),ce.paused=!1,this},be.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},be.prototype.wrap=function(ce){var de=this,pe=this._readableState,Be=!1;for(var We in ce.on("end",function(){if(w("wrapped end"),pe.decoder&&!pe.ended){var vt=pe.decoder.end();vt&&vt.length&&de.push(vt)}de.push(null)}),ce.on("data",function(vt){w("wrapped data"),pe.decoder&&(vt=pe.decoder.write(vt)),pe.objectMode&&null==vt||(pe.objectMode||vt&&vt.length)&&(de.push(vt)||(Be=!0,ce.pause()))}),ce)void 0===this[We]&&"function"==typeof ce[We]&&(this[We]=function(vt){return function(){return ce[vt].apply(ce,arguments)}}(We));for(var tt=0;tt<ne.length;tt++)ce.on(ne[tt],this.emit.bind(this,ne[tt]));return this._read=function(vt){w("wrapped _read",vt),Be&&(Be=!1,ce.resume())},this},"function"==typeof Symbol&&(be.prototype[Symbol.asyncIterator]=function(){return void 0===I&&(I=o("./internal/streams/async_iterator")),I(this)}),Object.defineProperty(be.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(be.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(be.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ce){this._readableState&&(this._readableState.flowing=ce)}}),be._fromList=ge,Object.defineProperty(be.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(be.from=function(ce,de){return void 0===x&&(x=o("./internal/streams/from")),x(be,ce,de)})}).call(this)}).call(this,o("_process"),typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(o,E,R){"use strict";E.exports=w;var m=o("../errors").codes,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_MULTIPLE_CALLBACK,h=m.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=m.ERR_TRANSFORM_WITH_LENGTH_0,b=o("./_stream_duplex");function O(I,x){var g=this._transformState;g.transforming=!1;var C=g.writecb;if(null===C)return this.emit("error",new v);g.writechunk=null,g.writecb=null,null!=x&&this.push(x),C(I);var F=this._readableState;F.reading=!1,(F.needReadable||F.length<F.highWaterMark)&&this._read(F.highWaterMark)}function w(I){if(!(this instanceof w))return new w(I);b.call(this,I),this._transformState={afterTransform:O.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,I&&("function"==typeof I.transform&&(this._transform=I.transform),"function"==typeof I.flush&&(this._flush=I.flush)),this.on("prefinish",f)}function f(){var I=this;"function"!=typeof this._flush||this._readableState.destroyed?k(this,null,null):this._flush(function(x,g){k(I,x,g)})}function k(I,x,g){if(x)return I.emit("error",x);if(null!=g&&I.push(g),I._writableState.length)throw new s;if(I._transformState.transforming)throw new h;return I.push(null)}o("inherits")(w,b),w.prototype.push=function(I,x){return this._transformState.needTransform=!1,b.prototype.push.call(this,I,x)},w.prototype._transform=function(I,x,g){g(new _("_transform()"))},w.prototype._write=function(I,x,g){var C=this._transformState;if(C.writecb=g,C.writechunk=I,C.writeencoding=x,!C.transforming){var F=this._readableState;(C.needTransform||F.needReadable||F.length<F.highWaterMark)&&this._read(F.highWaterMark)}},w.prototype._read=function(I){var x=this._transformState;null===x.writechunk||x.transforming?x.needTransform=!0:(x.transforming=!0,this._transform(x.writechunk,x.writeencoding,x.afterTransform))},w.prototype._destroy=function(I,x){b.prototype._destroy.call(this,I,function(g){x(g)})}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(o,E,R){(function(m,_){(function(){"use strict";function v(z){var X=this;this.next=null,this.entry=null,this.finish=function(){!function(q,ye,xe){var ge=q.entry;for(q.entry=null;ge;){var Ee=ge.callback;ye.pendingcb--,Ee(undefined),ge=ge.next}ye.corkedRequestsFree.next=q}(X,z)}}var h;E.exports=be,be.WritableState=_e;var f,s={deprecate:o("util-deprecate")},b=o("./internal/streams/stream"),O=o("buffer").Buffer,w=(void 0!==_?_:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},k=o("./internal/streams/destroy"),I=o("./internal/streams/state").getHighWaterMark,x=o("../errors").codes,g=x.ERR_INVALID_ARG_TYPE,C=x.ERR_METHOD_NOT_IMPLEMENTED,F=x.ERR_MULTIPLE_CALLBACK,Y=x.ERR_STREAM_CANNOT_PIPE,Q=x.ERR_STREAM_DESTROYED,se=x.ERR_STREAM_NULL_VALUES,ie=x.ERR_STREAM_WRITE_AFTER_END,ee=x.ERR_UNKNOWN_ENCODING,re=k.errorOrDestroy;function ne(){}function _e(z,X,q){h=h||o("./_stream_duplex"),"boolean"!=typeof q&&(q=X instanceof h),this.objectMode=!!(z=z||{}).objectMode,q&&(this.objectMode=this.objectMode||!!z.writableObjectMode),this.highWaterMark=I(this,z,"writableHighWaterMark",q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===z.decodeStrings),this.defaultEncoding=z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(xe){!function(ge,Ee){var pe,he=ge._writableState,Ie=he.sync,ce=he.writecb;if("function"!=typeof ce)throw new F;if((pe=he).writing=!1,pe.writecb=null,pe.length-=pe.writelen,pe.writelen=0,Ee)!function(pe,Be,We,tt,vt){--Be.pendingcb,We?(m.nextTick(vt,tt),m.nextTick(W,pe,Be),pe._writableState.errorEmitted=!0,re(pe,tt)):(vt(tt),pe._writableState.errorEmitted=!0,re(pe,tt),W(pe,Be))}(ge,he,Ie,Ee,ce);else{var de=N(he)||ge.destroyed;de||he.corked||he.bufferProcessing||!he.bufferedRequest||we(ge,he),Ie?m.nextTick(me,ge,he,de,ce):me(ge,he,de,ce)}}(X,xe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==z.emitClose,this.autoDestroy=!!z.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new v(this)}function be(z){var X=this instanceof(h=h||o("./_stream_duplex"));if(!X&&!f.call(be,this))return new be(z);this._writableState=new _e(z,this,X),this.writable=!0,z&&("function"==typeof z.write&&(this._write=z.write),"function"==typeof z.writev&&(this._writev=z.writev),"function"==typeof z.destroy&&(this._destroy=z.destroy),"function"==typeof z.final&&(this._final=z.final)),b.call(this)}function oe(z,X,q,ye,xe,ge,Ee){X.writelen=ye,X.writecb=Ee,X.writing=!0,X.sync=!0,X.destroyed?X.onwrite(new Q("write")):q?z._writev(xe,X.onwrite):z._write(xe,ge,X.onwrite),X.sync=!1}function me(z,X,q,ye){var xe,ge;q||(xe=z,0===(ge=X).length&&ge.needDrain&&(ge.needDrain=!1,xe.emit("drain"))),X.pendingcb--,ye(),W(z,X)}function we(z,X){X.bufferProcessing=!0;var q=X.bufferedRequest;if(z._writev&&q&&q.next){var xe=new Array(X.bufferedRequestCount),ge=X.corkedRequestsFree;ge.entry=q;for(var Ee=0,he=!0;q;)xe[Ee]=q,q.isBuf||(he=!1),q=q.next,Ee+=1;xe.allBuffers=he,oe(z,X,!0,X.length,xe,"",ge.finish),X.pendingcb++,X.lastBufferedRequest=null,ge.next?(X.corkedRequestsFree=ge.next,ge.next=null):X.corkedRequestsFree=new v(X),X.bufferedRequestCount=0}else{for(;q;){var Ie=q.chunk;if(oe(z,X,!1,X.objectMode?1:Ie.length,Ie,q.encoding,q.callback),q=q.next,X.bufferedRequestCount--,X.writing)break}null===q&&(X.lastBufferedRequest=null)}X.bufferedRequest=q,X.bufferProcessing=!1}function N(z){return z.ending&&0===z.length&&null===z.bufferedRequest&&!z.finished&&!z.writing}function G(z,X){z._final(function(q){X.pendingcb--,q&&re(z,q),X.prefinished=!0,z.emit("prefinish"),W(z,X)})}function W(z,X){var xe,ge,q=N(X);if(q&&(xe=z,(ge=X).prefinished||ge.finalCalled||("function"!=typeof xe._final||ge.destroyed?(ge.prefinished=!0,xe.emit("prefinish")):(ge.pendingcb++,ge.finalCalled=!0,m.nextTick(G,xe,ge))),0===X.pendingcb&&(X.finished=!0,z.emit("finish"),X.autoDestroy))){var ye=z._readableState;(!ye||ye.autoDestroy&&ye.endEmitted)&&z.destroy()}return q}o("inherits")(be,b),_e.prototype.getBuffer=function(){for(var z=this.bufferedRequest,X=[];z;)X.push(z),z=z.next;return X},function(){try{Object.defineProperty(_e.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(be,Symbol.hasInstance,{value:function(z){return!!f.call(this,z)||this===be&&z&&z._writableState instanceof _e}})):f=function(z){return z instanceof this},be.prototype.pipe=function(){re(this,new Y)},be.prototype.write=function(z,X,q){var ye,he,Ie,ce,xe=this._writableState,ge=!1,Ee=!xe.objectMode&&(O.isBuffer(ye=z)||ye instanceof w);return Ee&&!O.isBuffer(z)&&(z=O.from(z)),"function"==typeof X&&(q=X,X=null),Ee?X="buffer":X||(X=xe.defaultEncoding),"function"!=typeof q&&(q=ne),xe.ending?(he=this,Ie=q,ce=new ie,re(he,ce),m.nextTick(Ie,ce)):(Ee||function(he,Ie,ce,de){var pe;return null===ce?pe=new se:"string"==typeof ce||Ie.objectMode||(pe=new g("chunk",["string","Buffer"],ce)),!pe||(re(he,pe),m.nextTick(de,pe),!1)}(this,xe,z,q))&&(xe.pendingcb++,ge=function(he,Ie,ce,de,pe,Be){if(!ce){var We=(Qe=de,(Nt=Ie).objectMode||!1===Nt.decodeStrings||"string"!=typeof Qe||(Qe=O.from(Qe,pe)),Qe);de!==We&&(ce=!0,pe="buffer",de=We)}var Nt,Qe,tt=Ie.objectMode?1:de.length;Ie.length+=tt;var vt=Ie.length<Ie.highWaterMark;if(vt||(Ie.needDrain=!0),Ie.writing||Ie.corked){var Xt=Ie.lastBufferedRequest;Ie.lastBufferedRequest={chunk:de,encoding:pe,isBuf:ce,callback:Be,next:null},Xt?Xt.next=Ie.lastBufferedRequest:Ie.bufferedRequest=Ie.lastBufferedRequest,Ie.bufferedRequestCount+=1}else oe(he,Ie,!1,tt,de,pe,Be);return vt}(this,xe,Ee,z,X,q)),ge},be.prototype.cork=function(){this._writableState.corked++},be.prototype.uncork=function(){var z=this._writableState;z.corked&&(z.corked--,z.writing||z.corked||z.bufferProcessing||!z.bufferedRequest||we(this,z))},be.prototype.setDefaultEncoding=function(z){if("string"==typeof z&&(z=z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((z+"").toLowerCase())>-1))throw new ee(z);return this._writableState.defaultEncoding=z,this},Object.defineProperty(be.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(be.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),be.prototype._write=function(z,X,q){q(new C("_write()"))},be.prototype._writev=null,be.prototype.end=function(z,X,q){var ge,Ee,ye=this._writableState;return"function"==typeof z?(q=z,z=null,X=null):"function"==typeof X&&(q=X,X=null),null!=z&&this.write(z,X),ye.corked&&(ye.corked=1,this.uncork()),ye.ending||(this,Ee=q,(ge=ye).ending=!0,W(this,ge),Ee&&(ge.finished?m.nextTick(Ee):this.once("finish",Ee)),ge.ended=!0,this.writable=!1),this},Object.defineProperty(be.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(be.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(z){this._writableState&&(this._writableState.destroyed=z)}}),be.prototype.destroy=k.destroy,be.prototype._undestroy=k.undestroy,be.prototype._destroy=function(z,X){X(z)}}).call(this)}).call(this,o("_process"),typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(o,E,R){(function(m){(function(){"use strict";var _;function v(Q,se,ie){return(se="symbol"==typeof(re=function(ne,_e){if("object"!=typeof ne||null===ne)return ne;var be=ne[Symbol.toPrimitive];if(void 0!==be){var oe=be.call(ne,"string");if("object"!=typeof oe)return oe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ne)}(se))?re:String(re))in Q?Object.defineProperty(Q,se,{value:ie,enumerable:!0,configurable:!0,writable:!0}):Q[se]=ie,Q;var re}var h=o("./end-of-stream"),s=Symbol("lastResolve"),b=Symbol("lastReject"),O=Symbol("error"),w=Symbol("ended"),f=Symbol("lastPromise"),k=Symbol("handlePromise"),I=Symbol("stream");function x(Q,se){return{value:Q,done:se}}function g(Q){var se=Q[s];if(null!==se){var ie=Q[I].read();null!==ie&&(Q[f]=null,Q[s]=null,Q[b]=null,se(x(ie,!1)))}}function C(Q){m.nextTick(g,Q)}var F=Object.getPrototypeOf(function(){}),Y=Object.setPrototypeOf((v(_={get stream(){return this[I]},next:function(){var Q=this,se=this[O];if(null!==se)return Promise.reject(se);if(this[w])return Promise.resolve(x(void 0,!0));if(this[I].destroyed)return new Promise(function(ne,_e){m.nextTick(function(){Q[O]?_e(Q[O]):ne(x(void 0,!0))})});var ie,ee=this[f];if(ee)ie=new Promise(function(ne,_e){return function(be,oe){ne.then(function(){_e[w]?be(x(void 0,!0)):_e[k](be,oe)},oe)}}(ee,this));else{var re=this[I].read();if(null!==re)return Promise.resolve(x(re,!1));ie=new Promise(this[k])}return this[f]=ie,ie}},Symbol.asyncIterator,function(){return this}),v(_,"return",function(){var Q=this;return new Promise(function(se,ie){Q[I].destroy(null,function(ee){ee?ie(ee):se(x(void 0,!0))})})}),_),F);E.exports=function(Q){var se,ie=Object.create(Y,(v(se={},I,{value:Q,writable:!0}),v(se,s,{value:null,writable:!0}),v(se,b,{value:null,writable:!0}),v(se,O,{value:null,writable:!0}),v(se,w,{value:Q._readableState.endEmitted,writable:!0}),v(se,k,{value:function(ee,re){var ne=ie[I].read();ne?(ie[f]=null,ie[s]=null,ie[b]=null,ee(x(ne,!1))):(ie[s]=ee,ie[b]=re)},writable:!0}),se));return ie[f]=null,h(Q,function(ee){if(ee&&"ERR_STREAM_PREMATURE_CLOSE"!==ee.code){var re=ie[b];return null!==re&&(ie[f]=null,ie[s]=null,ie[b]=null,re(ee)),void(ie[O]=ee)}var ne=ie[s];null!==ne&&(ie[f]=null,ie[s]=null,ie[b]=null,ne(x(void 0,!0))),ie[w]=!0}),Q.on("readable",C.bind(null,ie)),ie}}).call(this)}).call(this,o("_process"))},{"./end-of-stream":486,_process:467}],484:[function(o,E,R){"use strict";function m(f,k){var I=Object.keys(f);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(f);k&&(x=x.filter(function(g){return Object.getOwnPropertyDescriptor(f,g).enumerable})),I.push.apply(I,x)}return I}function _(f){for(var k=1;k<arguments.length;k++){var I=null!=arguments[k]?arguments[k]:{};k%2?m(Object(I),!0).forEach(function(x){v(f,x,I[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(I)):m(Object(I)).forEach(function(x){Object.defineProperty(f,x,Object.getOwnPropertyDescriptor(I,x))})}return f}function v(f,k,I){return(k=s(k))in f?Object.defineProperty(f,k,{value:I,enumerable:!0,configurable:!0,writable:!0}):f[k]=I,f}function h(f,k){for(var I=0;I<k.length;I++){var x=k[I];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(f,s(x.key),x)}}function s(f){var k=function(I,x){if("object"!=typeof I||null===I)return I;var g=I[Symbol.toPrimitive];if(void 0!==g){var C=g.call(I,"string");if("object"!=typeof C)return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}(f);return"symbol"==typeof k?k:String(k)}var b=o("buffer").Buffer,O=o("util").inspect,w=O&&O.custom||"inspect";E.exports=function(){function f(){(function(g,C){if(!(g instanceof C))throw new TypeError("Cannot call a class as a function")})(this,f),this.head=null,this.tail=null,this.length=0}var k,I;return k=f,(I=[{key:"push",value:function(g){var C={data:g,next:null};this.length>0?this.tail.next=C:this.head=C,this.tail=C,++this.length}},{key:"unshift",value:function(g){var C={data:g,next:this.head};0===this.length&&(this.tail=C),this.head=C,++this.length}},{key:"shift",value:function(){if(0!==this.length){var g=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(0===this.length)return"";for(var C=this.head,F=""+C.data;C=C.next;)F+=g+C.data;return F}},{key:"concat",value:function(g){if(0===this.length)return b.alloc(0);for(var Q=b.allocUnsafe(g>>>0),se=this.head,ie=0;se;)b.prototype.copy.call(se.data,Q,ie),ie+=se.data.length,se=se.next;return Q}},{key:"consume",value:function(g,C){var F;return g<this.head.data.length?(F=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):F=g===this.head.data.length?this.shift():C?this._getString(g):this._getBuffer(g),F}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var C=this.head,F=1,Y=C.data;for(g-=Y.length;C=C.next;){var Q=C.data,se=g>Q.length?Q.length:g;if(Y+=se===Q.length?Q:Q.slice(0,g),0==(g-=se)){se===Q.length?(++F,this.head=C.next?C.next:this.tail=null):(this.head=C,C.data=Q.slice(se));break}++F}return this.length-=F,Y}},{key:"_getBuffer",value:function(g){var C=b.allocUnsafe(g),F=this.head,Y=1;for(F.data.copy(C),g-=F.data.length;F=F.next;){var Q=F.data,se=g>Q.length?Q.length:g;if(Q.copy(C,C.length-g,0,se),0==(g-=se)){se===Q.length?(++Y,this.head=F.next?F.next:this.tail=null):(this.head=F,F.data=Q.slice(se));break}++Y}return this.length-=Y,C}},{key:w,value:function(g,C){return O(this,_(_({},C),{},{depth:0,customInspect:!1}))}}])&&h(k.prototype,I),Object.defineProperty(k,"prototype",{writable:!1}),f}()},{buffer:220,util:188}],485:[function(o,E,R){(function(m){(function(){"use strict";function _(s,b){h(s,b),v(s)}function v(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function h(s,b){s.emit("error",b)}E.exports={destroy:function(s,b){var O=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(b?b(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,m.nextTick(h,this,s)):m.nextTick(h,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(k){!b&&k?O._writableState?O._writableState.errorEmitted?m.nextTick(v,O):(O._writableState.errorEmitted=!0,m.nextTick(_,O,k)):m.nextTick(_,O,k):b?(m.nextTick(v,O),b(k)):m.nextTick(v,O)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(s,b){var O=s._readableState,w=s._writableState;O&&O.autoDestroy||w&&w.autoDestroy?s.destroy(b):s.emit("error",b)}}}).call(this)}).call(this,o("_process"))},{_process:467}],486:[function(o,E,R){"use strict";var m=o("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function _(){}E.exports=function v(h,s,b){if("function"==typeof s)return v(h,null,s);s||(s={}),b=function(Q){var se=!1;return function(){if(!se){se=!0;for(var ie=arguments.length,ee=new Array(ie),re=0;re<ie;re++)ee[re]=arguments[re];Q.apply(this,ee)}}}(b||_);var Q,O=s.readable||!1!==s.readable&&h.readable,w=s.writable||!1!==s.writable&&h.writable,f=function(){h.writable||I()},k=h._writableState&&h._writableState.finished,I=function(){w=!1,k=!0,O||b.call(h)},x=h._readableState&&h._readableState.endEmitted,g=function(){O=!1,x=!0,w||b.call(h)},C=function(Q){b.call(h,Q)},F=function(){var Q;return O&&!x?(h._readableState&&h._readableState.ended||(Q=new m),b.call(h,Q)):w&&!k?(h._writableState&&h._writableState.ended||(Q=new m),b.call(h,Q)):void 0},Y=function(){h.req.on("finish",I)};return(Q=h).setHeader&&"function"==typeof Q.abort?(h.on("complete",I),h.on("abort",F),h.req?Y():h.on("request",Y)):w&&!h._writableState&&(h.on("end",f),h.on("close",f)),h.on("end",g),h.on("finish",I),!1!==s.error&&h.on("error",C),h.on("close",F),function(){h.removeListener("complete",I),h.removeListener("abort",F),h.removeListener("request",Y),h.req&&h.req.removeListener("finish",I),h.removeListener("end",f),h.removeListener("close",f),h.removeListener("finish",I),h.removeListener("end",g),h.removeListener("error",C),h.removeListener("close",F)}}},{"../../../errors":477}],487:[function(o,E,R){"use strict";E.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(o,E,R){"use strict";var m,_=o("../../../errors").codes,v=_.ERR_MISSING_ARGS,h=_.ERR_STREAM_DESTROYED;function s(k){if(k)throw k}function O(k){k()}function w(k,I){return k.pipe(I)}E.exports=function(){for(var k=arguments.length,I=new Array(k),x=0;x<k;x++)I[x]=arguments[x];var g,C=function f(k){return k.length?"function"!=typeof k[k.length-1]?s:k.pop():s}(I);if(Array.isArray(I[0])&&(I=I[0]),I.length<2)throw new v("streams");var F=I.map(function(Y,Q){var se=Q<I.length-1;return function b(k,I,x,g){g=function(Y){var Q=!1;return function(){Q||(Q=!0,Y.apply(void 0,arguments))}}(g);var C=!1;k.on("close",function(){C=!0}),void 0===m&&(m=o("./end-of-stream")),m(k,{readable:I,writable:x},function(Y){if(Y)return g(Y);C=!0,g()});var F=!1;return function(Y){if(!C&&!F)return F=!0,(Q=k).setHeader&&"function"==typeof Q.abort?k.abort():"function"==typeof k.destroy?k.destroy():void g(Y||new h("pipe"));var Q}}(Y,se,Q>0,function(ie){g||(g=ie),ie&&F.forEach(O),se||(F.forEach(O),C(g))})});return I.reduce(w)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(o,E,R){"use strict";var m=o("../../../errors").codes.ERR_INVALID_OPT_VALUE;E.exports={getHighWaterMark:function(_,v,h,s){var O,b=null!=(O=v).highWaterMark?O.highWaterMark:s?O[h]:null;if(null!=b){if(!isFinite(b)||Math.floor(b)!==b||b<0)throw new m(s?h:"highWaterMark",b);return Math.floor(b)}return _.objectMode?16:16384}}},{"../../../errors":477}],490:[function(o,E,R){"use strict";E.exports=o("events").EventEmitter},{events:422}],491:[function(o,E,R){"use strict";(R=E.exports=o("./lib/_stream_readable.js")).Stream=R,R.Readable=R,R.Writable=o("./lib/_stream_writable.js"),R.Duplex=o("./lib/_stream_duplex.js"),R.Transform=o("./lib/_stream_transform.js"),R.PassThrough=o("./lib/_stream_passthrough.js"),R.finished=o("./lib/internal/streams/end-of-stream.js"),R.pipeline=o("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(o,E,R){"use strict";var m=function(_){var v=Object.prototype,h=v.hasOwnProperty,s=Object.defineProperty||function(W,z,X){W[z]=X.value},b="function"==typeof Symbol?Symbol:{},O=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",f=b.toStringTag||"@@toStringTag";function k(W,z,X){return Object.defineProperty(W,z,{value:X,enumerable:!0,configurable:!0,writable:!0}),W[z]}try{k({},"")}catch{k=function(z,X,q){return z[X]=q}}function I(W,z,X,q){var xe=Object.create((z&&z.prototype instanceof C?z:C).prototype),ge=new we(q||[]);return s(xe,"_invoke",{value:_e(W,X,ge)}),xe}function x(W,z,X){try{return{type:"normal",arg:W.call(z,X)}}catch(q){return{type:"throw",arg:q}}}_.wrap=I;var g={};function C(){}function F(){}function Y(){}var Q={};k(Q,O,function(){return this});var se=Object.getPrototypeOf,ie=se&&se(se(N([])));ie&&ie!==v&&h.call(ie,O)&&(Q=ie);var ee=Y.prototype=C.prototype=Object.create(Q);function re(W){["next","throw","return"].forEach(function(z){k(W,z,function(X){return this._invoke(z,X)})})}function ne(W,z){var X;s(this,"_invoke",{value:function(q,ye){function xe(){return new z(function(ge,Ee){!function he(Ie,ce,de,pe){var Be=x(W[Ie],W,ce);if("throw"!==Be.type){var We=Be.arg,tt=We.value;return tt&&"object"==typeof tt&&h.call(tt,"__await")?z.resolve(tt.__await).then(function(vt){he("next",vt,de,pe)},function(vt){he("throw",vt,de,pe)}):z.resolve(tt).then(function(vt){We.value=vt,de(We)},function(vt){return he("throw",vt,de,pe)})}pe(Be.arg)}(q,ye,ge,Ee)})}return X=X?X.then(xe,xe):xe()}})}function _e(W,z,X){var q="suspendedStart";return function(ye,xe){if("executing"===q)throw new Error("Generator is already running");if("completed"===q){if("throw"===ye)throw xe;return{value:void 0,done:!0}}for(X.method=ye,X.arg=xe;;){var ge=X.delegate;if(ge){var Ee=be(ge,X);if(Ee){if(Ee===g)continue;return Ee}}if("next"===X.method)X.sent=X._sent=X.arg;else if("throw"===X.method){if("suspendedStart"===q)throw q="completed",X.arg;X.dispatchException(X.arg)}else"return"===X.method&&X.abrupt("return",X.arg);q="executing";var he=x(W,z,X);if("normal"===he.type){if(q=X.done?"completed":"suspendedYield",he.arg===g)continue;return{value:he.arg,done:X.done}}"throw"===he.type&&(q="completed",X.method="throw",X.arg=he.arg)}}}function be(W,z){var X=z.method,q=W.iterator[X];if(void 0===q)return z.delegate=null,"throw"===X&&W.iterator.return&&(z.method="return",z.arg=void 0,be(W,z),"throw"===z.method)||"return"!==X&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+X+"' method")),g;var ye=x(q,W.iterator,z.arg);if("throw"===ye.type)return z.method="throw",z.arg=ye.arg,z.delegate=null,g;var xe=ye.arg;return xe?xe.done?(z[W.resultName]=xe.value,z.next=W.nextLoc,"return"!==z.method&&(z.method="next",z.arg=void 0),z.delegate=null,g):xe:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,g)}function oe(W){var z={tryLoc:W[0]};1 in W&&(z.catchLoc=W[1]),2 in W&&(z.finallyLoc=W[2],z.afterLoc=W[3]),this.tryEntries.push(z)}function me(W){var z=W.completion||{};z.type="normal",delete z.arg,W.completion=z}function we(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(oe,this),this.reset(!0)}function N(W){if(W){var z=W[O];if(z)return z.call(W);if("function"==typeof W.next)return W;if(!isNaN(W.length)){var X=-1,q=function ye(){for(;++X<W.length;)if(h.call(W,X))return ye.value=W[X],ye.done=!1,ye;return ye.value=void 0,ye.done=!0,ye};return q.next=q}}return{next:G}}function G(){return{value:void 0,done:!0}}return F.prototype=Y,s(ee,"constructor",{value:Y,configurable:!0}),s(Y,"constructor",{value:F,configurable:!0}),F.displayName=k(Y,f,"GeneratorFunction"),_.isGeneratorFunction=function(W){var z="function"==typeof W&&W.constructor;return!!z&&(z===F||"GeneratorFunction"===(z.displayName||z.name))},_.mark=function(W){return Object.setPrototypeOf?Object.setPrototypeOf(W,Y):(W.__proto__=Y,k(W,f,"GeneratorFunction")),W.prototype=Object.create(ee),W},_.awrap=function(W){return{__await:W}},re(ne.prototype),k(ne.prototype,w,function(){return this}),_.AsyncIterator=ne,_.async=function(W,z,X,q,ye){void 0===ye&&(ye=Promise);var xe=new ne(I(W,z,X,q),ye);return _.isGeneratorFunction(z)?xe:xe.next().then(function(ge){return ge.done?ge.value:xe.next()})},re(ee),k(ee,f,"Generator"),k(ee,O,function(){return this}),k(ee,"toString",function(){return"[object Generator]"}),_.keys=function(W){var z=Object(W),X=[];for(var q in z)X.push(q);return X.reverse(),function ye(){for(;X.length;){var xe=X.pop();if(xe in z)return ye.value=xe,ye.done=!1,ye}return ye.done=!0,ye}},_.values=N,we.prototype={constructor:we,reset:function(W){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(me),!W)for(var z in this)"t"===z.charAt(0)&&h.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=void 0)},stop:function(){this.done=!0;var W=this.tryEntries[0].completion;if("throw"===W.type)throw W.arg;return this.rval},dispatchException:function(W){if(this.done)throw W;var z=this;function X(he,Ie){return xe.type="throw",xe.arg=W,z.next=he,Ie&&(z.method="next",z.arg=void 0),!!Ie}for(var q=this.tryEntries.length-1;q>=0;--q){var ye=this.tryEntries[q],xe=ye.completion;if("root"===ye.tryLoc)return X("end");if(ye.tryLoc<=this.prev){var ge=h.call(ye,"catchLoc"),Ee=h.call(ye,"finallyLoc");if(ge&&Ee){if(this.prev<ye.catchLoc)return X(ye.catchLoc,!0);if(this.prev<ye.finallyLoc)return X(ye.finallyLoc)}else if(ge){if(this.prev<ye.catchLoc)return X(ye.catchLoc,!0)}else{if(!Ee)throw new Error("try statement without catch or finally");if(this.prev<ye.finallyLoc)return X(ye.finallyLoc)}}}},abrupt:function(W,z){for(var X=this.tryEntries.length-1;X>=0;--X){var q=this.tryEntries[X];if(q.tryLoc<=this.prev&&h.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var ye=q;break}}ye&&("break"===W||"continue"===W)&&ye.tryLoc<=z&&z<=ye.finallyLoc&&(ye=null);var xe=ye?ye.completion:{};return xe.type=W,xe.arg=z,ye?(this.method="next",this.next=ye.finallyLoc,g):this.complete(xe)},complete:function(W,z){if("throw"===W.type)throw W.arg;return"break"===W.type||"continue"===W.type?this.next=W.arg:"return"===W.type?(this.rval=this.arg=W.arg,this.method="return",this.next="end"):"normal"===W.type&&z&&(this.next=z),g},finish:function(W){for(var z=this.tryEntries.length-1;z>=0;--z){var X=this.tryEntries[z];if(X.finallyLoc===W)return this.complete(X.completion,X.afterLoc),me(X),g}},catch:function(W){for(var z=this.tryEntries.length-1;z>=0;--z){var X=this.tryEntries[z];if(X.tryLoc===W){var q=X.completion;if("throw"===q.type){var ye=q.arg;me(X)}return ye}}throw new Error("illegal catch attempt")},delegateYield:function(W,z,X){return this.delegate={iterator:N(W),resultName:z,nextLoc:X},"next"===this.method&&(this.arg=void 0),g}},_}("object"==typeof E?E.exports:{});try{regeneratorRuntime=m}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=m:Function("r","regeneratorRuntime = r")(m)}},{}],493:[function(o,E,R){"use strict";var m=o("buffer").Buffer,_=o("inherits"),v=o("hash-base"),h=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],O=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],k=[1352829926,1548603684,1836072691,2053994217,0];function I(){v.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function x(se,ie){return se<<ie|se>>>32-ie}function g(se,ie,ee,re,ne,_e,be,oe){return x(se+(ie^ee^re)+_e+be|0,oe)+ne|0}function C(se,ie,ee,re,ne,_e,be,oe){return x(se+(ie&ee|~ie&re)+_e+be|0,oe)+ne|0}function F(se,ie,ee,re,ne,_e,be,oe){return x(se+((ie|~ee)^re)+_e+be|0,oe)+ne|0}function Y(se,ie,ee,re,ne,_e,be,oe){return x(se+(ie&re|ee&~re)+_e+be|0,oe)+ne|0}function Q(se,ie,ee,re,ne,_e,be,oe){return x(se+(ie^(ee|~re))+_e+be|0,oe)+ne|0}_(I,v),I.prototype._update=function(){for(var se=h,ie=0;ie<16;++ie)se[ie]=this._block.readInt32LE(4*ie);for(var ee=0|this._a,re=0|this._b,ne=0|this._c,_e=0|this._d,be=0|this._e,oe=0|this._a,me=0|this._b,we=0|this._c,N=0|this._d,G=0|this._e,W=0;W<80;W+=1){var z,X;W<16?(z=g(ee,re,ne,_e,be,se[s[W]],f[0],O[W]),X=Q(oe,me,we,N,G,se[b[W]],k[0],w[W])):W<32?(z=C(ee,re,ne,_e,be,se[s[W]],f[1],O[W]),X=Y(oe,me,we,N,G,se[b[W]],k[1],w[W])):W<48?(z=F(ee,re,ne,_e,be,se[s[W]],f[2],O[W]),X=F(oe,me,we,N,G,se[b[W]],k[2],w[W])):W<64?(z=Y(ee,re,ne,_e,be,se[s[W]],f[3],O[W]),X=C(oe,me,we,N,G,se[b[W]],k[3],w[W])):(z=Q(ee,re,ne,_e,be,se[s[W]],f[4],O[W]),X=g(oe,me,we,N,G,se[b[W]],k[4],w[W])),ee=be,be=_e,_e=x(ne,10),ne=re,re=z,oe=G,G=N,N=x(we,10),we=me,me=X}var q=this._b+ne+N|0;this._b=this._c+_e+G|0,this._c=this._d+be+oe|0,this._d=this._e+ee+me|0,this._e=this._a+re+we|0,this._a=q},I.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var se=m.alloc?m.alloc(20):new m(20);return se.writeInt32LE(this._a,0),se.writeInt32LE(this._b,4),se.writeInt32LE(this._c,8),se.writeInt32LE(this._d,12),se.writeInt32LE(this._e,16),se},E.exports=I},{buffer:220,"hash-base":425,inherits:440}],494:[function(o,E,R){"use strict";var m=o("buffer"),_=m.Buffer;function v(s,b){for(var O in s)b[O]=s[O]}function h(s,b,O){return _(s,b,O)}_.from&&_.alloc&&_.allocUnsafe&&_.allocUnsafeSlow?E.exports=m:(v(m,R),R.Buffer=h),h.prototype=Object.create(_.prototype),v(_,h),h.from=function(s,b,O){if("number"==typeof s)throw new TypeError("Argument must not be a number");return _(s,b,O)},h.alloc=function(s,b,O){if("number"!=typeof s)throw new TypeError("Argument must be a number");var w=_(s);return void 0!==b?"string"==typeof O?w.fill(b,O):w.fill(b):w.fill(0),w},h.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return _(s)},h.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return m.SlowBuffer(s)}},{buffer:220}],495:[function(o,E,R){(function(m){(function(){"use strict";var _,v=o("buffer"),h=v.Buffer,s={};for(_ in v)v.hasOwnProperty(_)&&"SlowBuffer"!==_&&"Buffer"!==_&&(s[_]=v[_]);var b=s.Buffer={};for(_ in h)h.hasOwnProperty(_)&&"allocUnsafe"!==_&&"allocUnsafeSlow"!==_&&(b[_]=h[_]);if(s.Buffer.prototype=h.prototype,b.from&&b.from!==Uint8Array.from||(b.from=function(O,w,f){if("number"==typeof O)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof O);if(O&&void 0===O.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);return h(O,w,f)}),b.alloc||(b.alloc=function(O,w,f){if("number"!=typeof O)throw new TypeError('The "size" argument must be of type number. Received type '+typeof O);if(O<0||O>=2*(1<<30))throw new RangeError('The value "'+O+'" is invalid for option "size"');var k=h(O);return w&&0!==w.length?"string"==typeof f?k.fill(w,f):k.fill(w):k.fill(0),k}),!s.kStringMaxLength)try{s.kStringMaxLength=m.binding("buffer").kStringMaxLength}catch{}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),E.exports=s}).call(this)}).call(this,o("_process"))},{_process:467,buffer:220}],496:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0});const m=o("xmlchars/xml/1.0/ed5"),_=o("xmlchars/xml/1.1/ed2"),v=o("xmlchars/xmlns/1.0/ed3");var h=m.isS,s=m.isChar,b=m.isNameStartChar,O=m.isNameChar,w=m.S_LIST,f=m.NAME_RE,k=_.isChar,I=v.isNCNameStartChar,x=v.isNCNameChar,g=v.NC_NAME_RE;const C="http://www.w3.org/XML/1998/namespace",F="http://www.w3.org/2000/xmlns/",Y={__proto__:null,xml:C,xmlns:F},Q={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},se=N=>34===N||39===N,ie=[34,39],ee=[...ie,91,62],re=[...ie,60,93],ne=[61,63,...w],_e=[...w,62,38,60];function be(N,G,W){switch(G){case"xml":W!==C&&N.fail(`xml prefix must be bound to ${C}.`);break;case"xmlns":W!==F&&N.fail(`xmlns prefix must be bound to ${F}.`)}switch(W){case F:N.fail(""===G?`the default namespace may not be set to ${W}.`:`may not assign a prefix (even "xmlns") to the URI ${F}.`);break;case C:switch(G){case"xml":break;case"":N.fail(`the default namespace may not be set to ${W}.`);break;default:N.fail("may not assign the xml namespace to another prefix.")}}}const oe=N=>g.test(N),me=N=>f.test(N);R.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const we={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};R.SaxesParser=class{constructor(N){this.opt=N??{},this.fragmentOpt=!!this.opt.fragment;const G=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,G){this.nameStartCheck=I,this.nameCheck=x,this.isName=oe,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},Y);const W=this.opt.additionalNamespaces;null!=W&&(function(z,X){for(const q of Object.keys(X))be(z,q,X[q])}(this,W),Object.assign(this.ns,W))}else this.nameStartCheck=b,this.nameCheck=O,this.isName=me,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var N;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:G}=this;this.state=G?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=G,this.xmlDeclPossible=!G,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:W}=this.opt;if(void 0===W){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");W="1.0"}this.setXMLVersion(W),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Q),null===(N=this.readyHandler)||void 0===N||N.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(N,G){this[we[N]]=G}off(N){this[we[N]]=void 0}makeError(N){var G;let W=null!==(G=this.fileName)&&void 0!==G?G:"";return this.trackPosition&&(W.length>0&&(W+=":"),W+=`${this.line}:${this.column}`),W.length>0&&(W+=": "),new Error(W+N)}fail(N){const G=this.makeError(N),W=this.errorHandler;if(void 0===W)throw G;return W(G),this}write(N){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let G=!1;null===N?(G=!0,N=""):"object"==typeof N&&(N=N.toString()),void 0!==this.carriedFromPrevious&&(N=`${this.carriedFromPrevious}${N}`,this.carriedFromPrevious=void 0);let W=N.length;const z=N.charCodeAt(W-1);!G&&(13===z||z>=55296&&z<=56319)&&(this.carriedFromPrevious=N[W-1],W--,N=N.slice(0,W));const{stateTable:X}=this;for(this.chunk=N,this.i=0;this.i<W;)X[this.state].call(this);return this.chunkPosition+=W,G?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:N,i:G}=this;if(this.prevI=G,this.i=G+1,G>=N.length)return-1;const W=N.charCodeAt(G);if(this.column++,W<55296){if(W>=32||9===W)return W;switch(W){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return 10===N.charCodeAt(G+1)&&(this.i=G+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),W}}if(W>56319)return W>=57344&&W<=65533||this.fail("disallowed character."),W;const z=65536+1024*(W-55296)+(N.charCodeAt(G+1)-56320);return this.i=G+2,z>1114111&&this.fail("disallowed character."),z}getCode11(){const{chunk:N,i:G}=this;if(this.prevI=G,this.i=G+1,G>=N.length)return-1;const W=N.charCodeAt(G);if(this.column++,W<55296){if(W>31&&W<127||W>159&&8232!==W||9===W)return W;switch(W){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const X=N.charCodeAt(G+1);10!==X&&133!==X||(this.i=G+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),W}}if(W>56319)return W>=57344&&W<=65533||this.fail("disallowed character."),W;const z=65536+1024*(W-55296)+(N.charCodeAt(G+1)-56320);return this.i=G+2,z>1114111&&this.fail("disallowed character."),z}getCodeNorm(){const N=this.getCode();return-2===N?10:N}unget(){this.i=this.prevI,this.column--}captureTo(N){let{i:G}=this;const{chunk:W}=this;for(;;){const z=this.getCode(),X=-2===z,q=X?10:z;if(-1===q||N.includes(q))return this.text+=W.slice(G,this.prevI),q;X&&(this.text+=W.slice(G,this.prevI)+"\n",G=this.i)}}captureToChar(N){let{i:G}=this;const{chunk:W}=this;for(;;){let z=this.getCode();switch(z){case-2:this.text+=W.slice(G,this.prevI)+"\n",G=this.i,z=10;break;case-1:return this.text+=W.slice(G),!1}if(z===N)return this.text+=W.slice(G,this.prevI),!0}}captureNameChars(){const{chunk:N,i:G}=this;for(;;){const W=this.getCode();if(-1===W)return this.name+=N.slice(G),-1;if(!O(W))return this.name+=N.slice(G,this.prevI),-2===W?10:W}}skipSpaces(){for(;;){const N=this.getCodeNorm();if(-1===N||!h(N))return N}}setXMLVersion(N){this.currentXMLVersion=N,"1.0"===N?(this.isChar=s,this.getCode=this.getCode10):(this.isChar=k,this.getCode=this.getCode11)}sBegin(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const N=this.i,G=this.skipSpaces();switch(this.prevI!==N&&(this.xmlDeclPossible=!1),G){case 60:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var N;const G=this.captureTo(ee);switch(G){case 62:null===(N=this.doctypeHandler)||void 0===N||N.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(G),91===G?this.state=4:se(G)&&(this.state=3,this.q=G)}}sDoctypeQuote(){const N=this.q;this.captureToChar(N)&&(this.text+=String.fromCodePoint(N),this.q=null,this.state=2)}sDTD(){const N=this.captureTo(re);-1!==N&&(this.text+=String.fromCodePoint(N),93===N?this.state=2:60===N?this.state=6:se(N)&&(this.state=5,this.q=N))}sDTDQuoted(){const N=this.q;this.captureToChar(N)&&(this.text+=String.fromCodePoint(N),this.state=4,this.q=null)}sDTDOpenWaka(){const N=this.getCodeNorm();switch(this.text+=String.fromCodePoint(N),N){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const N=String.fromCodePoint(this.getCodeNorm()),G=this.openWakaBang+=N;this.text+=N,"-"!==G&&(this.state="--"===G?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const N=this.getCodeNorm();this.text+=String.fromCodePoint(N),this.state=45===N?10:8}sDTDCommentEnded(){const N=this.getCodeNorm();this.text+=String.fromCodePoint(N),62===N?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const N=this.getCodeNorm();this.text+=String.fromCodePoint(N),62===N&&(this.state=4)}sText(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:N}=this;const{chunk:G}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=G.slice(N,this.prevI)+"\n",N=this.i;break;case 59:{const{entityReturnState:W}=this,z=this.entity+G.slice(N,this.prevI);let X;this.state=W,""===z?(this.fail("empty entity name."),X="&;"):(X=this.parseEntity(z),this.entity=""),13===W&&void 0===this.textHandler||(this.text+=X);break e}case-1:this.entity+=G.slice(N);break e}}sOpenWaka(){const N=this.getCode();if(b(N))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(N){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var N;const G=this.getCodeNorm();45===G?(this.state=19,null===(N=this.commentHandler)||void 0===N||N.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(G),this.state=17)}sCommentEnded(){const N=this.getCodeNorm();62!==N?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(N),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const N=this.getCodeNorm();93===N?this.state=22:(this.text+="]"+String.fromCodePoint(N),this.state=20)}sCDataEnding2(){var N;const G=this.getCodeNorm();switch(G){case 62:null===(N=this.cdataHandler)||void 0===N||N.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(G),this.state=20}}sPIFirstChar(){const N=this.getCodeNorm();this.nameStartCheck(N)?(this.piTarget+=String.fromCodePoint(N),this.state=24):63===N||h(N)?(this.fail("processing instruction without a target."),this.state=63===N?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(N),this.state=24)}sPIRest(){const{chunk:N,i:G}=this;for(;;){const W=this.getCodeNorm();if(-1===W)return void(this.piTarget+=N.slice(G));if(!this.nameCheck(W)){this.piTarget+=N.slice(G,this.prevI);const z=63===W;z||h(W)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=z?33:27):this.state=z?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(W));break}}}sPIBody(){if(0===this.text.length){const N=this.getCodeNorm();63===N?this.state=26:h(N)||(this.text=String.fromCodePoint(N))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var N;const G=this.getCodeNorm();if(62===G){const{piTarget:W}=this;"xml"===W.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null===(N=this.piHandler)||void 0===N||N.call(this,{target:W,body:this.text}),this.piTarget=this.text="",this.state=13}else 63===G?this.text+="?":(this.text+="?"+String.fromCodePoint(G),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const N=this.skipSpaces();63!==N?-1!==N&&(this.state=28,this.name=String.fromCodePoint(N)):this.state=33}sXMLDeclName(){const N=this.captureTo(ne);if(63===N)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(h(N)||61===N){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=61===N?30:29}}sXMLDeclEq(){const N=this.getCodeNorm();if(63===N)return this.state=33,void this.fail("XML declaration is incomplete.");h(N)||(61!==N&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const N=this.getCodeNorm();if(63===N)return this.state=33,void this.fail("XML declaration is incomplete.");h(N)||(se(N)?this.q=N:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const N=this.captureTo([this.q,63]);if(63===N)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(-1===N)return;const G=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const W=G;this.xmlDecl.version=W,/^1\.[0-9]+$/.test(W)?this.opt.forceXMLVersion||this.setXMLVersion(W):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(G)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=G;break;case"standalone":"yes"!==G&&"no"!==G&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=G}this.name="",this.state=32}sXMLDeclSeparator(){const N=this.getCodeNorm();63!==N?(h(N)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var N;62===this.getCodeNorm()?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null===(N=this.xmldeclHandler)||void 0===N||N.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var N;const G=this.captureNameChars();if(-1===G)return;const W=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=W.ns=Object.create(null)),null===(N=this.openTagStartHandler)||void 0===N||N.call(this,W),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),G){case 62:this.openTag();break;case 47:this.state=35;break;default:h(G)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){62===this.getCode()?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const N=this.skipSpaces();-1!==N&&(b(N)?(this.unget(),this.state=37):62===N?this.openTag():47===N?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const N=this.captureNameChars();61===N?this.state=39:h(N)?this.state=38:62===N?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):-1!==N&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const N=this.skipSpaces();switch(N){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",62===N?this.openTag():b(N)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const N=this.getCodeNorm();se(N)?(this.q=N,this.state=40):h(N)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:N,chunk:G}=this;let{i:W}=this;for(;;)switch(this.getCode()){case N:return this.pushAttrib(this.name,this.text+G.slice(W,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=G.slice(W,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=G.slice(W,this.prevI)+" ",W=this.i;break;case 60:return this.text+=G.slice(W,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=G.slice(W))}}sAttribValueClosed(){const N=this.getCodeNorm();h(N)?this.state=36:62===N?this.openTag():47===N?this.state=35:b(N)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const N=this.captureTo(_e);switch(N){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",62===N?this.openTag():this.state=36}}sCloseTag(){const N=this.captureNameChars();62===N?this.closeTag():h(N)?this.state=44:-1!==N&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:N,forbiddenState:G}=this;const{chunk:W,textHandler:z}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,void 0!==z){const{text:X}=this,q=W.slice(N,this.prevI);0!==X.length?(z(X+q),this.text=""):0!==q.length&&z(q)}G=0;break e;case 38:this.state=14,this.entityReturnState=13,void 0!==z&&(this.text+=W.slice(N,this.prevI)),G=0;break e;case 93:switch(G){case 0:G=1;break;case 1:G=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:2===G&&this.fail('the string "]]>" is disallowed in char data.'),G=0;break;case-2:void 0!==z&&(this.text+=W.slice(N,this.prevI)+"\n"),N=this.i,G=0;break;case-1:void 0!==z&&(this.text+=W.slice(N));break e;default:G=0}this.forbiddenState=G}handleTextOutsideRoot(){let{i:N}=this;const{chunk:G,textHandler:W}=this;let z=!1;e:for(;;){const X=this.getCode();switch(X){case 60:if(this.state=15,void 0!==W){const{text:q}=this,ye=G.slice(N,this.prevI);0!==q.length?(W(q+ye),this.text=""):0!==ye.length&&W(ye)}break e;case 38:this.state=14,this.entityReturnState=13,void 0!==W&&(this.text+=G.slice(N,this.prevI)),z=!0;break e;case-2:void 0!==W&&(this.text+=G.slice(N,this.prevI)+"\n"),N=this.i;break;case-1:void 0!==W&&(this.text+=G.slice(N));break e;default:h(X)||(z=!0)}}z&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(N,G){var W;const{prefix:z,local:X}=this.qname(N),q={name:N,prefix:z,local:X,value:G};if(this.attribList.push(q),null===(W=this.attributeHandler)||void 0===W||W.call(this,q),"xmlns"===z){const ye=G.trim();"1.0"===this.currentXMLVersion&&""===ye&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[X]=ye,be(this,X,ye)}else if("xmlns"===N){const ye=G.trim();this.topNS[""]=ye,be(this,"",ye)}}pushAttribPlain(N,G){var W;const z={name:N,value:G};this.attribList.push(z),null===(W=this.attributeHandler)||void 0===W||W.call(this,z)}end(){var N,G;this.sawRoot||this.fail("document must contain a root element.");const{tags:W}=this;for(;W.length>0;){const X=W.pop();this.fail("unclosed tag: "+X.name)}0!==this.state&&13!==this.state&&this.fail("unexpected end.");const{text:z}=this;return 0!==z.length&&(null===(N=this.textHandler)||void 0===N||N.call(this,z),this.text=""),this._closed=!0,null===(G=this.endHandler)||void 0===G||G.call(this),this._init(),this}resolve(N){var G,W;let z=this.topNS[N];if(void 0!==z)return z;const{tags:X}=this;for(let q=X.length-1;q>=0;q--)if(z=X[q].ns[N],void 0!==z)return z;return z=this.ns[N],void 0!==z?z:null===(W=(G=this.opt).resolvePrefix)||void 0===W?void 0:W.call(G,N)}qname(N){const G=N.indexOf(":");if(-1===G)return{prefix:"",local:N};const W=N.slice(G+1),z=N.slice(0,G);return(""===z||""===W||W.includes(":"))&&this.fail(`malformed name: ${N}.`),{prefix:z,local:W}}processAttribsNS(){var N;const{attribList:G}=this,W=this.tag;{const{prefix:q,local:ye}=this.qname(W.name);W.prefix=q,W.local=ye;const xe=W.uri=null!==(N=this.resolve(q))&&void 0!==N?N:"";""!==q&&("xmlns"===q&&this.fail('tags may not have "xmlns" as prefix.'),""===xe&&(this.fail(`unbound namespace prefix: ${JSON.stringify(q)}.`),W.uri=q))}if(0===G.length)return;const{attributes:z}=W,X=new Set;for(const q of G){const{name:ye,prefix:xe,local:ge}=q;let Ee,he;""===xe?(Ee="xmlns"===ye?F:"",he=ye):(Ee=this.resolve(xe),void 0===Ee&&(this.fail(`unbound namespace prefix: ${JSON.stringify(xe)}.`),Ee=xe),he=`{${Ee}}${ge}`),X.has(he)&&this.fail(`duplicate attribute: ${he}.`),X.add(he),q.uri=Ee,z[ye]=q}this.attribList=[]}processAttribsPlain(){const{attribList:N}=this,G=this.tag.attributes;for(const{name:W,value:z}of N)void 0!==G[W]&&this.fail(`duplicate attribute: ${W}.`),G[W]=z;this.attribList=[]}openTag(){var N;this.processAttribs();const{tags:G}=this,W=this.tag;W.isSelfClosing=!1,null===(N=this.openTagHandler)||void 0===N||N.call(this,W),G.push(W),this.state=13,this.name=""}openSelfClosingTag(){var N,G,W;this.processAttribs();const{tags:z}=this,X=this.tag;X.isSelfClosing=!0,null===(N=this.openTagHandler)||void 0===N||N.call(this,X),null===(G=this.closeTagHandler)||void 0===G||G.call(this,X),null===(this.tag=null!==(W=z[z.length-1])&&void 0!==W?W:null)&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:N,name:G}=this;if(this.state=13,this.name="",""===G)return this.fail("weird empty close tag."),void(this.text+="</>");const W=this.closeTagHandler;let z=N.length;for(;z-- >0;){const X=this.tag=N.pop();if(this.topNS=X.ns,W?.(X),X.name===G)break;this.fail("unexpected close tag.")}0===z?this.closedRoot=!0:z<0&&(this.fail(`unmatched closing tag: ${G}.`),this.text+=`</${G}>`)}parseEntity(N){if("#"!==N[0]){const W=this.ENTITIES[N];return void 0!==W?W:(this.fail(this.isName(N)?"undefined entity.":"disallowed character in entity name."),`&${N};`)}let G=NaN;return"x"===N[1]&&/^#x[0-9a-f]+$/i.test(N)?G=parseInt(N.slice(2),16):/^#[0-9]+$/.test(N)&&(G=parseInt(N.slice(1),10)),this.isChar(G)?String.fromCodePoint(G):(this.fail("malformed character entity."),`&${N};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer;function _(v,h){this._block=m.alloc(v),this._finalSize=h,this._blockSize=v,this._len=0}_.prototype.update=function(v,h){"string"==typeof v&&(v=m.from(v,h=h||"utf8"));for(var s=this._block,b=this._blockSize,O=v.length,w=this._len,f=0;f<O;){for(var k=w%b,I=Math.min(O-f,b-k),x=0;x<I;x++)s[k+x]=v[f+x];f+=I,(w+=I)%b==0&&this._update(s)}return this._len+=O,this},_.prototype.digest=function(v){var h=this._len%this._blockSize;this._block[h]=128,this._block.fill(0,h+1),h>=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=8*this._len;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var b=(4294967295&s)>>>0;this._block.writeUInt32BE((s-b)/4294967296,this._blockSize-8),this._block.writeUInt32BE(b,this._blockSize-4)}this._update(this._block);var w=this._hash();return v?w.toString(v):w},_.prototype._update=function(){throw new Error("_update must be implemented by subclass")},E.exports=_},{"safe-buffer":494}],498:[function(o,E,R){"use strict";var m=E.exports=function(_){_=_.toLowerCase();var v=m[_];if(!v)throw new Error(_+" is not supported (we accept pull requests)");return new v};m.sha=o("./sha"),m.sha1=o("./sha1"),m.sha224=o("./sha224"),m.sha256=o("./sha256"),m.sha384=o("./sha384"),m.sha512=o("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(o,E,R){"use strict";var m=o("inherits"),_=o("./hash"),v=o("safe-buffer").Buffer,h=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function b(){this.init(),this._w=s,_.call(this,64,56)}function O(f){return f<<30|f>>>2}function w(f,k,I,x){return 0===f?k&I|~k&x:2===f?k&I|k&x|I&x:k^I^x}m(b,_),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},b.prototype._update=function(f){for(var k,I=this._w,x=0|this._a,g=0|this._b,C=0|this._c,F=0|this._d,Y=0|this._e,Q=0;Q<16;++Q)I[Q]=f.readInt32BE(4*Q);for(;Q<80;++Q)I[Q]=I[Q-3]^I[Q-8]^I[Q-14]^I[Q-16];for(var se=0;se<80;++se){var ie=~~(se/20),ee=0|((k=x)<<5|k>>>27)+w(ie,g,C,F)+Y+I[se]+h[ie];Y=F,F=C,C=O(g),g=x,x=ee}this._a=x+this._a|0,this._b=g+this._b|0,this._c=C+this._c|0,this._d=F+this._d|0,this._e=Y+this._e|0},b.prototype._hash=function(){var f=v.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},E.exports=b},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(o,E,R){"use strict";var m=o("inherits"),_=o("./hash"),v=o("safe-buffer").Buffer,h=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function b(){this.init(),this._w=s,_.call(this,64,56)}function O(k){return k<<5|k>>>27}function w(k){return k<<30|k>>>2}function f(k,I,x,g){return 0===k?I&x|~I&g:2===k?I&x|I&g|x&g:I^x^g}m(b,_),b.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},b.prototype._update=function(k){for(var I,x=this._w,g=0|this._a,C=0|this._b,F=0|this._c,Y=0|this._d,Q=0|this._e,se=0;se<16;++se)x[se]=k.readInt32BE(4*se);for(;se<80;++se)x[se]=(I=x[se-3]^x[se-8]^x[se-14]^x[se-16])<<1|I>>>31;for(var ie=0;ie<80;++ie){var ee=~~(ie/20),re=O(g)+f(ee,C,F,Y)+Q+x[ie]+h[ee]|0;Q=Y,Y=F,F=w(C),C=g,g=re}this._a=g+this._a|0,this._b=C+this._b|0,this._c=F+this._c|0,this._d=Y+this._d|0,this._e=Q+this._e|0},b.prototype._hash=function(){var k=v.allocUnsafe(20);return k.writeInt32BE(0|this._a,0),k.writeInt32BE(0|this._b,4),k.writeInt32BE(0|this._c,8),k.writeInt32BE(0|this._d,12),k.writeInt32BE(0|this._e,16),k},E.exports=b},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(o,E,R){"use strict";var m=o("inherits"),_=o("./sha256"),v=o("./hash"),h=o("safe-buffer").Buffer,s=new Array(64);function b(){this.init(),this._w=s,v.call(this,64,56)}m(b,_),b.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},b.prototype._hash=function(){var O=h.allocUnsafe(28);return O.writeInt32BE(this._a,0),O.writeInt32BE(this._b,4),O.writeInt32BE(this._c,8),O.writeInt32BE(this._d,12),O.writeInt32BE(this._e,16),O.writeInt32BE(this._f,20),O.writeInt32BE(this._g,24),O},E.exports=b},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(o,E,R){"use strict";var m=o("inherits"),_=o("./hash"),v=o("safe-buffer").Buffer,h=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function b(){this.init(),this._w=s,_.call(this,64,56)}function O(x,g,C){return C^x&(g^C)}function w(x,g,C){return x&g|C&(x|g)}function f(x){return(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10)}function k(x){return(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7)}function I(x){return(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3}m(b,_),b.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},b.prototype._update=function(x){for(var g,C=this._w,F=0|this._a,Y=0|this._b,Q=0|this._c,se=0|this._d,ie=0|this._e,ee=0|this._f,re=0|this._g,ne=0|this._h,_e=0;_e<16;++_e)C[_e]=x.readInt32BE(4*_e);for(;_e<64;++_e)C[_e]=0|(((g=C[_e-2])>>>17|g<<15)^(g>>>19|g<<13)^g>>>10)+C[_e-7]+I(C[_e-15])+C[_e-16];for(var be=0;be<64;++be){var oe=ne+k(ie)+O(ie,ee,re)+h[be]+C[be]|0,me=f(F)+w(F,Y,Q)|0;ne=re,re=ee,ee=ie,ie=se+oe|0,se=Q,Q=Y,Y=F,F=oe+me|0}this._a=F+this._a|0,this._b=Y+this._b|0,this._c=Q+this._c|0,this._d=se+this._d|0,this._e=ie+this._e|0,this._f=ee+this._f|0,this._g=re+this._g|0,this._h=ne+this._h|0},b.prototype._hash=function(){var x=v.allocUnsafe(32);return x.writeInt32BE(this._a,0),x.writeInt32BE(this._b,4),x.writeInt32BE(this._c,8),x.writeInt32BE(this._d,12),x.writeInt32BE(this._e,16),x.writeInt32BE(this._f,20),x.writeInt32BE(this._g,24),x.writeInt32BE(this._h,28),x},E.exports=b},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(o,E,R){"use strict";var m=o("inherits"),_=o("./sha512"),v=o("./hash"),h=o("safe-buffer").Buffer,s=new Array(160);function b(){this.init(),this._w=s,v.call(this,128,112)}m(b,_),b.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},b.prototype._hash=function(){var O=h.allocUnsafe(48);function w(f,k,I){O.writeInt32BE(f,I),O.writeInt32BE(k,I+4)}return w(this._ah,this._al,0),w(this._bh,this._bl,8),w(this._ch,this._cl,16),w(this._dh,this._dl,24),w(this._eh,this._el,32),w(this._fh,this._fl,40),O},E.exports=b},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(o,E,R){"use strict";var m=o("inherits"),_=o("./hash"),v=o("safe-buffer").Buffer,h=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function b(){this.init(),this._w=s,_.call(this,128,112)}function O(Y,Q,se){return se^Y&(Q^se)}function w(Y,Q,se){return Y&Q|se&(Y|Q)}function f(Y,Q){return(Y>>>28|Q<<4)^(Q>>>2|Y<<30)^(Q>>>7|Y<<25)}function k(Y,Q){return(Y>>>14|Q<<18)^(Y>>>18|Q<<14)^(Q>>>9|Y<<23)}function I(Y,Q){return(Y>>>1|Q<<31)^(Y>>>8|Q<<24)^Y>>>7}function x(Y,Q){return(Y>>>1|Q<<31)^(Y>>>8|Q<<24)^(Y>>>7|Q<<25)}function g(Y,Q){return(Y>>>19|Q<<13)^(Q>>>29|Y<<3)^Y>>>6}function C(Y,Q){return(Y>>>19|Q<<13)^(Q>>>29|Y<<3)^(Y>>>6|Q<<26)}function F(Y,Q){return Y>>>0<Q>>>0?1:0}m(b,_),b.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},b.prototype._update=function(Y){for(var Q=this._w,se=0|this._ah,ie=0|this._bh,ee=0|this._ch,re=0|this._dh,ne=0|this._eh,_e=0|this._fh,be=0|this._gh,oe=0|this._hh,me=0|this._al,we=0|this._bl,N=0|this._cl,G=0|this._dl,W=0|this._el,z=0|this._fl,X=0|this._gl,q=0|this._hl,ye=0;ye<32;ye+=2)Q[ye]=Y.readInt32BE(4*ye),Q[ye+1]=Y.readInt32BE(4*ye+4);for(;ye<160;ye+=2){var xe=Q[ye-30],ge=Q[ye-30+1],Ee=I(xe,ge),he=x(ge,xe),Ie=g(xe=Q[ye-4],ge=Q[ye-4+1]),ce=C(ge,xe),Be=Q[ye-32],We=Q[ye-32+1],tt=he+Q[ye-14+1]|0,vt=Ee+Q[ye-14]+F(tt,he)|0;vt=(vt=vt+Ie+F(tt=tt+ce|0,ce)|0)+Be+F(tt=tt+We|0,We)|0,Q[ye]=vt,Q[ye+1]=tt}for(var Xt=0;Xt<160;Xt+=2){vt=Q[Xt],tt=Q[Xt+1];var Nt=w(se,ie,ee),Qe=w(me,we,N),Et=f(se,me),Lt=f(me,se),wt=k(ne,W),Mt=k(W,ne),Ge=h[Xt],ot=h[Xt+1],Tt=O(ne,_e,be),jt=O(W,z,X),li=q+Mt|0,an=oe+wt+F(li,q)|0;an=(an=(an=an+Tt+F(li=li+jt|0,jt)|0)+Ge+F(li=li+ot|0,ot)|0)+vt+F(li=li+tt|0,tt)|0;var xi=Lt+Qe|0,Je=Et+Nt+F(xi,Lt)|0;oe=be,q=X,be=_e,X=z,_e=ne,z=W,ne=re+an+F(W=G+li|0,G)|0,re=ee,G=N,ee=ie,N=we,ie=se,we=me,se=an+Je+F(me=li+xi|0,li)|0}this._al=this._al+me|0,this._bl=this._bl+we|0,this._cl=this._cl+N|0,this._dl=this._dl+G|0,this._el=this._el+W|0,this._fl=this._fl+z|0,this._gl=this._gl+X|0,this._hl=this._hl+q|0,this._ah=this._ah+se+F(this._al,me)|0,this._bh=this._bh+ie+F(this._bl,we)|0,this._ch=this._ch+ee+F(this._cl,N)|0,this._dh=this._dh+re+F(this._dl,G)|0,this._eh=this._eh+ne+F(this._el,W)|0,this._fh=this._fh+_e+F(this._fl,z)|0,this._gh=this._gh+be+F(this._gl,X)|0,this._hh=this._hh+oe+F(this._hl,q)|0},b.prototype._hash=function(){var Y=v.allocUnsafe(64);function Q(se,ie,ee){Y.writeInt32BE(se,ee),Y.writeInt32BE(ie,ee+4)}return Q(this._ah,this._al,0),Q(this._bh,this._bl,8),Q(this._ch,this._cl,16),Q(this._dh,this._dl,24),Q(this._eh,this._el,32),Q(this._fh,this._fl,40),Q(this._gh,this._gl,48),Q(this._hh,this._hl,56),Y},E.exports=b},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(o,E,R){"use strict";E.exports=_;var m=o("events").EventEmitter;function _(){m.call(this)}o("inherits")(_,m),_.Readable=o("readable-stream/readable.js"),_.Writable=o("readable-stream/writable.js"),_.Duplex=o("readable-stream/duplex.js"),_.Transform=o("readable-stream/transform.js"),_.PassThrough=o("readable-stream/passthrough.js"),_.Stream=_,_.prototype.pipe=function(v,h){var s=this;function b(g){v.writable&&!1===v.write(g)&&s.pause&&s.pause()}function O(){s.readable&&s.resume&&s.resume()}s.on("data",b),v.on("drain",O),v._isStdio||h&&!1===h.end||(s.on("end",f),s.on("close",k));var w=!1;function f(){w||(w=!0,v.end())}function k(){w||(w=!0,"function"==typeof v.destroy&&v.destroy())}function I(g){if(x(),0===m.listenerCount(this,"error"))throw g}function x(){s.removeListener("data",b),v.removeListener("drain",O),s.removeListener("end",f),s.removeListener("close",k),s.removeListener("error",I),v.removeListener("error",I),s.removeListener("end",x),s.removeListener("close",x),v.removeListener("close",x)}return s.on("error",I),v.on("error",I),s.on("end",x),s.on("close",x),v.on("close",x),v.emit("pipe",s),v}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(o,E,R){"use strict";var m={}.toString;E.exports=Array.isArray||function(_){return"[object Array]"==m.call(_)}},{}],507:[function(o,E,R){"use strict";E.exports=o("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(o,E,R){"use strict";var m=o("process-nextick-args"),_=Object.keys||function(x){var g=[];for(var C in x)g.push(C);return g};E.exports=f;var v=Object.create(o("core-util-is"));v.inherits=o("inherits");var h=o("./_stream_readable"),s=o("./_stream_writable");v.inherits(f,h);for(var b=_(s.prototype),O=0;O<b.length;O++){var w=b[O];f.prototype[w]||(f.prototype[w]=s.prototype[w])}function f(x){if(!(this instanceof f))return new f(x);h.call(this,x),s.call(this,x),x&&!1===x.readable&&(this.readable=!1),x&&!1===x.writable&&(this.writable=!1),this.allowHalfOpen=!0,x&&!1===x.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",k)}function k(){this.allowHalfOpen||this._writableState.ended||m.nextTick(I,this)}function I(x){x.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(x){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=x,this._writableState.destroyed=x)}}),f.prototype._destroy=function(x,g){this.push(null),this.end(),m.nextTick(g,x)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(o,E,R){"use strict";E.exports=v;var m=o("./_stream_transform"),_=Object.create(o("core-util-is"));function v(h){if(!(this instanceof v))return new v(h);m.call(this,h)}_.inherits=o("inherits"),_.inherits(v,m),v.prototype._transform=function(h,s,b){b(null,h)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(o,E,R){(function(m,_){(function(){"use strict";var v=o("process-nextick-args");E.exports=se;var h,s=o("isarray");se.ReadableState=Q,o("events");var b=function(q,ye){return q.listeners(ye).length},O=o("./internal/streams/stream"),w=o("safe-buffer").Buffer,f=(void 0!==_?_:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},k=Object.create(o("core-util-is"));k.inherits=o("inherits");var I=o("util"),x=void 0;x=I&&I.debuglog?I.debuglog("stream"):function(){};var g,C=o("./internal/streams/BufferList"),F=o("./internal/streams/destroy");k.inherits(se,O);var Y=["error","close","destroy","pause","resume"];function Q(q,ye){q=q||{};var xe=ye instanceof(h=h||o("./_stream_duplex"));this.objectMode=!!q.objectMode,xe&&(this.objectMode=this.objectMode||!!q.readableObjectMode);var ge=q.highWaterMark,Ee=q.readableHighWaterMark;this.highWaterMark=ge||0===ge?ge:xe&&(Ee||0===Ee)?Ee:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new C,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,q.encoding&&(g||(g=o("string_decoder/").StringDecoder),this.decoder=new g(q.encoding),this.encoding=q.encoding)}function se(q){if(h=h||o("./_stream_duplex"),!(this instanceof se))return new se(q);this._readableState=new Q(q,this),this.readable=!0,q&&("function"==typeof q.read&&(this._read=q.read),"function"==typeof q.destroy&&(this._destroy=q.destroy)),O.call(this)}function ie(q,ye,xe,ge,Ee){var he,ce,de,pe,Be,Ie=q._readableState;return null===ye?(Ie.reading=!1,function(ce,de){if(!de.ended){if(de.decoder){var pe=de.decoder.end();pe&&pe.length&&(de.buffer.push(pe),de.length+=de.objectMode?1:pe.length)}de.ended=!0,ne(ce)}}(q,Ie)):(Ee||(ce=Ie,w.isBuffer(Be=de=ye)||Be instanceof f||"string"==typeof de||void 0===de||ce.objectMode||(pe=new TypeError("Invalid non-string/buffer chunk")),he=pe),he?q.emit("error",he):Ie.objectMode||ye&&ye.length>0?("string"==typeof ye||Ie.objectMode||Object.getPrototypeOf(ye)===w.prototype||(ye=function(ce){return w.from(ce)}(ye)),ge?Ie.endEmitted?q.emit("error",new Error("stream.unshift() after end event")):ee(q,Ie,ye,!0):Ie.ended?q.emit("error",new Error("stream.push() after EOF")):(Ie.reading=!1,Ie.decoder&&!xe?(ye=Ie.decoder.write(ye),Ie.objectMode||0!==ye.length?ee(q,Ie,ye,!1):be(q,Ie)):ee(q,Ie,ye,!1))):ge||(Ie.reading=!1)),function(ce){return!ce.ended&&(ce.needReadable||ce.length<ce.highWaterMark||0===ce.length)}(Ie)}function ee(q,ye,xe,ge){ye.flowing&&0===ye.length&&!ye.sync?(q.emit("data",xe),q.read(0)):(ye.length+=ye.objectMode?1:xe.length,ge?ye.buffer.unshift(xe):ye.buffer.push(xe),ye.needReadable&&ne(q)),be(q,ye)}function re(q,ye){return q<=0||0===ye.length&&ye.ended?0:ye.objectMode?1:q!=q?ye.flowing&&ye.length?ye.buffer.head.data.length:ye.length:(q>ye.highWaterMark&&(ye.highWaterMark=((xe=q)>=8388608?xe=8388608:(xe--,xe|=xe>>>1,xe|=xe>>>2,xe|=xe>>>4,xe|=xe>>>8,xe|=xe>>>16,xe++),xe)),q<=ye.length?q:ye.ended?ye.length:(ye.needReadable=!0,0));var xe}function ne(q){var ye=q._readableState;ye.needReadable=!1,ye.emittedReadable||(x("emitReadable",ye.flowing),ye.emittedReadable=!0,ye.sync?v.nextTick(_e,q):_e(q))}function _e(q){x("emit readable"),q.emit("readable"),N(q)}function be(q,ye){ye.readingMore||(ye.readingMore=!0,v.nextTick(oe,q,ye))}function oe(q,ye){for(var xe=ye.length;!ye.reading&&!ye.flowing&&!ye.ended&&ye.length<ye.highWaterMark&&(x("maybeReadMore read 0"),q.read(0),xe!==ye.length);)xe=ye.length;ye.readingMore=!1}function me(q){x("readable nexttick read 0"),q.read(0)}function we(q,ye){ye.reading||(x("resume read 0"),q.read(0)),ye.resumeScheduled=!1,ye.awaitDrain=0,q.emit("resume"),N(q),ye.flowing&&!ye.reading&&q.read(0)}function N(q){var ye=q._readableState;for(x("flow",ye.flowing);ye.flowing&&null!==q.read(););}function G(q,ye){return 0===ye.length?null:(ye.objectMode?xe=ye.buffer.shift():!q||q>=ye.length?(xe=ye.decoder?ye.buffer.join(""):1===ye.buffer.length?ye.buffer.head.data:ye.buffer.concat(ye.length),ye.buffer.clear()):(he=ye.decoder,(ge=q)<(Ee=ye.buffer).head.data.length?(Ie=Ee.head.data.slice(0,ge),Ee.head.data=Ee.head.data.slice(ge)):Ie=ge===Ee.head.data.length?Ee.shift():he?function(ce,de){var pe=de.head,Be=1,We=pe.data;for(ce-=We.length;pe=pe.next;){var tt=pe.data,vt=ce>tt.length?tt.length:ce;if(We+=vt===tt.length?tt:tt.slice(0,ce),0==(ce-=vt)){vt===tt.length?(++Be,de.head=pe.next?pe.next:de.tail=null):(de.head=pe,pe.data=tt.slice(vt));break}++Be}return de.length-=Be,We}(ge,Ee):function(ce,de){var pe=w.allocUnsafe(ce),Be=de.head,We=1;for(Be.data.copy(pe),ce-=Be.data.length;Be=Be.next;){var tt=Be.data,vt=ce>tt.length?tt.length:ce;if(tt.copy(pe,pe.length-ce,0,vt),0==(ce-=vt)){vt===tt.length?(++We,de.head=Be.next?Be.next:de.tail=null):(de.head=Be,Be.data=tt.slice(vt));break}++We}return de.length-=We,pe}(ge,Ee),xe=Ie),xe);var ge,Ee,he,Ie,xe}function W(q){var ye=q._readableState;if(ye.length>0)throw new Error('"endReadable()" called on non-empty stream');ye.endEmitted||(ye.ended=!0,v.nextTick(z,ye,q))}function z(q,ye){q.endEmitted||0!==q.length||(q.endEmitted=!0,ye.readable=!1,ye.emit("end"))}function X(q,ye){for(var xe=0,ge=q.length;xe<ge;xe++)if(q[xe]===ye)return xe;return-1}Object.defineProperty(se.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(q){this._readableState&&(this._readableState.destroyed=q)}}),se.prototype.destroy=F.destroy,se.prototype._undestroy=F.undestroy,se.prototype._destroy=function(q,ye){this.push(null),ye(q)},se.prototype.push=function(q,ye){var xe,ge=this._readableState;return ge.objectMode?xe=!0:"string"==typeof q&&((ye=ye||ge.defaultEncoding)!==ge.encoding&&(q=w.from(q,ye),ye=""),xe=!0),ie(this,q,ye,!1,xe)},se.prototype.unshift=function(q){return ie(this,q,null,!0,!1)},se.prototype.isPaused=function(){return!1===this._readableState.flowing},se.prototype.setEncoding=function(q){return g||(g=o("string_decoder/").StringDecoder),this._readableState.decoder=new g(q),this._readableState.encoding=q,this},se.prototype.read=function(q){x("read",q),q=parseInt(q,10);var ye=this._readableState,xe=q;if(0!==q&&(ye.emittedReadable=!1),0===q&&ye.needReadable&&(ye.length>=ye.highWaterMark||ye.ended))return x("read: emitReadable",ye.length,ye.ended),0===ye.length&&ye.ended?W(this):ne(this),null;if(0===(q=re(q,ye))&&ye.ended)return 0===ye.length&&W(this),null;var ge,Ee=ye.needReadable;return x("need readable",Ee),(0===ye.length||ye.length-q<ye.highWaterMark)&&x("length less than watermark",Ee=!0),ye.ended||ye.reading?x("reading or ended",Ee=!1):Ee&&(x("do read"),ye.reading=!0,ye.sync=!0,0===ye.length&&(ye.needReadable=!0),this._read(ye.highWaterMark),ye.sync=!1,ye.reading||(q=re(xe,ye))),null===(ge=q>0?G(q,ye):null)?(ye.needReadable=!0,q=0):ye.length-=q,0===ye.length&&(ye.ended||(ye.needReadable=!0),xe!==q&&ye.ended&&W(this)),null!==ge&&this.emit("data",ge),ge},se.prototype._read=function(q){this.emit("error",new Error("_read() is not implemented"))},se.prototype.pipe=function(q,ye){var xe=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=q;break;case 1:ge.pipes=[ge.pipes,q];break;default:ge.pipes.push(q)}ge.pipesCount+=1,x("pipe count=%d opts=%j",ge.pipesCount,ye);var Ee=ye&&!1===ye.end||q===m.stdout||q===m.stderr?Xt:Ie;function Ie(){x("onend"),q.end()}ge.endEmitted?v.nextTick(Ee):xe.once("end",Ee),q.on("unpipe",function he(Nt,Qe){x("onunpipe"),Nt===xe&&Qe&&!1===Qe.hasUnpiped&&(Qe.hasUnpiped=!0,x("cleanup"),q.removeListener("close",tt),q.removeListener("finish",vt),q.removeListener("drain",ce),q.removeListener("error",We),q.removeListener("unpipe",he),xe.removeListener("end",Ie),xe.removeListener("end",Xt),xe.removeListener("data",Be),de=!0,!ge.awaitDrain||q._writableState&&!q._writableState.needDrain||ce())});var ce=function(Nt){return function(){var Qe=Nt._readableState;x("pipeOnDrain",Qe.awaitDrain),Qe.awaitDrain&&Qe.awaitDrain--,0===Qe.awaitDrain&&b(Nt,"data")&&(Qe.flowing=!0,N(Nt))}}(xe);q.on("drain",ce);var de=!1,pe=!1;function Be(Nt){x("ondata"),pe=!1,!1!==q.write(Nt)||pe||((1===ge.pipesCount&&ge.pipes===q||ge.pipesCount>1&&-1!==X(ge.pipes,q))&&!de&&(x("false write response, pause",ge.awaitDrain),ge.awaitDrain++,pe=!0),xe.pause())}function We(Nt){x("onerror",Nt),Xt(),q.removeListener("error",We),0===b(q,"error")&&q.emit("error",Nt)}function tt(){q.removeListener("finish",vt),Xt()}function vt(){x("onfinish"),q.removeListener("close",tt),Xt()}function Xt(){x("unpipe"),xe.unpipe(q)}return xe.on("data",Be),function(Nt,Qe,Et){if("function"==typeof Nt.prependListener)return Nt.prependListener(Qe,Et);Nt._events&&Nt._events[Qe]?s(Nt._events[Qe])?Nt._events[Qe].unshift(Et):Nt._events[Qe]=[Et,Nt._events[Qe]]:Nt.on(Qe,Et)}(q,"error",We),q.once("close",tt),q.once("finish",vt),q.emit("pipe",xe),ge.flowing||(x("pipe resume"),xe.resume()),q},se.prototype.unpipe=function(q){var ye=this._readableState,xe={hasUnpiped:!1};if(0===ye.pipesCount)return this;if(1===ye.pipesCount)return q&&q!==ye.pipes||(q||(q=ye.pipes),ye.pipes=null,ye.pipesCount=0,ye.flowing=!1,q&&q.emit("unpipe",this,xe)),this;if(!q){var ge=ye.pipes,Ee=ye.pipesCount;ye.pipes=null,ye.pipesCount=0,ye.flowing=!1;for(var he=0;he<Ee;he++)ge[he].emit("unpipe",this,{hasUnpiped:!1});return this}var Ie=X(ye.pipes,q);return-1===Ie||(ye.pipes.splice(Ie,1),ye.pipesCount-=1,1===ye.pipesCount&&(ye.pipes=ye.pipes[0]),q.emit("unpipe",this,xe)),this},se.prototype.addListener=se.prototype.on=function(q,ye){var xe=O.prototype.on.call(this,q,ye);if("data"===q)!1!==this._readableState.flowing&&this.resume();else if("readable"===q){var ge=this._readableState;ge.endEmitted||ge.readableListening||(ge.readableListening=ge.needReadable=!0,ge.emittedReadable=!1,ge.reading?ge.length&&ne(this):v.nextTick(me,this))}return xe},se.prototype.resume=function(){var xe,q=this._readableState;return q.flowing||(x("resume"),q.flowing=!0,this,(xe=q).resumeScheduled||(xe.resumeScheduled=!0,v.nextTick(we,this,xe))),this},se.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this},se.prototype.wrap=function(q){var ye=this,xe=this._readableState,ge=!1;for(var Ee in q.on("end",function(){if(x("wrapped end"),xe.decoder&&!xe.ended){var Ie=xe.decoder.end();Ie&&Ie.length&&ye.push(Ie)}ye.push(null)}),q.on("data",function(Ie){x("wrapped data"),xe.decoder&&(Ie=xe.decoder.write(Ie)),xe.objectMode&&null==Ie||(xe.objectMode||Ie&&Ie.length)&&(ye.push(Ie)||(ge=!0,q.pause()))}),q)void 0===this[Ee]&&"function"==typeof q[Ee]&&(this[Ee]=function(Ie){return function(){return q[Ie].apply(q,arguments)}}(Ee));for(var he=0;he<Y.length;he++)q.on(Y[he],this.emit.bind(this,Y[he]));return this._read=function(Ie){x("wrapped _read",Ie),ge&&(ge=!1,q.resume())},this},Object.defineProperty(se.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),se._fromList=G}).call(this)}).call(this,o("_process"),typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(o,E,R){"use strict";E.exports=h;var m=o("./_stream_duplex"),_=Object.create(o("core-util-is"));function v(O,w){var f=this._transformState;f.transforming=!1;var k=f.writecb;if(!k)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,null!=w&&this.push(w),k(O);var I=this._readableState;I.reading=!1,(I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}function h(O){if(!(this instanceof h))return new h(O);m.call(this,O),this._transformState={afterTransform:v.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,O&&("function"==typeof O.transform&&(this._transform=O.transform),"function"==typeof O.flush&&(this._flush=O.flush)),this.on("prefinish",s)}function s(){var O=this;"function"==typeof this._flush?this._flush(function(w,f){b(O,w,f)}):b(this,null,null)}function b(O,w,f){if(w)return O.emit("error",w);if(null!=f&&O.push(f),O._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(O._transformState.transforming)throw new Error("Calling transform done when still transforming");return O.push(null)}_.inherits=o("inherits"),_.inherits(h,m),h.prototype.push=function(O,w){return this._transformState.needTransform=!1,m.prototype.push.call(this,O,w)},h.prototype._transform=function(O,w,f){throw new Error("_transform() is not implemented")},h.prototype._write=function(O,w,f){var k=this._transformState;if(k.writecb=f,k.writechunk=O,k.writeencoding=w,!k.transforming){var I=this._readableState;(k.needTransform||I.needReadable||I.length<I.highWaterMark)&&this._read(I.highWaterMark)}},h.prototype._read=function(O){var w=this._transformState;null!==w.writechunk&&w.writecb&&!w.transforming?(w.transforming=!0,this._transform(w.writechunk,w.writeencoding,w.afterTransform)):w.needTransform=!0},h.prototype._destroy=function(O,w){var f=this;m.prototype._destroy.call(this,O,function(k){w(k),f.emit("close")})}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(o,E,R){(function(m,_,v){(function(){"use strict";var h=o("process-nextick-args");function s(be){var oe=this;this.next=null,this.entry=null,this.finish=function(){!function(me,we,N){var G=me.entry;for(me.entry=null;G;){var W=G.callback;we.pendingcb--,W(undefined),G=G.next}we.corkedRequestsFree.next=me}(oe,be)}}E.exports=Q;var b,O=!m.browser&&["v0.10","v0.9."].indexOf(m.version.slice(0,5))>-1?v:h.nextTick;Q.WritableState=Y;var w=Object.create(o("core-util-is"));w.inherits=o("inherits");var g,f={deprecate:o("util-deprecate")},k=o("./internal/streams/stream"),I=o("safe-buffer").Buffer,x=(void 0!==_?_:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},C=o("./internal/streams/destroy");function F(){}function Y(be,oe){b=b||o("./_stream_duplex");var me=oe instanceof b;this.objectMode=!!(be=be||{}).objectMode,me&&(this.objectMode=this.objectMode||!!be.writableObjectMode);var we=be.highWaterMark,N=be.writableHighWaterMark;this.highWaterMark=we||0===we?we:me&&(N||0===N)?N:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===be.decodeStrings),this.defaultEncoding=be.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(z){!function(X,q){var he,ye=X._writableState,xe=ye.sync,ge=ye.writecb;if((he=ye).writing=!1,he.writecb=null,he.length-=he.writelen,he.writelen=0,q)!function(he,Ie,ce,de,pe){--Ie.pendingcb,ce?(h.nextTick(pe,de),h.nextTick(_e,he,Ie),he._writableState.errorEmitted=!0,he.emit("error",de)):(pe(de),he._writableState.errorEmitted=!0,he.emit("error",de),_e(he,Ie))}(X,ye,xe,q,ge);else{var Ee=re(ye);Ee||ye.corked||ye.bufferProcessing||!ye.bufferedRequest||ee(X,ye),xe?O(ie,X,ye,Ee,ge):ie(X,ye,Ee,ge)}}(oe,z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function Q(be){if(b=b||o("./_stream_duplex"),!(g.call(Q,this)||this instanceof b))return new Q(be);this._writableState=new Y(be,this),this.writable=!0,be&&("function"==typeof be.write&&(this._write=be.write),"function"==typeof be.writev&&(this._writev=be.writev),"function"==typeof be.destroy&&(this._destroy=be.destroy),"function"==typeof be.final&&(this._final=be.final)),k.call(this)}function se(be,oe,me,we,N,G,W){oe.writelen=we,oe.writecb=W,oe.writing=!0,oe.sync=!0,me?be._writev(N,oe.onwrite):be._write(N,G,oe.onwrite),oe.sync=!1}function ie(be,oe,me,we){var N,G;me||(N=be,0===(G=oe).length&&G.needDrain&&(G.needDrain=!1,N.emit("drain"))),oe.pendingcb--,we(),_e(be,oe)}function ee(be,oe){oe.bufferProcessing=!0;var me=oe.bufferedRequest;if(be._writev&&me&&me.next){var N=new Array(oe.bufferedRequestCount),G=oe.corkedRequestsFree;G.entry=me;for(var W=0,z=!0;me;)N[W]=me,me.isBuf||(z=!1),me=me.next,W+=1;N.allBuffers=z,se(be,oe,!0,oe.length,N,"",G.finish),oe.pendingcb++,oe.lastBufferedRequest=null,G.next?(oe.corkedRequestsFree=G.next,G.next=null):oe.corkedRequestsFree=new s(oe),oe.bufferedRequestCount=0}else{for(;me;){var X=me.chunk;if(se(be,oe,!1,oe.objectMode?1:X.length,X,me.encoding,me.callback),me=me.next,oe.bufferedRequestCount--,oe.writing)break}null===me&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=me,oe.bufferProcessing=!1}function re(be){return be.ending&&0===be.length&&null===be.bufferedRequest&&!be.finished&&!be.writing}function ne(be,oe){be._final(function(me){oe.pendingcb--,me&&be.emit("error",me),oe.prefinished=!0,be.emit("prefinish"),_e(be,oe)})}function _e(be,oe){var we,N,me=re(oe);return me&&(we=be,(N=oe).prefinished||N.finalCalled||("function"==typeof we._final?(N.pendingcb++,N.finalCalled=!0,h.nextTick(ne,we,N)):(N.prefinished=!0,we.emit("prefinish"))),0===oe.pendingcb&&(oe.finished=!0,be.emit("finish"))),me}w.inherits(Q,k),Y.prototype.getBuffer=function(){for(var be=this.bufferedRequest,oe=[];be;)oe.push(be),be=be.next;return oe},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(g=Function.prototype[Symbol.hasInstance],Object.defineProperty(Q,Symbol.hasInstance,{value:function(be){return!!g.call(this,be)||this===Q&&be&&be._writableState instanceof Y}})):g=function(be){return be instanceof this},Q.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Q.prototype.write=function(be,oe,me){var we,z,X,q,N=this._writableState,G=!1,W=!N.objectMode&&(I.isBuffer(we=be)||we instanceof x);return W&&!I.isBuffer(be)&&(be=I.from(be)),"function"==typeof oe&&(me=oe,oe=null),W?oe="buffer":oe||(oe=N.defaultEncoding),"function"!=typeof me&&(me=F),N.ended?(z=this,X=me,q=new Error("write after end"),z.emit("error",q),h.nextTick(X,q)):(W||function(z,X,q,ye){var xe=!0,ge=!1;return null===q?ge=new TypeError("May not write null values to stream"):"string"==typeof q||void 0===q||X.objectMode||(ge=new TypeError("Invalid non-string/buffer chunk")),ge&&(z.emit("error",ge),h.nextTick(ye,ge),xe=!1),xe}(this,N,be,me))&&(N.pendingcb++,G=function(z,X,q,ye,xe,ge){if(!q){var Ee=(pe=ye,(de=X).objectMode||!1===de.decodeStrings||"string"!=typeof pe||(pe=I.from(pe,xe)),pe);ye!==Ee&&(q=!0,xe="buffer",ye=Ee)}var de,pe,he=X.objectMode?1:ye.length;X.length+=he;var Ie=X.length<X.highWaterMark;if(Ie||(X.needDrain=!0),X.writing||X.corked){var ce=X.lastBufferedRequest;X.lastBufferedRequest={chunk:ye,encoding:xe,isBuf:q,callback:ge,next:null},ce?ce.next=X.lastBufferedRequest:X.bufferedRequest=X.lastBufferedRequest,X.bufferedRequestCount+=1}else se(z,X,!1,he,ye,xe,ge);return Ie}(this,N,W,be,oe,me)),G},Q.prototype.cork=function(){this._writableState.corked++},Q.prototype.uncork=function(){var be=this._writableState;be.corked&&(be.corked--,be.writing||be.corked||be.bufferProcessing||!be.bufferedRequest||ee(this,be))},Q.prototype.setDefaultEncoding=function(be){if("string"==typeof be&&(be=be.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((be+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+be);return this._writableState.defaultEncoding=be,this},Object.defineProperty(Q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Q.prototype._write=function(be,oe,me){me(new Error("_write() is not implemented"))},Q.prototype._writev=null,Q.prototype.end=function(be,oe,me){var N,G,W,we=this._writableState;"function"==typeof be?(me=be,be=null,oe=null):"function"==typeof oe&&(me=oe,oe=null),null!=be&&this.write(be,oe),we.corked&&(we.corked=1,this.uncork()),we.ending||(N=this,W=me,(G=we).ending=!0,_e(N,G),W&&(G.finished?h.nextTick(W):N.once("finish",W)),G.ended=!0,N.writable=!1)},Object.defineProperty(Q.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(be){this._writableState&&(this._writableState.destroyed=be)}}),Q.prototype.destroy=C.destroy,Q.prototype._undestroy=C.undestroy,Q.prototype._destroy=function(be,oe){this.end(),oe(be)}}).call(this)}).call(this,o("_process"),typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},o("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(o,E,R){"use strict";var m=o("safe-buffer").Buffer,_=o("util");E.exports=function(){function v(){(function(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")})(this,v),this.head=null,this.tail=null,this.length=0}return v.prototype.push=function(h){var s={data:h,next:null};this.length>0?this.tail.next=s:this.head=s,this.tail=s,++this.length},v.prototype.unshift=function(h){var s={data:h,next:this.head};0===this.length&&(this.tail=s),this.head=s,++this.length},v.prototype.shift=function(){if(0!==this.length){var h=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,h}},v.prototype.clear=function(){this.head=this.tail=null,this.length=0},v.prototype.join=function(h){if(0===this.length)return"";for(var s=this.head,b=""+s.data;s=s.next;)b+=h+s.data;return b},v.prototype.concat=function(h){if(0===this.length)return m.alloc(0);for(var w=m.allocUnsafe(h>>>0),f=this.head,k=0;f;)f.data.copy(w,k),k+=f.data.length,f=f.next;return w},v}(),_&&_.inspect&&_.inspect.custom&&(E.exports.prototype[_.inspect.custom]=function(){var v=_.inspect({length:this.length});return this.constructor.name+" "+v})},{"safe-buffer":520,util:188}],514:[function(o,E,R){"use strict";var m=o("process-nextick-args");function _(v,h){v.emit("error",h)}E.exports={destroy:function(v,h){var s=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(h?h(v):v&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,m.nextTick(_,this,v)):m.nextTick(_,this,v)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(v||null,function(w){!h&&w?s._writableState?s._writableState.errorEmitted||(s._writableState.errorEmitted=!0,m.nextTick(_,s,w)):m.nextTick(_,s,w):h&&h(w)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(o,E,R){arguments[4][490][0].apply(R,arguments)},{dup:490,events:422}],516:[function(o,E,R){"use strict";E.exports=o("./readable").PassThrough},{"./readable":517}],517:[function(o,E,R){"use strict";(R=E.exports=o("./lib/_stream_readable.js")).Stream=R,R.Readable=R,R.Writable=o("./lib/_stream_writable.js"),R.Duplex=o("./lib/_stream_duplex.js"),R.Transform=o("./lib/_stream_transform.js"),R.PassThrough=o("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(o,E,R){"use strict";E.exports=o("./readable").Transform},{"./readable":517}],519:[function(o,E,R){"use strict";E.exports=o("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(o,E,R){arguments[4][217][0].apply(R,arguments)},{buffer:220,dup:217}],521:[function(o,E,R){arguments[4][218][0].apply(R,arguments)},{dup:218,"safe-buffer":520}],522:[function(o,E,R){arguments[4][218][0].apply(R,arguments)},{dup:218,"safe-buffer":494}],523:[function(o,E,R){(function(m,_){(function(){"use strict";var v=o("process/browser.js").nextTick,h=Function.prototype.apply,s=Array.prototype.slice,b={},O=0;function w(f,k){this._id=f,this._clearFn=k}R.setTimeout=function(){return new w(h.call(setTimeout,window,arguments),clearTimeout)},R.setInterval=function(){return new w(h.call(setInterval,window,arguments),clearInterval)},R.clearTimeout=R.clearInterval=function(f){f.close()},w.prototype.unref=w.prototype.ref=function(){},w.prototype.close=function(){this._clearFn.call(window,this._id)},R.enroll=function(f,k){clearTimeout(f._idleTimeoutId),f._idleTimeout=k},R.unenroll=function(f){clearTimeout(f._idleTimeoutId),f._idleTimeout=-1},R._unrefActive=R.active=function(f){clearTimeout(f._idleTimeoutId);var k=f._idleTimeout;k>=0&&(f._idleTimeoutId=setTimeout(function(){f._onTimeout&&f._onTimeout()},k))},R.setImmediate="function"==typeof m?m:function(f){var k=O++,I=!(arguments.length<2)&&s.call(arguments,1);return b[k]=!0,v(function(){b[k]&&(I?f.apply(null,I):f.call(null),R.clearImmediate(k))}),k},R.clearImmediate="function"==typeof _?_:function(f){delete b[f]}}).call(this)}).call(this,o("timers").setImmediate,o("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(o,E,R){(function(m){(function(){"use strict";function _(v){try{if(!m.localStorage)return!1}catch{return!1}var h=m.localStorage[v];return null!=h&&"true"===String(h).toLowerCase()}E.exports=function(v,h){if(_("noDeprecation"))return v;var s=!1;return function(){if(!s){if(_("throwDeprecation"))throw new Error(h);_("traceDeprecation")?console.trace(h):console.warn(h),s=!0}return v.apply(this,arguments)}}}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],525:[function(o,E,R){"use strict";E.exports="function"==typeof Object.create?function(m,_){m.super_=_,m.prototype=Object.create(_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})}:function(m,_){m.super_=_;var v=function(){};v.prototype=_.prototype,m.prototype=new v,m.prototype.constructor=m}},{}],526:[function(o,E,R){"use strict";E.exports=function(m){return m&&"object"==typeof m&&"function"==typeof m.copy&&"function"==typeof m.fill&&"function"==typeof m.readUInt8}},{}],527:[function(o,E,R){(function(m,_){(function(){"use strict";var v=/%[sdj%]/g;R.format=function(N){if(!Y(N)){for(var G=[],W=0;W<arguments.length;W++)G.push(b(arguments[W]));return G.join(" ")}W=1;for(var z=arguments,X=z.length,q=String(N).replace(v,function(xe){if("%%"===xe)return"%";if(W>=X)return xe;switch(xe){case"%s":return String(z[W++]);case"%d":return Number(z[W++]);case"%j":try{return JSON.stringify(z[W++])}catch{return"[Circular]"}default:return xe}}),ye=z[W];W<X;ye=z[++W])C(ye)||!ie(ye)?q+=" "+ye:q+=" "+b(ye);return q},R.deprecate=function(N,G){if(Q(_.process))return function(){return R.deprecate(N,G).apply(this,arguments)};if(!0===m.noDeprecation)return N;var W=!1;return function(){if(!W){if(m.throwDeprecation)throw new Error(G);m.traceDeprecation?console.trace(G):console.error(G),W=!0}return N.apply(this,arguments)}};var h,s={};function b(N,G){var W={seen:[],stylize:w};return arguments.length>=3&&(W.depth=arguments[2]),arguments.length>=4&&(W.colors=arguments[3]),g(G)?W.showHidden=G:G&&R._extend(W,G),Q(W.showHidden)&&(W.showHidden=!1),Q(W.depth)&&(W.depth=2),Q(W.colors)&&(W.colors=!1),Q(W.customInspect)&&(W.customInspect=!0),W.colors&&(W.stylize=O),f(W,N,W.depth)}function O(N,G){var W=b.styles[G];return W?"\x1b["+b.colors[W][0]+"m"+N+"\x1b["+b.colors[W][1]+"m":N}function w(N,G){return N}function f(N,G,W){if(N.customInspect&&G&&ne(G.inspect)&&G.inspect!==R.inspect&&(!G.constructor||G.constructor.prototype!==G)){var z=G.inspect(W,N);return Y(z)||(z=f(N,z,W)),z}var X=function(ce,de){if(Q(de))return ce.stylize("undefined","undefined");if(Y(de)){var pe="'"+JSON.stringify(de).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ce.stylize(pe,"string")}return F(de)?ce.stylize(""+de,"number"):g(de)?ce.stylize(""+de,"boolean"):C(de)?ce.stylize("null","null"):void 0}(N,G);if(X)return X;var de,q=Object.keys(G),ye=(de={},q.forEach(function(pe,Be){de[pe]=!0}),de);if(N.showHidden&&(q=Object.getOwnPropertyNames(G)),re(G)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return k(G);if(0===q.length){if(ne(G))return N.stylize("[Function"+(G.name?": "+G.name:"")+"]","special");if(se(G))return N.stylize(RegExp.prototype.toString.call(G),"regexp");if(ee(G))return N.stylize(Date.prototype.toString.call(G),"date");if(re(G))return k(G)}var ge,Ee="",he=!1,Ie=["{","}"];return x(G)&&(he=!0,Ie=["[","]"]),ne(G)&&(Ee=" [Function"+(G.name?": "+G.name:"")+"]"),se(G)&&(Ee=" "+RegExp.prototype.toString.call(G)),ee(G)&&(Ee=" "+Date.prototype.toUTCString.call(G)),re(G)&&(Ee=" "+k(G)),0!==q.length||he&&0!=G.length?W<0?se(G)?N.stylize(RegExp.prototype.toString.call(G),"regexp"):N.stylize("[Object]","special"):(N.seen.push(G),ge=he?function(ce,de,pe,Be,We){for(var tt=[],vt=0,Xt=de.length;vt<Xt;++vt)we(de,String(vt))?tt.push(I(ce,de,pe,Be,String(vt),!0)):tt.push("");return We.forEach(function(Nt){Nt.match(/^\d+$/)||tt.push(I(ce,de,pe,Be,Nt,!0))}),tt}(N,G,W,ye,q):q.map(function(ce){return I(N,G,W,ye,ce,he)}),N.seen.pop(),function(ce,de,pe){return ce.reduce(function(Be,We){return We.indexOf("\n"),Be+We.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?pe[0]+(""===de?"":de+"\n ")+" "+ce.join(",\n ")+" "+pe[1]:pe[0]+de+" "+ce.join(", ")+" "+pe[1]}(ge,Ee,Ie)):Ie[0]+Ee+Ie[1]}function k(N){return"["+Error.prototype.toString.call(N)+"]"}function I(N,G,W,z,X,q){var ye,xe,ge;if((ge=Object.getOwnPropertyDescriptor(G,X)||{value:G[X]}).get?xe=N.stylize(ge.set?"[Getter/Setter]":"[Getter]","special"):ge.set&&(xe=N.stylize("[Setter]","special")),we(z,X)||(ye="["+X+"]"),xe||(N.seen.indexOf(ge.value)<0?(xe=C(W)?f(N,ge.value,null):f(N,ge.value,W-1)).indexOf("\n")>-1&&(xe=q?xe.split("\n").map(function(Ee){return" "+Ee}).join("\n").substr(2):"\n"+xe.split("\n").map(function(Ee){return" "+Ee}).join("\n")):xe=N.stylize("[Circular]","special")),Q(ye)){if(q&&X.match(/^\d+$/))return xe;(ye=JSON.stringify(""+X)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ye=ye.substr(1,ye.length-2),ye=N.stylize(ye,"name")):(ye=ye.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ye=N.stylize(ye,"string"))}return ye+": "+xe}function x(N){return Array.isArray(N)}function g(N){return"boolean"==typeof N}function C(N){return null===N}function F(N){return"number"==typeof N}function Y(N){return"string"==typeof N}function Q(N){return void 0===N}function se(N){return ie(N)&&"[object RegExp]"===_e(N)}function ie(N){return"object"==typeof N&&null!==N}function ee(N){return ie(N)&&"[object Date]"===_e(N)}function re(N){return ie(N)&&("[object Error]"===_e(N)||N instanceof Error)}function ne(N){return"function"==typeof N}function _e(N){return Object.prototype.toString.call(N)}function be(N){return N<10?"0"+N.toString(10):N.toString(10)}R.debuglog=function(N){if(Q(h)&&(h=m.env.NODE_DEBUG||""),N=N.toUpperCase(),!s[N])if(new RegExp("\\b"+N+"\\b","i").test(h)){var G=m.pid;s[N]=function(){var W=R.format.apply(R,arguments);console.error("%s %d: %s",N,G,W)}}else s[N]=function(){};return s[N]},R.inspect=b,b.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},b.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},R.isArray=x,R.isBoolean=g,R.isNull=C,R.isNullOrUndefined=function(N){return null==N},R.isNumber=F,R.isString=Y,R.isSymbol=function(N){return"symbol"==typeof N},R.isUndefined=Q,R.isRegExp=se,R.isObject=ie,R.isDate=ee,R.isError=re,R.isFunction=ne,R.isPrimitive=function(N){return null===N||"boolean"==typeof N||"number"==typeof N||"string"==typeof N||"symbol"==typeof N||void 0===N},R.isBuffer=o("./support/isBuffer");var oe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function we(N,G){return Object.prototype.hasOwnProperty.call(N,G)}R.log=function(){console.log("%s - %s",function me(){var N=new Date,G=[be(N.getHours()),be(N.getMinutes()),be(N.getSeconds())].join(":");return[N.getDate(),oe[N.getMonth()],G].join(" ")}(),R.format.apply(R,arguments))},R.inherits=o("inherits"),R._extend=function(N,G){if(!G||!ie(G))return N;for(var W=Object.keys(G),z=W.length;z--;)N[W[z]]=G[W[z]];return N}}).call(this)}).call(this,o("_process"),typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),Object.defineProperty(R,"v1",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(R,"v3",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(R,"v4",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(R,"v5",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(R,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(R,"version",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(R,"validate",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(R,"stringify",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(R,"parse",{enumerable:!0,get:function(){return f.default}});var m=k(o("./v1.js")),_=k(o("./v3.js")),v=k(o("./v4.js")),h=k(o("./v5.js")),s=k(o("./nil.js")),b=k(o("./version.js")),O=k(o("./validate.js")),w=k(o("./stringify.js")),f=k(o("./parse.js"));function k(I){return I&&I.__esModule?I:{default:I}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(o,E,R){"use strict";function m(f){return 14+(f+64>>>9<<4)+1}function _(f,k){const I=(65535&f)+(65535&k);return(f>>16)+(k>>16)+(I>>16)<<16|65535&I}function v(f,k,I,x,g,C){return _((F=_(_(k,f),_(x,C)))<<(Y=g)|F>>>32-Y,I);var F,Y}function h(f,k,I,x,g,C,F){return v(k&I|~k&x,f,k,g,C,F)}function s(f,k,I,x,g,C,F){return v(k&x|I&~x,f,k,g,C,F)}function b(f,k,I,x,g,C,F){return v(k^I^x,f,k,g,C,F)}function O(f,k,I,x,g,C,F){return v(I^(k|~x),f,k,g,C,F)}Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0,R.default=function(f){if("string"==typeof f){const k=unescape(encodeURIComponent(f));f=new Uint8Array(k.length);for(let I=0;I<k.length;++I)f[I]=k.charCodeAt(I)}return function(k){const I=[],x=32*k.length;for(let g=0;g<x;g+=8){const C=k[g>>5]>>>g%32&255,F=parseInt("0123456789abcdef".charAt(C>>>4&15)+"0123456789abcdef".charAt(15&C),16);I.push(F)}return I}(function(k,I){k[I>>5]|=128<<I%32,k[m(I)-1]=I;let x=1732584193,g=-271733879,C=-1732584194,F=271733878;for(let Y=0;Y<k.length;Y+=16){const Q=x,se=g,ie=C,ee=F;x=h(x,g,C,F,k[Y],7,-680876936),F=h(F,x,g,C,k[Y+1],12,-389564586),C=h(C,F,x,g,k[Y+2],17,606105819),g=h(g,C,F,x,k[Y+3],22,-1044525330),x=h(x,g,C,F,k[Y+4],7,-176418897),F=h(F,x,g,C,k[Y+5],12,1200080426),C=h(C,F,x,g,k[Y+6],17,-1473231341),g=h(g,C,F,x,k[Y+7],22,-45705983),x=h(x,g,C,F,k[Y+8],7,1770035416),F=h(F,x,g,C,k[Y+9],12,-1958414417),C=h(C,F,x,g,k[Y+10],17,-42063),g=h(g,C,F,x,k[Y+11],22,-1990404162),x=h(x,g,C,F,k[Y+12],7,1804603682),F=h(F,x,g,C,k[Y+13],12,-40341101),C=h(C,F,x,g,k[Y+14],17,-1502002290),g=h(g,C,F,x,k[Y+15],22,1236535329),x=s(x,g,C,F,k[Y+1],5,-165796510),F=s(F,x,g,C,k[Y+6],9,-1069501632),C=s(C,F,x,g,k[Y+11],14,643717713),g=s(g,C,F,x,k[Y],20,-373897302),x=s(x,g,C,F,k[Y+5],5,-701558691),F=s(F,x,g,C,k[Y+10],9,38016083),C=s(C,F,x,g,k[Y+15],14,-660478335),g=s(g,C,F,x,k[Y+4],20,-405537848),x=s(x,g,C,F,k[Y+9],5,568446438),F=s(F,x,g,C,k[Y+14],9,-1019803690),C=s(C,F,x,g,k[Y+3],14,-187363961),g=s(g,C,F,x,k[Y+8],20,1163531501),x=s(x,g,C,F,k[Y+13],5,-1444681467),F=s(F,x,g,C,k[Y+2],9,-51403784),C=s(C,F,x,g,k[Y+7],14,1735328473),g=s(g,C,F,x,k[Y+12],20,-1926607734),x=b(x,g,C,F,k[Y+5],4,-378558),F=b(F,x,g,C,k[Y+8],11,-2022574463),C=b(C,F,x,g,k[Y+11],16,1839030562),g=b(g,C,F,x,k[Y+14],23,-35309556),x=b(x,g,C,F,k[Y+1],4,-1530992060),F=b(F,x,g,C,k[Y+4],11,1272893353),C=b(C,F,x,g,k[Y+7],16,-155497632),g=b(g,C,F,x,k[Y+10],23,-1094730640),x=b(x,g,C,F,k[Y+13],4,681279174),F=b(F,x,g,C,k[Y],11,-358537222),C=b(C,F,x,g,k[Y+3],16,-722521979),g=b(g,C,F,x,k[Y+6],23,76029189),x=b(x,g,C,F,k[Y+9],4,-640364487),F=b(F,x,g,C,k[Y+12],11,-421815835),C=b(C,F,x,g,k[Y+15],16,530742520),g=b(g,C,F,x,k[Y+2],23,-995338651),x=O(x,g,C,F,k[Y],6,-198630844),F=O(F,x,g,C,k[Y+7],10,1126891415),C=O(C,F,x,g,k[Y+14],15,-1416354905),g=O(g,C,F,x,k[Y+5],21,-57434055),x=O(x,g,C,F,k[Y+12],6,1700485571),F=O(F,x,g,C,k[Y+3],10,-1894986606),C=O(C,F,x,g,k[Y+10],15,-1051523),g=O(g,C,F,x,k[Y+1],21,-2054922799),x=O(x,g,C,F,k[Y+8],6,1873313359),F=O(F,x,g,C,k[Y+15],10,-30611744),C=O(C,F,x,g,k[Y+6],15,-1560198380),g=O(g,C,F,x,k[Y+13],21,1309151649),x=O(x,g,C,F,k[Y+4],6,-145523070),F=O(F,x,g,C,k[Y+11],10,-1120210379),C=O(C,F,x,g,k[Y+2],15,718787259),g=O(g,C,F,x,k[Y+9],21,-343485551),x=_(x,Q),g=_(g,se),C=_(C,ie),F=_(F,ee)}return[x,g,C,F]}(function(k){if(0===k.length)return[];const I=8*k.length,x=new Uint32Array(m(I));for(let g=0;g<I;g+=8)x[g>>5]|=(255&k[g/8])<<g%32;return x}(f),8*f.length))}},{}],530:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0,R.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var m,_=(m=o("./validate.js"))&&m.__esModule?m:{default:m};R.default=function(h){if(!(0,_.default)(h))throw TypeError("Invalid UUID");let s;const b=new Uint8Array(16);return b[0]=(s=parseInt(h.slice(0,8),16))>>>24,b[1]=s>>>16&255,b[2]=s>>>8&255,b[3]=255&s,b[4]=(s=parseInt(h.slice(9,13),16))>>>8,b[5]=255&s,b[6]=(s=parseInt(h.slice(14,18),16))>>>8,b[7]=255&s,b[8]=(s=parseInt(h.slice(19,23),16))>>>8,b[9]=255&s,b[10]=(s=parseInt(h.slice(24,36),16))/1099511627776&255,b[11]=s/4294967296&255,b[12]=s>>>24&255,b[13]=s>>>16&255,b[14]=s>>>8&255,b[15]=255&s,b}},{"./validate.js":541}],532:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0,R.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(o,E,R){"use strict";let m;Object.defineProperty(R,"__esModule",{value:!0}),R.default=function(){if(!m&&(m=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!m))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return m(_)};const _=new Uint8Array(16)},{}],534:[function(o,E,R){"use strict";function m(h,s,b,O){switch(h){case 0:return s&b^~s&O;case 1:case 3:return s^b^O;case 2:return s&b^s&O^b&O}}function _(h,s){return h<<s|h>>>32-s}Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0,R.default=function(h){const s=[1518500249,1859775393,2400959708,3395469782],b=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof h){const k=unescape(encodeURIComponent(h));h=[];for(let I=0;I<k.length;++I)h.push(k.charCodeAt(I))}else Array.isArray(h)||(h=Array.prototype.slice.call(h));h.push(128);const w=Math.ceil((h.length/4+2)/16),f=new Array(w);for(let k=0;k<w;++k){const I=new Uint32Array(16);for(let x=0;x<16;++x)I[x]=h[64*k+4*x]<<24|h[64*k+4*x+1]<<16|h[64*k+4*x+2]<<8|h[64*k+4*x+3];f[k]=I}f[w-1][14]=8*(h.length-1)/Math.pow(2,32),f[w-1][14]=Math.floor(f[w-1][14]),f[w-1][15]=8*(h.length-1)&4294967295;for(let k=0;k<w;++k){const I=new Uint32Array(80);for(let Q=0;Q<16;++Q)I[Q]=f[k][Q];for(let Q=16;Q<80;++Q)I[Q]=_(I[Q-3]^I[Q-8]^I[Q-14]^I[Q-16],1);let x=b[0],g=b[1],C=b[2],F=b[3],Y=b[4];for(let Q=0;Q<80;++Q){const se=Math.floor(Q/20),ie=_(x,5)+m(se,g,C,F)+Y+s[se]+I[Q]>>>0;Y=F,F=C,C=_(g,30)>>>0,g=x,x=ie}b[0]=b[0]+x>>>0,b[1]=b[1]+g>>>0,b[2]=b[2]+C>>>0,b[3]=b[3]+F>>>0,b[4]=b[4]+Y>>>0}return[b[0]>>24&255,b[0]>>16&255,b[0]>>8&255,255&b[0],b[1]>>24&255,b[1]>>16&255,b[1]>>8&255,255&b[1],b[2]>>24&255,b[2]>>16&255,b[2]>>8&255,255&b[2],b[3]>>24&255,b[3]>>16&255,b[3]>>8&255,255&b[3],b[4]>>24&255,b[4]>>16&255,b[4]>>8&255,255&b[4]]}},{}],535:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var m,_=(m=o("./validate.js"))&&m.__esModule?m:{default:m};const v=[];for(let s=0;s<256;++s)v.push((s+256).toString(16).substr(1));R.default=function(s){let b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const O=(v[s[b+0]]+v[s[b+1]]+v[s[b+2]]+v[s[b+3]]+"-"+v[s[b+4]]+v[s[b+5]]+"-"+v[s[b+6]]+v[s[b+7]]+"-"+v[s[b+8]]+v[s[b+9]]+"-"+v[s[b+10]]+v[s[b+11]]+v[s[b+12]]+v[s[b+13]]+v[s[b+14]]+v[s[b+15]]).toLowerCase();if(!(0,_.default)(O))throw TypeError("Stringified UUID is invalid");return O}},{"./validate.js":541}],536:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var m=v(o("./rng.js")),_=v(o("./stringify.js"));function v(f){return f&&f.__esModule?f:{default:f}}let h,s,b=0,O=0;R.default=function(f,k,I){let x=k&&I||0;const g=k||new Array(16);let C=(f=f||{}).node||h,F=void 0!==f.clockseq?f.clockseq:s;if(null==C||null==F){const re=f.random||(f.rng||m.default)();null==C&&(C=h=[1|re[0],re[1],re[2],re[3],re[4],re[5]]),null==F&&(F=s=16383&(re[6]<<8|re[7]))}let Y=void 0!==f.msecs?f.msecs:Date.now(),Q=void 0!==f.nsecs?f.nsecs:O+1;const se=Y-b+(Q-O)/1e4;if(se<0&&void 0===f.clockseq&&(F=F+1&16383),(se<0||Y>b)&&void 0===f.nsecs&&(Q=0),Q>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");b=Y,O=Q,s=F,Y+=122192928e5;const ie=(1e4*(268435455&Y)+Q)%4294967296;g[x++]=ie>>>24&255,g[x++]=ie>>>16&255,g[x++]=ie>>>8&255,g[x++]=255&ie;const ee=Y/4294967296*1e4&268435455;g[x++]=ee>>>8&255,g[x++]=255&ee,g[x++]=ee>>>24&15|16,g[x++]=ee>>>16&255,g[x++]=F>>>8|128,g[x++]=255&F;for(let re=0;re<6;++re)g[x+re]=C[re];return k||(0,_.default)(g)}},{"./rng.js":533,"./stringify.js":535}],537:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var m=v(o("./v35.js")),_=v(o("./md5.js"));function v(s){return s&&s.__esModule?s:{default:s}}var h=(0,m.default)("v3",48,_.default);R.default=h},{"./md5.js":529,"./v35.js":538}],538:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=function(b,O,w){function f(k,I,x,g){if("string"==typeof k&&(k=function(F){F=unescape(encodeURIComponent(F));const Y=[];for(let Q=0;Q<F.length;++Q)Y.push(F.charCodeAt(Q));return Y}(k)),"string"==typeof I&&(I=(0,_.default)(I)),16!==I.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let C=new Uint8Array(16+k.length);if(C.set(I),C.set(k,I.length),C=w(C),C[6]=15&C[6]|O,C[8]=63&C[8]|128,x){g=g||0;for(let F=0;F<16;++F)x[g+F]=C[F];return x}return(0,m.default)(C)}try{f.name=b}catch{}return f.DNS=h,f.URL=s,f},R.URL=R.DNS=void 0;var m=v(o("./stringify.js")),_=v(o("./parse.js"));function v(b){return b&&b.__esModule?b:{default:b}}const h="6ba7b810-9dad-11d1-80b4-00c04fd430c8";R.DNS=h;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";R.URL=s},{"./parse.js":531,"./stringify.js":535}],539:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var m=v(o("./rng.js")),_=v(o("./stringify.js"));function v(s){return s&&s.__esModule?s:{default:s}}R.default=function(s,b,O){const w=(s=s||{}).random||(s.rng||m.default)();if(w[6]=15&w[6]|64,w[8]=63&w[8]|128,b){O=O||0;for(let f=0;f<16;++f)b[O+f]=w[f];return b}return(0,_.default)(w)}},{"./rng.js":533,"./stringify.js":535}],540:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var m=v(o("./v35.js")),_=v(o("./sha1.js"));function v(s){return s&&s.__esModule?s:{default:s}}var h=(0,m.default)("v5",80,_.default);R.default=h},{"./sha1.js":534,"./v35.js":538}],541:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var m,_=(m=o("./regex.js"))&&m.__esModule?m:{default:m};R.default=function(h){return"string"==typeof h&&_.default.test(h)}},{"./regex.js":532}],542:[function(o,E,R){"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var m,_=(m=o("./validate.js"))&&m.__esModule?m:{default:m};R.default=function(h){if(!(0,_.default)(h))throw TypeError("Invalid UUID");return parseInt(h.substr(14,1),16)}},{"./validate.js":541}],543:[function(o,E,R){"use strict";function m(_){return _>=65&&_<=90||_>=97&&_<=122||58===_||95===_||8204===_||8205===_||_>=192&&_<=214||_>=216&&_<=246||_>=248&&_<=767||_>=880&&_<=893||_>=895&&_<=8191||_>=8304&&_<=8591||_>=11264&&_<=12271||_>=12289&&_<=55295||_>=63744&&_<=64975||_>=65008&&_<=65533||_>=65536&&_<=983039}Object.defineProperty(R,"__esModule",{value:!0}),R.CHAR="\t\n\r -\ud7ff\ue000-\ufffd\u{10000}-\u{10ffff}",R.S=" \t\r\n",R.NAME_START_CHAR=":A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\u{10000}-\u{effff}",R.NAME_CHAR="-"+R.NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",R.CHAR_RE=new RegExp("^["+R.CHAR+"]$","u"),R.S_RE=new RegExp("^["+R.S+"]+$","u"),R.NAME_START_CHAR_RE=new RegExp("^["+R.NAME_START_CHAR+"]$","u"),R.NAME_CHAR_RE=new RegExp("^["+R.NAME_CHAR+"]$","u"),R.NAME_RE=new RegExp("^["+R.NAME_START_CHAR+"]["+R.NAME_CHAR+"]*$","u"),R.NMTOKEN_RE=new RegExp("^["+R.NAME_CHAR+"]+$","u"),R.S_LIST=[32,10,13,9],R.isChar=function(_){return _>=32&&_<=55295||10===_||13===_||9===_||_>=57344&&_<=65533||_>=65536&&_<=1114111},R.isS=function(_){return 32===_||10===_||13===_||9===_},R.isNameStartChar=m,R.isNameChar=function(_){return m(_)||_>=48&&_<=57||45===_||46===_||183===_||_>=768&&_<=879||_>=8255&&_<=8256}},{}],544:[function(o,E,R){"use strict";function m(_){return _>=65&&_<=90||_>=97&&_<=122||58===_||95===_||8204===_||8205===_||_>=192&&_<=214||_>=216&&_<=246||_>=248&&_<=767||_>=880&&_<=893||_>=895&&_<=8191||_>=8304&&_<=8591||_>=11264&&_<=12271||_>=12289&&_<=55295||_>=63744&&_<=64975||_>=65008&&_<=65533||_>=65536&&_<=983039}Object.defineProperty(R,"__esModule",{value:!0}),R.CHAR="\x01-\ud7ff\ue000-\ufffd\u{10000}-\u{10ffff}",R.RESTRICTED_CHAR="\x01-\b\v\f\x0e-\x1f\x7f-\x84\x86-\x9f",R.S=" \t\r\n",R.NAME_START_CHAR=":A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\u{10000}-\u{effff}",R.NAME_CHAR="-"+R.NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",R.CHAR_RE=new RegExp("^["+R.CHAR+"]$","u"),R.RESTRICTED_CHAR_RE=new RegExp("^["+R.RESTRICTED_CHAR+"]$","u"),R.S_RE=new RegExp("^["+R.S+"]+$","u"),R.NAME_START_CHAR_RE=new RegExp("^["+R.NAME_START_CHAR+"]$","u"),R.NAME_CHAR_RE=new RegExp("^["+R.NAME_CHAR+"]$","u"),R.NAME_RE=new RegExp("^["+R.NAME_START_CHAR+"]["+R.NAME_CHAR+"]*$","u"),R.NMTOKEN_RE=new RegExp("^["+R.NAME_CHAR+"]+$","u"),R.S_LIST=[32,10,13,9],R.isChar=function(_){return _>=1&&_<=55295||_>=57344&&_<=65533||_>=65536&&_<=1114111},R.isRestrictedChar=function(_){return _>=1&&_<=8||11===_||12===_||_>=14&&_<=31||_>=127&&_<=132||_>=134&&_<=159},R.isCharAndNotRestricted=function(_){return 9===_||10===_||13===_||_>31&&_<127||133===_||_>159&&_<=55295||_>=57344&&_<=65533||_>=65536&&_<=1114111},R.isS=function(_){return 32===_||10===_||13===_||9===_},R.isNameStartChar=m,R.isNameChar=function(_){return m(_)||_>=48&&_<=57||45===_||46===_||183===_||_>=768&&_<=879||_>=8255&&_<=8256}},{}],545:[function(o,E,R){"use strict";function m(_){return _>=65&&_<=90||95===_||_>=97&&_<=122||_>=192&&_<=214||_>=216&&_<=246||_>=248&&_<=767||_>=880&&_<=893||_>=895&&_<=8191||_>=8204&&_<=8205||_>=8304&&_<=8591||_>=11264&&_<=12271||_>=12289&&_<=55295||_>=63744&&_<=64975||_>=65008&&_<=65533||_>=65536&&_<=983039}Object.defineProperty(R,"__esModule",{value:!0}),R.NC_NAME_START_CHAR="A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\u{10000}-\u{effff}",R.NC_NAME_CHAR="-"+R.NC_NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",R.NC_NAME_START_CHAR_RE=new RegExp("^["+R.NC_NAME_START_CHAR+"]$","u"),R.NC_NAME_CHAR_RE=new RegExp("^["+R.NC_NAME_CHAR+"]$","u"),R.NC_NAME_RE=new RegExp("^["+R.NC_NAME_START_CHAR+"]["+R.NC_NAME_CHAR+"]*$","u"),R.isNCNameStartChar=m,R.isNCNameChar=function(_){return m(_)||45===_||46===_||_>=48&&_<=57||183===_||_>=768&&_<=879||_>=8255&&_<=8256}},{}]},{},[15])(15)},2578:function(ei,rt){var D,d;void 0!==(d="function"==typeof(D=function(){"use strict";function j(v,h,s){var b=new XMLHttpRequest;b.open("GET",v),b.responseType="blob",b.onload=function(){_(b.response,h,s)},b.onerror=function(){console.error("could not download file")},b.send()}function o(v){var h=new XMLHttpRequest;h.open("HEAD",v,!1);try{h.send()}catch{}return 200<=h.status&&299>=h.status}function E(v){try{v.dispatchEvent(new MouseEvent("click"))}catch{var h=document.createEvent("MouseEvents");h.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),v.dispatchEvent(h)}}var R="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,m=R.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),_=R.saveAs||("object"!=typeof window||window!==R?function(){}:"download"in HTMLAnchorElement.prototype&&!m?function(v,h,s){var b=R.URL||R.webkitURL,O=document.createElement("a");O.download=h=h||v.name||"download",O.rel="noopener","string"==typeof v?(O.href=v,O.origin===location.origin?E(O):o(O.href)?j(v,h,s):E(O,O.target="_blank")):(O.href=b.createObjectURL(v),setTimeout(function(){b.revokeObjectURL(O.href)},4e4),setTimeout(function(){E(O)},0))}:"msSaveOrOpenBlob"in navigator?function(v,h,s){if(h=h||v.name||"download","string"!=typeof v)navigator.msSaveOrOpenBlob(function L(v,h){return typeof h>"u"?h={autoBom:!1}:"object"!=typeof h&&(console.warn("Deprecated: Expected third argument to be a object"),h={autoBom:!h}),h.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(v.type)?new Blob(["\ufeff",v],{type:v.type}):v}(v,s),h);else if(o(v))j(v,h,s);else{var b=document.createElement("a");b.href=v,b.target="_blank",setTimeout(function(){E(b)})}}:function(v,h,s,b){if((b=b||open("","_blank"))&&(b.document.title=b.document.body.innerText="downloading..."),"string"==typeof v)return j(v,h,s);var O="application/octet-stream"===v.type,w=/constructor/i.test(R.HTMLElement)||R.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||O&&w||m)&&typeof FileReader<"u"){var k=new FileReader;k.onloadend=function(){var g=k.result;g=f?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=g:location=g,b=null},k.readAsDataURL(v)}else{var I=R.URL||R.webkitURL,x=I.createObjectURL(v);b?b.location=x:location.href=x,b=null,setTimeout(function(){I.revokeObjectURL(x)},4e4)}});R.saveAs=_.saveAs=_,ei.exports=_})?D.apply(rt,[]):D)&&(ei.exports=d)},55937:(ei,rt,D)=>{"use strict";D.d(rt,{n:()=>E});var r=D(1522);function d(R){return null==R}function j(R){return void 0===R}var o={onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function E(R,m,_){var h,f,v=arguments,s=null,b=null,O=null,w=0,k=arguments.length-2;if(1===k)h=_;else if(k>1)for(h=[];k-- >0;)h[k]=v[k+2];if(!function L(R){return"string"==typeof R}(R)){if(w=2,j(h)||(m||(m={}),m.children=h),!d(m))for(var x in f={},m)"key"===x?b=m.key:"ref"===x?s=m.ref:1===o[x]?(s||(s={}),s[x]=m[x]):f[x]=m[x];return(0,r.sO)(w,R,f,b,s)}if(w=(0,r.$_)(R),!d(m))for(var I in f={},m)"className"===I||"class"===I?O=m[I]:"key"===I?b=m.key:"children"===I&&j(h)?h=m.children:"ref"===I?s=m.ref:("contenteditable"===I&&(w|=4096),f[I]=m[I]);return 8192&w?(0,r.nl)(1===k?[h]:h,0,b):(0,r.bF)(w,R,O,h,0,f,b,s)}},1522:(ei,rt,D)=>{"use strict";D.d(rt,{uA:()=>ws,MZ:()=>b,EW:()=>Bi,zF:()=>Be,_M:()=>si,Gg:()=>Ci,C4:()=>An,Hq:()=>ji,vI:()=>Eo,J4:()=>yn,F1:()=>_t,sO:()=>X,nl:()=>ye,_3:()=>Kt,bF:()=>N,UV:()=>Y,$_:()=>de,_B:()=>xe,XX:()=>Wl,mM:()=>Ko});var r=Array.isArray;function d(Bt){var Si=typeof Bt;return"string"===Si||"number"===Si}function L(Bt){return null==Bt}function j(Bt){return null===Bt||!1===Bt||!0===Bt||void 0===Bt}function o(Bt){return"function"==typeof Bt}function E(Bt){return"string"==typeof Bt}function m(Bt){return null===Bt}function _(Bt){return void 0===Bt}function v(Bt,Si){var Ni={};if(Bt)for(var Sn in Bt)Ni[Sn]=Bt[Sn];if(Si)for(var Dn in Si)Ni[Dn]=Si[Dn];return Ni}function s(Bt){return!m(Bt)&&"object"==typeof Bt}var b={},O="$F";function w(Bt){return Bt.substr(2).toLowerCase()}function f(Bt,Si){Bt.appendChild(Si)}function k(Bt,Si,Ni){m(Ni)?f(Bt,Si):Bt.insertBefore(Si,Ni)}function g(Bt,Si){Bt.removeChild(Si)}function C(Bt){for(var Si=0;Si<Bt.length;Si++)Bt[Si]()}function F(Bt,Si,Ni){var Sn=Bt.children;return 4&Ni?Sn.$LI:8192&Ni?2===Bt.childFlags?Sn:Sn[Si?0:Sn.length-1]:Sn}function Y(Bt,Si){for(var Ni;Bt;){if(2033&(Ni=Bt.flags))return Bt.dom;Bt=F(Bt,Si,Ni)}return null}function Q(Bt,Si){do{var Ni=Bt.flags;if(2033&Ni)return void g(Si,Bt.dom);var Sn=Bt.children;if(4&Ni&&(Bt=Sn.$LI),8&Ni&&(Bt=Sn),8192&Ni){if(2!==Bt.childFlags){for(var Dn=0,Kn=Sn.length;Dn<Kn;++Dn)Q(Sn[Dn],Si);return}Bt=Sn}}while(Bt)}function se(Bt,Si,Ni){do{var Sn=Bt.flags;if(2033&Sn)return void k(Si,Bt.dom,Ni);var Dn=Bt.children;if(4&Sn&&(Bt=Dn.$LI),8&Sn&&(Bt=Dn),8192&Sn){if(2!==Bt.childFlags){for(var Kn=0,tr=Dn.length;Kn<tr;++Kn)se(Dn[Kn],Si,Ni);return}Bt=Dn}}while(Bt)}function ie(Bt,Si,Ni){return Bt.constructor.getDerivedStateFromProps?v(Ni,Bt.constructor.getDerivedStateFromProps(Si,Ni)):Ni}var ee={v:!1},re={componentComparator:null,createVNode:null,renderComplete:null};function ne(Bt,Si){Bt.textContent=Si}function _e(Bt,Si){return s(Bt)&&Bt.event===Si.event&&Bt.data===Si.data}function be(Bt,Si){for(var Ni in Si)_(Bt[Ni])&&(Bt[Ni]=Si[Ni]);return Bt}function oe(Bt,Si){return!!o(Bt)&&(Bt(Si),!0)}var me="$";function we(Bt,Si,Ni,Sn,Dn,Kn,tr,xr){this.childFlags=Bt,this.children=Si,this.className=Ni,this.dom=null,this.flags=Sn,this.key=void 0===Dn?null:Dn,this.props=void 0===Kn?null:Kn,this.ref=void 0===tr?null:tr,this.type=xr}function N(Bt,Si,Ni,Sn,Dn,Kn,tr,xr){var Pa=void 0===Dn?1:Dn,va=new we(Pa,Sn,Ni,Bt,tr,Kn,xr,Si);return re.createVNode&&re.createVNode(va),0===Pa&&pe(va,va.children),va}function X(Bt,Si,Ni,Sn,Dn){Bt=function z(Bt,Si){return 12&Bt?Bt:Si.prototype&&Si.prototype.render?4:Si.render?32776:8}(Bt,Si);var Kn=new we(1,null,null,Bt,Sn,function W(Bt,Si,Ni){var Sn=(32768&Bt?Si.render:Si).defaultProps;return L(Sn)?Ni:L(Ni)?v(Sn,null):be(Ni,Sn)}(Bt,Si,Ni),function G(Bt,Si,Ni){if(4&Bt)return Ni;var Sn=(32768&Bt?Si.render:Si).defaultHooks;return L(Sn)?Ni:L(Ni)?Sn:be(Ni,Sn)}(Bt,Si,Dn),Si);return re.createVNode&&re.createVNode(Kn),Kn}function q(Bt,Si){return new we(1,L(Bt)||!0===Bt||!1===Bt?"":Bt,null,16,Si,null,null,null)}function ye(Bt,Si,Ni){var Sn=N(8192,8192,null,Bt,Si,null,Ni,null);switch(Sn.childFlags){case 1:Sn.children=he(),Sn.childFlags=2;break;case 16:Sn.children=[q(Bt)],Sn.childFlags=4}return Sn}function xe(Bt){var Si=Bt.props;if(Si){var Ni=Bt.flags;481&Ni&&(void 0!==Si.children&&L(Bt.children)&&pe(Bt,Si.children),void 0!==Si.className&&(L(Bt.className)&&(Bt.className=Si.className||null),Si.className=void 0)),void 0!==Si.key&&(Bt.key=Si.key,Si.key=void 0),void 0!==Si.ref&&(Bt.ref=8&Ni?v(Bt.ref,Si.ref):Si.ref,Si.ref=void 0)}return Bt}function Ee(Bt){var Si=-16385&Bt.flags,Ni=Bt.props;if(14&Si&&!m(Ni)){var Sn=Ni;for(var Dn in Ni={},Sn)Ni[Dn]=Sn[Dn]}return 8192&Si?function ge(Bt){var Si=Bt.children,Ni=Bt.childFlags;return ye(2===Ni?Ee(Si):Si.map(Ee),Ni,Bt.key)}(Bt):new we(Bt.childFlags,Bt.children,Bt.className,Si,Bt.key,Ni,Bt.ref,Bt.type)}function he(){return q("",null)}function ce(Bt,Si,Ni,Sn){for(var Dn=Bt.length;Ni<Dn;Ni++){var Kn=Bt[Ni];if(!j(Kn)){var tr=Sn+me+Ni;if(r(Kn))ce(Kn,Si,0,tr);else{if(d(Kn))Kn=q(Kn,tr);else{var xr=Kn.key,Pa=E(xr)&&xr[0]===me;(81920&Kn.flags||Pa)&&(Kn=Ee(Kn)),Kn.flags|=65536,Pa?xr.substring(0,Sn.length)!==Sn&&(Kn.key=Sn+xr):Kn.key=m(xr)?tr:Sn+xr}Si.push(Kn)}}}}function de(Bt){switch(Bt){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case O:return 8192;default:return 1}}function pe(Bt,Si){var Ni,Sn=1;if(j(Si))Ni=Si;else if(d(Si))Sn=16,Ni=Si;else if(r(Si)){for(var Dn=Si.length,Kn=0;Kn<Dn;++Kn){var tr=Si[Kn];if(j(tr)||r(tr)){Ni=Ni||Si.slice(0,Kn),ce(Si,Ni,Kn,"");break}if(d(tr))(Ni=Ni||Si.slice(0,Kn)).push(q(tr,me+Kn));else{var xr=tr.key,Pa=(81920&tr.flags)>0,va=m(xr),Aa=E(xr)&&xr[0]===me;Pa||va||Aa?(Ni=Ni||Si.slice(0,Kn),(Pa||Aa)&&(tr=Ee(tr)),(va||Aa)&&(tr.key=me+Kn),Ni.push(tr)):Ni&&Ni.push(tr),tr.flags|=65536}}Sn=0===(Ni=Ni||Si).length?1:8}else(Ni=Si).flags|=65536,81920&Si.flags&&(Ni=Ee(Si)),Sn=2;return Bt.children=Ni,Bt.childFlags=Sn,Bt}function Be(Bt){return j(Bt)||d(Bt)?q(Bt,null):r(Bt)?ye(Bt,0,null):16384&Bt.flags?Ee(Bt):Bt}var We="http://www.w3.org/1999/xlink",tt="http://www.w3.org/XML/1998/namespace",vt={"xlink:actuate":We,"xlink:arcrole":We,"xlink:href":We,"xlink:role":We,"xlink:show":We,"xlink:title":We,"xlink:type":We,"xml:base":tt,"xml:lang":tt,"xml:space":tt};function Xt(Bt){return{onClick:Bt,onDblClick:Bt,onFocusIn:Bt,onFocusOut:Bt,onKeyDown:Bt,onKeyPress:Bt,onKeyUp:Bt,onMouseDown:Bt,onMouseMove:Bt,onMouseUp:Bt,onTouchEnd:Bt,onTouchMove:Bt,onTouchStart:Bt}}var Nt=Xt(0),Qe=Xt(null),Et=Xt(!0);function Lt(Bt,Si){var Ni=Si.$EV;return Ni||(Ni=Si.$EV=Xt(null)),Ni[Bt]||1==++Nt[Bt]&&(Qe[Bt]=function Ht(Bt){var Si="onClick"===Bt||"onDblClick"===Bt?function xi(Bt){return function(Si){0===Si.button?ot(Si,!0,Bt,an(Si)):Si.stopPropagation()}}(Bt):function Je(Bt){return function(Si){ot(Si,!1,Bt,an(Si))}}(Bt);return document.addEventListener(w(Bt),Si),Si}(Bt)),Ni}function wt(Bt,Si){var Ni=Si.$EV;Ni&&Ni[Bt]&&(0==--Nt[Bt]&&(document.removeEventListener(w(Bt),Qe[Bt]),Qe[Bt]=null),Ni[Bt]=null)}function ot(Bt,Si,Ni,Sn){var Dn=function Ge(Bt){return o(Bt.composedPath)?Bt.composedPath()[0]:Bt.target}(Bt);do{if(Si&&Dn.disabled)return;var Kn=Dn.$EV;if(Kn){var tr=Kn[Ni];if(tr&&(Sn.dom=Dn,tr.event?tr.event(tr.data,Bt):tr(Bt),Bt.cancelBubble))return}Dn=Dn.parentNode}while(!m(Dn))}function Tt(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function jt(){return this.defaultPrevented}function li(){return this.cancelBubble}function an(Bt){var Si={dom:document};return Bt.isDefaultPrevented=jt,Bt.isPropagationStopped=li,Bt.stopPropagation=Tt,Object.defineProperty(Bt,"currentTarget",{configurable:!0,get:function(){return Si.dom}}),Si}function Ti(Bt,Si,Ni){if(Bt[Si]){var Sn=Bt[Si];Sn.event?Sn.event(Sn.data,Ni):Sn(Ni)}else{var Dn=Si.toLowerCase();Bt[Dn]&&Bt[Dn](Ni)}}function ni(Bt,Si){var Ni=function(Sn){var Dn=this.$V;if(Dn){var Kn=Dn.props||b,tr=Dn.dom;if(E(Bt))Ti(Kn,Bt,Sn);else for(var xr=0;xr<Bt.length;++xr)Ti(Kn,Bt[xr],Sn);if(o(Si)){var Pa=this.$V;Si(Pa.props||b,tr,!1,Pa)}}};return Object.defineProperty(Ni,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),Ni}function wi(Bt,Si,Ni){var Sn="$"+Si,Dn=Bt[Sn];if(Dn){if(Dn[1].wrapped)return;Bt.removeEventListener(Dn[0],Dn[1]),Bt[Sn]=null}o(Ni)&&(Bt.addEventListener(Si,Ni),Bt[Sn]=[Si,Ni])}function ui(Bt){return"checkbox"===Bt||"radio"===Bt}var cn=ni("onInput",Ut),Ui=ni(["onClick","onChange"],Ut);function Xi(Bt){Bt.stopPropagation()}function Ut(Bt,Si){var Ni=Bt.type,Sn=Bt.value,Dn=Bt.checked,Kn=Bt.multiple,tr=Bt.defaultValue,xr=!L(Sn);Ni&&Ni!==Si.type&&Si.setAttribute("type",Ni),!L(Kn)&&Kn!==Si.multiple&&(Si.multiple=Kn),!L(tr)&&!xr&&(Si.defaultValue=tr+""),ui(Ni)?(xr&&(Si.value=Sn),L(Dn)||(Si.checked=Dn)):xr&&Si.value!==Sn?(Si.defaultValue=Sn,Si.value=Sn):L(Dn)||(Si.checked=Dn)}function It(Bt,Si){if("option"===Bt.type)!function yt(Bt,Si){var Ni=Bt.props||b,Sn=Bt.dom;Sn.value=Ni.value,Ni.value===Si||r(Si)&&-1!==Si.indexOf(Ni.value)?Sn.selected=!0:(!L(Si)||!L(Ni.selected))&&(Sn.selected=Ni.selected||!1)}(Bt,Si);else{var Ni=Bt.children,Sn=Bt.flags;if(4&Sn)It(Ni.$LI,Si);else if(8&Sn)It(Ni,Si);else if(2===Bt.childFlags)It(Ni,Si);else if(12&Bt.childFlags)for(var Dn=0,Kn=Ni.length;Dn<Kn;++Dn)It(Ni[Dn],Si)}}Xi.wrapped=!0;var pt=ni("onChange",Wt);function Wt(Bt,Si,Ni,Sn){var Dn=!!Bt.multiple;!L(Bt.multiple)&&Dn!==Si.multiple&&(Si.multiple=Dn);var Kn=Bt.selectedIndex;if(-1===Kn&&(Si.selectedIndex=-1),1!==Sn.childFlags){var xr=Bt.value;(function R(Bt){return"number"==typeof Bt})(Kn)&&Kn>-1&&Si.options[Kn]&&(xr=Si.options[Kn].value),Ni&&L(xr)&&(xr=Bt.defaultValue),It(Sn,xr)}}var Vt=ni("onInput",gt),ci=ni("onChange");function gt(Bt,Si,Ni){var Sn=Bt.value,Dn=Si.value;if(L(Sn)){if(Ni){var Kn=Bt.defaultValue;!L(Kn)&&Kn!==Dn&&(Si.defaultValue=Kn,Si.value=Kn)}}else Dn!==Sn&&(Si.defaultValue=Sn,Si.value=Sn)}function ai(Bt,Si,Ni,Sn,Dn,Kn){64&Bt?Ut(Sn,Ni):256&Bt?Wt(Sn,Ni,Dn,Si):128&Bt&>(Sn,Ni,Dn),Kn&&(Ni.$V=Si)}function mi(Bt){return Bt.type&&ui(Bt.type)?!L(Bt.checked):!L(Bt.value)}function Kt(){return{current:null}}function Wi(Bt){Bt&&!oe(Bt,null)&&Bt.current&&(Bt.current=null)}function yn(Bt,Si,Ni){Bt&&(o(Bt)||void 0!==Bt.current)&&Ni.push(function(){!oe(Bt,Si)&&void 0!==Bt.current&&(Bt.current=Si)})}function Ur(Bt,Si){ar(Bt),Q(Bt,Si)}function ar(Bt){var Sn,Si=Bt.flags,Ni=Bt.children;if(481&Si){var Dn=Bt.props;Wi(Sn=Bt.ref);var Kn=Bt.childFlags;if(!m(Dn))for(var tr=Object.keys(Dn),xr=0,Pa=tr.length;xr<Pa;xr++){var va=tr[xr];Et[va]&&wt(va,Bt.dom)}12&Kn?na(Ni):2===Kn&&ar(Ni)}else Ni&&(4&Si?(o(Ni.componentWillUnmount)&&Ni.componentWillUnmount(),Wi(Bt.ref),Ni.$UN=!0,ar(Ni.$LI)):8&Si?(!L(Sn=Bt.ref)&&o(Sn.onComponentWillUnmount)&&Sn.onComponentWillUnmount(Y(Bt,!0),Bt.props||b),ar(Ni)):1024&Si?Ur(Ni,Bt.ref):8192&Si&&12&Bt.childFlags&&na(Ni))}function na(Bt){for(var Si=0,Ni=Bt.length;Si<Ni;++Si)ar(Bt[Si])}function po(Bt){Bt.textContent=""}function sa(Bt,Si,Ni){na(Ni),8192&Si.flags?Q(Si,Bt):po(Bt)}function uo(Bt,Si,Ni,Sn,Dn,Kn,tr){switch(Bt){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":Sn.autofocus=!!Ni;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":Sn[Bt]=!!Ni;break;case"defaultChecked":case"value":case"volume":if(Kn&&"value"===Bt)break;var xr=L(Ni)?"":Ni;Sn[Bt]!==xr&&(Sn[Bt]=xr);break;case"style":!function ja(Bt,Si,Ni){if(L(Si))Ni.removeAttribute("style");else{var Dn,Kn,Sn=Ni.style;if(E(Si))Sn.cssText=Si;else if(L(Bt)||E(Bt))for(Dn in Si)Sn.setProperty(Dn,Kn=Si[Dn]);else{for(Dn in Si)(Kn=Si[Dn])!==Bt[Dn]&&Sn.setProperty(Dn,Kn);for(Dn in Bt)L(Si[Dn])&&Sn.removeProperty(Dn)}}}(Si,Ni,Sn);break;case"dangerouslySetInnerHTML":!function Na(Bt,Si,Ni,Sn){var Kn=Si&&Si.__html||"";(Bt&&Bt.__html||"")!==Kn&&!L(Kn)&&!function gi(Bt,Si){var Ni=document.createElement("i");return Ni.innerHTML=Si,Ni.innerHTML===Bt.innerHTML}(Sn,Kn)&&(m(Ni)||(12&Ni.childFlags?na(Ni.children):2===Ni.childFlags&&ar(Ni.children),Ni.children=null,Ni.childFlags=1),Sn.innerHTML=Kn)}(Si,Ni,tr,Sn);break;default:Et[Bt]?function Mt(Bt,Si,Ni,Sn){if(o(Ni))Lt(Bt,Sn)[Bt]=Ni;else if(s(Ni)){if(_e(Si,Ni))return;Lt(Bt,Sn)[Bt]=Ni}else wt(Bt,Sn)}(Bt,Si,Ni,Sn):111===Bt.charCodeAt(0)&&110===Bt.charCodeAt(1)?function no(Bt,Si,Ni,Sn){if(s(Ni)){if(_e(Si,Ni))return;Ni=function Pr(Bt){var Si=Bt.event;return function(Ni){Si(Bt.data,Ni)}}(Ni)}wi(Sn,w(Bt),Ni)}(Bt,Si,Ni,Sn):L(Ni)?Sn.removeAttribute(Bt):Dn&&vt[Bt]?Sn.setAttributeNS(vt[Bt],Bt,Ni):Sn.setAttribute(Bt,Ni)}}function Eo(Bt,Si,Ni,Sn,Dn){var Kn=!1,tr=(448&Si)>0;for(var xr in tr&&(Kn=mi(Ni))&&function kt(Bt,Si,Ni){64&Bt?function Qi(Bt,Si){ui(Si.type)?(wi(Bt,"change",Ui),wi(Bt,"click",Xi)):wi(Bt,"input",cn)}(Si,Ni):256&Bt?function st(Bt){wi(Bt,"change",pt)}(Si):128&Bt&&function bi(Bt,Si){wi(Bt,"input",Vt),Si.onChange&&wi(Bt,"change",ci)}(Si,Ni)}(Si,Sn,Ni),Ni)uo(xr,null,Ni[xr],Sn,Dn,Kn,null);tr&&ai(Si,Bt,Sn,Ni,!0,Kn)}function To(Bt,Si,Ni){var Sn=Be(Bt.render(Si,Bt.state,Ni)),Dn=Ni;return o(Bt.getChildContext)&&(Dn=v(Ni,Bt.getChildContext())),Bt.$CX=Dn,Sn}function Bi(Bt,Si,Ni,Sn,Dn,Kn){var tr=new Si(Ni,Sn),xr=tr.$N=!(!Si.getDerivedStateFromProps&&!tr.getSnapshotBeforeUpdate);if(tr.$SVG=Dn,tr.$L=Kn,Bt.children=tr,tr.$BS=!1,tr.context=Sn,tr.props===b&&(tr.props=Ni),xr)tr.state=ie(tr,Ni,tr.state);else if(o(tr.componentWillMount)){tr.$BR=!0,tr.componentWillMount();var Pa=tr.$PS;if(!m(Pa)){var va=tr.state;if(m(va))tr.state=Pa;else for(var Aa in Pa)va[Aa]=Pa[Aa];tr.$PS=null}tr.$BR=!1}return tr.$LI=To(tr,Ni,Sn),tr}function _t(Bt,Si){var Ni=Bt.props||b;return 32768&Bt.flags?Bt.type.render(Ni,Bt.ref,Si):Bt.type(Ni,Si)}function si(Bt,Si,Ni,Sn,Dn,Kn){var tr=Bt.flags|=16384;481&tr?An(Bt,Si,Ni,Sn,Dn,Kn):4&tr?function Gr(Bt,Si,Ni,Sn,Dn,Kn){var tr=Bi(Bt,Bt.type,Bt.props||b,Ni,Sn,Kn);si(tr.$LI,Si,tr.$CX,Sn,Dn,Kn),Ci(Bt.ref,tr,Kn)}(Bt,Si,Ni,Sn,Dn,Kn):8&tr?(function ct(Bt,Si,Ni,Sn,Dn,Kn){si(Bt.children=Be(_t(Bt,Ni)),Si,Ni,Sn,Dn,Kn)}(Bt,Si,Ni,Sn,Dn,Kn),ji(Bt,Kn)):512&tr||16&tr?ln(Bt,Si,Dn):8192&tr?function Pi(Bt,Si,Ni,Sn,Dn,Kn){var tr=Bt.children,xr=Bt.childFlags;12&xr&&0===tr.length&&(xr=Bt.childFlags=2,tr=Bt.children=he()),2===xr?si(tr,Ni,Si,Sn,Dn,Kn):jn(tr,Ni,Si,Sn,Dn,Kn)}(Bt,Ni,Si,Sn,Dn,Kn):1024&tr&&function Dt(Bt,Si,Ni,Sn,Dn){si(Bt.children,Bt.ref,Si,!1,null,Dn);var Kn=he();ln(Kn,Ni,Sn),Bt.dom=Kn.dom}(Bt,Ni,Si,Dn,Kn)}function ln(Bt,Si,Ni){var Sn=Bt.dom=document.createTextNode(Bt.children);m(Si)||k(Si,Sn,Ni)}function An(Bt,Si,Ni,Sn,Dn,Kn){var tr=Bt.flags,xr=Bt.props,Pa=Bt.className,va=Bt.childFlags,Aa=Bt.dom=function I(Bt,Si){return Si?document.createElementNS("http://www.w3.org/2000/svg",Bt):document.createElement(Bt)}(Bt.type,Sn=Sn||(32&tr)>0),Ba=Bt.children;if(!L(Pa)&&""!==Pa&&(Sn?Aa.setAttribute("class",Pa):Aa.className=Pa),16===va)ne(Aa,Ba);else if(1!==va){var ga=Sn&&"foreignObject"!==Bt.type;2===va?(16384&Ba.flags&&(Bt.children=Ba=Ee(Ba)),si(Ba,Aa,Ni,ga,null,Kn)):(8===va||4===va)&&jn(Ba,Aa,Ni,ga,null,Kn)}m(Si)||k(Si,Aa,Dn),m(xr)||Eo(Bt,tr,xr,Aa,Sn),yn(Bt.ref,Aa,Kn)}function jn(Bt,Si,Ni,Sn,Dn,Kn){for(var tr=0;tr<Bt.length;++tr){var xr=Bt[tr];16384&xr.flags&&(Bt[tr]=xr=Ee(xr)),si(xr,Si,Ni,Sn,Dn,Kn)}}function Ci(Bt,Si,Ni){yn(Bt,Si,Ni),o(Si.componentDidMount)&&Ni.push(function ri(Bt){return function(){Bt.componentDidMount()}}(Si))}function ji(Bt,Si){var Ni=Bt.ref;L(Ni)||(oe(Ni.onComponentWillMount,Bt.props||b),o(Ni.onComponentDidMount)&&Si.push(function Ri(Bt,Si){return function(){Bt.onComponentDidMount(Y(Si,!0),Si.props||b)}}(Ni,Bt)))}function Nn(Bt,Si,Ni,Sn,Dn,Kn,tr){var xr=Si.flags|=16384;Bt.flags!==xr||Bt.type!==Si.type||Bt.key!==Si.key||2048&xr?16384&Bt.flags?function wn(Bt,Si,Ni,Sn,Dn,Kn){ar(Bt),Si.flags&Bt.flags&2033?(si(Si,null,Sn,Dn,null,Kn),function x(Bt,Si,Ni){Bt.replaceChild(Si,Ni)}(Ni,Si.dom,Bt.dom)):(si(Si,Ni,Sn,Dn,Y(Bt,!0),Kn),Q(Bt,Ni))}(Bt,Si,Ni,Sn,Dn,tr):si(Si,Ni,Sn,Dn,Kn,tr):481&xr?function Fa(Bt,Si,Ni,Sn,Dn,Kn){var Ba,tr=Si.dom=Bt.dom,xr=Bt.props,Pa=Si.props,va=!1,Aa=!1;if(Sn=Sn||(32&Dn)>0,xr!==Pa){var ga=xr||b;if((Ba=Pa||b)!==b)for(var Lo in(va=(448&Dn)>0)&&(Aa=mi(Ba)),Ba){var $a=ga[Lo],qs=Ba[Lo];$a!==qs&&uo(Lo,$a,qs,tr,Sn,Aa,Bt)}if(ga!==b)for(var Mo in ga)L(Ba[Mo])&&!L(ga[Mo])&&uo(Mo,ga[Mo],null,tr,Sn,Aa,Bt)}var Ml=Si.children,gs=Si.className;Bt.className!==gs&&(L(gs)?tr.removeAttribute("class"):Sn?tr.setAttribute("class",gs):tr.className=gs),4096&Dn?function _r(Bt,Si){Bt.textContent!==Si&&(Bt.textContent=Si)}(tr,Ml):_o(Bt.childFlags,Si.childFlags,Bt.children,Ml,tr,Ni,Sn&&"foreignObject"!==Si.type,null,Bt,Kn),va&&ai(Dn,Si,tr,Ba,!1,Aa);var el=Si.ref,_s=Bt.ref;_s!==el&&(Wi(_s),yn(el,tr,Kn))}(Bt,Si,Sn,Dn,xr,tr):4&xr?function ia(Bt,Si,Ni,Sn,Dn,Kn,tr){var xr=Si.children=Bt.children;if(!m(xr)){xr.$L=tr;var Pa=Si.props||b,va=Si.ref,Aa=Bt.ref,Ba=xr.state;if(!xr.$N){if(o(xr.componentWillReceiveProps)){if(xr.$BR=!0,xr.componentWillReceiveProps(Pa,Sn),xr.$UN)return;xr.$BR=!1}m(xr.$PS)||(Ba=v(Ba,xr.$PS),xr.$PS=null)}Va(xr,Ba,Pa,Ni,Sn,Dn,!1,Kn,tr),Aa!==va&&(Wi(Aa),yn(va,xr,tr))}}(Bt,Si,Ni,Sn,Dn,Kn,tr):8&xr?function $o(Bt,Si,Ni,Sn,Dn,Kn,tr){var xr=!0,Pa=Si.props||b,va=Si.ref,Aa=Bt.props,Ba=!L(va),ga=Bt.children;if(Ba&&o(va.onComponentShouldUpdate)&&(xr=va.onComponentShouldUpdate(Aa,Pa)),!1!==xr){Ba&&o(va.onComponentWillUpdate)&&va.onComponentWillUpdate(Aa,Pa);var Lo=Be(_t(Si,Sn));Nn(ga,Lo,Ni,Sn,Dn,Kn,tr),Si.children=Lo,Ba&&o(va.onComponentDidUpdate)&&va.onComponentDidUpdate(Aa,Pa)}else Si.children=ga}(Bt,Si,Ni,Sn,Dn,Kn,tr):16&xr?function mo(Bt,Si){var Ni=Si.children,Sn=Si.dom=Bt.dom;Ni!==Bt.children&&(Sn.nodeValue=Ni)}(Bt,Si):512&xr?Si.dom=Bt.dom:8192&xr?function ha(Bt,Si,Ni,Sn,Dn,Kn){var tr=Bt.children,xr=Si.children,Pa=Bt.childFlags,va=Si.childFlags,Aa=null;12&va&&0===xr.length&&(va=Si.childFlags=2,xr=Si.children=he());var Ba=!!(2&va);if(12&Pa){var ga=tr.length;(8&Pa&&8&va||Ba||!Ba&&xr.length>ga)&&(Aa=Y(tr[ga-1],!1).nextSibling)}_o(Pa,va,tr,xr,Ni,Sn,Dn,Aa,Bt,Kn)}(Bt,Si,Ni,Sn,Dn,tr):function aa(Bt,Si,Ni,Sn){var Dn=Bt.ref,Kn=Si.ref,tr=Si.children;if(_o(Bt.childFlags,Si.childFlags,Bt.children,tr,Dn,Ni,!1,null,Bt,Sn),Si.dom=Bt.dom,Dn!==Kn&&!j(tr)){var xr=tr.dom;g(Dn,xr),f(Kn,xr)}}(Bt,Si,Sn,tr)}function _o(Bt,Si,Ni,Sn,Dn,Kn,tr,xr,Pa,va){switch(Bt){case 2:switch(Si){case 2:Nn(Ni,Sn,Dn,Kn,tr,xr,va);break;case 1:Ur(Ni,Dn);break;case 16:ar(Ni),ne(Dn,Sn);break;default:!function Ya(Bt,Si,Ni,Sn,Dn,Kn){ar(Bt),jn(Si,Ni,Sn,Dn,Y(Bt,!0),Kn),Q(Bt,Ni)}(Ni,Sn,Dn,Kn,tr,va)}break;case 1:switch(Si){case 2:si(Sn,Dn,Kn,tr,xr,va);break;case 1:break;case 16:ne(Dn,Sn);break;default:jn(Sn,Dn,Kn,tr,xr,va)}break;case 16:switch(Si){case 16:!function En(Bt,Si,Ni){Bt!==Si&&(""!==Bt?Ni.firstChild.nodeValue=Si:ne(Ni,Si))}(Ni,Sn,Dn);break;case 2:po(Dn),si(Sn,Dn,Kn,tr,xr,va);break;case 1:po(Dn);break;default:po(Dn),jn(Sn,Dn,Kn,tr,xr,va)}break;default:switch(Si){case 16:na(Ni),ne(Dn,Sn);break;case 2:sa(Dn,Pa,Ni),si(Sn,Dn,Kn,tr,xr,va);break;case 1:sa(Dn,Pa,Ni);break;default:var Aa=0|Ni.length,Ba=0|Sn.length;0===Aa?Ba>0&&jn(Sn,Dn,Kn,tr,xr,va):0===Ba?sa(Dn,Pa,Ni):8===Si&&8===Bt?function Jl(Bt,Si,Ni,Sn,Dn,Kn,tr,xr,Pa,va){var qs,Mo,Aa=Kn-1,Ba=tr-1,ga=0,Lo=Bt[ga],$a=Si[ga];e:{for(;Lo.key===$a.key;){if(16384&$a.flags&&(Si[ga]=$a=Ee($a)),Nn(Lo,$a,Ni,Sn,Dn,xr,va),Bt[ga]=$a,++ga>Aa||ga>Ba)break e;Lo=Bt[ga],$a=Si[ga]}for(Lo=Bt[Aa],$a=Si[Ba];Lo.key===$a.key;){if(16384&$a.flags&&(Si[Ba]=$a=Ee($a)),Nn(Lo,$a,Ni,Sn,Dn,xr,va),Bt[Aa]=$a,Ba--,ga>--Aa||ga>Ba)break e;Lo=Bt[Aa],$a=Si[Ba]}}if(ga>Aa){if(ga<=Ba)for(Mo=(qs=Ba+1)<tr?Y(Si[qs],!0):xr;ga<=Ba;)16384&($a=Si[ga]).flags&&(Si[ga]=$a=Ee($a)),++ga,si($a,Ni,Sn,Dn,Mo,va)}else if(ga>Ba)for(;ga<=Aa;)Ur(Bt[ga++],Ni);else!function zo(Bt,Si,Ni,Sn,Dn,Kn,tr,xr,Pa,va,Aa,Ba,ga){var Lo,$a,qs,Mo=0,Ml=xr,gs=xr,el=Kn-xr+1,_s=tr-xr+1,yl=new Int32Array(_s+1),Hs=el===Sn,hl=!1,Os=0,Zl=0;if(Dn<4||(el|_s)<32)for(Mo=Ml;Mo<=Kn;++Mo)if(Lo=Bt[Mo],Zl<_s){for(xr=gs;xr<=tr;xr++)if(Lo.key===($a=Si[xr]).key){if(yl[xr-gs]=Mo+1,Hs)for(Hs=!1;Ml<Mo;)Ur(Bt[Ml++],Pa);Os>xr?hl=!0:Os=xr,16384&$a.flags&&(Si[xr]=$a=Ee($a)),Nn(Lo,$a,Pa,Ni,va,Aa,ga),++Zl;break}!Hs&&xr>tr&&Ur(Lo,Pa)}else Hs||Ur(Lo,Pa);else{var al={};for(Mo=gs;Mo<=tr;++Mo)al[Si[Mo].key]=Mo;for(Mo=Ml;Mo<=Kn;++Mo)if(Lo=Bt[Mo],Zl<_s)if(void 0!==(xr=al[Lo.key])){if(Hs)for(Hs=!1;Mo>Ml;)Ur(Bt[Ml++],Pa);yl[xr-gs]=Mo+1,Os>xr?hl=!0:Os=xr,16384&($a=Si[xr]).flags&&(Si[xr]=$a=Ee($a)),Nn(Lo,$a,Pa,Ni,va,Aa,ga),++Zl}else Hs||Ur(Lo,Pa);else Hs||Ur(Lo,Pa)}if(Hs)sa(Pa,Ba,Bt),jn(Si,Pa,Ni,va,Aa,ga);else if(hl){var xs=function Ql(Bt){var Si=0,Ni=0,Sn=0,Dn=0,Kn=0,tr=0,xr=0,Pa=Bt.length;for(Pa>us&&(us=Pa,Ao=new Int32Array(Pa),Ha=new Int32Array(Pa));Ni<Pa;++Ni)if(0!==(Si=Bt[Ni])){if(Bt[Sn=Ao[Dn]]<Si){Ha[Ni]=Sn,Ao[++Dn]=Ni;continue}for(Kn=0,tr=Dn;Kn<tr;)Bt[Ao[xr=Kn+tr>>1]]<Si?Kn=xr+1:tr=xr;Si<Bt[Ao[Kn]]&&(Kn>0&&(Ha[Ni]=Ao[Kn-1]),Ao[Kn]=Ni)}Kn=Dn+1;var va=new Int32Array(Kn);for(tr=Ao[Kn-1];Kn-- >0;)va[Kn]=tr,tr=Ha[tr],Ao[Kn]=0;return va}(yl);for(xr=xs.length-1,Mo=_s-1;Mo>=0;Mo--)0===yl[Mo]?(16384&($a=Si[Os=Mo+gs]).flags&&(Si[Os]=$a=Ee($a)),si($a,Pa,Ni,va,(qs=Os+1)<Dn?Y(Si[qs],!0):Aa,ga)):xr<0||Mo!==xs[xr]?se($a=Si[Os=Mo+gs],Pa,(qs=Os+1)<Dn?Y(Si[qs],!0):Aa):xr--}else if(Zl!==_s)for(Mo=_s-1;Mo>=0;Mo--)0===yl[Mo]&&(16384&($a=Si[Os=Mo+gs]).flags&&(Si[Os]=$a=Ee($a)),si($a,Pa,Ni,va,(qs=Os+1)<Dn?Y(Si[qs],!0):Aa,ga))}(Bt,Si,Sn,Kn,tr,Aa,Ba,ga,Ni,Dn,xr,Pa,va)}(Ni,Sn,Dn,Kn,tr,Aa,Ba,xr,Pa,va):function fl(Bt,Si,Ni,Sn,Dn,Kn,tr,xr,Pa){for(var Ba,ga,va=Kn>tr?tr:Kn,Aa=0;Aa<va;++Aa)ga=Bt[Aa],16384&(Ba=Si[Aa]).flags&&(Ba=Si[Aa]=Ee(Ba)),Nn(ga,Ba,Ni,Sn,Dn,xr,Pa),Bt[Aa]=Ba;if(Kn<tr)for(Aa=va;Aa<tr;++Aa)16384&(Ba=Si[Aa]).flags&&(Ba=Si[Aa]=Ee(Ba)),si(Ba,Ni,Sn,Dn,xr,Pa);else if(Kn>tr)for(Aa=va;Aa<Kn;++Aa)Ur(Bt[Aa],Ni)}(Ni,Sn,Dn,Kn,tr,Aa,Ba,xr,va)}}}function Va(Bt,Si,Ni,Sn,Dn,Kn,tr,xr,Pa){var va=Bt.state,Aa=Bt.props,Ba=!!Bt.$N,ga=o(Bt.shouldComponentUpdate);if(Ba&&(Si=ie(Bt,Ni,Si!==va?v(va,Si):Si)),tr||!ga||ga&&Bt.shouldComponentUpdate(Ni,Si,Dn)){!Ba&&o(Bt.componentWillUpdate)&&Bt.componentWillUpdate(Ni,Si,Dn),Bt.props=Ni,Bt.state=Si,Bt.context=Dn;var Lo=null,$a=To(Bt,Ni,Dn);Ba&&o(Bt.getSnapshotBeforeUpdate)&&(Lo=Bt.getSnapshotBeforeUpdate(Aa,va)),Nn(Bt.$LI,$a,Sn,Bt.$CX,Kn,xr,Pa),Bt.$LI=$a,o(Bt.componentDidUpdate)&&function Yo(Bt,Si,Ni,Sn,Dn){Dn.push(function(){Bt.componentDidUpdate(Si,Ni,Sn)})}(Bt,Aa,va,Lo,Pa)}else Bt.props=Ni,Bt.state=Si,Bt.context=Dn}var Ao,Ha,us=0;function Wl(Bt,Si,Ni,Sn){void 0===Ni&&(Ni=null),void 0===Sn&&(Sn=b),function El(Bt,Si,Ni,Sn){var Dn=[],Kn=Si.$V;ee.v=!0,L(Kn)?L(Bt)||(16384&Bt.flags&&(Bt=Ee(Bt)),si(Bt,Si,Sn,!1,null,Dn),Si.$V=Bt,Kn=Bt):L(Bt)?(Ur(Kn,Si),Si.$V=null):(16384&Bt.flags&&(Bt=Ee(Bt)),Nn(Kn,Bt,Si,Sn,!1,null,Dn),Kn=Si.$V=Bt),C(Dn),ee.v=!1,o(Ni)&&Ni(),o(re.renderComplete)&&re.renderComplete(Kn,Si)}(Bt,Si,Ni,Sn)}typeof document<"u"&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var rs=[],Ho=typeof Promise<"u"?Promise.resolve().then.bind(Promise.resolve()):function(Bt){window.setTimeout(Bt,0)},Zs=!1;function jl(Bt,Si,Ni,Sn){var Dn=Bt.$PS;if(o(Si)&&(Si=Si(Dn?v(Bt.state,Dn):Bt.state,Bt.props,Bt.context)),L(Dn))Bt.$PS=Si;else for(var Kn in Si)Dn[Kn]=Si[Kn];if(Bt.$BR)o(Ni)&&Bt.$L.push(Ni.bind(Bt));else{if(!ee.v&&0===rs.length)return hs(Bt,Sn),void(o(Ni)&&Ni.call(Bt));if(-1===rs.indexOf(Bt)&&rs.push(Bt),Sn&&(Bt.$F=!0),Zs||(Zs=!0,Ho(Ko)),o(Ni)){var tr=Bt.$QU;tr||(tr=Bt.$QU=[]),tr.push(Ni)}}}function Ms(Bt){for(var Si=Bt.$QU,Ni=0;Ni<Si.length;++Ni)Si[Ni].call(Bt);Bt.$QU=null}function Ko(){var Bt;for(Zs=!1;Bt=rs.shift();)if(!Bt.$UN){var Si=Bt.$F;Bt.$F=!1,hs(Bt,Si),Bt.$QU&&Ms(Bt)}}function hs(Bt,Si){if(Si||!Bt.$BR){var Ni=Bt.$PS;Bt.$PS=null;var Sn=[];ee.v=!0,Va(Bt,v(Bt.state,Ni),Bt.props,Y(Bt.$LI,!0).parentNode,Bt.context,Bt.$SVG,Si,null,Sn),C(Sn),ee.v=!1}else Bt.state=Bt.$PS,Bt.$PS=null}var ws=function(Si,Ni){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=Si||b,this.context=Ni||b};ws.prototype.forceUpdate=function(Si){this.$UN||jl(this,{},Si,!0)},ws.prototype.setState=function(Si,Ni){this.$UN||this.$BS||jl(this,Si,Ni,!1)},ws.prototype.render=function(Si,Ni,Sn){return null}},11544:function(ei,rt,D){!function(r){"use strict";r.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(L){return/^nm$/i.test(L)},meridiem:function(L,j,o){return L<12?o?"vm":"VM":o?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(D(97586))},52155:function(ei,rt,D){!function(r){"use strict";var d=function(R){return 0===R?0:1===R?1:2===R?2:R%100>=3&&R%100<=10?3:R%100>=11?4:5},L={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},j=function(R){return function(m,_,v,h){var s=d(m),b=L[R][d(m)];return 2===s&&(b=b[_?0:1]),b.replace(/%d/i,m)}},o=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];r.defineLocale("ar-dz",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(R){return"\u0645"===R},meridiem:function(R,m,_){return R<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:j("s"),ss:j("s"),m:j("m"),mm:j("m"),h:j("h"),hh:j("h"),d:j("d"),dd:j("d"),M:j("M"),MM:j("M"),y:j("y"),yy:j("y")},postformat:function(R){return R.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(D(97586))},53583:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(D(97586))},41638:function(ei,rt,D){!function(r){"use strict";var d={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},L=function(m){return 0===m?0:1===m?1:2===m?2:m%100>=3&&m%100<=10?3:m%100>=11?4:5},j={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},o=function(m){return function(_,v,h,s){var b=L(_),O=j[m][L(_)];return 2===b&&(O=O[v?0:1]),O.replace(/%d/i,_)}},E=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];r.defineLocale("ar-ly",{months:E,monthsShort:E,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(m){return"\u0645"===m},meridiem:function(m,_,v){return m<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(m){return m.replace(/\u060c/g,",")},postformat:function(m){return m.replace(/\d/g,function(_){return d[_]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(D(97586))},87823:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(D(97586))},7712:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},L={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};r.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(o){return"\u0645"===o},meridiem:function(o,E,R){return o<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(o){return o.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(E){return L[E]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(E){return L[E]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(D(97586))},78261:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},L={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};r.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(o){return"\u0645"===o},meridiem:function(o,E,R){return o<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(o){return o.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(E){return L[E]}).replace(/\u060c/g,",")},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(D(97586))},56703:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(D(97586))},33108:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},L={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},j=function(_){return 0===_?0:1===_?1:2===_?2:_%100>=3&&_%100<=10?3:_%100>=11?4:5},o={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},E=function(_){return function(v,h,s,b){var O=j(v),w=o[_][j(v)];return 2===O&&(w=w[h?0:1]),w.replace(/%d/i,v)}},R=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];r.defineLocale("ar",{months:R,monthsShort:R,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(_){return"\u0645"===_},meridiem:function(_,v,h){return _<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:E("s"),ss:E("s"),m:E("m"),mm:E("m"),h:E("h"),hh:E("h"),d:E("d"),dd:E("d"),M:E("M"),MM:E("M"),y:E("y"),yy:E("y")},preparse:function(_){return _.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(v){return L[v]}).replace(/\u060c/g,",")},postformat:function(_){return _.replace(/\d/g,function(v){return d[v]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(D(97586))},46508:function(ei,rt,D){!function(r){"use strict";var d={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};r.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(j){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(j)},meridiem:function(j,o,E){return j<4?"gec\u0259":j<12?"s\u0259h\u0259r":j<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(j){if(0===j)return j+"-\u0131nc\u0131";var o=j%10;return j+(d[o]||d[j%100-o]||d[j>=100?100:null])},week:{dow:1,doy:7}})}(D(97586))},16766:function(ei,rt,D){!function(r){"use strict";function L(o,E,R){return"m"===R?E?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===R?E?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":o+" "+function d(o,E){var R=o.split("_");return E%10==1&&E%100!=11?R[0]:E%10>=2&&E%10<=4&&(E%100<10||E%100>=20)?R[1]:R[2]}({ss:E?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:E?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:E?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[R],+o)}r.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:L,mm:L,h:L,hh:L,d:"\u0434\u0437\u0435\u043d\u044c",dd:L,M:"\u043c\u0435\u0441\u044f\u0446",MM:L,y:"\u0433\u043e\u0434",yy:L},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(o){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(o)},meridiem:function(o,E,R){return o<4?"\u043d\u043e\u0447\u044b":o<12?"\u0440\u0430\u043d\u0456\u0446\u044b":o<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(o,E){switch(E){case"M":case"d":case"DDD":case"w":case"W":return o%10!=2&&o%10!=3||o%100==12||o%100==13?o+"-\u044b":o+"-\u0456";case"D":return o+"-\u0433\u0430";default:return o}},week:{dow:1,doy:7}})}(D(97586))},28564:function(ei,rt,D){!function(r){"use strict";r.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(L){var j=L%10,o=L%100;return 0===L?L+"-\u0435\u0432":0===o?L+"-\u0435\u043d":o>10&&o<20?L+"-\u0442\u0438":1===j?L+"-\u0432\u0438":2===j?L+"-\u0440\u0438":7===j||8===j?L+"-\u043c\u0438":L+"-\u0442\u0438"},week:{dow:1,doy:7}})}(D(97586))},97462:function(ei,rt,D){!function(r){"use strict";r.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(D(97586))},43438:function(ei,rt,D){!function(r){"use strict";var d={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},L={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};r.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(o){return o.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(E){return L[E]})},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(o,E){return 12===o&&(o=0),"\u09b0\u09be\u09a4"===E?o<4?o:o+12:"\u09ad\u09cb\u09b0"===E||"\u09b8\u0995\u09be\u09b2"===E?o:"\u09a6\u09c1\u09aa\u09c1\u09b0"===E?o>=3?o:o+12:"\u09ac\u09bf\u0995\u09be\u09b2"===E||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===E?o+12:void 0},meridiem:function(o,E,R){return o<4?"\u09b0\u09be\u09a4":o<6?"\u09ad\u09cb\u09b0":o<12?"\u09b8\u0995\u09be\u09b2":o<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":o<18?"\u09ac\u09bf\u0995\u09be\u09b2":o<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(D(97586))},17107:function(ei,rt,D){!function(r){"use strict";var d={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},L={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};r.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(o){return o.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(E){return L[E]})},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(o,E){return 12===o&&(o=0),"\u09b0\u09be\u09a4"===E&&o>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===E&&o<5||"\u09ac\u09bf\u0995\u09be\u09b2"===E?o+12:o},meridiem:function(o,E,R){return o<4?"\u09b0\u09be\u09a4":o<10?"\u09b8\u0995\u09be\u09b2":o<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":o<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(D(97586))},9004:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},L={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};r.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(o){return o.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(E){return L[E]})},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(o,E){return 12===o&&(o=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===E&&o>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===E&&o<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===E?o+12:o},meridiem:function(o,E,R){return o<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":o<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":o<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":o<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(D(97586))},50927:function(ei,rt,D){!function(r){"use strict";function d(w,f,k){return w+" "+function o(w,f){return 2===f?function E(w){var f={m:"v",b:"v",d:"z"};return void 0===f[w.charAt(0)]?w:f[w.charAt(0)]+w.substring(1)}(w):w}({mm:"munutenn",MM:"miz",dd:"devezh"}[k],w)}function j(w){return w>9?j(w%10):w}var R=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],m=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,b=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];r.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:b,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:b,monthsRegex:m,monthsShortRegex:m,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:R,longMonthsParse:R,shortMonthsParse:R,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:d,h:"un eur",hh:"%d eur",d:"un devezh",dd:d,M:"ur miz",MM:d,y:"ur bloaz",yy:function L(w){switch(j(w)){case 1:case 3:case 4:case 5:case 9:return w+" bloaz";default:return w+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(w){return w+(1===w?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(w){return"g.m."===w},meridiem:function(w,f,k){return w<12?"a.m.":"g.m."}})}(D(97586))},87768:function(ei,rt,D){!function(r){"use strict";function L(o,E,R){var m=o+" ";switch(R){case"ss":return m+(1===o?"sekunda":2===o||3===o||4===o?"sekunde":"sekundi");case"mm":return m+(1===o?"minuta":2===o||3===o||4===o?"minute":"minuta");case"h":return"jedan sat";case"hh":return m+(1===o?"sat":2===o||3===o||4===o?"sata":"sati");case"dd":return m+(1===o?"dan":"dana");case"MM":return m+(1===o?"mjesec":2===o||3===o||4===o?"mjeseca":"mjeseci");case"yy":return m+(1===o?"godina":2===o||3===o||4===o?"godine":"godina")}}r.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:L,m:function d(o,E,R,m){if("m"===R)return E?"jedna minuta":m?"jednu minutu":"jedne minute"},mm:L,h:L,hh:L,d:"dan",dd:L,M:"mjesec",MM:L,y:"godinu",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(D(97586))},56291:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(L,j){var o=1===L?"r":2===L?"n":3===L?"r":4===L?"t":"\xe8";return("w"===j||"W"===j)&&(o="a"),L+o},week:{dow:1,doy:4}})}(D(97586))},85301:function(ei,rt,D){!function(r){"use strict";var d={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},L="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),j=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],o=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function E(_){return _>1&&_<5&&1!=~~(_/10)}function R(_,v,h,s){var b=_+" ";switch(h){case"s":return v||s?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return v||s?b+(E(_)?"sekundy":"sekund"):b+"sekundami";case"m":return v?"minuta":s?"minutu":"minutou";case"mm":return v||s?b+(E(_)?"minuty":"minut"):b+"minutami";case"h":return v?"hodina":s?"hodinu":"hodinou";case"hh":return v||s?b+(E(_)?"hodiny":"hodin"):b+"hodinami";case"d":return v||s?"den":"dnem";case"dd":return v||s?b+(E(_)?"dny":"dn\xed"):b+"dny";case"M":return v||s?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return v||s?b+(E(_)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):b+"m\u011bs\xedci";case"y":return v||s?"rok":"rokem";case"yy":return v||s?b+(E(_)?"roky":"let"):b+"lety"}}r.defineLocale("cs",{months:d,monthsShort:L,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:j,longMonthsParse:j,shortMonthsParse:j,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:R,ss:R,m:R,mm:R,h:R,hh:R,d:R,dd:R,M:R,MM:R,y:R,yy:R},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},66666:function(ei,rt,D){!function(r){"use strict";r.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(L){return L+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(L)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(L)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(D(97586))},55163:function(ei,rt,D){!function(r){"use strict";r.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(L){var o="";return L>20?o=40===L||50===L||60===L||80===L||100===L?"fed":"ain":L>0&&(o=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][L]),L+o},week:{dow:1,doy:4}})}(D(97586))},87360:function(ei,rt,D){!function(r){"use strict";r.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},43248:function(ei,rt,D){!function(r){"use strict";function d(j,o,E,R){var m={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[j+" Tage",j+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[j+" Monate",j+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[j+" Jahre",j+" Jahren"]};return o?m[E][0]:m[E][1]}r.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:d,mm:"%d Minuten",h:d,hh:"%d Stunden",d,dd:d,w:d,ww:"%d Wochen",M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},83222:function(ei,rt,D){!function(r){"use strict";function d(j,o,E,R){var m={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[j+" Tage",j+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[j+" Monate",j+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[j+" Jahre",j+" Jahren"]};return o?m[E][0]:m[E][1]}r.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:d,mm:"%d Minuten",h:d,hh:"%d Stunden",d,dd:d,w:d,ww:"%d Wochen",M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},45932:function(ei,rt,D){!function(r){"use strict";function d(j,o,E,R){var m={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[j+" Tage",j+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[j+" Monate",j+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[j+" Jahre",j+" Jahren"]};return o?m[E][0]:m[E][1]}r.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:d,mm:"%d Minuten",h:d,hh:"%d Stunden",d,dd:d,w:d,ww:"%d Wochen",M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},6405:function(ei,rt,D){!function(r){"use strict";var d=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],L=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];r.defineLocale("dv",{months:d,monthsShort:d,weekdays:L,weekdaysShort:L,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(o){return"\u0789\u078a"===o},meridiem:function(o,E,R){return o<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(o){return o.replace(/\u060c/g,",")},postformat:function(o){return o.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(D(97586))},60718:function(ei,rt,D){!function(r){"use strict";r.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(j,o){return j?"string"==typeof o&&/D/.test(o.substring(0,o.indexOf("MMMM")))?this._monthsGenitiveEl[j.month()]:this._monthsNominativeEl[j.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(j,o,E){return j>11?E?"\u03bc\u03bc":"\u039c\u039c":E?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(j){return"\u03bc"===(j+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(j,o){var E=this._calendarEl[j],R=o&&o.hours();return function d(j){return typeof Function<"u"&&j instanceof Function||"[object Function]"===Object.prototype.toString.call(j)}(E)&&(E=E.apply(o)),E.replace("{}",R%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(D(97586))},36319:function(ei,rt,D){!function(r){"use strict";r.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(L){var j=L%10;return L+(1==~~(L%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")},week:{dow:0,doy:4}})}(D(97586))},80597:function(ei,rt,D){!function(r){"use strict";r.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(L){var j=L%10;return L+(1==~~(L%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")}})}(D(97586))},51800:function(ei,rt,D){!function(r){"use strict";r.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(L){var j=L%10;return L+(1==~~(L%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")},week:{dow:1,doy:4}})}(D(97586))},807:function(ei,rt,D){!function(r){"use strict";r.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(L){var j=L%10;return L+(1==~~(L%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")},week:{dow:1,doy:4}})}(D(97586))},95960:function(ei,rt,D){!function(r){"use strict";r.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(L){var j=L%10;return L+(1==~~(L%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")}})}(D(97586))},84418:function(ei,rt,D){!function(r){"use strict";r.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(L){var j=L%10;return L+(1==~~(L%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")},week:{dow:0,doy:6}})}(D(97586))},46865:function(ei,rt,D){!function(r){"use strict";r.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(L){var j=L%10;return L+(1==~~(L%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")},week:{dow:1,doy:4}})}(D(97586))},32647:function(ei,rt,D){!function(r){"use strict";r.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(L){var j=L%10;return L+(1==~~(L%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")},week:{dow:1,doy:4}})}(D(97586))},61931:function(ei,rt,D){!function(r){"use strict";r.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(L){return"p"===L.charAt(0).toLowerCase()},meridiem:function(L,j,o){return L>11?o?"p.t.m.":"P.T.M.":o?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(D(97586))},41805:function(ei,rt,D){!function(r){"use strict";var d="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),L="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),j=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;r.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,m){return R?/-MMM-/.test(m)?L[R.month()]:d[R.month()]:d},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:j,longMonthsParse:j,shortMonthsParse:j,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(D(97586))},83445:function(ei,rt,D){!function(r){"use strict";var d="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),L="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),j=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;r.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,m){return R?/-MMM-/.test(m)?L[R.month()]:d[R.month()]:d},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:j,longMonthsParse:j,shortMonthsParse:j,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(D(97586))},81516:function(ei,rt,D){!function(r){"use strict";var d="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),L="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),j=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;r.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,m){return R?/-MMM-/.test(m)?L[R.month()]:d[R.month()]:d},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:j,longMonthsParse:j,shortMonthsParse:j,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(D(97586))},46679:function(ei,rt,D){!function(r){"use strict";var d="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),L="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),j=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;r.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,m){return R?/-MMM-/.test(m)?L[R.month()]:d[R.month()]:d},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:j,longMonthsParse:j,shortMonthsParse:j,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(D(97586))},88150:function(ei,rt,D){!function(r){"use strict";function d(j,o,E,R){var m={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[j+"sekundi",j+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[j+" minuti",j+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[j+" tunni",j+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[j+" kuu",j+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[j+" aasta",j+" aastat"]};return o?m[E][2]?m[E][2]:m[E][1]:R?m[E][0]:m[E][1]}r.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:d,ss:d,m:d,mm:d,h:d,hh:d,d,dd:"%d p\xe4eva",M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},80757:function(ei,rt,D){!function(r){"use strict";r.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(D(97586))},65742:function(ei,rt,D){!function(r){"use strict";var d={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},L={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};r.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(o){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(o)},meridiem:function(o,E,R){return o<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(o){return o.replace(/[\u06f0-\u06f9]/g,function(E){return L[E]}).replace(/\u060c/g,",")},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(D(97586))},33958:function(ei,rt,D){!function(r){"use strict";var d="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),L=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",d[7],d[8],d[9]];function j(R,m,_,v){var h="";switch(_){case"s":return v?"muutaman sekunnin":"muutama sekunti";case"ss":h=v?"sekunnin":"sekuntia";break;case"m":return v?"minuutin":"minuutti";case"mm":h=v?"minuutin":"minuuttia";break;case"h":return v?"tunnin":"tunti";case"hh":h=v?"tunnin":"tuntia";break;case"d":return v?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":h=v?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return v?"kuukauden":"kuukausi";case"MM":h=v?"kuukauden":"kuukautta";break;case"y":return v?"vuoden":"vuosi";case"yy":h=v?"vuoden":"vuotta"}return function o(R,m){return R<10?m?L[R]:d[R]:R}(R,v)+" "+h}r.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:j,ss:j,m:j,mm:j,h:j,hh:j,d:j,dd:j,M:j,MM:j,y:j,yy:j},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},46720:function(ei,rt,D){!function(r){"use strict";r.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(L){return L},week:{dow:1,doy:4}})}(D(97586))},98352:function(ei,rt,D){!function(r){"use strict";r.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},42096:function(ei,rt,D){!function(r){"use strict";r.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(L,j){switch(j){default:case"M":case"Q":case"D":case"DDD":case"d":return L+(1===L?"er":"e");case"w":case"W":return L+(1===L?"re":"e")}}})}(D(97586))},95759:function(ei,rt,D){!function(r){"use strict";r.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(L,j){switch(j){default:case"M":case"Q":case"D":case"DDD":case"d":return L+(1===L?"er":"e");case"w":case"W":return L+(1===L?"re":"e")}},week:{dow:1,doy:4}})}(D(97586))},4059:function(ei,rt,D){!function(r){"use strict";var j=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,o=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];r.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:j,monthsShortRegex:j,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(R,m){switch(m){case"D":return R+(1===R?"er":"");default:case"M":case"Q":case"DDD":case"d":return R+(1===R?"er":"e");case"w":case"W":return R+(1===R?"re":"e")}},week:{dow:1,doy:4}})}(D(97586))},15958:function(ei,rt,D){!function(r){"use strict";var d="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),L="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");r.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(o,E){return o?/-MMM-/.test(E)?L[o.month()]:d[o.month()]:d},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(o){return o+(1===o||8===o||o>=20?"ste":"de")},week:{dow:1,doy:4}})}(D(97586))},94143:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(m){return m+(1===m?"d":m%10==2?"na":"mh")},week:{dow:1,doy:4}})}(D(97586))},67028:function(ei,rt,D){!function(r){"use strict";r.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(m){return m+(1===m?"d":m%10==2?"na":"mh")},week:{dow:1,doy:4}})}(D(97586))},80428:function(ei,rt,D){!function(r){"use strict";r.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(L){return 0===L.indexOf("un")?"n"+L:"en "+L},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(D(97586))},76861:function(ei,rt,D){!function(r){"use strict";function d(j,o,E,R){var m={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[j+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",j+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[j+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",j+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[j+" \u0935\u0930\u093e\u0902\u0928\u0940",j+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[j+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",j+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[j+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",j+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[j+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",j+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return R?m[E][0]:m[E][1]}r.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:d,ss:d,m:d,mm:d,h:d,hh:d,d,dd:d,M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(j,o){return"D"===o?j+"\u0935\u0947\u0930":j},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(j,o){return 12===j&&(j=0),"\u0930\u093e\u0924\u0940"===o?j<4?j:j+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===o?j:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===o?j>12?j:j+12:"\u0938\u093e\u0902\u091c\u0947"===o?j+12:void 0},meridiem:function(j,o,E){return j<4?"\u0930\u093e\u0924\u0940":j<12?"\u0938\u0915\u093e\u0933\u0940\u0902":j<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":j<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(D(97586))},57718:function(ei,rt,D){!function(r){"use strict";function d(j,o,E,R){var m={s:["thoddea sekondamni","thodde sekond"],ss:[j+" sekondamni",j+" sekond"],m:["eka mintan","ek minut"],mm:[j+" mintamni",j+" mintam"],h:["eka voran","ek vor"],hh:[j+" voramni",j+" voram"],d:["eka disan","ek dis"],dd:[j+" disamni",j+" dis"],M:["eka mhoinean","ek mhoino"],MM:[j+" mhoineamni",j+" mhoine"],y:["eka vorsan","ek voros"],yy:[j+" vorsamni",j+" vorsam"]};return R?m[E][0]:m[E][1]}r.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:d,ss:d,m:d,mm:d,h:d,hh:d,d,dd:d,M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(j,o){return"D"===o?j+"er":j},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(j,o){return 12===j&&(j=0),"rati"===o?j<4?j:j+12:"sokallim"===o?j:"donparam"===o?j>12?j:j+12:"sanje"===o?j+12:void 0},meridiem:function(j,o,E){return j<4?"rati":j<12?"sokallim":j<16?"donparam":j<20?"sanje":"rati"}})}(D(97586))},26827:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},L={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};r.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(o){return o.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(E){return L[E]})},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(o,E){return 12===o&&(o=0),"\u0ab0\u0abe\u0aa4"===E?o<4?o:o+12:"\u0ab8\u0ab5\u0abe\u0ab0"===E?o:"\u0aac\u0aaa\u0acb\u0ab0"===E?o>=10?o:o+12:"\u0ab8\u0abe\u0a82\u0a9c"===E?o+12:void 0},meridiem:function(o,E,R){return o<4?"\u0ab0\u0abe\u0aa4":o<10?"\u0ab8\u0ab5\u0abe\u0ab0":o<17?"\u0aac\u0aaa\u0acb\u0ab0":o<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(D(97586))},21936:function(ei,rt,D){!function(r){"use strict";r.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(L){return 2===L?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":L+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(L){return 2===L?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":L+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(L){return 2===L?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":L+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(L){return 2===L?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":L%10==0&&10!==L?L+" \u05e9\u05e0\u05d4":L+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(L){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(L)},meridiem:function(L,j,o){return L<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":L<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":L<12?o?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":L<18?o?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(D(97586))},31332:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},L={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},j=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];r.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:j,longMonthsParse:j,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(R){return R.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(m){return L[m]})},postformat:function(R){return R.replace(/\d/g,function(m){return d[m]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(R,m){return 12===R&&(R=0),"\u0930\u093e\u0924"===m?R<4?R:R+12:"\u0938\u0941\u092c\u0939"===m?R:"\u0926\u094b\u092a\u0939\u0930"===m?R>=10?R:R+12:"\u0936\u093e\u092e"===m?R+12:void 0},meridiem:function(R,m,_){return R<4?"\u0930\u093e\u0924":R<10?"\u0938\u0941\u092c\u0939":R<17?"\u0926\u094b\u092a\u0939\u0930":R<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(D(97586))},91957:function(ei,rt,D){!function(r){"use strict";function d(j,o,E){var R=j+" ";switch(E){case"ss":return R+(1===j?"sekunda":2===j||3===j||4===j?"sekunde":"sekundi");case"m":return o?"jedna minuta":"jedne minute";case"mm":return R+(1===j?"minuta":2===j||3===j||4===j?"minute":"minuta");case"h":return o?"jedan sat":"jednog sata";case"hh":return R+(1===j?"sat":2===j||3===j||4===j?"sata":"sati");case"dd":return R+(1===j?"dan":"dana");case"MM":return R+(1===j?"mjesec":2===j||3===j||4===j?"mjeseca":"mjeseci");case"yy":return R+(1===j?"godina":2===j||3===j||4===j?"godine":"godina")}}r.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:d,m:d,mm:d,h:d,hh:d,d:"dan",dd:d,M:"mjesec",MM:d,y:"godinu",yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(D(97586))},48928:function(ei,rt,D){!function(r){"use strict";var d="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function L(E,R,m,_){var v=E;switch(m){case"s":return _||R?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return v+(_||R)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(_||R?" perc":" perce");case"mm":return v+(_||R?" perc":" perce");case"h":return"egy"+(_||R?" \xf3ra":" \xf3r\xe1ja");case"hh":return v+(_||R?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(_||R?" nap":" napja");case"dd":return v+(_||R?" nap":" napja");case"M":return"egy"+(_||R?" h\xf3nap":" h\xf3napja");case"MM":return v+(_||R?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(_||R?" \xe9v":" \xe9ve");case"yy":return v+(_||R?" \xe9v":" \xe9ve")}return""}function j(E){return(E?"":"[m\xfalt] ")+"["+d[this.day()]+"] LT[-kor]"}r.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(E){return"u"===E.charAt(1).toLowerCase()},meridiem:function(E,R,m){return E<12?!0===m?"de":"DE":!0===m?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return j.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return j.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},56215:function(ei,rt,D){!function(r){"use strict";r.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(L){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(L)},meridiem:function(L){return L<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":L<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":L<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(L,j){switch(j){case"DDD":case"w":case"W":case"DDDo":return 1===L?L+"-\u056b\u0576":L+"-\u0580\u0564";default:return L}},week:{dow:1,doy:7}})}(D(97586))},586:function(ei,rt,D){!function(r){"use strict";r.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(L,j){return 12===L&&(L=0),"pagi"===j?L:"siang"===j?L>=11?L:L+12:"sore"===j||"malam"===j?L+12:void 0},meridiem:function(L,j,o){return L<11?"pagi":L<15?"siang":L<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(D(97586))},90211:function(ei,rt,D){!function(r){"use strict";function d(o){return o%100==11||o%10!=1}function L(o,E,R,m){var _=o+" ";switch(R){case"s":return E||m?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return d(o)?_+(E||m?"sek\xfandur":"sek\xfandum"):_+"sek\xfanda";case"m":return E?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return d(o)?_+(E||m?"m\xedn\xfatur":"m\xedn\xfatum"):E?_+"m\xedn\xfata":_+"m\xedn\xfatu";case"hh":return d(o)?_+(E||m?"klukkustundir":"klukkustundum"):_+"klukkustund";case"d":return E?"dagur":m?"dag":"degi";case"dd":return d(o)?E?_+"dagar":_+(m?"daga":"d\xf6gum"):E?_+"dagur":_+(m?"dag":"degi");case"M":return E?"m\xe1nu\xf0ur":m?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return d(o)?E?_+"m\xe1nu\xf0ir":_+(m?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):E?_+"m\xe1nu\xf0ur":_+(m?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return E||m?"\xe1r":"\xe1ri";case"yy":return d(o)?_+(E||m?"\xe1r":"\xe1rum"):_+(E||m?"\xe1r":"\xe1ri")}}r.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:L,ss:L,m:L,mm:L,h:"klukkustund",hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},22340:function(ei,rt,D){!function(r){"use strict";r.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(L){return(/^[0-9].+$/.test(L)?"tra":"in")+" "+L},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(D(97586))},70170:function(ei,rt,D){!function(r){"use strict";r.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(D(97586))},39770:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(L,j){return"\u5143"===j[1]?1:parseInt(j[1]||L,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(L){return"\u5348\u5f8c"===L},meridiem:function(L,j,o){return L<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(L){return L.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(L){return this.week()!==L.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(L,j){switch(j){case"y":return 1===L?"\u5143\u5e74":L+"\u5e74";case"d":case"D":case"DDD":return L+"\u65e5";default:return L}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(D(97586))},73875:function(ei,rt,D){!function(r){"use strict";r.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(L,j){return 12===L&&(L=0),"enjing"===j?L:"siyang"===j?L>=11?L:L+12:"sonten"===j||"ndalu"===j?L+12:void 0},meridiem:function(L,j,o){return L<11?"enjing":L<15?"siyang":L<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(D(97586))},79499:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(L){return L.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(j,o,E){return"\u10d8"===E?o+"\u10e8\u10d8":o+E+"\u10e8\u10d8"})},past:function(L){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(L)?L.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(L)?L.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):L},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(L){return 0===L?L:1===L?L+"-\u10da\u10d8":L<20||L<=100&&L%20==0||L%100==0?"\u10db\u10d4-"+L:L+"-\u10d4"},week:{dow:1,doy:7}})}(D(97586))},93573:function(ei,rt,D){!function(r){"use strict";var d={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};r.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(j){return j+(d[j]||d[j%10]||d[j>=100?100:null])},week:{dow:1,doy:7}})}(D(97586))},68807:function(ei,rt,D){!function(r){"use strict";var d={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},L={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};r.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(o){return"\u179b\u17d2\u1784\u17b6\u1785"===o},meridiem:function(o,E,R){return o<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(o){return o.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(E){return L[E]})},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]})},week:{dow:1,doy:4}})}(D(97586))},65082:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},L={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};r.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(o){return o.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(E){return L[E]})},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(o,E){return 12===o&&(o=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===E?o<4?o:o+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===E?o:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===E?o>=10?o:o+12:"\u0cb8\u0c82\u0c9c\u0cc6"===E?o+12:void 0},meridiem:function(o,E,R){return o<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":o<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":o<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":o<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(o){return o+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(D(97586))},20137:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(L,j){switch(j){case"d":case"D":case"DDD":return L+"\uc77c";case"M":return L+"\uc6d4";case"w":case"W":return L+"\uc8fc";default:return L}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(L){return"\uc624\ud6c4"===L},meridiem:function(L,j,o){return L<12?"\uc624\uc804":"\uc624\ud6c4"}})}(D(97586))},63744:function(ei,rt,D){!function(r){"use strict";function d(o,E,R,m){var _={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[o+" san\xeeye",o+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[o+" deq\xeeqe",o+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[o+" saet",o+" saetan"],d:["rojek","rojek\xea"],dd:[o+" roj",o+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[o+" hefte",o+" hefteyan"],M:["mehek","mehek\xea"],MM:[o+" meh",o+" mehan"],y:["salek","salek\xea"],yy:[o+" sal",o+" salan"]};return E?_[R][0]:_[R][1]}r.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(o,E,R){return o<12?R?"bn":"BN":R?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:d,ss:d,m:d,mm:d,h:d,hh:d,d,dd:d,w:d,ww:d,M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(o,E){var R=E.toLowerCase();return R.includes("w")||R.includes("m")?o+".":o+function L(o){var E=(o=""+o).substring(o.length-1),R=o.length>1?o.substring(o.length-2):"";return 12==R||13==R||"2"!=E&&"3"!=E&&"50"!=R&&"70"!=E&&"80"!=E?"\xea":"y\xea"}(o)},week:{dow:1,doy:4}})}(D(97586))},70111:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},L={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},j=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];r.defineLocale("ku",{months:j,monthsShort:j,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(E){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(E)},meridiem:function(E,R,m){return E<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(E){return E.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(R){return L[R]}).replace(/\u060c/g,",")},postformat:function(E){return E.replace(/\d/g,function(R){return d[R]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(D(97586))},99187:function(ei,rt,D){!function(r){"use strict";var d={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};r.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(j){return j+(d[j]||d[j%10]||d[j>=100?100:null])},week:{dow:1,doy:7}})}(D(97586))},35969:function(ei,rt,D){!function(r){"use strict";function d(R,m,_,v){var h={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return m?h[_][0]:h[_][1]}function o(R){if(R=parseInt(R,10),isNaN(R))return!1;if(R<0)return!0;if(R<10)return 4<=R&&R<=7;if(R<100){var m=R%10;return o(0===m?R/10:m)}if(R<1e4){for(;R>=10;)R/=10;return o(R)}return o(R/=1e3)}r.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function L(R){return o(R.substr(0,R.indexOf(" ")))?"a "+R:"an "+R},past:function j(R){return o(R.substr(0,R.indexOf(" ")))?"viru "+R:"virun "+R},s:"e puer Sekonnen",ss:"%d Sekonnen",m:d,mm:"%d Minutten",h:d,hh:"%d Stonnen",d,dd:"%d Deeg",M:d,MM:"%d M\xe9int",y:d,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},33526:function(ei,rt,D){!function(r){"use strict";r.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(L){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===L},meridiem:function(L,j,o){return L<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(L){return"\u0e97\u0eb5\u0ec8"+L}})}(D(97586))},90411:function(ei,rt,D){!function(r){"use strict";var d={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function j(_,v,h,s){return v?E(h)[0]:s?E(h)[1]:E(h)[2]}function o(_){return _%10==0||_>10&&_<20}function E(_){return d[_].split("_")}function R(_,v,h,s){var b=_+" ";return 1===_?b+j(0,v,h[0],s):v?b+(o(_)?E(h)[1]:E(h)[0]):s?b+E(h)[1]:b+(o(_)?E(h)[1]:E(h)[2])}r.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function L(_,v,h,s){return v?"kelios sekund\u0117s":s?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:R,m:j,mm:R,h:j,hh:R,d:j,dd:R,M:j,MM:R,y:j,yy:R},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(_){return _+"-oji"},week:{dow:1,doy:4}})}(D(97586))},32621:function(ei,rt,D){!function(r){"use strict";var d={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function L(m,_,v){return v?_%10==1&&_%100!=11?m[2]:m[3]:_%10==1&&_%100!=11?m[0]:m[1]}function j(m,_,v){return m+" "+L(d[v],m,_)}function o(m,_,v){return L(d[v],m,_)}r.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function E(m,_){return _?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:j,m:o,mm:j,h:o,hh:j,d:o,dd:j,M:o,MM:j,y:o,yy:j},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},85869:function(ei,rt,D){!function(r){"use strict";var d={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(j,o){return 1===j?o[0]:j>=2&&j<=4?o[1]:o[2]},translate:function(j,o,E){var R=d.words[E];return 1===E.length?o?R[0]:R[1]:j+" "+d.correctGrammaticalCase(j,R)}};r.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:d.translate,m:d.translate,mm:d.translate,h:d.translate,hh:d.translate,d:"dan",dd:d.translate,M:"mjesec",MM:d.translate,y:"godinu",yy:d.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(D(97586))},35881:function(ei,rt,D){!function(r){"use strict";r.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(D(97586))},92391:function(ei,rt,D){!function(r){"use strict";r.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(L){var j=L%10,o=L%100;return 0===L?L+"-\u0435\u0432":0===o?L+"-\u0435\u043d":o>10&&o<20?L+"-\u0442\u0438":1===j?L+"-\u0432\u0438":2===j?L+"-\u0440\u0438":7===j||8===j?L+"-\u043c\u0438":L+"-\u0442\u0438"},week:{dow:1,doy:7}})}(D(97586))},21126:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(L,j){return 12===L&&(L=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===j&&L>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===j||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===j?L+12:L},meridiem:function(L,j,o){return L<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":L<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":L<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":L<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(D(97586))},44892:function(ei,rt,D){!function(r){"use strict";function d(j,o,E,R){switch(E){case"s":return o?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return j+(o?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return j+(o?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return j+(o?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return j+(o?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return j+(o?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return j+(o?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return j}}r.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(j){return"\u04ae\u0425"===j},meridiem:function(j,o,E){return j<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:d,ss:d,m:d,mm:d,h:d,hh:d,d,dd:d,M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(j,o){switch(o){case"d":case"D":case"DDD":return j+" \u04e9\u0434\u04e9\u0440";default:return j}}})}(D(97586))},59080:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},L={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function j(E,R,m,_){var v="";if(R)switch(m){case"s":v="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":v="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":v="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":v="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":v="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":v="%d \u0924\u093e\u0938";break;case"d":v="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":v="%d \u0926\u093f\u0935\u0938";break;case"M":v="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":v="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":v="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":v="%d \u0935\u0930\u094d\u0937\u0947"}else switch(m){case"s":v="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":v="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":v="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":v="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":v="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":v="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":v="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":v="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":v="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":v="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":v="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":v="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return v.replace(/%d/i,E)}r.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:j,ss:j,m:j,mm:j,h:j,hh:j,d:j,dd:j,M:j,MM:j,y:j,yy:j},preparse:function(E){return E.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(R){return L[R]})},postformat:function(E){return E.replace(/\d/g,function(R){return d[R]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(E,R){return 12===E&&(E=0),"\u092a\u0939\u093e\u091f\u0947"===R||"\u0938\u0915\u093e\u0933\u0940"===R?E:"\u0926\u0941\u092a\u093e\u0930\u0940"===R||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===R||"\u0930\u093e\u0924\u094d\u0930\u0940"===R?E>=12?E:E+12:void 0},meridiem:function(E,R,m){return E>=0&&E<6?"\u092a\u0939\u093e\u091f\u0947":E<12?"\u0938\u0915\u093e\u0933\u0940":E<17?"\u0926\u0941\u092a\u093e\u0930\u0940":E<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(D(97586))},25950:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(L,j){return 12===L&&(L=0),"pagi"===j?L:"tengahari"===j?L>=11?L:L+12:"petang"===j||"malam"===j?L+12:void 0},meridiem:function(L,j,o){return L<11?"pagi":L<15?"tengahari":L<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(D(97586))},70399:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(L,j){return 12===L&&(L=0),"pagi"===j?L:"tengahari"===j?L>=11?L:L+12:"petang"===j||"malam"===j?L+12:void 0},meridiem:function(L,j,o){return L<11?"pagi":L<15?"tengahari":L<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(D(97586))},79902:function(ei,rt,D){!function(r){"use strict";r.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(D(97586))},72985:function(ei,rt,D){!function(r){"use strict";var d={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},L={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};r.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(o){return o.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(E){return L[E]})},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]})},week:{dow:1,doy:4}})}(D(97586))},67859:function(ei,rt,D){!function(r){"use strict";r.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},13642:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},L={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};r.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(o){return o.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(E){return L[E]})},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(o,E){return 12===o&&(o=0),"\u0930\u093e\u0924\u093f"===E?o<4?o:o+12:"\u092c\u093f\u0939\u093e\u0928"===E?o:"\u0926\u093f\u0909\u0901\u0938\u094b"===E?o>=10?o:o+12:"\u0938\u093e\u0901\u091d"===E?o+12:void 0},meridiem:function(o,E,R){return o<3?"\u0930\u093e\u0924\u093f":o<12?"\u092c\u093f\u0939\u093e\u0928":o<16?"\u0926\u093f\u0909\u0901\u0938\u094b":o<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(D(97586))},99875:function(ei,rt,D){!function(r){"use strict";var d="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),L="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),j=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;r.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,m){return R?/-MMM-/.test(m)?L[R.month()]:d[R.month()]:d},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:j,longMonthsParse:j,shortMonthsParse:j,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(D(97586))},65441:function(ei,rt,D){!function(r){"use strict";var d="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),L="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),j=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;r.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,m){return R?/-MMM-/.test(m)?L[R.month()]:d[R.month()]:d},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:j,longMonthsParse:j,shortMonthsParse:j,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(D(97586))},81311:function(ei,rt,D){!function(r){"use strict";r.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},72567:function(ei,rt,D){!function(r){"use strict";r.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(L,j){var o=1===L?"r":2===L?"n":3===L?"r":4===L?"t":"\xe8";return("w"===j||"W"===j)&&(o="a"),L+o},week:{dow:1,doy:4}})}(D(97586))},56962:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},L={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};r.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(o){return o.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(E){return L[E]})},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(o,E){return 12===o&&(o=0),"\u0a30\u0a3e\u0a24"===E?o<4?o:o+12:"\u0a38\u0a35\u0a47\u0a30"===E?o:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===E?o>=10?o:o+12:"\u0a38\u0a3c\u0a3e\u0a2e"===E?o+12:void 0},meridiem:function(o,E,R){return o<4?"\u0a30\u0a3e\u0a24":o<10?"\u0a38\u0a35\u0a47\u0a30":o<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":o<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(D(97586))},61063:function(ei,rt,D){!function(r){"use strict";var d="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),L="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),j=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function o(m){return m%10<5&&m%10>1&&~~(m/10)%10!=1}function E(m,_,v){var h=m+" ";switch(v){case"ss":return h+(o(m)?"sekundy":"sekund");case"m":return _?"minuta":"minut\u0119";case"mm":return h+(o(m)?"minuty":"minut");case"h":return _?"godzina":"godzin\u0119";case"hh":return h+(o(m)?"godziny":"godzin");case"ww":return h+(o(m)?"tygodnie":"tygodni");case"MM":return h+(o(m)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return h+(o(m)?"lata":"lat")}}r.defineLocale("pl",{months:function(m,_){return m?/D MMMM/.test(_)?L[m.month()]:d[m.month()]:d},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:j,longMonthsParse:j,shortMonthsParse:j,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:E,m:E,mm:E,h:E,hh:E,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:E,M:"miesi\u0105c",MM:E,y:"rok",yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},97476:function(ei,rt,D){!function(r){"use strict";r.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(D(97586))},78719:function(ei,rt,D){!function(r){"use strict";r.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(D(97586))},51004:function(ei,rt,D){!function(r){"use strict";function d(j,o,E){var m=" ";return(j%100>=20||j>=100&&j%100==0)&&(m=" de "),j+m+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[E]}r.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:d,m:"un minut",mm:d,h:"o or\u0103",hh:d,d:"o zi",dd:d,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:d,M:"o lun\u0103",MM:d,y:"un an",yy:d},week:{dow:1,doy:7}})}(D(97586))},51326:function(ei,rt,D){!function(r){"use strict";function L(E,R,m){return"m"===m?R?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":E+" "+function d(E,R){var m=E.split("_");return R%10==1&&R%100!=11?m[0]:R%10>=2&&R%10<=4&&(R%100<10||R%100>=20)?m[1]:m[2]}({ss:R?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:R?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[m],+E)}var j=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];r.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:j,longMonthsParse:j,shortMonthsParse:j,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(E){if(E.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(E){if(E.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:L,m:L,mm:L,h:"\u0447\u0430\u0441",hh:L,d:"\u0434\u0435\u043d\u044c",dd:L,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:L,M:"\u043c\u0435\u0441\u044f\u0446",MM:L,y:"\u0433\u043e\u0434",yy:L},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(E){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(E)},meridiem:function(E,R,m){return E<4?"\u043d\u043e\u0447\u0438":E<12?"\u0443\u0442\u0440\u0430":E<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(E,R){switch(R){case"M":case"d":case"DDD":return E+"-\u0439";case"D":return E+"-\u0433\u043e";case"w":case"W":return E+"-\u044f";default:return E}},week:{dow:1,doy:4}})}(D(97586))},72608:function(ei,rt,D){!function(r){"use strict";var d=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],L=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];r.defineLocale("sd",{months:d,monthsShort:d,weekdays:L,weekdaysShort:L,weekdaysMin:L,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(o){return"\u0634\u0627\u0645"===o},meridiem:function(o,E,R){return o<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(o){return o.replace(/\u060c/g,",")},postformat:function(o){return o.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(D(97586))},13911:function(ei,rt,D){!function(r){"use strict";r.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},25147:function(ei,rt,D){!function(r){"use strict";r.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(L){return L+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(L){return"\u0db4.\u0dc0."===L||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===L},meridiem:function(L,j,o){return L>11?o?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":o?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(D(97586))},23741:function(ei,rt,D){!function(r){"use strict";var d="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),L="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function j(R){return R>1&&R<5}function o(R,m,_,v){var h=R+" ";switch(_){case"s":return m||v?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return m||v?h+(j(R)?"sekundy":"sek\xfand"):h+"sekundami";case"m":return m?"min\xfata":v?"min\xfatu":"min\xfatou";case"mm":return m||v?h+(j(R)?"min\xfaty":"min\xfat"):h+"min\xfatami";case"h":return m?"hodina":v?"hodinu":"hodinou";case"hh":return m||v?h+(j(R)?"hodiny":"hod\xedn"):h+"hodinami";case"d":return m||v?"de\u0148":"d\u0148om";case"dd":return m||v?h+(j(R)?"dni":"dn\xed"):h+"d\u0148ami";case"M":return m||v?"mesiac":"mesiacom";case"MM":return m||v?h+(j(R)?"mesiace":"mesiacov"):h+"mesiacmi";case"y":return m||v?"rok":"rokom";case"yy":return m||v?h+(j(R)?"roky":"rokov"):h+"rokmi"}}r.defineLocale("sk",{months:d,monthsShort:L,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},93e3:function(ei,rt,D){!function(r){"use strict";function d(j,o,E,R){var m=j+" ";switch(E){case"s":return o||R?"nekaj sekund":"nekaj sekundami";case"ss":return m+(1===j?o?"sekundo":"sekundi":2===j?o||R?"sekundi":"sekundah":j<5?o||R?"sekunde":"sekundah":"sekund");case"m":return o?"ena minuta":"eno minuto";case"mm":return m+(1===j?o?"minuta":"minuto":2===j?o||R?"minuti":"minutama":j<5?o||R?"minute":"minutami":o||R?"minut":"minutami");case"h":return o?"ena ura":"eno uro";case"hh":return m+(1===j?o?"ura":"uro":2===j?o||R?"uri":"urama":j<5?o||R?"ure":"urami":o||R?"ur":"urami");case"d":return o||R?"en dan":"enim dnem";case"dd":return m+(1===j?o||R?"dan":"dnem":2===j?o||R?"dni":"dnevoma":o||R?"dni":"dnevi");case"M":return o||R?"en mesec":"enim mesecem";case"MM":return m+(1===j?o||R?"mesec":"mesecem":2===j?o||R?"meseca":"mesecema":j<5?o||R?"mesece":"meseci":o||R?"mesecev":"meseci");case"y":return o||R?"eno leto":"enim letom";case"yy":return m+(1===j?o||R?"leto":"letom":2===j?o||R?"leti":"letoma":j<5?o||R?"leta":"leti":o||R?"let":"leti")}}r.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:d,ss:d,m:d,mm:d,h:d,hh:d,d,dd:d,M:d,MM:d,y:d,yy:d},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(D(97586))},60451:function(ei,rt,D){!function(r){"use strict";r.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(L){return"M"===L.charAt(0)},meridiem:function(L,j,o){return L<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},40905:function(ei,rt,D){!function(r){"use strict";var d={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(j,o){return j%10>=1&&j%10<=4&&(j%100<10||j%100>=20)?j%10==1?o[0]:o[1]:o[2]},translate:function(j,o,E,R){var _,m=d.words[E];return 1===E.length?"y"===E&&o?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":R||o?m[0]:m[1]:(_=d.correctGrammaticalCase(j,m),"yy"===E&&o&&"\u0433\u043e\u0434\u0438\u043d\u0443"===_?j+" \u0433\u043e\u0434\u0438\u043d\u0430":j+" "+_)}};r.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:d.translate,m:d.translate,mm:d.translate,h:d.translate,hh:d.translate,d:d.translate,dd:d.translate,M:d.translate,MM:d.translate,y:d.translate,yy:d.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(D(97586))},55046:function(ei,rt,D){!function(r){"use strict";var d={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(j,o){return j%10>=1&&j%10<=4&&(j%100<10||j%100>=20)?j%10==1?o[0]:o[1]:o[2]},translate:function(j,o,E,R){var _,m=d.words[E];return 1===E.length?"y"===E&&o?"jedna godina":R||o?m[0]:m[1]:(_=d.correctGrammaticalCase(j,m),"yy"===E&&o&&"godinu"===_?j+" godina":j+" "+_)}};r.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:d.translate,m:d.translate,mm:d.translate,h:d.translate,hh:d.translate,d:d.translate,dd:d.translate,M:d.translate,MM:d.translate,y:d.translate,yy:d.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(D(97586))},85765:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(L,j,o){return L<11?"ekuseni":L<15?"emini":L<19?"entsambama":"ebusuku"},meridiemHour:function(L,j){return 12===L&&(L=0),"ekuseni"===j?L:"emini"===j?L>=11?L:L+12:"entsambama"===j||"ebusuku"===j?0===L?0:L+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(D(97586))},99290:function(ei,rt,D){!function(r){"use strict";r.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(L){var j=L%10;return L+(1==~~(L%100/10)?":e":1===j||2===j?":a":":e")},week:{dow:1,doy:4}})}(D(97586))},53449:function(ei,rt,D){!function(r){"use strict";r.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(D(97586))},72688:function(ei,rt,D){!function(r){"use strict";var d={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},L={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};r.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(o){return o+"\u0bb5\u0ba4\u0bc1"},preparse:function(o){return o.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(E){return L[E]})},postformat:function(o){return o.replace(/\d/g,function(E){return d[E]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(o,E,R){return o<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":o<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":o<10?" \u0b95\u0bbe\u0bb2\u0bc8":o<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":o<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":o<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(o,E){return 12===o&&(o=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===E?o<2?o:o+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===E||"\u0b95\u0bbe\u0bb2\u0bc8"===E||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===E&&o>=10?o:o+12},week:{dow:0,doy:6}})}(D(97586))},32060:function(ei,rt,D){!function(r){"use strict";r.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(L,j){return 12===L&&(L=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===j?L<4?L:L+12:"\u0c09\u0c26\u0c2f\u0c02"===j?L:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===j?L>=10?L:L+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===j?L+12:void 0},meridiem:function(L,j,o){return L<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":L<10?"\u0c09\u0c26\u0c2f\u0c02":L<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":L<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(D(97586))},93290:function(ei,rt,D){!function(r){"use strict";r.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(L){var j=L%10;return L+(1==~~(L%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")},week:{dow:1,doy:4}})}(D(97586))},8294:function(ei,rt,D){!function(r){"use strict";var d={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};r.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(j,o){return 12===j&&(j=0),"\u0448\u0430\u0431"===o?j<4?j:j+12:"\u0441\u0443\u0431\u04b3"===o?j:"\u0440\u04ef\u0437"===o?j>=11?j:j+12:"\u0431\u0435\u0433\u043e\u04b3"===o?j+12:void 0},meridiem:function(j,o,E){return j<4?"\u0448\u0430\u0431":j<11?"\u0441\u0443\u0431\u04b3":j<16?"\u0440\u04ef\u0437":j<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(j){return j+(d[j]||d[j%10]||d[j>=100?100:null])},week:{dow:1,doy:7}})}(D(97586))},1231:function(ei,rt,D){!function(r){"use strict";r.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(L){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===L},meridiem:function(L,j,o){return L<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(D(97586))},3746:function(ei,rt,D){!function(r){"use strict";var d={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};r.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(j,o){switch(o){case"d":case"D":case"Do":case"DD":return j;default:if(0===j)return j+"'unjy";var E=j%10;return j+(d[E]||d[j%100-E]||d[j>=100?100:null])}},week:{dow:1,doy:7}})}(D(97586))},49040:function(ei,rt,D){!function(r){"use strict";r.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(L){return L},week:{dow:1,doy:4}})}(D(97586))},17187:function(ei,rt,D){!function(r){"use strict";var d="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function o(m,_,v,h){var s=function E(m){var _=Math.floor(m%1e3/100),v=Math.floor(m%100/10),h=m%10,s="";return _>0&&(s+=d[_]+"vatlh"),v>0&&(s+=(""!==s?" ":"")+d[v]+"maH"),h>0&&(s+=(""!==s?" ":"")+d[h]),""===s?"pagh":s}(m);switch(v){case"ss":return s+" lup";case"mm":return s+" tup";case"hh":return s+" rep";case"dd":return s+" jaj";case"MM":return s+" jar";case"yy":return s+" DIS"}}r.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function L(m){var _=m;return-1!==m.indexOf("jaj")?_.slice(0,-3)+"leS":-1!==m.indexOf("jar")?_.slice(0,-3)+"waQ":-1!==m.indexOf("DIS")?_.slice(0,-3)+"nem":_+" pIq"},past:function j(m){var _=m;return-1!==m.indexOf("jaj")?_.slice(0,-3)+"Hu\u2019":-1!==m.indexOf("jar")?_.slice(0,-3)+"wen":-1!==m.indexOf("DIS")?_.slice(0,-3)+"ben":_+" ret"},s:"puS lup",ss:o,m:"wa\u2019 tup",mm:o,h:"wa\u2019 rep",hh:o,d:"wa\u2019 jaj",dd:o,M:"wa\u2019 jar",MM:o,y:"wa\u2019 DIS",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},60153:function(ei,rt,D){!function(r){"use strict";var d={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};r.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(j,o,E){return j<12?E?"\xf6\xf6":"\xd6\xd6":E?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(j){return"\xf6s"===j||"\xd6S"===j},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(j,o){switch(o){case"d":case"D":case"Do":case"DD":return j;default:if(0===j)return j+"'\u0131nc\u0131";var E=j%10;return j+(d[E]||d[j%100-E]||d[j>=100?100:null])}},week:{dow:1,doy:7}})}(D(97586))},88521:function(ei,rt,D){!function(r){"use strict";function L(j,o,E,R){var m={s:["viensas secunds","'iensas secunds"],ss:[j+" secunds",j+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[j+" m\xeduts",j+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[j+" \xfeoras",j+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[j+" ziuas",j+" ziuas"],M:["'n mes","'iens mes"],MM:[j+" mesen",j+" mesen"],y:["'n ar","'iens ar"],yy:[j+" ars",j+" ars"]};return R||o?m[E][0]:m[E][1]}r.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(j){return"d'o"===j.toLowerCase()},meridiem:function(j,o,E){return j>11?E?"d'o":"D'O":E?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(D(97586))},22234:function(ei,rt,D){!function(r){"use strict";r.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(D(97586))},18010:function(ei,rt,D){!function(r){"use strict";r.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(D(97586))},63349:function(ei,rt,D){!function(r){"use strict";r.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(L,j){return 12===L&&(L=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===j||"\u0633\u06d5\u06be\u06d5\u0631"===j||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===j?L:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===j||"\u0643\u06d5\u0686"===j?L+12:L>=11?L:L+12},meridiem:function(L,j,o){var E=100*L+j;return E<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":E<900?"\u0633\u06d5\u06be\u06d5\u0631":E<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":E<1230?"\u0686\u06c8\u0634":E<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(L,j){switch(j){case"d":case"D":case"DDD":return L+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return L+"-\u06be\u06d5\u067e\u062a\u06d5";default:return L}},preparse:function(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(D(97586))},68479:function(ei,rt,D){!function(r){"use strict";function L(R,m,_){return"m"===_?m?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===_?m?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":R+" "+function d(R,m){var _=R.split("_");return m%10==1&&m%100!=11?_[0]:m%10>=2&&m%10<=4&&(m%100<10||m%100>=20)?_[1]:_[2]}({ss:m?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:m?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:m?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[_],+R)}function o(R){return function(){return R+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}r.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function j(R,m){var _={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===R?_.nominative.slice(1,7).concat(_.nominative.slice(0,1)):R?_[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(m)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(m)?"genitive":"nominative"][R.day()]:_.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:o("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:o("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:o("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:o("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return o("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:L,m:L,mm:L,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:L,d:"\u0434\u0435\u043d\u044c",dd:L,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:L,y:"\u0440\u0456\u043a",yy:L},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(R){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(R)},meridiem:function(R,m,_){return R<4?"\u043d\u043e\u0447\u0456":R<12?"\u0440\u0430\u043d\u043a\u0443":R<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(R,m){switch(m){case"M":case"d":case"DDD":case"w":case"W":return R+"-\u0439";case"D":return R+"-\u0433\u043e";default:return R}},week:{dow:1,doy:7}})}(D(97586))},43024:function(ei,rt,D){!function(r){"use strict";var d=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],L=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];r.defineLocale("ur",{months:d,monthsShort:d,weekdays:L,weekdaysShort:L,weekdaysMin:L,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(o){return"\u0634\u0627\u0645"===o},meridiem:function(o,E,R){return o<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(o){return o.replace(/\u060c/g,",")},postformat:function(o){return o.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(D(97586))},72376:function(ei,rt,D){!function(r){"use strict";r.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(D(97586))},19800:function(ei,rt,D){!function(r){"use strict";r.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(D(97586))},89366:function(ei,rt,D){!function(r){"use strict";r.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(L){return/^ch$/i.test(L)},meridiem:function(L,j,o){return L<12?o?"sa":"SA":o?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(L){return L},week:{dow:1,doy:4}})}(D(97586))},69702:function(ei,rt,D){!function(r){"use strict";r.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(L){var j=L%10;return L+(1==~~(L%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")},week:{dow:1,doy:4}})}(D(97586))},72655:function(ei,rt,D){!function(r){"use strict";r.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(D(97586))},575:function(ei,rt,D){!function(r){"use strict";r.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(L,j){return 12===L&&(L=0),"\u51cc\u6668"===j||"\u65e9\u4e0a"===j||"\u4e0a\u5348"===j?L:"\u4e0b\u5348"===j||"\u665a\u4e0a"===j?L+12:L>=11?L:L+12},meridiem:function(L,j,o){var E=100*L+j;return E<600?"\u51cc\u6668":E<900?"\u65e9\u4e0a":E<1130?"\u4e0a\u5348":E<1230?"\u4e2d\u5348":E<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(L){return L.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(L){return this.week()!==L.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(L,j){switch(j){case"d":case"D":case"DDD":return L+"\u65e5";case"M":return L+"\u6708";case"w":case"W":return L+"\u5468";default:return L}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(D(97586))},18351:function(ei,rt,D){!function(r){"use strict";r.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(L,j){return 12===L&&(L=0),"\u51cc\u6668"===j||"\u65e9\u4e0a"===j||"\u4e0a\u5348"===j?L:"\u4e2d\u5348"===j?L>=11?L:L+12:"\u4e0b\u5348"===j||"\u665a\u4e0a"===j?L+12:void 0},meridiem:function(L,j,o){var E=100*L+j;return E<600?"\u51cc\u6668":E<900?"\u65e9\u4e0a":E<1200?"\u4e0a\u5348":1200===E?"\u4e2d\u5348":E<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(L,j){switch(j){case"d":case"D":case"DDD":return L+"\u65e5";case"M":return L+"\u6708";case"w":case"W":return L+"\u9031";default:return L}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(D(97586))},51626:function(ei,rt,D){!function(r){"use strict";r.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(L,j){return 12===L&&(L=0),"\u51cc\u6668"===j||"\u65e9\u4e0a"===j||"\u4e0a\u5348"===j?L:"\u4e2d\u5348"===j?L>=11?L:L+12:"\u4e0b\u5348"===j||"\u665a\u4e0a"===j?L+12:void 0},meridiem:function(L,j,o){var E=100*L+j;return E<600?"\u51cc\u6668":E<900?"\u65e9\u4e0a":E<1130?"\u4e0a\u5348":E<1230?"\u4e2d\u5348":E<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(L,j){switch(j){case"d":case"D":case"DDD":return L+"\u65e5";case"M":return L+"\u6708";case"w":case"W":return L+"\u9031";default:return L}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(D(97586))},8887:function(ei,rt,D){!function(r){"use strict";r.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(L,j){return 12===L&&(L=0),"\u51cc\u6668"===j||"\u65e9\u4e0a"===j||"\u4e0a\u5348"===j?L:"\u4e2d\u5348"===j?L>=11?L:L+12:"\u4e0b\u5348"===j||"\u665a\u4e0a"===j?L+12:void 0},meridiem:function(L,j,o){var E=100*L+j;return E<600?"\u51cc\u6668":E<900?"\u65e9\u4e0a":E<1130?"\u4e0a\u5348":E<1230?"\u4e2d\u5348":E<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(L,j){switch(j){case"d":case"D":case"DDD":return L+"\u65e5";case"M":return L+"\u6708";case"w":case"W":return L+"\u9031";default:return L}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(D(97586))},97586:function(ei,rt,D){(ei=D.nmd(ei)).exports=function(){"use strict";var r,f;function d(){return r.apply(null,arguments)}function j(B){return B instanceof Array||"[object Array]"===Object.prototype.toString.call(B)}function o(B){return null!=B&&"[object Object]"===Object.prototype.toString.call(B)}function E(B,te){return Object.prototype.hasOwnProperty.call(B,te)}function R(B){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(B).length;var te;for(te in B)if(E(B,te))return!1;return!0}function m(B){return void 0===B}function _(B){return"number"==typeof B||"[object Number]"===Object.prototype.toString.call(B)}function v(B){return B instanceof Date||"[object Date]"===Object.prototype.toString.call(B)}function h(B,te){var De,Ce=[],Le=B.length;for(De=0;De<Le;++De)Ce.push(te(B[De],De));return Ce}function s(B,te){for(var Ce in te)E(te,Ce)&&(B[Ce]=te[Ce]);return E(te,"toString")&&(B.toString=te.toString),E(te,"valueOf")&&(B.valueOf=te.valueOf),B}function b(B,te,Ce,De){return Xc(B,te,Ce,De,!0).utc()}function w(B){return null==B._pf&&(B._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),B._pf}function k(B){var te=null,Ce=!1,De=B._d&&!isNaN(B._d.getTime());return De&&(te=w(B),Ce=f.call(te.parsedDateParts,function(Le){return null!=Le}),De=te.overflow<0&&!te.empty&&!te.invalidEra&&!te.invalidMonth&&!te.invalidWeekday&&!te.weekdayMismatch&&!te.nullInput&&!te.invalidFormat&&!te.userInvalidated&&(!te.meridiem||te.meridiem&&Ce),B._strict&&(De=De&&0===te.charsLeftOver&&0===te.unusedTokens.length&&void 0===te.bigHour)),null!=Object.isFrozen&&Object.isFrozen(B)?De:(B._isValid=De,B._isValid)}function I(B){var te=b(NaN);return null!=B?s(w(te),B):w(te).userInvalidated=!0,te}f=Array.prototype.some?Array.prototype.some:function(B){var De,te=Object(this),Ce=te.length>>>0;for(De=0;De<Ce;De++)if(De in te&&B.call(this,te[De],De,te))return!0;return!1};var x=d.momentProperties=[],g=!1;function C(B,te){var Ce,De,Le,je=x.length;if(m(te._isAMomentObject)||(B._isAMomentObject=te._isAMomentObject),m(te._i)||(B._i=te._i),m(te._f)||(B._f=te._f),m(te._l)||(B._l=te._l),m(te._strict)||(B._strict=te._strict),m(te._tzm)||(B._tzm=te._tzm),m(te._isUTC)||(B._isUTC=te._isUTC),m(te._offset)||(B._offset=te._offset),m(te._pf)||(B._pf=w(te)),m(te._locale)||(B._locale=te._locale),je>0)for(Ce=0;Ce<je;Ce++)m(Le=te[De=x[Ce]])||(B[De]=Le);return B}function F(B){C(this,B),this._d=new Date(null!=B._d?B._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===g&&(g=!0,d.updateOffset(this),g=!1)}function Y(B){return B instanceof F||null!=B&&null!=B._isAMomentObject}function Q(B){!1===d.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+B)}function se(B,te){var Ce=!0;return s(function(){if(null!=d.deprecationHandler&&d.deprecationHandler(null,B),Ce){var Le,je,it,De=[],Pt=arguments.length;for(je=0;je<Pt;je++){if(Le="","object"==typeof arguments[je]){for(it in Le+="\n["+je+"] ",arguments[0])E(arguments[0],it)&&(Le+=it+": "+arguments[0][it]+", ");Le=Le.slice(0,-2)}else Le=arguments[je];De.push(Le)}Q(B+"\nArguments: "+Array.prototype.slice.call(De).join("")+"\n"+(new Error).stack),Ce=!1}return te.apply(this,arguments)},te)}var oe,ie={};function ee(B,te){null!=d.deprecationHandler&&d.deprecationHandler(B,te),ie[B]||(Q(te),ie[B]=!0)}function re(B){return typeof Function<"u"&&B instanceof Function||"[object Function]"===Object.prototype.toString.call(B)}function _e(B,te){var De,Ce=s({},B);for(De in te)E(te,De)&&(o(B[De])&&o(te[De])?(Ce[De]={},s(Ce[De],B[De]),s(Ce[De],te[De])):null!=te[De]?Ce[De]=te[De]:delete Ce[De]);for(De in B)E(B,De)&&!E(te,De)&&o(B[De])&&(Ce[De]=s({},Ce[De]));return Ce}function be(B){null!=B&&this.set(B)}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null,oe=Object.keys?Object.keys:function(B){var te,Ce=[];for(te in B)E(B,te)&&Ce.push(te);return Ce};function N(B,te,Ce){var De=""+Math.abs(B);return(B>=0?Ce?"+":"":"-")+Math.pow(10,Math.max(0,te-De.length)).toString().substr(1)+De}var G=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},X={};function q(B,te,Ce,De){var Le=De;"string"==typeof De&&(Le=function(){return this[De]()}),B&&(X[B]=Le),te&&(X[te[0]]=function(){return N(Le.apply(this,arguments),te[1],te[2])}),Ce&&(X[Ce]=function(){return this.localeData().ordinal(Le.apply(this,arguments),B)})}function ye(B){return B.match(/\[[\s\S]/)?B.replace(/^\[|\]$/g,""):B.replace(/\\/g,"")}function ge(B,te){return B.isValid()?(te=Ee(te,B.localeData()),z[te]=z[te]||function xe(B){var Ce,De,te=B.match(G);for(Ce=0,De=te.length;Ce<De;Ce++)te[Ce]=X[te[Ce]]?X[te[Ce]]:ye(te[Ce]);return function(Le){var it,je="";for(it=0;it<De;it++)je+=re(te[it])?te[it].call(Le,B):te[it];return je}}(te),z[te](B)):B.localeData().invalidDate()}function Ee(B,te){var Ce=5;function De(Le){return te.longDateFormat(Le)||Le}for(W.lastIndex=0;Ce>=0&&W.test(B);)B=B.replace(W,De),W.lastIndex=0,Ce-=1;return B}var Nt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Qe(B){return"string"==typeof B?Nt[B]||Nt[B.toLowerCase()]:void 0}function Et(B){var Ce,De,te={};for(De in B)E(B,De)&&(Ce=Qe(De))&&(te[Ce]=B[De]);return te}var Lt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var Ut,Mt=/\d/,Ge=/\d\d/,ot=/\d{3}/,Tt=/\d{4}/,jt=/[+-]?\d{6}/,li=/\d\d?/,an=/\d\d\d\d?/,xi=/\d\d\d\d\d\d?/,Je=/\d{1,3}/,Ht=/\d{1,4}/,gi=/[+-]?\d{1,6}/,Ti=/\d+/,ni=/[+-]?\d+/,wi=/Z|[+-]\d\d:?\d\d/gi,ui=/Z|[+-]\d\d(?::?\d\d)?/gi,Ui=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Xi=/^[1-9]\d?/,Qi=/^([1-9]\d|\d)/;function It(B,te,Ce){Ut[B]=re(te)?te:function(De,Le){return De&&Ce?Ce:te}}function yt(B,te){return E(Ut,B)?Ut[B](te._strict,te._locale):new RegExp(function pt(B){return st(B.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(te,Ce,De,Le,je){return Ce||De||Le||je}))}(B))}function st(B){return B.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Wt(B){return B<0?Math.ceil(B)||0:Math.floor(B)}function Vt(B){var te=+B,Ce=0;return 0!==te&&isFinite(te)&&(Ce=Wt(te)),Ce}Ut={};var ci={};function bi(B,te){var Ce,Le,De=te;for("string"==typeof B&&(B=[B]),_(te)&&(De=function(je,it){it[te]=Vt(je)}),Le=B.length,Ce=0;Ce<Le;Ce++)ci[B[Ce]]=De}function gt(B,te){bi(B,function(Ce,De,Le,je){Le._w=Le._w||{},te(Ce,Le._w,Le,je)})}function ai(B,te,Ce){null!=te&&E(ci,B)&&ci[B](te,Ce._a,Ce,B)}function kt(B){return B%4==0&&B%100!=0||B%400==0}var mi=0,Kt=1,qi=2,Wi=3,yn=4,Ur=5,ar=6,na=7,po=8;function sa(B){return kt(B)?366:365}q("Y",0,0,function(){var B=this.year();return B<=9999?N(B,4):"+"+B}),q(0,["YY",2],0,function(){return this.year()%100}),q(0,["YYYY",4],0,"year"),q(0,["YYYYY",5],0,"year"),q(0,["YYYYYY",6,!0],0,"year"),It("Y",ni),It("YY",li,Ge),It("YYYY",Ht,Tt),It("YYYYY",gi,jt),It("YYYYYY",gi,jt),bi(["YYYYY","YYYYYY"],mi),bi("YYYY",function(B,te){te[mi]=2===B.length?d.parseTwoDigitYear(B):Vt(B)}),bi("YY",function(B,te){te[mi]=d.parseTwoDigitYear(B)}),bi("Y",function(B,te){te[mi]=parseInt(B,10)}),d.parseTwoDigitYear=function(B){return Vt(B)+(Vt(B)>68?1900:2e3)};var _t,Pr=ja("FullYear",!0);function ja(B,te){return function(Ce){return null!=Ce?(uo(this,B,Ce),d.updateOffset(this,te),this):Na(this,B)}}function Na(B,te){if(!B.isValid())return NaN;var Ce=B._d,De=B._isUTC;switch(te){case"Milliseconds":return De?Ce.getUTCMilliseconds():Ce.getMilliseconds();case"Seconds":return De?Ce.getUTCSeconds():Ce.getSeconds();case"Minutes":return De?Ce.getUTCMinutes():Ce.getMinutes();case"Hours":return De?Ce.getUTCHours():Ce.getHours();case"Date":return De?Ce.getUTCDate():Ce.getDate();case"Day":return De?Ce.getUTCDay():Ce.getDay();case"Month":return De?Ce.getUTCMonth():Ce.getMonth();case"FullYear":return De?Ce.getUTCFullYear():Ce.getFullYear();default:return NaN}}function uo(B,te,Ce){var De,Le,je,it,Pt;if(B.isValid()&&!isNaN(Ce)){switch(De=B._d,Le=B._isUTC,te){case"Milliseconds":return void(Le?De.setUTCMilliseconds(Ce):De.setMilliseconds(Ce));case"Seconds":return void(Le?De.setUTCSeconds(Ce):De.setSeconds(Ce));case"Minutes":return void(Le?De.setUTCMinutes(Ce):De.setMinutes(Ce));case"Hours":return void(Le?De.setUTCHours(Ce):De.setHours(Ce));case"Date":return void(Le?De.setUTCDate(Ce):De.setDate(Ce));case"FullYear":break;default:return}je=Ce,it=B.month(),Pt=29!==(Pt=B.date())||1!==it||kt(je)?Pt:28,Le?De.setUTCFullYear(je,it,Pt):De.setFullYear(je,it,Pt)}}function si(B,te){if(isNaN(B)||isNaN(te))return NaN;var Ce=function Bi(B,te){return(B%te+te)%te}(te,12);return B+=(te-Ce)/12,1===Ce?kt(B)?29:28:31-Ce%7%2}_t=Array.prototype.indexOf?Array.prototype.indexOf:function(B){var te;for(te=0;te<this.length;++te)if(this[te]===B)return te;return-1},q("M",["MM",2],"Mo",function(){return this.month()+1}),q("MMM",0,0,function(B){return this.localeData().monthsShort(this,B)}),q("MMMM",0,0,function(B){return this.localeData().months(this,B)}),It("M",li,Xi),It("MM",li,Ge),It("MMM",function(B,te){return te.monthsShortRegex(B)}),It("MMMM",function(B,te){return te.monthsRegex(B)}),bi(["M","MM"],function(B,te){te[Kt]=Vt(B)-1}),bi(["MMM","MMMM"],function(B,te,Ce,De){var Le=Ce._locale.monthsParse(B,De,Ce._strict);null!=Le?te[Kt]=Le:w(Ce).invalidMonth=B});var Dt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ln=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,An=Ui,jn=Ui;function ri(B,te,Ce){var De,Le,je,it=B.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],De=0;De<12;++De)je=b([2e3,De]),this._shortMonthsParse[De]=this.monthsShort(je,"").toLocaleLowerCase(),this._longMonthsParse[De]=this.months(je,"").toLocaleLowerCase();return Ce?"MMM"===te?-1!==(Le=_t.call(this._shortMonthsParse,it))?Le:null:-1!==(Le=_t.call(this._longMonthsParse,it))?Le:null:"MMM"===te?-1!==(Le=_t.call(this._shortMonthsParse,it))||-1!==(Le=_t.call(this._longMonthsParse,it))?Le:null:-1!==(Le=_t.call(this._longMonthsParse,it))||-1!==(Le=_t.call(this._shortMonthsParse,it))?Le:null}function Ri(B,te){if(!B.isValid())return B;if("string"==typeof te)if(/^\d+$/.test(te))te=Vt(te);else if(!_(te=B.localeData().monthsParse(te)))return B;var Ce=te,De=B.date();return De=De<29?De:Math.min(De,si(B.year(),Ce)),B._isUTC?B._d.setUTCMonth(Ce,De):B._d.setMonth(Ce,De),B}function ji(B){return null!=B?(Ri(this,B),d.updateOffset(this,!0),this):Na(this,"Month")}function _r(){function B(Zt,fi){return fi.length-Zt.length}var Le,je,it,Pt,te=[],Ce=[],De=[];for(Le=0;Le<12;Le++)je=b([2e3,Le]),it=st(this.monthsShort(je,"")),Pt=st(this.months(je,"")),te.push(it),Ce.push(Pt),De.push(Pt),De.push(it);te.sort(B),Ce.sort(B),De.sort(B),this._monthsRegex=new RegExp("^("+De.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Ce.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+te.join("|")+")","i")}function ha(B,te,Ce,De,Le,je,it){var Pt;return B<100&&B>=0?(Pt=new Date(B+400,te,Ce,De,Le,je,it),isFinite(Pt.getFullYear())&&Pt.setFullYear(B)):Pt=new Date(B,te,Ce,De,Le,je,it),Pt}function aa(B){var te,Ce;return B<100&&B>=0?((Ce=Array.prototype.slice.call(arguments))[0]=B+400,te=new Date(Date.UTC.apply(null,Ce)),isFinite(te.getUTCFullYear())&&te.setUTCFullYear(B)):te=new Date(Date.UTC.apply(null,arguments)),te}function Fa(B,te,Ce){var De=7+te-Ce;return-(7+aa(B,0,De).getUTCDay()-te)%7+De-1}function Ya(B,te,Ce,De,Le){var Zt,fi,Pt=1+7*(te-1)+(7+Ce-De)%7+Fa(B,De,Le);return Pt<=0?fi=sa(Zt=B-1)+Pt:Pt>sa(B)?(Zt=B+1,fi=Pt-sa(B)):(Zt=B,fi=Pt),{year:Zt,dayOfYear:fi}}function _o(B,te,Ce){var je,it,De=Fa(B.year(),te,Ce),Le=Math.floor((B.dayOfYear()-De-1)/7)+1;return Le<1?je=Le+Yo(it=B.year()-1,te,Ce):Le>Yo(B.year(),te,Ce)?(je=Le-Yo(B.year(),te,Ce),it=B.year()+1):(it=B.year(),je=Le),{week:je,year:it}}function Yo(B,te,Ce){var De=Fa(B,te,Ce),Le=Fa(B+1,te,Ce);return(sa(B)-De+Le)/7}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),It("w",li,Xi),It("ww",li,Ge),It("W",li,Xi),It("WW",li,Ge),gt(["w","ww","W","WW"],function(B,te,Ce,De){te[De.substr(0,1)]=Vt(B)});function Ha(B,te){return B.slice(te,7).concat(B.slice(0,te))}q("d",0,"do","day"),q("dd",0,0,function(B){return this.localeData().weekdaysMin(this,B)}),q("ddd",0,0,function(B){return this.localeData().weekdaysShort(this,B)}),q("dddd",0,0,function(B){return this.localeData().weekdays(this,B)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),It("d",li),It("e",li),It("E",li),It("dd",function(B,te){return te.weekdaysMinRegex(B)}),It("ddd",function(B,te){return te.weekdaysShortRegex(B)}),It("dddd",function(B,te){return te.weekdaysRegex(B)}),gt(["dd","ddd","dddd"],function(B,te,Ce,De){var Le=Ce._locale.weekdaysParse(B,De,Ce._strict);null!=Le?te.d=Le:w(Ce).invalidWeekday=B}),gt(["d","e","E"],function(B,te,Ce,De){te[De]=Vt(B)});var us="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ql="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ms="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),El=Ui,Wl=Ui,Xd=Ui;function jl(B,te,Ce){var De,Le,je,it=B.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],De=0;De<7;++De)je=b([2e3,1]).day(De),this._minWeekdaysParse[De]=this.weekdaysMin(je,"").toLocaleLowerCase(),this._shortWeekdaysParse[De]=this.weekdaysShort(je,"").toLocaleLowerCase(),this._weekdaysParse[De]=this.weekdays(je,"").toLocaleLowerCase();return Ce?"dddd"===te?-1!==(Le=_t.call(this._weekdaysParse,it))?Le:null:"ddd"===te?-1!==(Le=_t.call(this._shortWeekdaysParse,it))?Le:null:-1!==(Le=_t.call(this._minWeekdaysParse,it))?Le:null:"dddd"===te?-1!==(Le=_t.call(this._weekdaysParse,it))||-1!==(Le=_t.call(this._shortWeekdaysParse,it))||-1!==(Le=_t.call(this._minWeekdaysParse,it))?Le:null:"ddd"===te?-1!==(Le=_t.call(this._shortWeekdaysParse,it))||-1!==(Le=_t.call(this._weekdaysParse,it))||-1!==(Le=_t.call(this._minWeekdaysParse,it))?Le:null:-1!==(Le=_t.call(this._minWeekdaysParse,it))||-1!==(Le=_t.call(this._weekdaysParse,it))||-1!==(Le=_t.call(this._shortWeekdaysParse,it))?Le:null}function Ni(){function B(Jt,Rt){return Rt.length-Jt.length}var je,it,Pt,Zt,fi,te=[],Ce=[],De=[],Le=[];for(je=0;je<7;je++)it=b([2e3,1]).day(je),Pt=st(this.weekdaysMin(it,"")),Zt=st(this.weekdaysShort(it,"")),fi=st(this.weekdays(it,"")),te.push(Pt),Ce.push(Zt),De.push(fi),Le.push(Pt),Le.push(Zt),Le.push(fi);te.sort(B),Ce.sort(B),De.sort(B),Le.sort(B),this._weekdaysRegex=new RegExp("^("+Le.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+De.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ce.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+te.join("|")+")","i")}function Sn(){return this.hours()%12||12}function Kn(B,te){q(B,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),te)})}function tr(B,te){return te._meridiemParse}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Sn),q("k",["kk",2],0,function Dn(){return this.hours()||24}),q("hmm",0,0,function(){return""+Sn.apply(this)+N(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Sn.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),Kn("a",!0),Kn("A",!1),It("a",tr),It("A",tr),It("H",li,Qi),It("h",li,Xi),It("k",li,Xi),It("HH",li,Ge),It("hh",li,Ge),It("kk",li,Ge),It("hmm",an),It("hmmss",xi),It("Hmm",an),It("Hmmss",xi),bi(["H","HH"],Wi),bi(["k","kk"],function(B,te,Ce){var De=Vt(B);te[Wi]=24===De?0:De}),bi(["a","A"],function(B,te,Ce){Ce._isPm=Ce._locale.isPM(B),Ce._meridiem=B}),bi(["h","hh"],function(B,te,Ce){te[Wi]=Vt(B),w(Ce).bigHour=!0}),bi("hmm",function(B,te,Ce){var De=B.length-2;te[Wi]=Vt(B.substr(0,De)),te[yn]=Vt(B.substr(De)),w(Ce).bigHour=!0}),bi("hmmss",function(B,te,Ce){var De=B.length-4,Le=B.length-2;te[Wi]=Vt(B.substr(0,De)),te[yn]=Vt(B.substr(De,2)),te[Ur]=Vt(B.substr(Le)),w(Ce).bigHour=!0}),bi("Hmm",function(B,te,Ce){var De=B.length-2;te[Wi]=Vt(B.substr(0,De)),te[yn]=Vt(B.substr(De))}),bi("Hmmss",function(B,te,Ce){var De=B.length-4,Le=B.length-2;te[Wi]=Vt(B.substr(0,De)),te[yn]=Vt(B.substr(De,2)),te[Ur]=Vt(B.substr(Le))});var va=ja("Hours",!0);var $a,Ba={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Dt,monthsShort:Pi,week:{dow:0,doy:6},weekdays:us,weekdaysMin:ms,weekdaysShort:Ql,meridiemParse:/[ap]\.?m?\.?/i},ga={},Lo={};function qs(B,te){var Ce,De=Math.min(B.length,te.length);for(Ce=0;Ce<De;Ce+=1)if(B[Ce]!==te[Ce])return Ce;return De}function Mo(B){return B&&B.toLowerCase().replace("_","-")}function el(B){var te=null;if(void 0===ga[B]&&ei&&ei.exports&&function gs(B){return!(!B||!B.match("^[^/\\\\]*$"))}(B))try{te=$a._abbr,D(35358)("./"+B),_s(te)}catch{ga[B]=null}return ga[B]}function _s(B,te){var Ce;return B&&((Ce=m(te)?hl(B):yl(B,te))?$a=Ce:typeof console<"u"&&console.warn&&console.warn("Locale "+B+" not found. Did you forget to load it?")),$a._abbr}function yl(B,te){if(null!==te){var Ce,De=Ba;if(te.abbr=B,null!=ga[B])ee("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),De=ga[B]._config;else if(null!=te.parentLocale)if(null!=ga[te.parentLocale])De=ga[te.parentLocale]._config;else{if(null==(Ce=el(te.parentLocale)))return Lo[te.parentLocale]||(Lo[te.parentLocale]=[]),Lo[te.parentLocale].push({name:B,config:te}),null;De=Ce._config}return ga[B]=new be(_e(De,te)),Lo[B]&&Lo[B].forEach(function(Le){yl(Le.name,Le.config)}),_s(B),ga[B]}return delete ga[B],null}function hl(B){var te;if(B&&B._locale&&B._locale._abbr&&(B=B._locale._abbr),!B)return $a;if(!j(B)){if(te=el(B))return te;B=[B]}return function Ml(B){for(var Ce,De,Le,je,te=0;te<B.length;){for(Ce=(je=Mo(B[te]).split("-")).length,De=(De=Mo(B[te+1]))?De.split("-"):null;Ce>0;){if(Le=el(je.slice(0,Ce).join("-")))return Le;if(De&&De.length>=Ce&&qs(je,De)>=Ce-1)break;Ce--}te++}return $a}(B)}function Zl(B){var te,Ce=B._a;return Ce&&-2===w(B).overflow&&(te=Ce[Kt]<0||Ce[Kt]>11?Kt:Ce[qi]<1||Ce[qi]>si(Ce[mi],Ce[Kt])?qi:Ce[Wi]<0||Ce[Wi]>24||24===Ce[Wi]&&(0!==Ce[yn]||0!==Ce[Ur]||0!==Ce[ar])?Wi:Ce[yn]<0||Ce[yn]>59?yn:Ce[Ur]<0||Ce[Ur]>59?Ur:Ce[ar]<0||Ce[ar]>999?ar:-1,w(B)._overflowDayOfYear&&(te<mi||te>qi)&&(te=qi),w(B)._overflowWeeks&&-1===te&&(te=na),w(B)._overflowWeekday&&-1===te&&(te=po),w(B).overflow=te),B}var al=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xs=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,oc=/Z|[+-]\d\d(?::?\d\d)?/,Il=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ud=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ru=/^\/?Date\((-?\d+)/i,ql=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vs={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Jd(B){var te,Ce,je,it,Pt,Zt,De=B._i,Le=al.exec(De)||xs.exec(De),fi=Il.length,Jt=Ud.length;if(Le){for(w(B).iso=!0,te=0,Ce=fi;te<Ce;te++)if(Il[te][1].exec(Le[1])){it=Il[te][0],je=!1!==Il[te][2];break}if(null==it)return void(B._isValid=!1);if(Le[3]){for(te=0,Ce=Jt;te<Ce;te++)if(Ud[te][1].exec(Le[3])){Pt=(Le[2]||" ")+Ud[te][0];break}if(null==Pt)return void(B._isValid=!1)}if(!je&&null!=Pt)return void(B._isValid=!1);if(Le[4]){if(!oc.exec(Le[4]))return void(B._isValid=!1);Zt="Z"}B._f=it+(Pt||"")+(Zt||""),Yi(B)}else B._isValid=!1}function bc(B){var te=parseInt(B,10);return te<=49?2e3+te:te<=999?1900+te:te}function Ol(B){var Ce,te=ql.exec(function Nl(B){return B.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(B._i));if(te){if(Ce=function vc(B,te,Ce,De,Le,je){var it=[bc(B),Pi.indexOf(te),parseInt(Ce,10),parseInt(De,10),parseInt(Le,10)];return je&&it.push(parseInt(je,10)),it}(te[4],te[3],te[2],te[5],te[6],te[7]),!function yc(B,te,Ce){return!B||Ql.indexOf(B)===new Date(te[0],te[1],te[2]).getDay()||(w(Ce).weekdayMismatch=!0,Ce._isValid=!1,!1)}(te[1],Ce,B))return;B._a=Ce,B._tzm=function yd(B,te,Ce){if(B)return vs[B];if(te)return 0;var De=parseInt(Ce,10),Le=De%100;return(De-Le)/100*60+Le}(te[8],te[9],te[10]),B._d=aa.apply(null,B._a),B._d.setUTCMinutes(B._d.getUTCMinutes()-B._tzm),w(B).rfc2822=!0}else B._isValid=!1}function ks(B,te,Ce){return B??te??Ce}function yi(B){var te,Ce,Le,je,it,De=[];if(!B._d){for(Le=function oi(B){var te=new Date(d.now());return B._useUTC?[te.getUTCFullYear(),te.getUTCMonth(),te.getUTCDate()]:[te.getFullYear(),te.getMonth(),te.getDate()]}(B),B._w&&null==B._a[qi]&&null==B._a[Kt]&&function zt(B){var te,Ce,De,Le,je,it,Pt,Zt,fi;null!=(te=B._w).GG||null!=te.W||null!=te.E?(je=1,it=4,Ce=ks(te.GG,B._a[mi],_o(Cs(),1,4).year),De=ks(te.W,1),((Le=ks(te.E,1))<1||Le>7)&&(Zt=!0)):(je=B._locale._week.dow,it=B._locale._week.doy,fi=_o(Cs(),je,it),Ce=ks(te.gg,B._a[mi],fi.year),De=ks(te.w,fi.week),null!=te.d?((Le=te.d)<0||Le>6)&&(Zt=!0):null!=te.e?(Le=te.e+je,(te.e<0||te.e>6)&&(Zt=!0)):Le=je),De<1||De>Yo(Ce,je,it)?w(B)._overflowWeeks=!0:null!=Zt?w(B)._overflowWeekday=!0:(Pt=Ya(Ce,De,Le,je,it),B._a[mi]=Pt.year,B._dayOfYear=Pt.dayOfYear)}(B),null!=B._dayOfYear&&(it=ks(B._a[mi],Le[mi]),(B._dayOfYear>sa(it)||0===B._dayOfYear)&&(w(B)._overflowDayOfYear=!0),Ce=aa(it,0,B._dayOfYear),B._a[Kt]=Ce.getUTCMonth(),B._a[qi]=Ce.getUTCDate()),te=0;te<3&&null==B._a[te];++te)B._a[te]=De[te]=Le[te];for(;te<7;te++)B._a[te]=De[te]=null==B._a[te]?2===te?1:0:B._a[te];24===B._a[Wi]&&0===B._a[yn]&&0===B._a[Ur]&&0===B._a[ar]&&(B._nextDay=!0,B._a[Wi]=0),B._d=(B._useUTC?aa:ha).apply(null,De),je=B._useUTC?B._d.getUTCDay():B._d.getDay(),null!=B._tzm&&B._d.setUTCMinutes(B._d.getUTCMinutes()-B._tzm),B._nextDay&&(B._a[Wi]=24),B._w&&typeof B._w.d<"u"&&B._w.d!==je&&(w(B).weekdayMismatch=!0)}}function Yi(B){if(B._f!==d.ISO_8601)if(B._f!==d.RFC_2822){B._a=[],w(B).empty=!0;var Ce,De,Le,je,it,fi,Jt,te=""+B._i,Pt=te.length,Zt=0;for(Jt=(Le=Ee(B._f,B._locale).match(G)||[]).length,Ce=0;Ce<Jt;Ce++)(De=(te.match(yt(je=Le[Ce],B))||[])[0])&&((it=te.substr(0,te.indexOf(De))).length>0&&w(B).unusedInput.push(it),te=te.slice(te.indexOf(De)+De.length),Zt+=De.length),X[je]?(De?w(B).empty=!1:w(B).unusedTokens.push(je),ai(je,De,B)):B._strict&&!De&&w(B).unusedTokens.push(je);w(B).charsLeftOver=Pt-Zt,te.length>0&&w(B).unusedInput.push(te),B._a[Wi]<=12&&!0===w(B).bigHour&&B._a[Wi]>0&&(w(B).bigHour=void 0),w(B).parsedDateParts=B._a.slice(0),w(B).meridiem=B._meridiem,B._a[Wi]=function Un(B,te,Ce){var De;return null==Ce?te:null!=B.meridiemHour?B.meridiemHour(te,Ce):(null!=B.isPM&&((De=B.isPM(Ce))&&te<12&&(te+=12),!De&&12===te&&(te=0)),te)}(B._locale,B._a[Wi],B._meridiem),null!==(fi=w(B).era)&&(B._a[mi]=B._locale.erasConvertYear(fi,B._a[mi])),yi(B),Zl(B)}else Ol(B);else Jd(B)}function xd(B){var te=B._i,Ce=B._f;return B._locale=B._locale||hl(B._l),null===te||void 0===Ce&&""===te?I({nullInput:!0}):("string"==typeof te&&(B._i=te=B._locale.preparse(te)),Y(te)?new F(Zl(te)):(v(te)?B._d=te:j(Ce)?function vo(B){var te,Ce,De,Le,je,it,Pt=!1,Zt=B._f.length;if(0===Zt)return w(B).invalidFormat=!0,void(B._d=new Date(NaN));for(Le=0;Le<Zt;Le++)je=0,it=!1,te=C({},B),null!=B._useUTC&&(te._useUTC=B._useUTC),te._f=B._f[Le],Yi(te),k(te)&&(it=!0),je+=w(te).charsLeftOver,je+=10*w(te).unusedTokens.length,w(te).score=je,Pt?je<De&&(De=je,Ce=te):(null==De||je<De||it)&&(De=je,Ce=te,it&&(Pt=!0));s(B,Ce||te)}(B):Ce?Yi(B):function Ls(B){var te=B._i;m(te)?B._d=new Date(d.now()):v(te)?B._d=new Date(te.valueOf()):"string"==typeof te?function au(B){var te=ru.exec(B._i);null===te?(Jd(B),!1===B._isValid&&(delete B._isValid,Ol(B),!1===B._isValid&&(delete B._isValid,B._strict?B._isValid=!1:d.createFromInputFallback(B)))):B._d=new Date(+te[1])}(B):j(te)?(B._a=h(te.slice(0),function(Ce){return parseInt(Ce,10)}),yi(B)):o(te)?function No(B){if(!B._d){var te=Et(B._i);B._a=h([te.year,te.month,void 0===te.day?te.date:te.day,te.hour,te.minute,te.second,te.millisecond],function(De){return De&&parseInt(De,10)}),yi(B)}}(B):_(te)?B._d=new Date(te):d.createFromInputFallback(B)}(B),k(B)||(B._d=null),B))}function Xc(B,te,Ce,De,Le){var je={};return(!0===te||!1===te)&&(De=te,te=void 0),(!0===Ce||!1===Ce)&&(De=Ce,Ce=void 0),(o(B)&&R(B)||j(B)&&0===B.length)&&(B=void 0),je._isAMomentObject=!0,je._useUTC=je._isUTC=Le,je._l=Ce,je._i=B,je._f=te,je._strict=De,function ed(B){var te=new F(Zl(xd(B)));return te._nextDay&&(te.add(1,"d"),te._nextDay=void 0),te}(je)}function Cs(B,te,Ce,De){return Xc(B,te,Ce,De,!1)}d.createFromInputFallback=se("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(B){B._d=new Date(B._i+(B._useUTC?" UTC":""))}),d.ISO_8601=function(){},d.RFC_2822=function(){};var ou=se("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var B=Cs.apply(null,arguments);return this.isValid()&&B.isValid()?B<this?this:B:I()}),uh=se("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var B=Cs.apply(null,arguments);return this.isValid()&&B.isValid()?B>this?this:B:I()});function Ve(B,te){var Ce,De;if(1===te.length&&j(te[0])&&(te=te[0]),!te.length)return Cs();for(Ce=te[0],De=1;De<te.length;++De)(!te[De].isValid()||te[De][B](Ce))&&(Ce=te[De]);return Ce}var _n=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Io(B){var te=Et(B),Ce=te.year||0,De=te.quarter||0,Le=te.month||0,je=te.week||te.isoWeek||0,it=te.day||0,Pt=te.hour||0,Zt=te.minute||0,fi=te.second||0,Jt=te.millisecond||0;this._isValid=function dr(B){var te,De,Ce=!1,Le=_n.length;for(te in B)if(E(B,te)&&(-1===_t.call(_n,te)||null!=B[te]&&isNaN(B[te])))return!1;for(De=0;De<Le;++De)if(B[_n[De]]){if(Ce)return!1;parseFloat(B[_n[De]])!==Vt(B[_n[De]])&&(Ce=!0)}return!0}(te),this._milliseconds=+Jt+1e3*fi+6e4*Zt+1e3*Pt*60*60,this._days=+it+7*je,this._months=+Le+3*De+12*Ce,this._data={},this._locale=hl(),this._bubble()}function Xo(B){return B instanceof Io}function Ys(B){return B<0?-1*Math.round(-1*B):Math.round(B)}function td(B,te){q(B,0,0,function(){var Ce=this.utcOffset(),De="+";return Ce<0&&(Ce=-Ce,De="-"),De+N(~~(Ce/60),2)+te+N(~~Ce%60,2)})}td("Z",":"),td("ZZ",""),It("Z",ui),It("ZZ",ui),bi(["Z","ZZ"],function(B,te,Ce){Ce._useUTC=!0,Ce._tzm=ml(ui,B)});var es=/([\+\-]|\d\d)/gi;function ml(B,te){var Le,je,Ce=(te||"").match(B);return null===Ce?null:0===(je=60*(Le=((Ce[Ce.length-1]||[])+"").match(es)||["-",0,0])[1]+Vt(Le[2]))?0:"+"===Le[0]?je:-je}function kl(B,te){var Ce,De;return te._isUTC?(Ce=te.clone(),De=(Y(B)||v(B)?B.valueOf():Cs(B).valueOf())-Ce.valueOf(),Ce._d.setTime(Ce._d.valueOf()+De),d.updateOffset(Ce,!1),Ce):Cs(B).local()}function Cd(B){return-Math.round(B._d.getTimezoneOffset())}function sc(){return!!this.isValid()&&this._isUTC&&0===this._offset}d.updateOffset=function(){};var hh=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zc=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vl(B,te){var Le,je,it,Ce=B,De=null;return Xo(B)?Ce={ms:B._milliseconds,d:B._days,M:B._months}:_(B)||!isNaN(+B)?(Ce={},te?Ce[te]=+B:Ce.milliseconds=+B):(De=hh.exec(B))?(Le="-"===De[1]?-1:1,Ce={y:0,d:Vt(De[qi])*Le,h:Vt(De[Wi])*Le,m:Vt(De[yn])*Le,s:Vt(De[Ur])*Le,ms:Vt(Ys(1e3*De[ar]))*Le}):(De=zc.exec(B))?Ce={y:Jc(De[2],Le="-"===De[1]?-1:1),M:Jc(De[3],Le),w:Jc(De[4],Le),d:Jc(De[5],Le),h:Jc(De[6],Le),m:Jc(De[7],Le),s:Jc(De[8],Le)}:null==Ce?Ce={}:"object"==typeof Ce&&("from"in Ce||"to"in Ce)&&(it=function Yp(B,te){var Ce;return B.isValid()&&te.isValid()?(te=kl(te,B),B.isBefore(te)?Ce=Cp(B,te):((Ce=Cp(te,B)).milliseconds=-Ce.milliseconds,Ce.months=-Ce.months),Ce):{milliseconds:0,months:0}}(Cs(Ce.from),Cs(Ce.to)),(Ce={}).ms=it.milliseconds,Ce.M=it.months),je=new Io(Ce),Xo(B)&&E(B,"_locale")&&(je._locale=B._locale),Xo(B)&&E(B,"_isValid")&&(je._isValid=B._isValid),je}function Jc(B,te){var Ce=B&&parseFloat(B.replace(",","."));return(isNaN(Ce)?0:Ce)*te}function Cp(B,te){var Ce={};return Ce.months=te.month()-B.month()+12*(te.year()-B.year()),B.clone().add(Ce.months,"M").isAfter(te)&&--Ce.months,Ce.milliseconds=+te-+B.clone().add(Ce.months,"M"),Ce}function xc(B,te){return function(Ce,De){var je;return null!==De&&!isNaN(+De)&&(ee(te,"moment()."+te+"(period, number) is deprecated. Please use moment()."+te+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),je=Ce,Ce=De,De=je),wo(this,Vl(Ce,De),B),this}}function wo(B,te,Ce,De){var Le=te._milliseconds,je=Ys(te._days),it=Ys(te._months);B.isValid()&&(De=De??!0,it&&Ri(B,Na(B,"Month")+it*Ce),je&&uo(B,"Date",Na(B,"Date")+je*Ce),Le&&B._d.setTime(B._d.valueOf()+Le*Ce),De&&d.updateOffset(B,je||it))}Vl.fn=Io.prototype,Vl.invalid=function Wa(){return Vl(NaN)};var lc=xc(1,"add"),$s=xc(-1,"subtract");function et(B){return"string"==typeof B||B instanceof String}function Ot(B){return Y(B)||v(B)||et(B)||_(B)||function Ei(B){var te=j(B),Ce=!1;return te&&(Ce=0===B.filter(function(De){return!_(De)&&et(B)}).length),te&&Ce}(B)||function Qt(B){var Le,te=o(B)&&!R(B),Ce=!1,De=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],it=De.length;for(Le=0;Le<it;Le+=1)Ce=Ce||E(B,De[Le]);return te&&Ce}(B)||null==B}function Rs(B,te){if(B.date()<te.date())return-Rs(te,B);var Ce=12*(te.year()-B.year())+(te.month()-B.month()),De=B.clone().add(Ce,"months");return-(Ce+(te-De<0?(te-De)/(De-B.clone().add(Ce-1,"months")):(te-De)/(B.clone().add(Ce+1,"months")-De)))||0}function Da(B){var te;return void 0===B?this._locale._abbr:(null!=(te=hl(B))&&(this._locale=te),this)}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ca=se("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(B){return void 0===B?this.localeData():this.locale(B)});function ts(){return this._locale}var bo=6e4,Ss=60*bo,wa=3506328*Ss;function Fo(B,te){return(B%te+te)%te}function Ia(B,te,Ce){return B<100&&B>=0?new Date(B+400,te,Ce)-wa:new Date(B,te,Ce).valueOf()}function vr(B,te,Ce){return B<100&&B>=0?Date.UTC(B+400,te,Ce)-wa:Date.UTC(B,te,Ce)}function ko(B,te){return te.erasAbbrRegex(B)}function qc(){var Le,je,it,Pt,Zt,B=[],te=[],Ce=[],De=[],fi=this.eras();for(Le=0,je=fi.length;Le<je;++Le)it=st(fi[Le].name),Pt=st(fi[Le].abbr),Zt=st(fi[Le].narrow),te.push(it),B.push(Pt),Ce.push(Zt),De.push(it),De.push(Pt),De.push(Zt);this._erasRegex=new RegExp("^("+De.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+te.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+B.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+Ce.join("|")+")","i")}function kc(B,te){q(0,[B,B.length],0,te)}function vu(B,te,Ce,De,Le){var je;return null==B?_o(this,De,Le).year:(te>(je=Yo(B,De,Le))&&(te=je),cc.call(this,B,te,Ce,De,Le))}function cc(B,te,Ce,De,Le){var je=Ya(B,te,Ce,De,Le),it=aa(je.year,0,je.dayOfYear);return this.year(it.getUTCFullYear()),this.month(it.getUTCMonth()),this.date(it.getUTCDate()),this}q("N",0,0,"eraAbbr"),q("NN",0,0,"eraAbbr"),q("NNN",0,0,"eraAbbr"),q("NNNN",0,0,"eraName"),q("NNNNN",0,0,"eraNarrow"),q("y",["y",1],"yo","eraYear"),q("y",["yy",2],0,"eraYear"),q("y",["yyy",3],0,"eraYear"),q("y",["yyyy",4],0,"eraYear"),It("N",ko),It("NN",ko),It("NNN",ko),It("NNNN",function Uh(B,te){return te.erasNameRegex(B)}),It("NNNNN",function Gh(B,te){return te.erasNarrowRegex(B)}),bi(["N","NN","NNN","NNNN","NNNNN"],function(B,te,Ce,De){var Le=Ce._locale.erasParse(B,De,Ce._strict);Le?w(Ce).era=Le:w(Ce).invalidEra=B}),It("y",Ti),It("yy",Ti),It("yyy",Ti),It("yyyy",Ti),It("yo",function qd(B,te){return te._eraYearOrdinalRegex||Ti}),bi(["y","yy","yyy","yyyy"],mi),bi(["yo"],function(B,te,Ce,De){var Le;Ce._locale._eraYearOrdinalRegex&&(Le=B.match(Ce._locale._eraYearOrdinalRegex)),te[mi]=Ce._locale.eraYearOrdinalParse?Ce._locale.eraYearOrdinalParse(B,Le):parseInt(B,10)}),q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),kc("gggg","weekYear"),kc("ggggg","weekYear"),kc("GGGG","isoWeekYear"),kc("GGGGG","isoWeekYear"),It("G",ni),It("g",ni),It("GG",li,Ge),It("gg",li,Ge),It("GGGG",Ht,Tt),It("gggg",Ht,Tt),It("GGGGG",gi,jt),It("ggggg",gi,jt),gt(["gggg","ggggg","GGGG","GGGGG"],function(B,te,Ce,De){te[De.substr(0,2)]=Vt(B)}),gt(["gg","GG"],function(B,te,Ce,De){te[De]=d.parseTwoDigitYear(B)}),q("Q",0,"Qo","quarter"),It("Q",Mt),bi("Q",function(B,te){te[Kt]=3*(Vt(B)-1)}),q("D",["DD",2],"Do","date"),It("D",li,Xi),It("DD",li,Ge),It("Do",function(B,te){return B?te._dayOfMonthOrdinalParse||te._ordinalParse:te._dayOfMonthOrdinalParseLenient}),bi(["D","DD"],qi),bi("Do",function(B,te){te[qi]=Vt(B.match(li)[0])});var Qa=ja("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),It("DDD",Je),It("DDDD",ot),bi(["DDD","DDDD"],function(B,te,Ce){Ce._dayOfYear=Vt(B)}),q("m",["mm",2],0,"minute"),It("m",li,Qi),It("mm",li,Ge),bi(["m","mm"],yn);var lu=ja("Minutes",!1);q("s",["ss",2],0,"second"),It("s",li,Qi),It("ss",li,Ge),bi(["s","ss"],Ur);var Cc,mh,eh=ja("Seconds",!1);for(q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),It("S",Je,Mt),It("SS",Je,Ge),It("SSS",Je,ot),Cc="SSSS";Cc.length<=9;Cc+="S")It(Cc,Ti);function Kf(B,te){te[ar]=Vt(1e3*("0."+B))}for(Cc="S";Cc.length<=9;Cc+="S")bi(Cc,Kf);mh=ja("Milliseconds",!1),q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var Sa=F.prototype;function Ct(B){return B}Sa.add=lc,Sa.calendar=function ir(B,te){1===arguments.length&&(arguments[0]?Ot(arguments[0])?(B=arguments[0],te=void 0):function on(B){var Le,te=o(B)&&!R(B),Ce=!1,De=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(Le=0;Le<De.length;Le+=1)Ce=Ce||E(B,De[Le]);return te&&Ce}(arguments[0])&&(te=arguments[0],B=void 0):(B=void 0,te=void 0));var Ce=B||Cs(),De=kl(Ce,this).startOf("day"),Le=d.calendarFormat(this,De)||"sameElse",je=te&&(re(te[Le])?te[Le].call(this,Ce):te[Le]);return this.format(je||this.localeData().calendar(Le,this,Cs(Ce)))},Sa.clone=function Yr(){return new F(this)},Sa.diff=function Tl(B,te,Ce){var De,Le,je;if(!this.isValid())return NaN;if(!(De=kl(B,this)).isValid())return NaN;switch(Le=6e4*(De.utcOffset()-this.utcOffset()),te=Qe(te)){case"year":je=Rs(this,De)/12;break;case"month":je=Rs(this,De);break;case"quarter":je=Rs(this,De)/3;break;case"second":je=(this-De)/1e3;break;case"minute":je=(this-De)/6e4;break;case"hour":je=(this-De)/36e5;break;case"day":je=(this-De-Le)/864e5;break;case"week":je=(this-De-Le)/6048e5;break;default:je=this-De}return Ce?je:Wt(je)},Sa.endOf=function oa(B){var te,Ce;if(void 0===(B=Qe(B))||"millisecond"===B||!this.isValid())return this;switch(Ce=this._isUTC?vr:Ia,B){case"year":te=Ce(this.year()+1,0,1)-1;break;case"quarter":te=Ce(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":te=Ce(this.year(),this.month()+1,1)-1;break;case"week":te=Ce(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":te=Ce(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":te=Ce(this.year(),this.month(),this.date()+1)-1;break;case"hour":te=this._d.valueOf(),te+=Ss-Fo(te+(this._isUTC?0:this.utcOffset()*bo),Ss)-1;break;case"minute":te=this._d.valueOf(),te+=bo-Fo(te,bo)-1;break;case"second":te=this._d.valueOf(),te+=1e3-Fo(te,1e3)-1}return this._d.setTime(te),d.updateOffset(this,!0),this},Sa.format=function Gt(B){B||(B=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var te=ge(this,B);return this.localeData().postformat(te)},Sa.from=function hi(B,te){return this.isValid()&&(Y(B)&&B.isValid()||Cs(B).isValid())?Vl({to:this,from:B}).locale(this.locale()).humanize(!te):this.localeData().invalidDate()},Sa.fromNow=function gn(B){return this.from(Cs(),B)},Sa.to=function rr(B,te){return this.isValid()&&(Y(B)&&B.isValid()||Cs(B).isValid())?Vl({from:this,to:B}).locale(this.locale()).humanize(!te):this.localeData().invalidDate()},Sa.toNow=function Tr(B){return this.to(Cs(),B)},Sa.get=function Eo(B){return re(this[B=Qe(B)])?this[B]():this},Sa.invalidAt=function Al(){return w(this).overflow},Sa.isAfter=function Ir(B,te){var Ce=Y(B)?B:Cs(B);return!(!this.isValid()||!Ce.isValid())&&("millisecond"===(te=Qe(te)||"millisecond")?this.valueOf()>Ce.valueOf():Ce.valueOf()<this.clone().startOf(te).valueOf())},Sa.isBefore=function pa(B,te){var Ce=Y(B)?B:Cs(B);return!(!this.isValid()||!Ce.isValid())&&("millisecond"===(te=Qe(te)||"millisecond")?this.valueOf()<Ce.valueOf():this.clone().endOf(te).valueOf()<Ce.valueOf())},Sa.isBetween=function fa(B,te,Ce,De){var Le=Y(B)?B:Cs(B),je=Y(te)?te:Cs(te);return!!(this.isValid()&&Le.isValid()&&je.isValid())&&("("===(De=De||"()")[0]?this.isAfter(Le,Ce):!this.isBefore(Le,Ce))&&(")"===De[1]?this.isBefore(je,Ce):!this.isAfter(je,Ce))},Sa.isSame=function eo(B,te){var De,Ce=Y(B)?B:Cs(B);return!(!this.isValid()||!Ce.isValid())&&("millisecond"===(te=Qe(te)||"millisecond")?this.valueOf()===Ce.valueOf():(De=Ce.valueOf(),this.clone().startOf(te).valueOf()<=De&&De<=this.clone().endOf(te).valueOf()))},Sa.isSameOrAfter=function Oo(B,te){return this.isSame(B,te)||this.isAfter(B,te)},Sa.isSameOrBefore=function Fs(B,te){return this.isSame(B,te)||this.isBefore(B,te)},Sa.isValid=function Zc(){return k(this)},Sa.lang=Ca,Sa.locale=Da,Sa.localeData=ts,Sa.max=uh,Sa.min=ou,Sa.parsingFlags=function lo(){return s({},w(this))},Sa.set=function To(B,te){if("object"==typeof B){var De,Ce=function wt(B){var Ce,te=[];for(Ce in B)E(B,Ce)&&te.push({unit:Ce,priority:Lt[Ce]});return te.sort(function(De,Le){return De.priority-Le.priority}),te}(B=Et(B)),Le=Ce.length;for(De=0;De<Le;De++)this[Ce[De].unit](B[Ce[De].unit])}else if(re(this[B=Qe(B)]))return this[B](te);return this},Sa.startOf=function ba(B){var te,Ce;if(void 0===(B=Qe(B))||"millisecond"===B||!this.isValid())return this;switch(Ce=this._isUTC?vr:Ia,B){case"year":te=Ce(this.year(),0,1);break;case"quarter":te=Ce(this.year(),this.month()-this.month()%3,1);break;case"month":te=Ce(this.year(),this.month(),1);break;case"week":te=Ce(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":te=Ce(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":te=Ce(this.year(),this.month(),this.date());break;case"hour":te=this._d.valueOf(),te-=Fo(te+(this._isUTC?0:this.utcOffset()*bo),Ss);break;case"minute":te=this._d.valueOf(),te-=Fo(te,bo);break;case"second":te=this._d.valueOf(),te-=Fo(te,1e3)}return this._d.setTime(te),d.updateOffset(this,!0),this},Sa.subtract=$s,Sa.toArray=function Zr(){var B=this;return[B.year(),B.month(),B.date(),B.hour(),B.minute(),B.second(),B.millisecond()]},Sa.toObject=function tl(){var B=this;return{years:B.year(),months:B.month(),date:B.date(),hours:B.hours(),minutes:B.minutes(),seconds:B.seconds(),milliseconds:B.milliseconds()}},Sa.toDate=function nd(){return new Date(this.valueOf())},Sa.toISOString=function ut(B){if(!this.isValid())return null;var te=!0!==B,Ce=te?this.clone().utc():this;return Ce.year()<0||Ce.year()>9999?ge(Ce,te?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):re(Date.prototype.toISOString)?te?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ge(Ce,"Z")):ge(Ce,te?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Sa.inspect=function Mi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var Ce,De,B="moment",te="";return this.isLocal()||(B=0===this.utcOffset()?"moment.utc":"moment.parseZone",te="Z"),Ce="["+B+'("]',De=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(Ce+De+"-MM-DD[T]HH:mm:ss.SSS"+te+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Sa[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Sa.toJSON=function hd(){return this.isValid()?this.toISOString():null},Sa.toString=function Qc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Sa.unix=function Wn(){return Math.floor(this.valueOf()/1e3)},Sa.valueOf=function zs(){return this._d.valueOf()-6e4*(this._offset||0)},Sa.creationData=function Nd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Sa.eraName=function Hh(){var B,te,Ce,De=this.localeData().eras();for(B=0,te=De.length;B<te;++B)if(Ce=this.clone().startOf("day").valueOf(),De[B].since<=Ce&&Ce<=De[B].until||De[B].until<=Ce&&Ce<=De[B].since)return De[B].name;return""},Sa.eraNarrow=function fh(){var B,te,Ce,De=this.localeData().eras();for(B=0,te=De.length;B<te;++B)if(Ce=this.clone().startOf("day").valueOf(),De[B].since<=Ce&&Ce<=De[B].until||De[B].until<=Ce&&Ce<=De[B].since)return De[B].narrow;return""},Sa.eraAbbr=function zh(){var B,te,Ce,De=this.localeData().eras();for(B=0,te=De.length;B<te;++B)if(Ce=this.clone().startOf("day").valueOf(),De[B].since<=Ce&&Ce<=De[B].until||De[B].until<=Ce&&Ce<=De[B].since)return De[B].abbr;return""},Sa.eraYear=function $p(){var B,te,Ce,De,Le=this.localeData().eras();for(B=0,te=Le.length;B<te;++B)if(Ce=Le[B].since<=Le[B].until?1:-1,De=this.clone().startOf("day").valueOf(),Le[B].since<=De&&De<=Le[B].until||Le[B].until<=De&&De<=Le[B].since)return(this.year()-d(Le[B].since).year())*Ce+Le[B].offset;return this.year()},Sa.year=Pr,Sa.isLeapYear=function no(){return kt(this.year())},Sa.weekYear=function xl(B){return vu.call(this,B,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Sa.isoWeekYear=function Wh(B){return vu.call(this,B,this.isoWeek(),this.isoWeekday(),1,4)},Sa.quarter=Sa.quarters=function eu(B){return null==B?Math.ceil((this.month()+1)/3):this.month(3*(B-1)+this.month()%3)},Sa.month=ji,Sa.daysInMonth=function wn(){return si(this.year(),this.month())},Sa.week=Sa.weeks=function fl(B){var te=this.localeData().week(this);return null==B?te:this.add(7*(B-te),"d")},Sa.isoWeek=Sa.isoWeeks=function Jl(B){var te=_o(this,1,4).week;return null==B?te:this.add(7*(B-te),"d")},Sa.weeksInYear=function Ru(){var B=this.localeData()._week;return Yo(this.year(),B.dow,B.doy)},Sa.weeksInWeekYear=function _u(){var B=this.localeData()._week;return Yo(this.weekYear(),B.dow,B.doy)},Sa.isoWeeksInYear=function sl(){return Yo(this.year(),1,4)},Sa.isoWeeksInISOWeekYear=function dc(){return Yo(this.isoWeekYear(),1,4)},Sa.date=Qa,Sa.day=Sa.days=function Ko(B){if(!this.isValid())return null!=B?this:NaN;var te=Na(this,"Day");return null!=B?(B=function zo(B,te){return"string"!=typeof B?B:isNaN(B)?"number"==typeof(B=te.weekdaysParse(B))?B:null:parseInt(B,10)}(B,this.localeData()),this.add(B-te,"d")):te},Sa.weekday=function hs(B){if(!this.isValid())return null!=B?this:NaN;var te=(this.day()+7-this.localeData()._week.dow)%7;return null==B?te:this.add(B-te,"d")},Sa.isoWeekday=function ws(B){if(!this.isValid())return null!=B?this:NaN;if(null!=B){var te=function Ao(B,te){return"string"==typeof B?te.weekdaysParse(B)%7||7:isNaN(B)?null:B}(B,this.localeData());return this.day(this.day()%7?te:te-7)}return this.day()||7},Sa.dayOfYear=function qu(B){var te=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==B?te:this.add(B-te,"d")},Sa.hour=Sa.hours=va,Sa.minute=Sa.minutes=lu,Sa.second=Sa.seconds=eh,Sa.millisecond=Sa.milliseconds=mh,Sa.utcOffset=function Gd(B,te,Ce){var Le,De=this._offset||0;if(!this.isValid())return null!=B?this:NaN;if(null!=B){if("string"==typeof B){if(null===(B=ml(ui,B)))return this}else Math.abs(B)<16&&!Ce&&(B*=60);return!this._isUTC&&te&&(Le=Cd(this)),this._offset=B,this._isUTC=!0,null!=Le&&this.add(Le,"m"),De!==B&&(!te||this._changeInProgress?wo(this,Vl(B-De,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?De:Cd(this)},Sa.utc=function Vc(B){return this.utcOffset(0,B)},Sa.local=function su(B){return this._isUTC&&(this.utcOffset(0,B),this._isUTC=!1,B&&this.subtract(Cd(this),"m")),this},Sa.parseZone=function Ju(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var B=ml(wi,this._i);null!=B?this.utcOffset(B):this.utcOffset(0,!0)}return this},Sa.hasAlignedHourOffset=function lp(B){return!!this.isValid()&&(B=B?Cs(B).utcOffset():0,(this.utcOffset()-B)%60==0)},Sa.isDST=function gu(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Sa.isLocal=function Qd(){return!!this.isValid()&&!this._isUTC},Sa.isUtcOffset=function Ic(){return!!this.isValid()&&this._isUTC},Sa.isUtc=sc,Sa.isUTC=sc,Sa.zoneAbbr=function Kp(){return this._isUTC?"UTC":""},Sa.zoneName=function Xp(){return this._isUTC?"Coordinated Universal Time":""},Sa.dates=se("dates accessor is deprecated. Use date instead.",Qa),Sa.months=se("months accessor is deprecated. Use month instead",ji),Sa.years=se("years accessor is deprecated. Use year instead",Pr),Sa.zone=se("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function id(B,te){return null!=B?("string"!=typeof B&&(B=-B),this.utcOffset(B,te),this):-this.utcOffset()}),Sa.isDSTShifted=se("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Hc(){if(!m(this._isDSTShifted))return this._isDSTShifted;var te,B={};return C(B,this),(B=xd(B))._a?(te=B._isUTC?b(B._a):Cs(B._a),this._isDSTShifted=this.isValid()&&function ol(B,te,Ce){var it,De=Math.min(B.length,te.length),Le=Math.abs(B.length-te.length),je=0;for(it=0;it<De;it++)(Ce&&B[it]!==te[it]||!Ce&&Vt(B[it])!==Vt(te[it]))&&je++;return je+Le}(B._a,te.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var at=be.prototype;function St(B,te,Ce,De){var Le=hl(),je=b().set(De,te);return Le[Ce](je,B)}function pi(B,te,Ce){if(_(B)&&(te=B,B=void 0),B=B||"",null!=te)return St(B,te,Ce,"month");var De,Le=[];for(De=0;De<12;De++)Le[De]=St(B,De,Ce,"month");return Le}function zi(B,te,Ce,De){"boolean"==typeof B?(_(te)&&(Ce=te,te=void 0),te=te||""):(Ce=te=B,B=!1,_(te)&&(Ce=te,te=void 0),te=te||"");var it,Le=hl(),je=B?Le._week.dow:0,Pt=[];if(null!=Ce)return St(te,(Ce+je)%7,De,"day");for(it=0;it<7;it++)Pt[it]=St(te,(it+je)%7,De,"day");return Pt}at.calendar=function we(B,te,Ce){var De=this._calendar[B]||this._calendar.sameElse;return re(De)?De.call(te,Ce):De},at.longDateFormat=function Ie(B){var te=this._longDateFormat[B],Ce=this._longDateFormat[B.toUpperCase()];return te||!Ce?te:(this._longDateFormat[B]=Ce.match(G).map(function(De){return"MMMM"===De||"MM"===De||"DD"===De||"dddd"===De?De.slice(1):De}).join(""),this._longDateFormat[B])},at.invalidDate=function de(){return this._invalidDate},at.ordinal=function We(B){return this._ordinal.replace("%d",B)},at.preparse=Ct,at.postformat=Ct,at.relativeTime=function vt(B,te,Ce,De){var Le=this._relativeTime[Ce];return re(Le)?Le(B,te,Ce,De):Le.replace(/%d/i,B)},at.pastFuture=function Xt(B,te){var Ce=this._relativeTime[B>0?"future":"past"];return re(Ce)?Ce(te):Ce.replace(/%s/i,te)},at.set=function ne(B){var te,Ce;for(Ce in B)E(B,Ce)&&(re(te=B[Ce])?this[Ce]=te:this["_"+Ce]=te);this._config=B,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},at.eras=function Vh(B,te){var Ce,De,Le,je=this._eras||hl("en")._eras;for(Ce=0,De=je.length;Ce<De;++Ce)switch("string"==typeof je[Ce].since&&(Le=d(je[Ce].since).startOf("day"),je[Ce].since=Le.valueOf()),typeof je[Ce].until){case"undefined":je[Ce].until=1/0;break;case"string":Le=d(je[Ce].until).startOf("day").valueOf(),je[Ce].until=Le.valueOf()}return je},at.erasParse=function Ks(B,te,Ce){var De,Le,it,Pt,Zt,je=this.eras();for(B=B.toUpperCase(),De=0,Le=je.length;De<Le;++De)if(it=je[De].name.toUpperCase(),Pt=je[De].abbr.toUpperCase(),Zt=je[De].narrow.toUpperCase(),Ce)switch(te){case"N":case"NN":case"NNN":if(Pt===B)return je[De];break;case"NNNN":if(it===B)return je[De];break;case"NNNNN":if(Zt===B)return je[De]}else if([it,Pt,Zt].indexOf(B)>=0)return je[De]},at.erasConvertYear=function ph(B,te){var Ce=B.since<=B.until?1:-1;return void 0===te?d(B.since).year():d(B.since).year()+(te-B.offset)*Ce},at.erasAbbrRegex=function Zd(B){return E(this,"_erasAbbrRegex")||qc.call(this),B?this._erasAbbrRegex:this._erasRegex},at.erasNameRegex=function Qu(B){return E(this,"_erasNameRegex")||qc.call(this),B?this._erasNameRegex:this._erasRegex},at.erasNarrowRegex=function Zu(B){return E(this,"_erasNarrowRegex")||qc.call(this),B?this._erasNarrowRegex:this._erasRegex},at.months=function Gr(B,te){return B?j(this._months)?this._months[B.month()]:this._months[(this._months.isFormat||ln).test(te)?"format":"standalone"][B.month()]:j(this._months)?this._months:this._months.standalone},at.monthsShort=function ct(B,te){return B?j(this._monthsShort)?this._monthsShort[B.month()]:this._monthsShort[ln.test(te)?"format":"standalone"][B.month()]:j(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},at.monthsParse=function Ci(B,te,Ce){var De,Le,je;if(this._monthsParseExact)return ri.call(this,B,te,Ce);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),De=0;De<12;De++){if(Le=b([2e3,De]),Ce&&!this._longMonthsParse[De]&&(this._longMonthsParse[De]=new RegExp("^"+this.months(Le,"").replace(".","")+"$","i"),this._shortMonthsParse[De]=new RegExp("^"+this.monthsShort(Le,"").replace(".","")+"$","i")),!Ce&&!this._monthsParse[De]&&(je="^"+this.months(Le,"")+"|^"+this.monthsShort(Le,""),this._monthsParse[De]=new RegExp(je.replace(".",""),"i")),Ce&&"MMMM"===te&&this._longMonthsParse[De].test(B))return De;if(Ce&&"MMM"===te&&this._shortMonthsParse[De].test(B))return De;if(!Ce&&this._monthsParse[De].test(B))return De}},at.monthsRegex=function En(B){return this._monthsParseExact?(E(this,"_monthsRegex")||_r.call(this),B?this._monthsStrictRegex:this._monthsRegex):(E(this,"_monthsRegex")||(this._monthsRegex=jn),this._monthsStrictRegex&&B?this._monthsStrictRegex:this._monthsRegex)},at.monthsShortRegex=function Nn(B){return this._monthsParseExact?(E(this,"_monthsRegex")||_r.call(this),B?this._monthsShortStrictRegex:this._monthsShortRegex):(E(this,"_monthsShortRegex")||(this._monthsShortRegex=An),this._monthsShortStrictRegex&&B?this._monthsShortStrictRegex:this._monthsShortRegex)},at.week=function Va(B){return _o(B,this._week.dow,this._week.doy).week},at.firstDayOfYear=function mo(){return this._week.doy},at.firstDayOfWeek=function $o(){return this._week.dow},at.weekdays=function rs(B,te){var Ce=j(this._weekdays)?this._weekdays:this._weekdays[B&&!0!==B&&this._weekdays.isFormat.test(te)?"format":"standalone"];return!0===B?Ha(Ce,this._week.dow):B?Ce[B.day()]:Ce},at.weekdaysMin=function Zs(B){return!0===B?Ha(this._weekdaysMin,this._week.dow):B?this._weekdaysMin[B.day()]:this._weekdaysMin},at.weekdaysShort=function Ho(B){return!0===B?Ha(this._weekdaysShort,this._week.dow):B?this._weekdaysShort[B.day()]:this._weekdaysShort},at.weekdaysParse=function Ms(B,te,Ce){var De,Le,je;if(this._weekdaysParseExact)return jl.call(this,B,te,Ce);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),De=0;De<7;De++){if(Le=b([2e3,1]).day(De),Ce&&!this._fullWeekdaysParse[De]&&(this._fullWeekdaysParse[De]=new RegExp("^"+this.weekdays(Le,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[De]=new RegExp("^"+this.weekdaysShort(Le,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[De]=new RegExp("^"+this.weekdaysMin(Le,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[De]||(je="^"+this.weekdays(Le,"")+"|^"+this.weekdaysShort(Le,"")+"|^"+this.weekdaysMin(Le,""),this._weekdaysParse[De]=new RegExp(je.replace(".",""),"i")),Ce&&"dddd"===te&&this._fullWeekdaysParse[De].test(B))return De;if(Ce&&"ddd"===te&&this._shortWeekdaysParse[De].test(B))return De;if(Ce&&"dd"===te&&this._minWeekdaysParse[De].test(B))return De;if(!Ce&&this._weekdaysParse[De].test(B))return De}},at.weekdaysRegex=function Yl(B){return this._weekdaysParseExact?(E(this,"_weekdaysRegex")||Ni.call(this),B?this._weekdaysStrictRegex:this._weekdaysRegex):(E(this,"_weekdaysRegex")||(this._weekdaysRegex=El),this._weekdaysStrictRegex&&B?this._weekdaysStrictRegex:this._weekdaysRegex)},at.weekdaysShortRegex=function Bt(B){return this._weekdaysParseExact?(E(this,"_weekdaysRegex")||Ni.call(this),B?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(E(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Wl),this._weekdaysShortStrictRegex&&B?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},at.weekdaysMinRegex=function Si(B){return this._weekdaysParseExact?(E(this,"_weekdaysRegex")||Ni.call(this),B?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(E(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xd),this._weekdaysMinStrictRegex&&B?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},at.isPM=function xr(B){return"p"===(B+"").toLowerCase().charAt(0)},at.meridiem=function Aa(B,te,Ce){return B>11?Ce?"pm":"PM":Ce?"am":"AM"},_s("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(B){var te=B%10;return B+(1===Vt(B%100/10)?"th":1===te?"st":2===te?"nd":3===te?"rd":"th")}}),d.lang=se("moment.lang is deprecated. Use moment.locale instead.",_s),d.langData=se("moment.langData is deprecated. Use moment.localeData instead.",hl);var La=Math.abs;function bu(B,te,Ce,De){var Le=Vl(te,Ce);return B._milliseconds+=De*Le._milliseconds,B._days+=De*Le._days,B._months+=De*Le._months,B._bubble()}function dp(B){return B<0?Math.floor(B):Math.ceil(B)}function gm(B){return 4800*B/146097}function Jp(B){return 146097*B/4800}function du(B){return function(){return this.as(B)}}var Rc=du("ms"),iu=du("s"),yu=du("m"),wp=du("h"),Pu=du("d"),ih=du("w"),cp=du("M"),ag=du("Q"),pl=du("y"),wf=Rc;function jh(B){return function(){return this.isValid()?this._data[B]:NaN}}var Yh=jh("milliseconds"),up=jh("seconds"),Gc=jh("minutes"),og=jh("hours"),Zp=jh("days"),_m=jh("months"),Ad=jh("years");var vh=Math.round,qp={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Sf(B,te,Ce,De,Le){return Le.relativeTime(te||1,!!Ce,B,De)}var Wc=Math.abs;function Uo(B){return(B>0)-(B<0)||+B}function Se(){if(!this.isValid())return this.localeData().invalidDate();var De,Le,je,it,Zt,fi,Jt,Rt,B=Wc(this._milliseconds)/1e3,te=Wc(this._days),Ce=Wc(this._months),Pt=this.asSeconds();return Pt?(De=Wt(B/60),Le=Wt(De/60),B%=60,De%=60,je=Wt(Ce/12),Ce%=12,it=B?B.toFixed(3).replace(/\.?0+$/,""):"",Zt=Pt<0?"-":"",fi=Uo(this._months)!==Uo(Pt)?"-":"",Jt=Uo(this._days)!==Uo(Pt)?"-":"",Rt=Uo(this._milliseconds)!==Uo(Pt)?"-":"",Zt+"P"+(je?fi+je+"Y":"")+(Ce?fi+Ce+"M":"")+(te?Jt+te+"D":"")+(Le||De||B?"T":"")+(Le?Rt+Le+"H":"")+(De?Rt+De+"M":"")+(B?Rt+it+"S":"")):"P0D"}var ue=Io.prototype;return ue.isValid=function ea(){return this._isValid},ue.abs=function pd(){var B=this._data;return this._milliseconds=La(this._milliseconds),this._days=La(this._days),this._months=La(this._months),B.milliseconds=La(B.milliseconds),B.seconds=La(B.seconds),B.minutes=La(B.minutes),B.hours=La(B.hours),B.months=La(B.months),B.years=La(B.years),this},ue.add=function th(B,te){return bu(this,B,te,1)},ue.subtract=function gh(B,te){return bu(this,B,te,-1)},ue.as=function tu(B){if(!this.isValid())return NaN;var te,Ce,De=this._milliseconds;if("month"===(B=Qe(B))||"quarter"===B||"year"===B)switch(te=this._days+De/864e5,Ce=this._months+gm(te),B){case"month":return Ce;case"quarter":return Ce/3;case"year":return Ce/12}else switch(te=this._days+Math.round(Jp(this._months)),B){case"week":return te/7+De/6048e5;case"day":return te+De/864e5;case"hour":return 24*te+De/36e5;case"minute":return 1440*te+De/6e4;case"second":return 86400*te+De/1e3;case"millisecond":return Math.floor(864e5*te)+De;default:throw new Error("Unknown unit "+B)}},ue.asMilliseconds=Rc,ue.asSeconds=iu,ue.asMinutes=yu,ue.asHours=wp,ue.asDays=Pu,ue.asWeeks=ih,ue.asMonths=cp,ue.asQuarters=ag,ue.asYears=pl,ue.valueOf=wf,ue._bubble=function _h(){var Le,je,it,Pt,Zt,B=this._milliseconds,te=this._days,Ce=this._months,De=this._data;return B>=0&&te>=0&&Ce>=0||B<=0&&te<=0&&Ce<=0||(B+=864e5*dp(Jp(Ce)+te),te=0,Ce=0),De.milliseconds=B%1e3,Le=Wt(B/1e3),De.seconds=Le%60,je=Wt(Le/60),De.minutes=je%60,it=Wt(je/60),De.hours=it%24,te+=Wt(it/24),Ce+=Zt=Wt(gm(te)),te-=dp(Jp(Zt)),Pt=Wt(Ce/12),Ce%=12,De.days=te,De.months=Ce,De.years=Pt,this},ue.clone=function Qp(){return Vl(this)},ue.get=function Uc(B){return B=Qe(B),this.isValid()?this[B+"s"]():NaN},ue.milliseconds=Yh,ue.seconds=up,ue.minutes=Gc,ue.hours=og,ue.days=Zp,ue.weeks=function sg(){return Wt(this.days()/7)},ue.months=_m,ue.years=Ad,ue.humanize=function Im(B,te){if(!this.isValid())return this.localeData().invalidDate();var Le,je,Ce=!1,De=qp;return"object"==typeof B&&(te=B,B=!1),"boolean"==typeof B&&(Ce=B),"object"==typeof te&&(De=Object.assign({},qp,te),null!=te.s&&null==te.ss&&(De.ss=te.s-1)),je=function Jf(B,te,Ce,De){var Le=Vl(B).abs(),je=vh(Le.as("s")),it=vh(Le.as("m")),Pt=vh(Le.as("h")),Zt=vh(Le.as("d")),fi=vh(Le.as("M")),Jt=vh(Le.as("w")),Rt=vh(Le.as("y")),sn=je<=Ce.ss&&["s",je]||je<Ce.s&&["ss",je]||it<=1&&["m"]||it<Ce.m&&["mm",it]||Pt<=1&&["h"]||Pt<Ce.h&&["hh",Pt]||Zt<=1&&["d"]||Zt<Ce.d&&["dd",Zt];return null!=Ce.w&&(sn=sn||Jt<=1&&["w"]||Jt<Ce.w&&["ww",Jt]),(sn=sn||fi<=1&&["M"]||fi<Ce.M&&["MM",fi]||Rt<=1&&["y"]||["yy",Rt])[2]=te,sn[3]=+B>0,sn[4]=De,Sf.apply(null,sn)}(this,!Ce,De,Le=this.localeData()),Ce&&(je=Le.pastFuture(+this,je)),Le.postformat(je)},ue.toISOString=Se,ue.toString=Se,ue.toJSON=Se,ue.locale=Da,ue.localeData=ts,ue.toIsoString=se("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Se),ue.lang=Ca,q("X",0,0,"unix"),q("x",0,0,"valueOf"),It("x",ni),It("X",/[+-]?\d+(\.\d{1,3})?/),bi("X",function(B,te,Ce){Ce._d=new Date(1e3*parseFloat(B))}),bi("x",function(B,te,Ce){Ce._d=new Date(Vt(B))}),d.version="2.30.1",function L(B){r=B}(Cs),d.fn=Sa,d.min=function qe(){return Ve("isBefore",[].slice.call(arguments,0))},d.max=function Yt(){return Ve("isAfter",[].slice.call(arguments,0))},d.now=function(){return Date.now?Date.now():+new Date},d.utc=b,d.unix=function Xf(B){return Cs(1e3*B)},d.months=function In(B,te){return pi(B,te,"months")},d.isDate=v,d.locale=_s,d.invalid=I,d.duration=Vl,d.isMoment=Y,d.weekdays=function pr(B,te,Ce){return zi(B,te,Ce,"weekdays")},d.parseZone=function nt(){return Cs.apply(null,arguments).parseZone()},d.localeData=hl,d.isDuration=Xo,d.monthsShort=function qn(B,te){return pi(B,te,"monthsShort")},d.weekdaysMin=function ds(B,te,Ce){return zi(B,te,Ce,"weekdaysMin")},d.defineLocale=yl,d.updateLocale=function Hs(B,te){if(null!=te){var Ce,De,Le=Ba;null!=ga[B]&&null!=ga[B].parentLocale?ga[B].set(_e(ga[B]._config,te)):(null!=(De=el(B))&&(Le=De._config),te=_e(Le,te),null==De&&(te.abbr=B),(Ce=new be(te)).parentLocale=ga[B],ga[B]=Ce),_s(B)}else null!=ga[B]&&(null!=ga[B].parentLocale?(ga[B]=ga[B].parentLocale,B===_s()&&_s(B)):null!=ga[B]&&delete ga[B]);return ga[B]},d.locales=function Os(){return oe(ga)},d.weekdaysShort=function Za(B,te,Ce){return zi(B,te,Ce,"weekdaysShort")},d.normalizeUnits=Qe,d.relativeTimeRounding=function Df(B){return void 0===B?vh:"function"==typeof B&&(vh=B,!0)},d.relativeTimeThreshold=function Ef(B,te){return void 0!==qp[B]&&(void 0===te?qp[B]:(qp[B]=te,"s"===B&&(qp.ss=te-1),!0))},d.calendarFormat=function Bn(B,te){var Ce=B.diff(te,"days",!0);return Ce<-6?"sameElse":Ce<-1?"lastWeek":Ce<0?"lastDay":Ce<1?"sameDay":Ce<2?"nextDay":Ce<7?"nextWeek":"sameElse"},d.prototype=Sa,d.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},d}()},84412:(ei,rt,D)=>{"use strict";D.d(rt,{t:()=>d});var r=D(21413);class d extends r.B{constructor(j){super(),this._value=j}get value(){return this.getValue()}_subscribe(j){const o=super._subscribe(j);return!o.closed&&j.next(this._value),o}getValue(){const{hasError:j,thrownError:o,_value:E}=this;if(j)throw o;return this._throwIfClosed(),E}next(j){super.next(this._value=j)}}},71985:(ei,rt,D)=>{"use strict";D.d(rt,{c:()=>m});var r=D(47707),d=D(18359),L=D(3494),j=D(71203),o=D(41026),E=D(98071),R=D(49786);let m=(()=>{class s{constructor(O){O&&(this._subscribe=O)}lift(O){const w=new s;return w.source=this,w.operator=O,w}subscribe(O,w,f){const k=function h(s){return s&&s instanceof r.vU||function v(s){return s&&(0,E.T)(s.next)&&(0,E.T)(s.error)&&(0,E.T)(s.complete)}(s)&&(0,d.Uv)(s)}(O)?O:new r.Ms(O,w,f);return(0,R.Y)(()=>{const{operator:I,source:x}=this;k.add(I?I.call(k,x):x?this._subscribe(k):this._trySubscribe(k))}),k}_trySubscribe(O){try{return this._subscribe(O)}catch(w){O.error(w)}}forEach(O,w){return new(w=_(w))((f,k)=>{const I=new r.Ms({next:x=>{try{O(x)}catch(g){k(g),I.unsubscribe()}},error:k,complete:f});this.subscribe(I)})}_subscribe(O){var w;return null===(w=this.source)||void 0===w?void 0:w.subscribe(O)}[L.s](){return this}pipe(...O){return(0,j.m)(O)(this)}toPromise(O){return new(O=_(O))((w,f)=>{let k;this.subscribe(I=>k=I,I=>f(I),()=>w(k))})}}return s.create=b=>new s(b),s})();function _(s){var b;return null!==(b=s??o.$.Promise)&&void 0!==b?b:Promise}},21413:(ei,rt,D)=>{"use strict";D.d(rt,{B:()=>R});var r=D(71985),d=D(18359);const j=(0,D(81853).L)(_=>function(){_(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var o=D(57908),E=D(49786);let R=(()=>{class _ extends r.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(h){const s=new m(this,this);return s.operator=h,s}_throwIfClosed(){if(this.closed)throw new j}next(h){(0,E.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const s of this.currentObservers)s.next(h)}})}error(h){(0,E.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=h;const{observers:s}=this;for(;s.length;)s.shift().error(h)}})}complete(){(0,E.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:h}=this;for(;h.length;)h.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var h;return(null===(h=this.observers)||void 0===h?void 0:h.length)>0}_trySubscribe(h){return this._throwIfClosed(),super._trySubscribe(h)}_subscribe(h){return this._throwIfClosed(),this._checkFinalizedStatuses(h),this._innerSubscribe(h)}_innerSubscribe(h){const{hasError:s,isStopped:b,observers:O}=this;return s||b?d.Kn:(this.currentObservers=null,O.push(h),new d.yU(()=>{this.currentObservers=null,(0,o.o)(O,h)}))}_checkFinalizedStatuses(h){const{hasError:s,thrownError:b,isStopped:O}=this;s?h.error(b):O&&h.complete()}asObservable(){const h=new r.c;return h.source=this,h}}return _.create=(v,h)=>new m(v,h),_})();class m extends R{constructor(v,h){super(),this.destination=v,this.source=h}next(v){var h,s;null===(s=null===(h=this.destination)||void 0===h?void 0:h.next)||void 0===s||s.call(h,v)}error(v){var h,s;null===(s=null===(h=this.destination)||void 0===h?void 0:h.error)||void 0===s||s.call(h,v)}complete(){var v,h;null===(h=null===(v=this.destination)||void 0===v?void 0:v.complete)||void 0===h||h.call(v)}_subscribe(v){var h,s;return null!==(s=null===(h=this.source)||void 0===h?void 0:h.subscribe(v))&&void 0!==s?s:d.Kn}}},47707:(ei,rt,D)=>{"use strict";D.d(rt,{Ms:()=>f,vU:()=>s});var r=D(98071),d=D(18359),L=D(41026),j=D(45334),o=D(85343);const E=_("C",void 0,void 0);function _(C,F,Y){return{kind:C,value:F,error:Y}}var v=D(19270),h=D(49786);class s extends d.yU{constructor(F){super(),this.isStopped=!1,F?(this.destination=F,(0,d.Uv)(F)&&F.add(this)):this.destination=g}static create(F,Y,Q){return new f(F,Y,Q)}next(F){this.isStopped?x(function m(C){return _("N",C,void 0)}(F),this):this._next(F)}error(F){this.isStopped?x(function R(C){return _("E",void 0,C)}(F),this):(this.isStopped=!0,this._error(F))}complete(){this.isStopped?x(E,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(F){this.destination.next(F)}_error(F){try{this.destination.error(F)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const b=Function.prototype.bind;function O(C,F){return b.call(C,F)}class w{constructor(F){this.partialObserver=F}next(F){const{partialObserver:Y}=this;if(Y.next)try{Y.next(F)}catch(Q){k(Q)}}error(F){const{partialObserver:Y}=this;if(Y.error)try{Y.error(F)}catch(Q){k(Q)}else k(F)}complete(){const{partialObserver:F}=this;if(F.complete)try{F.complete()}catch(Y){k(Y)}}}class f extends s{constructor(F,Y,Q){let se;if(super(),(0,r.T)(F)||!F)se={next:F??void 0,error:Y??void 0,complete:Q??void 0};else{let ie;this&&L.$.useDeprecatedNextContext?(ie=Object.create(F),ie.unsubscribe=()=>this.unsubscribe(),se={next:F.next&&O(F.next,ie),error:F.error&&O(F.error,ie),complete:F.complete&&O(F.complete,ie)}):se=F}this.destination=new w(se)}}function k(C){L.$.useDeprecatedSynchronousErrorHandling?(0,h.l)(C):(0,j.m)(C)}function x(C,F){const{onStoppedNotification:Y}=L.$;Y&&v.f.setTimeout(()=>Y(C,F))}const g={closed:!0,next:o.l,error:function I(C){throw C},complete:o.l}},18359:(ei,rt,D)=>{"use strict";D.d(rt,{Kn:()=>E,yU:()=>o,Uv:()=>R});var r=D(98071);const L=(0,D(81853).L)(_=>function(h){_(this),this.message=h?`${h.length} errors occurred during unsubscription:\n${h.map((s,b)=>`${b+1}) ${s.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=h});var j=D(57908);class o{constructor(v){this.initialTeardown=v,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let v;if(!this.closed){this.closed=!0;const{_parentage:h}=this;if(h)if(this._parentage=null,Array.isArray(h))for(const O of h)O.remove(this);else h.remove(this);const{initialTeardown:s}=this;if((0,r.T)(s))try{s()}catch(O){v=O instanceof L?O.errors:[O]}const{_finalizers:b}=this;if(b){this._finalizers=null;for(const O of b)try{m(O)}catch(w){v=v??[],w instanceof L?v=[...v,...w.errors]:v.push(w)}}if(v)throw new L(v)}}add(v){var h;if(v&&v!==this)if(this.closed)m(v);else{if(v instanceof o){if(v.closed||v._hasParent(this))return;v._addParent(this)}(this._finalizers=null!==(h=this._finalizers)&&void 0!==h?h:[]).push(v)}}_hasParent(v){const{_parentage:h}=this;return h===v||Array.isArray(h)&&h.includes(v)}_addParent(v){const{_parentage:h}=this;this._parentage=Array.isArray(h)?(h.push(v),h):h?[h,v]:v}_removeParent(v){const{_parentage:h}=this;h===v?this._parentage=null:Array.isArray(h)&&(0,j.o)(h,v)}remove(v){const{_finalizers:h}=this;h&&(0,j.o)(h,v),v instanceof o&&v._removeParent(this)}}o.EMPTY=(()=>{const _=new o;return _.closed=!0,_})();const E=o.EMPTY;function R(_){return _ instanceof o||_&&"closed"in _&&(0,r.T)(_.remove)&&(0,r.T)(_.add)&&(0,r.T)(_.unsubscribe)}function m(_){(0,r.T)(_)?_():_.unsubscribe()}},41026:(ei,rt,D)=>{"use strict";D.d(rt,{$:()=>r});const r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},30017:(ei,rt,D)=>{"use strict";D.d(rt,{G:()=>E});var r=D(71985),d=D(18359),L=D(99898),j=D(54360),o=D(39974);class E extends r.c{constructor(m,_){super(),this.source=m,this.subjectFactory=_,this._subject=null,this._refCount=0,this._connection=null,(0,o.S)(m)&&(this.lift=m.lift)}_subscribe(m){return this.getSubject().subscribe(m)}getSubject(){const m=this._subject;return(!m||m.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:m}=this;this._subject=this._connection=null,m?.unsubscribe()}connect(){let m=this._connection;if(!m){m=this._connection=new d.yU;const _=this.getSubject();m.add(this.source.subscribe((0,j._)(_,void 0,()=>{this._teardown(),_.complete()},v=>{this._teardown(),_.error(v)},()=>this._teardown()))),m.closed&&(this._connection=null,m=d.yU.EMPTY)}return m}refCount(){return(0,L.B)()(this)}}},84572:(ei,rt,D)=>{"use strict";D.d(rt,{z:()=>v});var r=D(71985),d=D(93073),L=D(86648),j=D(33669),o=D(6450),E=D(9326),R=D(58496),m=D(54360),_=D(45225);function v(...b){const O=(0,E.lI)(b),w=(0,E.ms)(b),{args:f,keys:k}=(0,d.D)(b);if(0===f.length)return(0,L.H)([],O);const I=new r.c(function h(b,O,w=j.D){return f=>{s(O,()=>{const{length:k}=b,I=new Array(k);let x=k,g=k;for(let C=0;C<k;C++)s(O,()=>{const F=(0,L.H)(b[C],O);let Y=!1;F.subscribe((0,m._)(f,Q=>{I[C]=Q,Y||(Y=!0,g--),g||f.next(w(I.slice()))},()=>{--x||f.complete()}))},f)},f)}}(f,O,k?x=>(0,R.e)(k,x):j.D));return w?I.pipe((0,o.I)(w)):I}function s(b,O,w){b?(0,_.N)(w,b,O):O()}},28793:(ei,rt,D)=>{"use strict";D.d(rt,{x:()=>o});var r=D(26365),L=D(9326),j=D(86648);function o(...E){return function d(){return(0,r.U)(1)}()((0,j.H)(E,(0,L.lI)(E)))}},59030:(ei,rt,D)=>{"use strict";D.d(rt,{v:()=>L});var r=D(71985),d=D(58750);function L(j){return new r.c(o=>{(0,d.Tg)(j()).subscribe(o)})}},983:(ei,rt,D)=>{"use strict";D.d(rt,{w:()=>d});const d=new(D(71985).c)(o=>o.complete())},27468:(ei,rt,D)=>{"use strict";D.d(rt,{p:()=>m});var r=D(71985),d=D(93073),L=D(58750),j=D(9326),o=D(54360),E=D(6450),R=D(58496);function m(..._){const v=(0,j.ms)(_),{args:h,keys:s}=(0,d.D)(_),b=new r.c(O=>{const{length:w}=h;if(!w)return void O.complete();const f=new Array(w);let k=w,I=w;for(let x=0;x<w;x++){let g=!1;(0,L.Tg)(h[x]).subscribe((0,o._)(O,C=>{g||(g=!0,I--),f[x]=C},()=>k--,void 0,()=>{(!k||!g)&&(I||O.next(s?(0,R.e)(s,f):f),O.complete())}))}});return v?b.pipe((0,E.I)(v)):b}},86648:(ei,rt,D)=>{"use strict";D.d(rt,{H:()=>Q});var r=D(58750),d=D(45225),L=D(39974),j=D(54360);function o(se,ie=0){return(0,L.N)((ee,re)=>{ee.subscribe((0,j._)(re,ne=>(0,d.N)(re,se,()=>re.next(ne),ie),()=>(0,d.N)(re,se,()=>re.complete(),ie),ne=>(0,d.N)(re,se,()=>re.error(ne),ie)))})}function E(se,ie=0){return(0,L.N)((ee,re)=>{re.add(se.schedule(()=>ee.subscribe(re),ie))})}var _=D(71985),h=D(4761),s=D(98071);function O(se,ie){if(!se)throw new Error("Iterable cannot be null");return new _.c(ee=>{(0,d.N)(ee,ie,()=>{const re=se[Symbol.asyncIterator]();(0,d.N)(ee,ie,()=>{re.next().then(ne=>{ne.done?ee.complete():ee.next(ne.value)})},0,!0)})})}var w=D(55055),f=D(59858),k=D(47441),I=D(85397),x=D(37953),g=D(50591),C=D(15196);function Q(se,ie){return ie?function Y(se,ie){if(null!=se){if((0,w.l)(se))return function R(se,ie){return(0,r.Tg)(se).pipe(E(ie),o(ie))}(se,ie);if((0,k.X)(se))return function v(se,ie){return new _.c(ee=>{let re=0;return ie.schedule(function(){re===se.length?ee.complete():(ee.next(se[re++]),ee.closed||this.schedule())})})}(se,ie);if((0,f.y)(se))return function m(se,ie){return(0,r.Tg)(se).pipe(E(ie),o(ie))}(se,ie);if((0,x.T)(se))return O(se,ie);if((0,I.x)(se))return function b(se,ie){return new _.c(ee=>{let re;return(0,d.N)(ee,ie,()=>{re=se[h.l](),(0,d.N)(ee,ie,()=>{let ne,_e;try{({value:ne,done:_e}=re.next())}catch(be){return void ee.error(be)}_e?ee.complete():ee.next(ne)},0,!0)}),()=>(0,s.T)(re?.return)&&re.return()})}(se,ie);if((0,C.U)(se))return function F(se,ie){return O((0,C.C)(se),ie)}(se,ie)}throw(0,g.L)(se)}(se,ie):(0,r.Tg)(se)}},33726:(ei,rt,D)=>{"use strict";D.d(rt,{R:()=>v});var r=D(58750),d=D(71985),L=D(31397),j=D(47441),o=D(98071),E=D(6450);const R=["addListener","removeListener"],m=["addEventListener","removeEventListener"],_=["on","off"];function v(w,f,k,I){if((0,o.T)(k)&&(I=k,k=void 0),I)return v(w,f,k).pipe((0,E.I)(I));const[x,g]=function O(w){return(0,o.T)(w.addEventListener)&&(0,o.T)(w.removeEventListener)}(w)?m.map(C=>F=>w[C](f,F,k)):function s(w){return(0,o.T)(w.addListener)&&(0,o.T)(w.removeListener)}(w)?R.map(h(w,f)):function b(w){return(0,o.T)(w.on)&&(0,o.T)(w.off)}(w)?_.map(h(w,f)):[];if(!x&&(0,j.X)(w))return(0,L.Z)(C=>v(C,f,k))((0,r.Tg)(w));if(!x)throw new TypeError("Invalid event target");return new d.c(C=>{const F=(...Y)=>C.next(1<Y.length?Y:Y[0]);return x(F),()=>g(F)})}function h(w,f){return k=>I=>w[k](f,I)}},58750:(ei,rt,D)=>{"use strict";D.d(rt,{Tg:()=>b});var r=D(31635),d=D(47441),L=D(59858),j=D(71985),o=D(55055),E=D(37953),R=D(50591),m=D(85397),_=D(15196),v=D(98071),h=D(45334),s=D(3494);function b(C){if(C instanceof j.c)return C;if(null!=C){if((0,o.l)(C))return function O(C){return new j.c(F=>{const Y=C[s.s]();if((0,v.T)(Y.subscribe))return Y.subscribe(F);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(C);if((0,d.X)(C))return function w(C){return new j.c(F=>{for(let Y=0;Y<C.length&&!F.closed;Y++)F.next(C[Y]);F.complete()})}(C);if((0,L.y)(C))return function f(C){return new j.c(F=>{C.then(Y=>{F.closed||(F.next(Y),F.complete())},Y=>F.error(Y)).then(null,h.m)})}(C);if((0,E.T)(C))return I(C);if((0,m.x)(C))return function k(C){return new j.c(F=>{for(const Y of C)if(F.next(Y),F.closed)return;F.complete()})}(C);if((0,_.U)(C))return function x(C){return I((0,_.C)(C))}(C)}throw(0,R.L)(C)}function I(C){return new j.c(F=>{(function g(C,F){var Y,Q,se,ie;return(0,r.sH)(this,void 0,void 0,function*(){try{for(Y=(0,r.xN)(C);!(Q=yield Y.next()).done;)if(F.next(Q.value),F.closed)return}catch(ee){se={error:ee}}finally{try{Q&&!Q.done&&(ie=Y.return)&&(yield ie.call(Y))}finally{if(se)throw se.error}}F.complete()})})(C,F).catch(Y=>F.error(Y))})}},40605:(ei,rt,D)=>{"use strict";D.d(rt,{Y:()=>L});var r=D(43236),d=D(41584);function L(j=0,o=r.E){return j<0&&(j=0),(0,d.O)(j,j,o)}},57786:(ei,rt,D)=>{"use strict";D.d(rt,{h:()=>E});var r=D(26365),d=D(58750),L=D(983),j=D(9326),o=D(86648);function E(...R){const m=(0,j.lI)(R),_=(0,j.R0)(R,1/0),v=R;return v.length?1===v.length?(0,d.Tg)(v[0]):(0,r.U)(_)((0,o.H)(v,m)):L.w}},7673:(ei,rt,D)=>{"use strict";D.d(rt,{of:()=>L});var r=D(9326),d=D(86648);function L(...j){const o=(0,r.lI)(j);return(0,d.H)(j,o)}},18810:(ei,rt,D)=>{"use strict";D.d(rt,{$:()=>L});var r=D(71985),d=D(98071);function L(j,o){const E=(0,d.T)(j)?j:()=>j,R=m=>m.error(E());return new r.c(o?m=>o.schedule(R,0,m):R)}},41584:(ei,rt,D)=>{"use strict";D.d(rt,{O:()=>o});var r=D(71985),d=D(43236),L=D(79470);function o(E=0,R,m=d.b){let _=-1;return null!=R&&((0,L.m)(R)?m=R:_=R),new r.c(v=>{let h=function j(E){return E instanceof Date&&!isNaN(E)}(E)?+E-m.now():E;h<0&&(h=0);let s=0;return m.schedule(function(){v.closed||(v.next(s++),0<=_?this.schedule(void 0,_):v.complete())},h)})}},54360:(ei,rt,D)=>{"use strict";D.d(rt,{_:()=>d});var r=D(47707);function d(j,o,E,R,m){return new L(j,o,E,R,m)}class L extends r.vU{constructor(o,E,R,m,_,v){super(o),this.onFinalize=_,this.shouldUnsubscribe=v,this._next=E?function(h){try{E(h)}catch(s){o.error(s)}}:super._next,this._error=m?function(h){try{m(h)}catch(s){o.error(s)}finally{this.unsubscribe()}}:super._error,this._complete=R?function(){try{R()}catch(h){o.error(h)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var o;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:E}=this;super.unsubscribe(),!E&&(null===(o=this.onFinalize)||void 0===o||o.call(this))}}}},99437:(ei,rt,D)=>{"use strict";D.d(rt,{W:()=>j});var r=D(58750),d=D(54360),L=D(39974);function j(o){return(0,L.N)((E,R)=>{let v,m=null,_=!1;m=E.subscribe((0,d._)(R,void 0,void 0,h=>{v=(0,r.Tg)(o(h,j(o)(E))),m?(m.unsubscribe(),m=null,v.subscribe(R)):_=!0})),_&&(m.unsubscribe(),m=null,v.subscribe(R))})}},70274:(ei,rt,D)=>{"use strict";D.d(rt,{H:()=>L});var r=D(31397),d=D(98071);function L(j,o){return(0,d.T)(o)?(0,r.Z)(j,o,1):(0,r.Z)(j,1)}},70152:(ei,rt,D)=>{"use strict";D.d(rt,{B:()=>j});var r=D(43236),d=D(39974),L=D(54360);function j(o,E=r.E){return(0,d.N)((R,m)=>{let _=null,v=null,h=null;const s=()=>{if(_){_.unsubscribe(),_=null;const O=v;v=null,m.next(O)}};function b(){const O=h+o,w=E.now();if(w<O)return _=this.schedule(void 0,O-w),void m.add(_);s()}R.subscribe((0,L._)(m,O=>{v=O,h=E.now(),_||(_=E.schedule(b,o),m.add(_))},()=>{s(),m.complete()},void 0,()=>{v=_=null}))})}},91986:(ei,rt,D)=>{"use strict";D.d(rt,{c:()=>b});var r=D(43236),d=D(28793),L=D(96697),j=D(39974),o=D(54360),E=D(85343),m=D(73703),_=D(31397),v=D(58750);function h(O,w){return w?f=>(0,d.x)(w.pipe((0,L.s)(1),function R(){return(0,j.N)((O,w)=>{O.subscribe((0,o._)(w,E.l))})}()),f.pipe(h(O))):(0,_.Z)((f,k)=>(0,v.Tg)(O(f,k)).pipe((0,L.s)(1),(0,m.u)(f)))}var s=D(41584);function b(O,w=r.E){const f=(0,s.O)(O,w);return h(()=>f)}},23294:(ei,rt,D)=>{"use strict";D.d(rt,{F:()=>j});var r=D(33669),d=D(39974),L=D(54360);function j(E,R=r.D){return E=E??o,(0,d.N)((m,_)=>{let v,h=!0;m.subscribe((0,L._)(_,s=>{const b=R(s);(h||!E(v,b))&&(h=!1,v=b,_.next(s))}))})}function o(E,R){return E===R}},5964:(ei,rt,D)=>{"use strict";D.d(rt,{p:()=>L});var r=D(39974),d=D(54360);function L(j,o){return(0,r.N)((E,R)=>{let m=0;E.subscribe((0,d._)(R,_=>j.call(o,_,m++)&&R.next(_)))})}},70980:(ei,rt,D)=>{"use strict";D.d(rt,{j:()=>d});var r=D(39974);function d(L){return(0,r.N)((j,o)=>{try{j.subscribe(o)}finally{o.add(L)}})}},96354:(ei,rt,D)=>{"use strict";D.d(rt,{T:()=>L});var r=D(39974),d=D(54360);function L(j,o){return(0,r.N)((E,R)=>{let m=0;E.subscribe((0,d._)(R,_=>{R.next(j.call(o,_,m++))}))})}},73703:(ei,rt,D)=>{"use strict";D.d(rt,{u:()=>d});var r=D(96354);function d(L){return(0,r.T)(()=>L)}},26365:(ei,rt,D)=>{"use strict";D.d(rt,{U:()=>L});var r=D(31397),d=D(33669);function L(j=1/0){return(0,r.Z)(d.D,j)}},31397:(ei,rt,D)=>{"use strict";D.d(rt,{Z:()=>m});var r=D(96354),d=D(58750),L=D(39974),j=D(45225),o=D(54360),R=D(98071);function m(_,v,h=1/0){return(0,R.T)(v)?m((s,b)=>(0,r.T)((O,w)=>v(s,O,b,w))((0,d.Tg)(_(s,b))),h):("number"==typeof v&&(h=v),(0,L.N)((s,b)=>function E(_,v,h,s,b,O,w,f){const k=[];let I=0,x=0,g=!1;const C=()=>{g&&!k.length&&!I&&v.complete()},F=Q=>I<s?Y(Q):k.push(Q),Y=Q=>{O&&v.next(Q),I++;let se=!1;(0,d.Tg)(h(Q,x++)).subscribe((0,o._)(v,ie=>{b?.(ie),O?F(ie):v.next(ie)},()=>{se=!0},void 0,()=>{if(se)try{for(I--;k.length&&I<s;){const ie=k.shift();w?(0,j.N)(v,w,()=>Y(ie)):Y(ie)}C()}catch(ie){v.error(ie)}}))};return _.subscribe((0,o._)(v,F,()=>{g=!0,C()})),()=>{f?.()}}(s,b,_,h)))}},99898:(ei,rt,D)=>{"use strict";D.d(rt,{B:()=>L});var r=D(39974),d=D(54360);function L(){return(0,r.N)((j,o)=>{let E=null;j._refCount++;const R=(0,d._)(o,void 0,void 0,void 0,()=>{if(!j||j._refCount<=0||0<--j._refCount)return void(E=null);const m=j._connection,_=E;E=null,m&&(!_||m===_)&&m.unsubscribe(),o.unsubscribe()});j.subscribe(R),R.closed||(E=j.connect())})}},97647:(ei,rt,D)=>{"use strict";D.d(rt,{u:()=>o});var r=D(58750),d=D(21413),L=D(47707),j=D(39974);function o(R={}){const{connector:m=(()=>new d.B),resetOnError:_=!0,resetOnComplete:v=!0,resetOnRefCountZero:h=!0}=R;return s=>{let b,O,w,f=0,k=!1,I=!1;const x=()=>{O?.unsubscribe(),O=void 0},g=()=>{x(),b=w=void 0,k=I=!1},C=()=>{const F=b;g(),F?.unsubscribe()};return(0,j.N)((F,Y)=>{f++,!I&&!k&&x();const Q=w=w??m();Y.add(()=>{f--,0===f&&!I&&!k&&(O=E(C,h))}),Q.subscribe(Y),!b&&f>0&&(b=new L.Ms({next:se=>Q.next(se),error:se=>{I=!0,x(),O=E(g,_,se),Q.error(se)},complete:()=>{k=!0,x(),O=E(g,v),Q.complete()}}),(0,r.Tg)(F).subscribe(b))})(s)}}function E(R,m,..._){if(!0===m)return void R();if(!1===m)return;const v=new L.Ms({next:()=>{v.unsubscribe(),R()}});return(0,r.Tg)(m(..._)).subscribe(v)}},65245:(ei,rt,D)=>{"use strict";D.d(rt,{i:()=>d});var r=D(5964);function d(L){return(0,r.p)((j,o)=>L<=o)}},99172:(ei,rt,D)=>{"use strict";D.d(rt,{Z:()=>j});var r=D(28793),d=D(9326),L=D(39974);function j(...o){const E=(0,d.lI)(o);return(0,L.N)((R,m)=>{(E?(0,r.x)(o,R,E):(0,r.x)(o,R)).subscribe(m)})}},25558:(ei,rt,D)=>{"use strict";D.d(rt,{n:()=>j});var r=D(58750),d=D(39974),L=D(54360);function j(o,E){return(0,d.N)((R,m)=>{let _=null,v=0,h=!1;const s=()=>h&&!_&&m.complete();R.subscribe((0,L._)(m,b=>{_?.unsubscribe();let O=0;const w=v++;(0,r.Tg)(o(b,w)).subscribe(_=(0,L._)(m,f=>m.next(E?E(b,f,w,O++):f),()=>{_=null,s()}))},()=>{h=!0,s()}))})}},96697:(ei,rt,D)=>{"use strict";D.d(rt,{s:()=>j});var r=D(983),d=D(39974),L=D(54360);function j(o){return o<=0?()=>r.w:(0,d.N)((E,R)=>{let m=0;E.subscribe((0,L._)(R,_=>{++m<=o&&(R.next(_),o<=m&&R.complete())}))})}},56977:(ei,rt,D)=>{"use strict";D.d(rt,{Q:()=>o});var r=D(39974),d=D(54360),L=D(58750),j=D(85343);function o(E){return(0,r.N)((R,m)=>{(0,L.Tg)(E).subscribe((0,d._)(m,()=>m.complete(),j.l)),!m.closed&&R.subscribe(m)})}},88141:(ei,rt,D)=>{"use strict";D.d(rt,{M:()=>o});var r=D(98071),d=D(39974),L=D(54360),j=D(33669);function o(E,R,m){const _=(0,r.T)(E)||R||m?{next:E,error:R,complete:m}:E;return _?(0,d.N)((v,h)=>{var s;null===(s=_.subscribe)||void 0===s||s.call(_);let b=!0;v.subscribe((0,L._)(h,O=>{var w;null===(w=_.next)||void 0===w||w.call(_,O),h.next(O)},()=>{var O;b=!1,null===(O=_.complete)||void 0===O||O.call(_),h.complete()},O=>{var w;b=!1,null===(w=_.error)||void 0===w||w.call(_,O),h.error(O)},()=>{var O,w;b&&(null===(O=_.unsubscribe)||void 0===O||O.call(_)),null===(w=_.finalize)||void 0===w||w.call(_)}))}):j.D}},96780:(ei,rt,D)=>{"use strict";D.d(rt,{R:()=>o});var r=D(18359);class d extends r.yU{constructor(R,m){super()}schedule(R,m=0){return this}}const L={setInterval(E,R,...m){const{delegate:_}=L;return _?.setInterval?_.setInterval(E,R,...m):setInterval(E,R,...m)},clearInterval(E){const{delegate:R}=L;return(R?.clearInterval||clearInterval)(E)},delegate:void 0};var j=D(57908);class o extends d{constructor(R,m){super(R,m),this.scheduler=R,this.work=m,this.pending=!1}schedule(R,m=0){var _;if(this.closed)return this;this.state=R;const v=this.id,h=this.scheduler;return null!=v&&(this.id=this.recycleAsyncId(h,v,m)),this.pending=!0,this.delay=m,this.id=null!==(_=this.id)&&void 0!==_?_:this.requestAsyncId(h,this.id,m),this}requestAsyncId(R,m,_=0){return L.setInterval(R.flush.bind(R,this),_)}recycleAsyncId(R,m,_=0){if(null!=_&&this.delay===_&&!1===this.pending)return m;null!=m&&L.clearInterval(m)}execute(R,m){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const _=this._execute(R,m);if(_)return _;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(R,m){let v,_=!1;try{this.work(R)}catch(h){_=!0,v=h||new Error("Scheduled action threw falsy error")}if(_)return this.unsubscribe(),v}unsubscribe(){if(!this.closed){const{id:R,scheduler:m}=this,{actions:_}=m;this.work=this.state=this.scheduler=null,this.pending=!1,(0,j.o)(_,this),null!=R&&(this.id=this.recycleAsyncId(m,R,null)),this.delay=null,super.unsubscribe()}}}},39687:(ei,rt,D)=>{"use strict";D.d(rt,{q:()=>L});var r=D(86129);class d{constructor(o,E=d.now){this.schedulerActionCtor=o,this.now=E}schedule(o,E=0,R){return new this.schedulerActionCtor(this,o).schedule(R,E)}}d.now=r.U.now;class L extends d{constructor(o,E=d.now){super(o,E),this.actions=[],this._active=!1}flush(o){const{actions:E}=this;if(this._active)return void E.push(o);let R;this._active=!0;do{if(R=o.execute(o.state,o.delay))break}while(o=E.shift());if(this._active=!1,R){for(;o=E.shift();)o.unsubscribe();throw R}}}},43236:(ei,rt,D)=>{"use strict";D.d(rt,{E:()=>L,b:()=>j});var r=D(96780);const L=new(D(39687).q)(r.R),j=L},86129:(ei,rt,D)=>{"use strict";D.d(rt,{U:()=>r});const r={now:()=>(r.delegate||Date).now(),delegate:void 0}},19270:(ei,rt,D)=>{"use strict";D.d(rt,{f:()=>r});const r={setTimeout(d,L,...j){const{delegate:o}=r;return o?.setTimeout?o.setTimeout(d,L,...j):setTimeout(d,L,...j)},clearTimeout(d){const{delegate:L}=r;return(L?.clearTimeout||clearTimeout)(d)},delegate:void 0}},4761:(ei,rt,D)=>{"use strict";D.d(rt,{l:()=>d});const d=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(ei,rt,D)=>{"use strict";D.d(rt,{s:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},9326:(ei,rt,D)=>{"use strict";D.d(rt,{R0:()=>E,lI:()=>o,ms:()=>j});var r=D(98071),d=D(79470);function L(R){return R[R.length-1]}function j(R){return(0,r.T)(L(R))?R.pop():void 0}function o(R){return(0,d.m)(L(R))?R.pop():void 0}function E(R,m){return"number"==typeof L(R)?R.pop():m}},93073:(ei,rt,D)=>{"use strict";D.d(rt,{D:()=>o});const{isArray:r}=Array,{getPrototypeOf:d,prototype:L,keys:j}=Object;function o(R){if(1===R.length){const m=R[0];if(r(m))return{args:m,keys:null};if(function E(R){return R&&"object"==typeof R&&d(R)===L}(m)){const _=j(m);return{args:_.map(v=>m[v]),keys:_}}}return{args:R,keys:null}}},57908:(ei,rt,D)=>{"use strict";function r(d,L){if(d){const j=d.indexOf(L);0<=j&&d.splice(j,1)}}D.d(rt,{o:()=>r})},81853:(ei,rt,D)=>{"use strict";function r(d){const j=d(o=>{Error.call(o),o.stack=(new Error).stack});return j.prototype=Object.create(Error.prototype),j.prototype.constructor=j,j}D.d(rt,{L:()=>r})},58496:(ei,rt,D)=>{"use strict";function r(d,L){return d.reduce((j,o,E)=>(j[o]=L[E],j),{})}D.d(rt,{e:()=>r})},49786:(ei,rt,D)=>{"use strict";D.d(rt,{Y:()=>L,l:()=>j});var r=D(41026);let d=null;function L(o){if(r.$.useDeprecatedSynchronousErrorHandling){const E=!d;if(E&&(d={errorThrown:!1,error:null}),o(),E){const{errorThrown:R,error:m}=d;if(d=null,R)throw m}}else o()}function j(o){r.$.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=o)}},45225:(ei,rt,D)=>{"use strict";function r(d,L,j,o=0,E=!1){const R=L.schedule(function(){j(),E?d.add(this.schedule(null,o)):this.unsubscribe()},o);if(d.add(R),!E)return R}D.d(rt,{N:()=>r})},33669:(ei,rt,D)=>{"use strict";function r(d){return d}D.d(rt,{D:()=>r})},47441:(ei,rt,D)=>{"use strict";D.d(rt,{X:()=>r});const r=d=>d&&"number"==typeof d.length&&"function"!=typeof d},37953:(ei,rt,D)=>{"use strict";D.d(rt,{T:()=>d});var r=D(98071);function d(L){return Symbol.asyncIterator&&(0,r.T)(L?.[Symbol.asyncIterator])}},98071:(ei,rt,D)=>{"use strict";function r(d){return"function"==typeof d}D.d(rt,{T:()=>r})},55055:(ei,rt,D)=>{"use strict";D.d(rt,{l:()=>L});var r=D(3494),d=D(98071);function L(j){return(0,d.T)(j[r.s])}},85397:(ei,rt,D)=>{"use strict";D.d(rt,{x:()=>L});var r=D(4761),d=D(98071);function L(j){return(0,d.T)(j?.[r.l])}},74402:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>L});var r=D(71985),d=D(98071);function L(j){return!!j&&(j instanceof r.c||(0,d.T)(j.lift)&&(0,d.T)(j.subscribe))}},59858:(ei,rt,D)=>{"use strict";D.d(rt,{y:()=>d});var r=D(98071);function d(L){return(0,r.T)(L?.then)}},15196:(ei,rt,D)=>{"use strict";D.d(rt,{C:()=>L,U:()=>j});var r=D(31635),d=D(98071);function L(o){return(0,r.AQ)(this,arguments,function*(){const R=o.getReader();try{for(;;){const{value:m,done:_}=yield(0,r.N3)(R.read());if(_)return yield(0,r.N3)(void 0);yield yield(0,r.N3)(m)}}finally{R.releaseLock()}})}function j(o){return(0,d.T)(o?.getReader)}},79470:(ei,rt,D)=>{"use strict";D.d(rt,{m:()=>d});var r=D(98071);function d(L){return L&&(0,r.T)(L.schedule)}},39974:(ei,rt,D)=>{"use strict";D.d(rt,{N:()=>L,S:()=>d});var r=D(98071);function d(j){return(0,r.T)(j?.lift)}function L(j){return o=>{if(d(o))return o.lift(function(E){try{return j(E,this)}catch(R){this.error(R)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(ei,rt,D)=>{"use strict";D.d(rt,{I:()=>j});var r=D(96354);const{isArray:d}=Array;function j(o){return(0,r.T)(E=>function L(o,E){return d(E)?o(...E):o(E)}(o,E))}},85343:(ei,rt,D)=>{"use strict";function r(){}D.d(rt,{l:()=>r})},71203:(ei,rt,D)=>{"use strict";D.d(rt,{F:()=>d,m:()=>L});var r=D(33669);function d(...j){return L(j)}function L(j){return 0===j.length?r.D:1===j.length?j[0]:function(E){return j.reduce((R,m)=>m(R),E)}}},45334:(ei,rt,D)=>{"use strict";D.d(rt,{m:()=>L});var r=D(41026),d=D(19270);function L(j){d.f.setTimeout(()=>{const{onUnhandledError:o}=r.$;if(!o)throw j;o(j)})}},50591:(ei,rt,D)=>{"use strict";function r(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}D.d(rt,{L:()=>r})},35358:(ei,rt,D)=>{var r={"./af":11544,"./af.js":11544,"./ar":33108,"./ar-dz":52155,"./ar-dz.js":52155,"./ar-kw":53583,"./ar-kw.js":53583,"./ar-ly":41638,"./ar-ly.js":41638,"./ar-ma":87823,"./ar-ma.js":87823,"./ar-ps":7712,"./ar-ps.js":7712,"./ar-sa":78261,"./ar-sa.js":78261,"./ar-tn":56703,"./ar-tn.js":56703,"./ar.js":33108,"./az":46508,"./az.js":46508,"./be":16766,"./be.js":16766,"./bg":28564,"./bg.js":28564,"./bm":97462,"./bm.js":97462,"./bn":17107,"./bn-bd":43438,"./bn-bd.js":43438,"./bn.js":17107,"./bo":9004,"./bo.js":9004,"./br":50927,"./br.js":50927,"./bs":87768,"./bs.js":87768,"./ca":56291,"./ca.js":56291,"./cs":85301,"./cs.js":85301,"./cv":66666,"./cv.js":66666,"./cy":55163,"./cy.js":55163,"./da":87360,"./da.js":87360,"./de":45932,"./de-at":43248,"./de-at.js":43248,"./de-ch":83222,"./de-ch.js":83222,"./de.js":45932,"./dv":6405,"./dv.js":6405,"./el":60718,"./el.js":60718,"./en-au":36319,"./en-au.js":36319,"./en-ca":80597,"./en-ca.js":80597,"./en-gb":51800,"./en-gb.js":51800,"./en-ie":807,"./en-ie.js":807,"./en-il":95960,"./en-il.js":95960,"./en-in":84418,"./en-in.js":84418,"./en-nz":46865,"./en-nz.js":46865,"./en-sg":32647,"./en-sg.js":32647,"./eo":61931,"./eo.js":61931,"./es":46679,"./es-do":41805,"./es-do.js":41805,"./es-mx":83445,"./es-mx.js":83445,"./es-us":81516,"./es-us.js":81516,"./es.js":46679,"./et":88150,"./et.js":88150,"./eu":80757,"./eu.js":80757,"./fa":65742,"./fa.js":65742,"./fi":33958,"./fi.js":33958,"./fil":46720,"./fil.js":46720,"./fo":98352,"./fo.js":98352,"./fr":4059,"./fr-ca":42096,"./fr-ca.js":42096,"./fr-ch":95759,"./fr-ch.js":95759,"./fr.js":4059,"./fy":15958,"./fy.js":15958,"./ga":94143,"./ga.js":94143,"./gd":67028,"./gd.js":67028,"./gl":80428,"./gl.js":80428,"./gom-deva":76861,"./gom-deva.js":76861,"./gom-latn":57718,"./gom-latn.js":57718,"./gu":26827,"./gu.js":26827,"./he":21936,"./he.js":21936,"./hi":31332,"./hi.js":31332,"./hr":91957,"./hr.js":91957,"./hu":48928,"./hu.js":48928,"./hy-am":56215,"./hy-am.js":56215,"./id":586,"./id.js":586,"./is":90211,"./is.js":90211,"./it":70170,"./it-ch":22340,"./it-ch.js":22340,"./it.js":70170,"./ja":39770,"./ja.js":39770,"./jv":73875,"./jv.js":73875,"./ka":79499,"./ka.js":79499,"./kk":93573,"./kk.js":93573,"./km":68807,"./km.js":68807,"./kn":65082,"./kn.js":65082,"./ko":20137,"./ko.js":20137,"./ku":70111,"./ku-kmr":63744,"./ku-kmr.js":63744,"./ku.js":70111,"./ky":99187,"./ky.js":99187,"./lb":35969,"./lb.js":35969,"./lo":33526,"./lo.js":33526,"./lt":90411,"./lt.js":90411,"./lv":32621,"./lv.js":32621,"./me":85869,"./me.js":85869,"./mi":35881,"./mi.js":35881,"./mk":92391,"./mk.js":92391,"./ml":21126,"./ml.js":21126,"./mn":44892,"./mn.js":44892,"./mr":59080,"./mr.js":59080,"./ms":70399,"./ms-my":25950,"./ms-my.js":25950,"./ms.js":70399,"./mt":79902,"./mt.js":79902,"./my":72985,"./my.js":72985,"./nb":67859,"./nb.js":67859,"./ne":13642,"./ne.js":13642,"./nl":65441,"./nl-be":99875,"./nl-be.js":99875,"./nl.js":65441,"./nn":81311,"./nn.js":81311,"./oc-lnc":72567,"./oc-lnc.js":72567,"./pa-in":56962,"./pa-in.js":56962,"./pl":61063,"./pl.js":61063,"./pt":78719,"./pt-br":97476,"./pt-br.js":97476,"./pt.js":78719,"./ro":51004,"./ro.js":51004,"./ru":51326,"./ru.js":51326,"./sd":72608,"./sd.js":72608,"./se":13911,"./se.js":13911,"./si":25147,"./si.js":25147,"./sk":23741,"./sk.js":23741,"./sl":93e3,"./sl.js":93e3,"./sq":60451,"./sq.js":60451,"./sr":55046,"./sr-cyrl":40905,"./sr-cyrl.js":40905,"./sr.js":55046,"./ss":85765,"./ss.js":85765,"./sv":99290,"./sv.js":99290,"./sw":53449,"./sw.js":53449,"./ta":72688,"./ta.js":72688,"./te":32060,"./te.js":32060,"./tet":93290,"./tet.js":93290,"./tg":8294,"./tg.js":8294,"./th":1231,"./th.js":1231,"./tk":3746,"./tk.js":3746,"./tl-ph":49040,"./tl-ph.js":49040,"./tlh":17187,"./tlh.js":17187,"./tr":60153,"./tr.js":60153,"./tzl":88521,"./tzl.js":88521,"./tzm":18010,"./tzm-latn":22234,"./tzm-latn.js":22234,"./tzm.js":18010,"./ug-cn":63349,"./ug-cn.js":63349,"./uk":68479,"./uk.js":68479,"./ur":43024,"./ur.js":43024,"./uz":19800,"./uz-latn":72376,"./uz-latn.js":72376,"./uz.js":19800,"./vi":89366,"./vi.js":89366,"./x-pseudo":69702,"./x-pseudo.js":69702,"./yo":72655,"./yo.js":72655,"./zh-cn":575,"./zh-cn.js":575,"./zh-hk":18351,"./zh-hk.js":18351,"./zh-mo":51626,"./zh-mo.js":51626,"./zh-tw":8887,"./zh-tw.js":8887};function d(j){var o=L(j);return D(o)}function L(j){if(!D.o(r,j)){var o=new Error("Cannot find module '"+j+"'");throw o.code="MODULE_NOT_FOUND",o}return r[j]}d.keys=function(){return Object.keys(r)},d.resolve=L,ei.exports=d,d.id=35358},67490:(ei,rt,D)=>{var r=D(25172);function d(L){var j,o;function E(m,_){try{var v=L[m](_),h=v.value,s=h instanceof r;Promise.resolve(s?h.v:h).then(function(b){if(s){var O="return"===m?"return":"next";if(!h.k||b.done)return E(O,b);b=L[O](b).value}R(v.done?"return":"normal",b)},function(b){E("throw",b)})}catch(b){R("throw",b)}}function R(m,_){switch(m){case"return":j.resolve({value:_,done:!0});break;case"throw":j.reject(_);break;default:j.resolve({value:_,done:!1})}(j=j.next)?E(j.key,j.arg):o=null}this._invoke=function(m,_){return new Promise(function(v,h){var s={key:m,arg:_,resolve:v,reject:h,next:null};o?o=o.next=s:(j=o=s,E(m,_))})},"function"!=typeof L.return&&(this.return=void 0)}d.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},d.prototype.next=function(L){return this._invoke("next",L)},d.prototype.throw=function(L){return this._invoke("throw",L)},d.prototype.return=function(L){return this._invoke("return",L)},ei.exports=d,ei.exports.__esModule=!0,ei.exports.default=ei.exports},25172:ei=>{ei.exports=function rt(D,r){this.v=D,this.k=r},ei.exports.__esModule=!0,ei.exports.default=ei.exports},82881:ei=>{function D(r){function d(L){if(Object(L)!==L)return Promise.reject(new TypeError(L+" is not an object."));var j=L.done;return Promise.resolve(L.value).then(function(o){return{value:o,done:j}})}return(D=function(j){this.s=j,this.n=j.next}).prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(j){var o=this.s.return;return void 0===o?Promise.resolve({value:j,done:!0}):d(o.apply(this.s,arguments))},throw:function(j){var o=this.s.return;return void 0===o?Promise.reject(j):d(o.apply(this.s,arguments))}},new D(r)}ei.exports=function rt(r){var d,L,j,o=2;for(typeof Symbol<"u"&&(L=Symbol.asyncIterator,j=Symbol.iterator);o--;){if(L&&null!=(d=r[L]))return d.call(r);if(j&&null!=(d=r[j]))return new D(d.call(r));L="@@asyncIterator",j="@@iterator"}throw new TypeError("Object is not async iterable")},ei.exports.__esModule=!0,ei.exports.default=ei.exports},29293:ei=>{function rt(r,d,L,j,o,E,R){try{var m=r[E](R),_=m.value}catch(v){return void L(v)}m.done?d(_):Promise.resolve(_).then(j,o)}ei.exports=function D(r){return function(){var d=this,L=arguments;return new Promise(function(j,o){var E=r.apply(d,L);function R(_){rt(E,j,o,R,m,"next",_)}function m(_){rt(E,j,o,R,m,"throw",_)}R(void 0)})}},ei.exports.__esModule=!0,ei.exports.default=ei.exports},53344:(ei,rt,D)=>{var r=D(25172);ei.exports=function d(L){return new r(L,0)},ei.exports.__esModule=!0,ei.exports.default=ei.exports},42958:(ei,rt,D)=>{var r=D(67490);ei.exports=function d(L){return function(){return new r(L.apply(this,arguments))}},ei.exports.__esModule=!0,ei.exports.default=ei.exports},49969:(ei,rt,D)=>{"use strict";D.d(rt,{FX:()=>ie,If:()=>r,K2:()=>E,MA:()=>s,Os:()=>o,P:()=>O,hZ:()=>L,i0:()=>j,i7:()=>_,iF:()=>R,kY:()=>v,kp:()=>d,sf:()=>Q,ui:()=>se,wk:()=>m});var r=function(ee){return ee[ee.State=0]="State",ee[ee.Transition=1]="Transition",ee[ee.Sequence=2]="Sequence",ee[ee.Group=3]="Group",ee[ee.Animate=4]="Animate",ee[ee.Keyframes=5]="Keyframes",ee[ee.Style=6]="Style",ee[ee.Trigger=7]="Trigger",ee[ee.Reference=8]="Reference",ee[ee.AnimateChild=9]="AnimateChild",ee[ee.AnimateRef=10]="AnimateRef",ee[ee.Query=11]="Query",ee[ee.Stagger=12]="Stagger",ee}(r||{});const d="*";function L(ee,re){return{type:r.Trigger,name:ee,definitions:re,options:{}}}function j(ee,re=null){return{type:r.Animate,styles:re,timings:ee}}function o(ee,re=null){return{type:r.Group,steps:ee,options:re}}function E(ee,re=null){return{type:r.Sequence,steps:ee,options:re}}function R(ee){return{type:r.Style,styles:ee,offset:null}}function m(ee,re,ne){return{type:r.State,name:ee,styles:re,options:ne}}function _(ee){return{type:r.Keyframes,steps:ee}}function v(ee,re,ne=null){return{type:r.Transition,expr:ee,animation:re,options:ne}}function s(ee=null){return{type:r.AnimateChild,options:ee}}function O(ee,re,ne=null){return{type:r.Query,selector:ee,animation:re,options:ne}}class Q{constructor(re=0,ne=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=re+ne}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(re=>re()),this._onDoneFns=[])}onStart(re){this._originalOnStartFns.push(re),this._onStartFns.push(re)}onDone(re){this._originalOnDoneFns.push(re),this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(re=>re()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(re){this._position=this.totalTime?re*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(re){const ne="start"==re?this._onStartFns:this._onDoneFns;ne.forEach(_e=>_e()),ne.length=0}}class se{constructor(re){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=re;let ne=0,_e=0,be=0;const oe=this.players.length;0==oe?queueMicrotask(()=>this._onFinish()):this.players.forEach(me=>{me.onDone(()=>{++ne==oe&&this._onFinish()}),me.onDestroy(()=>{++_e==oe&&this._onDestroy()}),me.onStart(()=>{++be==oe&&this._onStart()})}),this.totalTime=this.players.reduce((me,we)=>Math.max(me,we.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(re=>re()),this._onDoneFns=[])}init(){this.players.forEach(re=>re.init())}onStart(re){this._onStartFns.push(re)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(re=>re()),this._onStartFns=[])}onDone(re){this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(re=>re.play())}pause(){this.players.forEach(re=>re.pause())}restart(){this.players.forEach(re=>re.restart())}finish(){this._onFinish(),this.players.forEach(re=>re.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(re=>re.destroy()),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}reset(){this.players.forEach(re=>re.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(re){const ne=re*this.totalTime;this.players.forEach(_e=>{const be=_e.totalTime?Math.min(1,ne/_e.totalTime):1;_e.setPosition(be)})}getPosition(){const re=this.players.reduce((ne,_e)=>null===ne||_e.totalTime>ne.totalTime?_e:ne,null);return null!=re?re.getPosition():0}beforeDestroy(){this.players.forEach(re=>{re.beforeDestroy&&re.beforeDestroy()})}triggerCallback(re){const ne="start"==re?this._onStartFns:this._onDoneFns;ne.forEach(_e=>_e()),ne.length=0}}const ie="!"},18617:(ei,rt,D)=>{"use strict";D.d(rt,{Ae:()=>F,Ai:()=>xi,Au:()=>oe,Bu:()=>me,FN:()=>Ti,GX:()=>pe,Pd:()=>Xi,Q_:()=>Ui,Z7:()=>N,_G:()=>Qe,px:()=>C,w6:()=>Et});var r=D(60177),d=D(54438),L=D(36860),j=D(21413),o=D(18359),E=D(84412),R=D(7673),m=D(67336),_=D(88141),v=D(70152),h=D(5964),s=D(96354),b=D(96697),O=D(65245),w=D(23294),f=D(56977),k=D(14085),I=D(72318),x=D(99327);const g=" ";function C(Qi,Ut,It){const yt=Y(Qi,Ut);yt.some(pt=>pt.trim()==It.trim())||(yt.push(It.trim()),Qi.setAttribute(Ut,yt.join(g)))}function F(Qi,Ut,It){const pt=Y(Qi,Ut).filter(st=>st!=It.trim());pt.length?Qi.setAttribute(Ut,pt.join(g)):Qi.removeAttribute(Ut)}function Y(Qi,Ut){return(Qi.getAttribute(Ut)||"").match(/\S+/g)||[]}class be{constructor(Ut){this._items=Ut,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new j.B,this._typeaheadSubscription=o.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=It=>It.disabled,this._pressedLetters=[],this.tabOut=new j.B,this.change=new j.B,Ut instanceof d.rOR&&(this._itemChangesSubscription=Ut.changes.subscribe(It=>{if(this._activeItem){const pt=It.toArray().indexOf(this._activeItem);pt>-1&&pt!==this._activeItemIndex&&(this._activeItemIndex=pt)}}))}skipPredicate(Ut){return this._skipPredicateFn=Ut,this}withWrap(Ut=!0){return this._wrap=Ut,this}withVerticalOrientation(Ut=!0){return this._vertical=Ut,this}withHorizontalOrientation(Ut){return this._horizontal=Ut,this}withAllowedModifierKeys(Ut){return this._allowedModifierKeys=Ut,this}withTypeAhead(Ut=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,_.M)(It=>this._pressedLetters.push(It)),(0,v.B)(Ut),(0,h.p)(()=>this._pressedLetters.length>0),(0,s.T)(()=>this._pressedLetters.join(""))).subscribe(It=>{const yt=this._getItemsArray();for(let pt=1;pt<yt.length+1;pt++){const st=(this._activeItemIndex+pt)%yt.length,Wt=yt[st];if(!this._skipPredicateFn(Wt)&&0===Wt.getLabel().toUpperCase().trim().indexOf(It)){this.setActiveItem(st);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(Ut=!0){return this._homeAndEnd=Ut,this}withPageUpDown(Ut=!0,It=10){return this._pageUpAndDown={enabled:Ut,delta:It},this}setActiveItem(Ut){const It=this._activeItem;this.updateActiveItem(Ut),this._activeItem!==It&&this.change.next(this._activeItemIndex)}onKeydown(Ut){const It=Ut.keyCode,pt=["altKey","ctrlKey","metaKey","shiftKey"].every(st=>!Ut[st]||this._allowedModifierKeys.indexOf(st)>-1);switch(It){case m.wn:return void this.tabOut.next();case m.n6:if(this._vertical&&pt){this.setNextItemActive();break}return;case m.i7:if(this._vertical&&pt){this.setPreviousItemActive();break}return;case m.LE:if(this._horizontal&&pt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case m.UQ:if(this._horizontal&&pt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case m.yZ:if(this._homeAndEnd&&pt){this.setFirstItemActive();break}return;case m.Kp:if(this._homeAndEnd&&pt){this.setLastItemActive();break}return;case m.w_:if(this._pageUpAndDown.enabled&&pt){const st=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(st>0?st:0,1);break}return;case m.dB:if(this._pageUpAndDown.enabled&&pt){const st=this._activeItemIndex+this._pageUpAndDown.delta,Wt=this._getItemsArray().length;this._setActiveItemByIndex(st<Wt?st:Wt-1,-1);break}return;default:return void((pt||(0,m.rp)(Ut,"shiftKey"))&&(Ut.key&&1===Ut.key.length?this._letterKeyStream.next(Ut.key.toLocaleUpperCase()):(It>=m.A&&It<=m.Z||It>=m.f2&&It<=m.bn)&&this._letterKeyStream.next(String.fromCharCode(It))))}this._pressedLetters=[],Ut.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Ut){const It=this._getItemsArray(),yt="number"==typeof Ut?Ut:It.indexOf(Ut);this._activeItem=It[yt]??null,this._activeItemIndex=yt}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(Ut){this._wrap?this._setActiveInWrapMode(Ut):this._setActiveInDefaultMode(Ut)}_setActiveInWrapMode(Ut){const It=this._getItemsArray();for(let yt=1;yt<=It.length;yt++){const pt=(this._activeItemIndex+Ut*yt+It.length)%It.length;if(!this._skipPredicateFn(It[pt]))return void this.setActiveItem(pt)}}_setActiveInDefaultMode(Ut){this._setActiveItemByIndex(this._activeItemIndex+Ut,Ut)}_setActiveItemByIndex(Ut,It){const yt=this._getItemsArray();if(yt[Ut]){for(;this._skipPredicateFn(yt[Ut]);)if(!yt[Ut+=It])return;this.setActiveItem(Ut)}}_getItemsArray(){return this._items instanceof d.rOR?this._items.toArray():this._items}}class oe extends be{setActiveItem(Ut){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ut),this.activeItem&&this.activeItem.setActiveStyles()}}class me extends be{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ut){return this._origin=Ut,this}setActiveItem(Ut){super.setActiveItem(Ut),this.activeItem&&this.activeItem.focus(this._origin)}}let N=(()=>{class Qi{constructor(It){this._platform=It}isDisabled(It){return It.hasAttribute("disabled")}isVisible(It){return function W(Qi){return!!(Qi.offsetWidth||Qi.offsetHeight||"function"==typeof Qi.getClientRects&&Qi.getClientRects().length)}(It)&&"visible"===getComputedStyle(It).visibility}isTabbable(It){if(!this._platform.isBrowser)return!1;const yt=function G(Qi){try{return Qi.frameElement}catch{return null}}(function ce(Qi){return Qi.ownerDocument&&Qi.ownerDocument.defaultView||window}(It));if(yt&&(-1===Ee(yt)||!this.isVisible(yt)))return!1;let pt=It.nodeName.toLowerCase(),st=Ee(It);return It.hasAttribute("contenteditable")?-1!==st:!("iframe"===pt||"object"===pt||this._platform.WEBKIT&&this._platform.IOS&&!function he(Qi){let Ut=Qi.nodeName.toLowerCase(),It="input"===Ut&&Qi.type;return"text"===It||"password"===It||"select"===Ut||"textarea"===Ut}(It))&&("audio"===pt?!!It.hasAttribute("controls")&&-1!==st:"video"===pt?-1!==st&&(null!==st||this._platform.FIREFOX||It.hasAttribute("controls")):It.tabIndex>=0)}isFocusable(It,yt){return function Ie(Qi){return!function X(Qi){return function ye(Qi){return"input"==Qi.nodeName.toLowerCase()}(Qi)&&"hidden"==Qi.type}(Qi)&&(function z(Qi){let Ut=Qi.nodeName.toLowerCase();return"input"===Ut||"select"===Ut||"button"===Ut||"textarea"===Ut}(Qi)||function q(Qi){return function xe(Qi){return"a"==Qi.nodeName.toLowerCase()}(Qi)&&Qi.hasAttribute("href")}(Qi)||Qi.hasAttribute("contenteditable")||ge(Qi))}(It)&&!this.isDisabled(It)&&(yt?.ignoreVisibility||this.isVisible(It))}static#e=this.\u0275fac=function(yt){return new(yt||Qi)(d.KVO(L.OD))};static#t=this.\u0275prov=d.jDH({token:Qi,factory:Qi.\u0275fac,providedIn:"root"})}return Qi})();function ge(Qi){if(!Qi.hasAttribute("tabindex")||void 0===Qi.tabIndex)return!1;let Ut=Qi.getAttribute("tabindex");return!(!Ut||isNaN(parseInt(Ut,10)))}function Ee(Qi){if(!ge(Qi))return null;const Ut=parseInt(Qi.getAttribute("tabindex")||"",10);return isNaN(Ut)?-1:Ut}class de{get enabled(){return this._enabled}set enabled(Ut){this._enabled=Ut,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ut,this._startAnchor),this._toggleAnchorTabIndex(Ut,this._endAnchor))}constructor(Ut,It,yt,pt,st=!1){this._element=Ut,this._checker=It,this._ngZone=yt,this._document=pt,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,st||this.attachAnchors()}destroy(){const Ut=this._startAnchor,It=this._endAnchor;Ut&&(Ut.removeEventListener("focus",this.startAnchorListener),Ut.remove()),It&&(It.removeEventListener("focus",this.endAnchorListener),It.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Ut){return new Promise(It=>{this._executeOnStable(()=>It(this.focusInitialElement(Ut)))})}focusFirstTabbableElementWhenReady(Ut){return new Promise(It=>{this._executeOnStable(()=>It(this.focusFirstTabbableElement(Ut)))})}focusLastTabbableElementWhenReady(Ut){return new Promise(It=>{this._executeOnStable(()=>It(this.focusLastTabbableElement(Ut)))})}_getRegionBoundary(Ut){const It=this._element.querySelectorAll(`[cdk-focus-region-${Ut}], [cdkFocusRegion${Ut}], [cdk-focus-${Ut}]`);return"start"==Ut?It.length?It[0]:this._getFirstTabbableElement(this._element):It.length?It[It.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ut){const It=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(It){if(!this._checker.isFocusable(It)){const yt=this._getFirstTabbableElement(It);return yt?.focus(Ut),!!yt}return It.focus(Ut),!0}return this.focusFirstTabbableElement(Ut)}focusFirstTabbableElement(Ut){const It=this._getRegionBoundary("start");return It&&It.focus(Ut),!!It}focusLastTabbableElement(Ut){const It=this._getRegionBoundary("end");return It&&It.focus(Ut),!!It}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ut){if(this._checker.isFocusable(Ut)&&this._checker.isTabbable(Ut))return Ut;const It=Ut.children;for(let yt=0;yt<It.length;yt++){const pt=It[yt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(It[yt]):null;if(pt)return pt}return null}_getLastTabbableElement(Ut){if(this._checker.isFocusable(Ut)&&this._checker.isTabbable(Ut))return Ut;const It=Ut.children;for(let yt=It.length-1;yt>=0;yt--){const pt=It[yt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(It[yt]):null;if(pt)return pt}return null}_createAnchor(){const Ut=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ut),Ut.classList.add("cdk-visually-hidden"),Ut.classList.add("cdk-focus-trap-anchor"),Ut.setAttribute("aria-hidden","true"),Ut}_toggleAnchorTabIndex(Ut,It){Ut?It.setAttribute("tabindex","0"):It.removeAttribute("tabindex")}toggleAnchors(Ut){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ut,this._startAnchor),this._toggleAnchorTabIndex(Ut,this._endAnchor))}_executeOnStable(Ut){this._ngZone.isStable?Ut():this._ngZone.onStable.pipe((0,b.s)(1)).subscribe(Ut)}}let pe=(()=>{class Qi{constructor(It,yt,pt){this._checker=It,this._ngZone=yt,this._document=pt}create(It,yt=!1){return new de(It,this._checker,this._ngZone,this._document,yt)}static#e=this.\u0275fac=function(yt){return new(yt||Qi)(d.KVO(N),d.KVO(d.SKi),d.KVO(r.qQ))};static#t=this.\u0275prov=d.jDH({token:Qi,factory:Qi.\u0275fac,providedIn:"root"})}return Qi})();function Qe(Qi){return 0===Qi.buttons||0===Qi.detail}function Et(Qi){const Ut=Qi.touches&&Qi.touches[0]||Qi.changedTouches&&Qi.changedTouches[0];return!(!Ut||-1!==Ut.identifier||null!=Ut.radiusX&&1!==Ut.radiusX||null!=Ut.radiusY&&1!==Ut.radiusY)}const Lt=new d.nKC("cdk-input-modality-detector-options"),wt={ignoreKeys:[m.A$,m.W3,m.eg,m.Ge,m.FX]},Ge=(0,L.BQ)({passive:!0,capture:!0});let ot=(()=>{class Qi{get mostRecentModality(){return this._modality.value}constructor(It,yt,pt,st){this._platform=It,this._mostRecentTarget=null,this._modality=new E.t(null),this._lastTouchMs=0,this._onKeydown=Wt=>{this._options?.ignoreKeys?.some(Vt=>Vt===Wt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,L.Fb)(Wt))},this._onMousedown=Wt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Qe(Wt)?"keyboard":"mouse"),this._mostRecentTarget=(0,L.Fb)(Wt))},this._onTouchstart=Wt=>{Et(Wt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,L.Fb)(Wt))},this._options={...wt,...st},this.modalityDetected=this._modality.pipe((0,O.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,w.F)()),It.isBrowser&&yt.runOutsideAngular(()=>{pt.addEventListener("keydown",this._onKeydown,Ge),pt.addEventListener("mousedown",this._onMousedown,Ge),pt.addEventListener("touchstart",this._onTouchstart,Ge)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ge),document.removeEventListener("mousedown",this._onMousedown,Ge),document.removeEventListener("touchstart",this._onTouchstart,Ge))}static#e=this.\u0275fac=function(yt){return new(yt||Qi)(d.KVO(L.OD),d.KVO(d.SKi),d.KVO(r.qQ),d.KVO(Lt,8))};static#t=this.\u0275prov=d.jDH({token:Qi,factory:Qi.\u0275fac,providedIn:"root"})}return Qi})();const Tt=new d.nKC("liveAnnouncerElement",{providedIn:"root",factory:function jt(){return null}}),li=new d.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let an=0,xi=(()=>{class Qi{constructor(It,yt,pt,st){this._ngZone=yt,this._defaultOptions=st,this._document=pt,this._liveElement=It||this._createLiveElement()}announce(It,...yt){const pt=this._defaultOptions;let st,Wt;return 1===yt.length&&"number"==typeof yt[0]?Wt=yt[0]:[st,Wt]=yt,this.clear(),clearTimeout(this._previousTimeout),st||(st=pt&&pt.politeness?pt.politeness:"polite"),null==Wt&&pt&&(Wt=pt.duration),this._liveElement.setAttribute("aria-live",st),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Vt=>this._currentResolve=Vt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=It,"number"==typeof Wt&&(this._previousTimeout=setTimeout(()=>this.clear(),Wt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const It="cdk-live-announcer-element",yt=this._document.getElementsByClassName(It),pt=this._document.createElement("div");for(let st=0;st<yt.length;st++)yt[st].remove();return pt.classList.add(It),pt.classList.add("cdk-visually-hidden"),pt.setAttribute("aria-atomic","true"),pt.setAttribute("aria-live","polite"),pt.id="cdk-live-announcer-"+an++,this._document.body.appendChild(pt),pt}_exposeAnnouncerToModals(It){const yt=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let pt=0;pt<yt.length;pt++){const st=yt[pt],Wt=st.getAttribute("aria-owns");Wt?-1===Wt.indexOf(It)&&st.setAttribute("aria-owns",Wt+" "+It):st.setAttribute("aria-owns",It)}}static#e=this.\u0275fac=function(yt){return new(yt||Qi)(d.KVO(Tt,8),d.KVO(d.SKi),d.KVO(r.qQ),d.KVO(li,8))};static#t=this.\u0275prov=d.jDH({token:Qi,factory:Qi.\u0275fac,providedIn:"root"})}return Qi})();const Ht=new d.nKC("cdk-focus-monitor-default-options"),gi=(0,L.BQ)({passive:!0,capture:!0});let Ti=(()=>{class Qi{constructor(It,yt,pt,st,Wt){this._ngZone=It,this._platform=yt,this._inputModalityDetector=pt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new j.B,this._rootNodeFocusAndBlurListener=Vt=>{for(let bi=(0,L.Fb)(Vt);bi;bi=bi.parentElement)"focus"===Vt.type?this._onFocus(Vt,bi):this._onBlur(Vt,bi)},this._document=st,this._detectionMode=Wt?.detectionMode||0}monitor(It,yt=!1){const pt=(0,k.i8)(It);if(!this._platform.isBrowser||1!==pt.nodeType)return(0,R.of)();const st=(0,L.KT)(pt)||this._getDocument(),Wt=this._elementInfo.get(pt);if(Wt)return yt&&(Wt.checkChildren=!0),Wt.subject;const Vt={checkChildren:yt,subject:new j.B,rootNode:st};return this._elementInfo.set(pt,Vt),this._registerGlobalListeners(Vt),Vt.subject}stopMonitoring(It){const yt=(0,k.i8)(It),pt=this._elementInfo.get(yt);pt&&(pt.subject.complete(),this._setClasses(yt),this._elementInfo.delete(yt),this._removeGlobalListeners(pt))}focusVia(It,yt,pt){const st=(0,k.i8)(It);st===this._getDocument().activeElement?this._getClosestElementsInfo(st).forEach(([Vt,ci])=>this._originChanged(Vt,yt,ci)):(this._setOrigin(yt),"function"==typeof st.focus&&st.focus(pt))}ngOnDestroy(){this._elementInfo.forEach((It,yt)=>this.stopMonitoring(yt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(It){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(It)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:It&&this._isLastInteractionFromInputLabel(It)?"mouse":"program"}_shouldBeAttributedToTouch(It){return 1===this._detectionMode||!!It?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(It,yt){It.classList.toggle("cdk-focused",!!yt),It.classList.toggle("cdk-touch-focused","touch"===yt),It.classList.toggle("cdk-keyboard-focused","keyboard"===yt),It.classList.toggle("cdk-mouse-focused","mouse"===yt),It.classList.toggle("cdk-program-focused","program"===yt)}_setOrigin(It,yt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=It,this._originFromTouchInteraction="touch"===It&&yt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(It,yt){const pt=this._elementInfo.get(yt),st=(0,L.Fb)(It);!pt||!pt.checkChildren&&yt!==st||this._originChanged(yt,this._getFocusOrigin(st),pt)}_onBlur(It,yt){const pt=this._elementInfo.get(yt);!pt||pt.checkChildren&&It.relatedTarget instanceof Node&&yt.contains(It.relatedTarget)||(this._setClasses(yt),this._emitOrigin(pt,null))}_emitOrigin(It,yt){It.subject.observers.length&&this._ngZone.run(()=>It.subject.next(yt))}_registerGlobalListeners(It){if(!this._platform.isBrowser)return;const yt=It.rootNode,pt=this._rootNodeFocusListenerCount.get(yt)||0;pt||this._ngZone.runOutsideAngular(()=>{yt.addEventListener("focus",this._rootNodeFocusAndBlurListener,gi),yt.addEventListener("blur",this._rootNodeFocusAndBlurListener,gi)}),this._rootNodeFocusListenerCount.set(yt,pt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,f.Q)(this._stopInputModalityDetector)).subscribe(st=>{this._setOrigin(st,!0)}))}_removeGlobalListeners(It){const yt=It.rootNode;if(this._rootNodeFocusListenerCount.has(yt)){const pt=this._rootNodeFocusListenerCount.get(yt);pt>1?this._rootNodeFocusListenerCount.set(yt,pt-1):(yt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,gi),yt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,gi),this._rootNodeFocusListenerCount.delete(yt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(It,yt,pt){this._setClasses(It,yt),this._emitOrigin(pt,yt),this._lastFocusOrigin=yt}_getClosestElementsInfo(It){const yt=[];return this._elementInfo.forEach((pt,st)=>{(st===It||pt.checkChildren&&st.contains(It))&&yt.push([st,pt])}),yt}_isLastInteractionFromInputLabel(It){const{_mostRecentTarget:yt,mostRecentModality:pt}=this._inputModalityDetector;if("mouse"!==pt||!yt||yt===It||"INPUT"!==It.nodeName&&"TEXTAREA"!==It.nodeName||It.disabled)return!1;const st=It.labels;if(st)for(let Wt=0;Wt<st.length;Wt++)if(st[Wt].contains(yt))return!0;return!1}static#e=this.\u0275fac=function(yt){return new(yt||Qi)(d.KVO(d.SKi),d.KVO(L.OD),d.KVO(ot),d.KVO(r.qQ,8),d.KVO(Ht,8))};static#t=this.\u0275prov=d.jDH({token:Qi,factory:Qi.\u0275fac,providedIn:"root"})}return Qi})();const wi="cdk-high-contrast-black-on-white",ui="cdk-high-contrast-white-on-black",cn="cdk-high-contrast-active";let Ui=(()=>{class Qi{constructor(It,yt){this._platform=It,this._document=yt,this._breakpointSubscription=(0,d.WQX)(x.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const It=this._document.createElement("div");It.style.backgroundColor="rgb(1,2,3)",It.style.position="absolute",this._document.body.appendChild(It);const yt=this._document.defaultView||window,pt=yt&&yt.getComputedStyle?yt.getComputedStyle(It):null,st=(pt&&pt.backgroundColor||"").replace(/ /g,"");switch(It.remove(),st){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const It=this._document.body.classList;It.remove(cn,wi,ui),this._hasCheckedHighContrastMode=!0;const yt=this.getHighContrastMode();1===yt?It.add(cn,wi):2===yt&&It.add(cn,ui)}}static#e=this.\u0275fac=function(yt){return new(yt||Qi)(d.KVO(L.OD),d.KVO(r.qQ))};static#t=this.\u0275prov=d.jDH({token:Qi,factory:Qi.\u0275fac,providedIn:"root"})}return Qi})(),Xi=(()=>{class Qi{constructor(It){It._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(yt){return new(yt||Qi)(d.KVO(Ui))};static#t=this.\u0275mod=d.$C({type:Qi});static#i=this.\u0275inj=d.G2t({imports:[I.w5]})}return Qi})()},28203:(ei,rt,D)=>{"use strict";D.d(rt,{dS:()=>R,jI:()=>_});var r=D(54438),d=D(60177);const L=new r.nKC("cdk-dir-doc",{providedIn:"root",factory:function j(){return(0,r.WQX)(d.qQ)}}),o=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let R=(()=>{class v{constructor(s){this.value="ltr",this.change=new r.bkB,s&&(this.value=function E(v){const h=v?.toLowerCase()||"";return"auto"===h&&typeof navigator<"u"&&navigator?.language?o.test(navigator.language)?"rtl":"ltr":"rtl"===h?"rtl":"ltr"}((s.body?s.body.dir:null)||(s.documentElement?s.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(b){return new(b||v)(r.KVO(L,8))};static#t=this.\u0275prov=r.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),_=(()=>{class v{static#e=this.\u0275fac=function(b){return new(b||v)};static#t=this.\u0275mod=r.$C({type:v});static#i=this.\u0275inj=r.G2t({})}return v})()},14085:(ei,rt,D)=>{"use strict";D.d(rt,{FG:()=>o,OE:()=>L,a1:()=>E,cc:()=>m,he:()=>d,i8:()=>R});var r=D(54438);function d(_){return null!=_&&"false"!=`${_}`}function L(_,v=0){return function j(_){return!isNaN(parseFloat(_))&&!isNaN(Number(_))}(_)?Number(_):v}function o(_){return Array.isArray(_)?_:[_]}function E(_){return null==_?"":"string"==typeof _?_:`${_}px`}function R(_){return _ instanceof r.aKT?_.nativeElement:_}function m(_,v=/\s+/){const h=[];if(null!=_){const s=Array.isArray(_)?_:`${_}`.split(v);for(const b of s){const O=`${b}`.trim();O&&h.push(O)}}return h}},45024:(ei,rt,D)=>{"use strict";D.d(rt,{CB:()=>h,DQ:()=>v,sL:()=>O,xn:()=>_,y4:()=>R,zP:()=>b});var r=D(30017),j=(D(74402),D(7673),D(21413)),o=D(54438);function R(w){return w&&"function"==typeof w.connect&&!(w instanceof r.G)}class _{applyChanges(f,k,I,x,g){f.forEachOperation((C,F,Y)=>{let Q,se;if(null==C.previousIndex){const ie=I(C,F,Y);Q=k.createEmbeddedView(ie.templateRef,ie.context,ie.index),se=1}else null==Y?(k.remove(F),se=3):(Q=k.get(F),k.move(Q,Y),se=2);g&&g({context:Q?.context,operation:se,record:C})})}detach(){}}class v{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(f,k,I,x,g){f.forEachOperation((C,F,Y)=>{let Q,se;null==C.previousIndex?(Q=this._insertView(()=>I(C,F,Y),Y,k,x(C)),se=Q?1:0):null==Y?(this._detachAndCacheView(F,k),se=3):(Q=this._moveView(F,Y,k,x(C)),se=2),g&&g({context:Q?.context,operation:se,record:C})})}detach(){for(const f of this._viewCache)f.destroy();this._viewCache=[]}_insertView(f,k,I,x){const g=this._insertViewFromCache(k,I);if(g)return void(g.context.$implicit=x);const C=f();return I.createEmbeddedView(C.templateRef,C.context,C.index)}_detachAndCacheView(f,k){const I=k.detach(f);this._maybeCacheView(I,k)}_moveView(f,k,I,x){const g=I.get(f);return I.move(g,k),g.context.$implicit=x,g}_maybeCacheView(f,k){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(f);else{const I=k.indexOf(f);-1===I?f.destroy():k.remove(I)}}_insertViewFromCache(f,k){const I=this._viewCache.pop();return I&&k.insert(I,f),I||null}}class h{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(f=!1,k,I=!0,x){this._multiple=f,this._emitChanges=I,this.compareWith=x,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new j.B,k&&k.length&&(f?k.forEach(g=>this._markSelected(g)):this._markSelected(k[0]),this._selectedToEmit.length=0)}select(...f){this._verifyValueAssignment(f),f.forEach(I=>this._markSelected(I));const k=this._hasQueuedChanges();return this._emitChangeEvent(),k}deselect(...f){this._verifyValueAssignment(f),f.forEach(I=>this._unmarkSelected(I));const k=this._hasQueuedChanges();return this._emitChangeEvent(),k}setSelection(...f){this._verifyValueAssignment(f);const k=this.selected,I=new Set(f);f.forEach(g=>this._markSelected(g)),k.filter(g=>!I.has(g)).forEach(g=>this._unmarkSelected(g));const x=this._hasQueuedChanges();return this._emitChangeEvent(),x}toggle(f){return this.isSelected(f)?this.deselect(f):this.select(f)}clear(f=!0){this._unmarkAll();const k=this._hasQueuedChanges();return f&&this._emitChangeEvent(),k}isSelected(f){return this._selection.has(this._getConcreteValue(f))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(f){this._multiple&&this.selected&&this._selected.sort(f)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(f){f=this._getConcreteValue(f),this.isSelected(f)||(this._multiple||this._unmarkAll(),this.isSelected(f)||this._selection.add(f),this._emitChanges&&this._selectedToEmit.push(f))}_unmarkSelected(f){f=this._getConcreteValue(f),this.isSelected(f)&&(this._selection.delete(f),this._emitChanges&&this._deselectedToEmit.push(f))}_unmarkAll(){this.isEmpty()||this._selection.forEach(f=>this._unmarkSelected(f))}_verifyValueAssignment(f){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(f){if(this.compareWith){for(let k of this._selection)if(this.compareWith(f,k))return k;return f}return f}}let b=(()=>{class w{constructor(){this._listeners=[]}notify(k,I){for(let x of this._listeners)x(k,I)}listen(k){return this._listeners.push(k),()=>{this._listeners=this._listeners.filter(I=>k!==I)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(I){return new(I||w)};static#t=this.\u0275prov=o.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})();const O=new o.nKC("_ViewRepeater")},67336:(ei,rt,D)=>{"use strict";D.d(rt,{A:()=>X,A$:()=>m,E:()=>ge,F:()=>Ee,FX:()=>E,Fm:()=>o,G_:()=>d,Ge:()=>li,Kp:()=>w,LE:()=>x,N:()=>tt,S:()=>Et,SJ:()=>Q,UQ:()=>k,W3:()=>R,Z:()=>jt,_f:()=>h,bn:()=>we,dB:()=>O,eg:()=>Ci,f2:()=>se,i7:()=>I,n6:()=>g,rp:()=>Ri,t6:()=>s,w_:()=>b,wn:()=>L,yZ:()=>f});const d=8,L=9,o=13,E=16,R=17,m=18,h=27,s=32,b=33,O=34,w=35,f=36,k=37,I=38,x=39,g=40,Q=46,se=48,we=57,X=65,ge=69,Ee=70,tt=78,Et=83,jt=90,li=91,Ci=224;function Ri(ji,...wn){return wn.length?wn.some(Nn=>ji[Nn]):ji.altKey||ji.shiftKey||ji.ctrlKey||ji.metaKey}},99327:(ei,rt,D)=>{"use strict";D.d(rt,{QP:()=>g,Rp:()=>F});var r=D(54438),d=D(14085),L=D(21413),j=D(84572),o=D(28793),E=D(71985),R=D(96697),m=D(65245),_=D(70152),v=D(96354),h=D(99172),s=D(56977),b=D(36860);const w=new Set;let f,k=(()=>{class Y{constructor(se,ie){this._platform=se,this._nonce=ie,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):x}matchMedia(se){return(this._platform.WEBKIT||this._platform.BLINK)&&function I(Y,Q){if(!w.has(Y))try{f||(f=document.createElement("style"),Q&&(f.nonce=Q),f.setAttribute("type","text/css"),document.head.appendChild(f)),f.sheet&&(f.sheet.insertRule(`@media ${Y} {body{ }}`,0),w.add(Y))}catch(se){console.error(se)}}(se,this._nonce),this._matchMedia(se)}static#e=this.\u0275fac=function(ie){return new(ie||Y)(r.KVO(b.OD),r.KVO(r.BIS,8))};static#t=this.\u0275prov=r.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})();function x(Y){return{matches:"all"===Y||""===Y,media:Y,addListener:()=>{},removeListener:()=>{}}}let g=(()=>{class Y{constructor(se,ie){this._mediaMatcher=se,this._zone=ie,this._queries=new Map,this._destroySubject=new L.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(se){return C((0,d.FG)(se)).some(ee=>this._registerQuery(ee).mql.matches)}observe(se){const ee=C((0,d.FG)(se)).map(ne=>this._registerQuery(ne).observable);let re=(0,j.z)(ee);return re=(0,o.x)(re.pipe((0,R.s)(1)),re.pipe((0,m.i)(1),(0,_.B)(0))),re.pipe((0,v.T)(ne=>{const _e={matches:!1,breakpoints:{}};return ne.forEach(({matches:be,query:oe})=>{_e.matches=_e.matches||be,_e.breakpoints[oe]=be}),_e}))}_registerQuery(se){if(this._queries.has(se))return this._queries.get(se);const ie=this._mediaMatcher.matchMedia(se),re={observable:new E.c(ne=>{const _e=be=>this._zone.run(()=>ne.next(be));return ie.addListener(_e),()=>{ie.removeListener(_e)}}).pipe((0,h.Z)(ie),(0,v.T)(({matches:ne})=>({query:se,matches:ne})),(0,s.Q)(this._destroySubject)),mql:ie};return this._queries.set(se,re),re}static#e=this.\u0275fac=function(ie){return new(ie||Y)(r.KVO(k),r.KVO(r.SKi))};static#t=this.\u0275prov=r.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})();function C(Y){return Y.map(Q=>Q.split(",")).reduce((Q,se)=>Q.concat(se)).map(Q=>Q.trim())}const F={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},72318:(ei,rt,D)=>{"use strict";D.d(rt,{Wv:()=>m,w5:()=>_});var r=D(14085),d=D(54438),L=D(71985),j=D(21413),o=D(70152);let E=(()=>{class v{create(s){return typeof MutationObserver>"u"?null:new MutationObserver(s)}static#e=this.\u0275fac=function(b){return new(b||v)};static#t=this.\u0275prov=d.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),R=(()=>{class v{constructor(s){this._mutationObserverFactory=s,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((s,b)=>this._cleanupObserver(b))}observe(s){const b=(0,r.i8)(s);return new L.c(O=>{const f=this._observeElement(b).subscribe(O);return()=>{f.unsubscribe(),this._unobserveElement(b)}})}_observeElement(s){if(this._observedElements.has(s))this._observedElements.get(s).count++;else{const b=new j.B,O=this._mutationObserverFactory.create(w=>b.next(w));O&&O.observe(s,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(s,{observer:O,stream:b,count:1})}return this._observedElements.get(s).stream}_unobserveElement(s){this._observedElements.has(s)&&(this._observedElements.get(s).count--,this._observedElements.get(s).count||this._cleanupObserver(s))}_cleanupObserver(s){if(this._observedElements.has(s)){const{observer:b,stream:O}=this._observedElements.get(s);b&&b.disconnect(),O.complete(),this._observedElements.delete(s)}}static#e=this.\u0275fac=function(b){return new(b||v)(d.KVO(E))};static#t=this.\u0275prov=d.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})(),m=(()=>{class v{get disabled(){return this._disabled}set disabled(s){this._disabled=(0,r.he)(s),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(s){this._debounce=(0,r.OE)(s),this._subscribe()}constructor(s,b,O){this._contentObserver=s,this._elementRef=b,this._ngZone=O,this.event=new d.bkB,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const s=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?s.pipe((0,o.B)(this.debounce)):s).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(b){return new(b||v)(d.rXU(R),d.rXU(d.aKT),d.rXU(d.SKi))};static#t=this.\u0275dir=d.FsC({type:v,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[d.Mj6.None,"cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return v})(),_=(()=>{class v{static#e=this.\u0275fac=function(b){return new(b||v)};static#t=this.\u0275mod=d.$C({type:v});static#i=this.\u0275inj=d.G2t({providers:[E]})}return v})()},47987:(ei,rt,D)=>{"use strict";D.d(rt,{Sf:()=>oe,hJ:()=>Ie,rR:()=>Y,yY:()=>me,z_:()=>vt});var r=D(23980),d=D(60177),L=D(54438),j=D(14085),o=D(36860),E=D(5964),R=D(96697),m=D(56977),_=D(28203),v=D(76939),h=D(21413),s=D(18359),b=D(57786);const O=(0,o.CZ)();class w{constructor(Qe,Et){this._viewportRuler=Qe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Et}attach(){}enable(){if(this._canBeEnabled()){const Qe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Qe.style.left||"",this._previousHTMLStyles.top=Qe.style.top||"",Qe.style.left=(0,j.a1)(-this._previousScrollPosition.left),Qe.style.top=(0,j.a1)(-this._previousScrollPosition.top),Qe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Qe=this._document.documentElement,Lt=Qe.style,wt=this._document.body.style,Mt=Lt.scrollBehavior||"",Ge=wt.scrollBehavior||"";this._isEnabled=!1,Lt.left=this._previousHTMLStyles.left,Lt.top=this._previousHTMLStyles.top,Qe.classList.remove("cdk-global-scrollblock"),O&&(Lt.scrollBehavior=wt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),O&&(Lt.scrollBehavior=Mt,wt.scrollBehavior=Ge)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Et=this._document.body,Lt=this._viewportRuler.getViewportSize();return Et.scrollHeight>Lt.height||Et.scrollWidth>Lt.width}}class k{constructor(Qe,Et,Lt,wt){this._scrollDispatcher=Qe,this._ngZone=Et,this._viewportRuler=Lt,this._config=wt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(Qe){this._overlayRef=Qe}enable(){if(this._scrollSubscription)return;const Qe=this._scrollDispatcher.scrolled(0).pipe((0,E.p)(Et=>!Et||!this._overlayRef.overlayElement.contains(Et.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Qe.subscribe(()=>{const Et=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Et-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Qe.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class I{enable(){}disable(){}attach(){}}function x(Nt,Qe){return Qe.some(Et=>Nt.bottom<Et.top||Nt.top>Et.bottom||Nt.right<Et.left||Nt.left>Et.right)}function g(Nt,Qe){return Qe.some(Et=>Nt.top<Et.top||Nt.bottom>Et.bottom||Nt.left<Et.left||Nt.right>Et.right)}class C{constructor(Qe,Et,Lt,wt){this._scrollDispatcher=Qe,this._viewportRuler=Et,this._ngZone=Lt,this._config=wt,this._scrollSubscription=null}attach(Qe){this._overlayRef=Qe}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Et=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Lt,height:wt}=this._viewportRuler.getViewportSize();x(Et,[{width:Lt,height:wt,bottom:wt,right:Lt,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let F=(()=>{class Nt{constructor(Et,Lt,wt,Mt){this._scrollDispatcher=Et,this._viewportRuler=Lt,this._ngZone=wt,this.noop=()=>new I,this.close=Ge=>new k(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ge),this.block=()=>new w(this._viewportRuler,this._document),this.reposition=Ge=>new C(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ge),this._document=Mt}static#e=this.\u0275fac=function(Lt){return new(Lt||Nt)(L.KVO(r.R),L.KVO(r.Xj),L.KVO(L.SKi),L.KVO(d.qQ))};static#t=this.\u0275prov=L.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"})}return Nt})();class Y{constructor(Qe){if(this.scrollStrategy=new I,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Qe){const Et=Object.keys(Qe);for(const Lt of Et)void 0!==Qe[Lt]&&(this[Lt]=Qe[Lt])}}}class ie{constructor(Qe,Et){this.connectionPair=Qe,this.scrollableViewProperties=Et}}let ne=(()=>{class Nt{constructor(Et){this._attachedOverlays=[],this._document=Et}ngOnDestroy(){this.detach()}add(Et){this.remove(Et),this._attachedOverlays.push(Et)}remove(Et){const Lt=this._attachedOverlays.indexOf(Et);Lt>-1&&this._attachedOverlays.splice(Lt,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(Lt){return new(Lt||Nt)(L.KVO(d.qQ))};static#t=this.\u0275prov=L.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"})}return Nt})(),_e=(()=>{class Nt extends ne{constructor(Et,Lt){super(Et),this._ngZone=Lt,this._keydownListener=wt=>{const Mt=this._attachedOverlays;for(let Ge=Mt.length-1;Ge>-1;Ge--)if(Mt[Ge]._keydownEvents.observers.length>0){const ot=Mt[Ge]._keydownEvents;this._ngZone?this._ngZone.run(()=>ot.next(wt)):ot.next(wt);break}}}add(Et){super.add(Et),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(Lt){return new(Lt||Nt)(L.KVO(d.qQ),L.KVO(L.SKi,8))};static#t=this.\u0275prov=L.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"})}return Nt})(),be=(()=>{class Nt extends ne{constructor(Et,Lt,wt){super(Et),this._platform=Lt,this._ngZone=wt,this._cursorStyleIsSet=!1,this._pointerDownListener=Mt=>{this._pointerDownEventTarget=(0,o.Fb)(Mt)},this._clickListener=Mt=>{const Ge=(0,o.Fb)(Mt),ot="click"===Mt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ge;this._pointerDownEventTarget=null;const Tt=this._attachedOverlays.slice();for(let jt=Tt.length-1;jt>-1;jt--){const li=Tt[jt];if(li._outsidePointerEvents.observers.length<1||!li.hasAttached())continue;if(li.overlayElement.contains(Ge)||li.overlayElement.contains(ot))break;const an=li._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>an.next(Mt)):an.next(Mt)}}}add(Et){if(super.add(Et),!this._isAttached){const Lt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Lt)):this._addEventListeners(Lt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Lt.style.cursor,Lt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Et=this._document.body;Et.removeEventListener("pointerdown",this._pointerDownListener,!0),Et.removeEventListener("click",this._clickListener,!0),Et.removeEventListener("auxclick",this._clickListener,!0),Et.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Et.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Et){Et.addEventListener("pointerdown",this._pointerDownListener,!0),Et.addEventListener("click",this._clickListener,!0),Et.addEventListener("auxclick",this._clickListener,!0),Et.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(Lt){return new(Lt||Nt)(L.KVO(d.qQ),L.KVO(o.OD),L.KVO(L.SKi,8))};static#t=this.\u0275prov=L.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"})}return Nt})(),oe=(()=>{class Nt{constructor(Et,Lt){this._platform=Lt,this._document=Et}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Et="cdk-overlay-container";if(this._platform.isBrowser||(0,o.v8)()){const wt=this._document.querySelectorAll(`.${Et}[platform="server"], .${Et}[platform="test"]`);for(let Mt=0;Mt<wt.length;Mt++)wt[Mt].remove()}const Lt=this._document.createElement("div");Lt.classList.add(Et),(0,o.v8)()?Lt.setAttribute("platform","test"):this._platform.isBrowser||Lt.setAttribute("platform","server"),this._document.body.appendChild(Lt),this._containerElement=Lt}static#e=this.\u0275fac=function(Lt){return new(Lt||Nt)(L.KVO(d.qQ),L.KVO(o.OD))};static#t=this.\u0275prov=L.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"})}return Nt})();class me{constructor(Qe,Et,Lt,wt,Mt,Ge,ot,Tt,jt,li=!1){this._portalOutlet=Qe,this._host=Et,this._pane=Lt,this._config=wt,this._ngZone=Mt,this._keyboardDispatcher=Ge,this._document=ot,this._location=Tt,this._outsideClickDispatcher=jt,this._animationsDisabled=li,this._backdropElement=null,this._backdropClick=new h.B,this._attachments=new h.B,this._detachments=new h.B,this._locationChanges=s.yU.EMPTY,this._backdropClickHandler=an=>this._backdropClick.next(an),this._backdropTransitionendHandler=an=>{this._disposeBackdrop(an.target)},this._keydownEvents=new h.B,this._outsidePointerEvents=new h.B,wt.scrollStrategy&&(this._scrollStrategy=wt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=wt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Qe){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Et=this._portalOutlet.attach(Qe);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,R.s)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Et?.onDestroy&&Et.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Et}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Qe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Qe}dispose(){const Qe=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,Qe&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(Qe){Qe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Qe,this.hasAttached()&&(Qe.attach(this),this.updatePosition()))}updateSize(Qe){this._config={...this._config,...Qe},this._updateElementSize()}setDirection(Qe){this._config={...this._config,direction:Qe},this._updateElementDirection()}addPanelClass(Qe){this._pane&&this._toggleClasses(this._pane,Qe,!0)}removePanelClass(Qe){this._pane&&this._toggleClasses(this._pane,Qe,!1)}getDirection(){const Qe=this._config.direction;return Qe?"string"==typeof Qe?Qe:Qe.value:"ltr"}updateScrollStrategy(Qe){Qe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Qe,this.hasAttached()&&(Qe.attach(this),Qe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Qe=this._pane.style;Qe.width=(0,j.a1)(this._config.width),Qe.height=(0,j.a1)(this._config.height),Qe.minWidth=(0,j.a1)(this._config.minWidth),Qe.minHeight=(0,j.a1)(this._config.minHeight),Qe.maxWidth=(0,j.a1)(this._config.maxWidth),Qe.maxHeight=(0,j.a1)(this._config.maxHeight)}_togglePointerEvents(Qe){this._pane.style.pointerEvents=Qe?"":"none"}_attachBackdrop(){const Qe="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(Qe)})}):this._backdropElement.classList.add(Qe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Qe=this._backdropElement;if(Qe){if(this._animationsDisabled)return void this._disposeBackdrop(Qe);Qe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Qe.addEventListener("transitionend",this._backdropTransitionendHandler)}),Qe.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Qe)},500))}}_toggleClasses(Qe,Et,Lt){const wt=(0,j.FG)(Et||[]).filter(Mt=>!!Mt);wt.length&&(Lt?Qe.classList.add(...wt):Qe.classList.remove(...wt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const Qe=this._ngZone.onStable.pipe((0,m.Q)((0,b.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),Qe.unsubscribe())})})}_disposeScrollStrategy(){const Qe=this._scrollStrategy;Qe&&(Qe.disable(),Qe.detach&&Qe.detach())}_disposeBackdrop(Qe){Qe&&(Qe.removeEventListener("click",this._backdropClickHandler),Qe.removeEventListener("transitionend",this._backdropTransitionendHandler),Qe.remove(),this._backdropElement===Qe&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const we="cdk-overlay-connected-position-bounding-box",N=/([A-Za-z%]+)$/;class G{get positions(){return this._preferredPositions}constructor(Qe,Et,Lt,wt,Mt){this._viewportRuler=Et,this._document=Lt,this._platform=wt,this._overlayContainer=Mt,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new h.B,this._resizeSubscription=s.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Qe)}attach(Qe){this._validatePositions(),Qe.hostElement.classList.add(we),this._overlayRef=Qe,this._boundingBox=Qe.hostElement,this._pane=Qe.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Qe=this._originRect,Et=this._overlayRect,Lt=this._viewportRect,wt=this._containerRect,Mt=[];let Ge;for(let ot of this._preferredPositions){let Tt=this._getOriginPoint(Qe,wt,ot),jt=this._getOverlayPoint(Tt,Et,ot),li=this._getOverlayFit(jt,Et,Lt,ot);if(li.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ot,Tt);this._canFitWithFlexibleDimensions(li,jt,Lt)?Mt.push({position:ot,origin:Tt,overlayRect:Et,boundingBoxRect:this._calculateBoundingBoxRect(Tt,ot)}):(!Ge||Ge.overlayFit.visibleArea<li.visibleArea)&&(Ge={overlayFit:li,overlayPoint:jt,originPoint:Tt,position:ot,overlayRect:Et})}if(Mt.length){let ot=null,Tt=-1;for(const jt of Mt){const li=jt.boundingBoxRect.width*jt.boundingBoxRect.height*(jt.position.weight||1);li>Tt&&(Tt=li,ot=jt)}return this._isPushed=!1,void this._applyPosition(ot.position,ot.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ge.position,Ge.originPoint);this._applyPosition(Ge.position,Ge.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&W(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(we),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Qe=this._lastPosition;if(Qe){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Et=this._getOriginPoint(this._originRect,this._containerRect,Qe);this._applyPosition(Qe,Et)}else this.apply()}withScrollableContainers(Qe){return this._scrollables=Qe,this}withPositions(Qe){return this._preferredPositions=Qe,-1===Qe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Qe){return this._viewportMargin=Qe,this}withFlexibleDimensions(Qe=!0){return this._hasFlexibleDimensions=Qe,this}withGrowAfterOpen(Qe=!0){return this._growAfterOpen=Qe,this}withPush(Qe=!0){return this._canPush=Qe,this}withLockedPosition(Qe=!0){return this._positionLocked=Qe,this}setOrigin(Qe){return this._origin=Qe,this}withDefaultOffsetX(Qe){return this._offsetX=Qe,this}withDefaultOffsetY(Qe){return this._offsetY=Qe,this}withTransformOriginOn(Qe){return this._transformOriginSelector=Qe,this}_getOriginPoint(Qe,Et,Lt){let wt,Mt;if("center"==Lt.originX)wt=Qe.left+Qe.width/2;else{const Ge=this._isRtl()?Qe.right:Qe.left,ot=this._isRtl()?Qe.left:Qe.right;wt="start"==Lt.originX?Ge:ot}return Et.left<0&&(wt-=Et.left),Mt="center"==Lt.originY?Qe.top+Qe.height/2:"top"==Lt.originY?Qe.top:Qe.bottom,Et.top<0&&(Mt-=Et.top),{x:wt,y:Mt}}_getOverlayPoint(Qe,Et,Lt){let wt,Mt;return wt="center"==Lt.overlayX?-Et.width/2:"start"===Lt.overlayX?this._isRtl()?-Et.width:0:this._isRtl()?0:-Et.width,Mt="center"==Lt.overlayY?-Et.height/2:"top"==Lt.overlayY?0:-Et.height,{x:Qe.x+wt,y:Qe.y+Mt}}_getOverlayFit(Qe,Et,Lt,wt){const Mt=X(Et);let{x:Ge,y:ot}=Qe,Tt=this._getOffset(wt,"x"),jt=this._getOffset(wt,"y");Tt&&(Ge+=Tt),jt&&(ot+=jt);let xi=0-ot,Je=ot+Mt.height-Lt.height,Ht=this._subtractOverflows(Mt.width,0-Ge,Ge+Mt.width-Lt.width),gi=this._subtractOverflows(Mt.height,xi,Je),Ti=Ht*gi;return{visibleArea:Ti,isCompletelyWithinViewport:Mt.width*Mt.height===Ti,fitsInViewportVertically:gi===Mt.height,fitsInViewportHorizontally:Ht==Mt.width}}_canFitWithFlexibleDimensions(Qe,Et,Lt){if(this._hasFlexibleDimensions){const wt=Lt.bottom-Et.y,Mt=Lt.right-Et.x,Ge=z(this._overlayRef.getConfig().minHeight),ot=z(this._overlayRef.getConfig().minWidth);return(Qe.fitsInViewportVertically||null!=Ge&&Ge<=wt)&&(Qe.fitsInViewportHorizontally||null!=ot&&ot<=Mt)}return!1}_pushOverlayOnScreen(Qe,Et,Lt){if(this._previousPushAmount&&this._positionLocked)return{x:Qe.x+this._previousPushAmount.x,y:Qe.y+this._previousPushAmount.y};const wt=X(Et),Mt=this._viewportRect,Ge=Math.max(Qe.x+wt.width-Mt.width,0),ot=Math.max(Qe.y+wt.height-Mt.height,0),Tt=Math.max(Mt.top-Lt.top-Qe.y,0),jt=Math.max(Mt.left-Lt.left-Qe.x,0);let li=0,an=0;return li=wt.width<=Mt.width?jt||-Ge:Qe.x<this._viewportMargin?Mt.left-Lt.left-Qe.x:0,an=wt.height<=Mt.height?Tt||-ot:Qe.y<this._viewportMargin?Mt.top-Lt.top-Qe.y:0,this._previousPushAmount={x:li,y:an},{x:Qe.x+li,y:Qe.y+an}}_applyPosition(Qe,Et){if(this._setTransformOrigin(Qe),this._setOverlayElementStyles(Et,Qe),this._setBoundingBoxStyles(Et,Qe),Qe.panelClass&&this._addPanelClasses(Qe.panelClass),this._lastPosition=Qe,this._positionChanges.observers.length){const Lt=this._getScrollVisibility(),wt=new ie(Qe,Lt);this._positionChanges.next(wt)}this._isInitialRender=!1}_setTransformOrigin(Qe){if(!this._transformOriginSelector)return;const Et=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Lt,wt=Qe.overlayY;Lt="center"===Qe.overlayX?"center":this._isRtl()?"start"===Qe.overlayX?"right":"left":"start"===Qe.overlayX?"left":"right";for(let Mt=0;Mt<Et.length;Mt++)Et[Mt].style.transformOrigin=`${Lt} ${wt}`}_calculateBoundingBoxRect(Qe,Et){const Lt=this._viewportRect,wt=this._isRtl();let Mt,Ge,ot,li,an,xi;if("top"===Et.overlayY)Ge=Qe.y,Mt=Lt.height-Ge+this._viewportMargin;else if("bottom"===Et.overlayY)ot=Lt.height-Qe.y+2*this._viewportMargin,Mt=Lt.height-ot+this._viewportMargin;else{const Je=Math.min(Lt.bottom-Qe.y+Lt.top,Qe.y),Ht=this._lastBoundingBoxSize.height;Mt=2*Je,Ge=Qe.y-Je,Mt>Ht&&!this._isInitialRender&&!this._growAfterOpen&&(Ge=Qe.y-Ht/2)}if("end"===Et.overlayX&&!wt||"start"===Et.overlayX&&wt)xi=Lt.width-Qe.x+this._viewportMargin,li=Qe.x-this._viewportMargin;else if("start"===Et.overlayX&&!wt||"end"===Et.overlayX&&wt)an=Qe.x,li=Lt.right-Qe.x;else{const Je=Math.min(Lt.right-Qe.x+Lt.left,Qe.x),Ht=this._lastBoundingBoxSize.width;li=2*Je,an=Qe.x-Je,li>Ht&&!this._isInitialRender&&!this._growAfterOpen&&(an=Qe.x-Ht/2)}return{top:Ge,left:an,bottom:ot,right:xi,width:li,height:Mt}}_setBoundingBoxStyles(Qe,Et){const Lt=this._calculateBoundingBoxRect(Qe,Et);!this._isInitialRender&&!this._growAfterOpen&&(Lt.height=Math.min(Lt.height,this._lastBoundingBoxSize.height),Lt.width=Math.min(Lt.width,this._lastBoundingBoxSize.width));const wt={};if(this._hasExactPosition())wt.top=wt.left="0",wt.bottom=wt.right=wt.maxHeight=wt.maxWidth="",wt.width=wt.height="100%";else{const Mt=this._overlayRef.getConfig().maxHeight,Ge=this._overlayRef.getConfig().maxWidth;wt.height=(0,j.a1)(Lt.height),wt.top=(0,j.a1)(Lt.top),wt.bottom=(0,j.a1)(Lt.bottom),wt.width=(0,j.a1)(Lt.width),wt.left=(0,j.a1)(Lt.left),wt.right=(0,j.a1)(Lt.right),wt.alignItems="center"===Et.overlayX?"center":"end"===Et.overlayX?"flex-end":"flex-start",wt.justifyContent="center"===Et.overlayY?"center":"bottom"===Et.overlayY?"flex-end":"flex-start",Mt&&(wt.maxHeight=(0,j.a1)(Mt)),Ge&&(wt.maxWidth=(0,j.a1)(Ge))}this._lastBoundingBoxSize=Lt,W(this._boundingBox.style,wt)}_resetBoundingBoxStyles(){W(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){W(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Qe,Et){const Lt={},wt=this._hasExactPosition(),Mt=this._hasFlexibleDimensions,Ge=this._overlayRef.getConfig();if(wt){const li=this._viewportRuler.getViewportScrollPosition();W(Lt,this._getExactOverlayY(Et,Qe,li)),W(Lt,this._getExactOverlayX(Et,Qe,li))}else Lt.position="static";let ot="",Tt=this._getOffset(Et,"x"),jt=this._getOffset(Et,"y");Tt&&(ot+=`translateX(${Tt}px) `),jt&&(ot+=`translateY(${jt}px)`),Lt.transform=ot.trim(),Ge.maxHeight&&(wt?Lt.maxHeight=(0,j.a1)(Ge.maxHeight):Mt&&(Lt.maxHeight="")),Ge.maxWidth&&(wt?Lt.maxWidth=(0,j.a1)(Ge.maxWidth):Mt&&(Lt.maxWidth="")),W(this._pane.style,Lt)}_getExactOverlayY(Qe,Et,Lt){let wt={top:"",bottom:""},Mt=this._getOverlayPoint(Et,this._overlayRect,Qe);return this._isPushed&&(Mt=this._pushOverlayOnScreen(Mt,this._overlayRect,Lt)),"bottom"===Qe.overlayY?wt.bottom=this._document.documentElement.clientHeight-(Mt.y+this._overlayRect.height)+"px":wt.top=(0,j.a1)(Mt.y),wt}_getExactOverlayX(Qe,Et,Lt){let Ge,wt={left:"",right:""},Mt=this._getOverlayPoint(Et,this._overlayRect,Qe);return this._isPushed&&(Mt=this._pushOverlayOnScreen(Mt,this._overlayRect,Lt)),Ge=this._isRtl()?"end"===Qe.overlayX?"left":"right":"end"===Qe.overlayX?"right":"left","right"===Ge?wt.right=this._document.documentElement.clientWidth-(Mt.x+this._overlayRect.width)+"px":wt.left=(0,j.a1)(Mt.x),wt}_getScrollVisibility(){const Qe=this._getOriginRect(),Et=this._pane.getBoundingClientRect(),Lt=this._scrollables.map(wt=>wt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:g(Qe,Lt),isOriginOutsideView:x(Qe,Lt),isOverlayClipped:g(Et,Lt),isOverlayOutsideView:x(Et,Lt)}}_subtractOverflows(Qe,...Et){return Et.reduce((Lt,wt)=>Lt-Math.max(wt,0),Qe)}_getNarrowedViewportRect(){const Qe=this._document.documentElement.clientWidth,Et=this._document.documentElement.clientHeight,Lt=this._viewportRuler.getViewportScrollPosition();return{top:Lt.top+this._viewportMargin,left:Lt.left+this._viewportMargin,right:Lt.left+Qe-this._viewportMargin,bottom:Lt.top+Et-this._viewportMargin,width:Qe-2*this._viewportMargin,height:Et-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Qe,Et){return"x"===Et?null==Qe.offsetX?this._offsetX:Qe.offsetX:null==Qe.offsetY?this._offsetY:Qe.offsetY}_validatePositions(){}_addPanelClasses(Qe){this._pane&&(0,j.FG)(Qe).forEach(Et=>{""!==Et&&-1===this._appliedPanelClasses.indexOf(Et)&&(this._appliedPanelClasses.push(Et),this._pane.classList.add(Et))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Qe=>{this._pane.classList.remove(Qe)}),this._appliedPanelClasses=[])}_getOriginRect(){const Qe=this._origin;if(Qe instanceof L.aKT)return Qe.nativeElement.getBoundingClientRect();if(Qe instanceof Element)return Qe.getBoundingClientRect();const Et=Qe.width||0,Lt=Qe.height||0;return{top:Qe.y,bottom:Qe.y+Lt,left:Qe.x,right:Qe.x+Et,height:Lt,width:Et}}}function W(Nt,Qe){for(let Et in Qe)Qe.hasOwnProperty(Et)&&(Nt[Et]=Qe[Et]);return Nt}function z(Nt){if("number"!=typeof Nt&&null!=Nt){const[Qe,Et]=Nt.split(N);return Et&&"px"!==Et?null:parseFloat(Qe)}return Nt||null}function X(Nt){return{top:Math.floor(Nt.top),right:Math.floor(Nt.right),bottom:Math.floor(Nt.bottom),left:Math.floor(Nt.left),width:Math.floor(Nt.width),height:Math.floor(Nt.height)}}const xe="cdk-global-overlay-wrapper";class ge{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(Qe){const Et=Qe.getConfig();this._overlayRef=Qe,this._width&&!Et.width&&Qe.updateSize({width:this._width}),this._height&&!Et.height&&Qe.updateSize({height:this._height}),Qe.hostElement.classList.add(xe),this._isDisposed=!1}top(Qe=""){return this._bottomOffset="",this._topOffset=Qe,this._alignItems="flex-start",this}left(Qe=""){return this._xOffset=Qe,this._xPosition="left",this}bottom(Qe=""){return this._topOffset="",this._bottomOffset=Qe,this._alignItems="flex-end",this}right(Qe=""){return this._xOffset=Qe,this._xPosition="right",this}start(Qe=""){return this._xOffset=Qe,this._xPosition="start",this}end(Qe=""){return this._xOffset=Qe,this._xPosition="end",this}width(Qe=""){return this._overlayRef?this._overlayRef.updateSize({width:Qe}):this._width=Qe,this}height(Qe=""){return this._overlayRef?this._overlayRef.updateSize({height:Qe}):this._height=Qe,this}centerHorizontally(Qe=""){return this.left(Qe),this._xPosition="center",this}centerVertically(Qe=""){return this.top(Qe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Qe=this._overlayRef.overlayElement.style,Et=this._overlayRef.hostElement.style,Lt=this._overlayRef.getConfig(),{width:wt,height:Mt,maxWidth:Ge,maxHeight:ot}=Lt,Tt=!("100%"!==wt&&"100vw"!==wt||Ge&&"100%"!==Ge&&"100vw"!==Ge),jt=!("100%"!==Mt&&"100vh"!==Mt||ot&&"100%"!==ot&&"100vh"!==ot),li=this._xPosition,an=this._xOffset,xi="rtl"===this._overlayRef.getConfig().direction;let Je="",Ht="",gi="";Tt?gi="flex-start":"center"===li?(gi="center",xi?Ht=an:Je=an):xi?"left"===li||"end"===li?(gi="flex-end",Je=an):("right"===li||"start"===li)&&(gi="flex-start",Ht=an):"left"===li||"start"===li?(gi="flex-start",Je=an):("right"===li||"end"===li)&&(gi="flex-end",Ht=an),Qe.position=this._cssPosition,Qe.marginLeft=Tt?"0":Je,Qe.marginTop=jt?"0":this._topOffset,Qe.marginBottom=this._bottomOffset,Qe.marginRight=Tt?"0":Ht,Et.justifyContent=gi,Et.alignItems=jt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Qe=this._overlayRef.overlayElement.style,Et=this._overlayRef.hostElement,Lt=Et.style;Et.classList.remove(xe),Lt.justifyContent=Lt.alignItems=Qe.marginTop=Qe.marginBottom=Qe.marginLeft=Qe.marginRight=Qe.position="",this._overlayRef=null,this._isDisposed=!0}}let Ee=(()=>{class Nt{constructor(Et,Lt,wt,Mt){this._viewportRuler=Et,this._document=Lt,this._platform=wt,this._overlayContainer=Mt}global(){return new ge}flexibleConnectedTo(Et){return new G(Et,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(Lt){return new(Lt||Nt)(L.KVO(r.Xj),L.KVO(d.qQ),L.KVO(o.OD),L.KVO(oe))};static#t=this.\u0275prov=L.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"})}return Nt})(),he=0,Ie=(()=>{class Nt{constructor(Et,Lt,wt,Mt,Ge,ot,Tt,jt,li,an,xi,Je){this.scrollStrategies=Et,this._overlayContainer=Lt,this._componentFactoryResolver=wt,this._positionBuilder=Mt,this._keyboardDispatcher=Ge,this._injector=ot,this._ngZone=Tt,this._document=jt,this._directionality=li,this._location=an,this._outsideClickDispatcher=xi,this._animationsModuleType=Je}create(Et){const Lt=this._createHostElement(),wt=this._createPaneElement(Lt),Mt=this._createPortalOutlet(wt),Ge=new Y(Et);return Ge.direction=Ge.direction||this._directionality.value,new me(Mt,Lt,wt,Ge,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(Et){const Lt=this._document.createElement("div");return Lt.id="cdk-overlay-"+he++,Lt.classList.add("cdk-overlay-pane"),Et.appendChild(Lt),Lt}_createHostElement(){const Et=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Et),Et}_createPortalOutlet(Et){return this._appRef||(this._appRef=this._injector.get(L.o8S)),new v.aI(Et,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(Lt){return new(Lt||Nt)(L.KVO(F),L.KVO(oe),L.KVO(L.OM3),L.KVO(Ee),L.KVO(_e),L.KVO(L.zZn),L.KVO(L.SKi),L.KVO(d.qQ),L.KVO(_.dS),L.KVO(d.aZ),L.KVO(be),L.KVO(L.bc$,8))};static#t=this.\u0275prov=L.jDH({token:Nt,factory:Nt.\u0275fac,providedIn:"root"})}return Nt})();const tt={provide:new L.nKC("cdk-connected-overlay-scroll-strategy"),deps:[Ie],useFactory:function We(Nt){return()=>Nt.scrollStrategies.reposition()}};let vt=(()=>{class Nt{static#e=this.\u0275fac=function(Lt){return new(Lt||Nt)};static#t=this.\u0275mod=L.$C({type:Nt});static#i=this.\u0275inj=L.G2t({providers:[Ie,tt],imports:[_.jI,v.jc,r.E9,r.E9]})}return Nt})()},36860:(ei,rt,D)=>{"use strict";D.d(rt,{BD:()=>w,BQ:()=>h,CZ:()=>O,Fb:()=>g,KT:()=>I,MU:()=>m,OD:()=>j,v8:()=>C,vc:()=>x});var r=D(54438),d=D(60177);let L;try{L=typeof Intl<"u"&&Intl.v8BreakIterator}catch{L=!1}let E,j=(()=>{class F{constructor(Q){this._platformId=Q,this.isBrowser=this._platformId?(0,d.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!L)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(se){return new(se||F)(r.KVO(r.Agw))};static#t=this.\u0275prov=r.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();const R=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function m(){if(E)return E;if("object"!=typeof document||!document)return E=new Set(R),E;let F=document.createElement("input");return E=new Set(R.filter(Y=>(F.setAttribute("type",Y),F.type===Y))),E}let _,s,b,f;function h(F){return function v(){if(null==_&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>_=!0}))}finally{_=_||!1}return _}()?F:!!F.capture}function O(){if(null==b){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return b=!1,b;if("scrollBehavior"in document.documentElement.style)b=!0;else{const F=Element.prototype.scrollTo;b=!!F&&!/\{\s*\[native code\]\s*\}/.test(F.toString())}}return b}function w(){if("object"!=typeof document||!document)return 0;if(null==s){const F=document.createElement("div"),Y=F.style;F.dir="rtl",Y.width="1px",Y.overflow="auto",Y.visibility="hidden",Y.pointerEvents="none",Y.position="absolute";const Q=document.createElement("div"),se=Q.style;se.width="2px",se.height="1px",F.appendChild(Q),document.body.appendChild(F),s=0,0===F.scrollLeft&&(F.scrollLeft=1,s=0===F.scrollLeft?1:2),F.remove()}return s}function I(F){if(function k(){if(null==f){const F=typeof document<"u"?document.head:null;f=!(!F||!F.createShadowRoot&&!F.attachShadow)}return f}()){const Y=F.getRootNode?F.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Y instanceof ShadowRoot)return Y}return null}function x(){let F=typeof document<"u"&&document?document.activeElement:null;for(;F&&F.shadowRoot;){const Y=F.shadowRoot.activeElement;if(Y===F)break;F=Y}return F}function g(F){return F.composedPath?F.composedPath()[0]:F.target}function C(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},76939:(ei,rt,D)=>{"use strict";D.d(rt,{A8:()=>v,I3:()=>x,VA:()=>h,aI:()=>w,jc:()=>C,lb:()=>b});var r=D(54438),d=D(60177);class _{attach(Q){return this._attachedHost=Q,Q.attach(this)}detach(){let Q=this._attachedHost;null!=Q&&(this._attachedHost=null,Q.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Q){this._attachedHost=Q}}class v extends _{constructor(Q,se,ie,ee,re){super(),this.component=Q,this.viewContainerRef=se,this.injector=ie,this.componentFactoryResolver=ee,this.projectableNodes=re}}class h extends _{constructor(Q,se,ie,ee){super(),this.templateRef=Q,this.viewContainerRef=se,this.context=ie,this.injector=ee}get origin(){return this.templateRef.elementRef}attach(Q,se=this.context){return this.context=se,super.attach(Q)}detach(){return this.context=void 0,super.detach()}}class s extends _{constructor(Q){super(),this.element=Q instanceof r.aKT?Q.nativeElement:Q}}class b{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Q){return Q instanceof v?(this._attachedPortal=Q,this.attachComponentPortal(Q)):Q instanceof h?(this._attachedPortal=Q,this.attachTemplatePortal(Q)):this.attachDomPortal&&Q instanceof s?(this._attachedPortal=Q,this.attachDomPortal(Q)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Q){this._disposeFn=Q}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends b{constructor(Q,se,ie,ee,re){super(),this.outletElement=Q,this._componentFactoryResolver=se,this._appRef=ie,this._defaultInjector=ee,this.attachDomPortal=ne=>{const _e=ne.element,be=this._document.createComment("dom-portal");_e.parentNode.insertBefore(be,_e),this.outletElement.appendChild(_e),this._attachedPortal=ne,super.setDisposeFn(()=>{be.parentNode&&be.parentNode.replaceChild(_e,be)})},this._document=re}attachComponentPortal(Q){const ie=(Q.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Q.component);let ee;return Q.viewContainerRef?(ee=Q.viewContainerRef.createComponent(ie,Q.viewContainerRef.length,Q.injector||Q.viewContainerRef.injector,Q.projectableNodes||void 0),this.setDisposeFn(()=>ee.destroy())):(ee=ie.create(Q.injector||this._defaultInjector||r.zZn.NULL),this._appRef.attachView(ee.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ee.hostView),ee.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ee)),this._attachedPortal=Q,ee}attachTemplatePortal(Q){let se=Q.viewContainerRef,ie=se.createEmbeddedView(Q.templateRef,Q.context,{injector:Q.injector});return ie.rootNodes.forEach(ee=>this.outletElement.appendChild(ee)),ie.detectChanges(),this.setDisposeFn(()=>{let ee=se.indexOf(ie);-1!==ee&&se.remove(ee)}),this._attachedPortal=Q,ie}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Q){return Q.hostView.rootNodes[0]}}let x=(()=>{class Y extends b{constructor(se,ie,ee){super(),this._componentFactoryResolver=se,this._viewContainerRef=ie,this._isInitialized=!1,this.attached=new r.bkB,this.attachDomPortal=re=>{const ne=re.element,_e=this._document.createComment("dom-portal");re.setAttachedHost(this),ne.parentNode.insertBefore(_e,ne),this._getRootNode().appendChild(ne),this._attachedPortal=re,super.setDisposeFn(()=>{_e.parentNode&&_e.parentNode.replaceChild(ne,_e)})},this._document=ee}get portal(){return this._attachedPortal}set portal(se){this.hasAttached()&&!se&&!this._isInitialized||(this.hasAttached()&&super.detach(),se&&super.attach(se),this._attachedPortal=se||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(se){se.setAttachedHost(this);const ie=null!=se.viewContainerRef?se.viewContainerRef:this._viewContainerRef,re=(se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(se.component),ne=ie.createComponent(re,ie.length,se.injector||ie.injector,se.projectableNodes||void 0);return ie!==this._viewContainerRef&&this._getRootNode().appendChild(ne.hostView.rootNodes[0]),super.setDisposeFn(()=>ne.destroy()),this._attachedPortal=se,this._attachedRef=ne,this.attached.emit(ne),ne}attachTemplatePortal(se){se.setAttachedHost(this);const ie=this._viewContainerRef.createEmbeddedView(se.templateRef,se.context,{injector:se.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=se,this._attachedRef=ie,this.attached.emit(ie),ie}_getRootNode(){const se=this._viewContainerRef.element.nativeElement;return se.nodeType===se.ELEMENT_NODE?se:se.parentNode}static#e=this.\u0275fac=function(ie){return new(ie||Y)(r.rXU(r.OM3),r.rXU(r.c1b),r.rXU(d.qQ))};static#t=this.\u0275dir=r.FsC({type:Y,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[r.Mj6.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.Vt3]})}return Y})(),C=(()=>{class Y{static#e=this.\u0275fac=function(ie){return new(ie||Y)};static#t=this.\u0275mod=r.$C({type:Y});static#i=this.\u0275inj=r.G2t({})}return Y})()},23980:(ei,rt,D)=>{"use strict";D.d(rt,{uv:()=>de,Gj:()=>Mt,R:()=>ce,E9:()=>Ge,Xj:()=>Be});var r=D(14085),d=D(54438),L=D(21413),j=D(7673),o=D(71985),E=D(33726),R=D(96780),m=D(18359);const _={schedule(ot){let Tt=requestAnimationFrame,jt=cancelAnimationFrame;const{delegate:li}=_;li&&(Tt=li.requestAnimationFrame,jt=li.cancelAnimationFrame);const an=Tt(xi=>{jt=void 0,ot(xi)});return new m.yU(()=>jt?.(an))},requestAnimationFrame(...ot){const{delegate:Tt}=_;return(Tt?.requestAnimationFrame||requestAnimationFrame)(...ot)},cancelAnimationFrame(...ot){const{delegate:Tt}=_;return(Tt?.cancelAnimationFrame||cancelAnimationFrame)(...ot)},delegate:void 0};var h=D(39687);new class s extends h.q{flush(Tt){this._active=!0;const jt=this._scheduled;this._scheduled=void 0;const{actions:li}=this;let an;Tt=Tt||li.shift();do{if(an=Tt.execute(Tt.state,Tt.delay))break}while((Tt=li[0])&&Tt.id===jt&&li.shift());if(this._active=!1,an){for(;(Tt=li[0])&&Tt.id===jt&&li.shift();)Tt.unsubscribe();throw an}}}(class v extends R.R{constructor(Tt,jt){super(Tt,jt),this.scheduler=Tt,this.work=jt}requestAsyncId(Tt,jt,li=0){return null!==li&&li>0?super.requestAsyncId(Tt,jt,li):(Tt.actions.push(this),Tt._scheduled||(Tt._scheduled=_.requestAnimationFrame(()=>Tt.flush(void 0))))}recycleAsyncId(Tt,jt,li=0){var an;if(null!=li?li>0:this.delay>0)return super.recycleAsyncId(Tt,jt,li);const{actions:xi}=Tt;null!=jt&&(null===(an=xi[xi.length-1])||void 0===an?void 0:an.id)!==jt&&(_.cancelAnimationFrame(jt),Tt._scheduled=void 0)}});let f,w=1;const k={};function I(ot){return ot in k&&(delete k[ot],!0)}const x={setImmediate(ot){const Tt=w++;return k[Tt]=!0,f||(f=Promise.resolve()),f.then(()=>I(Tt)&&ot()),Tt},clearImmediate(ot){I(ot)}},{setImmediate:C,clearImmediate:F}=x,Y={setImmediate(...ot){const{delegate:Tt}=Y;return(Tt?.setImmediate||C)(...ot)},clearImmediate(ot){const{delegate:Tt}=Y;return(Tt?.clearImmediate||F)(ot)},delegate:void 0};new class se extends h.q{flush(Tt){this._active=!0;const jt=this._scheduled;this._scheduled=void 0;const{actions:li}=this;let an;Tt=Tt||li.shift();do{if(an=Tt.execute(Tt.state,Tt.delay))break}while((Tt=li[0])&&Tt.id===jt&&li.shift());if(this._active=!1,an){for(;(Tt=li[0])&&Tt.id===jt&&li.shift();)Tt.unsubscribe();throw an}}}(class Q extends R.R{constructor(Tt,jt){super(Tt,jt),this.scheduler=Tt,this.work=jt}requestAsyncId(Tt,jt,li=0){return null!==li&&li>0?super.requestAsyncId(Tt,jt,li):(Tt.actions.push(this),Tt._scheduled||(Tt._scheduled=Y.setImmediate(Tt.flush.bind(Tt,void 0))))}recycleAsyncId(Tt,jt,li=0){var an;if(null!=li?li>0:this.delay>0)return super.recycleAsyncId(Tt,jt,li);const{actions:xi}=Tt;null!=jt&&(null===(an=xi[xi.length-1])||void 0===an?void 0:an.id)!==jt&&(Y.clearImmediate(jt),Tt._scheduled===jt&&(Tt._scheduled=void 0))}});var re=D(43236),ne=D(39974),_e=D(58750),be=D(54360),me=D(41584);function we(ot,Tt=re.E){return function oe(ot){return(0,ne.N)((Tt,jt)=>{let li=!1,an=null,xi=null,Je=!1;const Ht=()=>{if(xi?.unsubscribe(),xi=null,li){li=!1;const Ti=an;an=null,jt.next(Ti)}Je&&jt.complete()},gi=()=>{xi=null,Je&&jt.complete()};Tt.subscribe((0,be._)(jt,Ti=>{li=!0,an=Ti,xi||(0,_e.Tg)(ot(Ti)).subscribe(xi=(0,be._)(jt,Ht,gi))},()=>{Je=!0,(!li||!xi||xi.closed)&&jt.complete()}))})}(()=>(0,me.O)(ot,Tt))}var N=D(5964),G=D(56977),W=D(36860),z=D(60177),X=D(28203);let ce=(()=>{class ot{constructor(jt,li,an){this._ngZone=jt,this._platform=li,this._scrolled=new L.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=an}register(jt){this.scrollContainers.has(jt)||this.scrollContainers.set(jt,jt.elementScrolled().subscribe(()=>this._scrolled.next(jt)))}deregister(jt){const li=this.scrollContainers.get(jt);li&&(li.unsubscribe(),this.scrollContainers.delete(jt))}scrolled(jt=20){return this._platform.isBrowser?new o.c(li=>{this._globalSubscription||this._addGlobalListener();const an=jt>0?this._scrolled.pipe(we(jt)).subscribe(li):this._scrolled.subscribe(li);return this._scrolledCount++,()=>{an.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,j.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((jt,li)=>this.deregister(li)),this._scrolled.complete()}ancestorScrolled(jt,li){const an=this.getAncestorScrollContainers(jt);return this.scrolled(li).pipe((0,N.p)(xi=>!xi||an.indexOf(xi)>-1))}getAncestorScrollContainers(jt){const li=[];return this.scrollContainers.forEach((an,xi)=>{this._scrollableContainsElement(xi,jt)&&li.push(xi)}),li}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(jt,li){let an=(0,r.i8)(li),xi=jt.getElementRef().nativeElement;do{if(an==xi)return!0}while(an=an.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const jt=this._getWindow();return(0,E.R)(jt.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(li){return new(li||ot)(d.KVO(d.SKi),d.KVO(W.OD),d.KVO(z.qQ,8))};static#t=this.\u0275prov=d.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}return ot})(),de=(()=>{class ot{constructor(jt,li,an,xi){this.elementRef=jt,this.scrollDispatcher=li,this.ngZone=an,this.dir=xi,this._destroyed=new L.B,this._elementScrolled=new o.c(Je=>this.ngZone.runOutsideAngular(()=>(0,E.R)(this.elementRef.nativeElement,"scroll").pipe((0,G.Q)(this._destroyed)).subscribe(Je)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(jt){const li=this.elementRef.nativeElement,an=this.dir&&"rtl"==this.dir.value;null==jt.left&&(jt.left=an?jt.end:jt.start),null==jt.right&&(jt.right=an?jt.start:jt.end),null!=jt.bottom&&(jt.top=li.scrollHeight-li.clientHeight-jt.bottom),an&&0!=(0,W.BD)()?(null!=jt.left&&(jt.right=li.scrollWidth-li.clientWidth-jt.left),2==(0,W.BD)()?jt.left=jt.right:1==(0,W.BD)()&&(jt.left=jt.right?-jt.right:jt.right)):null!=jt.right&&(jt.left=li.scrollWidth-li.clientWidth-jt.right),this._applyScrollToOptions(jt)}_applyScrollToOptions(jt){const li=this.elementRef.nativeElement;(0,W.CZ)()?li.scrollTo(jt):(null!=jt.top&&(li.scrollTop=jt.top),null!=jt.left&&(li.scrollLeft=jt.left))}measureScrollOffset(jt){const li="left",xi=this.elementRef.nativeElement;if("top"==jt)return xi.scrollTop;if("bottom"==jt)return xi.scrollHeight-xi.clientHeight-xi.scrollTop;const Je=this.dir&&"rtl"==this.dir.value;return"start"==jt?jt=Je?"right":li:"end"==jt&&(jt=Je?li:"right"),Je&&2==(0,W.BD)()?jt==li?xi.scrollWidth-xi.clientWidth-xi.scrollLeft:xi.scrollLeft:Je&&1==(0,W.BD)()?jt==li?xi.scrollLeft+xi.scrollWidth-xi.clientWidth:-xi.scrollLeft:jt==li?xi.scrollLeft:xi.scrollWidth-xi.clientWidth-xi.scrollLeft}static#e=this.\u0275fac=function(li){return new(li||ot)(d.rXU(d.aKT),d.rXU(ce),d.rXU(d.SKi),d.rXU(X.dS,8))};static#t=this.\u0275dir=d.FsC({type:ot,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return ot})(),Be=(()=>{class ot{constructor(jt,li,an){this._platform=jt,this._change=new L.B,this._changeListener=xi=>{this._change.next(xi)},this._document=an,li.runOutsideAngular(()=>{if(jt.isBrowser){const xi=this._getWindow();xi.addEventListener("resize",this._changeListener),xi.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const jt=this._getWindow();jt.removeEventListener("resize",this._changeListener),jt.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const jt={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),jt}getViewportRect(){const jt=this.getViewportScrollPosition(),{width:li,height:an}=this.getViewportSize();return{top:jt.top,left:jt.left,bottom:jt.top+an,right:jt.left+li,height:an,width:li}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const jt=this._document,li=this._getWindow(),an=jt.documentElement,xi=an.getBoundingClientRect();return{top:-xi.top||jt.body.scrollTop||li.scrollY||an.scrollTop||0,left:-xi.left||jt.body.scrollLeft||li.scrollX||an.scrollLeft||0}}change(jt=20){return jt>0?this._change.pipe(we(jt)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const jt=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:jt.innerWidth,height:jt.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(li){return new(li||ot)(d.KVO(W.OD),d.KVO(d.SKi),d.KVO(z.qQ,8))};static#t=this.\u0275prov=d.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}return ot})(),Mt=(()=>{class ot{static#e=this.\u0275fac=function(li){return new(li||ot)};static#t=this.\u0275mod=d.$C({type:ot});static#i=this.\u0275inj=d.G2t({})}return ot})(),Ge=(()=>{class ot{static#e=this.\u0275fac=function(li){return new(li||ot)};static#t=this.\u0275mod=d.$C({type:ot});static#i=this.\u0275inj=d.G2t({imports:[X.jI,Mt,X.jI,Mt]})}return ot})()},37403:(ei,rt,D)=>{"use strict";D.d(rt,{EE:()=>v,P8:()=>R});var r=D(36860),d=D(54438),L=D(14085),j=D(983),o=D(21413);const E=(0,r.BQ)({passive:!0});let R=(()=>{class h{constructor(b,O){this._platform=b,this._ngZone=O,this._monitoredElements=new Map}monitor(b){if(!this._platform.isBrowser)return j.w;const O=(0,L.i8)(b),w=this._monitoredElements.get(O);if(w)return w.subject;const f=new o.B,k="cdk-text-field-autofilled",I=x=>{"cdk-text-field-autofill-start"!==x.animationName||O.classList.contains(k)?"cdk-text-field-autofill-end"===x.animationName&&O.classList.contains(k)&&(O.classList.remove(k),this._ngZone.run(()=>f.next({target:x.target,isAutofilled:!1}))):(O.classList.add(k),this._ngZone.run(()=>f.next({target:x.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{O.addEventListener("animationstart",I,E),O.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(O,{subject:f,unlisten:()=>{O.removeEventListener("animationstart",I,E)}}),f}stopMonitoring(b){const O=(0,L.i8)(b),w=this._monitoredElements.get(O);w&&(w.unlisten(),w.subject.complete(),O.classList.remove("cdk-text-field-autofill-monitored"),O.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(O))}ngOnDestroy(){this._monitoredElements.forEach((b,O)=>this.stopMonitoring(O))}static#e=this.\u0275fac=function(O){return new(O||h)(d.KVO(r.OD),d.KVO(d.SKi))};static#t=this.\u0275prov=d.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),v=(()=>{class h{static#e=this.\u0275fac=function(O){return new(O||h)};static#t=this.\u0275mod=d.$C({type:h});static#i=this.\u0275inj=d.G2t({})}return h})()},60177:(ei,rt,D)=>{"use strict";D.d(rt,{AJ:()=>Pa,Aq:()=>re,EO:()=>_t,Jj:()=>Ha,MD:()=>xr,N0:()=>yl,P6:()=>q,QT:()=>L,QX:()=>Bt,Qn:()=>Xt,RD:()=>X,Sm:()=>f,Sq:()=>ct,T3:()=>ia,UE:()=>ga,VD:()=>he,VF:()=>o,Vy:()=>Lo,Xr:()=>Ml,YU:()=>ln,Yq:()=>Tt,ZD:()=>j,ZV:()=>sa,_b:()=>si,a:()=>ye,aZ:()=>I,bT:()=>Ri,e1:()=>ha,fw:()=>k,gq:()=>z,gz:()=>ne,hb:()=>O,hj:()=>_,oe:()=>Ni,pM:()=>ct,qQ:()=>R,ux:()=>_r,vh:()=>Ho});var r=D(54438);let d=null;function L(){return d}function j(ut){d??=ut}class o{}const R=new r.nKC("");let m=(()=>{class ut{historyGo(Gt){throw new Error("")}static#e=this.\u0275fac=function(hi){return new(hi||ut)};static#t=this.\u0275prov=r.jDH({token:ut,factory:()=>(0,r.WQX)(v),providedIn:"platform"})}return ut})();const _=new r.nKC("");let v=(()=>{class ut extends m{constructor(){super(),this._doc=(0,r.WQX)(R),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return L().getBaseHref(this._doc)}onPopState(Gt){const hi=L().getGlobalEventTarget(this._doc,"window");return hi.addEventListener("popstate",Gt,!1),()=>hi.removeEventListener("popstate",Gt)}onHashChange(Gt){const hi=L().getGlobalEventTarget(this._doc,"window");return hi.addEventListener("hashchange",Gt,!1),()=>hi.removeEventListener("hashchange",Gt)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(Gt){this._location.pathname=Gt}pushState(Gt,hi,gn){this._history.pushState(Gt,hi,gn)}replaceState(Gt,hi,gn){this._history.replaceState(Gt,hi,gn)}forward(){this._history.forward()}back(){this._history.back()}historyGo(Gt=0){this._history.go(Gt)}getState(){return this._history.state}static#e=this.\u0275fac=function(hi){return new(hi||ut)};static#t=this.\u0275prov=r.jDH({token:ut,factory:()=>new ut,providedIn:"platform"})}return ut})();function h(ut,Mi){if(0==ut.length)return Mi;if(0==Mi.length)return ut;let Gt=0;return ut.endsWith("/")&&Gt++,Mi.startsWith("/")&&Gt++,2==Gt?ut+Mi.substring(1):1==Gt?ut+Mi:ut+"/"+Mi}function s(ut){const Mi=ut.match(/#|\?|$/),Gt=Mi&&Mi.index||ut.length;return ut.slice(0,Gt-("/"===ut[Gt-1]?1:0))+ut.slice(Gt)}function b(ut){return ut&&"?"!==ut[0]?"?"+ut:ut}let O=(()=>{class ut{historyGo(Gt){throw new Error("")}static#e=this.\u0275fac=function(hi){return new(hi||ut)};static#t=this.\u0275prov=r.jDH({token:ut,factory:()=>(0,r.WQX)(f),providedIn:"root"})}return ut})();const w=new r.nKC("");let f=(()=>{class ut extends O{constructor(Gt,hi){super(),this._platformLocation=Gt,this._removeListenerFns=[],this._baseHref=hi??this._platformLocation.getBaseHrefFromDOM()??(0,r.WQX)(R).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Gt){this._removeListenerFns.push(this._platformLocation.onPopState(Gt),this._platformLocation.onHashChange(Gt))}getBaseHref(){return this._baseHref}prepareExternalUrl(Gt){return h(this._baseHref,Gt)}path(Gt=!1){const hi=this._platformLocation.pathname+b(this._platformLocation.search),gn=this._platformLocation.hash;return gn&&Gt?`${hi}${gn}`:hi}pushState(Gt,hi,gn,rr){const Tr=this.prepareExternalUrl(gn+b(rr));this._platformLocation.pushState(Gt,hi,Tr)}replaceState(Gt,hi,gn,rr){const Tr=this.prepareExternalUrl(gn+b(rr));this._platformLocation.replaceState(Gt,hi,Tr)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Gt=0){this._platformLocation.historyGo?.(Gt)}static#e=this.\u0275fac=function(hi){return new(hi||ut)(r.KVO(m),r.KVO(w,8))};static#t=this.\u0275prov=r.jDH({token:ut,factory:ut.\u0275fac,providedIn:"root"})}return ut})(),k=(()=>{class ut extends O{constructor(Gt,hi){super(),this._platformLocation=Gt,this._baseHref="",this._removeListenerFns=[],null!=hi&&(this._baseHref=hi)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Gt){this._removeListenerFns.push(this._platformLocation.onPopState(Gt),this._platformLocation.onHashChange(Gt))}getBaseHref(){return this._baseHref}path(Gt=!1){const hi=this._platformLocation.hash??"#";return hi.length>0?hi.substring(1):hi}prepareExternalUrl(Gt){const hi=h(this._baseHref,Gt);return hi.length>0?"#"+hi:hi}pushState(Gt,hi,gn,rr){let Tr=this.prepareExternalUrl(gn+b(rr));0==Tr.length&&(Tr=this._platformLocation.pathname),this._platformLocation.pushState(Gt,hi,Tr)}replaceState(Gt,hi,gn,rr){let Tr=this.prepareExternalUrl(gn+b(rr));0==Tr.length&&(Tr=this._platformLocation.pathname),this._platformLocation.replaceState(Gt,hi,Tr)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Gt=0){this._platformLocation.historyGo?.(Gt)}static#e=this.\u0275fac=function(hi){return new(hi||ut)(r.KVO(m),r.KVO(w,8))};static#t=this.\u0275prov=r.jDH({token:ut,factory:ut.\u0275fac})}return ut})(),I=(()=>{class ut{constructor(Gt){this._subject=new r.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Gt;const hi=this._locationStrategy.getBaseHref();this._basePath=function F(ut){if(new RegExp("^(https?:)?//").test(ut)){const[,Gt]=ut.split(/\/\/[^\/]+/);return Gt}return ut}(s(C(hi))),this._locationStrategy.onPopState(gn=>{this._subject.emit({url:this.path(!0),pop:!0,state:gn.state,type:gn.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Gt=!1){return this.normalize(this._locationStrategy.path(Gt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Gt,hi=""){return this.path()==this.normalize(Gt+b(hi))}normalize(Gt){return ut.stripTrailingSlash(function g(ut,Mi){if(!ut||!Mi.startsWith(ut))return Mi;const Gt=Mi.substring(ut.length);return""===Gt||["/",";","?","#"].includes(Gt[0])?Gt:Mi}(this._basePath,C(Gt)))}prepareExternalUrl(Gt){return Gt&&"/"!==Gt[0]&&(Gt="/"+Gt),this._locationStrategy.prepareExternalUrl(Gt)}go(Gt,hi="",gn=null){this._locationStrategy.pushState(gn,"",Gt,hi),this._notifyUrlChangeListeners(this.prepareExternalUrl(Gt+b(hi)),gn)}replaceState(Gt,hi="",gn=null){this._locationStrategy.replaceState(gn,"",Gt,hi),this._notifyUrlChangeListeners(this.prepareExternalUrl(Gt+b(hi)),gn)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Gt=0){this._locationStrategy.historyGo?.(Gt)}onUrlChange(Gt){return this._urlChangeListeners.push(Gt),this._urlChangeSubscription??=this.subscribe(hi=>{this._notifyUrlChangeListeners(hi.url,hi.state)}),()=>{const hi=this._urlChangeListeners.indexOf(Gt);this._urlChangeListeners.splice(hi,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Gt="",hi){this._urlChangeListeners.forEach(gn=>gn(Gt,hi))}subscribe(Gt,hi,gn){return this._subject.subscribe({next:Gt,error:hi,complete:gn})}static#e=this.normalizeQueryParams=b;static#t=this.joinWithSlash=h;static#i=this.stripTrailingSlash=s;static#n=this.\u0275fac=function(hi){return new(hi||ut)(r.KVO(O))};static#r=this.\u0275prov=r.jDH({token:ut,factory:()=>function x(){return new I((0,r.KVO)(O))}(),providedIn:"root"})}return ut})();function C(ut){return ut.replace(/\/index.html$/,"")}const Y={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var Q=function(ut){return ut[ut.Decimal=0]="Decimal",ut[ut.Percent=1]="Percent",ut[ut.Currency=2]="Currency",ut[ut.Scientific=3]="Scientific",ut}(Q||{}),ie=function(ut){return ut[ut.Format=0]="Format",ut[ut.Standalone=1]="Standalone",ut}(ie||{}),ee=function(ut){return ut[ut.Narrow=0]="Narrow",ut[ut.Abbreviated=1]="Abbreviated",ut[ut.Wide=2]="Wide",ut[ut.Short=3]="Short",ut}(ee||{}),re=function(ut){return ut[ut.Short=0]="Short",ut[ut.Medium=1]="Medium",ut[ut.Long=2]="Long",ut[ut.Full=3]="Full",ut}(re||{});const ne={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function z(ut,Mi){return tt((0,r.H5H)(ut)[r.KH2.DateFormat],Mi)}function X(ut,Mi){return tt((0,r.H5H)(ut)[r.KH2.TimeFormat],Mi)}function q(ut,Mi){return tt((0,r.H5H)(ut)[r.KH2.DateTimeFormat],Mi)}function ye(ut,Mi){const Gt=(0,r.H5H)(ut),hi=Gt[r.KH2.NumberSymbols][Mi];if(typeof hi>"u"){if(Mi===ne.CurrencyDecimal)return Gt[r.KH2.NumberSymbols][ne.Decimal];if(Mi===ne.CurrencyGroup)return Gt[r.KH2.NumberSymbols][ne.Group]}return hi}function xe(ut,Mi){return(0,r.H5H)(ut)[r.KH2.NumberFormats][Mi]}function he(ut){return(0,r.uq$)(ut)}function de(ut){if(!ut[r.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${ut[r.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function tt(ut,Mi){for(let Gt=Mi;Gt>-1;Gt--)if(typeof ut[Gt]<"u")return ut[Gt];throw new Error("Locale data API: locale data undefined")}function vt(ut){const[Mi,Gt]=ut.split(":");return{hours:+Mi,minutes:+Gt}}function Xt(ut,Mi,Gt="en"){const hi=function Ie(ut){return(0,r.H5H)(ut)[r.KH2.Currencies]}(Gt)[ut]||Y[ut]||[],gn=hi[1];return"narrow"===Mi&&"string"==typeof gn?gn:hi[0]||ut}const Et=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Lt={},wt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Mt=function(ut){return ut[ut.Short=0]="Short",ut[ut.ShortGMT=1]="ShortGMT",ut[ut.Long=2]="Long",ut[ut.Extended=3]="Extended",ut}(Mt||{}),Ge=function(ut){return ut[ut.FullYear=0]="FullYear",ut[ut.Month=1]="Month",ut[ut.Date=2]="Date",ut[ut.Hours=3]="Hours",ut[ut.Minutes=4]="Minutes",ut[ut.Seconds=5]="Seconds",ut[ut.FractionalSeconds=6]="FractionalSeconds",ut[ut.Day=7]="Day",ut}(Ge||{}),ot=function(ut){return ut[ut.DayPeriods=0]="DayPeriods",ut[ut.Days=1]="Days",ut[ut.Months=2]="Months",ut[ut.Eras=3]="Eras",ut}(ot||{});function Tt(ut,Mi,Gt,hi){let gn=function Vt(ut){if(bi(ut))return ut;if("number"==typeof ut&&!isNaN(ut))return new Date(ut);if("string"==typeof ut){if(ut=ut.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ut)){const[gn,rr=1,Tr=1]=ut.split("-").map(Da=>+Da);return jt(gn,rr-1,Tr)}const Gt=parseFloat(ut);if(!isNaN(ut-Gt))return new Date(Gt);let hi;if(hi=ut.match(Et))return function ci(ut){const Mi=new Date(0);let Gt=0,hi=0;const gn=ut[8]?Mi.setUTCFullYear:Mi.setFullYear,rr=ut[8]?Mi.setUTCHours:Mi.setHours;ut[9]&&(Gt=Number(ut[9]+ut[10]),hi=Number(ut[9]+ut[11])),gn.call(Mi,Number(ut[1]),Number(ut[2])-1,Number(ut[3]));const Tr=Number(ut[4]||0)-Gt,Da=Number(ut[5]||0)-hi,Ca=Number(ut[6]||0),ts=Math.floor(1e3*parseFloat("0."+(ut[7]||0)));return rr.call(Mi,Tr,Da,Ca,ts),Mi}(hi)}const Mi=new Date(ut);if(!bi(Mi))throw new Error(`Unable to convert "${ut}" into a date`);return Mi}(ut);Mi=li(Gt,Mi)||Mi;let Da,Tr=[];for(;Mi;){if(Da=wt.exec(Mi),!Da){Tr.push(Mi);break}{Tr=Tr.concat(Da.slice(1));const zn=Tr.pop();if(!zn)break;Mi=zn}}let Ca=gn.getTimezoneOffset();hi&&(Ca=pt(hi,Ca),gn=function Wt(ut,Mi,Gt){const hi=Gt?-1:1,gn=ut.getTimezoneOffset();return function st(ut,Mi){return(ut=new Date(ut.getTime())).setMinutes(ut.getMinutes()+Mi),ut}(ut,hi*(pt(Mi,gn)-gn))}(gn,hi,!0));let ts="";return Tr.forEach(zn=>{const bo=function yt(ut){if(It[ut])return It[ut];let Mi;switch(ut){case"G":case"GG":case"GGG":Mi=Ti(ot.Eras,ee.Abbreviated);break;case"GGGG":Mi=Ti(ot.Eras,ee.Wide);break;case"GGGGG":Mi=Ti(ot.Eras,ee.Narrow);break;case"y":Mi=Ht(Ge.FullYear,1,0,!1,!0);break;case"yy":Mi=Ht(Ge.FullYear,2,0,!0,!0);break;case"yyy":Mi=Ht(Ge.FullYear,3,0,!1,!0);break;case"yyyy":Mi=Ht(Ge.FullYear,4,0,!1,!0);break;case"Y":Mi=Ut(1);break;case"YY":Mi=Ut(2,!0);break;case"YYY":Mi=Ut(3);break;case"YYYY":Mi=Ut(4);break;case"M":case"L":Mi=Ht(Ge.Month,1,1);break;case"MM":case"LL":Mi=Ht(Ge.Month,2,1);break;case"MMM":Mi=Ti(ot.Months,ee.Abbreviated);break;case"MMMM":Mi=Ti(ot.Months,ee.Wide);break;case"MMMMM":Mi=Ti(ot.Months,ee.Narrow);break;case"LLL":Mi=Ti(ot.Months,ee.Abbreviated,ie.Standalone);break;case"LLLL":Mi=Ti(ot.Months,ee.Wide,ie.Standalone);break;case"LLLLL":Mi=Ti(ot.Months,ee.Narrow,ie.Standalone);break;case"w":Mi=Qi(1);break;case"ww":Mi=Qi(2);break;case"W":Mi=Qi(1,!0);break;case"d":Mi=Ht(Ge.Date,1);break;case"dd":Mi=Ht(Ge.Date,2);break;case"c":case"cc":Mi=Ht(Ge.Day,1);break;case"ccc":Mi=Ti(ot.Days,ee.Abbreviated,ie.Standalone);break;case"cccc":Mi=Ti(ot.Days,ee.Wide,ie.Standalone);break;case"ccccc":Mi=Ti(ot.Days,ee.Narrow,ie.Standalone);break;case"cccccc":Mi=Ti(ot.Days,ee.Short,ie.Standalone);break;case"E":case"EE":case"EEE":Mi=Ti(ot.Days,ee.Abbreviated);break;case"EEEE":Mi=Ti(ot.Days,ee.Wide);break;case"EEEEE":Mi=Ti(ot.Days,ee.Narrow);break;case"EEEEEE":Mi=Ti(ot.Days,ee.Short);break;case"a":case"aa":case"aaa":Mi=Ti(ot.DayPeriods,ee.Abbreviated);break;case"aaaa":Mi=Ti(ot.DayPeriods,ee.Wide);break;case"aaaaa":Mi=Ti(ot.DayPeriods,ee.Narrow);break;case"b":case"bb":case"bbb":Mi=Ti(ot.DayPeriods,ee.Abbreviated,ie.Standalone,!0);break;case"bbbb":Mi=Ti(ot.DayPeriods,ee.Wide,ie.Standalone,!0);break;case"bbbbb":Mi=Ti(ot.DayPeriods,ee.Narrow,ie.Standalone,!0);break;case"B":case"BB":case"BBB":Mi=Ti(ot.DayPeriods,ee.Abbreviated,ie.Format,!0);break;case"BBBB":Mi=Ti(ot.DayPeriods,ee.Wide,ie.Format,!0);break;case"BBBBB":Mi=Ti(ot.DayPeriods,ee.Narrow,ie.Format,!0);break;case"h":Mi=Ht(Ge.Hours,1,-12);break;case"hh":Mi=Ht(Ge.Hours,2,-12);break;case"H":Mi=Ht(Ge.Hours,1);break;case"HH":Mi=Ht(Ge.Hours,2);break;case"m":Mi=Ht(Ge.Minutes,1);break;case"mm":Mi=Ht(Ge.Minutes,2);break;case"s":Mi=Ht(Ge.Seconds,1);break;case"ss":Mi=Ht(Ge.Seconds,2);break;case"S":Mi=Ht(Ge.FractionalSeconds,1);break;case"SS":Mi=Ht(Ge.FractionalSeconds,2);break;case"SSS":Mi=Ht(Ge.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Mi=wi(Mt.Short);break;case"ZZZZZ":Mi=wi(Mt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Mi=wi(Mt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Mi=wi(Mt.Long);break;default:return null}return It[ut]=Mi,Mi}(zn);ts+=bo?bo(gn,Gt,Ca):"''"===zn?"'":zn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ts}function jt(ut,Mi,Gt){const hi=new Date(0);return hi.setFullYear(ut,Mi,Gt),hi.setHours(0,0,0),hi}function li(ut,Mi){const Gt=function be(ut){return(0,r.H5H)(ut)[r.KH2.LocaleId]}(ut);if(Lt[Gt]??={},Lt[Gt][Mi])return Lt[Gt][Mi];let hi="";switch(Mi){case"shortDate":hi=z(ut,re.Short);break;case"mediumDate":hi=z(ut,re.Medium);break;case"longDate":hi=z(ut,re.Long);break;case"fullDate":hi=z(ut,re.Full);break;case"shortTime":hi=X(ut,re.Short);break;case"mediumTime":hi=X(ut,re.Medium);break;case"longTime":hi=X(ut,re.Long);break;case"fullTime":hi=X(ut,re.Full);break;case"short":const gn=li(ut,"shortTime"),rr=li(ut,"shortDate");hi=an(q(ut,re.Short),[gn,rr]);break;case"medium":const Tr=li(ut,"mediumTime"),Da=li(ut,"mediumDate");hi=an(q(ut,re.Medium),[Tr,Da]);break;case"long":const Ca=li(ut,"longTime"),ts=li(ut,"longDate");hi=an(q(ut,re.Long),[Ca,ts]);break;case"full":const zn=li(ut,"fullTime"),bo=li(ut,"fullDate");hi=an(q(ut,re.Full),[zn,bo])}return hi&&(Lt[Gt][Mi]=hi),hi}function an(ut,Mi){return Mi&&(ut=ut.replace(/\{([^}]+)}/g,function(Gt,hi){return null!=Mi&&hi in Mi?Mi[hi]:Gt})),ut}function xi(ut,Mi,Gt="-",hi,gn){let rr="";(ut<0||gn&&ut<=0)&&(gn?ut=1-ut:(ut=-ut,rr=Gt));let Tr=String(ut);for(;Tr.length<Mi;)Tr="0"+Tr;return hi&&(Tr=Tr.slice(Tr.length-Mi)),rr+Tr}function Ht(ut,Mi,Gt=0,hi=!1,gn=!1){return function(rr,Tr){let Da=function gi(ut,Mi){switch(ut){case Ge.FullYear:return Mi.getFullYear();case Ge.Month:return Mi.getMonth();case Ge.Date:return Mi.getDate();case Ge.Hours:return Mi.getHours();case Ge.Minutes:return Mi.getMinutes();case Ge.Seconds:return Mi.getSeconds();case Ge.FractionalSeconds:return Mi.getMilliseconds();case Ge.Day:return Mi.getDay();default:throw new Error(`Unknown DateType value "${ut}".`)}}(ut,rr);if((Gt>0||Da>-Gt)&&(Da+=Gt),ut===Ge.Hours)0===Da&&-12===Gt&&(Da=12);else if(ut===Ge.FractionalSeconds)return function Je(ut,Mi){return xi(ut,3).substring(0,Mi)}(Da,Mi);const Ca=ye(Tr,ne.MinusSign);return xi(Da,Mi,Ca,hi,gn)}}function Ti(ut,Mi,Gt=ie.Format,hi=!1){return function(gn,rr){return function ni(ut,Mi,Gt,hi,gn,rr){switch(Gt){case ot.Months:return function we(ut,Mi,Gt){const hi=(0,r.H5H)(ut),rr=tt([hi[r.KH2.MonthsFormat],hi[r.KH2.MonthsStandalone]],Mi);return tt(rr,Gt)}(Mi,gn,hi)[ut.getMonth()];case ot.Days:return function me(ut,Mi,Gt){const hi=(0,r.H5H)(ut),rr=tt([hi[r.KH2.DaysFormat],hi[r.KH2.DaysStandalone]],Mi);return tt(rr,Gt)}(Mi,gn,hi)[ut.getDay()];case ot.DayPeriods:const Tr=ut.getHours(),Da=ut.getMinutes();if(rr){const ts=function pe(ut){const Mi=(0,r.H5H)(ut);return de(Mi),(Mi[r.KH2.ExtraData][2]||[]).map(hi=>"string"==typeof hi?vt(hi):[vt(hi[0]),vt(hi[1])])}(Mi),zn=function Be(ut,Mi,Gt){const hi=(0,r.H5H)(ut);de(hi);const rr=tt([hi[r.KH2.ExtraData][0],hi[r.KH2.ExtraData][1]],Mi)||[];return tt(rr,Gt)||[]}(Mi,gn,hi),bo=ts.findIndex(Ss=>{if(Array.isArray(Ss)){const[wa,Fo]=Ss,Ia=Tr>=wa.hours&&Da>=wa.minutes,vr=Tr<Fo.hours||Tr===Fo.hours&&Da<Fo.minutes;if(wa.hours<Fo.hours){if(Ia&&vr)return!0}else if(Ia||vr)return!0}else if(Ss.hours===Tr&&Ss.minutes===Da)return!0;return!1});if(-1!==bo)return zn[bo]}return function oe(ut,Mi,Gt){const hi=(0,r.H5H)(ut),rr=tt([hi[r.KH2.DayPeriodsFormat],hi[r.KH2.DayPeriodsStandalone]],Mi);return tt(rr,Gt)}(Mi,gn,hi)[Tr<12?0:1];case ot.Eras:return function N(ut,Mi){return tt((0,r.H5H)(ut)[r.KH2.Eras],Mi)}(Mi,hi)[ut.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Gt}`)}}(gn,rr,ut,Mi,Gt,hi)}}function wi(ut){return function(Mi,Gt,hi){const gn=-1*hi,rr=ye(Gt,ne.MinusSign),Tr=gn>0?Math.floor(gn/60):Math.ceil(gn/60);switch(ut){case Mt.Short:return(gn>=0?"+":"")+xi(Tr,2,rr)+xi(Math.abs(gn%60),2,rr);case Mt.ShortGMT:return"GMT"+(gn>=0?"+":"")+xi(Tr,1,rr);case Mt.Long:return"GMT"+(gn>=0?"+":"")+xi(Tr,2,rr)+":"+xi(Math.abs(gn%60),2,rr);case Mt.Extended:return 0===hi?"Z":(gn>=0?"+":"")+xi(Tr,2,rr)+":"+xi(Math.abs(gn%60),2,rr);default:throw new Error(`Unknown zone width "${ut}"`)}}}const ui=0,cn=4;function Xi(ut){const Mi=ut.getDay(),Gt=0===Mi?-3:cn-Mi;return jt(ut.getFullYear(),ut.getMonth(),ut.getDate()+Gt)}function Qi(ut,Mi=!1){return function(Gt,hi){let gn;if(Mi){const rr=new Date(Gt.getFullYear(),Gt.getMonth(),1).getDay()-1,Tr=Gt.getDate();gn=1+Math.floor((Tr+rr)/7)}else{const rr=Xi(Gt),Tr=function Ui(ut){const Mi=jt(ut,ui,1).getDay();return jt(ut,0,1+(Mi<=cn?cn:cn+7)-Mi)}(rr.getFullYear()),Da=rr.getTime()-Tr.getTime();gn=1+Math.round(Da/6048e5)}return xi(gn,ut,ye(hi,ne.MinusSign))}}function Ut(ut,Mi=!1){return function(Gt,hi){return xi(Xi(Gt).getFullYear(),ut,ye(hi,ne.MinusSign),Mi)}}const It={};function pt(ut,Mi){ut=ut.replace(/:/g,"");const Gt=Date.parse("Jan 01, 1970 00:00:00 "+ut)/6e4;return isNaN(Gt)?Mi:Gt}function bi(ut){return ut instanceof Date&&!isNaN(ut.valueOf())}const gt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ai=22,kt=".",mi="0",Kt=";",qi=",",Wi="#";function ar(ut,Mi,Gt,hi,gn,rr,Tr=!1){let Da="",Ca=!1;if(isFinite(ut)){let ts=function ja(ut){let hi,gn,rr,Tr,Da,Mi=Math.abs(ut)+"",Gt=0;for((gn=Mi.indexOf(kt))>-1&&(Mi=Mi.replace(kt,"")),(rr=Mi.search(/e/i))>0?(gn<0&&(gn=rr),gn+=+Mi.slice(rr+1),Mi=Mi.substring(0,rr)):gn<0&&(gn=Mi.length),rr=0;Mi.charAt(rr)===mi;rr++);if(rr===(Da=Mi.length))hi=[0],gn=1;else{for(Da--;Mi.charAt(Da)===mi;)Da--;for(gn-=rr,hi=[],Tr=0;rr<=Da;rr++,Tr++)hi[Tr]=Number(Mi.charAt(rr))}return gn>ai&&(hi=hi.splice(0,ai-1),Gt=gn-1,gn=1),{digits:hi,exponent:Gt,integerLen:gn}}(ut);Tr&&(ts=function no(ut){if(0===ut.digits[0])return ut;const Mi=ut.digits.length-ut.integerLen;return ut.exponent?ut.exponent+=2:(0===Mi?ut.digits.push(0,0):1===Mi&&ut.digits.push(0),ut.integerLen+=2),ut}(ts));let zn=Mi.minInt,bo=Mi.minFrac,Ss=Mi.maxFrac;if(rr){const oa=rr.match(gt);if(null===oa)throw new Error(`${rr} is not a valid digit info`);const zs=oa[1],Wn=oa[3],nd=oa[5];null!=zs&&(zn=uo(zs)),null!=Wn&&(bo=uo(Wn)),null!=nd?Ss=uo(nd):null!=Wn&&bo>Ss&&(Ss=bo)}!function Na(ut,Mi,Gt){if(Mi>Gt)throw new Error(`The minimum number of digits after fraction (${Mi}) is higher than the maximum (${Gt}).`);let hi=ut.digits,gn=hi.length-ut.integerLen;const rr=Math.min(Math.max(Mi,gn),Gt);let Tr=rr+ut.integerLen,Da=hi[Tr];if(Tr>0){hi.splice(Math.max(ut.integerLen,Tr));for(let bo=Tr;bo<hi.length;bo++)hi[bo]=0}else{gn=Math.max(0,gn),ut.integerLen=1,hi.length=Math.max(1,Tr=rr+1),hi[0]=0;for(let bo=1;bo<Tr;bo++)hi[bo]=0}if(Da>=5)if(Tr-1<0){for(let bo=0;bo>Tr;bo--)hi.unshift(0),ut.integerLen++;hi.unshift(1),ut.integerLen++}else hi[Tr-1]++;for(;gn<Math.max(0,rr);gn++)hi.push(0);let Ca=0!==rr;const ts=Mi+ut.integerLen,zn=hi.reduceRight(function(bo,Ss,wa,Fo){return Fo[wa]=(Ss+=bo)<10?Ss:Ss-10,Ca&&(0===Fo[wa]&&wa>=ts?Fo.pop():Ca=!1),Ss>=10?1:0},0);zn&&(hi.unshift(zn),ut.integerLen++)}(ts,bo,Ss);let wa=ts.digits,Fo=ts.integerLen;const Ia=ts.exponent;let vr=[];for(Ca=wa.every(oa=>!oa);Fo<zn;Fo++)wa.unshift(0);for(;Fo<0;Fo++)wa.unshift(0);Fo>0?vr=wa.splice(Fo,wa.length):(vr=wa,wa=[0]);const ba=[];for(wa.length>=Mi.lgSize&&ba.unshift(wa.splice(-Mi.lgSize,wa.length).join(""));wa.length>Mi.gSize;)ba.unshift(wa.splice(-Mi.gSize,wa.length).join(""));wa.length&&ba.unshift(wa.join("")),Da=ba.join(ye(Gt,hi)),vr.length&&(Da+=ye(Gt,gn)+vr.join("")),Ia&&(Da+=ye(Gt,ne.Exponential)+"+"+Ia)}else Da=ye(Gt,ne.Infinity);return Da=ut<0&&!Ca?Mi.negPre+Da+Mi.negSuf:Mi.posPre+Da+Mi.posSuf,Da}function sa(ut,Mi,Gt){return ar(ut,Pr(xe(Mi,Q.Decimal),ye(Mi,ne.MinusSign)),Mi,ne.Group,ne.Decimal,Gt)}function Pr(ut,Mi="-"){const Gt={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},hi=ut.split(Kt),gn=hi[0],rr=hi[1],Tr=-1!==gn.indexOf(kt)?gn.split(kt):[gn.substring(0,gn.lastIndexOf(mi)+1),gn.substring(gn.lastIndexOf(mi)+1)],Da=Tr[0],Ca=Tr[1]||"";Gt.posPre=Da.substring(0,Da.indexOf(Wi));for(let zn=0;zn<Ca.length;zn++){const bo=Ca.charAt(zn);bo===mi?Gt.minFrac=Gt.maxFrac=zn+1:bo===Wi?Gt.maxFrac=zn+1:Gt.posSuf+=bo}const ts=Da.split(qi);if(Gt.gSize=ts[1]?ts[1].length:0,Gt.lgSize=ts[2]||ts[1]?(ts[2]||ts[1]).length:0,rr){const zn=gn.length-Gt.posPre.length-Gt.posSuf.length,bo=rr.indexOf(Wi);Gt.negPre=rr.substring(0,bo).replace(/'/g,""),Gt.negSuf=rr.slice(bo+zn).replace(/'/g,"")}else Gt.negPre=Mi+Gt.posPre,Gt.negSuf=Gt.posSuf;return Gt}function uo(ut){const Mi=parseInt(ut);if(isNaN(Mi))throw new Error("Invalid integer literal when parsing "+ut);return Mi}function _t(ut,Mi,Gt){return(0,r.XSP)(ut,Mi,Gt)}function si(ut,Mi){Mi=encodeURIComponent(Mi);for(const Gt of ut.split(";")){const hi=Gt.indexOf("="),[gn,rr]=-1==hi?[Gt,""]:[Gt.slice(0,hi),Gt.slice(hi+1)];if(gn.trim()===Mi)return decodeURIComponent(rr)}return null}const Dt=/\s+/,Pi=[];let ln=(()=>{class ut{constructor(Gt,hi){this._ngEl=Gt,this._renderer=hi,this.initialClasses=Pi,this.stateMap=new Map}set klass(Gt){this.initialClasses=null!=Gt?Gt.trim().split(Dt):Pi}set ngClass(Gt){this.rawClass="string"==typeof Gt?Gt.trim().split(Dt):Gt}ngDoCheck(){for(const hi of this.initialClasses)this._updateState(hi,!0);const Gt=this.rawClass;if(Array.isArray(Gt)||Gt instanceof Set)for(const hi of Gt)this._updateState(hi,!0);else if(null!=Gt)for(const hi of Object.keys(Gt))this._updateState(hi,!!Gt[hi]);this._applyStateDiff()}_updateState(Gt,hi){const gn=this.stateMap.get(Gt);void 0!==gn?(gn.enabled!==hi&&(gn.changed=!0,gn.enabled=hi),gn.touched=!0):this.stateMap.set(Gt,{enabled:hi,changed:!0,touched:!0})}_applyStateDiff(){for(const Gt of this.stateMap){const hi=Gt[0],gn=Gt[1];gn.changed?(this._toggleClass(hi,gn.enabled),gn.changed=!1):gn.touched||(gn.enabled&&this._toggleClass(hi,!1),this.stateMap.delete(hi)),gn.touched=!1}}_toggleClass(Gt,hi){(Gt=Gt.trim()).length>0&&Gt.split(Dt).forEach(gn=>{hi?this._renderer.addClass(this._ngEl.nativeElement,gn):this._renderer.removeClass(this._ngEl.nativeElement,gn)})}static#e=this.\u0275fac=function(hi){return new(hi||ut)(r.rXU(r.aKT),r.rXU(r.sFG))};static#t=this.\u0275dir=r.FsC({type:ut,selectors:[["","ngClass",""]],inputs:{klass:[r.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return ut})();class Gr{constructor(Mi,Gt,hi,gn){this.$implicit=Mi,this.ngForOf=Gt,this.index=hi,this.count=gn}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ct=(()=>{class ut{set ngForOf(Gt){this._ngForOf=Gt,this._ngForOfDirty=!0}set ngForTrackBy(Gt){this._trackByFn=Gt}get ngForTrackBy(){return this._trackByFn}constructor(Gt,hi,gn){this._viewContainer=Gt,this._template=hi,this._differs=gn,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(Gt){Gt&&(this._template=Gt)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Gt=this._ngForOf;!this._differ&&Gt&&(this._differ=this._differs.find(Gt).create(this.ngForTrackBy))}if(this._differ){const Gt=this._differ.diff(this._ngForOf);Gt&&this._applyChanges(Gt)}}_applyChanges(Gt){const hi=this._viewContainer;Gt.forEachOperation((gn,rr,Tr)=>{if(null==gn.previousIndex)hi.createEmbeddedView(this._template,new Gr(gn.item,this._ngForOf,-1,-1),null===Tr?void 0:Tr);else if(null==Tr)hi.remove(null===rr?void 0:rr);else if(null!==rr){const Da=hi.get(rr);hi.move(Da,Tr),ri(Da,gn)}});for(let gn=0,rr=hi.length;gn<rr;gn++){const Da=hi.get(gn).context;Da.index=gn,Da.count=rr,Da.ngForOf=this._ngForOf}Gt.forEachIdentityChange(gn=>{ri(hi.get(gn.currentIndex),gn)})}static ngTemplateContextGuard(Gt,hi){return!0}static#e=this.\u0275fac=function(hi){return new(hi||ut)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(r._q3))};static#t=this.\u0275dir=r.FsC({type:ut,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return ut})();function ri(ut,Mi){ut.context.$implicit=Mi.item}let Ri=(()=>{class ut{constructor(Gt,hi){this._viewContainer=Gt,this._context=new ji,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=hi}set ngIf(Gt){this._context.$implicit=this._context.ngIf=Gt,this._updateView()}set ngIfThen(Gt){wn("ngIfThen",Gt),this._thenTemplateRef=Gt,this._thenViewRef=null,this._updateView()}set ngIfElse(Gt){wn("ngIfElse",Gt),this._elseTemplateRef=Gt,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Gt,hi){return!0}static#e=this.\u0275fac=function(hi){return new(hi||ut)(r.rXU(r.c1b),r.rXU(r.C4Q))};static#t=this.\u0275dir=r.FsC({type:ut,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return ut})();class ji{constructor(){this.$implicit=null,this.ngIf=null}}function wn(ut,Mi){if(Mi&&!Mi.createEmbeddedView)throw new Error(`${ut} must be a TemplateRef, but received '${(0,r.Tbb)(Mi)}'.`)}class En{constructor(Mi,Gt){this._viewContainerRef=Mi,this._templateRef=Gt,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Mi){Mi&&!this._created?this.create():!Mi&&this._created&&this.destroy()}}let _r=(()=>{class ut{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Gt){this._ngSwitch=Gt,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Gt){this._defaultViews.push(Gt)}_matchCase(Gt){const hi=Gt===this._ngSwitch;return this._lastCasesMatched||=hi,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),hi}_updateDefaultCases(Gt){if(this._defaultViews.length>0&&Gt!==this._defaultUsed){this._defaultUsed=Gt;for(const hi of this._defaultViews)hi.enforceState(Gt)}}static#e=this.\u0275fac=function(hi){return new(hi||ut)};static#t=this.\u0275dir=r.FsC({type:ut,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return ut})(),ha=(()=>{class ut{constructor(Gt,hi,gn){this.ngSwitch=gn,gn._addCase(),this._view=new En(Gt,hi)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(hi){return new(hi||ut)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(_r,9))};static#t=this.\u0275dir=r.FsC({type:ut,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return ut})(),ia=(()=>{class ut{constructor(Gt){this._viewContainerRef=Gt,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Gt){if(this._shouldRecreateView(Gt)){const hi=this._viewContainerRef;if(this._viewRef&&hi.remove(hi.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const gn=this._createContextForwardProxy();this._viewRef=hi.createEmbeddedView(this.ngTemplateOutlet,gn,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(Gt){return!!Gt.ngTemplateOutlet||!!Gt.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(Gt,hi,gn)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,hi,gn),get:(Gt,hi,gn)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,hi,gn)}})}static#e=this.\u0275fac=function(hi){return new(hi||ut)(r.rXU(r.c1b))};static#t=this.\u0275dir=r.FsC({type:ut,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[r.OA$]})}return ut})();function mo(ut,Mi){return new r.wOt(2100,!1)}class fl{createSubscription(Mi,Gt){return(0,r.O8t)(()=>Mi.subscribe({next:Gt,error:hi=>{throw hi}}))}dispose(Mi){(0,r.O8t)(()=>Mi.unsubscribe())}}class Jl{createSubscription(Mi,Gt){return Mi.then(Gt,hi=>{throw hi})}dispose(Mi){}}const zo=new Jl,Ao=new fl;let Ha=(()=>{class ut{constructor(Gt){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Gt}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Gt){if(!this._obj){if(Gt)try{this.markForCheckOnValueUpdate=!1,this._subscribe(Gt)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return Gt!==this._obj?(this._dispose(),this.transform(Gt)):this._latestValue}_subscribe(Gt){this._obj=Gt,this._strategy=this._selectStrategy(Gt),this._subscription=this._strategy.createSubscription(Gt,hi=>this._updateLatestValue(Gt,hi))}_selectStrategy(Gt){if((0,r.jNT)(Gt))return zo;if((0,r.zjR)(Gt))return Ao;throw mo()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Gt,hi){Gt===this._obj&&(this._latestValue=hi,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(hi){return new(hi||ut)(r.rXU(r.gRc,16))};static#t=this.\u0275pipe=r.EJ8({name:"async",type:ut,pure:!1,standalone:!0})}return ut})();const Xd=new r.nKC(""),rs=new r.nKC("");let Ho=(()=>{class ut{constructor(Gt,hi,gn){this.locale=Gt,this.defaultTimezone=hi,this.defaultOptions=gn}transform(Gt,hi,gn,rr){if(null==Gt||""===Gt||Gt!=Gt)return null;try{return Tt(Gt,hi??this.defaultOptions?.dateFormat??"mediumDate",rr||this.locale,gn??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Tr){throw mo()}}static#e=this.\u0275fac=function(hi){return new(hi||ut)(r.rXU(r.xe9,16),r.rXU(Xd,24),r.rXU(rs,24))};static#t=this.\u0275pipe=r.EJ8({name:"date",type:ut,pure:!0,standalone:!0})}return ut})(),Bt=(()=>{class ut{constructor(Gt){this._locale=Gt}transform(Gt,hi,gn){if(!Sn(Gt))return null;gn||=this._locale;try{return sa(Dn(Gt),gn,hi)}catch(rr){throw mo()}}static#e=this.\u0275fac=function(hi){return new(hi||ut)(r.rXU(r.xe9,16))};static#t=this.\u0275pipe=r.EJ8({name:"number",type:ut,pure:!0,standalone:!0})}return ut})(),Ni=(()=>{class ut{constructor(Gt,hi="USD"){this._locale=Gt,this._defaultCurrencyCode=hi}transform(Gt,hi=this._defaultCurrencyCode,gn="symbol",rr,Tr){if(!Sn(Gt))return null;Tr||=this._locale,"boolean"==typeof gn&&(gn=gn?"symbol":"code");let Da=hi||this._defaultCurrencyCode;"code"!==gn&&(Da="symbol"===gn||"symbol-narrow"===gn?Xt(Da,"symbol"===gn?"wide":"narrow",Tr):gn);try{return function na(ut,Mi,Gt,hi,gn){const Tr=Pr(xe(Mi,Q.Currency),ye(Mi,ne.MinusSign));return Tr.minFrac=function Qe(ut){let Mi;const Gt=Y[ut];return Gt&&(Mi=Gt[2]),"number"==typeof Mi?Mi:2}(hi),Tr.maxFrac=Tr.minFrac,ar(ut,Tr,Mi,ne.CurrencyGroup,ne.CurrencyDecimal,gn).replace("\xa4",Gt).replace("\xa4","").trim()}(Dn(Gt),Tr,Da,hi,rr)}catch(Ca){throw mo()}}static#e=this.\u0275fac=function(hi){return new(hi||ut)(r.rXU(r.xe9,16),r.rXU(r.Ocv,16))};static#t=this.\u0275pipe=r.EJ8({name:"currency",type:ut,pure:!0,standalone:!0})}return ut})();function Sn(ut){return!(null==ut||""===ut||ut!=ut)}function Dn(ut){if("string"==typeof ut&&!isNaN(Number(ut)-parseFloat(ut)))return Number(ut);if("number"!=typeof ut)throw new Error(`${ut} is not a number`);return ut}let xr=(()=>{class ut{static#e=this.\u0275fac=function(hi){return new(hi||ut)};static#t=this.\u0275mod=r.$C({type:ut});static#i=this.\u0275inj=r.G2t({})}return ut})();const Pa="browser",va="server";function ga(ut){return ut===Pa}function Lo(ut){return ut===va}let Ml=(()=>{class ut{static#e=this.\u0275prov=(0,r.jDH)({token:ut,providedIn:"root",factory:()=>ga((0,r.WQX)(r.Agw))?new gs((0,r.WQX)(R),window):new _s})}return ut})();class gs{constructor(Mi,Gt){this.document=Mi,this.window=Gt,this.offset=()=>[0,0]}setOffset(Mi){this.offset=Array.isArray(Mi)?()=>Mi:Mi}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(Mi){this.window.scrollTo(Mi[0],Mi[1])}scrollToAnchor(Mi){const Gt=function el(ut,Mi){const Gt=ut.getElementById(Mi)||ut.getElementsByName(Mi)[0];if(Gt)return Gt;if("function"==typeof ut.createTreeWalker&&ut.body&&"function"==typeof ut.body.attachShadow){const hi=ut.createTreeWalker(ut.body,NodeFilter.SHOW_ELEMENT);let gn=hi.currentNode;for(;gn;){const rr=gn.shadowRoot;if(rr){const Tr=rr.getElementById(Mi)||rr.querySelector(`[name="${Mi}"]`);if(Tr)return Tr}gn=hi.nextNode()}}return null}(this.document,Mi);Gt&&(this.scrollToElement(Gt),Gt.focus())}setHistoryScrollRestoration(Mi){this.window.history.scrollRestoration=Mi}scrollToElement(Mi){const Gt=Mi.getBoundingClientRect(),hi=Gt.left+this.window.pageXOffset,gn=Gt.top+this.window.pageYOffset,rr=this.offset();this.window.scrollTo(hi-rr[0],gn-rr[1])}}class _s{setOffset(Mi){}getScrollPosition(){return[0,0]}scrollToPosition(Mi){}scrollToAnchor(Mi){}setHistoryScrollRestoration(Mi){}}class yl{}},21626:(ei,rt,D)=>{"use strict";D.d(rt,{JV:()=>b,Lr:()=>O,Qq:()=>z,a7:()=>pe,cS:()=>we,q1:()=>Kt,yz:()=>N}),D(10467);var d=D(54438),L=D(7673),j=D(71985),o=D(86648),E=D(70274),R=D(5964),m=D(96354),_=D(70980),v=D(25558),h=D(60177);class s{}class b{}class O{constructor(si){this.normalizedNames=new Map,this.lazyUpdate=null,si?"string"==typeof si?this.lazyInit=()=>{this.headers=new Map,si.split("\n").forEach(Dt=>{const Pi=Dt.indexOf(":");if(Pi>0){const ln=Dt.slice(0,Pi),An=ln.toLowerCase(),jn=Dt.slice(Pi+1).trim();this.maybeSetNormalizedName(ln,An),this.headers.has(An)?this.headers.get(An).push(jn):this.headers.set(An,[jn])}})}:typeof Headers<"u"&&si instanceof Headers?(this.headers=new Map,si.forEach((Dt,Pi)=>{this.setHeaderEntries(Pi,Dt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(si).forEach(([Dt,Pi])=>{this.setHeaderEntries(Dt,Pi)})}:this.headers=new Map}has(si){return this.init(),this.headers.has(si.toLowerCase())}get(si){this.init();const Dt=this.headers.get(si.toLowerCase());return Dt&&Dt.length>0?Dt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(si){return this.init(),this.headers.get(si.toLowerCase())||null}append(si,Dt){return this.clone({name:si,value:Dt,op:"a"})}set(si,Dt){return this.clone({name:si,value:Dt,op:"s"})}delete(si,Dt){return this.clone({name:si,value:Dt,op:"d"})}maybeSetNormalizedName(si,Dt){this.normalizedNames.has(Dt)||this.normalizedNames.set(Dt,si)}init(){this.lazyInit&&(this.lazyInit instanceof O?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(si=>this.applyUpdate(si)),this.lazyUpdate=null))}copyFrom(si){si.init(),Array.from(si.headers.keys()).forEach(Dt=>{this.headers.set(Dt,si.headers.get(Dt)),this.normalizedNames.set(Dt,si.normalizedNames.get(Dt))})}clone(si){const Dt=new O;return Dt.lazyInit=this.lazyInit&&this.lazyInit instanceof O?this.lazyInit:this,Dt.lazyUpdate=(this.lazyUpdate||[]).concat([si]),Dt}applyUpdate(si){const Dt=si.name.toLowerCase();switch(si.op){case"a":case"s":let Pi=si.value;if("string"==typeof Pi&&(Pi=[Pi]),0===Pi.length)return;this.maybeSetNormalizedName(si.name,Dt);const ln=("a"===si.op?this.headers.get(Dt):void 0)||[];ln.push(...Pi),this.headers.set(Dt,ln);break;case"d":const An=si.value;if(An){let jn=this.headers.get(Dt);if(!jn)return;jn=jn.filter(Gr=>-1===An.indexOf(Gr)),0===jn.length?(this.headers.delete(Dt),this.normalizedNames.delete(Dt)):this.headers.set(Dt,jn)}else this.headers.delete(Dt),this.normalizedNames.delete(Dt)}}setHeaderEntries(si,Dt){const Pi=(Array.isArray(Dt)?Dt:[Dt]).map(An=>An.toString()),ln=si.toLowerCase();this.headers.set(ln,Pi),this.maybeSetNormalizedName(si,ln)}forEach(si){this.init(),Array.from(this.normalizedNames.keys()).forEach(Dt=>si(this.normalizedNames.get(Dt),this.headers.get(Dt)))}}class f{encodeKey(si){return g(si)}encodeValue(si){return g(si)}decodeKey(si){return decodeURIComponent(si)}decodeValue(si){return decodeURIComponent(si)}}const I=/%(\d[a-f0-9])/gi,x={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function g(_t){return encodeURIComponent(_t).replace(I,(si,Dt)=>x[Dt]??si)}function C(_t){return`${_t}`}class F{constructor(si={}){if(this.updates=null,this.cloneFrom=null,this.encoder=si.encoder||new f,si.fromString){if(si.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function k(_t,si){const Dt=new Map;return _t.length>0&&_t.replace(/^\?/,"").split("&").forEach(ln=>{const An=ln.indexOf("="),[jn,Gr]=-1==An?[si.decodeKey(ln),""]:[si.decodeKey(ln.slice(0,An)),si.decodeValue(ln.slice(An+1))],ct=Dt.get(jn)||[];ct.push(Gr),Dt.set(jn,ct)}),Dt}(si.fromString,this.encoder)}else si.fromObject?(this.map=new Map,Object.keys(si.fromObject).forEach(Dt=>{const Pi=si.fromObject[Dt],ln=Array.isArray(Pi)?Pi.map(C):[C(Pi)];this.map.set(Dt,ln)})):this.map=null}has(si){return this.init(),this.map.has(si)}get(si){this.init();const Dt=this.map.get(si);return Dt?Dt[0]:null}getAll(si){return this.init(),this.map.get(si)||null}keys(){return this.init(),Array.from(this.map.keys())}append(si,Dt){return this.clone({param:si,value:Dt,op:"a"})}appendAll(si){const Dt=[];return Object.keys(si).forEach(Pi=>{const ln=si[Pi];Array.isArray(ln)?ln.forEach(An=>{Dt.push({param:Pi,value:An,op:"a"})}):Dt.push({param:Pi,value:ln,op:"a"})}),this.clone(Dt)}set(si,Dt){return this.clone({param:si,value:Dt,op:"s"})}delete(si,Dt){return this.clone({param:si,value:Dt,op:"d"})}toString(){return this.init(),this.keys().map(si=>{const Dt=this.encoder.encodeKey(si);return this.map.get(si).map(Pi=>Dt+"="+this.encoder.encodeValue(Pi)).join("&")}).filter(si=>""!==si).join("&")}clone(si){const Dt=new F({encoder:this.encoder});return Dt.cloneFrom=this.cloneFrom||this,Dt.updates=(this.updates||[]).concat(si),Dt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(si=>this.map.set(si,this.cloneFrom.map.get(si))),this.updates.forEach(si=>{switch(si.op){case"a":case"s":const Dt=("a"===si.op?this.map.get(si.param):void 0)||[];Dt.push(C(si.value)),this.map.set(si.param,Dt);break;case"d":if(void 0===si.value){this.map.delete(si.param);break}{let Pi=this.map.get(si.param)||[];const ln=Pi.indexOf(C(si.value));-1!==ln&&Pi.splice(ln,1),Pi.length>0?this.map.set(si.param,Pi):this.map.delete(si.param)}}}),this.cloneFrom=this.updates=null)}}class Q{constructor(){this.map=new Map}set(si,Dt){return this.map.set(si,Dt),this}get(si){return this.map.has(si)||this.map.set(si,si.defaultValue()),this.map.get(si)}delete(si){return this.map.delete(si),this}has(si){return this.map.has(si)}keys(){return this.map.keys()}}function ie(_t){return typeof ArrayBuffer<"u"&&_t instanceof ArrayBuffer}function ee(_t){return typeof Blob<"u"&&_t instanceof Blob}function re(_t){return typeof FormData<"u"&&_t instanceof FormData}class _e{constructor(si,Dt,Pi,ln){let An;if(this.url=Dt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=si.toUpperCase(),function se(_t){switch(_t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ln?(this.body=void 0!==Pi?Pi:null,An=ln):An=Pi,An&&(this.reportProgress=!!An.reportProgress,this.withCredentials=!!An.withCredentials,An.responseType&&(this.responseType=An.responseType),An.headers&&(this.headers=An.headers),An.context&&(this.context=An.context),An.params&&(this.params=An.params),this.transferCache=An.transferCache),this.headers??=new O,this.context??=new Q,this.params){const jn=this.params.toString();if(0===jn.length)this.urlWithParams=Dt;else{const Gr=Dt.indexOf("?");this.urlWithParams=Dt+(-1===Gr?"?":Gr<Dt.length-1?"&":"")+jn}}else this.params=new F,this.urlWithParams=Dt}serializeBody(){return null===this.body?null:"string"==typeof this.body||ie(this.body)||ee(this.body)||re(this.body)||function ne(_t){return typeof URLSearchParams<"u"&&_t instanceof URLSearchParams}(this.body)?this.body:this.body instanceof F?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||re(this.body)?null:ee(this.body)?this.body.type||null:ie(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof F?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(si={}){const Dt=si.method||this.method,Pi=si.url||this.url,ln=si.responseType||this.responseType,An=si.transferCache??this.transferCache,jn=void 0!==si.body?si.body:this.body,Gr=si.withCredentials??this.withCredentials,ct=si.reportProgress??this.reportProgress;let ri=si.headers||this.headers,Ci=si.params||this.params;const Ri=si.context??this.context;return void 0!==si.setHeaders&&(ri=Object.keys(si.setHeaders).reduce((ji,wn)=>ji.set(wn,si.setHeaders[wn]),ri)),si.setParams&&(Ci=Object.keys(si.setParams).reduce((ji,wn)=>ji.set(wn,si.setParams[wn]),Ci)),new _e(Dt,Pi,jn,{params:Ci,headers:ri,context:Ri,reportProgress:ct,responseType:ln,withCredentials:Gr,transferCache:An})}}var be=function(_t){return _t[_t.Sent=0]="Sent",_t[_t.UploadProgress=1]="UploadProgress",_t[_t.ResponseHeader=2]="ResponseHeader",_t[_t.DownloadProgress=3]="DownloadProgress",_t[_t.Response=4]="Response",_t[_t.User=5]="User",_t}(be||{});class oe{constructor(si,Dt=G.Ok,Pi="OK"){this.headers=si.headers||new O,this.status=void 0!==si.status?si.status:Dt,this.statusText=si.statusText||Pi,this.url=si.url||null,this.ok=this.status>=200&&this.status<300}}class me extends oe{constructor(si={}){super(si),this.type=be.ResponseHeader}clone(si={}){return new me({headers:si.headers||this.headers,status:void 0!==si.status?si.status:this.status,statusText:si.statusText||this.statusText,url:si.url||this.url||void 0})}}class we extends oe{constructor(si={}){super(si),this.type=be.Response,this.body=void 0!==si.body?si.body:null}clone(si={}){return new we({body:void 0!==si.body?si.body:this.body,headers:si.headers||this.headers,status:void 0!==si.status?si.status:this.status,statusText:si.statusText||this.statusText,url:si.url||this.url||void 0})}}class N extends oe{constructor(si){super(si,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${si.url||"(unknown url)"}`:`Http failure response for ${si.url||"(unknown url)"}: ${si.status} ${si.statusText}`,this.error=si.error||null}}var G=function(_t){return _t[_t.Continue=100]="Continue",_t[_t.SwitchingProtocols=101]="SwitchingProtocols",_t[_t.Processing=102]="Processing",_t[_t.EarlyHints=103]="EarlyHints",_t[_t.Ok=200]="Ok",_t[_t.Created=201]="Created",_t[_t.Accepted=202]="Accepted",_t[_t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",_t[_t.NoContent=204]="NoContent",_t[_t.ResetContent=205]="ResetContent",_t[_t.PartialContent=206]="PartialContent",_t[_t.MultiStatus=207]="MultiStatus",_t[_t.AlreadyReported=208]="AlreadyReported",_t[_t.ImUsed=226]="ImUsed",_t[_t.MultipleChoices=300]="MultipleChoices",_t[_t.MovedPermanently=301]="MovedPermanently",_t[_t.Found=302]="Found",_t[_t.SeeOther=303]="SeeOther",_t[_t.NotModified=304]="NotModified",_t[_t.UseProxy=305]="UseProxy",_t[_t.Unused=306]="Unused",_t[_t.TemporaryRedirect=307]="TemporaryRedirect",_t[_t.PermanentRedirect=308]="PermanentRedirect",_t[_t.BadRequest=400]="BadRequest",_t[_t.Unauthorized=401]="Unauthorized",_t[_t.PaymentRequired=402]="PaymentRequired",_t[_t.Forbidden=403]="Forbidden",_t[_t.NotFound=404]="NotFound",_t[_t.MethodNotAllowed=405]="MethodNotAllowed",_t[_t.NotAcceptable=406]="NotAcceptable",_t[_t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",_t[_t.RequestTimeout=408]="RequestTimeout",_t[_t.Conflict=409]="Conflict",_t[_t.Gone=410]="Gone",_t[_t.LengthRequired=411]="LengthRequired",_t[_t.PreconditionFailed=412]="PreconditionFailed",_t[_t.PayloadTooLarge=413]="PayloadTooLarge",_t[_t.UriTooLong=414]="UriTooLong",_t[_t.UnsupportedMediaType=415]="UnsupportedMediaType",_t[_t.RangeNotSatisfiable=416]="RangeNotSatisfiable",_t[_t.ExpectationFailed=417]="ExpectationFailed",_t[_t.ImATeapot=418]="ImATeapot",_t[_t.MisdirectedRequest=421]="MisdirectedRequest",_t[_t.UnprocessableEntity=422]="UnprocessableEntity",_t[_t.Locked=423]="Locked",_t[_t.FailedDependency=424]="FailedDependency",_t[_t.TooEarly=425]="TooEarly",_t[_t.UpgradeRequired=426]="UpgradeRequired",_t[_t.PreconditionRequired=428]="PreconditionRequired",_t[_t.TooManyRequests=429]="TooManyRequests",_t[_t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",_t[_t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",_t[_t.InternalServerError=500]="InternalServerError",_t[_t.NotImplemented=501]="NotImplemented",_t[_t.BadGateway=502]="BadGateway",_t[_t.ServiceUnavailable=503]="ServiceUnavailable",_t[_t.GatewayTimeout=504]="GatewayTimeout",_t[_t.HttpVersionNotSupported=505]="HttpVersionNotSupported",_t[_t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",_t[_t.InsufficientStorage=507]="InsufficientStorage",_t[_t.LoopDetected=508]="LoopDetected",_t[_t.NotExtended=510]="NotExtended",_t[_t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",_t}(G||{});function W(_t,si){return{body:si,headers:_t.headers,context:_t.context,observe:_t.observe,params:_t.params,reportProgress:_t.reportProgress,responseType:_t.responseType,withCredentials:_t.withCredentials,transferCache:_t.transferCache}}let z=(()=>{class _t{constructor(Dt){this.handler=Dt}request(Dt,Pi,ln={}){let An;if(Dt instanceof _e)An=Dt;else{let ct,ri;ct=ln.headers instanceof O?ln.headers:new O(ln.headers),ln.params&&(ri=ln.params instanceof F?ln.params:new F({fromObject:ln.params})),An=new _e(Dt,Pi,void 0!==ln.body?ln.body:null,{headers:ct,context:ln.context,params:ri,reportProgress:ln.reportProgress,responseType:ln.responseType||"json",withCredentials:ln.withCredentials,transferCache:ln.transferCache})}const jn=(0,L.of)(An).pipe((0,E.H)(ct=>this.handler.handle(ct)));if(Dt instanceof _e||"events"===ln.observe)return jn;const Gr=jn.pipe((0,R.p)(ct=>ct instanceof we));switch(ln.observe||"body"){case"body":switch(An.responseType){case"arraybuffer":return Gr.pipe((0,m.T)(ct=>{if(null!==ct.body&&!(ct.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ct.body}));case"blob":return Gr.pipe((0,m.T)(ct=>{if(null!==ct.body&&!(ct.body instanceof Blob))throw new Error("Response is not a Blob.");return ct.body}));case"text":return Gr.pipe((0,m.T)(ct=>{if(null!==ct.body&&"string"!=typeof ct.body)throw new Error("Response is not a string.");return ct.body}));default:return Gr.pipe((0,m.T)(ct=>ct.body))}case"response":return Gr;default:throw new Error(`Unreachable: unhandled observe type ${ln.observe}}`)}}delete(Dt,Pi={}){return this.request("DELETE",Dt,Pi)}get(Dt,Pi={}){return this.request("GET",Dt,Pi)}head(Dt,Pi={}){return this.request("HEAD",Dt,Pi)}jsonp(Dt,Pi){return this.request("JSONP",Dt,{params:(new F).append(Pi,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Dt,Pi={}){return this.request("OPTIONS",Dt,Pi)}patch(Dt,Pi,ln={}){return this.request("PATCH",Dt,W(ln,Pi))}post(Dt,Pi,ln={}){return this.request("POST",Dt,W(ln,Pi))}put(Dt,Pi,ln={}){return this.request("PUT",Dt,W(ln,Pi))}static#e=this.\u0275fac=function(Pi){return new(Pi||_t)(d.KVO(s))};static#t=this.\u0275prov=d.jDH({token:_t,factory:_t.\u0275fac})}return _t})();function Ie(_t,si){return si(_t)}function ce(_t,si){return(Dt,Pi)=>si.intercept(Dt,{handle:ln=>_t(ln,Pi)})}const pe=new d.nKC(""),Be=new d.nKC(""),We=new d.nKC(""),tt=new d.nKC("");function vt(){let _t=null;return(si,Dt)=>{null===_t&&(_t=((0,d.WQX)(pe,{optional:!0})??[]).reduceRight(ce,Ie));const Pi=(0,d.WQX)(d.TgB),ln=Pi.add();return _t(si,Dt).pipe((0,_.j)(()=>Pi.remove(ln)))}}let Qe=(()=>{class _t extends s{constructor(Dt,Pi){super(),this.backend=Dt,this.injector=Pi,this.chain=null,this.pendingTasks=(0,d.WQX)(d.TgB);const ln=(0,d.WQX)(tt,{optional:!0});this.backend=ln??Dt}handle(Dt){if(null===this.chain){const ln=Array.from(new Set([...this.injector.get(Be),...this.injector.get(We,[])]));this.chain=ln.reduceRight((An,jn)=>function de(_t,si,Dt){return(Pi,ln)=>(0,d.N4e)(Dt,()=>si(Pi,An=>_t(An,ln)))}(An,jn,this.injector),Ie)}const Pi=this.pendingTasks.add();return this.chain(Dt,ln=>this.backend.handle(ln)).pipe((0,_.j)(()=>this.pendingTasks.remove(Pi)))}static#e=this.\u0275fac=function(Pi){return new(Pi||_t)(d.KVO(b),d.KVO(d.uvJ))};static#t=this.\u0275prov=d.jDH({token:_t,factory:_t.\u0275fac})}return _t})();const Je=/^\)\]\}',?\n/;let gi=(()=>{class _t{constructor(Dt){this.xhrFactory=Dt}handle(Dt){if("JSONP"===Dt.method)throw new d.wOt(-2800,!1);const Pi=this.xhrFactory;return(Pi.\u0275loadImpl?(0,o.H)(Pi.\u0275loadImpl()):(0,L.of)(null)).pipe((0,v.n)(()=>new j.c(An=>{const jn=Pi.build();if(jn.open(Dt.method,Dt.urlWithParams),Dt.withCredentials&&(jn.withCredentials=!0),Dt.headers.forEach((En,_r)=>jn.setRequestHeader(En,_r.join(","))),Dt.headers.has("Accept")||jn.setRequestHeader("Accept","application/json, text/plain, */*"),!Dt.headers.has("Content-Type")){const En=Dt.detectContentTypeHeader();null!==En&&jn.setRequestHeader("Content-Type",En)}if(Dt.responseType){const En=Dt.responseType.toLowerCase();jn.responseType="json"!==En?En:"text"}const Gr=Dt.serializeBody();let ct=null;const ri=()=>{if(null!==ct)return ct;const En=jn.statusText||"OK",_r=new O(jn.getAllResponseHeaders()),ha=function Ht(_t){return"responseURL"in _t&&_t.responseURL?_t.responseURL:/^X-Request-URL:/m.test(_t.getAllResponseHeaders())?_t.getResponseHeader("X-Request-URL"):null}(jn)||Dt.url;return ct=new me({headers:_r,status:jn.status,statusText:En,url:ha}),ct},Ci=()=>{let{headers:En,status:_r,statusText:ha,url:aa}=ri(),Fa=null;_r!==G.NoContent&&(Fa=typeof jn.response>"u"?jn.responseText:jn.response),0===_r&&(_r=Fa?G.Ok:0);let Ya=_r>=200&&_r<300;if("json"===Dt.responseType&&"string"==typeof Fa){const _o=Fa;Fa=Fa.replace(Je,"");try{Fa=""!==Fa?JSON.parse(Fa):null}catch(Yo){Fa=_o,Ya&&(Ya=!1,Fa={error:Yo,text:Fa})}}Ya?(An.next(new we({body:Fa,headers:En,status:_r,statusText:ha,url:aa||void 0})),An.complete()):An.error(new N({error:Fa,headers:En,status:_r,statusText:ha,url:aa||void 0}))},Ri=En=>{const{url:_r}=ri(),ha=new N({error:En,status:jn.status||0,statusText:jn.statusText||"Unknown Error",url:_r||void 0});An.error(ha)};let ji=!1;const wn=En=>{ji||(An.next(ri()),ji=!0);let _r={type:be.DownloadProgress,loaded:En.loaded};En.lengthComputable&&(_r.total=En.total),"text"===Dt.responseType&&jn.responseText&&(_r.partialText=jn.responseText),An.next(_r)},Nn=En=>{let _r={type:be.UploadProgress,loaded:En.loaded};En.lengthComputable&&(_r.total=En.total),An.next(_r)};return jn.addEventListener("load",Ci),jn.addEventListener("error",Ri),jn.addEventListener("timeout",Ri),jn.addEventListener("abort",Ri),Dt.reportProgress&&(jn.addEventListener("progress",wn),null!==Gr&&jn.upload&&jn.upload.addEventListener("progress",Nn)),jn.send(Gr),An.next({type:be.Sent}),()=>{jn.removeEventListener("error",Ri),jn.removeEventListener("abort",Ri),jn.removeEventListener("load",Ci),jn.removeEventListener("timeout",Ri),Dt.reportProgress&&(jn.removeEventListener("progress",wn),null!==Gr&&jn.upload&&jn.upload.removeEventListener("progress",Nn)),jn.readyState!==jn.DONE&&jn.abort()}})))}static#e=this.\u0275fac=function(Pi){return new(Pi||_t)(d.KVO(h.N0))};static#t=this.\u0275prov=d.jDH({token:_t,factory:_t.\u0275fac})}return _t})();const Ti=new d.nKC(""),wi=new d.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),cn=new d.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ui{}let Xi=(()=>{class _t{constructor(Dt,Pi,ln){this.doc=Dt,this.platform=Pi,this.cookieName=ln,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Dt=this.doc.cookie||"";return Dt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,h._b)(Dt,this.cookieName),this.lastCookieString=Dt),this.lastToken}static#e=this.\u0275fac=function(Pi){return new(Pi||_t)(d.KVO(h.qQ),d.KVO(d.Agw),d.KVO(wi))};static#t=this.\u0275prov=d.jDH({token:_t,factory:_t.\u0275fac})}return _t})();function Qi(_t,si){const Dt=_t.url.toLowerCase();if(!(0,d.WQX)(Ti)||"GET"===_t.method||"HEAD"===_t.method||Dt.startsWith("http://")||Dt.startsWith("https://"))return si(_t);const Pi=(0,d.WQX)(Ui).getToken(),ln=(0,d.WQX)(cn);return null!=Pi&&!_t.headers.has(ln)&&(_t=_t.clone({headers:_t.headers.set(ln,Pi)})),si(_t)}var It=function(_t){return _t[_t.Interceptors=0]="Interceptors",_t[_t.LegacyInterceptors=1]="LegacyInterceptors",_t[_t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",_t[_t.NoXsrfProtection=3]="NoXsrfProtection",_t[_t.JsonpSupport=4]="JsonpSupport",_t[_t.RequestsMadeViaParent=5]="RequestsMadeViaParent",_t[_t.Fetch=6]="Fetch",_t}(It||{});function pt(..._t){const si=[z,gi,Qe,{provide:s,useExisting:Qe},{provide:b,useExisting:gi},{provide:Be,useValue:Qi,multi:!0},{provide:Ti,useValue:!0},{provide:Ui,useClass:Xi}];for(const Dt of _t)si.push(...Dt.\u0275providers);return(0,d.EmA)(si)}const Wt=new d.nKC("");function Vt(){return function yt(_t,si){return{\u0275kind:_t,\u0275providers:si}}(It.LegacyInterceptors,[{provide:Wt,useFactory:vt},{provide:Be,useExisting:Wt,multi:!0}])}let Kt=(()=>{class _t{static#e=this.\u0275fac=function(Pi){return new(Pi||_t)};static#t=this.\u0275mod=d.$C({type:_t});static#i=this.\u0275inj=d.G2t({providers:[pt(Vt())]})}return _t})()},54438:(ei,rt,D)=>{"use strict";D.d(rt,{bc$:()=>Tf,iLQ:()=>eM,sZ2:()=>gp,hnV:()=>QM,Hbi:()=>vA,o8S:()=>Zb,BIS:()=>df,gRc:()=>cO,Ql9:()=>WT,OM3:()=>s0,Ocv:()=>ZT,Z63:()=>Jd,aKT:()=>cu,uvJ:()=>Ei,zcH:()=>qh,bkB:()=>Bu,$GK:()=>Ha,nKC:()=>ln,zZn:()=>Pd,_q3:()=>lM,MKu:()=>dM,xe9:()=>MD,Co$:()=>By,Vns:()=>tv,SKi:()=>Tu,Xx1:()=>ga,Agw:()=>nm,PLl:()=>ld,rOR:()=>rh,sFG:()=>_w,_9s:()=>Nx,czy:()=>Vo,WPN:()=>lh,kdw:()=>$a,C4Q:()=>qv,NYb:()=>BT,giA:()=>XM,pJN:()=>Ap,xvI:()=>uT,RxE:()=>zM,c1b:()=>wy,gXe:()=>yd,mal:()=>_y,L39:()=>$A,Ol2:()=>kb,w6W:()=>hC,oH4:()=>oO,SmG:()=>nA,Rfq:()=>Qi,WQX:()=>Dn,QuC:()=>Cd,EmA:()=>gu,zw6:()=>Af,fpN:()=>_A,HJs:()=>tI,N4e:()=>Tl,O8t:()=>XA,An2:()=>o0,H3F:()=>UM,qyG:()=>U0,H8p:()=>lc,KH2:()=>Kb,TgB:()=>Iv,wOt:()=>Xt,WHO:()=>$M,e01:()=>KM,lNU:()=>vt,h9k:()=>Rh,$MX:()=>np,ZF7:()=>Ah,Kcf:()=>lm,e5t:()=>Uu,UyX:()=>Hm,cWb:()=>dm,osQ:()=>Ih,H5H:()=>t_,Zy3:()=>Nt,uq$:()=>vS,mq5:()=>FC,JZv:()=>Ht,LfX:()=>uo,plB:()=>ig,jNT:()=>ZE,zjR:()=>JM,XSP:()=>tE,TL$:()=>nc,Tbb:()=>ui,rcV:()=>Th,Vt3:()=>Ib,Mj6:()=>Ol,GFd:()=>Ag,OA$:()=>gh,Jv_:()=>Ue,aNF:()=>Ft,R7$:()=>vf,BMQ:()=>sv,HbH:()=>ns,AVh:()=>Ma,wni:()=>nD,VBU:()=>ea,FsC:()=>ol,jDH:()=>Pr,G2t:()=>ja,$C:()=>Xo,EJ8:()=>td,rXU:()=>eg,nrm:()=>d1,eu8:()=>RC,bVm:()=>kC,qex:()=>R_,k0s:()=>lx,j41:()=>sx,RV6:()=>_S,xGo:()=>yh,Mr5:()=>PC,KVO:()=>Ni,kS0:()=>ft,QTQ:()=>sp,bIt:()=>v1,lsd:()=>aD,joV:()=>Pn,qSk:()=>as,XpG:()=>KS,nI1:()=>yM,bMT:()=>xM,i5U:()=>CM,brH:()=>wM,ii3:()=>SM,SdG:()=>JS,NAR:()=>XS,Y8G:()=>Hr,FS9:()=>y1,lJ4:()=>Qn,eq3:()=>zr,mGM:()=>rD,sdS:()=>oD,Njj:()=>nn,tSv:()=>vl,eBV:()=>sn,npT:()=>Ug,B4B:()=>bg,n$t:()=>u_,Obh:()=>Li,Aen:()=>Zo,xc7:()=>go,Kam:()=>b1,zvX:()=>LC,DNE:()=>O_,C5r:()=>DM,EFF:()=>fD,JRh:()=>T1,SpI:()=>YC,Lme:()=>pv,DH7:()=>CD,mxI:()=>A1,R50:()=>ta,GBs:()=>i_}),D(10467);let L=null,o=1;const E=Symbol("SIGNAL");function R(a){const c=L;return L=a,c}function O(a){if((!Q(a)||a.dirty)&&(a.dirty||a.lastCleanEpoch!==o)){if(!a.producerMustRecompute(a)&&!g(a))return a.dirty=!1,void(a.lastCleanEpoch=o);a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=o}}function g(a){se(a);for(let c=0;c<a.producerNode.length;c++){const T=a.producerNode[c],K=a.producerLastReadVersion[c];if(K!==T.version||(O(T),K!==T.version))return!0}return!1}function Y(a,c){if(function ie(a){a.liveConsumerNode??=[],a.liveConsumerIndexOfThis??=[]}(a),se(a),1===a.liveConsumerNode.length)for(let K=0;K<a.producerNode.length;K++)Y(a.producerNode[K],a.producerIndexOfThis[K]);const T=a.liveConsumerNode.length-1;if(a.liveConsumerNode[c]=a.liveConsumerNode[T],a.liveConsumerIndexOfThis[c]=a.liveConsumerIndexOfThis[T],a.liveConsumerNode.length--,a.liveConsumerIndexOfThis.length--,c<a.liveConsumerNode.length){const K=a.liveConsumerIndexOfThis[c],le=a.liveConsumerNode[c];se(le),le.producerIndexOfThis[K]=c}}function Q(a){return a.consumerIsAlwaysLive||(a?.liveConsumerNode?.length??0)>0}function se(a){a.producerNode??=[],a.producerIndexOfThis??=[],a.producerLastReadVersion??=[]}let me=null;var de=D(21413),pe=D(18359),Be=D(84412),We=D(96354);const vt="https://g.co/ng/security#xss";class Xt extends Error{constructor(c,T){super(Nt(c,T)),this.code=c}}function Nt(a,c){return`NG0${Math.abs(a)}${c?": "+c:""}`}function Ge(a){return{toString:a}.toString()}const Tt="__parameters__";function xi(a,c,T){return Ge(()=>{const K=function an(a){return function(...T){if(a){const K=a(...T);for(const le in K)this[le]=K[le]}}}(c);function le(...Te){if(this instanceof le)return K.apply(this,Te),this;const Ne=new le(...Te);return Xe.annotation=Ne,Xe;function Xe(ht,ii,Oi){const un=ht.hasOwnProperty(Tt)?ht[Tt]:Object.defineProperty(ht,Tt,{value:[]})[Tt];for(;un.length<=Oi;)un.push(null);return(un[Oi]=un[Oi]||[]).push(Ne),ht}}return T&&(le.prototype=Object.create(T.prototype)),le.prototype.ngMetadataName=a,le.annotationCls=le,le})}const Ht=globalThis;function ni(a){for(let c in a)if(a[c]===ni)return c;throw Error("Could not find renamed property on target object.")}function wi(a,c){for(const T in c)c.hasOwnProperty(T)&&!a.hasOwnProperty(T)&&(a[T]=c[T])}function ui(a){if("string"==typeof a)return a;if(Array.isArray(a))return"["+a.map(ui).join(", ")+"]";if(null==a)return""+a;if(a.overriddenName)return`${a.overriddenName}`;if(a.name)return`${a.name}`;const c=a.toString();if(null==c)return""+c;const T=c.indexOf("\n");return-1===T?c:c.substring(0,T)}function cn(a,c){return null==a||""===a?null===c?"":c:null==c||""===c?a:a+" "+c}const Xi=ni({__forward_ref__:ni});function Qi(a){return a.__forward_ref__=Qi,a.toString=function(){return ui(this())},a}function Ut(a){return It(a)?a():a}function It(a){return"function"==typeof a&&a.hasOwnProperty(Xi)&&a.__forward_ref__===Qi}function Pr(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}}function ja(a){return{providers:a.providers||[],imports:a.imports||[]}}function Na(a){return Eo(a,_t)||Eo(a,Dt)}function uo(a){return null!==Na(a)}function Eo(a,c){return a.hasOwnProperty(c)?a[c]:null}function Bi(a){return a&&(a.hasOwnProperty(si)||a.hasOwnProperty(Pi))?a[si]:null}const _t=ni({\u0275prov:ni}),si=ni({\u0275inj:ni}),Dt=ni({ngInjectableDef:ni}),Pi=ni({ngInjectorDef:ni});class ln{constructor(c,T){this._desc=c,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof T?this.__NG_ELEMENT_ID__=T:void 0!==T&&(this.\u0275prov=Pr({token:this,providedIn:T.providedIn||"root",factory:T.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function En(a){return a&&!!a.\u0275providers}const _r=ni({\u0275cmp:ni}),ha=ni({\u0275dir:ni}),aa=ni({\u0275pipe:ni}),Fa=ni({\u0275mod:ni}),Ya=ni({\u0275fac:ni}),_o=ni({__NG_ELEMENT_ID__:ni}),Yo=ni({__NG_ENV_ID__:ni});function Va(a){return"string"==typeof a?a:null==a?"":String(a)}function ia(a){return"function"==typeof a?a.name||a.toString():"object"==typeof a&&null!=a&&"function"==typeof a.type?a.type.name||a.type.toString():Va(a)}function Ao(a,c){throw new Xt(-201,!1)}var Ha=function(a){return a[a.Default=0]="Default",a[a.Host=1]="Host",a[a.Self=2]="Self",a[a.SkipSelf=4]="SkipSelf",a[a.Optional=8]="Optional",a}(Ha||{});let us;function Ql(){return us}function ms(a){const c=us;return us=a,c}function El(a,c,T){const K=Na(a);return K&&"root"==K.providedIn?void 0===K.value?K.value=K.factory():K.value:T&Ha.Optional?null:void 0!==c?c:void Ao()}const rs={},Ho="__NG_DI_FLAG__",Zs="ngTempTokenPath",Ms=/\n/gm,hs="__source";let ws;function Bt(a){const c=ws;return ws=a,c}function Si(a,c=Ha.Default){if(void 0===ws)throw new Xt(-203,!1);return null===ws?El(a,void 0,c):ws.get(a,c&Ha.Optional?null:void 0,c)}function Ni(a,c=Ha.Default){return(Ql()||Si)(Ut(a),c)}function Dn(a,c=Ha.Default){return Ni(a,Kn(c))}function Kn(a){return typeof a>"u"||"number"==typeof a?a:(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)}function tr(a){const c=[];for(let T=0;T<a.length;T++){const K=Ut(a[T]);if(Array.isArray(K)){if(0===K.length)throw new Xt(900,!1);let le,Te=Ha.Default;for(let Ne=0;Ne<K.length;Ne++){const Xe=K[Ne],ht=Pa(Xe);"number"==typeof ht?-1===ht?le=Xe.token:Te|=ht:le=Xe}c.push(Ni(le,Te))}else c.push(Ni(K))}return c}function xr(a,c){return a[Ho]=c,a.prototype[Ho]=c,a}function Pa(a){return a[Ho]}const ga=xr(xi("Optional"),8),$a=xr(xi("SkipSelf"),4);function Mo(a,c){return a.hasOwnProperty(Ya)?a[Ya]:null}function gs(a){return a.flat(Number.POSITIVE_INFINITY)}function el(a,c){a.forEach(T=>Array.isArray(T)?el(T,c):c(T))}function _s(a,c,T){c>=a.length?a.push(T):a.splice(c,0,T)}function yl(a,c){return c>=a.length-1?a.pop():a.splice(c,1)[0]}function xs(a,c,T){let K=Il(a,c);return K>=0?a[1|K]=T:(K=~K,function Zl(a,c,T,K){let le=a.length;if(le==c)a.push(T,K);else if(1===le)a.push(K,a[0]),a[0]=T;else{for(le--,a.push(a[le-1],a[le]);le>c;)a[le]=a[le-2],le--;a[c]=T,a[c+1]=K}}(a,K,c,T)),K}function oc(a,c){const T=Il(a,c);if(T>=0)return a[1|T]}function Il(a,c){return function ru(a,c,T){let K=0,le=a.length>>T;for(;le!==K;){const Te=K+(le-K>>1),Ne=a[Te<<T];if(c===Ne)return Te<<T;Ne>c?le=Te:K=Te+1}return~(le<<T)}(a,c,1)}const ql={},vs=[],Jd=new ln(""),vc=new ln("",-1),bc=new ln("");class Nl{get(c,T=rs){if(T===rs){const K=new Error(`NullInjectorError: No provider for ${ui(c)}!`);throw K.name="NullInjectorError",K}return T}}var yc=function(a){return a[a.OnPush=0]="OnPush",a[a.Default=1]="Default",a}(yc||{}),yd=function(a){return a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom",a}(yd||{}),Ol=function(a){return a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",a}(Ol||{});function au(a,c,T){let K=a.length;for(;;){const le=a.indexOf(c,T);if(-1===le)return le;if(0===le||a.charCodeAt(le-1)<=32){const Te=c.length;if(le+Te===K||a.charCodeAt(le+Te)<=32)return le}T=le+1}}function ks(a,c,T){let K=0;for(;K<T.length;){const le=T[K];if("number"==typeof le){if(0!==le)break;K++;const Te=T[K++],Ne=T[K++],Xe=T[K++];a.setAttribute(c,Ne,Xe,Te)}else{const Te=le,Ne=T[++K];yi(Te)?a.setProperty(c,Te,Ne):a.setAttribute(c,Te,Ne),K++}}return K}function oi(a){return 3===a||4===a||6===a}function yi(a){return 64===a.charCodeAt(0)}function zt(a,c){if(null!==c&&0!==c.length)if(null===a||0===a.length)a=c.slice();else{let T=-1;for(let K=0;K<c.length;K++){const le=c[K];"number"==typeof le?T=le:0===T||Yi(a,T,le,null,-1===T||2===T?c[++K]:null)}}return a}function Yi(a,c,T,K,le){let Te=0,Ne=a.length;if(-1===c)Ne=-1;else for(;Te<a.length;){const Xe=a[Te++];if("number"==typeof Xe){if(Xe===c){Ne=-1;break}if(Xe>c){Ne=Te-1;break}}}for(;Te<a.length;){const Xe=a[Te];if("number"==typeof Xe)break;if(Xe===T){if(null===K)return void(null!==le&&(a[Te+1]=le));if(K===a[Te+1])return void(a[Te+2]=le)}Te++,null!==K&&Te++,null!==le&&Te++}-1!==Ne&&(a.splice(Ne,0,c),Te=Ne+1),a.splice(Te++,0,T),null!==K&&a.splice(Te++,0,K),null!==le&&a.splice(Te++,0,le)}const Un="ng-template";function vo(a,c,T,K){let le=0;if(K){for(;le<c.length&&"string"==typeof c[le];le+=2)if("class"===c[le]&&-1!==au(c[le+1].toLowerCase(),T,0))return!0}else if(No(a))return!1;if(le=c.indexOf(1,le),le>-1){let Te;for(;++le<c.length&&"string"==typeof(Te=c[le]);)if(Te.toLowerCase()===T)return!0}return!1}function No(a){return 4===a.type&&a.value!==Un}function ed(a,c,T){return c===(4!==a.type||T?a.value:Un)}function xd(a,c,T){let K=4;const le=a.attrs,Te=null!==le?function uh(a){for(let c=0;c<a.length;c++)if(oi(a[c]))return c;return a.length}(le):0;let Ne=!1;for(let Xe=0;Xe<c.length;Xe++){const ht=c[Xe];if("number"!=typeof ht){if(!Ne)if(4&K){if(K=2|1&K,""!==ht&&!ed(a,ht,T)||""===ht&&1===c.length){if(Ls(K))return!1;Ne=!0}}else if(8&K){if(null===le||!vo(a,le,ht,T)){if(Ls(K))return!1;Ne=!0}}else{const ii=c[++Xe],Oi=Xc(ht,le,No(a),T);if(-1===Oi){if(Ls(K))return!1;Ne=!0;continue}if(""!==ii){let un;if(un=Oi>Te?"":le[Oi+1].toLowerCase(),2&K&&ii!==un){if(Ls(K))return!1;Ne=!0}}}}else{if(!Ne&&!Ls(K)&&!Ls(ht))return!1;if(Ne&&Ls(ht))continue;Ne=!1,K=ht|1&K}}return Ls(K)||Ne}function Ls(a){return!(1&a)}function Xc(a,c,T,K){if(null===c)return-1;let le=0;if(K||!T){let Te=!1;for(;le<c.length;){const Ne=c[le];if(Ne===a)return le;if(3===Ne||6===Ne)Te=!0;else{if(1===Ne||2===Ne){let Xe=c[++le];for(;"string"==typeof Xe;)Xe=c[++le];continue}if(4===Ne)break;if(0===Ne){le+=4;continue}}le+=Te?1:2}return-1}return function Ve(a,c){let T=a.indexOf(4);if(T>-1)for(T++;T<a.length;){const K=a[T];if("number"==typeof K)return-1;if(K===c)return T;T++}return-1}(c,a)}function Cs(a,c,T=!1){for(let K=0;K<c.length;K++)if(xd(a,c[K],T))return!0;return!1}function qe(a,c){e:for(let T=0;T<c.length;T++){const K=c[T];if(a.length===K.length){for(let le=0;le<a.length;le++)if(a[le]!==K[le])continue e;return!0}}return!1}function Yt(a,c){return a?":not("+c.trim()+")":c}function Fi(a){let c=a[0],T=1,K=2,le="",Te=!1;for(;T<a.length;){let Ne=a[T];if("string"==typeof Ne)if(2&K){const Xe=a[++T];le+="["+Ne+(Xe.length>0?'="'+Xe+'"':"")+"]"}else 8&K?le+="."+Ne:4&K&&(le+=" "+Ne);else""!==le&&!Ls(Ne)&&(c+=Yt(Te,le),le=""),K=Ne,Te=Te||!Ls(K);T++}return""!==le&&(c+=Yt(Te,le)),c}function ea(a){return Ge(()=>{const c=id(a),T={...c,decls:a.decls,vars:a.vars,template:a.template,consts:a.consts||null,ngContentSelectors:a.ngContentSelectors,onPush:a.changeDetection===yc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:c.standalone&&a.dependencies||null,getStandaloneInjector:null,signals:a.signals??!1,data:a.data||{},encapsulation:a.encapsulation||yd.Emulated,styles:a.styles||vs,_:null,schemas:a.schemas||null,tView:null,id:""};Vc(T);const K=a.dependencies;return T.directiveDefs=su(K,!1),T.pipeDefs=su(K,!0),T.id=function lp(a){let c=0;const T=[a.selectors,a.ngContentSelectors,a.hostVars,a.hostAttrs,a.consts,a.vars,a.decls,a.encapsulation,a.standalone,a.signals,a.exportAs,JSON.stringify(a.inputs),JSON.stringify(a.outputs),Object.getOwnPropertyNames(a.type.prototype),!!a.contentQueries,!!a.viewQuery].join("|");for(const le of T)c=Math.imul(31,c)+le.charCodeAt(0)|0;return c+=2147483648,"c"+c}(T),T})}function Wa(a){return es(a)||ml(a)}function Io(a){return null!==a}function Xo(a){return Ge(()=>({type:a.type,bootstrap:a.bootstrap||vs,declarations:a.declarations||vs,imports:a.imports||vs,exports:a.exports||vs,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}))}function Ys(a,c){if(null==a)return ql;const T={};for(const K in a)if(a.hasOwnProperty(K)){const le=a[K];let Te,Ne,Xe=Ol.None;Array.isArray(le)?(Xe=le[0],Te=le[1],Ne=le[2]??Te):(Te=le,Ne=le),c?(T[Te]=Xe!==Ol.None?[K,Xe]:K,c[Te]=Ne):T[Te]=K}return T}function ol(a){return Ge(()=>{const c=id(a);return Vc(c),c})}function td(a){return{type:a.type,name:a.name,factory:null,pure:!1!==a.pure,standalone:!0===a.standalone,onDestroy:a.type.prototype.ngOnDestroy||null}}function es(a){return a[_r]||null}function ml(a){return a[ha]||null}function kl(a){return a[aa]||null}function Cd(a){const c=es(a)||ml(a)||kl(a);return null!==c&&c.standalone}function Gd(a,c){const T=a[Fa]||null;if(!T&&!0===c)throw new Error(`Type ${ui(a)} does not have '\u0275mod' property.`);return T}function id(a){const c={};return{type:a.type,providersResolver:null,factory:null,hostBindings:a.hostBindings||null,hostVars:a.hostVars||0,hostAttrs:a.hostAttrs||null,contentQueries:a.contentQueries||null,declaredInputs:c,inputTransforms:null,inputConfig:a.inputs||ql,exportAs:a.exportAs||null,standalone:!0===a.standalone,signals:!0===a.signals,selectors:a.selectors||vs,viewQuery:a.viewQuery||null,features:a.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ys(a.inputs,c),outputs:Ys(a.outputs),debugInfo:null}}function Vc(a){a.features?.forEach(c=>c(a))}function su(a,c){if(!a)return null;const T=c?kl:Wa;return()=>("function"==typeof a?a():a).map(K=>T(K)).filter(Io)}function gu(a){return{\u0275providers:a}}function Hc(...a){return{\u0275providers:Qd(0,a),\u0275fromNgModule:!0}}function Qd(a,...c){const T=[],K=new Set;let le;const Te=Ne=>{T.push(Ne)};return el(c,Ne=>{const Xe=Ne;sc(Xe,Te,[],K)&&(le||=[],le.push(Xe))}),void 0!==le&&Ic(le,Te),T}function Ic(a,c){for(let T=0;T<a.length;T++){const{ngModule:K,providers:le}=a[T];zc(le,Te=>{c(Te,K)})}}function sc(a,c,T,K){if(!(a=Ut(a)))return!1;let le=null,Te=Bi(a);const Ne=!Te&&es(a);if(Te||Ne){if(Ne&&!Ne.standalone)return!1;le=a}else{const ht=a.ngModule;if(Te=Bi(ht),!Te)return!1;le=ht}const Xe=K.has(le);if(Ne){if(Xe)return!1;if(K.add(le),Ne.dependencies){const ht="function"==typeof Ne.dependencies?Ne.dependencies():Ne.dependencies;for(const ii of ht)sc(ii,c,T,K)}}else{if(!Te)return!1;{if(null!=Te.imports&&!Xe){let ii;K.add(le);try{el(Te.imports,Oi=>{sc(Oi,c,T,K)&&(ii||=[],ii.push(Oi))})}finally{}void 0!==ii&&Ic(ii,c)}if(!Xe){const ii=Mo(le)||(()=>new le);c({provide:le,useFactory:ii,deps:vs},le),c({provide:bc,useValue:le,multi:!0},le),c({provide:Jd,useValue:()=>Ni(le),multi:!0},le)}const ht=Te.providers;if(null!=ht&&!Xe){const ii=a;zc(ht,Oi=>{c(Oi,ii)})}}}return le!==a&&void 0!==a.providers}function zc(a,c){for(let T of a)En(T)&&(T=T.\u0275providers),Array.isArray(T)?zc(T,c):c(T)}const Vl=ni({provide:String,useValue:ni});function Jc(a){return null!==a&&"object"==typeof a&&Vl in a}function xc(a){return"function"==typeof a}const lc=new ln(""),$s={},et={};let Ot;function Qt(){return void 0===Ot&&(Ot=new Nl),Ot}class Ei{}class on extends Ei{get destroyed(){return this._destroyed}constructor(c,T,K,le){super(),this.parent=T,this.source=K,this.scopes=le,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Fs(c,Ne=>this.processProvider(Ne)),this.records.set(vc,pa(void 0,this)),le.has("environment")&&this.records.set(Ei,pa(void 0,this));const Te=this.records.get(lc);null!=Te&&"string"==typeof Te.value&&this.scopes.add(Te.value),this.injectorDefTypes=new Set(this.get(bc,vs,Ha.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const c=R(null);try{for(const K of this._ngOnDestroyHooks)K.ngOnDestroy();const T=this._onDestroyHooks;this._onDestroyHooks=[];for(const K of T)K()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),R(c)}}onDestroy(c){return this.assertNotDestroyed(),this._onDestroyHooks.push(c),()=>this.removeOnDestroy(c)}runInContext(c){this.assertNotDestroyed();const T=Bt(this),K=ms(void 0);try{return c()}finally{Bt(T),ms(K)}}get(c,T=rs,K=Ha.Default){if(this.assertNotDestroyed(),c.hasOwnProperty(Yo))return c[Yo](this);K=Kn(K);const Te=Bt(this),Ne=ms(void 0);try{if(!(K&Ha.SkipSelf)){let ht=this.records.get(c);if(void 0===ht){const ii=function Oo(a){return"function"==typeof a||"object"==typeof a&&a instanceof ln}(c)&&Na(c);ht=ii&&this.injectableDefInScope(ii)?pa(Bn(c),$s):null,this.records.set(c,ht)}if(null!=ht)return this.hydrate(c,ht)}return(K&Ha.Self?Qt():this.parent).get(c,T=K&Ha.Optional&&T===rs?null:T)}catch(Xe){if("NullInjectorError"===Xe.name){if((Xe[Zs]=Xe[Zs]||[]).unshift(ui(c)),Te)throw Xe;return function va(a,c,T,K){const le=a[Zs];throw c[hs]&&le.unshift(c[hs]),a.message=function Aa(a,c,T,K=null){a=a&&"\n"===a.charAt(0)&&"\u0275"==a.charAt(1)?a.slice(2):a;let le=ui(c);if(Array.isArray(c))le=c.map(ui).join(" -> ");else if("object"==typeof c){let Te=[];for(let Ne in c)if(c.hasOwnProperty(Ne)){let Xe=c[Ne];Te.push(Ne+":"+("string"==typeof Xe?JSON.stringify(Xe):ui(Xe)))}le=`{${Te.join(", ")}}`}return`${T}${K?"("+K+")":""}[${le}]: ${a.replace(Ms,"\n ")}`}("\n"+a.message,le,T,K),a.ngTokenPath=le,a[Zs]=null,a}(Xe,c,"R3InjectorError",this.source)}throw Xe}finally{ms(Ne),Bt(Te)}}resolveInjectorInitializers(){const c=R(null),T=Bt(this),K=ms(void 0);try{const Te=this.get(Jd,vs,Ha.Self);for(const Ne of Te)Ne()}finally{Bt(T),ms(K),R(c)}}toString(){const c=[],T=this.records;for(const K of T.keys())c.push(ui(K));return`R3Injector[${c.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Xt(205,!1)}processProvider(c){let T=xc(c=Ut(c))?c:Ut(c&&c.provide);const K=function Yr(a){return Jc(a)?pa(void 0,a.useValue):pa(Ir(a),$s)}(c);if(!xc(c)&&!0===c.multi){let le=this.records.get(T);le||(le=pa(void 0,$s,!0),le.factory=()=>tr(le.multi),this.records.set(T,le)),T=c,le.multi.push(c)}this.records.set(T,K)}hydrate(c,T){const K=R(null);try{return T.value===$s&&(T.value=et,T.value=T.factory()),"object"==typeof T.value&&T.value&&function eo(a){return null!==a&&"object"==typeof a&&"function"==typeof a.ngOnDestroy}(T.value)&&this._ngOnDestroyHooks.add(T.value),T.value}finally{R(K)}}injectableDefInScope(c){if(!c.providedIn)return!1;const T=Ut(c.providedIn);return"string"==typeof T?"any"===T||this.scopes.has(T):this.injectorDefTypes.has(T)}removeOnDestroy(c){const T=this._onDestroyHooks.indexOf(c);-1!==T&&this._onDestroyHooks.splice(T,1)}}function Bn(a){const c=Na(a),T=null!==c?c.factory:Mo(a);if(null!==T)return T;if(a instanceof ln)throw new Xt(204,!1);if(a instanceof Function)return function ir(a){if(a.length>0)throw new Xt(204,!1);const T=function To(a){return a&&(a[_t]||a[Dt])||null}(a);return null!==T?()=>T.factory(a):()=>new a}(a);throw new Xt(204,!1)}function Ir(a,c,T){let K;if(xc(a)){const le=Ut(a);return Mo(le)||Bn(le)}if(Jc(a))K=()=>Ut(a.useValue);else if(function Yp(a){return!(!a||!a.useFactory)}(a))K=()=>a.useFactory(...tr(a.deps||[]));else if(function Cp(a){return!(!a||!a.useExisting)}(a))K=()=>Ni(Ut(a.useExisting));else{const le=Ut(a&&(a.useClass||a.provide));if(!function fa(a){return!!a.deps}(a))return Mo(le)||Bn(le);K=()=>new le(...tr(a.deps))}return K}function pa(a,c,T=!1){return{factory:a,value:c,multi:T?[]:void 0}}function Fs(a,c){for(const T of a)Array.isArray(T)?Fs(T,c):T&&En(T)?Fs(T.\u0275providers,c):c(T)}function Tl(a,c){a instanceof on&&a.assertNotDestroyed();const K=Bt(a),le=ms(void 0);try{return c()}finally{Bt(K),ms(le)}}function Rs(){return void 0!==Ql()||null!=function Yl(){return ws}()}const Ia=0,vr=1,ba=2,oa=3,zs=4,Wn=5,nd=6,Zr=7,tl=8,hd=9,Zc=10,lo=11,Al=12,Nd=13,Vh=14,Ks=15,ph=16,Hh=17,fh=18,zh=19,$p=20,Qu=21,Zd=22,Zu=23,ko=25,Uh=1,qd=7,kc=9,xl=10;var Wh=function(a){return a[a.None=0]="None",a[a.HasTransplantedViews=2]="HasTransplantedViews",a}(Wh||{});function sl(a){return Array.isArray(a)&&"object"==typeof a[Uh]}function dc(a){return Array.isArray(a)&&!0===a[Uh]}function Ru(a){return!!(4&a.flags)}function _u(a){return a.componentOffset>-1}function vu(a){return!(1&~a.flags)}function cc(a){return!!a.template}function eu(a){return!!(512&a[ba])}class bu{constructor(c,T,K){this.previousValue=c,this.currentValue=T,this.firstChange=K}isFirstChange(){return this.firstChange}}function th(a,c,T,K){null!==c?c.applyValueToInputSignal(c,K):a[T]=K}function gh(){return dp}function dp(a){return a.type.prototype.ngOnChanges&&(a.setInput=gm),_h}function _h(){const a=tu(this),c=a?.current;if(c){const T=a.previous;if(T===ql)a.previous=c;else for(let K in c)T[K]=c[K];a.current=null,this.ngOnChanges(c)}}function gm(a,c,T,K,le){const Te=this.declaredInputs[K],Ne=tu(a)||function du(a,c){return a[Jp]=c}(a,{previous:ql,current:null}),Xe=Ne.current||(Ne.current={}),ht=Ne.previous,ii=ht[Te];Xe[Te]=new bu(ii&&ii.currentValue,T,ht===ql),th(a,c,le,T)}gh.ngInherit=!0;const Jp="__ngSimpleChanges__";function tu(a){return a[Jp]||null}const yu=function(a,c,T){},wp="svg";let ih=!1;function pl(a){for(;Array.isArray(a);)a=a[Ia];return a}function Qp(a,c){return pl(c[a])}function Uc(a,c){return pl(c[a.index])}function Yh(a,c){return a.data[c]}function up(a,c){return a[c]}function Gc(a,c){const T=c[a];return sl(T)?T:T[Ia]}function Zp(a){return!(128&~a[ba])}function Ad(a,c){return null==c?null:a[c]}function sg(a){a[Hh]=0}function vh(a){1024&a[ba]||(a[ba]|=1024,Zp(a)&&Df(a))}function Sf(a){return!!(9216&a[ba]||a[Zu]?.dirty)}function Jf(a){a[Zc].changeDetectionScheduler?.notify(1),Sf(a)?Df(a):64&a[ba]&&(function cp(){return ih}()?(a[ba]|=1024,Df(a)):a[Zc].changeDetectionScheduler?.notify())}function Df(a){a[Zc].changeDetectionScheduler?.notify();let c=Wc(a);for(;null!==c&&!(8192&c[ba])&&(c[ba]|=8192,Zp(c));)c=Wc(c)}function Ef(a,c){if(!(256&~a[ba]))throw new Xt(911,!1);null===a[Qu]&&(a[Qu]=[]),a[Qu].push(c)}function Wc(a){const c=a[oa];return dc(c)?c[oa]:c}const Uo={lFrame:lr(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function De(){return Uo.bindingsEnabled}function Le(){return null!==Uo.skipHydrationRootTNode}function Jt(){return Uo.lFrame.lView}function Rt(){return Uo.lFrame.tView}function sn(a){return Uo.lFrame.contextLView=a,a[tl]}function nn(a){return Uo.lFrame.contextLView=null,a}function fn(){let a=$i();for(;null!==a&&64===a.type;)a=a.parent;return a}function $i(){return Uo.lFrame.currentTNode}function kn(a,c){const T=Uo.lFrame;T.currentTNode=a,T.isParent=c}function Fn(){return Uo.lFrame.isParent}function ur(){Uo.lFrame.isParent=!1}function Nr(){const a=Uo.lFrame;let c=a.bindingRootIndex;return-1===c&&(c=a.bindingRootIndex=a.tView.bindingStartIndex),c}function hn(){return Uo.lFrame.bindingIndex++}function Hn(a){const c=Uo.lFrame,T=c.bindingIndex;return c.bindingIndex=c.bindingIndex+a,T}function br(a,c){const T=Uo.lFrame;T.bindingIndex=T.bindingRootIndex=a,wr(c)}function wr(a){Uo.lFrame.currentDirectiveIndex=a}function Kr(a){const c=Uo.lFrame.currentDirectiveIndex;return-1===c?null:a[c]}function Xr(){return Uo.lFrame.currentQueryIndex}function Ja(a){Uo.lFrame.currentQueryIndex=a}function Vi(a){const c=a[vr];return 2===c.type?c.declTNode:1===c.type?a[Wn]:null}function Cn(a,c,T){if(T&Ha.SkipSelf){let le=c,Te=a;for(;!(le=le.parent,null!==le||T&Ha.Host||(le=Vi(Te),null===le||(Te=Te[Vh],10&le.type))););if(null===le)return!1;c=le,a=Te}const K=Uo.lFrame=Jn();return K.currentTNode=c,K.lView=a,!0}function Ln(a){const c=Jn(),T=a[vr];Uo.lFrame=c,c.currentTNode=T.firstChild,c.lView=a,c.tView=T,c.contextLView=a,c.bindingIndex=T.bindingStartIndex,c.inI18n=!1}function Jn(){const a=Uo.lFrame,c=null===a?null:a.child;return null===c?lr(a):c}function lr(a){const c={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:a,child:null,inI18n:!1};return null!==a&&(a.child=c),c}function Sr(){const a=Uo.lFrame;return Uo.lFrame=a.parent,a.currentTNode=null,a.lView=null,a}const Br=Sr;function Lr(){const a=Sr();a.isParent=!0,a.tView=null,a.selectedIndex=-1,a.contextLView=null,a.elementDepthCount=0,a.currentDirectiveIndex=-1,a.currentNamespace=null,a.bindingRootIndex=-1,a.bindingIndex=-1,a.currentQueryIndex=0}function _a(){return Uo.lFrame.selectedIndex}function Xa(a){Uo.lFrame.selectedIndex=a}function Oa(){const a=Uo.lFrame;return Yh(a.tView,a.selectedIndex)}function as(){Uo.lFrame.currentNamespace=wp}function Pn(){!function cs(){Uo.lFrame.currentNamespace=null}()}let Ea=!0;function ka(){return Ea}function Ka(a){Ea=a}function Po(a,c){for(let T=c.directiveStart,K=c.directiveEnd;T<K;T++){const Te=a.data[T].type.prototype,{ngAfterContentInit:Ne,ngAfterContentChecked:Xe,ngAfterViewInit:ht,ngAfterViewChecked:ii,ngOnDestroy:Oi}=Te;Ne&&(a.contentHooks??=[]).push(-T,Ne),Xe&&((a.contentHooks??=[]).push(T,Xe),(a.contentCheckHooks??=[]).push(T,Xe)),ht&&(a.viewHooks??=[]).push(-T,ht),ii&&((a.viewHooks??=[]).push(T,ii),(a.viewCheckHooks??=[]).push(T,ii)),null!=Oi&&(a.destroyHooks??=[]).push(T,Oi)}}function Jo(a,c,T){Cl(a,c,3,T)}function Ds(a,c,T,K){(3&a[ba])===T&&Cl(a,c,T,K)}function Us(a,c){let T=a[ba];(3&T)===c&&(T&=16383,T+=1,a[ba]=T)}function Cl(a,c,T,K){const Te=K??-1,Ne=c.length-1;let Xe=0;for(let ht=void 0!==K?65535&a[Hh]:0;ht<Ne;ht++)if("number"==typeof c[ht+1]){if(Xe=c[ht],null!=K&&Xe>=K)break}else c[ht]<0&&(a[Hh]+=65536),(Xe<Te||-1==Te)&&(ls(a,T,c,ht),a[Hh]=(4294901760&a[Hh])+ht+2),ht++}function gl(a,c){yu(4,a,c);const T=R(null);try{c.call(a)}finally{R(T),yu(5,a,c)}}function ls(a,c,T,K){const le=T[K]<0,Te=T[K+1],Xe=a[le?-T[K]:T[K]];le?a[ba]>>14<a[Hh]>>16&&(3&a[ba])===c&&(a[ba]+=16384,gl(Xe,Te)):gl(Xe,Te)}const bs=-1;class ro{constructor(c,T,K){this.factory=c,this.resolving=!1,this.canSeeViewProviders=T,this.injectImpl=K}}function Sp(a){return a!==bs}function rd(a){return 32767&a}function Lu(a,c){let T=function nh(a){return a>>16}(a),K=c;for(;T>0;)K=K[Vh],T--;return K}let ll=!0;function os(a){const c=ll;return ll=a,c}const ef=255,Sc=5;let Id=0;const ad={};function wd(a,c){const T=Pc(a,c);if(-1!==T)return T;const K=c[vr];K.firstCreatePass&&(a.injectorIndex=c.length,kd(K.data,a),kd(c,null),kd(K.blueprint,null));const le=Sd(a,c),Te=a.injectorIndex;if(Sp(le)){const Ne=rd(le),Xe=Lu(le,c),ht=Xe[vr].data;for(let ii=0;ii<8;ii++)c[Te+ii]=Xe[Ne+ii]|ht[Ne+ii]}return c[Te+8]=le,Te}function kd(a,c){a.push(0,0,0,0,0,0,0,0,c)}function Pc(a,c){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===c[a.injectorIndex+8]?-1:a.injectorIndex}function Sd(a,c){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;let T=0,K=null,le=c;for(;null!==le;){if(K=Dp(le),null===K)return bs;if(T++,le=le[Vh],-1!==K.injectorIndex)return K.injectorIndex|T<<16}return bs}function Dd(a,c,T){!function Do(a,c,T){let K;"string"==typeof T?K=T.charCodeAt(0)||0:T.hasOwnProperty(_o)&&(K=T[_o]),null==K&&(K=T[_o]=Id++);const le=K&ef;c.data[a+(le>>Sc)]|=1<<le}(a,c,T)}function hp(a,c,T){if(T&Ha.Optional||void 0!==a)return a;Ao()}function Cu(a,c,T,K){if(T&Ha.Optional&&void 0===K&&(K=null),!(T&(Ha.Self|Ha.Host))){const le=a[hd],Te=ms(void 0);try{return le?le.get(c,K,T&Ha.Optional):El(c,K,T&Ha.Optional)}finally{ms(Te)}}return hp(K,0,T)}function Ed(a,c,T,K=Ha.Default,le){if(null!==a){if(2048&c[ba]&&!(K&Ha.Self)){const Ne=function Qh(a,c,T,K,le){let Te=a,Ne=c;for(;null!==Te&&null!==Ne&&2048&Ne[ba]&&!(512&Ne[ba]);){const Xe=md(Te,Ne,T,K|Ha.Self,ad);if(Xe!==ad)return Xe;let ht=Te.parent;if(!ht){const ii=Ne[$p];if(ii){const Oi=ii.get(T,ad,K);if(Oi!==ad)return Oi}ht=Dp(Ne),Ne=Ne[Vh]}Te=ht}return le}(a,c,T,K,ad);if(Ne!==ad)return Ne}const Te=md(a,c,T,K,ad);if(Te!==ad)return Te}return Cu(c,T,K,le)}function md(a,c,T,K,le){const Te=function Gs(a){if("string"==typeof a)return a.charCodeAt(0)||0;const c=a.hasOwnProperty(_o)?a[_o]:void 0;return"number"==typeof c?c>=0?c&ef:Xh:c}(T);if("function"==typeof Te){if(!Cn(c,a,K))return K&Ha.Host?hp(le,0,K):Cu(c,T,K,le);try{let Ne;if(Ne=Te(K),null!=Ne||K&Ha.Optional)return Ne;Ao()}finally{Br()}}else if("number"==typeof Te){let Ne=null,Xe=Pc(a,c),ht=bs,ii=K&Ha.Host?c[Ks][Wn]:null;for((-1===Xe||K&Ha.SkipSelf)&&(ht=-1===Xe?Sd(a,c):c[Xe+8],ht!==bs&&$h(K,!1)?(Ne=c[vr],Xe=rd(ht),c=Lu(ht,c)):Xe=-1);-1!==Xe;){const Oi=c[vr];if(Rd(Te,Xe,Oi.data)){const un=uc(Xe,c,T,Ne,K,ii);if(un!==ad)return un}ht=c[Xe+8],ht!==bs&&$h(K,c[vr].data[Xe+8]===ii)&&Rd(Te,Xe,c)?(Ne=Oi,Xe=rd(ht),c=Lu(ht,c)):Xe=-1}}return le}function uc(a,c,T,K,le,Te){const Ne=c[vr],Xe=Ne.data[a+8],Oi=Dc(Xe,Ne,T,null==K?_u(Xe)&&ll:K!=Ne&&!!(3&Xe.type),le&Ha.Host&&Te===Xe);return null!==Oi?od(c,Ne,Oi,Xe):ad}function Dc(a,c,T,K,le){const Te=a.providerIndexes,Ne=c.data,Xe=1048575&Te,ht=a.directiveStart,Oi=Te>>20,$n=le?Xe+Oi:a.directiveEnd;for(let or=K?Xe:Xe+Oi;or<$n;or++){const Dr=Ne[or];if(or<ht&&T===Dr||or>=ht&&Dr.type===T)return or}if(le){const or=Ne[ht];if(or&&cc(or)&&or.type===T)return ht}return null}function od(a,c,T,K){let le=a[T];const Te=c.data;if(function wc(a){return a instanceof ro}(le)){const Ne=le;Ne.resolving&&function fl(a,c){throw c&&c.join(" > "),new Xt(-200,a)}(ia(Te[T]));const Xe=os(Ne.canSeeViewProviders);Ne.resolving=!0;const ii=Ne.injectImpl?ms(Ne.injectImpl):null;Cn(a,K,Ha.Default);try{le=a[T]=Ne.factory(void 0,Te,a,K),c.firstCreatePass&&T>=K.directiveStart&&function qa(a,c,T){const{ngOnChanges:K,ngOnInit:le,ngDoCheck:Te}=c.type.prototype;if(K){const Ne=dp(c);(T.preOrderHooks??=[]).push(a,Ne),(T.preOrderCheckHooks??=[]).push(a,Ne)}le&&(T.preOrderHooks??=[]).push(0-a,le),Te&&((T.preOrderHooks??=[]).push(a,Te),(T.preOrderCheckHooks??=[]).push(a,Te))}(T,Te[T],c)}finally{null!==ii&&ms(ii),os(Xe),Ne.resolving=!1,Br()}}return le}function Rd(a,c,T){return!!(T[c+(a>>Sc)]&1<<a)}function $h(a,c){return!(a&Ha.Self||a&Ha.Host&&c)}class $l{constructor(c,T){this._tNode=c,this._lView=T}get(c,T,K){return Ed(this._tNode,this._lView,c,Kn(K),T)}}function Xh(){return new $l(fn(),Jt())}function yh(a){return Ge(()=>{const c=a.prototype.constructor,T=c[Ya]||Jh(c),K=Object.prototype;let le=Object.getPrototypeOf(a.prototype).constructor;for(;le&&le!==K;){const Te=le[Ya]||Jh(le);if(Te&&Te!==T)return Te;le=Object.getPrototypeOf(le)}return Te=>new Te})}function Jh(a){return It(a)?()=>{const c=Jh(Ut(a));return c&&c()}:Mo(a)}function Dp(a){const c=a[vr],T=c.type;return 2===T?c.declTNode:1===T?a[Wn]:null}function ft(a){return function ec(a,c){if("class"===c)return a.classes;if("style"===c)return a.styles;const T=a.attrs;if(T){const K=T.length;let le=0;for(;le<K;){const Te=T[le];if(oi(Te))break;if(0===Te)le+=2;else if("number"==typeof Te)for(le++;le<K&&"string"==typeof T[le];)le++;else{if(Te===c)return T[le+1];le+=2}}}return null}(fn(),a)}function gd(a,c=null,T=null,K){const le=tc(a,c,T,K);return le.resolveInjectorInitializers(),le}function tc(a,c=null,T=null,K,le=new Set){const Te=[T||vs,Hc(a)];return K=K||("object"==typeof a?void 0:ui(a)),new on(Te,c||Qt(),K||null,le)}let Pd=(()=>{class a{static#e=this.THROW_IF_NOT_FOUND=rs;static#t=this.NULL=new Nl;static create(T,K){if(Array.isArray(T))return gd({name:""},K,T,"");{const le=T.name??"";return gd({name:le},T.parent,T.providers,le)}}static#i=this.\u0275prov=Pr({token:a,providedIn:"any",factory:()=>Ni(vc)});static#n=this.__NG_ELEMENT_ID__=-1}return a})();function Mp(a){return a.ngOriginalError}class qh{constructor(){this._console=console}handleError(c){const T=this._findOriginalError(c);this._console.error("ERROR",c),T&&this._console.error("ORIGINAL ERROR",T)}_findOriginalError(c){let T=c&&Mp(c);for(;T&&Mp(T);)T=Mp(T);return T||null}}const Zf=new ln("",{providedIn:"root",factory:()=>Dn(qh).handleError.bind(void 0)});let tf=(()=>{class a{static#e=this.__NG_ELEMENT_ID__=Bg;static#t=this.__NG_ENV_ID__=T=>T}return a})();class pp extends tf{constructor(c){super(),this._lView=c}onDestroy(c){return Ef(this._lView,c),()=>function Im(a,c){if(null===a[Qu])return;const T=a[Qu].indexOf(c);-1!==T&&a[Qu].splice(T,1)}(this._lView,c)}}function Bg(){return new pp(Jt())}function nf(){return Qo(fn(),Jt())}function Qo(a,c){return new cu(Uc(a,c))}let cu=(()=>{class a{constructor(T){this.nativeElement=T}static#e=this.__NG_ELEMENT_ID__=nf}return a})();function rf(a){return a instanceof cu?a.nativeElement:a}function cg(a){return c=>{setTimeout(a,void 0,c)}}const Bu=class xh extends de.B{constructor(c=!1){super(),this.destroyRef=void 0,this.__isAsync=c,Rs()&&(this.destroyRef=Dn(tf,{optional:!0})??void 0)}emit(c){const T=R(null);try{super.next(c)}finally{R(T)}}subscribe(c,T,K){let le=c,Te=T||(()=>null),Ne=K;if(c&&"object"==typeof c){const ht=c;le=ht.next?.bind(ht),Te=ht.error?.bind(ht),Ne=ht.complete?.bind(ht)}this.__isAsync&&(Te=cg(Te),le&&(le=cg(le)),Ne&&(Ne=cg(Ne)));const Xe=super.subscribe({next:le,error:Te,complete:Ne});return c instanceof pe.yU&&c.add(Xe),Xe}};function Hl(){return this._results[Symbol.iterator]()}class rh{static#e=Symbol.iterator;get changes(){return this._changes??=new Bu}constructor(c=!1){this._emitDistinctChangesOnly=c,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const T=rh.prototype;T[Symbol.iterator]||(T[Symbol.iterator]=Hl)}get(c){return this._results[c]}map(c){return this._results.map(c)}filter(c){return this._results.filter(c)}find(c){return this._results.find(c)}reduce(c,T){return this._results.reduce(c,T)}forEach(c){this._results.forEach(c)}some(c){return this._results.some(c)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(c,T){this.dirty=!1;const K=gs(c);(this._changesDetected=!function Ml(a,c,T){if(a.length!==c.length)return!1;for(let K=0;K<a.length;K++){let le=a[K],Te=c[K];if(T&&(le=T(le),Te=T(Te)),Te!==le)return!1}return!0}(this._results,K,T))&&(this._results=K,this.length=K.length,this.last=K[this.length-1],this.first=K[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(c){this._onDirty=c}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function M(a){return!(128&~a.flags)}const i=new Map;let $e=0;const km="__ngContext__";function ic(a,c){sl(c)?(a[km]=c[zh],function mr(a){i.set(a[zh],a)}(c)):a[km]=c}function Fm(a){return im(a[Al])}function Tp(a){return im(a[zs])}function im(a){for(;null!==a&&!dc(a);)a=a[zs];return a}let hc;function nc(a){hc=a}function Hd(){if(void 0!==hc)return hc;if(typeof document<"u")return document;throw new Xt(210,!1)}const gp=new ln("",{providedIn:"root",factory:()=>tp}),tp="ng",ld=new ln(""),nm=new ln("",{providedIn:"platform",factory:()=>"unknown"}),Tf=new ln(""),df=new ln("",{providedIn:"root",factory:()=>Hd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Af(a){return a}function uu(){const a=new Ap;return"browser"===Dn(nm)&&(a.store=function rm(a,c){const T=a.getElementById(c+"-state");if(T?.textContent)try{return JSON.parse(T.textContent)}catch(K){console.warn("Exception while restoring TransferState for app "+c,K)}return{}}(Hd(),Dn(gp))),a}let Ap=(()=>{class a{constructor(){this.store={},this.onSerializeCallbacks={}}static#e=this.\u0275prov=Pr({token:a,providedIn:"root",factory:uu});get(T,K){return void 0!==this.store[T]?this.store[T]:K}set(T,K){this.store[T]=K}remove(T){delete this.store[T]}hasKey(T){return this.store.hasOwnProperty(T)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(T,K){this.onSerializeCallbacks[T]=K}toJson(){for(const T in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(T))try{this.store[T]=this.onSerializeCallbacks[T]()}catch(K){console.warn("Exception in onSerialize callback: ",K)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}}return a})(),Rp=()=>null;function Lc(a,c,T=!1){return Rp(a,c,T)}const hg=new ln("",{providedIn:"root",factory:()=>!1});let fg,fc;function Pf(a){return function s_(){if(void 0===fg&&(fg=null,Ht.trustedTypes))try{fg=Ht.trustedTypes.createPolicy("angular",{createHTML:a=>a,createScript:a=>a,createScriptURL:a=>a})}catch{}return fg}()?.createHTML(a)||a}function Hu(){if(void 0===fc&&(fc=null,Ht.trustedTypes))try{fc=Ht.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:a=>a,createScript:a=>a,createScriptURL:a=>a})}catch{}return fc}function uf(a){return Hu()?.createHTML(a)||a}function Lp(a){return Hu()?.createScriptURL(a)||a}class Mc{constructor(c){this.changingThisBreaksApplicationSecurity=c}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${vt})`}}class Lf extends Mc{getTypeName(){return"HTML"}}class Vg extends Mc{getTypeName(){return"Style"}}class zu extends Mc{getTypeName(){return"Script"}}class Ff extends Mc{getTypeName(){return"URL"}}class Vm extends Mc{getTypeName(){return"ResourceURL"}}function Th(a){return a instanceof Mc?a.changingThisBreaksApplicationSecurity:a}function Ah(a,c){const T=function Bf(a){return a instanceof Mc&&a.getTypeName()||null}(a);if(null!=T&&T!==c){if("ResourceURL"===T&&"URL"===c)return!0;throw new Error(`Required a safe ${c}, got a ${T} (see ${vt})`)}return T===c}function lm(a){return new Lf(a)}function dm(a){return new Vg(a)}function Hm(a){return new zu(a)}function Ih(a){return new Ff(a)}function Uu(a){return new Vm(a)}class P_{constructor(c){this.inertDocumentHelper=c}getInertBodyElement(c){c="<body><remove></remove>"+c;try{const T=(new window.DOMParser).parseFromString(Pf(c),"text/html").body;return null===T?this.inertDocumentHelper.getInertBodyElement(c):(T.removeChild(T.firstChild),T)}catch{return null}}}class Fp{constructor(c){this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(c){const T=this.inertDocument.createElement("template");return T.innerHTML=Pf(c),T}}const zm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function np(a){return(a=String(a)).match(zm)?a:"unsafe:"+a}function Gu(a){const c={};for(const T of a.split(","))c[T]=!0;return c}function Bp(...a){const c={};for(const T of a)for(const K in T)T.hasOwnProperty(K)&&(c[K]=!0);return c}const Um=Gu("area,br,col,hr,img,wbr"),mg=Gu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),hf=Gu("rp,rt"),pf=Bp(Um,Bp(mg,Gu("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Bp(hf,Gu("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Bp(hf,mg)),zg=Gu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),kh=Bp(zg,Gu("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Gu("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),gg=Gu("script,style,template");class L_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(c){let T=c.firstChild,K=!0,le=[];for(;T;)if(T.nodeType===Node.ELEMENT_NODE?K=this.startElement(T):T.nodeType===Node.TEXT_NODE?this.chars(T.nodeValue):this.sanitizedSomething=!0,K&&T.firstChild)le.push(T),T=Nf(T);else for(;T;){T.nodeType===Node.ELEMENT_NODE&&this.endElement(T);let Te=F_(T);if(Te){T=Te;break}T=le.pop()}return this.buf.join("")}startElement(c){const T=Wm(c).toLowerCase();if(!pf.hasOwnProperty(T))return this.sanitizedSomething=!0,!gg.hasOwnProperty(T);this.buf.push("<"),this.buf.push(T);const K=c.attributes;for(let le=0;le<K.length;le++){const Te=K.item(le),Ne=Te.name,Xe=Ne.toLowerCase();if(!kh.hasOwnProperty(Xe)){this.sanitizedSomething=!0;continue}let ht=Te.value;zg[Xe]&&(ht=np(ht)),this.buf.push(" ",Ne,'="',Ou(ht),'"')}return this.buf.push(">"),!0}endElement(c){const T=Wm(c).toLowerCase();pf.hasOwnProperty(T)&&!Um.hasOwnProperty(T)&&(this.buf.push("</"),this.buf.push(T),this.buf.push(">"))}chars(c){this.buf.push(Ou(c))}}function F_(a){const c=a.nextSibling;if(c&&a!==c.previousSibling)throw B_(c);return c}function Nf(a){const c=a.firstChild;if(c&&function _g(a,c){return(a.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(a,c))throw B_(c);return c}function Wm(a){const c=a.nodeName;return"string"==typeof c?c:"FORM"}function B_(a){return new Error(`Failed to sanitize html because the element is clobbered: ${a.outerHTML}`)}const vg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vf=/([^\#-~ |!])/g;function Ou(a){return a.replace(/&/g,"&").replace(vg,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(Vf,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Cm;function Rh(a,c){let T=null;try{Cm=Cm||function xm(a){const c=new Fp(a);return function Hg(){try{return!!(new window.DOMParser).parseFromString(Pf(""),"text/html")}catch{return!1}}()?new P_(c):c}(a);let K=c?String(c):"";T=Cm.getInertBodyElement(K);let le=5,Te=K;do{if(0===le)throw new Error("Failed to sanitize html because the input is unstable");le--,K=Te,Te=T.innerHTML,T=Cm.getInertBodyElement(K)}while(K!==Te);return Pf((new L_).sanitizeChildren(jm(T)||T))}finally{if(T){const K=jm(T)||T;for(;K.firstChild;)K.removeChild(K.firstChild)}}}function jm(a){return"content"in a&&function Ym(a){return a.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===a.nodeName}(a)?a.content:null}var lh=function(a){return a[a.NONE=0]="NONE",a[a.HTML=1]="HTML",a[a.STYLE=2]="STYLE",a[a.SCRIPT=3]="SCRIPT",a[a.URL=4]="URL",a[a.RESOURCE_URL=5]="RESOURCE_URL",a}(lh||{});function Ug(a){const c=Ke();return c?uf(c.sanitize(lh.HTML,a)||""):Ah(a,"HTML")?uf(Th(a)):Rh(Hd(),Va(a))}function bg(a){const c=Ke();return c?c.sanitize(lh.URL,a)||"":Ah(a,"URL")?Th(a):np(Va(a))}function l_(a){const c=Ke();if(c)return Lp(c.sanitize(lh.RESOURCE_URL,a)||"");if(Ah(a,"ResourceURL"))return Lp(Th(a));throw new Xt(904,!1)}function u_(a,c,T){return function c_(a,c){return"src"===c&&("embed"===a||"frame"===a||"iframe"===a||"media"===a||"script"===a)||"href"===c&&("base"===a||"link"===a)?l_:bg}(c,T)(a)}function Ke(){const a=Jt();return a&&a[Zc].sanitizer}const xt=/^>|^->|<!--|-->|--!>|<!-$/g,qt=/(<|>)/g,Ai="\u200b$1\u200b";function vl(a){return a.ownerDocument.defaultView}function Co(a){return a instanceof Function?a():a}var Vo=function(a){return a[a.Important=1]="Important",a[a.DashCase=2]="DashCase",a}(Vo||{});let Wu;function op(a,c){return Wu(a,c)}function ju(a,c,T,K,le){if(null!=K){let Te,Ne=!1;dc(K)?Te=K:sl(K)&&(Ne=!0,K=K[Ia]);const Xe=pl(K);0===a&&null!==T?null==le?Xm(c,T,Xe):mf(c,T,Xe,le||null,!0):1===a&&null!==T?mf(c,T,Xe,le||null,!0):2===a?function Wg(a,c,T){const K=zp(a,c);K&&function Yv(a,c,T,K){a.removeChild(c,T,K)}(a,K,c,T)}(c,Xe,Ne):3===a&&c.destroyNode(Xe),null!=Te&&function bv(a,c,T,K,le){const Te=T[qd];Te!==pl(T)&&ju(c,a,K,Te,le);for(let Xe=xl;Xe<T.length;Xe++){const ht=T[Xe];Qm(ht[vr],ht,a,c,K,Te)}}(c,a,Te,T,le)}}function zf(a,c){return a.createComment(function Hi(a){return a.replace(xt,c=>c.replace(qt,Ai))}(c))}function $d(a,c,T){return a.createElement(c,T)}function dd(a,c){c[Zc].changeDetectionScheduler?.notify(1),Qm(a,c,c[lo],2,null,null)}function Vp(a,c){const T=a[kc],K=T.indexOf(c);T.splice(K,1)}function gc(a,c){if(a.length<=xl)return;const T=xl+c,K=a[T];if(K){const le=K[ph];null!==le&&le!==a&&Vp(le,K),c>0&&(a[T-1][zs]=K[zs]);const Te=yl(a,xl+c);!function xg(a,c){dd(a,c),c[Ia]=null,c[Wn]=null}(K[vr],K);const Ne=Te[fh];null!==Ne&&Ne.detachView(Te[vr]),K[oa]=null,K[zs]=null,K[ba]&=-129}return K}function Yu(a,c){if(!(256&c[ba])){const T=c[lo];T.destroyNode&&Qm(a,c,T,3,null,null),function vd(a){let c=a[Al];if(!c)return Gg(a[vr],a);for(;c;){let T=null;if(sl(c))T=c[Al];else{const K=c[xl];K&&(T=K)}if(!T){for(;c&&!c[zs]&&c!==a;)sl(c)&&Gg(c[vr],c),c=c[oa];null===c&&(c=a),sl(c)&&Gg(c[vr],c),T=c&&c[zs]}c=T}}(c)}}function Gg(a,c){if(256&c[ba])return;const T=R(null);try{c[ba]&=-129,c[ba]|=256,c[Zu]&&function C(a){if(se(a),Q(a))for(let c=0;c<a.producerNode.length;c++)Y(a.producerNode[c],a.producerIndexOfThis[c]);a.producerNode.length=a.producerLastReadVersion.length=a.producerIndexOfThis.length=0,a.liveConsumerNode&&(a.liveConsumerNode.length=a.liveConsumerIndexOfThis.length=0)}(c[Zu]),function Gf(a,c){let T;if(null!=a&&null!=(T=a.destroyHooks))for(let K=0;K<T.length;K+=2){const le=c[T[K]];if(!(le instanceof ro)){const Te=T[K+1];if(Array.isArray(Te))for(let Ne=0;Ne<Te.length;Ne+=2){const Xe=le[Te[Ne]],ht=Te[Ne+1];yu(4,Xe,ht);try{ht.call(Xe)}finally{yu(5,Xe,ht)}}else{yu(4,le,Te);try{Te.call(le)}finally{yu(5,le,Te)}}}}}(a,c),function Hp(a,c){const T=a.cleanup,K=c[Zr];if(null!==T)for(let Te=0;Te<T.length-1;Te+=2)if("string"==typeof T[Te]){const Ne=T[Te+3];Ne>=0?K[Ne]():K[-Ne].unsubscribe(),Te+=2}else T[Te].call(K[T[Te+1]]);null!==K&&(c[Zr]=null);const le=c[Qu];if(null!==le){c[Qu]=null;for(let Te=0;Te<le.length;Te++)(0,le[Te])()}}(a,c),1===c[vr].type&&c[lo].destroy();const K=c[ph];if(null!==K&&dc(c[oa])){K!==c[oa]&&Vp(K,c);const le=c[fh];null!==le&&le.detachView(a)}!function dl(a){i.delete(a[zh])}(c)}finally{R(T)}}function Km(a,c,T){return function Ns(a,c,T){let K=c;for(;null!==K&&40&K.type;)K=(c=K).parent;if(null===K)return T[Ia];{const{componentOffset:le}=K;if(le>-1){const{encapsulation:Te}=a.data[K.directiveStart+le];if(Te===yd.None||Te===yd.Emulated)return null}return Uc(K,T)}}(a,c.parent,T)}function mf(a,c,T,K,le){a.insertBefore(c,T,K,le)}function Xm(a,c,T){a.appendChild(c,T)}function _v(a,c,T,K,le){null!==K?mf(a,c,T,K,le):Xm(a,c,T)}function zp(a,c){return a.parentNode(c)}function p_(a,c,T){return is(a,c,T)}let wm,is=function V_(a,c,T){return 40&a.type?Uc(a,T):null};function Jm(a,c,T,K){const le=Km(a,K,c),Te=c[lo],Xe=p_(K.parent||c[Wn],K,c);if(null!=le)if(Array.isArray(T))for(let ht=0;ht<T.length;ht++)_v(Te,le,T[ht],Xe,!1);else _v(Te,le,T,Xe,!1);void 0!==wm&&wm(Te,K,c,T,le)}function cm(a,c){if(null!==c){const T=c.type;if(3&T)return Uc(c,a);if(4&T)return wg(-1,a[c.index]);if(8&T){const K=c.child;if(null!==K)return cm(a,K);{const le=a[c.index];return dc(le)?wg(-1,le):pl(le)}}if(32&T)return op(c,a)()||pl(a[c.index]);{const K=Up(a,c);return null!==K?Array.isArray(K)?K[0]:cm(Wc(a[Ks]),K):cm(a,c.next)}}return null}function Up(a,c){return null!==c?a[Ks][Wn].projection[c.projection]:null}function wg(a,c){const T=xl+a+1;if(T<c.length){const K=c[T],le=K[vr].firstChild;if(null!==le)return cm(K,le)}return c[qd]}function gf(a,c,T,K,le,Te,Ne){for(;null!=T;){const Xe=K[T.index],ht=T.type;if(Ne&&0===c&&(Xe&&ic(pl(Xe),K),T.flags|=2),32&~T.flags)if(8&ht)gf(a,c,T.child,K,le,Te,!1),ju(c,a,le,Xe,Te);else if(32&ht){const ii=op(T,K);let Oi;for(;Oi=ii();)ju(c,a,le,Oi,Te);ju(c,a,le,Xe,Te)}else 16&ht?_f(a,c,K,T,le,Te):ju(c,a,le,Xe,Te);T=Ne?T.projectionNext:T.next}}function Qm(a,c,T,K,le,Te){gf(T,K,a.firstChild,c,le,Te,!1)}function _f(a,c,T,K,le,Te){const Ne=T[Ks],ht=Ne[Wn].projection[K.projection];if(Array.isArray(ht))for(let ii=0;ii<ht.length;ii++)ju(c,a,le,ht[ii],Te);else{let ii=ht;const Oi=Ne[oa];M(K)&&(ii.flags|=128),gf(a,c,ii,Oi,le,Te,!0)}}function Zm(a,c,T){""===T?a.removeAttribute(c,"class"):a.setAttribute(c,"class",T)}function qm(a,c,T){const{mergedAttrs:K,classes:le,styles:Te}=T;null!==K&&ks(a,c,K),null!==le&&Zm(a,c,le),null!==Te&&function yv(a,c,T){a.setAttribute(c,"style",T)}(a,c,Te)}const As={};function vf(a=1){H_(Rt(),Jt(),_a()+a,!1)}function H_(a,c,T,K){if(!K)if(3&~c[ba]){const Te=a.preOrderHooks;null!==Te&&Ds(c,Te,0,T)}else{const Te=a.preOrderCheckHooks;null!==Te&&Jo(c,Te,T)}Xa(T)}function eg(a,c=Ha.Default){const T=Jt();return null===T?Ni(a,c):Ed(fn(),T,Ut(a),c)}function sp(){throw new Error("invalid")}function Nc(a,c,T,K,le,Te){const Ne=R(null);try{let Xe=null;le&Ol.SignalBased&&(Xe=c[K][E]),null!==Xe&&void 0!==Xe.transformFn&&(Te=Xe.transformFn(Te)),le&Ol.HasDecoratorInputTransform&&(Te=a.inputTransforms[K].call(c,Te)),null!==a.setInput?a.setInput(c,Xe,Te,T,K):th(c,Xe,K,Te)}finally{R(Ne)}}function y(a,c,T,K,le,Te,Ne,Xe,ht,ii,Oi){const un=c.blueprint.slice();return un[Ia]=le,un[ba]=204|K,(null!==ii||a&&2048&a[ba])&&(un[ba]|=2048),sg(un),un[oa]=un[Vh]=a,un[tl]=T,un[Zc]=Ne||a&&a[Zc],un[lo]=Xe||a&&a[lo],un[hd]=ht||a&&a[hd]||null,un[Wn]=Te,un[zh]=function ua(){return $e++}(),un[nd]=Oi,un[$p]=ii,un[Ks]=2==c.type?a[Ks]:un,un}function H(a,c,T,K,le){let Te=a.data[c];if(null===Te)Te=function Z(a,c,T,K,le){const Te=$i(),Ne=Fn(),ht=a.data[c]=function Fl(a,c,T,K,le,Te){let Ne=c?c.injectorIndex:-1,Xe=0;return Le()&&(Xe|=128),{type:T,index:K,insertBeforeIndex:null,injectorIndex:Ne,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:Xe,providerIndexes:0,value:le,attrs:Te,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:c,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,Ne?Te:Te&&Te.parent,T,c,K,le);return null===a.firstChild&&(a.firstChild=ht),null!==Te&&(Ne?null==Te.child&&null!==ht.parent&&(Te.child=ht):null===Te.next&&(Te.next=ht,ht.prev=Te)),ht}(a,c,T,K,le),function Vn(){return Uo.lFrame.inI18n}()&&(Te.flags|=32);else if(64&Te.type){Te.type=T,Te.value=K,Te.attrs=le;const Ne=function vn(){const a=Uo.lFrame,c=a.currentTNode;return a.isParent?c:c.parent}();Te.injectorIndex=null===Ne?-1:Ne.injectorIndex}return kn(Te,!0),Te}function Oe(a,c,T,K){if(0===T)return-1;const le=c.length;for(let Te=0;Te<T;Te++)c.push(K),a.blueprint.push(K),a.data.push(null);return le}function Fe(a,c,T,K,le){const Te=_a(),Ne=2&K;try{Xa(-1),Ne&&c.length>ko&&H_(a,c,ko,!1),yu(Ne?2:0,le),T(K,le)}finally{Xa(Te),yu(Ne?3:1,le)}}function Ye(a,c,T){if(Ru(c)){const K=R(null);try{const Te=c.directiveEnd;for(let Ne=c.directiveStart;Ne<Te;Ne++){const Xe=a.data[Ne];Xe.contentQueries&&Xe.contentQueries(1,T[Ne],Ne)}}finally{R(K)}}}function bt(a,c,T){De()&&(function g_(a,c,T,K){const le=T.directiveStart,Te=T.directiveEnd;_u(T)&&function QC(a,c,T){const K=Uc(c,a),le=_i(T);let Ne=16;T.signals?Ne=4096:T.onPush&&(Ne=64);const Xe=X0(a,y(a,le,null,Ne,K,c,null,a[Zc].rendererFactory.createRenderer(K,T),null,null,null));a[c.index]=Xe}(c,T,a.data[le+T.componentOffset]),a.firstCreatePass||wd(T,c),ic(K,c);const Ne=T.initialInputs;for(let Xe=le;Xe<Te;Xe++){const ht=a.data[Xe],ii=od(c,a,Xe,T);ic(ii,c),null!==Ne&&ZC(0,Xe-le,ii,ht,0,Ne),cc(ht)&&(Gc(T.index,c)[tl]=od(c,a,Xe,T))}}(a,c,T,Uc(T,c)),!(64&~T.flags)&&__(a,c,T))}function $t(a,c,T=Uc){const K=c.localNames;if(null!==K){let le=c.index+1;for(let Te=0;Te<K.length;Te+=2){const Ne=K[Te+1],Xe=-1===Ne?T(c,a):a[Ne];a[le++]=Xe}}}function _i(a){const c=a.tView;return null===c||c.incompleteFirstPass?a.tView=Ii(1,null,a.template,a.decls,a.vars,a.directiveDefs,a.pipeDefs,a.viewQuery,a.schemas,a.consts,a.id):c}function Ii(a,c,T,K,le,Te,Ne,Xe,ht,ii,Oi){const un=ko+K,$n=un+le,or=function bn(a,c){const T=[];for(let K=0;K<c;K++)T.push(K<a?null:As);return T}(un,$n),Dr="function"==typeof ii?ii():ii;return or[vr]={type:a,blueprint:or,template:T,queries:null,viewQuery:Xe,declTNode:c,data:or.slice().fill(null,un),bindingStartIndex:un,expandoStartIndex:$n,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof Te?Te():Te,pipeRegistry:"function"==typeof Ne?Ne():Ne,firstChild:null,schemas:ht,consts:Dr,incompleteFirstPass:!1,ssrId:Oi}}let ma=()=>null;function _c(a,c,T,K,le){for(let Te in c){if(!c.hasOwnProperty(Te))continue;const Ne=c[Te];if(void 0===Ne)continue;K??={};let Xe,ht=Ol.None;Array.isArray(Ne)?(Xe=Ne[0],ht=Ne[1]):Xe=Ne;let ii=Te;if(null!==le){if(!le.hasOwnProperty(Te))continue;ii=le[Te]}0===a?fu(K,T,ii,Xe,ht):fu(K,T,ii,Xe)}return K}function fu(a,c,T,K,le){let Te;a.hasOwnProperty(T)?(Te=a[T]).push(c,K):Te=a[T]=[c,K],void 0!==le&&Te.push(le)}function Js(a,c,T,K,le,Te,Ne,Xe){const ht=Uc(c,T);let Oi,ii=c.inputs;!Xe&&null!=ii&&(Oi=ii[K])?(Q0(a,T,Oi,K,le),_u(c)&&function Bl(a,c){const T=Gc(c,a);16&T[ba]||(T[ba]|=64)}(T,c.index)):3&c.type&&(K=function cd(a){return"class"===a?"className":"for"===a?"htmlFor":"formaction"===a?"formAction":"innerHtml"===a?"innerHTML":"readonly"===a?"readOnly":"tabindex"===a?"tabIndex":a}(K),le=null!=Ne?Ne(le,c.value||"",K):le,Te.setProperty(ht,K,le))}function Ld(a,c,T,K){if(De()){const le=null===K?null:{"":-1},Te=function xv(a,c){const T=a.directiveRegistry;let K=null,le=null;if(T)for(let Te=0;Te<T.length;Te++){const Ne=T[Te];if(Cs(c,Ne.selectors,!1))if(K||(K=[]),cc(Ne))if(null!==Ne.findHostDirectiveDefs){const Xe=[];le=le||new Map,Ne.findHostDirectiveDefs(Ne,Xe,le),K.unshift(...Xe,Ne),jg(a,c,Xe.length)}else K.unshift(Ne),jg(a,c,0);else le=le||new Map,Ne.findHostDirectiveDefs?.(Ne,K,le),K.push(Ne)}return null===K?null:[K,le]}(a,T);let Ne,Xe;null===Te?Ne=Xe=null:[Ne,Xe]=Te,null!==Ne&&ch(a,c,T,Ne,le,Xe),le&&function Kv(a,c,T){if(c){const K=a.localNames=[];for(let le=0;le<c.length;le+=2){const Te=T[c[le+1]];if(null==Te)throw new Xt(-301,!1);K.push(c[le],Te)}}}(T,K,le)}T.mergedAttrs=zt(T.mergedAttrs,T.attrs)}function ch(a,c,T,K,le,Te){for(let ii=0;ii<K.length;ii++)Dd(wd(T,c),a,K[ii].type);!function G_(a,c,T){a.flags|=1,a.directiveStart=c,a.directiveEnd=c+T,a.providerIndexes=c}(T,a.data.length,K.length);for(let ii=0;ii<K.length;ii++){const Oi=K[ii];Oi.providersResolver&&Oi.providersResolver(Oi)}let Ne=!1,Xe=!1,ht=Oe(a,c,K.length,null);for(let ii=0;ii<K.length;ii++){const Oi=K[ii];T.mergedAttrs=zt(T.mergedAttrs,Oi.hostAttrs),$0(a,T,c,ht,Oi),Xv(ht,Oi,le),null!==Oi.contentQueries&&(T.flags|=4),(null!==Oi.hostBindings||null!==Oi.hostAttrs||0!==Oi.hostVars)&&(T.flags|=64);const un=Oi.type.prototype;!Ne&&(un.ngOnChanges||un.ngOnInit||un.ngDoCheck)&&((a.preOrderHooks??=[]).push(T.index),Ne=!0),!Xe&&(un.ngOnChanges||un.ngDoCheck)&&((a.preOrderCheckHooks??=[]).push(T.index),Xe=!0),ht++}!function $u(a,c,T){const le=c.directiveEnd,Te=a.data,Ne=c.attrs,Xe=[];let ht=null,ii=null;for(let Oi=c.directiveStart;Oi<le;Oi++){const un=Te[Oi],$n=T?T.get(un):null,Dr=$n?$n.outputs:null;ht=_c(0,un.inputs,Oi,ht,$n?$n.inputs:null),ii=_c(1,un.outputs,Oi,ii,Dr);const ra=null===ht||null===Ne||No(c)?null:F1(ht,Oi,Ne);Xe.push(ra)}null!==ht&&(ht.hasOwnProperty("class")&&(c.flags|=8),ht.hasOwnProperty("style")&&(c.flags|=16)),c.initialInputs=Xe,c.inputs=ht,c.outputs=ii}(a,T,Te)}function __(a,c,T){const K=T.directiveStart,le=T.directiveEnd,Te=T.index,Ne=function jr(){return Uo.lFrame.currentDirectiveIndex}();try{Xa(Te);for(let Xe=K;Xe<le;Xe++){const ht=a.data[Xe],ii=c[Xe];wr(Xe),(null!==ht.hostBindings||0!==ht.hostVars||null!==ht.hostAttrs)&&v_(ht,ii)}}finally{Xa(-1),wr(Ne)}}function v_(a,c){null!==a.hostBindings&&a.hostBindings(1,c)}function jg(a,c,T){c.componentOffset=T,(a.components??=[]).push(c.index)}function Xv(a,c,T){if(T){if(c.exportAs)for(let K=0;K<c.exportAs.length;K++)T[c.exportAs[K]]=a;cc(c)&&(T[""]=a)}}function $0(a,c,T,K,le){a.data[K]=le;const Te=le.factory||(le.factory=Mo(le.type)),Ne=new ro(Te,cc(le),eg);a.blueprint[K]=Ne,T[K]=Ne,function $v(a,c,T,K,le){const Te=le.hostBindings;if(Te){let Ne=a.hostBindingOpCodes;null===Ne&&(Ne=a.hostBindingOpCodes=[]);const Xe=~c.index;(function U_(a){let c=a.length;for(;c>0;){const T=a[--c];if("number"==typeof T&&T<0)return T}return 0})(Ne)!=Xe&&Ne.push(Xe),Ne.push(T,K,Te)}}(a,c,K,Oe(a,T,le.hostVars,As),le)}function um(a,c,T,K,le,Te){const Ne=Uc(a,c);!function K0(a,c,T,K,le,Te,Ne){if(null==Te)a.removeAttribute(c,le,T);else{const Xe=null==Ne?Va(Te):Ne(Te,K||"",le);a.setAttribute(c,le,Xe,T)}}(c[lo],Ne,Te,a.value,T,K,le)}function ZC(a,c,T,K,le,Te){const Ne=Te[c];if(null!==Ne)for(let Xe=0;Xe<Ne.length;)Nc(K,T,Ne[Xe++],Ne[Xe++],Ne[Xe++],Ne[Xe++])}function F1(a,c,T){let K=null,le=0;for(;le<T.length;){const Te=T[le];if(0!==Te)if(5!==Te){if("number"==typeof Te)break;if(a.hasOwnProperty(Te)){null===K&&(K=[]);const Ne=a[Te];for(let Xe=0;Xe<Ne.length;Xe+=3)if(Ne[Xe]===c){K.push(Te,Ne[Xe+1],Ne[Xe+2],T[le+1]);break}}le+=2}else le+=2;else le+=4}return K}function ey(a,c,T,K){return[a,!0,0,c,null,K,null,T,null,null]}function bx(a,c){const T=a.contentQueries;if(null!==T){const K=R(null);try{for(let le=0;le<T.length;le+=2){const Ne=T[le+1];if(-1!==Ne){const Xe=a.data[Ne];Ja(T[le]),Xe.contentQueries(2,c[Ne],Ne)}}}finally{R(K)}}}function X0(a,c){return a[Al]?a[Nd][zs]=c:a[Al]=c,a[Nd]=c,c}function W_(a,c,T){Ja(0);const K=R(null);try{c(a,T)}finally{R(K)}}function Yg(a){return a[Zr]||(a[Zr]=[])}function ty(a){return a.cleanup||(a.cleanup=[])}function J0(a,c,T){return(null===a||cc(a))&&(T=function wf(a){for(;Array.isArray(a);){if("object"==typeof a[Uh])return a;a=a[Ia]}return null}(T[c.index])),T[lo]}function Qv(a,c){const T=a[hd],K=T?T.get(qh,null):null;K&&K.handleError(c)}function Q0(a,c,T,K,le){for(let Te=0;Te<T.length;){const Ne=T[Te++],Xe=T[Te++],ht=T[Te++];Nc(a.data[Ne],c[Ne],K,Xe,ht,le)}}function tg(a,c,T){const K=Qp(c,a);!function ff(a,c,T){a.setValue(c,T)}(a[lo],K,T)}function Z0(a,c){const T=Gc(c,a),K=T[vr];!function yx(a,c){for(let T=c.length;T<a.blueprint.length;T++)c.push(a.blueprint[T])}(K,T);const le=T[Ia];null!==le&&null===T[nd]&&(T[nd]=Lc(le,T[hd])),iy(K,T,T[tl])}function iy(a,c,T){Ln(c);try{const K=a.viewQuery;null!==K&&W_(1,K,T);const le=a.template;null!==le&&Fe(a,c,le,1,T),a.firstCreatePass&&(a.firstCreatePass=!1),c[fh]?.finishViewCreation(a),a.staticContentQueries&&bx(a,c),a.staticViewQueries&&W_(2,a.viewQuery,T);const Te=a.components;null!==Te&&function xx(a,c){for(let T=0;T<c.length;T++)Z0(a,c[T])}(c,Te)}catch(K){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),K}finally{c[ba]&=-5,Lr()}}function Sg(a,c){return!c||null===c.firstChild||M(a)}function Cv(a,c,T,K=!0){const le=c[vr];if(function Uf(a,c,T,K){const le=xl+K,Te=T.length;K>0&&(T[le-1][zs]=c),K<Te-xl?(c[zs]=T[le],_s(T,xl+K,c)):(T.push(c),c[zs]=null),c[oa]=T;const Ne=c[ph];null!==Ne&&T!==Ne&&function Cg(a,c){const T=a[kc];c[Ks]!==c[oa][oa][Ks]&&(a[ba]|=Wh.HasTransplantedViews),null===T?a[kc]=[c]:T.push(c)}(Ne,c);const Xe=c[fh];null!==Xe&&Xe.insertView(a),Jf(c),c[ba]|=128}(le,c,a,T),K){const Ne=wg(T,a),Xe=c[lo],ht=zp(Xe,a[qd]);null!==ht&&function $m(a,c,T,K,le,Te){K[Ia]=le,K[Wn]=c,Qm(a,K,T,1,le,Te)}(le,a[Wn],Xe,c,ht,Ne)}const Te=c[nd];null!==Te&&null!==Te.firstChild&&(Te.firstChild=null)}function wv(a,c,T,K,le=!1){for(;null!==T;){const Te=c[T.index];null!==Te&&K.push(pl(Te)),dc(Te)&&j_(Te,K);const Ne=T.type;if(8&Ne)wv(a,c,T.child,K);else if(32&Ne){const Xe=op(T,c);let ht;for(;ht=Xe();)K.push(ht)}else if(16&Ne){const Xe=Up(c,T);if(Array.isArray(Xe))K.push(...Xe);else{const ht=Wc(c[Ks]);wv(ht[vr],ht,Xe,K,!0)}}T=le?T.projectionNext:T.next}return K}function j_(a,c){for(let T=xl;T<a.length;T++){const K=a[T],le=K[vr].firstChild;null!==le&&wv(K[vr],K,le,c)}a[qd]!==a[Ia]&&c.push(a[qd])}let Zv=[];const Cx={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:a=>{Df(a.lView)},consumerOnSignalRead(){this.lView[Zu]=this}},wx=100;function Sv(a,c=!0,T=0){const K=a[Zc],le=K.rendererFactory;le.begin?.();try{!function ry(a,c){hm(a,c);let T=0;for(;Sf(a);){if(T===wx)throw new Xt(103,!1);T++,hm(a,1)}}(a,T)}catch(Ne){throw c&&Qv(a,Ne),Ne}finally{le.end?.(),K.inlineEffectRunner?.flush()}}function tw(a,c,T,K){const le=c[ba];if(!(256&~le))return;c[Zc].inlineEffectRunner?.flush(),Ln(c);let Ne=null,Xe=null;(function ib(a){return 2!==a.type})(a)&&(Xe=function qC(a){return a[Zu]??function ew(a){const c=Zv.pop()??Object.create(Cx);return c.lView=a,c}(a)}(c),Ne=function I(a){return a&&(a.nextProducerIndex=0),R(a)}(Xe));try{sg(c),function mn(a){return Uo.lFrame.bindingIndex=a}(a.bindingStartIndex),null!==T&&Fe(a,c,T,2,K);const ht=!(3&~le);if(ht){const un=a.preOrderCheckHooks;null!==un&&Jo(c,un,null)}else{const un=a.preOrderHooks;null!==un&&Ds(c,un,0,null),Us(c,0)}if(function ay(a){for(let c=Fm(a);null!==c;c=Tp(c)){if(!(c[ba]&Wh.HasTransplantedViews))continue;const T=c[kc];for(let K=0;K<T.length;K++){vh(T[K])}}}(c),b_(c,0),null!==a.contentQueries&&bx(a,c),ht){const un=a.contentCheckHooks;null!==un&&Jo(c,un)}else{const un=a.contentHooks;null!==un&&Ds(c,un,1),Us(c,1)}!function z_(a,c){const T=a.hostBindingOpCodes;if(null!==T)try{for(let K=0;K<T.length;K++){const le=T[K];if(le<0)Xa(~le);else{const Te=le,Ne=T[++K],Xe=T[++K];br(Ne,Te),Xe(2,c[Te])}}}finally{Xa(-1)}}(a,c);const ii=a.components;null!==ii&&Sx(c,ii,0);const Oi=a.viewQuery;if(null!==Oi&&W_(2,Oi,K),ht){const un=a.viewCheckHooks;null!==un&&Jo(c,un)}else{const un=a.viewHooks;null!==un&&Ds(c,un,2),Us(c,2)}if(!0===a.firstUpdatePass&&(a.firstUpdatePass=!1),c[Zd]){for(const un of c[Zd])un();c[Zd]=null}c[ba]&=-73}catch(ht){throw Df(c),ht}finally{null!==Xe&&(function x(a,c){if(R(c),a&&void 0!==a.producerNode&&void 0!==a.producerIndexOfThis&&void 0!==a.producerLastReadVersion){if(Q(a))for(let T=a.nextProducerIndex;T<a.producerNode.length;T++)Y(a.producerNode[T],a.producerIndexOfThis[T]);for(;a.producerNode.length>a.nextProducerIndex;)a.producerNode.pop(),a.producerLastReadVersion.pop(),a.producerIndexOfThis.pop()}}(Xe,Ne),function ny(a){a.lView[Zu]!==a&&(a.lView=null,Zv.push(a))}(Xe)),Lr()}}function b_(a,c){for(let T=Fm(a);null!==T;T=Tp(T))for(let K=xl;K<T.length;K++)oy(T[K],c)}function nb(a,c,T){oy(Gc(c,a),T)}function oy(a,c){Zp(a)&&hm(a,c)}function hm(a,c){const K=a[vr],le=a[ba],Te=a[Zu];let Ne=!!(0===c&&16&le);if(Ne||=!!(64&le&&0===c),Ne||=!!(1024&le),Ne||=!(!Te?.dirty||!g(Te)),Te&&(Te.dirty=!1),a[ba]&=-9217,Ne)tw(K,a,K.template,a[tl]);else if(8192&le){b_(a,1);const Xe=K.components;null!==Xe&&Sx(a,Xe,1)}}function Sx(a,c,T){for(let K=0;K<c.length;K++)nb(a,c[K],T)}function Dv(a){for(a[Zc].changeDetectionScheduler?.notify();a;){a[ba]|=64;const c=Wc(a);if(eu(a)&&!c)return a;a=c}return null}class Ev{get rootNodes(){const c=this._lView,T=c[vr];return wv(T,c,T.firstChild,[])}constructor(c,T,K=!0){this._lView=c,this._cdRefInjectingView=T,this.notifyErrorHandler=K,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[tl]}set context(c){this._lView[tl]=c}get destroyed(){return!(256&~this._lView[ba])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const c=this._lView[oa];if(dc(c)){const T=c[8],K=T?T.indexOf(this):-1;K>-1&&(gc(c,K),yl(T,K))}this._attachedToViewContainer=!1}Yu(this._lView[vr],this._lView)}onDestroy(c){Ef(this._lView,c)}markForCheck(){Dv(this._cdRefInjectingView||this._lView)}detach(){this._lView[ba]&=-129}reattach(){Jf(this._lView),this._lView[ba]|=128}detectChanges(){this._lView[ba]|=1024,Sv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Xt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,dd(this._lView[vr],this._lView)}attachToAppRef(c){if(this._attachedToViewContainer)throw new Xt(902,!1);this._appRef=c,Jf(this._lView)}}let qv=(()=>{class a{static#e=this.__NG_ELEMENT_ID__=Dx}return a})();const iw=qv,nw=class extends iw{constructor(c,T,K){super(),this._declarationLView=c,this._declarationTContainer=T,this.elementRef=K}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(c,T){return this.createEmbeddedViewImpl(c,T)}createEmbeddedViewImpl(c,T,K){const le=function $g(a,c,T,K){const le=R(null);try{const Te=c.tView,ht=y(a,Te,T,4096&a[ba]?4096:16,null,c,null,null,K?.injector??null,K?.embeddedViewInjector??null,K?.dehydratedView??null);ht[ph]=a[c.index];const Oi=a[fh];return null!==Oi&&(ht[fh]=Oi.createEmbeddedView(Te)),iy(Te,ht,T),ht}finally{R(le)}}(this._declarationLView,this._declarationTContainer,c,{embeddedViewInjector:T,dehydratedView:K});return new Ev(le)}};function Dx(){return e0(fn(),Jt())}function e0(a,c){return 4&a.type?new nw(c,a,Qo(a,c)):null}class o0{}class my{}class gy{}class gw{resolveComponentFactory(c){throw function Bx(a){const c=Error(`No component factory found for ${ui(a)}.`);return c.ngComponent=a,c}(c)}}let s0=(()=>{class a{static#e=this.NULL=new gw}return a})();class Nx{}let _w=(()=>{class a{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function Vx(){const a=Jt(),T=Gc(fn().index,a);return(sl(T)?T:a)[lo]}()}return a})(),K_=(()=>{class a{static#e=this.\u0275prov=Pr({token:a,providedIn:"root",factory:()=>null})}return a})();const Hx={},lb=new Set;function Dm(a){lb.has(a)||(lb.add(a),performance?.mark?.("mark_feature_usage",{detail:{feature:a}}))}function zx(...a){}class Tu{constructor({enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:T=!1,shouldCoalesceRunChangeDetection:K=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Bu(!1),this.onMicrotaskEmpty=new Bu(!1),this.onStable=new Bu(!1),this.onError=new Bu(!1),typeof Zone>"u")throw new Xt(908,!1);Zone.assertZonePatched();const le=this;le._nesting=0,le._outer=le._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(le._inner=le._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(le._inner=le._inner.fork(Zone.longStackTraceZoneSpec)),le.shouldCoalesceEventChangeDetection=!K&&T,le.shouldCoalesceRunChangeDetection=K,le.lastRequestAnimationFrameId=-1,le.nativeRequestAnimationFrame=function Kg(){const a="function"==typeof Ht.requestAnimationFrame;let c=Ht[a?"requestAnimationFrame":"setTimeout"],T=Ht[a?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&c&&T){const K=c[Zone.__symbol__("OriginalDelegate")];K&&(c=K);const le=T[Zone.__symbol__("OriginalDelegate")];le&&(T=le)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:T}}().nativeRequestAnimationFrame,function db(a){const c=()=>{!function Ux(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=a.nativeRequestAnimationFrame.call(Ht,()=>{a.fakeTopEventTask||(a.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{a.lastRequestAnimationFrameId=-1,Ov(a),a.isCheckStableRunning=!0,l0(a),a.isCheckStableRunning=!1},void 0,()=>{},()=>{})),a.fakeTopEventTask.invoke()}),Ov(a))}(a)};a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(T,K,le,Te,Ne,Xe)=>{if(function Gx(a){return!(!Array.isArray(a)||1!==a.length)&&!0===a[0].data?.__ignore_ng_zone__}(Xe))return T.invokeTask(le,Te,Ne,Xe);try{return d0(a),T.invokeTask(le,Te,Ne,Xe)}finally{(a.shouldCoalesceEventChangeDetection&&"eventTask"===Te.type||a.shouldCoalesceRunChangeDetection)&&c(),C_(a)}},onInvoke:(T,K,le,Te,Ne,Xe,ht)=>{try{return d0(a),T.invoke(le,Te,Ne,Xe,ht)}finally{a.shouldCoalesceRunChangeDetection&&c(),C_(a)}},onHasTask:(T,K,le,Te)=>{T.hasTask(le,Te),K===le&&("microTask"==Te.change?(a._hasPendingMicrotasks=Te.microTask,Ov(a),l0(a)):"macroTask"==Te.change&&(a.hasPendingMacrotasks=Te.macroTask))},onHandleError:(T,K,le,Te)=>(T.handleError(le,Te),a.runOutsideAngular(()=>a.onError.emit(Te)),!1)})}(le)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tu.isInAngularZone())throw new Xt(909,!1)}static assertNotInAngularZone(){if(Tu.isInAngularZone())throw new Xt(909,!1)}run(c,T,K){return this._inner.run(c,T,K)}runTask(c,T,K,le){const Te=this._inner,Ne=Te.scheduleEventTask("NgZoneEvent: "+le,c,vw,zx,zx);try{return Te.runTask(Ne,T,K)}finally{Te.cancelTask(Ne)}}runGuarded(c,T,K){return this._inner.runGuarded(c,T,K)}runOutsideAngular(c){return this._outer.run(c)}}const vw={};function l0(a){if(0==a._nesting&&!a.hasPendingMicrotasks&&!a.isStable)try{a._nesting++,a.onMicrotaskEmpty.emit(null)}finally{if(a._nesting--,!a.hasPendingMicrotasks)try{a.runOutsideAngular(()=>a.onStable.emit(null))}finally{a.isStable=!0}}}function Ov(a){a.hasPendingMicrotasks=!!(a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId)}function d0(a){a._nesting++,a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))}function C_(a){a._nesting--,l0(a)}class Au{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bu,this.onMicrotaskEmpty=new Bu,this.onStable=new Bu,this.onError=new Bu}run(c,T,K){return c.apply(T,K)}runGuarded(c,T,K){return c.apply(T,K)}runOutsideAngular(c){return c()}runTask(c,T,K,le){return c.apply(T,K)}}var Xg=function(a){return a[a.EarlyRead=0]="EarlyRead",a[a.Write=1]="Write",a[a.MixedReadWrite=2]="MixedReadWrite",a[a.Read=3]="Read",a}(Xg||{});const cb={destroy(){}};function _y(a,c){!c&&function Qc(a){if(!Rs())throw new Xt(-203,!1)}();const T=c?.injector??Dn(Pd);if(!function cl(a){return"browser"===(a??Dn(Pd)).get(nm)}(T))return cb;Dm("NgAfterNextRender");const K=T.get(u0),le=K.handler??=new yw,Te=c?.phase??Xg.MixedReadWrite,Ne=()=>{le.unregister(ht),Xe()},Xe=T.get(tf).onDestroy(Ne),ht=Tl(T,()=>new ub(Te,()=>{Ne(),a()}));return le.register(ht),{destroy:Ne}}class ub{constructor(c,T){this.phase=c,this.callbackFn=T,this.zone=Dn(Tu),this.errorHandler=Dn(qh,{optional:!0}),Dn(o0,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(c){this.errorHandler?.handleError(c)}}}class yw{constructor(){this.executingCallbacks=!1,this.buckets={[Xg.EarlyRead]:new Set,[Xg.Write]:new Set,[Xg.MixedReadWrite]:new Set,[Xg.Read]:new Set},this.deferredCallbacks=new Set}register(c){(this.executingCallbacks?this.deferredCallbacks:this.buckets[c.phase]).add(c)}unregister(c){this.buckets[c.phase].delete(c),this.deferredCallbacks.delete(c)}execute(){this.executingCallbacks=!0;for(const c of Object.values(this.buckets))for(const T of c)T.invoke();this.executingCallbacks=!1;for(const c of this.deferredCallbacks)this.buckets[c.phase].add(c);this.deferredCallbacks.clear()}destroy(){for(const c of Object.values(this.buckets))c.clear();this.deferredCallbacks.clear()}}let u0=(()=>{class a{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const T=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const K of T)K()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Pr({token:a,providedIn:"root",factory:()=>new a})}return a})();function w_(a){return void 0!==a.ngModule}function ig(a){return!!Gd(a)}function hb(a){return!!kl(a)}function vy(a){return!!ml(a)}function h0(a){return!!es(a)}function jf(a,c){if(It(a)&&!(a=Ut(a)))throw new Error(`Expected forwardRef function, imported from "${ia(c)}", to return a standalone entity or NgModule but got "${ia(a)||a}".`);if(null==Gd(a)){const T=es(a)||ml(a)||kl(a);if(null==T)throw w_(a)?new Error(`A module with providers was imported from "${ia(c)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${ia(a)}" type, imported from "${ia(c)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!T.standalone)throw new Error(`The "${ia(a)}" ${function pb(a){return es(a)?"component":ml(a)?"directive":kl(a)?"pipe":"type"}(a)}, imported from "${ia(c)}", is not standalone. Did you forget to add the standalone: true flag?`)}}class p0{constructor(){this.ownerNgModule=new Map,this.ngModulesWithSomeUnresolvedDecls=new Set,this.ngModulesScopeCache=new Map,this.standaloneComponentsScopeCache=new Map}resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const c of this.ngModulesWithSomeUnresolvedDecls){const T=Gd(c);if(T?.declarations)for(const K of Co(T.declarations))h0(K)&&this.ownerNgModule.set(K,c)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(c,T){this.resolveNgModulesDecls();const K=es(c);if(null===K)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${c}`);if(K.standalone){const le=this.getStandaloneComponentScope(c,T);return le.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...le.compilation.directives,...le.compilation.pipes,...le.compilation.ngModules]}}{if(!this.ownerNgModule.has(c))return{dependencies:[]};const le=this.getNgModuleScope(this.ownerNgModule.get(c));return le.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...le.compilation.directives,...le.compilation.pipes]}}}registerNgModule(c,T){if(!ig(c))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${c}`);this.ngModulesWithSomeUnresolvedDecls.add(c)}clearScopeCacheFor(c){this.ngModulesScopeCache.delete(c),this.standaloneComponentsScopeCache.delete(c)}getNgModuleScope(c){if(this.ngModulesScopeCache.has(c))return this.ngModulesScopeCache.get(c);const T=this.computeNgModuleScope(c);return this.ngModulesScopeCache.set(c,T),T}computeNgModuleScope(c){const T=Gd(c,!0),K={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const le of Co(T.imports))if(ig(le)){const Te=this.getNgModuleScope(le);Mg(Te.exported.directives,K.compilation.directives),Mg(Te.exported.pipes,K.compilation.pipes)}else{if(!Cd(le)){K.compilation.isPoisoned=!0;break}if(vy(le)||h0(le))K.compilation.directives.add(le);else{if(!hb(le))throw new Xt(1e3,"The standalone imported type is neither a component nor a directive nor a pipe");K.compilation.pipes.add(le)}}if(!K.compilation.isPoisoned)for(const le of Co(T.declarations)){if(ig(le)||Cd(le)){K.compilation.isPoisoned=!0;break}hb(le)?K.compilation.pipes.add(le):K.compilation.directives.add(le)}for(const le of Co(T.exports))if(ig(le)){const Te=this.getNgModuleScope(le);Mg(Te.exported.directives,K.exported.directives),Mg(Te.exported.pipes,K.exported.pipes),Mg(Te.exported.directives,K.compilation.directives),Mg(Te.exported.pipes,K.compilation.pipes)}else hb(le)?K.exported.pipes.add(le):K.exported.directives.add(le);return K}getStandaloneComponentScope(c,T){if(this.standaloneComponentsScopeCache.has(c))return this.standaloneComponentsScopeCache.get(c);const K=this.computeStandaloneComponentScope(c,T);return this.standaloneComponentsScopeCache.set(c,K),K}computeStandaloneComponentScope(c,T){const K={compilation:{directives:new Set([c]),pipes:new Set,ngModules:new Set}};for(const le of gs(T??[])){const Te=Ut(le);try{jf(Te,c)}catch{return K.compilation.isPoisoned=!0,K}if(ig(Te)){K.compilation.ngModules.add(Te);const Ne=this.getNgModuleScope(Te);if(Ne.exported.isPoisoned)return K.compilation.isPoisoned=!0,K;Mg(Ne.exported.directives,K.compilation.directives),Mg(Ne.exported.pipes,K.compilation.pipes)}else if(hb(Te))K.compilation.pipes.add(Te);else{if(!vy(Te)&&!h0(Te))return K.compilation.isPoisoned=!0,K;K.compilation.directives.add(Te)}}return K}isOrphanComponent(c){const T=es(c);return!(!T||T.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(c)))}}function Mg(a,c){for(const T of a)c.add(T)}const f0=new p0;function m0(a,c,T){let K=T?a.styles:null,le=T?a.classes:null,Te=0;if(null!==c)for(let Ne=0;Ne<c.length;Ne++){const Xe=c[Ne];"number"==typeof Xe?Te=Xe:1==Te?le=cn(le,Xe):2==Te&&(K=cn(K,Xe+": "+c[++Ne]+";"))}T?a.styles=K:a.stylesWithoutHost=K,T?a.classes=le:a.classesWithoutHost=le}class by extends s0{constructor(c){super(),this.ngModule=c}resolveComponentFactory(c){const T=es(c);return new g0(T,this.ngModule)}}function fb(a){const c=[];for(const T in a){if(!a.hasOwnProperty(T))continue;const K=a[T];void 0!==K&&c.push({propName:Array.isArray(K)?K[0]:K,templateName:T})}return c}class mb{constructor(c,T){this.injector=c,this.parentInjector=T}get(c,T,K){K=Kn(K);const le=this.injector.get(c,Hx,K);return le!==Hx||T===Hx?le:this.parentInjector.get(c,T,K)}}class g0 extends gy{get inputs(){const c=this.componentDef,T=c.inputTransforms,K=fb(c.inputs);if(null!==T)for(const le of K)T.hasOwnProperty(le.propName)&&(le.transform=T[le.propName]);return K}get outputs(){return fb(this.componentDef.outputs)}constructor(c,T){super(),this.componentDef=c,this.ngModule=T,this.componentType=c.type,this.selector=function _n(a){return a.map(Fi).join(",")}(c.selectors),this.ngContentSelectors=c.ngContentSelectors?c.ngContentSelectors:[],this.isBoundToModule=!!T}create(c,T,K,le){const Te=R(null);try{let Ne=(le=le||this.ngModule)instanceof Ei?le:le?.injector;Ne&&null!==this.componentDef.getStandaloneInjector&&(Ne=this.componentDef.getStandaloneInjector(Ne)||Ne);const Xe=Ne?new mb(c,Ne):c,ht=Xe.get(Nx,null);if(null===ht)throw new Xt(407,!1);const ii=Xe.get(K_,null),$n={rendererFactory:ht,sanitizer:ii,inlineEffectRunner:null,afterRenderEventManager:Xe.get(u0,null),changeDetectionScheduler:Xe.get(o0,null)},or=ht.createRenderer(null,this.componentDef),Dr=this.componentDef.selectors[0][0]||"div",ra=K?function Yn(a,c,T,K){const Te=K.get(hg,!1)||T===yd.ShadowDom,Ne=a.selectRootElement(c,Te);return function Mr(a){ma(a)}(Ne),Ne}(or,K,this.componentDef.encapsulation,Xe):$d(or,Dr,function jx(a){const c=a.toLowerCase();return"svg"===c?wp:"math"===c?"math":null}(Dr));let Ga=512;this.componentDef.signals?Ga|=4096:this.componentDef.onPush||(Ga|=16);let so=null;null!==ra&&(so=Lc(ra,Xe,!0));const xa=Ii(0,null,null,1,0,null,null,null,null,null,null),Vs=y(null,xa,null,Ga,null,null,$n,or,Xe,null,so);let Kd,nu;Ln(Vs);try{const Cf=this.componentDef;let Fg,JC=null;Cf.findHostDirectiveDefs?(Fg=[],JC=new Map,Cf.findHostDirectiveDefs(Cf,Fg,JC),Fg.push(Cf)):Fg=[Cf];const zO=function yy(a,c){const T=a[vr],K=ko;return a[K]=c,H(T,K,2,"#host",null)}(Vs,ra),iI=function xy(a,c,T,K,le,Te,Ne){const Xe=le[vr];!function Yx(a,c,T,K){for(const le of a)c.mergedAttrs=zt(c.mergedAttrs,le.hostAttrs);null!==c.mergedAttrs&&(m0(c,c.mergedAttrs,!0),null!==T&&qm(K,T,c))}(K,a,c,Ne);let ht=null;null!==c&&(ht=Lc(c,le[hd]));const ii=Te.rendererFactory.createRenderer(c,T);let Oi=16;T.signals?Oi=4096:T.onPush&&(Oi=64);const un=y(le,_i(T),null,Oi,le[a.index],a,Te,ii,null,null,ht);return Xe.firstCreatePass&&jg(Xe,a,K.length-1),X0(le,un),le[a.index]=un}(zO,ra,Cf,Fg,Vs,$n,or);nu=Yh(xa,ko),ra&&function $x(a,c,T,K){if(K)ks(a,T,["ng-version","17.3.10"]);else{const{attrs:le,classes:Te}=function dr(a){const c=[],T=[];let K=1,le=2;for(;K<a.length;){let Te=a[K];if("string"==typeof Te)2===le?""!==Te&&c.push(Te,a[++K]):8===le&&T.push(Te);else{if(!Ls(le))break;le=Te}K++}return{attrs:c,classes:T}}(c.selectors[0]);le&&ks(a,T,le),Te&&Te.length>0&&Zm(a,T,Te.join(" "))}}(or,Cf,ra,K),void 0!==T&&function Cy(a,c,T){const K=a.projection=[];for(let le=0;le<c.length;le++){const Te=T[le];K.push(null!=Te?Array.from(Te):null)}}(nu,this.ngContentSelectors,T),Kd=function Cw(a,c,T,K,le,Te){const Ne=fn(),Xe=le[vr],ht=Uc(Ne,le);ch(Xe,le,Ne,T,null,K);for(let Oi=0;Oi<T.length;Oi++)ic(od(le,Xe,Ne.directiveStart+Oi,Ne),le);__(Xe,le,Ne),ht&&ic(ht,le);const ii=od(le,Xe,Ne.directiveStart+Ne.componentOffset,Ne);if(a[tl]=le[tl]=ii,null!==Te)for(const Oi of Te)Oi(ii,c);return Ye(Xe,Ne,le),ii}(iI,Cf,Fg,JC,Vs,[Kx]),iy(xa,Vs,null)}finally{Lr()}return new _0(this.componentType,Kd,Qo(nu,Vs),Vs,nu)}finally{R(Te)}}}class _0 extends my{constructor(c,T,K,le,Te){super(),this.location=K,this._rootLView=le,this._tNode=Te,this.previousInputValues=null,this.instance=T,this.hostView=this.changeDetectorRef=new Ev(le,void 0,!1),this.componentType=c}setInput(c,T){const K=this._tNode.inputs;let le;if(null!==K&&(le=K[c])){if(this.previousInputValues??=new Map,this.previousInputValues.has(c)&&Object.is(this.previousInputValues.get(c),T))return;const Te=this._rootLView;Q0(Te[vr],Te,le,c,T),this.previousInputValues.set(c,T),Dv(Gc(this._tNode.index,Te))}}get injector(){return new $l(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(c){this.hostView.onDestroy(c)}}function Kx(){const a=fn();Po(Jt()[vr],a)}let wy=(()=>{class a{static#e=this.__NG_ELEMENT_ID__=V1}return a})();function V1(){return Ws(fn(),Jt())}const H1=wy,Sy=class extends H1{constructor(c,T,K){super(),this._lContainer=c,this._hostTNode=T,this._hostLView=K}get element(){return Qo(this._hostTNode,this._hostLView)}get injector(){return new $l(this._hostTNode,this._hostLView)}get parentInjector(){const c=Sd(this._hostTNode,this._hostLView);if(Sp(c)){const T=Lu(c,this._hostLView),K=rd(c);return new $l(T[vr].data[K+8],T)}return new $l(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(c){const T=v0(this._lContainer);return null!==T&&T[c]||null}get length(){return this._lContainer.length-xl}createEmbeddedView(c,T,K){let le,Te;"number"==typeof K?le=K:null!=K&&(le=K.index,Te=K.injector);const Xe=c.createEmbeddedViewImpl(T||{},Te,null);return this.insertImpl(Xe,le,Sg(this._hostTNode,null)),Xe}createComponent(c,T,K,le,Te){const Ne=c&&!function Tr(a){return"function"==typeof a}(c);let Xe;if(Ne)Xe=T;else{const Dr=T||{};Xe=Dr.index,K=Dr.injector,le=Dr.projectableNodes,Te=Dr.environmentInjector||Dr.ngModuleRef}const ht=Ne?c:new g0(es(c)),ii=K||this.parentInjector;if(!Te&&null==ht.ngModule){const ra=(Ne?ii:this.parentInjector).get(Ei,null);ra&&(Te=ra)}es(ht.componentType??{});const or=ht.create(ii,le,null,Te);return this.insertImpl(or.hostView,Xe,Sg(this._hostTNode,null)),or}insert(c,T){return this.insertImpl(c,T,!0)}insertImpl(c,T,K){const le=c._lView;if(function _m(a){return dc(a[oa])}(le)){const Xe=this.indexOf(c);if(-1!==Xe)this.detach(Xe);else{const ht=le[oa],ii=new Sy(ht,ht[Wn],ht[oa]);ii.detach(ii.indexOf(c))}}const Te=this._adjustIndex(T),Ne=this._lContainer;return Cv(Ne,le,Te,K),c.attachToViewContainerRef(),_s(Em(Ne),Te,c),c}move(c,T){return this.insert(c,T)}indexOf(c){const T=v0(this._lContainer);return null!==T?T.indexOf(c):-1}remove(c){const T=this._adjustIndex(c,-1),K=gc(this._lContainer,T);K&&(yl(Em(this._lContainer),T),Yu(K[vr],K))}detach(c){const T=this._adjustIndex(c,-1),K=gc(this._lContainer,T);return K&&null!=yl(Em(this._lContainer),T)?new Ev(K):null}_adjustIndex(c,T=0){return c??this.length+T}};function v0(a){return a[8]}function Em(a){return a[8]||(a[8]=[])}function Ws(a,c){let T;const K=c[a.index];return dc(K)?T=K:(T=ey(K,c,null,a),c[a.index]=T,X0(c,T)),Dy(T,c,a,K),new Sy(T,a,c)}let Dy=function My(a,c,T,K){if(a[qd])return;let le;le=8&T.type?pl(K):function Og(a,c){const T=a[lo],K=T.createComment(""),le=Uc(c,a);return mf(T,zp(T,le),K,function Y0(a,c){return a.nextSibling(c)}(T,le),!1),K}(c,T),a[qd]=le},Tv=()=>!1;class Oy{constructor(c){this.queryList=c,this.matches=null}clone(){return new Oy(this.queryList)}setDirty(){this.queryList.setDirty()}}class gb{constructor(c=[]){this.queries=c}createEmbeddedView(c){const T=c.queries;if(null!==T){const K=null!==c.contentQueries?c.contentQueries[0]:T.length,le=[];for(let Te=0;Te<K;Te++){const Ne=T.getByIndex(Te);le.push(this.queries[Ne.indexInDeclarationView].clone())}return new gb(le)}return null}insertView(c){this.dirtyQueriesWithMatches(c)}detachView(c){this.dirtyQueriesWithMatches(c)}finishViewCreation(c){this.dirtyQueriesWithMatches(c)}dirtyQueriesWithMatches(c){for(let T=0;T<this.queries.length;T++)null!==qx(c,T).matches&&this.queries[T].setDirty()}}class Ty{constructor(c,T,K=null){this.flags=T,this.read=K,this.predicate="string"==typeof c?function z1(a){return a.split(",").map(c=>c.trim())}(c):c}}class Gp{constructor(c=[]){this.queries=c}elementStart(c,T){for(let K=0;K<this.queries.length;K++)this.queries[K].elementStart(c,T)}elementEnd(c){for(let T=0;T<this.queries.length;T++)this.queries[T].elementEnd(c)}embeddedTView(c){let T=null;for(let K=0;K<this.length;K++){const le=null!==T?T.length:0,Te=this.getByIndex(K).embeddedTView(c,le);Te&&(Te.indexInDeclarationView=K,null!==T?T.push(Te):T=[Te])}return null!==T?new Gp(T):null}template(c,T){for(let K=0;K<this.queries.length;K++)this.queries[K].template(c,T)}getByIndex(c){return this.queries[c]}get length(){return this.queries.length}track(c){this.queries.push(c)}}class S_{constructor(c,T=-1){this.metadata=c,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=T}elementStart(c,T){this.isApplyingToNode(T)&&this.matchTNode(c,T)}elementEnd(c){this._declarationNodeIndex===c.index&&(this._appliesToNextNode=!1)}template(c,T){this.elementStart(c,T)}embeddedTView(c,T){return this.isApplyingToNode(c)?(this.crossesNgTemplate=!0,this.addMatch(-c.index,T),new S_(this.metadata)):null}isApplyingToNode(c){if(this._appliesToNextNode&&1&~this.metadata.flags){const T=this._declarationNodeIndex;let K=c.parent;for(;null!==K&&8&K.type&&K.index!==T;)K=K.parent;return T===(null!==K?K.index:-1)}return this._appliesToNextNode}matchTNode(c,T){const K=this.metadata.predicate;if(Array.isArray(K))for(let le=0;le<K.length;le++){const Te=K[le];this.matchTNodeWithReadOption(c,T,Ay(T,Te)),this.matchTNodeWithReadOption(c,T,Dc(T,c,Te,!1,!1))}else K===qv?4&T.type&&this.matchTNodeWithReadOption(c,T,-1):this.matchTNodeWithReadOption(c,T,Dc(T,c,K,!1,!1))}matchTNodeWithReadOption(c,T,K){if(null!==K){const le=this.metadata.read;if(null!==le)if(le===cu||le===wy||le===qv&&4&T.type)this.addMatch(T.index,-2);else{const Te=Dc(T,c,le,!1,!1);null!==Te&&this.addMatch(T.index,Te)}else this.addMatch(T.index,K)}}addMatch(c,T){null===this.matches?this.matches=[c,T]:this.matches.push(c,T)}}function Ay(a,c){const T=a.localNames;if(null!==T)for(let K=0;K<T.length;K+=2)if(T[K]===c)return T[K+1];return null}function Qx(a,c,T,K){return-1===T?function _b(a,c){return 11&a.type?Qo(a,c):4&a.type?e0(a,c):null}(c,a):-2===T?function Zx(a,c,T){return T===cu?Qo(c,a):T===qv?e0(c,a):T===wy?Ws(c,a):void 0}(a,c,K):od(a,a[vr],T,c)}function vb(a,c,T,K){const le=c[fh].queries[K];if(null===le.matches){const Te=a.data,Ne=T.matches,Xe=[];for(let ht=0;null!==Ne&&ht<Ne.length;ht+=2){const ii=Ne[ht];Xe.push(ii<0?null:Qx(c,Te[ii],Ne[ht+1],T.metadata.read))}le.matches=Xe}return le.matches}function bb(a,c,T,K){const le=a.queries.getByIndex(T),Te=le.matches;if(null!==Te){const Ne=vb(a,c,le,T);for(let Xe=0;Xe<Te.length;Xe+=2){const ht=Te[Xe];if(ht>0)K.push(Ne[Xe/2]);else{const ii=Te[Xe+1],Oi=c[-ht];for(let un=xl;un<Oi.length;un++){const $n=Oi[un];$n[ph]===$n[oa]&&bb($n[vr],$n,ii,K)}if(null!==Oi[kc]){const un=Oi[kc];for(let $n=0;$n<un.length;$n++){const or=un[$n];bb(or[vr],or,ii,K)}}}}}return K}function ww(a,c,T){const K=new rh(!(4&~T));return function Wo(a,c,T,K){const le=Yg(c);le.push(T),a.firstCreatePass&&ty(a).push(K,le.length-1)}(a,c,K,K.destroy),(c[fh]??=new gb).queries.push(new Oy(K))-1}function yb(a,c,T){null===a.queries&&(a.queries=new Gp),a.queries.track(new S_(c,T))}function qx(a,c){return a.queries.getByIndex(c)}function xb(a,c){const T=a[vr],K=qx(T,c);return K.crossesNgTemplate?bb(T,a,c,[]):vb(T,a,K,c)}function eC(a){return function Cb(a){return"function"==typeof a&&void 0!==a[E]}(a)&&"function"==typeof a.set}function Ib(a){let c=function Ly(a){return Object.getPrototypeOf(a.prototype).constructor}(a.type),T=!0;const K=[a];for(;c;){let le;if(cc(a))le=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new Xt(903,!1);le=c.\u0275dir}if(le){if(T){K.push(le);const Ne=a;Ne.inputs=M0(a.inputs),Ne.inputTransforms=M0(a.inputTransforms),Ne.declaredInputs=M0(a.declaredInputs),Ne.outputs=M0(a.outputs);const Xe=le.hostBindings;Xe&&dC(a,Xe);const ht=le.viewQuery,ii=le.contentQueries;if(ht&&Aw(a,ht),ii&&Iw(a,ii),sC(a,le),wi(a.outputs,le.outputs),cc(le)&&le.data.animation){const Oi=a.data;Oi.animation=(Oi.animation||[]).concat(le.data.animation)}}const Te=le.features;if(Te)for(let Ne=0;Ne<Te.length;Ne++){const Xe=Te[Ne];Xe&&Xe.ngInherit&&Xe(a),Xe===Ib&&(T=!1)}}c=Object.getPrototypeOf(c)}!function lC(a){let c=0,T=null;for(let K=a.length-1;K>=0;K--){const le=a[K];le.hostVars=c+=le.hostVars,le.hostAttrs=zt(le.hostAttrs,T=zt(T,le.hostAttrs))}}(K)}function sC(a,c){for(const T in c.inputs){if(!c.inputs.hasOwnProperty(T)||a.inputs.hasOwnProperty(T))continue;const K=c.inputs[T];if(void 0!==K&&(a.inputs[T]=K,a.declaredInputs[T]=c.declaredInputs[T],null!==c.inputTransforms)){const le=Array.isArray(K)?K[0]:K;if(!c.inputTransforms.hasOwnProperty(le))continue;a.inputTransforms??={},a.inputTransforms[le]=c.inputTransforms[le]}}}function M0(a){return a===ql?{}:a===vs?[]:a}function Aw(a,c){const T=a.viewQuery;a.viewQuery=T?(K,le)=>{c(K,le),T(K,le)}:c}function Iw(a,c){const T=a.contentQueries;a.contentQueries=T?(K,le,Te)=>{c(K,le,Te),T(K,le,Te)}:c}function dC(a,c){const T=a.hostBindings;a.hostBindings=T?(K,le)=>{c(K,le),T(K,le)}:c}function Ag(a){const c=a.inputConfig,T={};for(const K in c)if(c.hasOwnProperty(K)){const le=c[K];Array.isArray(le)&&le[3]&&(T[K]=le[3])}a.inputTransforms=T}class tv{}class By{}function hC(a,c){return new E_(a,c??null,[])}class E_ extends tv{constructor(c,T,K){super(),this._parent=T,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new by(this);const le=Gd(c);this._bootstrapComponents=Co(le.bootstrap),this._r3Injector=tc(c,T,[{provide:tv,useValue:this},{provide:s0,useValue:this.componentFactoryResolver},...K],ui(c),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(c)}get injector(){return this._r3Injector}destroy(){const c=this._r3Injector;!c.destroyed&&c.destroy(),this.destroyCbs.forEach(T=>T()),this.destroyCbs=null}onDestroy(c){this.destroyCbs.push(c)}}class T0 extends By{constructor(c){super(),this.moduleType=c}create(c){return new E_(this.moduleType,c,[])}}class pC extends tv{constructor(c){super(),this.componentFactoryResolver=new by(this),this.instance=null;const T=new on([...c.providers,{provide:tv,useValue:this},{provide:s0,useValue:this.componentFactoryResolver}],c.parent||Qt(),c.debugName,new Set(["environment"]));this.injector=T,c.runEnvironmentInitializers&&T.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(c){this.injector.onDestroy(c)}}function kb(a,c,T=null){return new pC({providers:a,parent:c,debugName:T,runEnvironmentInitializers:!0}).injector}let Iv=(()=>{class a{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Be.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const T=this.taskId++;return this.pendingTasks.add(T),T}remove(T){this.pendingTasks.delete(T),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(K){return new(K||a)};static#t=this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function Pb(a){return!!Vy(a)&&(Array.isArray(a)||!(a instanceof Map)&&Symbol.iterator in a)}function Vy(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function fm(a,c,T){return a[c]=T}function Ac(a,c,T){return!Object.is(a[c],T)&&(a[c]=T,!0)}function M_(a,c,T,K){const le=Ac(a,c,T);return Ac(a,c+1,K)||le}function O_(a,c,T,K,le,Te,Ne,Xe){const ht=Jt(),ii=Rt(),Oi=a+ko,un=ii.firstCreatePass?function Bw(a,c,T,K,le,Te,Ne,Xe,ht){const ii=c.consts,Oi=H(c,a,4,Ne||null,Ad(ii,Xe));Ld(c,T,Oi,Ad(ii,ht)),Po(c,Oi);const un=Oi.tView=Ii(2,Oi,K,le,Te,c.directiveRegistry,c.pipeRegistry,null,c.schemas,ii,null);return null!==c.queries&&(c.queries.template(c,Oi),un.queries=c.queries.embeddedTView(Oi)),Oi}(Oi,ii,ht,c,T,K,le,Te,Ne):ii.data[Oi];kn(un,!1);const $n=Hy(ii,ht,un,a);ka()&&Jm(ii,ht,$n,un),ic($n,ht);const or=ey($n,ht,$n,un);return ht[Oi]=or,X0(ht,or),function Ey(a,c,T){return Tv(a,c,T)}(or,un,ht),vu(un)&&bt(ii,ht,un),null!=Ne&&$t(ht,un,Xe),O_}let Hy=function mm(a,c,T,K){return Ka(!0),c[lo].createComment("")};function sv(a,c,T,K){const le=Jt();return Ac(le,hn(),c)&&(Rt(),um(Oa(),le,a,c,T,K)),sv}function Nv(a,c,T,K){return Ac(a,hn(),T)?c+Va(T)+K:As}function lv(a,c,T,K,le,Te){const Xe=M_(a,function kr(){return Uo.lFrame.bindingIndex}(),T,le);return Hn(2),Xe?c+Va(T)+K+Va(le)+Te:As}function nx(a,c){return a<<17|c<<2}function Rg(a){return a>>17&32767}function jb(a){return 2|a}function cv(a){return(131068&a)>>2}function Yb(a,c){return-131069&a|c<<2}function l(a){return 1|a}function Me(a,c,T,K){const le=a[T+1],Te=null===c;let Ne=K?Rg(le):cv(le),Xe=!1;for(;0!==Ne&&(!1===Xe||Te);){const ii=a[Ne+1];Re(a[Ne],c)&&(Xe=!0,a[Ne+1]=K?l(ii):jb(ii)),Ne=K?Rg(ii):cv(ii)}Xe&&(a[T+1]=K?jb(le):l(le))}function Re(a,c){return null===a||null==c||(Array.isArray(a)?a[1]:a)===c||!(!Array.isArray(a)||"string"!=typeof c)&&Il(a,c)>=0}const He={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lt(a){return a.substring(He.key,He.keyEnd)}function At(a){return a.substring(He.value,He.valueEnd)}function Di(a,c){const T=He.textEnd;return T===c?-1:(c=He.keyEnd=function Gn(a,c,T){for(;c<T&&a.charCodeAt(c)>32;)c++;return c}(a,He.key=c,T),Tn(a,c,T))}function Ji(a,c){const T=He.textEnd;let K=He.key=Tn(a,c,T);return T===K?-1:(K=He.keyEnd=function Cr(a,c,T){let K;for(;c<T&&(45===(K=a.charCodeAt(c))||95===K||(-33&K)>=65&&(-33&K)<=90||K>=48&&K<=57);)c++;return c}(a,K,T),K=fr(a,K,T),K=He.value=Tn(a,K,T),K=He.valueEnd=function Fr(a,c,T){let K=-1,le=-1,Te=-1,Ne=c,Xe=Ne;for(;Ne<T;){const ht=a.charCodeAt(Ne++);if(59===ht)return Xe;34===ht||39===ht?Xe=Ne=Or(a,ht,Ne,T):c===Ne-4&&85===Te&&82===le&&76===K&&40===ht?Xe=Ne=Or(a,41,Ne,T):ht>32&&(Xe=Ne),Te=le,le=K,K=-33&ht}return Xe}(a,K,T),fr(a,K,T))}function rn(a){He.key=0,He.keyEnd=0,He.value=0,He.valueEnd=0,He.textEnd=a.length}function Tn(a,c,T){for(;c<T&&a.charCodeAt(c)<=32;)c++;return c}function fr(a,c,T,K){return(c=Tn(a,c,T))<T&&c++,c}function Or(a,c,T,K){let le=-1,Te=T;for(;Te<K;){const Ne=a.charCodeAt(Te++);if(Ne==c&&92!==le)return Te;le=92==Ne&&92===le?0:Ne}throw new Error}function Hr(a,c,T){const K=Jt();return Ac(K,hn(),c)&&Js(Rt(),Oa(),K,a,c,K[lo],T,!1),Hr}function Ra(a,c,T,K,le){const Ne=le?"class":"style";Q0(a,T,c.inputs[Ne],Ne,K)}function go(a,c,T){return Is(a,c,T,!1),go}function Ma(a,c){return Is(a,c,null,!0),Ma}function Zo(a){bd(Pg,js,a,!1)}function js(a,c){for(let T=function Ki(a){return rn(a),Ji(a,Tn(a,0,He.textEnd))}(c);T>=0;T=Ji(c,T))Pg(a,lt(c),At(c))}function ns(a){bd(N0,Ps,a,!0)}function Ps(a,c){for(let T=function di(a){return rn(a),Di(a,Tn(a,0,He.textEnd))}(c);T>=0;T=Di(c,T))xs(a,lt(c),!0)}function Is(a,c,T,K){const le=Jt(),Te=Rt(),Ne=Hn(2);Te.firstUpdatePass&&Ro(Te,a,Ne,K),c!==As&&Ac(le,Ne,c)&&Tm(Te,Te.data[_a()],le,le[lo],a,le[Ne+1]=function ax(a,c){return null==a||""===a||("string"==typeof c?a+=c:"object"==typeof a&&(a=ui(Th(a)))),a}(c,T),K,Ne)}function bd(a,c,T,K){const le=Rt(),Te=Hn(2);le.firstUpdatePass&&Ro(le,null,Te,K);const Ne=Jt();if(T!==As&&Ac(Ne,Te,T)){const Xe=le.data[_a()];if(sS(Xe,K)&&!oo(le,Te)){let ht=K?Xe.classesWithoutHost:Xe.stylesWithoutHost;null!==ht&&(T=cn(ht,T||"")),Ra(le,Xe,Ne,T,K)}else!function ac(a,c,T,K,le,Te,Ne,Xe){le===As&&(le=vs);let ht=0,ii=0,Oi=0<le.length?le[0]:null,un=0<Te.length?Te[0]:null;for(;null!==Oi||null!==un;){const $n=ht<le.length?le[ht+1]:void 0,or=ii<Te.length?Te[ii+1]:void 0;let ra,Dr=null;Oi===un?(ht+=2,ii+=2,$n!==or&&(Dr=un,ra=or)):null===un||null!==Oi&&Oi<un?(ht+=2,Dr=Oi):(ii+=2,Dr=un,ra=or),null!==Dr&&Tm(a,c,T,K,Dr,ra,Ne,Xe),Oi=ht<le.length?le[ht]:null,un=ii<Te.length?Te[ii]:null}}(le,Xe,Ne,Ne[lo],Ne[Te+1],Ne[Te+1]=function ud(a,c,T){if(null==T||""===T)return vs;const K=[],le=Th(T);if(Array.isArray(le))for(let Te=0;Te<le.length;Te++)a(K,le[Te],!0);else if("object"==typeof le)for(const Te in le)le.hasOwnProperty(Te)&&a(K,Te,le[Te]);else"string"==typeof le&&c(K,le);return K}(a,c,T),K,Te)}}function oo(a,c){return c>=a.expandoStartIndex}function Ro(a,c,T,K){const le=a.data;if(null===le[T+1]){const Te=le[_a()],Ne=oo(a,T);sS(Te,K)&&null===c&&!Ne&&(c=!1),c=function jo(a,c,T,K){const le=Kr(a);let Te=K?c.residualClasses:c.residualStyles;if(null===le)0===(K?c.classBindings:c.styleBindings)&&(T=ku(T=Xu(null,a,c,T,K),c.attrs,K),Te=null);else{const Ne=c.directiveStylingLast;if(-1===Ne||a[Ne]!==le)if(T=Xu(le,a,c,T,K),null===Te){let ht=function Qs(a,c,T){const K=T?c.classBindings:c.styleBindings;if(0!==cv(K))return a[Rg(K)]}(a,c,K);void 0!==ht&&Array.isArray(ht)&&(ht=Xu(null,a,c,ht[1],K),ht=ku(ht,c.attrs,K),function rc(a,c,T,K){a[Rg(T?c.classBindings:c.styleBindings)]=K}(a,c,K,ht))}else Te=function $c(a,c,T){let K;const le=c.directiveEnd;for(let Te=1+c.directiveStylingLast;Te<le;Te++)K=ku(K,a[Te].hostAttrs,T);return ku(K,c.attrs,T)}(a,c,K)}return void 0!==Te&&(K?c.residualClasses=Te:c.residualStyles=Te),T}(le,Te,c,K),function U(a,c,T,K,le,Te){let Ne=Te?c.classBindings:c.styleBindings,Xe=Rg(Ne),ht=cv(Ne);a[K]=T;let Oi,ii=!1;if(Array.isArray(T)?(Oi=T[1],(null===Oi||Il(T,Oi)>0)&&(ii=!0)):Oi=T,le)if(0!==ht){const $n=Rg(a[Xe+1]);a[K+1]=nx($n,Xe),0!==$n&&(a[$n+1]=Yb(a[$n+1],K)),a[Xe+1]=function t1(a,c){return 131071&a|c<<17}(a[Xe+1],K)}else a[K+1]=nx(Xe,0),0!==Xe&&(a[Xe+1]=Yb(a[Xe+1],K)),Xe=K;else a[K+1]=nx(ht,0),0===Xe?Xe=K:a[ht+1]=Yb(a[ht+1],K),ht=K;ii&&(a[K+1]=jb(a[K+1])),Me(a,Oi,K,!0),Me(a,Oi,K,!1),function ae(a,c,T,K,le){const Te=le?a.residualClasses:a.residualStyles;null!=Te&&"string"==typeof c&&Il(Te,c)>=0&&(T[K+1]=l(T[K+1]))}(c,Oi,a,K,Te),Ne=nx(Xe,ht),Te?c.classBindings=Ne:c.styleBindings=Ne}(le,Te,c,T,Ne,K)}}function Xu(a,c,T,K,le){let Te=null;const Ne=T.directiveEnd;let Xe=T.directiveStylingLast;for(-1===Xe?Xe=T.directiveStart:Xe++;Xe<Ne&&(Te=c[Xe],K=ku(K,Te.hostAttrs,le),Te!==a);)Xe++;return null!==a&&(T.directiveStylingLast=Xe),K}function ku(a,c,T){const K=T?1:2;let le=-1;if(null!==c)for(let Te=0;Te<c.length;Te++){const Ne=c[Te];"number"==typeof Ne?le=Ne:le===K&&(Array.isArray(a)||(a=void 0===a?[]:["",a]),xs(a,Ne,!!T||c[++Te]))}return void 0===a?null:a}function Pg(a,c,T){xs(a,c,Th(T))}function N0(a,c,T){const K=String(c);""!==K&&!K.includes(" ")&&xs(a,K,T)}function Tm(a,c,T,K,le,Te,Ne,Xe){if(!(3&c.type))return;const ht=a.data,ii=ht[Xe+1],Oi=function rx(a){return!(1&~a)}(ii)?jp(ht,c,T,le,cv(ii),Ne):void 0;uv(Oi)||(uv(Te)||function e1(a){return!(2&~a)}(ii)&&(Te=jp(ht,null,T,le,Xe,Ne)),function m_(a,c,T,K,le){if(c)le?a.addClass(T,K):a.removeClass(T,K);else{let Te=-1===K.indexOf("-")?void 0:Vo.DashCase;null==le?a.removeStyle(T,K,Te):("string"==typeof le&&le.endsWith("!important")&&(le=le.slice(0,-10),Te|=Vo.Important),a.setStyle(T,K,le,Te))}}(K,Ne,Qp(_a(),T),le,Te))}function jp(a,c,T,K,le,Te){const Ne=null===c;let Xe;for(;le>0;){const ht=a[le],ii=Array.isArray(ht),Oi=ii?ht[1]:ht,un=null===Oi;let $n=T[le+1];$n===As&&($n=un?vs:void 0);let or=un?oc($n,K):Oi===K?$n:void 0;if(ii&&!uv(or)&&(or=oc(ht,K)),uv(or)&&(Xe=or,Ne))return Xe;const Dr=a[le+1];le=Ne?Rg(Dr):cv(Dr)}if(null!==c){let ht=Te?c.residualClasses:c.residualStyles;null!=ht&&(Xe=oc(ht,K))}return Xe}function uv(a){return void 0!==a}function sS(a,c){return!!(a.flags&(c?8:16))}function sx(a,c,T,K){const le=Jt(),Te=Rt(),Ne=ko+a,Xe=le[lo],ht=Te.firstCreatePass?function JD(a,c,T,K,le,Te){const Ne=c.consts,ht=H(c,a,2,K,Ad(Ne,le));return Ld(c,T,ht,Ad(Ne,Te)),null!==ht.attrs&&m0(ht,ht.attrs,!1),null!==ht.mergedAttrs&&m0(ht,ht.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,ht),ht}(Ne,Te,le,c,T,K):Te.data[Ne],ii=mS(Te,le,ht,Xe,c,a);le[Ne]=ii;const Oi=vu(ht);return kn(ht,!0),qm(Xe,ii,ht),!function k0(a){return!(32&~a.flags)}(ht)&&ka()&&Jm(Te,le,ii,ht),0===function B(){return Uo.lFrame.elementDepthCount}()&&ic(ii,le),function te(){Uo.lFrame.elementDepthCount++}(),Oi&&(bt(Te,le,ht),Ye(Te,ht,le)),null!==K&&$t(le,ht),sx}function lx(){let a=fn();Fn()?ur():(a=a.parent,kn(a,!1));const c=a;(function je(a){return Uo.skipHydrationRootTNode===a})(c)&&function fi(){Uo.skipHydrationRootTNode=null}(),function Ce(){Uo.lFrame.elementDepthCount--}();const T=Rt();return T.firstCreatePass&&(Po(T,a),Ru(a)&&T.queries.elementEnd(a)),null!=c.classesWithoutHost&&function Rl(a){return!!(8&a.flags)}(c)&&Ra(T,c,Jt(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function fd(a){return!!(16&a.flags)}(c)&&Ra(T,c,Jt(),c.stylesWithoutHost,!1),lx}function d1(a,c,T,K){return sx(a,c,T,K),lx(),d1}let mS=(a,c,T,K,le,Te)=>(Ka(!0),$d(K,le,function So(){return Uo.lFrame.currentNamespace}()));function R_(a,c,T){const K=Jt(),le=Rt(),Te=a+ko,Ne=le.firstCreatePass?function qD(a,c,T,K,le){const Te=c.consts,Ne=Ad(Te,K),Xe=H(c,a,8,"ng-container",Ne);return null!==Ne&&m0(Xe,Ne,!0),Ld(c,T,Xe,Ad(Te,le)),null!==c.queries&&c.queries.elementStart(c,Xe),Xe}(Te,le,K,c,T):le.data[Te];kn(Ne,!0);const Xe=$b(le,K,Ne,a);return K[Te]=Xe,ka()&&Jm(le,K,Xe,Ne),ic(Xe,K),vu(Ne)&&(bt(le,K,Ne),Ye(le,Ne,K)),null!=T&&$t(K,Ne),R_}function kC(){let a=fn();const c=Rt();return Fn()?ur():(a=a.parent,kn(a,!1)),c.firstCreatePass&&(Po(c,a),Ru(a)&&c.queries.elementEnd(a)),kC}function RC(a,c,T){return R_(a,c,T),kC(),RC}let $b=(a,c,T,K)=>(Ka(!0),zf(c[lo],""));function _S(){return Jt()}function PC(a,c,T){const K=Jt();return Ac(K,hn(),c)&&Js(Rt(),Oa(),K,a,c,K[lo],T,!0),PC}function LC(a,c,T){const K=Jt();if(Ac(K,hn(),c)){const Te=Rt(),Ne=Oa();Js(Te,Ne,K,a,c,J0(Kr(Te.data),Ne,K),T,!0)}return LC}const V0=void 0;var H0=["en",[["a","p"],["AM","PM"],V0],[["AM","PM"],V0,V0],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],V0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],V0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",V0,"{1} 'at' {0}",V0],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function c1(a){const T=Math.floor(Math.abs(a)),K=a.toString().replace(/^[^.]*\.?/,"").length;return 1===T&&0===K?1:5}];let z0={};function tE(a,c,T){"string"!=typeof c&&(T=c,c=a[Kb.LocaleId]),c=c.toLowerCase().replace(/_/g,"-"),z0[c]=a,T&&(z0[c][Kb.ExtraData]=T)}function t_(a){const c=function iE(a){return a.toLowerCase().replace(/_/g,"-")}(a);let T=bS(c);if(T)return T;const K=c.split("-")[0];if(T=bS(K),T)return T;if("en"===K)return H0;throw new Xt(701,!1)}function vS(a){return t_(a)[Kb.CurrencyCode]||null}function FC(a){return t_(a)[Kb.PluralCase]}function bS(a){return a in z0||(z0[a]=Ht.ng&&Ht.ng.common&&Ht.ng.common.locales&&Ht.ng.common.locales[a]),z0[a]}var Kb=function(a){return a[a.LocaleId=0]="LocaleId",a[a.DayPeriodsFormat=1]="DayPeriodsFormat",a[a.DayPeriodsStandalone=2]="DayPeriodsStandalone",a[a.DaysFormat=3]="DaysFormat",a[a.DaysStandalone=4]="DaysStandalone",a[a.MonthsFormat=5]="MonthsFormat",a[a.MonthsStandalone=6]="MonthsStandalone",a[a.Eras=7]="Eras",a[a.FirstDayOfWeek=8]="FirstDayOfWeek",a[a.WeekendRange=9]="WeekendRange",a[a.DateFormat=10]="DateFormat",a[a.TimeFormat=11]="TimeFormat",a[a.DateTimeFormat=12]="DateTimeFormat",a[a.NumberSymbols=13]="NumberSymbols",a[a.NumberFormats=14]="NumberFormats",a[a.CurrencyCode=15]="CurrencyCode",a[a.CurrencySymbol=16]="CurrencySymbol",a[a.CurrencyName=17]="CurrencyName",a[a.Currencies=18]="Currencies",a[a.Directionality=19]="Directionality",a[a.PluralCase=20]="PluralCase",a[a.ExtraData=21]="ExtraData",a}(Kb||{});const U0="en-US";let BC=U0;function v1(a,c,T,K){const le=Jt(),Te=Rt(),Ne=fn();return W0(Te,le,le[lo],Ne,a,c,K),v1}function b1(a,c){const T=fn(),K=Jt(),le=Rt();return W0(le,K,J0(Kr(le.data),T,K),T,a,c),b1}function W0(a,c,T,K,le,Te,Ne){const Xe=vu(K),ii=a.firstCreatePass&&ty(a),Oi=c[tl],un=Yg(c);let $n=!0;if(3&K.type||Ne){const ra=Uc(K,c),Ga=Ne?Ne(ra):ra,so=un.length,xa=Ne?Kd=>Ne(pl(Kd[K.index])):K.index;let Vs=null;if(!Ne&&Xe&&(Vs=function PE(a,c,T,K){const le=a.cleanup;if(null!=le)for(let Te=0;Te<le.length-1;Te+=2){const Ne=le[Te];if(Ne===T&&le[Te+1]===K){const Xe=c[Zr],ht=le[Te+2];return Xe.length>ht?Xe[ht]:null}"string"==typeof Ne&&(Te+=2)}return null}(a,c,le,K.index)),null!==Vs)(Vs.__ngLastListenerFn__||Vs).__ngNextListenerFn__=Te,Vs.__ngLastListenerFn__=Te,$n=!1;else{Te=$S(K,c,Oi,Te,!1);const Kd=T.listen(Ga,le,Te);un.push(Te,Kd),ii&&ii.push(le,xa,so,so+1)}}else Te=$S(K,c,Oi,Te,!1);const or=K.outputs;let Dr;if($n&&null!==or&&(Dr=or[le])){const ra=Dr.length;if(ra)for(let Ga=0;Ga<ra;Ga+=2){const nu=c[Dr[Ga]][Dr[Ga+1]].subscribe(Te),Cf=un.length;un.push(Te,nu),ii&&ii.push(le,K.index,Cf,-(Cf+1))}}}function YS(a,c,T,K){const le=R(null);try{return yu(6,c,T),!1!==T(K)}catch(Te){return Qv(a,Te),!1}finally{yu(7,c,T),R(le)}}function $S(a,c,T,K,le){return function Te(Ne){if(Ne===Function)return K;Dv(a.componentOffset>-1?Gc(a.index,c):c);let ht=YS(c,T,K,Ne),ii=Te.__ngNextListenerFn__;for(;ii;)ht=YS(c,T,ii,Ne)&&ht,ii=ii.__ngNextListenerFn__;return le&&!1===ht&&Ne.preventDefault(),ht}}function KS(a=1){return function za(a){return(Uo.lFrame.contextLView=function qp(a,c){for(;a>0;)c=c[Vh],a--;return c}(a,Uo.lFrame.contextLView))[tl]}(a)}function FE(a,c){let T=null;const K=function ou(a){const c=a.attrs;if(null!=c){const T=c.indexOf(5);if(!(1&T))return c[T+1]}return null}(a);for(let le=0;le<c.length;le++){const Te=c[le];if("*"!==Te){if(null===K?Cs(a,Te,!0):qe(K,Te))return le}else T=le}return T}function XS(a){const c=Jt()[Ks][Wn];if(!c.projection){const K=c.projection=function Hs(a,c){const T=[];for(let K=0;K<a;K++)T.push(c);return T}(a?a.length:1,null),le=K.slice();let Te=c.child;for(;null!==Te;){const Ne=a?FE(Te,a):0;null!==Ne&&(le[Ne]?le[Ne].projectionNext=Te:K[Ne]=Te,le[Ne]=Te),Te=Te.next}}}function JS(a,c=0,T){const K=Jt(),le=Rt(),Te=H(le,ko+a,16,null,T||null);null===Te.projection&&(Te.projection=c),ur(),(!K[nd]||Le())&&32&~Te.flags&&function f_(a,c,T){_f(c[lo],0,c,T,Km(a,T,c),p_(T.parent||c[Wn],T,c))}(le,K,Te)}function y1(a,c,T){return x1(a,"",c,"",T),y1}function x1(a,c,T,K,le){const Te=Jt(),Ne=Nv(Te,c,T,K);return Ne!==As&&Js(Rt(),Oa(),Te,a,Ne,Te[lo],le,!1),x1}function nD(a,c,T,K){!function Jg(a,c,T,K){const le=Rt();if(le.firstCreatePass){const Te=fn();yb(le,new Ty(c,T,K),Te.index),function U1(a,c){const T=a.contentQueries||(a.contentQueries=[]);c!==(T.length?T[T.length-1]:-1)&&T.push(a.queries.length-1,c)}(le,a),!(2&~T)&&(le.staticContentQueries=!0)}return ww(le,Jt(),T)}(a,c,T,K)}function i_(a,c,T){!function y0(a,c,T){const K=Rt();return K.firstCreatePass&&(yb(K,new Ty(a,c,T),-1),!(2&~c)&&(K.staticViewQueries=!0)),ww(K,Jt(),c)}(a,c,T)}function rD(a){const c=Jt(),T=Rt(),K=Xr();Ja(K+1);const le=qx(T,K);if(a.dirty&&function og(a){return!(4&~a[ba])}(c)===!(2&~le.metadata.flags)){if(null===le.matches)a.reset([]);else{const Te=xb(c,K);a.reset(Te,rf),a.notifyOnChanges()}return!0}return!1}function aD(){return function b0(a,c){return a[fh].queries[c].queryList}(Jt(),Xr())}function oD(a){return up(function Vr(){return Uo.lFrame.contextLView}(),ko+a)}function fD(a,c=""){const T=Jt(),K=Rt(),le=a+ko,Te=K.firstCreatePass?H(K,le,1,c,null):K.data[le],Ne=mD(K,T,Te,c,a);T[le]=Ne,ka()&&Jm(K,T,Ne,Te),kn(Te,!1)}let mD=(a,c,T,K,le)=>(Ka(!0),function Hf(a,c){return a.createText(c)}(c[lo],K));function T1(a){return YC("",a,""),T1}function YC(a,c,T){const K=Jt(),le=Nv(K,a,c,T);return le!==As&&tg(K,_a(),le),YC}function pv(a,c,T,K,le){const Te=Jt(),Ne=lv(Te,a,c,T,K,le);return Ne!==As&&tg(Te,_a(),Ne),pv}function ta(a,c,T){eC(c)&&(c=c());const K=Jt();return Ac(K,hn(),c)&&Js(Rt(),Oa(),K,a,c,K[lo],T,!1),ta}function CD(a,c){const T=eC(a);return T&&a.set(c),T}function A1(a,c){const T=Jt(),K=Rt(),le=fn();return W0(K,T,T[lo],le,a,c),A1}function e(a,c,T,K,le){if(a=Ut(a),Array.isArray(a))for(let Te=0;Te<a.length;Te++)e(a[Te],c,T,K,le);else{const Te=Rt(),Ne=Jt(),Xe=fn();let ht=xc(a)?a:Ut(a.provide);const ii=Ir(a),Oi=1048575&Xe.providerIndexes,un=Xe.directiveStart,$n=Xe.providerIndexes>>20;if(xc(a)||!a.multi){const or=new ro(ii,le,eg),Dr=p(ht,c,le?Oi:Oi+$n,un);-1===Dr?(Dd(wd(Xe,Ne),Te,ht),t(Te,a,c.length),c.push(ht),Xe.directiveStart++,Xe.directiveEnd++,le&&(Xe.providerIndexes+=1048576),T.push(or),Ne.push(or)):(T[Dr]=or,Ne[Dr]=or)}else{const or=p(ht,c,Oi+$n,un),Dr=p(ht,c,Oi,Oi+$n),Ga=Dr>=0&&T[Dr];if(le&&!Ga||!le&&!(or>=0&&T[or])){Dd(wd(Xe,Ne),Te,ht);const so=function ke(a,c,T,K,le){const Te=new ro(a,T,eg);return Te.multi=[],Te.index=c,Te.componentProviders=0,n(Te,le,K&&!T),Te}(le?J:P,T.length,le,K,ii);!le&&Ga&&(T[Dr].providerFactory=so),t(Te,a,c.length,0),c.push(ht),Xe.directiveStart++,Xe.directiveEnd++,le&&(Xe.providerIndexes+=1048576),T.push(so),Ne.push(so)}else t(Te,a,or>-1?or:Dr,n(T[le?Dr:or],ii,!le&&K));!le&&K&&Ga&&T[Dr].componentProviders++}}}function t(a,c,T,K){const le=xc(c),Te=function wo(a){return!!a.useClass}(c);if(le||Te){const ht=(Te?Ut(c.useClass):c).prototype.ngOnDestroy;if(ht){const ii=a.destroyHooks||(a.destroyHooks=[]);if(!le&&c.multi){const Oi=ii.indexOf(T);-1===Oi?ii.push(T,[K,ht]):ii[Oi+1].push(K,ht)}else ii.push(T,ht)}}}function n(a,c,T){return T&&a.componentProviders++,a.multi.push(c)-1}function p(a,c,T,K){for(let le=T;le<K;le++)if(c[le]===a)return le;return-1}function P(a,c,T,K){return fe(this.multi,[])}function J(a,c,T,K){const le=this.multi;let Te;if(this.providerFactory){const Ne=this.providerFactory.componentProviders,Xe=od(T,T[vr],this.providerFactory.index,K);Te=Xe.slice(0,Ne),fe(le,Te);for(let ht=Ne;ht<Xe.length;ht++)Te.push(Xe[ht])}else Te=[],fe(le,Te);return Te}function fe(a,c){for(let T=0;T<a.length;T++)c.push((0,a[T])());return c}function Ue(a,c=[]){return T=>{T.providersResolver=(K,le)=>function V(a,c,T){const K=Rt();if(K.firstCreatePass){const le=cc(a);e(T,K.data,K.blueprint,le,!0),e(c,K.data,K.blueprint,le,!1)}}(K,le?le(a):a,c)}}let Ze=(()=>{class a{constructor(T){this._injector=T,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(T){if(!T.standalone)return null;if(!this.cachedInjectors.has(T)){const K=Qd(0,T.type),le=K.length>0?kb([K],this._injector,`Standalone[${T.type.name}]`):null;this.cachedInjectors.set(T,le)}return this.cachedInjectors.get(T)}ngOnDestroy(){try{for(const T of this.cachedInjectors.values())null!==T&&T.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Pr({token:a,providedIn:"environment",factory:()=>new a(Ni(Ei))})}return a})();function Ft(a){Dm("NgStandalone"),a.getStandaloneInjector=c=>c.get(Ze).getOrCreateStandaloneInjector(a)}function Li(a,c){return Ge(()=>{const T=Gd(a,!0);T.declarations=tn(c.declarations||vs),T.imports=tn(c.imports||vs),T.exports=tn(c.exports||vs),c.bootstrap&&(T.bootstrap=tn(c.bootstrap)),f0.registerNgModule(a,c)})}function tn(a){if("function"==typeof a)return a;const c=gs(a);return c.some(It)?()=>c.map(Ut).map(On):c.map(On)}function On(a){return w_(a)?a.ngModule:a}function Qn(a,c,T){const K=Nr()+a,le=Jt();return le[K]===As?fm(le,K,T?c.call(T):c()):function A0(a,c){return a[c]}(le,K)}function zr(a,c,T,K){return n_(Jt(),Nr(),a,c,T,K)}function Nh(a,c){const T=a[c];return T===As?void 0:T}function n_(a,c,T,K,le,Te){const Ne=c+T;return Ac(a,Ne,le)?fm(a,Ne+1,Te?K.call(Te,le):K(le)):Nh(a,Ne+1)}function Lg(a,c,T,K,le,Te,Ne,Xe){const ht=c+T;return function I0(a,c,T,K,le){const Te=M_(a,c,T,K);return Ac(a,c+2,le)||Te}(a,ht,le,Te,Ne)?fm(a,ht+3,Xe?K.call(Xe,le,Te,Ne):K(le,Te,Ne)):Nh(a,ht+3)}function j0(a,c,T,K,le,Te,Ne,Xe,ht){const ii=c+T;return function bf(a,c,T,K,le,Te){const Ne=M_(a,c,T,K);return M_(a,c+2,le,Te)||Ne}(a,ii,le,Te,Ne,Xe)?fm(a,ii+4,ht?K.call(ht,le,Te,Ne,Xe):K(le,Te,Ne,Xe)):Nh(a,ii+4)}function yM(a,c){const T=Rt();let K;const le=a+ko;T.firstCreatePass?(K=function UO(a,c){if(c)for(let T=c.length-1;T>=0;T--){const K=c[T];if(a===K.name)return K}}(c,T.pipeRegistry),T.data[le]=K,K.onDestroy&&(T.destroyHooks??=[]).push(le,K.onDestroy)):K=T.data[le];const Te=K.factory||(K.factory=Mo(K.type)),Xe=ms(eg);try{const ht=os(!1),ii=Te();return os(ht),function HE(a,c,T,K){T>=a.data.length&&(a.data[T]=null,a.blueprint[T]=null),c[T]=K}(T,Jt(),le,ii),ii}finally{ms(Xe)}}function xM(a,c,T){const K=a+ko,le=Jt(),Te=up(le,K);return I1(le,K)?n_(le,Nr(),c,Te.transform,T,Te):Te.transform(T)}function CM(a,c,T,K){const le=a+ko,Te=Jt(),Ne=up(Te,le);return I1(Te,le)?function fv(a,c,T,K,le,Te,Ne){const Xe=c+T;return M_(a,Xe,le,Te)?fm(a,Xe+2,Ne?K.call(Ne,le,Te):K(le,Te)):Nh(a,Xe+2)}(Te,Nr(),c,Ne.transform,T,K,Ne):Ne.transform(T,K)}function wM(a,c,T,K,le){const Te=a+ko,Ne=Jt(),Xe=up(Ne,Te);return I1(Ne,Te)?Lg(Ne,Nr(),c,Xe.transform,T,K,le,Xe):Xe.transform(T,K,le)}function SM(a,c,T,K,le,Te){const Ne=a+ko,Xe=Jt(),ht=up(Xe,Ne);return I1(Xe,Ne)?j0(Xe,Nr(),c,ht.transform,T,K,le,Te,ht):ht.transform(T,K,le,Te)}function I1(a,c){return a[vr].data[c].pure}function DM(a,c){return e0(a,c)}class zM{constructor(c){this.full=c;const T=c.split(".");this.major=T[0],this.minor=T[1],this.patch=T.slice(2).join(".")}}const uT=new zM("17.3.10");let UM=(()=>{class a{log(T){console.log(T)}warn(T){console.warn(T)}static#e=this.\u0275fac=function(K){return new(K||a)};static#t=this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"platform"})}return a})();const $M=new ln(""),KM=new ln("");let QE,BT=(()=>{class a{constructor(T,K,le){this._ngZone=T,this.registry=K,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,QE||(function NT(a){QE=a}(le),le.addToWindow(K)),this._watchAngularEvents(),T.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Tu.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let T=this._callbacks.pop();clearTimeout(T.timeoutId),T.doneCb()}});else{let T=this.getPendingTasks();this._callbacks=this._callbacks.filter(K=>!K.updateCb||!K.updateCb(T)||(clearTimeout(K.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(T=>({source:T.source,creationLocation:T.creationLocation,data:T.data})):[]}addCallback(T,K,le){let Te=-1;K&&K>0&&(Te=setTimeout(()=>{this._callbacks=this._callbacks.filter(Ne=>Ne.timeoutId!==Te),T()},K)),this._callbacks.push({doneCb:T,timeoutId:Te,updateCb:le})}whenStable(T,K,le){if(le&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(T,K,le),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(T){this.registry.registerApplication(T,this)}unregisterApplication(T){this.registry.unregisterApplication(T)}findProviders(T,K,le){return[]}static#e=this.\u0275fac=function(K){return new(K||a)(Ni(Tu),Ni(XM),Ni(KM))};static#t=this.\u0275prov=Pr({token:a,factory:a.\u0275fac})}return a})(),XM=(()=>{class a{constructor(){this._applications=new Map}registerApplication(T,K){this._applications.set(T,K)}unregisterApplication(T){this._applications.delete(T)}unregisterAllApplications(){this._applications.clear()}getTestability(T){return this._applications.get(T)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(T,K=!0){return QE?.findTestabilityInTree(this,T,K)??null}static#e=this.\u0275fac=function(K){return new(K||a)};static#t=this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"platform"})}return a})();function ZE(a){return!!a&&"function"==typeof a.then}function JM(a){return!!a&&"function"==typeof a.subscribe}const QM=new ln("");let qE=(()=>{class a{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((T,K)=>{this.resolve=T,this.reject=K}),this.appInits=Dn(QM,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const T=[];for(const le of this.appInits){const Te=le();if(ZE(Te))T.push(Te);else if(JM(Te)){const Ne=new Promise((Xe,ht)=>{Te.subscribe({complete:Xe,error:ht})});T.push(Ne)}}const K=()=>{this.done=!0,this.resolve()};Promise.all(T).then(()=>{K()}).catch(le=>{this.reject(le)}),0===T.length&&K(),this.initialized=!0}static#e=this.\u0275fac=function(K){return new(K||a)};static#t=this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();const eM=new ln("");function eO(a,c){return Array.isArray(c)?c.reduce(eO,a):{...a,...c}}let Zb=(()=>{class a{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Dn(Zf),this.afterRenderEffectManager=Dn(u0),this.externalTestViews=new Set,this.beforeRender=new de.B,this.afterTick=new de.B,this.componentTypes=[],this.components=[],this.isStable=Dn(Iv).hasPendingTasks.pipe((0,We.T)(T=>!T)),this._injector=Dn(Ei)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(T,K){const le=T instanceof gy;if(!this._injector.get(qE).done)throw!le&&Cd(T),new Xt(405,!1);let Ne;Ne=le?T:this._injector.get(s0).resolveComponentFactory(T),this.componentTypes.push(Ne.componentType);const Xe=function VT(a){return a.isBoundToModule}(Ne)?void 0:this._injector.get(tv),ii=Ne.create(Pd.NULL,[],K||Ne.selector,Xe),Oi=ii.location.nativeElement,un=ii.injector.get($M,null);return un?.registerApplication(Oi),ii.onDestroy(()=>{this.detachView(ii.hostView),DD(this.components,ii),un?.unregisterApplication(Oi)}),this._loadComponent(ii),ii}tick(){this._tick(!0)}_tick(T){if(this._runningTick)throw new Xt(101,!1);const K=R(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(T)}catch(le){this.internalErrorHandler(le)}finally{this.afterTick.next(),this._runningTick=!1,R(K)}}detectChangesInAttachedViews(T){let K=0;const le=this.afterRenderEffectManager;for(;;){if(K===wx)throw new Xt(103,!1);if(T){const Te=0===K;this.beforeRender.next(Te);for(let{_lView:Ne,notifyErrorHandler:Xe}of this._views)zT(Ne,Te,Xe)}if(K++,le.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:Te})=>tM(Te))&&(le.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:Te})=>tM(Te))))break}}attachView(T){const K=T;this._views.push(K),K.attachToAppRef(this)}detachView(T){const K=T;DD(this._views,K),K.detachFromAppRef()}_loadComponent(T){this.attachView(T.hostView),this.tick(),this.components.push(T);const K=this._injector.get(eM,[]);[...this._bootstrapListeners,...K].forEach(le=>le(T))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(T=>T()),this._views.slice().forEach(T=>T.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(T){return this._destroyListeners.push(T),()=>DD(this._destroyListeners,T)}destroy(){if(this._destroyed)throw new Xt(406,!1);const T=this._injector;T.destroy&&!T.destroyed&&T.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(K){return new(K||a)};static#t=this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function DD(a,c){const T=a.indexOf(c);T>-1&&a.splice(T,1)}function zT(a,c,T){!c&&!tM(a)||function UT(a,c,T){let K;T?(K=0,a[ba]|=1024):K=64&a[ba]?0:1,Sv(a,c,K)}(a,T,c)}function tM(a){return Sf(a)}class GT{constructor(c,T){this.ngModuleFactory=c,this.componentFactories=T}}let WT=(()=>{class a{compileModuleSync(T){return new T0(T)}compileModuleAsync(T){return Promise.resolve(this.compileModuleSync(T))}compileModuleAndAllComponentsSync(T){const K=this.compileModuleSync(T),Te=Co(Gd(T).declarations).reduce((Ne,Xe)=>{const ht=es(Xe);return ht&&Ne.push(new g0(ht)),Ne},[]);return new GT(K,Te)}compileModuleAndAllComponentsAsync(T){return Promise.resolve(this.compileModuleAndAllComponentsSync(T))}clearCache(){}clearCacheFor(T){}getModuleId(T){}static#e=this.\u0275fac=function(K){return new(K||a)};static#t=this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})(),$T=(()=>{class a{constructor(){this.zone=Dn(Tu),this.applicationRef=Dn(Zb)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(K){return new(K||a)};static#t=this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function KT(){const a=Dn(Tu),c=Dn(qh);return T=>a.runOutsideAngular(()=>c.handleError(T))}let JT=(()=>{class a{constructor(){this.subscription=new pe.yU,this.initialized=!1,this.zone=Dn(Tu),this.pendingTasks=Dn(Iv)}initialize(){if(this.initialized)return;this.initialized=!0;let T=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(T=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Tu.assertNotInAngularZone(),queueMicrotask(()=>{null!==T&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(T),T=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Tu.assertInAngularZone(),T??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(K){return new(K||a)};static#t=this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();const MD=new ln("",{providedIn:"root",factory:()=>Dn(MD,Ha.Optional|Ha.SkipSelf)||function QT(){return typeof $localize<"u"&&$localize.locale||U0}()}),ZT=new ln("",{providedIn:"root",factory:()=>"USD"}),iM=new ln("");let rO=(()=>{class a{constructor(T){this._injector=T,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(T,K){const le=function bw(a="zone.js",c){return"noop"===a?new Au:"zone.js"===a?new Tu(c):a}(K?.ngZone,function nO(a){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:a?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:a?.runCoalescing??!1}}({eventCoalescing:K?.ngZoneEventCoalescing,runCoalescing:K?.ngZoneRunCoalescing}));return le.run(()=>{const Te=function Fh(a,c,T){return new E_(a,c,T)}(T.moduleType,this.injector,function iO(a){return[{provide:Tu,useFactory:a},{provide:Jd,multi:!0,useFactory:()=>{const c=Dn($T,{optional:!0});return()=>c.initialize()}},{provide:Jd,multi:!0,useFactory:()=>{const c=Dn(JT);return()=>{c.initialize()}}},{provide:Zf,useFactory:KT}]}(()=>le)),Ne=Te.injector.get(qh,null);return le.runOutsideAngular(()=>{const Xe=le.onError.subscribe({next:ht=>{Ne.handleError(ht)}});Te.onDestroy(()=>{DD(this._modules,Te),Xe.unsubscribe()})}),function qM(a,c,T){try{const K=T();return ZE(K)?K.catch(le=>{throw c.runOutsideAngular(()=>a.handleError(le)),le}):K}catch(K){throw c.runOutsideAngular(()=>a.handleError(K)),K}}(Ne,le,()=>{const Xe=Te.injector.get(qE);return Xe.runInitializers(),Xe.donePromise.then(()=>(function yS(a){"string"==typeof a&&(BC=a.toLowerCase().replace(/_/g,"-"))}(Te.injector.get(MD,U0)||U0),this._moduleDoBootstrap(Te),Te))})})}bootstrapModule(T,K=[]){const le=eO({},K);return function YT(a,c,T){const K=new T0(T);return Promise.resolve(K)}(0,0,T).then(Te=>this.bootstrapModuleFactory(Te,le))}_moduleDoBootstrap(T){const K=T.injector.get(Zb);if(T._bootstrapComponents.length>0)T._bootstrapComponents.forEach(le=>K.bootstrap(le));else{if(!T.instance.ngDoBootstrap)throw new Xt(-403,!1);T.instance.ngDoBootstrap(K)}this._modules.push(T)}onDestroy(T){this._destroyListeners.push(T)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Xt(404,!1);this._modules.slice().forEach(K=>K.destroy()),this._destroyListeners.forEach(K=>K());const T=this._injector.get(iM,null);T&&(T.forEach(K=>K()),T.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(K){return new(K||a)(Ni(Pd))};static#t=this.\u0275prov=Pr({token:a,factory:a.\u0275fac,providedIn:"platform"})}return a})(),qb=null;const aO=new ln("");function oO(a,c,T=[]){const K=`Platform: ${c}`,le=new ln(K);return(Te=[])=>{let Ne=nM();if(!Ne||Ne.injector.get(aO,!1)){const Xe=[...T,...Te,{provide:le,useValue:!0}];a?a(Xe):function eA(a){if(qb&&!qb.get(aO,!1))throw new Xt(400,!1);(function ZM(){!function N(a){me=a}(()=>{throw new Xt(600,!1)})})(),qb=a;const c=a.get(rO);(function lO(a){a.get(ld,null)?.forEach(T=>T())})(a)}(function sO(a=[],c){return Pd.create({name:c,providers:[{provide:lc,useValue:"platform"},{provide:iM,useValue:new Set([()=>qb=null])},...a]})}(Xe,K))}return function tA(a){const c=nM();if(!c)throw new Xt(401,!1);return c}()}}function nM(){return qb?.get(rO)??null}function nA(){}let cO=(()=>{class a{static#e=this.__NG_ELEMENT_ID__=rA}return a})();function rA(a){return function aA(a,c,T){if(_u(a)&&!T){const K=Gc(a.index,c);return new Ev(K,K)}return 47&a.type?new Ev(c[Ks],c):null}(fn(),Jt(),!(16&~a))}class fO{constructor(){}supports(c){return Pb(c)}create(c){return new cA(c)}}const dA=(a,c)=>c;class cA{constructor(c){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=c||dA}forEachItem(c){let T;for(T=this._itHead;null!==T;T=T._next)c(T)}forEachOperation(c){let T=this._itHead,K=this._removalsHead,le=0,Te=null;for(;T||K;){const Ne=!K||T&&T.currentIndex<gO(K,le,Te)?T:K,Xe=gO(Ne,le,Te),ht=Ne.currentIndex;if(Ne===K)le--,K=K._nextRemoved;else if(T=T._next,null==Ne.previousIndex)le++;else{Te||(Te=[]);const ii=Xe-le,Oi=ht-le;if(ii!=Oi){for(let $n=0;$n<ii;$n++){const or=$n<Te.length?Te[$n]:Te[$n]=0,Dr=or+$n;Oi<=Dr&&Dr<ii&&(Te[$n]=or+1)}Te[Ne.previousIndex]=Oi-ii}}Xe!==ht&&c(Ne,Xe,ht)}}forEachPreviousItem(c){let T;for(T=this._previousItHead;null!==T;T=T._nextPrevious)c(T)}forEachAddedItem(c){let T;for(T=this._additionsHead;null!==T;T=T._nextAdded)c(T)}forEachMovedItem(c){let T;for(T=this._movesHead;null!==T;T=T._nextMoved)c(T)}forEachRemovedItem(c){let T;for(T=this._removalsHead;null!==T;T=T._nextRemoved)c(T)}forEachIdentityChange(c){let T;for(T=this._identityChangesHead;null!==T;T=T._nextIdentityChange)c(T)}diff(c){if(null==c&&(c=[]),!Pb(c))throw new Xt(900,!1);return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let le,Te,Ne,T=this._itHead,K=!1;if(Array.isArray(c)){this.length=c.length;for(let Xe=0;Xe<this.length;Xe++)Te=c[Xe],Ne=this._trackByFn(Xe,Te),null!==T&&Object.is(T.trackById,Ne)?(K&&(T=this._verifyReinsertion(T,Te,Ne,Xe)),Object.is(T.item,Te)||this._addIdentityChange(T,Te)):(T=this._mismatch(T,Te,Ne,Xe),K=!0),T=T._next}else le=0,function Ig(a,c){if(Array.isArray(a))for(let T=0;T<a.length;T++)c(a[T]);else{const T=a[Symbol.iterator]();let K;for(;!(K=T.next()).done;)c(K.value)}}(c,Xe=>{Ne=this._trackByFn(le,Xe),null!==T&&Object.is(T.trackById,Ne)?(K&&(T=this._verifyReinsertion(T,Xe,Ne,le)),Object.is(T.item,Xe)||this._addIdentityChange(T,Xe)):(T=this._mismatch(T,Xe,Ne,le),K=!0),T=T._next,le++}),this.length=le;return this._truncate(T),this.collection=c,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let c;for(c=this._previousItHead=this._itHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._additionsHead;null!==c;c=c._nextAdded)c.previousIndex=c.currentIndex;for(this._additionsHead=this._additionsTail=null,c=this._movesHead;null!==c;c=c._nextMoved)c.previousIndex=c.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(c,T,K,le){let Te;return null===c?Te=this._itTail:(Te=c._prev,this._remove(c)),null!==(c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(K,null))?(Object.is(c.item,T)||this._addIdentityChange(c,T),this._reinsertAfter(c,Te,le)):null!==(c=null===this._linkedRecords?null:this._linkedRecords.get(K,le))?(Object.is(c.item,T)||this._addIdentityChange(c,T),this._moveAfter(c,Te,le)):c=this._addAfter(new uA(T,K),Te,le),c}_verifyReinsertion(c,T,K,le){let Te=null===this._unlinkedRecords?null:this._unlinkedRecords.get(K,null);return null!==Te?c=this._reinsertAfter(Te,c._prev,le):c.currentIndex!=le&&(c.currentIndex=le,this._addToMoves(c,le)),c}_truncate(c){for(;null!==c;){const T=c._next;this._addToRemovals(this._unlink(c)),c=T}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(c,T,K){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(c);const le=c._prevRemoved,Te=c._nextRemoved;return null===le?this._removalsHead=Te:le._nextRemoved=Te,null===Te?this._removalsTail=le:Te._prevRemoved=le,this._insertAfter(c,T,K),this._addToMoves(c,K),c}_moveAfter(c,T,K){return this._unlink(c),this._insertAfter(c,T,K),this._addToMoves(c,K),c}_addAfter(c,T,K){return this._insertAfter(c,T,K),this._additionsTail=null===this._additionsTail?this._additionsHead=c:this._additionsTail._nextAdded=c,c}_insertAfter(c,T,K){const le=null===T?this._itHead:T._next;return c._next=le,c._prev=T,null===le?this._itTail=c:le._prev=c,null===T?this._itHead=c:T._next=c,null===this._linkedRecords&&(this._linkedRecords=new mO),this._linkedRecords.put(c),c.currentIndex=K,c}_remove(c){return this._addToRemovals(this._unlink(c))}_unlink(c){null!==this._linkedRecords&&this._linkedRecords.remove(c);const T=c._prev,K=c._next;return null===T?this._itHead=K:T._next=K,null===K?this._itTail=T:K._prev=T,c}_addToMoves(c,T){return c.previousIndex===T||(this._movesTail=null===this._movesTail?this._movesHead=c:this._movesTail._nextMoved=c),c}_addToRemovals(c){return null===this._unlinkedRecords&&(this._unlinkedRecords=new mO),this._unlinkedRecords.put(c),c.currentIndex=null,c._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=c,c._prevRemoved=null):(c._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=c),c}_addIdentityChange(c,T){return c.item=T,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=c:this._identityChangesTail._nextIdentityChange=c,c}}class uA{constructor(c,T){this.item=c,this.trackById=T,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class hA{constructor(){this._head=null,this._tail=null}add(c){null===this._head?(this._head=this._tail=c,c._nextDup=null,c._prevDup=null):(this._tail._nextDup=c,c._prevDup=this._tail,c._nextDup=null,this._tail=c)}get(c,T){let K;for(K=this._head;null!==K;K=K._nextDup)if((null===T||T<=K.currentIndex)&&Object.is(K.trackById,c))return K;return null}remove(c){const T=c._prevDup,K=c._nextDup;return null===T?this._head=K:T._nextDup=K,null===K?this._tail=T:K._prevDup=T,null===this._head}}class mO{constructor(){this.map=new Map}put(c){const T=c.trackById;let K=this.map.get(T);K||(K=new hA,this.map.set(T,K)),K.add(c)}get(c,T){const le=this.map.get(c);return le?le.get(c,T):null}remove(c){const T=c.trackById;return this.map.get(T).remove(c)&&this.map.delete(T),c}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gO(a,c,T){const K=a.previousIndex;if(null===K)return K;let le=0;return T&&K<T.length&&(le=T[K]),K+c+le}class _O{constructor(){}supports(c){return c instanceof Map||Vy(c)}create(){return new pA}}class pA{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(c){let T;for(T=this._mapHead;null!==T;T=T._next)c(T)}forEachPreviousItem(c){let T;for(T=this._previousMapHead;null!==T;T=T._nextPrevious)c(T)}forEachChangedItem(c){let T;for(T=this._changesHead;null!==T;T=T._nextChanged)c(T)}forEachAddedItem(c){let T;for(T=this._additionsHead;null!==T;T=T._nextAdded)c(T)}forEachRemovedItem(c){let T;for(T=this._removalsHead;null!==T;T=T._nextRemoved)c(T)}diff(c){if(c){if(!(c instanceof Map||Vy(c)))throw new Xt(900,!1)}else c=new Map;return this.check(c)?this:null}onDestroy(){}check(c){this._reset();let T=this._mapHead;if(this._appendAfter=null,this._forEach(c,(K,le)=>{if(T&&T.key===le)this._maybeAddToChanges(T,K),this._appendAfter=T,T=T._next;else{const Te=this._getOrCreateRecordForKey(le,K);T=this._insertBeforeOrAppend(T,Te)}}),T){T._prev&&(T._prev._next=null),this._removalsHead=T;for(let K=T;null!==K;K=K._nextRemoved)K===this._mapHead&&(this._mapHead=null),this._records.delete(K.key),K._nextRemoved=K._next,K.previousValue=K.currentValue,K.currentValue=null,K._prev=null,K._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(c,T){if(c){const K=c._prev;return T._next=c,T._prev=K,c._prev=T,K&&(K._next=T),c===this._mapHead&&(this._mapHead=T),this._appendAfter=c,c}return this._appendAfter?(this._appendAfter._next=T,T._prev=this._appendAfter):this._mapHead=T,this._appendAfter=T,null}_getOrCreateRecordForKey(c,T){if(this._records.has(c)){const le=this._records.get(c);this._maybeAddToChanges(le,T);const Te=le._prev,Ne=le._next;return Te&&(Te._next=Ne),Ne&&(Ne._prev=Te),le._next=null,le._prev=null,le}const K=new fA(c);return this._records.set(c,K),K.currentValue=T,this._addToAdditions(K),K}_reset(){if(this.isDirty){let c;for(this._previousMapHead=this._mapHead,c=this._previousMapHead;null!==c;c=c._next)c._nextPrevious=c._next;for(c=this._changesHead;null!==c;c=c._nextChanged)c.previousValue=c.currentValue;for(c=this._additionsHead;null!=c;c=c._nextAdded)c.previousValue=c.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(c,T){Object.is(T,c.currentValue)||(c.previousValue=c.currentValue,c.currentValue=T,this._addToChanges(c))}_addToAdditions(c){null===this._additionsHead?this._additionsHead=this._additionsTail=c:(this._additionsTail._nextAdded=c,this._additionsTail=c)}_addToChanges(c){null===this._changesHead?this._changesHead=this._changesTail=c:(this._changesTail._nextChanged=c,this._changesTail=c)}_forEach(c,T){c instanceof Map?c.forEach(T):Object.keys(c).forEach(K=>T(c[K],K))}}class fA{constructor(c){this.key=c,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function vO(){return new lM([new fO])}let lM=(()=>{class a{static#e=this.\u0275prov=Pr({token:a,providedIn:"root",factory:vO});constructor(T){this.factories=T}static create(T,K){if(null!=K){const le=K.factories.slice();T=T.concat(le)}return new a(T)}static extend(T){return{provide:a,useFactory:K=>a.create(T,K||vO()),deps:[[a,new $a,new ga]]}}find(T){const K=this.factories.find(le=>le.supports(T));if(null!=K)return K;throw new Xt(901,!1)}}return a})();function bO(){return new dM([new _O])}let dM=(()=>{class a{static#e=this.\u0275prov=Pr({token:a,providedIn:"root",factory:bO});constructor(T){this.factories=T}static create(T,K){if(K){const le=K.factories.slice();T=T.concat(le)}return new a(T)}static extend(T){return{provide:a,useFactory:K=>a.create(T,K||bO()),deps:[[a,new $a,new ga]]}}find(T){const K=this.factories.find(le=>le.supports(T));if(K)return K;throw new Xt(901,!1)}}return a})();const _A=oO(null,"core",[]);let vA=(()=>{class a{constructor(T){}static#e=this.\u0275fac=function(K){return new(K||a)(Ni(Zb))};static#t=this.\u0275mod=Xo({type:a});static#i=this.\u0275inj=ja({})}return a})();function $A(a){return"boolean"==typeof a?a:null!=a&&"false"!==a}function XA(a){const c=R(null);try{return a()}finally{R(c)}}function tI(a){const c=es(a);if(!c)return null;const T=new g0(c);return{get selector(){return T.selector},get type(){return T.componentType},get inputs(){return T.inputs},get outputs(){return T.outputs},get ngContentSelectors(){return T.ngContentSelectors},get isStandalone(){return c.standalone},get isSignal(){return c.signals}}}},89417:(ei,rt,D)=>{"use strict";D.d(rt,{BC:()=>vt,MJ:()=>ji,X1:()=>ks,YN:()=>au,YS:()=>el,cV:()=>ri,cb:()=>Xt,cz:()=>k,j4:()=>rs,k0:()=>g,kq:()=>m,l_:()=>Wl,me:()=>O,qT:()=>$o,tU:()=>al,vO:()=>pe,vS:()=>ia,xq:()=>_s});var r=D(54438),d=D(60177),L=D(86648),j=D(27468),o=D(96354);let E=(()=>{class oi{constructor(zt,Yi){this._renderer=zt,this._elementRef=Yi,this.onChange=Un=>{},this.onTouched=()=>{}}setProperty(zt,Yi){this._renderer.setProperty(this._elementRef.nativeElement,zt,Yi)}registerOnTouched(zt){this.onTouched=zt}registerOnChange(zt){this.onChange=zt}setDisabledState(zt){this.setProperty("disabled",zt)}static#e=this.\u0275fac=function(Yi){return new(Yi||oi)(r.rXU(r.sFG),r.rXU(r.aKT))};static#t=this.\u0275dir=r.FsC({type:oi})}return oi})(),R=(()=>{class oi extends E{static#e=this.\u0275fac=(()=>{let zt;return function(Un){return(zt||(zt=r.xGo(oi)))(Un||oi)}})();static#t=this.\u0275dir=r.FsC({type:oi,features:[r.Vt3]})}return oi})();const m=new r.nKC(""),h={provide:m,useExisting:(0,r.Rfq)(()=>O),multi:!0},b=new r.nKC("");let O=(()=>{class oi extends E{constructor(zt,Yi,Un){super(zt,Yi),this._compositionMode=Un,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function s(){const oi=(0,d.QT)()?(0,d.QT)().getUserAgent():"";return/android (\d+)/.test(oi.toLowerCase())}())}writeValue(zt){this.setProperty("value",zt??"")}_handleInput(zt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(zt)}_compositionStart(){this._composing=!0}_compositionEnd(zt){this._composing=!1,this._compositionMode&&this.onChange(zt)}static#e=this.\u0275fac=function(Yi){return new(Yi||oi)(r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(b,8))};static#t=this.\u0275dir=r.FsC({type:oi,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Yi,Un){1&Yi&&r.bIt("input",function(No){return Un._handleInput(No.target.value)})("blur",function(){return Un.onTouched()})("compositionstart",function(){return Un._compositionStart()})("compositionend",function(No){return Un._compositionEnd(No.target.value)})},features:[r.Jv_([h]),r.Vt3]})}return oi})();function w(oi){return null==oi||("string"==typeof oi||Array.isArray(oi))&&0===oi.length}function f(oi){return null!=oi&&"number"==typeof oi.length}const k=new r.nKC(""),I=new r.nKC(""),x=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class g{static min(yi){return function C(oi){return yi=>{if(w(yi.value)||w(oi))return null;const zt=parseFloat(yi.value);return!isNaN(zt)&&zt<oi?{min:{min:oi,actual:yi.value}}:null}}(yi)}static max(yi){return function F(oi){return yi=>{if(w(yi.value)||w(oi))return null;const zt=parseFloat(yi.value);return!isNaN(zt)&&zt>oi?{max:{max:oi,actual:yi.value}}:null}}(yi)}static required(yi){return Y(yi)}static requiredTrue(yi){return Q(yi)}static email(yi){return function se(oi){return w(oi.value)||x.test(oi.value)?null:{email:!0}}(yi)}static minLength(yi){return function ie(oi){return yi=>w(yi.value)||!f(yi.value)?null:yi.value.length<oi?{minlength:{requiredLength:oi,actualLength:yi.value.length}}:null}(yi)}static maxLength(yi){return ee(yi)}static pattern(yi){return function re(oi){if(!oi)return ne;let yi,zt;return"string"==typeof oi?(zt="","^"!==oi.charAt(0)&&(zt+="^"),zt+=oi,"$"!==oi.charAt(oi.length-1)&&(zt+="$"),yi=new RegExp(zt)):(zt=oi.toString(),yi=oi),Yi=>{if(w(Yi.value))return null;const Un=Yi.value;return yi.test(Un)?null:{pattern:{requiredPattern:zt,actualValue:Un}}}}(yi)}static nullValidator(yi){return null}static compose(yi){return G(yi)}static composeAsync(yi){return z(yi)}}function Y(oi){return w(oi.value)?{required:!0}:null}function Q(oi){return!0===oi.value?null:{required:!0}}function ee(oi){return yi=>f(yi.value)&&yi.value.length>oi?{maxlength:{requiredLength:oi,actualLength:yi.value.length}}:null}function ne(oi){return null}function _e(oi){return null!=oi}function be(oi){return(0,r.jNT)(oi)?(0,L.H)(oi):oi}function oe(oi){let yi={};return oi.forEach(zt=>{yi=null!=zt?{...yi,...zt}:yi}),0===Object.keys(yi).length?null:yi}function me(oi,yi){return yi.map(zt=>zt(oi))}function N(oi){return oi.map(yi=>function we(oi){return!oi.validate}(yi)?yi:zt=>yi.validate(zt))}function G(oi){if(!oi)return null;const yi=oi.filter(_e);return 0==yi.length?null:function(zt){return oe(me(zt,yi))}}function W(oi){return null!=oi?G(N(oi)):null}function z(oi){if(!oi)return null;const yi=oi.filter(_e);return 0==yi.length?null:function(zt){const Yi=me(zt,yi).map(be);return(0,j.p)(Yi).pipe((0,o.T)(oe))}}function X(oi){return null!=oi?z(N(oi)):null}function q(oi,yi){return null===oi?[yi]:Array.isArray(oi)?[...oi,yi]:[oi,yi]}function ye(oi){return oi._rawValidators}function xe(oi){return oi._rawAsyncValidators}function ge(oi){return oi?Array.isArray(oi)?oi:[oi]:[]}function Ee(oi,yi){return Array.isArray(oi)?oi.includes(yi):oi===yi}function he(oi,yi){const zt=ge(yi);return ge(oi).forEach(Un=>{Ee(zt,Un)||zt.push(Un)}),zt}function Ie(oi,yi){return ge(yi).filter(zt=>!Ee(oi,zt))}class ce{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(yi){this._rawValidators=yi||[],this._composedValidatorFn=W(this._rawValidators)}_setAsyncValidators(yi){this._rawAsyncValidators=yi||[],this._composedAsyncValidatorFn=X(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(yi){this._onDestroyCallbacks.push(yi)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(yi=>yi()),this._onDestroyCallbacks=[]}reset(yi=void 0){this.control&&this.control.reset(yi)}hasError(yi,zt){return!!this.control&&this.control.hasError(yi,zt)}getError(yi,zt){return this.control?this.control.getError(yi,zt):null}}class de extends ce{get formDirective(){return null}get path(){return null}}class pe extends ce{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Be{constructor(yi){this._cd=yi}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let vt=(()=>{class oi extends Be{constructor(zt){super(zt)}static#e=this.\u0275fac=function(Yi){return new(Yi||oi)(r.rXU(pe,2))};static#t=this.\u0275dir=r.FsC({type:oi,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Yi,Un){2&Yi&&r.AVh("ng-untouched",Un.isUntouched)("ng-touched",Un.isTouched)("ng-pristine",Un.isPristine)("ng-dirty",Un.isDirty)("ng-valid",Un.isValid)("ng-invalid",Un.isInvalid)("ng-pending",Un.isPending)},features:[r.Vt3]})}return oi})(),Xt=(()=>{class oi extends Be{constructor(zt){super(zt)}static#e=this.\u0275fac=function(Yi){return new(Yi||oi)(r.rXU(de,10))};static#t=this.\u0275dir=r.FsC({type:oi,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Yi,Un){2&Yi&&r.AVh("ng-untouched",Un.isUntouched)("ng-touched",Un.isTouched)("ng-pristine",Un.isPristine)("ng-dirty",Un.isDirty)("ng-valid",Un.isValid)("ng-invalid",Un.isInvalid)("ng-pending",Un.isPending)("ng-submitted",Un.isSubmitted)},features:[r.Vt3]})}return oi})();const ni="VALID",wi="INVALID",ui="PENDING",cn="DISABLED";function Ui(oi){return(It(oi)?oi.validators:oi)||null}function Qi(oi,yi){return(It(yi)?yi.asyncValidators:oi)||null}function It(oi){return null!=oi&&!Array.isArray(oi)&&"object"==typeof oi}class st{constructor(yi,zt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(yi),this._assignAsyncValidators(zt)}get validator(){return this._composedValidatorFn}set validator(yi){this._rawValidators=this._composedValidatorFn=yi}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(yi){this._rawAsyncValidators=this._composedAsyncValidatorFn=yi}get parent(){return this._parent}get valid(){return this.status===ni}get invalid(){return this.status===wi}get pending(){return this.status==ui}get disabled(){return this.status===cn}get enabled(){return this.status!==cn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(yi){this._assignValidators(yi)}setAsyncValidators(yi){this._assignAsyncValidators(yi)}addValidators(yi){this.setValidators(he(yi,this._rawValidators))}addAsyncValidators(yi){this.setAsyncValidators(he(yi,this._rawAsyncValidators))}removeValidators(yi){this.setValidators(Ie(yi,this._rawValidators))}removeAsyncValidators(yi){this.setAsyncValidators(Ie(yi,this._rawAsyncValidators))}hasValidator(yi){return Ee(this._rawValidators,yi)}hasAsyncValidator(yi){return Ee(this._rawAsyncValidators,yi)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(yi={}){this.touched=!0,this._parent&&!yi.onlySelf&&this._parent.markAsTouched(yi)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(yi=>yi.markAllAsTouched())}markAsUntouched(yi={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(zt=>{zt.markAsUntouched({onlySelf:!0})}),this._parent&&!yi.onlySelf&&this._parent._updateTouched(yi)}markAsDirty(yi={}){this.pristine=!1,this._parent&&!yi.onlySelf&&this._parent.markAsDirty(yi)}markAsPristine(yi={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(zt=>{zt.markAsPristine({onlySelf:!0})}),this._parent&&!yi.onlySelf&&this._parent._updatePristine(yi)}markAsPending(yi={}){this.status=ui,!1!==yi.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!yi.onlySelf&&this._parent.markAsPending(yi)}disable(yi={}){const zt=this._parentMarkedDirty(yi.onlySelf);this.status=cn,this.errors=null,this._forEachChild(Yi=>{Yi.disable({...yi,onlySelf:!0})}),this._updateValue(),!1!==yi.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...yi,skipPristineCheck:zt}),this._onDisabledChange.forEach(Yi=>Yi(!0))}enable(yi={}){const zt=this._parentMarkedDirty(yi.onlySelf);this.status=ni,this._forEachChild(Yi=>{Yi.enable({...yi,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:yi.emitEvent}),this._updateAncestors({...yi,skipPristineCheck:zt}),this._onDisabledChange.forEach(Yi=>Yi(!1))}_updateAncestors(yi){this._parent&&!yi.onlySelf&&(this._parent.updateValueAndValidity(yi),yi.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(yi){this._parent=yi}getRawValue(){return this.value}updateValueAndValidity(yi={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ni||this.status===ui)&&this._runAsyncValidator(yi.emitEvent)),!1!==yi.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!yi.onlySelf&&this._parent.updateValueAndValidity(yi)}_updateTreeValidity(yi={emitEvent:!0}){this._forEachChild(zt=>zt._updateTreeValidity(yi)),this.updateValueAndValidity({onlySelf:!0,emitEvent:yi.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cn:ni}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(yi){if(this.asyncValidator){this.status=ui,this._hasOwnPendingAsyncValidator=!0;const zt=be(this.asyncValidator(this));this._asyncValidationSubscription=zt.subscribe(Yi=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Yi,{emitEvent:yi})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(yi,zt={}){this.errors=yi,this._updateControlsErrors(!1!==zt.emitEvent)}get(yi){let zt=yi;return null==zt||(Array.isArray(zt)||(zt=zt.split(".")),0===zt.length)?null:zt.reduce((Yi,Un)=>Yi&&Yi._find(Un),this)}getError(yi,zt){const Yi=zt?this.get(zt):this;return Yi&&Yi.errors?Yi.errors[yi]:null}hasError(yi,zt){return!!this.getError(yi,zt)}get root(){let yi=this;for(;yi._parent;)yi=yi._parent;return yi}_updateControlsErrors(yi){this.status=this._calculateStatus(),yi&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(yi)}_initObservables(){this.valueChanges=new r.bkB,this.statusChanges=new r.bkB}_calculateStatus(){return this._allControlsDisabled()?cn:this.errors?wi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ui)?ui:this._anyControlsHaveStatus(wi)?wi:ni}_anyControlsHaveStatus(yi){return this._anyControls(zt=>zt.status===yi)}_anyControlsDirty(){return this._anyControls(yi=>yi.dirty)}_anyControlsTouched(){return this._anyControls(yi=>yi.touched)}_updatePristine(yi={}){this.pristine=!this._anyControlsDirty(),this._parent&&!yi.onlySelf&&this._parent._updatePristine(yi)}_updateTouched(yi={}){this.touched=this._anyControlsTouched(),this._parent&&!yi.onlySelf&&this._parent._updateTouched(yi)}_registerOnCollectionChange(yi){this._onCollectionChange=yi}_setUpdateStrategy(yi){It(yi)&&null!=yi.updateOn&&(this._updateOn=yi.updateOn)}_parentMarkedDirty(yi){return!yi&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(yi){return null}_assignValidators(yi){this._rawValidators=Array.isArray(yi)?yi.slice():yi,this._composedValidatorFn=function Xi(oi){return Array.isArray(oi)?W(oi):oi||null}(this._rawValidators)}_assignAsyncValidators(yi){this._rawAsyncValidators=Array.isArray(yi)?yi.slice():yi,this._composedAsyncValidatorFn=function Ut(oi){return Array.isArray(oi)?X(oi):oi||null}(this._rawAsyncValidators)}}class Wt extends st{constructor(yi,zt,Yi){super(Ui(zt),Qi(Yi,zt)),this.controls=yi,this._initObservables(),this._setUpdateStrategy(zt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(yi,zt){return this.controls[yi]?this.controls[yi]:(this.controls[yi]=zt,zt.setParent(this),zt._registerOnCollectionChange(this._onCollectionChange),zt)}addControl(yi,zt,Yi={}){this.registerControl(yi,zt),this.updateValueAndValidity({emitEvent:Yi.emitEvent}),this._onCollectionChange()}removeControl(yi,zt={}){this.controls[yi]&&this.controls[yi]._registerOnCollectionChange(()=>{}),delete this.controls[yi],this.updateValueAndValidity({emitEvent:zt.emitEvent}),this._onCollectionChange()}setControl(yi,zt,Yi={}){this.controls[yi]&&this.controls[yi]._registerOnCollectionChange(()=>{}),delete this.controls[yi],zt&&this.registerControl(yi,zt),this.updateValueAndValidity({emitEvent:Yi.emitEvent}),this._onCollectionChange()}contains(yi){return this.controls.hasOwnProperty(yi)&&this.controls[yi].enabled}setValue(yi,zt={}){(function pt(oi,yi,zt){oi._forEachChild((Yi,Un)=>{if(void 0===zt[Un])throw new r.wOt(1002,"")})})(this,0,yi),Object.keys(yi).forEach(Yi=>{(function yt(oi,yi,zt){const Yi=oi.controls;if(!(yi?Object.keys(Yi):Yi).length)throw new r.wOt(1e3,"");if(!Yi[zt])throw new r.wOt(1001,"")})(this,!0,Yi),this.controls[Yi].setValue(yi[Yi],{onlySelf:!0,emitEvent:zt.emitEvent})}),this.updateValueAndValidity(zt)}patchValue(yi,zt={}){null!=yi&&(Object.keys(yi).forEach(Yi=>{const Un=this.controls[Yi];Un&&Un.patchValue(yi[Yi],{onlySelf:!0,emitEvent:zt.emitEvent})}),this.updateValueAndValidity(zt))}reset(yi={},zt={}){this._forEachChild((Yi,Un)=>{Yi.reset(yi?yi[Un]:null,{onlySelf:!0,emitEvent:zt.emitEvent})}),this._updatePristine(zt),this._updateTouched(zt),this.updateValueAndValidity(zt)}getRawValue(){return this._reduceChildren({},(yi,zt,Yi)=>(yi[Yi]=zt.getRawValue(),yi))}_syncPendingControls(){let yi=this._reduceChildren(!1,(zt,Yi)=>!!Yi._syncPendingControls()||zt);return yi&&this.updateValueAndValidity({onlySelf:!0}),yi}_forEachChild(yi){Object.keys(this.controls).forEach(zt=>{const Yi=this.controls[zt];Yi&&yi(Yi,zt)})}_setUpControls(){this._forEachChild(yi=>{yi.setParent(this),yi._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(yi){for(const[zt,Yi]of Object.entries(this.controls))if(this.contains(zt)&&yi(Yi))return!0;return!1}_reduceValue(){return this._reduceChildren({},(zt,Yi,Un)=>((Yi.enabled||this.disabled)&&(zt[Un]=Yi.value),zt))}_reduceChildren(yi,zt){let Yi=yi;return this._forEachChild((Un,vo)=>{Yi=zt(Yi,Un,vo)}),Yi}_allControlsDisabled(){for(const yi of Object.keys(this.controls))if(this.controls[yi].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(yi){return this.controls.hasOwnProperty(yi)?this.controls[yi]:null}}const kt=new r.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>mi}),mi="always";function qi(oi,yi,zt=mi){ar(oi,yi),yi.valueAccessor.writeValue(oi.value),(oi.disabled||"always"===zt)&&yi.valueAccessor.setDisabledState?.(oi.disabled),function po(oi,yi){yi.valueAccessor.registerOnChange(zt=>{oi._pendingValue=zt,oi._pendingChange=!0,oi._pendingDirty=!0,"change"===oi.updateOn&&Pr(oi,yi)})}(oi,yi),function no(oi,yi){const zt=(Yi,Un)=>{yi.valueAccessor.writeValue(Yi),Un&&yi.viewToModelUpdate(Yi)};oi.registerOnChange(zt),yi._registerOnDestroy(()=>{oi._unregisterOnChange(zt)})}(oi,yi),function sa(oi,yi){yi.valueAccessor.registerOnTouched(()=>{oi._pendingTouched=!0,"blur"===oi.updateOn&&oi._pendingChange&&Pr(oi,yi),"submit"!==oi.updateOn&&oi.markAsTouched()})}(oi,yi),function Ur(oi,yi){if(yi.valueAccessor.setDisabledState){const zt=Yi=>{yi.valueAccessor.setDisabledState(Yi)};oi.registerOnDisabledChange(zt),yi._registerOnDestroy(()=>{oi._unregisterOnDisabledChange(zt)})}}(oi,yi)}function Wi(oi,yi,zt=!0){const Yi=()=>{};yi.valueAccessor&&(yi.valueAccessor.registerOnChange(Yi),yi.valueAccessor.registerOnTouched(Yi)),na(oi,yi),oi&&(yi._invokeOnDestroyCallbacks(),oi._registerOnCollectionChange(()=>{}))}function yn(oi,yi){oi.forEach(zt=>{zt.registerOnValidatorChange&&zt.registerOnValidatorChange(yi)})}function ar(oi,yi){const zt=ye(oi);null!==yi.validator?oi.setValidators(q(zt,yi.validator)):"function"==typeof zt&&oi.setValidators([zt]);const Yi=xe(oi);null!==yi.asyncValidator?oi.setAsyncValidators(q(Yi,yi.asyncValidator)):"function"==typeof Yi&&oi.setAsyncValidators([Yi]);const Un=()=>oi.updateValueAndValidity();yn(yi._rawValidators,Un),yn(yi._rawAsyncValidators,Un)}function na(oi,yi){let zt=!1;if(null!==oi){if(null!==yi.validator){const Un=ye(oi);if(Array.isArray(Un)&&Un.length>0){const vo=Un.filter(No=>No!==yi.validator);vo.length!==Un.length&&(zt=!0,oi.setValidators(vo))}}if(null!==yi.asyncValidator){const Un=xe(oi);if(Array.isArray(Un)&&Un.length>0){const vo=Un.filter(No=>No!==yi.asyncValidator);vo.length!==Un.length&&(zt=!0,oi.setAsyncValidators(vo))}}}const Yi=()=>{};return yn(yi._rawValidators,Yi),yn(yi._rawAsyncValidators,Yi),zt}function Pr(oi,yi){oi._pendingDirty&&oi.markAsDirty(),oi.setValue(oi._pendingValue,{emitModelToViewChange:!1}),yi.viewToModelUpdate(oi._pendingValue),oi._pendingChange=!1}function ja(oi,yi){ar(oi,yi)}function si(oi,yi){if(!oi.hasOwnProperty("model"))return!1;const zt=oi.model;return!!zt.isFirstChange()||!Object.is(yi,zt.currentValue)}function Pi(oi,yi){oi._syncPendingControls(),yi.forEach(zt=>{const Yi=zt.control;"submit"===Yi.updateOn&&Yi._pendingChange&&(zt.viewToModelUpdate(Yi._pendingValue),Yi._pendingChange=!1)})}function ln(oi,yi){if(!yi)return null;let zt,Yi,Un;return Array.isArray(yi),yi.forEach(vo=>{vo.constructor===O?zt=vo:function Dt(oi){return Object.getPrototypeOf(oi.constructor)===R}(vo)?Yi=vo:Un=vo}),Un||Yi||zt||null}const Gr={provide:de,useExisting:(0,r.Rfq)(()=>ri)},ct=Promise.resolve();let ri=(()=>{class oi extends de{constructor(zt,Yi,Un){super(),this.callSetDisabledState=Un,this.submitted=!1,this._directives=new Set,this.ngSubmit=new r.bkB,this.form=new Wt({},W(zt),X(Yi))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(zt){ct.then(()=>{const Yi=this._findContainer(zt.path);zt.control=Yi.registerControl(zt.name,zt.control),qi(zt.control,zt,this.callSetDisabledState),zt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(zt)})}getControl(zt){return this.form.get(zt.path)}removeControl(zt){ct.then(()=>{const Yi=this._findContainer(zt.path);Yi&&Yi.removeControl(zt.name),this._directives.delete(zt)})}addFormGroup(zt){ct.then(()=>{const Yi=this._findContainer(zt.path),Un=new Wt({});ja(Un,zt),Yi.registerControl(zt.name,Un),Un.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(zt){ct.then(()=>{const Yi=this._findContainer(zt.path);Yi&&Yi.removeControl(zt.name)})}getFormGroup(zt){return this.form.get(zt.path)}updateModel(zt,Yi){ct.then(()=>{this.form.get(zt.path).setValue(Yi)})}setValue(zt){this.control.setValue(zt)}onSubmit(zt){return this.submitted=!0,Pi(this.form,this._directives),this.ngSubmit.emit(zt),"dialog"===zt?.target?.method}onReset(){this.resetForm()}resetForm(zt=void 0){this.form.reset(zt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(zt){return zt.pop(),zt.length?this.form.get(zt):this.form}static#e=this.\u0275fac=function(Yi){return new(Yi||oi)(r.rXU(k,10),r.rXU(I,10),r.rXU(kt,8))};static#t=this.\u0275dir=r.FsC({type:oi,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Yi,Un){1&Yi&&r.bIt("submit",function(No){return Un.onSubmit(No)})("reset",function(){return Un.onReset()})},inputs:{options:[r.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Jv_([Gr]),r.Vt3]})}return oi})();function Ci(oi,yi){const zt=oi.indexOf(yi);zt>-1&&oi.splice(zt,1)}function Ri(oi){return"object"==typeof oi&&null!==oi&&2===Object.keys(oi).length&&"value"in oi&&"disabled"in oi}const ji=class extends st{constructor(yi=null,zt,Yi){super(Ui(zt),Qi(Yi,zt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(yi),this._setUpdateStrategy(zt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),It(zt)&&(zt.nonNullable||zt.initialValueIsDefault)&&(this.defaultValue=Ri(yi)?yi.value:yi)}setValue(yi,zt={}){this.value=this._pendingValue=yi,this._onChange.length&&!1!==zt.emitModelToViewChange&&this._onChange.forEach(Yi=>Yi(this.value,!1!==zt.emitViewToModelChange)),this.updateValueAndValidity(zt)}patchValue(yi,zt={}){this.setValue(yi,zt)}reset(yi=this.defaultValue,zt={}){this._applyFormState(yi),this.markAsPristine(zt),this.markAsUntouched(zt),this.setValue(this.value,zt),this._pendingChange=!1}_updateValue(){}_anyControls(yi){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(yi){this._onChange.push(yi)}_unregisterOnChange(yi){Ci(this._onChange,yi)}registerOnDisabledChange(yi){this._onDisabledChange.push(yi)}_unregisterOnDisabledChange(yi){Ci(this._onDisabledChange,yi)}_forEachChild(yi){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(yi){Ri(yi)?(this.value=this._pendingValue=yi.value,yi.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=yi}},Yo={provide:pe,useExisting:(0,r.Rfq)(()=>ia)},Va=Promise.resolve();let ia=(()=>{class oi extends pe{constructor(zt,Yi,Un,vo,No,ed){super(),this._changeDetectorRef=No,this.callSetDisabledState=ed,this.control=new ji,this._registered=!1,this.name="",this.update=new r.bkB,this._parent=zt,this._setValidators(Yi),this._setAsyncValidators(Un),this.valueAccessor=ln(0,vo)}ngOnChanges(zt){if(this._checkForErrors(),!this._registered||"name"in zt){if(this._registered&&(this._checkName(),this.formDirective)){const Yi=zt.name.previousValue;this.formDirective.removeControl({name:Yi,path:this._getPath(Yi)})}this._setUpControl()}"isDisabled"in zt&&this._updateDisabled(zt),si(zt,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(zt){this.viewModel=zt,this.update.emit(zt)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){qi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(zt){Va.then(()=>{this.control.setValue(zt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(zt){const Yi=zt.isDisabled.currentValue,Un=0!==Yi&&(0,r.L39)(Yi);Va.then(()=>{Un&&!this.control.disabled?this.control.disable():!Un&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(zt){return this._parent?function Kt(oi,yi){return[...yi.path,oi]}(zt,this._parent):[zt]}static#e=this.\u0275fac=function(Yi){return new(Yi||oi)(r.rXU(de,9),r.rXU(k,10),r.rXU(I,10),r.rXU(m,10),r.rXU(r.gRc,8),r.rXU(kt,8))};static#t=this.\u0275dir=r.FsC({type:oi,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[r.Mj6.None,"disabled","isDisabled"],model:[r.Mj6.None,"ngModel","model"],options:[r.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.Jv_([Yo]),r.Vt3,r.OA$]})}return oi})(),$o=(()=>{class oi{static#e=this.\u0275fac=function(Yi){return new(Yi||oi)};static#t=this.\u0275dir=r.FsC({type:oi,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return oi})();const ms=new r.nKC(""),El={provide:pe,useExisting:(0,r.Rfq)(()=>Wl)};let Wl=(()=>{class oi extends pe{set isDisabled(zt){}static#e=this._ngModelWarningSentOnce=!1;constructor(zt,Yi,Un,vo,No){super(),this._ngModelWarningConfig=vo,this.callSetDisabledState=No,this.update=new r.bkB,this._ngModelWarningSent=!1,this._setValidators(zt),this._setAsyncValidators(Yi),this.valueAccessor=ln(0,Un)}ngOnChanges(zt){if(this._isControlChanged(zt)){const Yi=zt.form.previousValue;Yi&&Wi(Yi,this,!1),qi(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}si(zt,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Wi(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(zt){this.viewModel=zt,this.update.emit(zt)}_isControlChanged(zt){return zt.hasOwnProperty("form")}static#t=this.\u0275fac=function(Yi){return new(Yi||oi)(r.rXU(k,10),r.rXU(I,10),r.rXU(m,10),r.rXU(ms,8),r.rXU(kt,8))};static#i=this.\u0275dir=r.FsC({type:oi,selectors:[["","formControl",""]],inputs:{form:[r.Mj6.None,"formControl","form"],isDisabled:[r.Mj6.None,"disabled","isDisabled"],model:[r.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r.Jv_([El]),r.Vt3,r.OA$]})}return oi})();const Xd={provide:de,useExisting:(0,r.Rfq)(()=>rs)};let rs=(()=>{class oi extends de{constructor(zt,Yi,Un){super(),this.callSetDisabledState=Un,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r.bkB,this._setValidators(zt),this._setAsyncValidators(Yi)}ngOnChanges(zt){this._checkFormPresent(),zt.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(na(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(zt){const Yi=this.form.get(zt.path);return qi(Yi,zt,this.callSetDisabledState),Yi.updateValueAndValidity({emitEvent:!1}),this.directives.push(zt),Yi}getControl(zt){return this.form.get(zt.path)}removeControl(zt){Wi(zt.control||null,zt,!1),function An(oi,yi){const zt=oi.indexOf(yi);zt>-1&&oi.splice(zt,1)}(this.directives,zt)}addFormGroup(zt){this._setUpFormContainer(zt)}removeFormGroup(zt){this._cleanUpFormContainer(zt)}getFormGroup(zt){return this.form.get(zt.path)}addFormArray(zt){this._setUpFormContainer(zt)}removeFormArray(zt){this._cleanUpFormContainer(zt)}getFormArray(zt){return this.form.get(zt.path)}updateModel(zt,Yi){this.form.get(zt.path).setValue(Yi)}onSubmit(zt){return this.submitted=!0,Pi(this.form,this.directives),this.ngSubmit.emit(zt),"dialog"===zt?.target?.method}onReset(){this.resetForm()}resetForm(zt=void 0){this.form.reset(zt),this.submitted=!1}_updateDomValue(){this.directives.forEach(zt=>{const Yi=zt.control,Un=this.form.get(zt.path);Yi!==Un&&(Wi(Yi||null,zt),(oi=>oi instanceof ji)(Un)&&(qi(Un,zt,this.callSetDisabledState),zt.control=Un))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(zt){const Yi=this.form.get(zt.path);ja(Yi,zt),Yi.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(zt){if(this.form){const Yi=this.form.get(zt.path);Yi&&function Na(oi,yi){return na(oi,yi)}(Yi,zt)&&Yi.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ar(this.form,this),this._oldForm&&na(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(Yi){return new(Yi||oi)(r.rXU(k,10),r.rXU(I,10),r.rXU(kt,8))};static#t=this.\u0275dir=r.FsC({type:oi,selectors:[["","formGroup",""]],hostBindings:function(Yi,Un){1&Yi&&r.bIt("submit",function(No){return Un.onSubmit(No)})("reset",function(){return Un.onReset()})},inputs:{form:[r.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Jv_([Xd]),r.Vt3,r.OA$]})}return oi})();let ga=(()=>{class oi{constructor(){this._validator=ne}ngOnChanges(zt){if(this.inputName in zt){const Yi=this.normalizeInput(zt[this.inputName].currentValue);this._enabled=this.enabled(Yi),this._validator=this._enabled?this.createValidator(Yi):ne,this._onChange&&this._onChange()}}validate(zt){return this._validator(zt)}registerOnValidatorChange(zt){this._onChange=zt}enabled(zt){return null!=zt}static#e=this.\u0275fac=function(Yi){return new(Yi||oi)};static#t=this.\u0275dir=r.FsC({type:oi,features:[r.OA$]})}return oi})();const Ml={provide:k,useExisting:(0,r.Rfq)(()=>el),multi:!0},gs={provide:k,useExisting:(0,r.Rfq)(()=>_s),multi:!0};let el=(()=>{class oi extends ga{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=r.L39,this.createValidator=zt=>Y}enabled(zt){return zt}static#e=this.\u0275fac=(()=>{let zt;return function(Un){return(zt||(zt=r.xGo(oi)))(Un||oi)}})();static#t=this.\u0275dir=r.FsC({type:oi,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Yi,Un){2&Yi&&r.BMQ("required",Un._enabled?"":null)},inputs:{required:"required"},features:[r.Jv_([Ml]),r.Vt3]})}return oi})(),_s=(()=>{class oi extends el{constructor(){super(...arguments),this.createValidator=zt=>Q}static#e=this.\u0275fac=(()=>{let zt;return function(Un){return(zt||(zt=r.xGo(oi)))(Un||oi)}})();static#t=this.\u0275dir=r.FsC({type:oi,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Yi,Un){2&Yi&&r.BMQ("required",Un._enabled?"":null)},features:[r.Jv_([gs]),r.Vt3]})}return oi})();const Zl={provide:k,useExisting:(0,r.Rfq)(()=>al),multi:!0};let al=(()=>{class oi extends ga{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=zt=>function Aa(oi){return"number"==typeof oi?oi:parseInt(oi,10)}(zt),this.createValidator=zt=>ee(zt)}static#e=this.\u0275fac=(()=>{let zt;return function(Un){return(zt||(zt=r.xGo(oi)))(Un||oi)}})();static#t=this.\u0275dir=r.FsC({type:oi,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Yi,Un){2&Yi&&r.BMQ("maxlength",Un._enabled?Un.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r.Jv_([Zl]),r.Vt3]})}return oi})(),ql=(()=>{class oi{static#e=this.\u0275fac=function(Yi){return new(Yi||oi)};static#t=this.\u0275mod=r.$C({type:oi});static#i=this.\u0275inj=r.G2t({})}return oi})(),au=(()=>{class oi{static withConfig(zt){return{ngModule:oi,providers:[{provide:kt,useValue:zt.callSetDisabledState??mi}]}}static#e=this.\u0275fac=function(Yi){return new(Yi||oi)};static#t=this.\u0275mod=r.$C({type:oi});static#i=this.\u0275inj=r.G2t({imports:[ql]})}return oi})(),ks=(()=>{class oi{static withConfig(zt){return{ngModule:oi,providers:[{provide:ms,useValue:zt.warnOnNgModelWithFormControl??"always"},{provide:kt,useValue:zt.callSetDisabledState??mi}]}}static#e=this.\u0275fac=function(Yi){return new(Yi||oi)};static#t=this.\u0275mod=r.$C({type:oi});static#i=this.\u0275inj=r.G2t({imports:[ql]})}return oi})()},86600:(ei,rt,D)=>{"use strict";D.d(rt,{MJ:()=>G,es:()=>he,de:()=>W,QC:()=>Ht,is:()=>li,$E:()=>Mt,yE:()=>Q,vu:()=>Ie,Np:()=>pe,MI:()=>ni,wg:()=>Tt,O5:()=>jt,r6:()=>Ge,pZ:()=>ot,ug:()=>Lt,_H:()=>Ee,So:()=>wi,jb:()=>cn,TL:()=>Ui,Zc:()=>ne,GG:()=>_e,Ob:()=>re,J8:()=>oe,BF:()=>be,IK:()=>ce});var r=D(54438),d=D(18617),L=D(28203),o=D(60177),E=D(36860),R=D(14085),m=D(21413),_=D(99172),v=D(67336);const b=["text"],Y=new r.nKC("mat-sanity-checks",{providedIn:"root",factory:function F(){return!0}});let Q=(()=>{class Vt{constructor(bi,gt,ai){this._sanityChecks=gt,this._document=ai,this._hasDoneGlobalChecks=!1,bi._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(bi){return!(0,E.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[bi])}static#e=this.\u0275fac=function(gt){return new(gt||Vt)(r.KVO(d.Q_),r.KVO(Y,8),r.KVO(o.qQ))};static#t=this.\u0275mod=r.$C({type:Vt});static#i=this.\u0275inj=r.G2t({imports:[L.jI,L.jI]})}return Vt})();function re(Vt){return class extends Vt{get disabled(){return this._disabled}set disabled(ci){this._disabled=(0,R.he)(ci)}constructor(...ci){super(...ci),this._disabled=!1}}}function ne(Vt,ci){return class extends Vt{get color(){return this._color}set color(bi){const gt=bi||this.defaultColor;gt!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),gt&&this._elementRef.nativeElement.classList.add(`mat-${gt}`),this._color=gt)}constructor(...bi){super(...bi),this.defaultColor=ci,this.color=ci}}}function _e(Vt){return class extends Vt{get disableRipple(){return this._disableRipple}set disableRipple(ci){this._disableRipple=(0,R.he)(ci)}constructor(...ci){super(...ci),this._disableRipple=!1}}}function be(Vt,ci=0){return class extends Vt{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(bi){this._tabIndex=null!=bi?(0,R.OE)(bi):this.defaultTabIndex}constructor(...bi){super(...bi),this._tabIndex=ci,this.defaultTabIndex=ci}}}function oe(Vt){return class extends Vt{updateErrorState(){const ci=this.errorState,kt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);kt!==ci&&(this.errorState=kt,this.stateChanges.next())}constructor(...ci){super(...ci),this.errorState=!1}}}class G{constructor(){this._localeChanges=new m.B,this.localeChanges=this._localeChanges}getValidDateOrNull(ci){return this.isDateInstance(ci)&&this.isValid(ci)?ci:null}deserialize(ci){return null==ci||this.isDateInstance(ci)&&this.isValid(ci)?ci:this.invalid()}setLocale(ci){this.locale=ci,this._localeChanges.next()}compareDate(ci,bi){return this.getYear(ci)-this.getYear(bi)||this.getMonth(ci)-this.getMonth(bi)||this.getDate(ci)-this.getDate(bi)}sameDate(ci,bi){if(ci&&bi){let gt=this.isValid(ci),ai=this.isValid(bi);return gt&&ai?!this.compareDate(ci,bi):gt==ai}return ci==bi}clampDate(ci,bi,gt){return bi&&this.compareDate(ci,bi)<0?bi:gt&&this.compareDate(ci,gt)>0?gt:ci}}const W=new r.nKC("mat-date-formats");let Ee=(()=>{class Vt{isErrorState(bi,gt){return!!(bi&&bi.invalid&&(bi.dirty||gt&>.submitted))}static#e=this.\u0275fac=function(gt){return new(gt||Vt)};static#t=this.\u0275prov=r.jDH({token:Vt,factory:Vt.\u0275fac})}return Vt})(),he=(()=>{class Vt{isErrorState(bi,gt){return!!(bi&&bi.invalid&&(bi.touched||gt&>.submitted))}static#e=this.\u0275fac=function(gt){return new(gt||Vt)};static#t=this.\u0275prov=r.jDH({token:Vt,factory:Vt.\u0275fac,providedIn:"root"})}return Vt})(),Ie=(()=>{class Vt{static#e=this.\u0275fac=function(gt){return new(gt||Vt)};static#t=this.\u0275dir=r.FsC({type:Vt,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]})}return Vt})();function ce(Vt,ci,bi="mat"){Vt.changes.pipe((0,_.Z)(Vt)).subscribe(({length:gt})=>{de(ci,`${bi}-2-line`,!1),de(ci,`${bi}-3-line`,!1),de(ci,`${bi}-multi-line`,!1),2===gt||3===gt?de(ci,`${bi}-${gt}-line`,!0):gt>3&&de(ci,`${bi}-multi-line`,!0)})}function de(Vt,ci,bi){Vt.nativeElement.classList.toggle(ci,bi)}let pe=(()=>{class Vt{static#e=this.\u0275fac=function(gt){return new(gt||Vt)};static#t=this.\u0275mod=r.$C({type:Vt});static#i=this.\u0275inj=r.G2t({imports:[Q,Q]})}return Vt})();class Be{constructor(ci,bi,gt,ai=!1){this._renderer=ci,this.element=bi,this.config=gt,this._animationForciblyDisabledThroughCss=ai,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const We=(0,E.BQ)({passive:!0,capture:!0});class tt{constructor(){this._events=new Map,this._delegateEventHandler=ci=>{const bi=(0,E.Fb)(ci);bi&&this._events.get(ci.type)?.forEach((gt,ai)=>{(ai===bi||ai.contains(bi))&>.forEach(kt=>kt.handleEvent(ci))})}}addHandler(ci,bi,gt,ai){const kt=this._events.get(bi);if(kt){const mi=kt.get(gt);mi?mi.add(ai):kt.set(gt,new Set([ai]))}else this._events.set(bi,new Map([[gt,new Set([ai])]])),ci.runOutsideAngular(()=>{document.addEventListener(bi,this._delegateEventHandler,We)})}removeHandler(ci,bi,gt){const ai=this._events.get(ci);if(!ai)return;const kt=ai.get(bi);kt&&(kt.delete(gt),0===kt.size&&ai.delete(bi),0===ai.size&&(this._events.delete(ci),document.removeEventListener(ci,this._delegateEventHandler,We)))}}const vt={enterDuration:225,exitDuration:150},Nt=(0,E.BQ)({passive:!0,capture:!0}),Qe=["mousedown","touchstart"],Et=["mouseup","mouseleave","touchend","touchcancel"];class Lt{static#e=this._eventManager=new tt;constructor(ci,bi,gt,ai){this._target=ci,this._ngZone=bi,this._platform=ai,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ai.isBrowser&&(this._containerElement=(0,R.i8)(gt))}fadeInRipple(ci,bi,gt={}){const ai=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),kt={...vt,...gt.animation};gt.centered&&(ci=ai.left+ai.width/2,bi=ai.top+ai.height/2);const mi=gt.radius||function wt(Vt,ci,bi){const gt=Math.max(Math.abs(Vt-bi.left),Math.abs(Vt-bi.right)),ai=Math.max(Math.abs(ci-bi.top),Math.abs(ci-bi.bottom));return Math.sqrt(gt*gt+ai*ai)}(ci,bi,ai),Kt=ci-ai.left,qi=bi-ai.top,Wi=kt.enterDuration,yn=document.createElement("div");yn.classList.add("mat-ripple-element"),yn.style.left=Kt-mi+"px",yn.style.top=qi-mi+"px",yn.style.height=2*mi+"px",yn.style.width=2*mi+"px",null!=gt.color&&(yn.style.backgroundColor=gt.color),yn.style.transitionDuration=`${Wi}ms`,this._containerElement.appendChild(yn);const Ur=window.getComputedStyle(yn),na=Ur.transitionDuration,po="none"===Ur.transitionProperty||"0s"===na||"0s, 0s"===na||0===ai.width&&0===ai.height,sa=new Be(this,yn,gt,po);yn.style.transform="scale3d(1, 1, 1)",sa.state=0,gt.persistent||(this._mostRecentTransientRipple=sa);let Pr=null;return!po&&(Wi||kt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const no=()=>this._finishRippleTransition(sa),ja=()=>this._destroyRipple(sa);yn.addEventListener("transitionend",no),yn.addEventListener("transitioncancel",ja),Pr={onTransitionEnd:no,onTransitionCancel:ja}}),this._activeRipples.set(sa,Pr),(po||!Wi)&&this._finishRippleTransition(sa),sa}fadeOutRipple(ci){if(2===ci.state||3===ci.state)return;const bi=ci.element,gt={...vt,...ci.config.animation};bi.style.transitionDuration=`${gt.exitDuration}ms`,bi.style.opacity="0",ci.state=2,(ci._animationForciblyDisabledThroughCss||!gt.exitDuration)&&this._finishRippleTransition(ci)}fadeOutAll(){this._getActiveRipples().forEach(ci=>ci.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(ci=>{ci.config.persistent||ci.fadeOut()})}setupTriggerEvents(ci){const bi=(0,R.i8)(ci);!this._platform.isBrowser||!bi||bi===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=bi,Qe.forEach(gt=>{Lt._eventManager.addHandler(this._ngZone,gt,bi,this)}))}handleEvent(ci){"mousedown"===ci.type?this._onMousedown(ci):"touchstart"===ci.type?this._onTouchStart(ci):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Et.forEach(bi=>{this._triggerElement.addEventListener(bi,this,Nt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(ci){0===ci.state?this._startFadeOutTransition(ci):2===ci.state&&this._destroyRipple(ci)}_startFadeOutTransition(ci){const bi=ci===this._mostRecentTransientRipple,{persistent:gt}=ci.config;ci.state=1,!gt&&(!bi||!this._isPointerDown)&&ci.fadeOut()}_destroyRipple(ci){const bi=this._activeRipples.get(ci)??null;this._activeRipples.delete(ci),this._activeRipples.size||(this._containerRect=null),ci===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),ci.state=3,null!==bi&&(ci.element.removeEventListener("transitionend",bi.onTransitionEnd),ci.element.removeEventListener("transitioncancel",bi.onTransitionCancel)),ci.element.remove()}_onMousedown(ci){const bi=(0,d._G)(ci),gt=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!bi&&!gt&&(this._isPointerDown=!0,this.fadeInRipple(ci.clientX,ci.clientY,this._target.rippleConfig))}_onTouchStart(ci){if(!this._target.rippleDisabled&&!(0,d.w6)(ci)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const bi=ci.changedTouches;if(bi)for(let gt=0;gt<bi.length;gt++)this.fadeInRipple(bi[gt].clientX,bi[gt].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(ci=>{!ci.config.persistent&&(1===ci.state||ci.config.terminateOnPointerUp&&0===ci.state)&&ci.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const ci=this._triggerElement;ci&&(Qe.forEach(bi=>Lt._eventManager.removeHandler(bi,ci,this)),this._pointerUpEventsRegistered&&Et.forEach(bi=>ci.removeEventListener(bi,this,Nt)))}}const Mt=new r.nKC("mat-ripple-global-options");let Ge=(()=>{class Vt{get disabled(){return this._disabled}set disabled(bi){bi&&this.fadeOutAllNonPersistent(),this._disabled=bi,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(bi){this._trigger=bi,this._setupTriggerEventsIfEnabled()}constructor(bi,gt,ai,kt,mi){this._elementRef=bi,this._animationMode=mi,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=kt||{},this._rippleRenderer=new Lt(this,gt,bi,ai)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(bi,gt=0,ai){return"number"==typeof bi?this._rippleRenderer.fadeInRipple(bi,gt,{...this.rippleConfig,...ai}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...bi})}static#e=this.\u0275fac=function(gt){return new(gt||Vt)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(E.OD),r.rXU(Mt,8),r.rXU(r.bc$,8))};static#t=this.\u0275dir=r.FsC({type:Vt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(gt,ai){2>&&r.AVh("mat-ripple-unbounded",ai.unbounded)},inputs:{color:[r.Mj6.None,"matRippleColor","color"],unbounded:[r.Mj6.None,"matRippleUnbounded","unbounded"],centered:[r.Mj6.None,"matRippleCentered","centered"],radius:[r.Mj6.None,"matRippleRadius","radius"],animation:[r.Mj6.None,"matRippleAnimation","animation"],disabled:[r.Mj6.None,"matRippleDisabled","disabled"],trigger:[r.Mj6.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return Vt})(),ot=(()=>{class Vt{static#e=this.\u0275fac=function(gt){return new(gt||Vt)};static#t=this.\u0275mod=r.$C({type:Vt});static#i=this.\u0275inj=r.G2t({imports:[Q,Q]})}return Vt})(),Tt=(()=>{class Vt{constructor(bi){this._animationMode=bi,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(gt){return new(gt||Vt)(r.rXU(r.bc$,8))};static#t=this.\u0275cmp=r.VBU({type:Vt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(gt,ai){2>&&r.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===ai.state)("mat-pseudo-checkbox-checked","checked"===ai.state)("mat-pseudo-checkbox-disabled",ai.disabled)("mat-pseudo-checkbox-minimal","minimal"===ai.appearance)("mat-pseudo-checkbox-full","full"===ai.appearance)("_mat-animation-noopable","NoopAnimations"===ai._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(gt,ai){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return Vt})(),jt=(()=>{class Vt{static#e=this.\u0275fac=function(gt){return new(gt||Vt)};static#t=this.\u0275mod=r.$C({type:Vt});static#i=this.\u0275inj=r.G2t({imports:[Q]})}return Vt})();const li=new r.nKC("MAT_OPTION_PARENT_COMPONENT"),Ht=new r.nKC("MatOptgroup");let Ti=0;class ni{constructor(ci,bi=!1){this.source=ci,this.isUserInput=bi}}let wi=(()=>{class Vt{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(bi){this._disabled=(0,R.he)(bi)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(bi,gt,ai,kt){this._element=bi,this._changeDetectorRef=gt,this._parent=ai,this.group=kt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ti++,this.onSelectionChange=new r.bkB,this._stateChanges=new m.B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(bi=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),bi&&this._emitSelectionChangeEvent())}deselect(bi=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),bi&&this._emitSelectionChangeEvent())}focus(bi,gt){const ai=this._getHostElement();"function"==typeof ai.focus&&ai.focus(gt)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(bi){(bi.keyCode===v.Fm||bi.keyCode===v.t6)&&!(0,v.rp)(bi)&&(this._selectViaInteraction(),bi.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const bi=this.viewValue;bi!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=bi)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(bi=!1){this.onSelectionChange.emit(new ni(this,bi))}static#e=this.\u0275fac=function(gt){r.QTQ()};static#t=this.\u0275dir=r.FsC({type:Vt,viewQuery:function(gt,ai){if(1>&&r.GBs(b,7),2>){let kt;r.mGM(kt=r.lsd())&&(ai._text=kt.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return Vt})();function cn(Vt,ci,bi){if(bi.length){let gt=ci.toArray(),ai=bi.toArray(),kt=0;for(let mi=0;mi<Vt+1;mi++)gt[mi].group&>[mi].group===ai[kt]&&kt++;return kt}return 0}function Ui(Vt,ci,bi,gt){return Vt<bi?Vt:Vt+ci>bi+gt?Math.max(0,Vt-gt+ci):bi}},53719:(ei,rt,D)=>{"use strict";D.d(rt,{B1:()=>G,EA:()=>he,EJ:()=>_e,KN:()=>we,UT:()=>ce,fZ:()=>de,kh:()=>pe,qT:()=>Ie,xb:()=>Be});var r=D(54438),d=D(49969);const _e=new r.nKC("MatError"),we=new r.nKC("MatPrefix"),G=new r.nKC("MatSuffix"),he={transitionMessages:(0,d.hZ)("transitionMessages",[(0,d.wk)("enter",(0,d.iF)({opacity:1,transform:"translateY(0%)"})),(0,d.kY)("void => enter",[(0,d.iF)({opacity:0,transform:"translateY(-5px)"}),(0,d.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ie=(()=>{class wt{static#e=this.\u0275fac=function(ot){return new(ot||wt)};static#t=this.\u0275dir=r.FsC({type:wt})}return wt})();function ce(){return Error("Placeholder attribute and child element were both specified.")}function de(wt){return Error(`A hint was already declared for 'align="${wt}"'.`)}function pe(){return Error("mat-form-field must contain a MatFormFieldControl.")}const Be=new r.nKC("MatFormField")},99213:(ei,rt,D)=>{"use strict";D.d(rt,{An:()=>X,m_:()=>q});var r=D(54438),d=D(86600),L=D(14085),j=D(60177),o=D(7673),E=D(18810),R=D(27468),m=D(18359),_=D(88141),v=D(96354),h=D(99437),s=D(70980),b=D(97647),O=D(96697),w=D(21626),f=D(345);const k=["*"];let I;function g(ye){return function x(){if(void 0===I&&(I=null,typeof window<"u")){const ye=window;void 0!==ye.trustedTypes&&(I=ye.trustedTypes.createPolicy("angular#components",{createHTML:xe=>xe}))}return I}()?.createHTML(ye)||ye}function C(ye){return Error(`Unable to find icon with the name "${ye}"`)}function Y(ye){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ye}".`)}function Q(ye){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ye}".`)}class se{constructor(xe,ge,Ee){this.url=xe,this.svgText=ge,this.options=Ee}}let ie=(()=>{class ye{constructor(ge,Ee,he,Ie){this._httpClient=ge,this._sanitizer=Ee,this._errorHandler=Ie,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=he}addSvgIcon(ge,Ee,he){return this.addSvgIconInNamespace("",ge,Ee,he)}addSvgIconLiteral(ge,Ee,he){return this.addSvgIconLiteralInNamespace("",ge,Ee,he)}addSvgIconInNamespace(ge,Ee,he,Ie){return this._addSvgIconConfig(ge,Ee,new se(he,null,Ie))}addSvgIconResolver(ge){return this._resolvers.push(ge),this}addSvgIconLiteralInNamespace(ge,Ee,he,Ie){const ce=this._sanitizer.sanitize(r.WPN.HTML,he);if(!ce)throw Q(he);const de=g(ce);return this._addSvgIconConfig(ge,Ee,new se("",de,Ie))}addSvgIconSet(ge,Ee){return this.addSvgIconSetInNamespace("",ge,Ee)}addSvgIconSetLiteral(ge,Ee){return this.addSvgIconSetLiteralInNamespace("",ge,Ee)}addSvgIconSetInNamespace(ge,Ee,he){return this._addSvgIconSetConfig(ge,new se(Ee,null,he))}addSvgIconSetLiteralInNamespace(ge,Ee,he){const Ie=this._sanitizer.sanitize(r.WPN.HTML,Ee);if(!Ie)throw Q(Ee);const ce=g(Ie);return this._addSvgIconSetConfig(ge,new se("",ce,he))}registerFontClassAlias(ge,Ee=ge){return this._fontCssClassesByAlias.set(ge,Ee),this}classNameForFontAlias(ge){return this._fontCssClassesByAlias.get(ge)||ge}setDefaultFontSetClass(...ge){return this._defaultFontSetClass=ge,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ge){const Ee=this._sanitizer.sanitize(r.WPN.RESOURCE_URL,ge);if(!Ee)throw Y(ge);const he=this._cachedIconsByUrl.get(Ee);return he?(0,o.of)(ne(he)):this._loadSvgIconFromConfig(new se(ge,null)).pipe((0,_.M)(Ie=>this._cachedIconsByUrl.set(Ee,Ie)),(0,v.T)(Ie=>ne(Ie)))}getNamedSvgIcon(ge,Ee=""){const he=_e(Ee,ge);let Ie=this._svgIconConfigs.get(he);if(Ie)return this._getSvgFromConfig(Ie);if(Ie=this._getIconConfigFromResolvers(Ee,ge),Ie)return this._svgIconConfigs.set(he,Ie),this._getSvgFromConfig(Ie);const ce=this._iconSetConfigs.get(Ee);return ce?this._getSvgFromIconSetConfigs(ge,ce):(0,E.$)(C(he))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ge){return ge.svgText?(0,o.of)(ne(this._svgElementFromConfig(ge))):this._loadSvgIconFromConfig(ge).pipe((0,v.T)(Ee=>ne(Ee)))}_getSvgFromIconSetConfigs(ge,Ee){const he=this._extractIconWithNameFromAnySet(ge,Ee);if(he)return(0,o.of)(he);const Ie=Ee.filter(ce=>!ce.svgText).map(ce=>this._loadSvgIconSetFromConfig(ce).pipe((0,h.W)(de=>{const Be=`Loading icon set URL: ${this._sanitizer.sanitize(r.WPN.RESOURCE_URL,ce.url)} failed: ${de.message}`;return this._errorHandler.handleError(new Error(Be)),(0,o.of)(null)})));return(0,R.p)(Ie).pipe((0,v.T)(()=>{const ce=this._extractIconWithNameFromAnySet(ge,Ee);if(!ce)throw C(ge);return ce}))}_extractIconWithNameFromAnySet(ge,Ee){for(let he=Ee.length-1;he>=0;he--){const Ie=Ee[he];if(Ie.svgText&&Ie.svgText.toString().indexOf(ge)>-1){const ce=this._svgElementFromConfig(Ie),de=this._extractSvgIconFromSet(ce,ge,Ie.options);if(de)return de}}return null}_loadSvgIconFromConfig(ge){return this._fetchIcon(ge).pipe((0,_.M)(Ee=>ge.svgText=Ee),(0,v.T)(()=>this._svgElementFromConfig(ge)))}_loadSvgIconSetFromConfig(ge){return ge.svgText?(0,o.of)(null):this._fetchIcon(ge).pipe((0,_.M)(Ee=>ge.svgText=Ee))}_extractSvgIconFromSet(ge,Ee,he){const Ie=ge.querySelector(`[id="${Ee}"]`);if(!Ie)return null;const ce=Ie.cloneNode(!0);if(ce.removeAttribute("id"),"svg"===ce.nodeName.toLowerCase())return this._setSvgAttributes(ce,he);if("symbol"===ce.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ce),he);const de=this._svgElementFromString(g("<svg></svg>"));return de.appendChild(ce),this._setSvgAttributes(de,he)}_svgElementFromString(ge){const Ee=this._document.createElement("DIV");Ee.innerHTML=ge;const he=Ee.querySelector("svg");if(!he)throw Error("<svg> tag not found");return he}_toSvgElement(ge){const Ee=this._svgElementFromString(g("<svg></svg>")),he=ge.attributes;for(let Ie=0;Ie<he.length;Ie++){const{name:ce,value:de}=he[Ie];"id"!==ce&&Ee.setAttribute(ce,de)}for(let Ie=0;Ie<ge.childNodes.length;Ie++)ge.childNodes[Ie].nodeType===this._document.ELEMENT_NODE&&Ee.appendChild(ge.childNodes[Ie].cloneNode(!0));return Ee}_setSvgAttributes(ge,Ee){return ge.setAttribute("fit",""),ge.setAttribute("height","100%"),ge.setAttribute("width","100%"),ge.setAttribute("preserveAspectRatio","xMidYMid meet"),ge.setAttribute("focusable","false"),Ee&&Ee.viewBox&&ge.setAttribute("viewBox",Ee.viewBox),ge}_fetchIcon(ge){const{url:Ee,options:he}=ge,Ie=he?.withCredentials??!1;if(!this._httpClient)throw function F(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==Ee)throw Error(`Cannot fetch icon from URL "${Ee}".`);const ce=this._sanitizer.sanitize(r.WPN.RESOURCE_URL,Ee);if(!ce)throw Y(Ee);const de=this._inProgressUrlFetches.get(ce);if(de)return de;const pe=this._httpClient.get(ce,{responseType:"text",withCredentials:Ie}).pipe((0,v.T)(Be=>g(Be)),(0,s.j)(()=>this._inProgressUrlFetches.delete(ce)),(0,b.u)());return this._inProgressUrlFetches.set(ce,pe),pe}_addSvgIconConfig(ge,Ee,he){return this._svgIconConfigs.set(_e(ge,Ee),he),this}_addSvgIconSetConfig(ge,Ee){const he=this._iconSetConfigs.get(ge);return he?he.push(Ee):this._iconSetConfigs.set(ge,[Ee]),this}_svgElementFromConfig(ge){if(!ge.svgElement){const Ee=this._svgElementFromString(ge.svgText);this._setSvgAttributes(Ee,ge.options),ge.svgElement=Ee}return ge.svgElement}_getIconConfigFromResolvers(ge,Ee){for(let he=0;he<this._resolvers.length;he++){const Ie=this._resolvers[he](Ee,ge);if(Ie)return be(Ie)?new se(Ie.url,null,Ie.options):new se(Ie,null)}}static#e=this.\u0275fac=function(Ee){return new(Ee||ye)(r.KVO(w.Qq,8),r.KVO(f.up),r.KVO(j.qQ,8),r.KVO(r.zcH))};static#t=this.\u0275prov=r.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})();function ne(ye){return ye.cloneNode(!0)}function _e(ye,xe){return ye+":"+xe}function be(ye){return!(!ye.url||!ye.options)}const oe=(0,d.Zc)(class{constructor(ye){this._elementRef=ye}}),me=new r.nKC("MAT_ICON_DEFAULT_OPTIONS"),we=new r.nKC("mat-icon-location",{providedIn:"root",factory:function N(){const ye=(0,r.WQX)(j.qQ),xe=ye?ye.location:null;return{getPathname:()=>xe?xe.pathname+xe.search:""}}}),G=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],W=G.map(ye=>`[${ye}]`).join(", "),z=/^url\(['"]?#(.*?)['"]?\)$/;let X=(()=>{class ye extends oe{get inline(){return this._inline}set inline(ge){this._inline=(0,L.he)(ge)}get svgIcon(){return this._svgIcon}set svgIcon(ge){ge!==this._svgIcon&&(ge?this._updateSvgIcon(ge):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ge)}get fontSet(){return this._fontSet}set fontSet(ge){const Ee=this._cleanupFontValue(ge);Ee!==this._fontSet&&(this._fontSet=Ee,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ge){const Ee=this._cleanupFontValue(ge);Ee!==this._fontIcon&&(this._fontIcon=Ee,this._updateFontIconClasses())}constructor(ge,Ee,he,Ie,ce,de){super(ge),this._iconRegistry=Ee,this._location=Ie,this._errorHandler=ce,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=m.yU.EMPTY,de&&(de.color&&(this.color=this.defaultColor=de.color),de.fontSet&&(this.fontSet=de.fontSet)),he||ge.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(ge){if(!ge)return["",""];const Ee=ge.split(":");switch(Ee.length){case 1:return["",Ee[0]];case 2:return Ee;default:throw Error(`Invalid icon name: "${ge}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ge=this._elementsWithExternalReferences;if(ge&&ge.size){const Ee=this._location.getPathname();Ee!==this._previousPath&&(this._previousPath=Ee,this._prependPathToReferences(Ee))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ge){this._clearSvgElement();const Ee=this._location.getPathname();this._previousPath=Ee,this._cacheChildrenWithExternalReferences(ge),this._prependPathToReferences(Ee),this._elementRef.nativeElement.appendChild(ge)}_clearSvgElement(){const ge=this._elementRef.nativeElement;let Ee=ge.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ee--;){const he=ge.childNodes[Ee];(1!==he.nodeType||"svg"===he.nodeName.toLowerCase())&&he.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ge=this._elementRef.nativeElement,Ee=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(he=>he.length>0);this._previousFontSetClass.forEach(he=>ge.classList.remove(he)),Ee.forEach(he=>ge.classList.add(he)),this._previousFontSetClass=Ee,this.fontIcon!==this._previousFontIconClass&&!Ee.includes("mat-ligature-font")&&(this._previousFontIconClass&&ge.classList.remove(this._previousFontIconClass),this.fontIcon&&ge.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ge){return"string"==typeof ge?ge.trim().split(" ")[0]:ge}_prependPathToReferences(ge){const Ee=this._elementsWithExternalReferences;Ee&&Ee.forEach((he,Ie)=>{he.forEach(ce=>{Ie.setAttribute(ce.name,`url('${ge}#${ce.value}')`)})})}_cacheChildrenWithExternalReferences(ge){const Ee=ge.querySelectorAll(W),he=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ie=0;Ie<Ee.length;Ie++)G.forEach(ce=>{const de=Ee[Ie],pe=de.getAttribute(ce),Be=pe?pe.match(z):null;if(Be){let We=he.get(de);We||(We=[],he.set(de,We)),We.push({name:ce,value:Be[1]})}})}_updateSvgIcon(ge){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ge){const[Ee,he]=this._splitIconName(ge);Ee&&(this._svgNamespace=Ee),he&&(this._svgName=he),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(he,Ee).pipe((0,O.s)(1)).subscribe(Ie=>this._setSvgElement(Ie),Ie=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ee}:${he}! ${Ie.message}`))})}}static#e=this.\u0275fac=function(Ee){return new(Ee||ye)(r.rXU(r.aKT),r.rXU(ie),r.kS0("aria-hidden"),r.rXU(we),r.rXU(r.zcH),r.rXU(me,8))};static#t=this.\u0275cmp=r.VBU({type:ye,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Ee,he){2&Ee&&(r.BMQ("data-mat-icon-type",he._usingFontIcon()?"font":"svg")("data-mat-icon-name",he._svgName||he.fontIcon)("data-mat-icon-namespace",he._svgNamespace||he.fontSet)("fontIcon",he._usingFontIcon()?he.fontIcon:null),r.AVh("mat-icon-inline",he.inline)("mat-icon-no-color","primary"!==he.color&&"accent"!==he.color&&"warn"!==he.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[r.Vt3],ngContentSelectors:k,decls:1,vars:0,template:function(Ee,he){1&Ee&&(r.NAR(),r.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return ye})(),q=(()=>{class ye{static#e=this.\u0275fac=function(Ee){return new(Ee||ye)};static#t=this.\u0275mod=r.$C({type:ye});static#i=this.\u0275inj=r.G2t({imports:[d.yE,d.yE]})}return ye})()},59042:(ei,rt,D)=>{"use strict";D.d(rt,{Oh:()=>v,fg:()=>O});var r=D(14085),d=D(36860),L=D(37403),j=D(54438),o=D(89417),E=D(86600),R=D(53719),m=D(21413);const v=new j.nKC("MAT_INPUT_VALUE_ACCESSOR"),h=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let s=0;const b=(0,E.J8)(class{constructor(f,k,I,x){this._defaultErrorStateMatcher=f,this._parentForm=k,this._parentFormGroup=I,this.ngControl=x,this.stateChanges=new m.B}});let O=(()=>{class f extends b{get disabled(){return this._disabled}set disabled(I){this._disabled=(0,r.he)(I),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(I){this._id=I||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(o.k0.required)??!1}set required(I){this._required=(0,r.he)(I)}get type(){return this._type}set type(I){this._type=I||"text",this._validateType(),!this._isTextarea&&(0,d.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(I){I!==this.value&&(this._inputValueAccessor.value=I,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(I){this._readonly=(0,r.he)(I)}constructor(I,x,g,C,F,Y,Q,se,ie,ee){super(Y,C,F,g),this._elementRef=I,this._platform=x,this._autofillMonitor=se,this._formField=ee,this._uid="mat-input-"+s++,this.focused=!1,this.stateChanges=new m.B,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(_e=>(0,d.MU)().has(_e)),this._iOSKeyupListener=_e=>{const be=_e.target;!be.value&&0===be.selectionStart&&0===be.selectionEnd&&(be.setSelectionRange(1,1),be.setSelectionRange(0,0))};const re=this._elementRef.nativeElement,ne=re.nodeName.toLowerCase();this._inputValueAccessor=Q||re,this._previousNativeValue=this.value,this.id=this.id,x.IOS&&ie.runOutsideAngular(()=>{I.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ne,this._isTextarea="textarea"===ne,this._isInFormField=!!ee,this._isNativeSelect&&(this.controlType=re.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(I=>{this.autofilled=I.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(I){this._elementRef.nativeElement.focus(I)}_focusChanged(I){I!==this.focused&&(this.focused=I,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const I=this._elementRef.nativeElement.value;this._previousNativeValue!==I&&(this._previousNativeValue=I,this.stateChanges.next())}_dirtyCheckPlaceholder(){const I=this._getPlaceholder();if(I!==this._previousPlaceholder){const x=this._elementRef.nativeElement;this._previousPlaceholder=I,I?x.setAttribute("placeholder",I):x.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){h.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let I=this._elementRef.nativeElement.validity;return I&&I.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const I=this._elementRef.nativeElement,x=I.options[0];return this.focused||I.multiple||!this.empty||!!(I.selectedIndex>-1&&x&&x.label)}return this.focused||!this.empty}setDescribedByIds(I){I.length?this._elementRef.nativeElement.setAttribute("aria-describedby",I.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const I=this._elementRef.nativeElement;return this._isNativeSelect&&(I.multiple||I.size>1)}static#e=this.\u0275fac=function(x){return new(x||f)(j.rXU(j.aKT),j.rXU(d.OD),j.rXU(o.vO,10),j.rXU(o.cV,8),j.rXU(o.j4,8),j.rXU(E.es),j.rXU(v,10),j.rXU(L.P8),j.rXU(j.SKi),j.rXU(R.xb,8))};static#t=this.\u0275dir=j.FsC({type:f,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(x,g){1&x&&j.bIt("focus",function(){return g._focusChanged(!0)})("blur",function(){return g._focusChanged(!1)})("input",function(){return g._onInput()}),2&x&&(j.Mr5("id",g.id)("disabled",g.disabled)("required",g.required),j.BMQ("name",g.name||null)("readonly",g.readonly&&!g._isNativeSelect||null)("aria-invalid",g.empty&&g.required?null:g.errorState)("aria-required",g.required)("id",g.id),j.AVh("mat-input-server",g._isServer)("mat-mdc-form-field-textarea-control",g._isInFormField&&g._isTextarea)("mat-mdc-form-field-input-control",g._isInFormField)("mdc-text-field__input",g._isInFormField)("mat-mdc-native-select-inline",g._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[j.Mj6.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[j.Jv_([{provide:R.qT,useExisting:f}]),j.Vt3,j.OA$]})}return f})()},15311:(ei,rt,D)=>{"use strict";D.d(rt,{G7:()=>tt,KR:()=>Qe,cm:()=>Xt});var r=D(54438),d=D(86600),L=D(83269),j=D(60177),o=D(23980),E=D(47987),R=D(18617),m=D(14085),_=D(36860),h=(D(49969),D(18359)),s=D(21413),b=D(59030),O=D(57786),w=D(7673),f=D(33726),k=D(67336),I=D(76939),x=D(89417),g=D(53719),C=D(99172),F=D(25558),Y=D(96697),Q=D(5964),se=D(96354),ie=D(88141),ee=D(91986),re=D(28203);const ne=["panel"];let me=0;class we{constructor(Lt,wt){this.source=Lt,this.option=wt}}const N=(0,d.GG)(class{}),G=new r.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function W(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let z=(()=>{class Et extends N{get isOpen(){return this._isOpen&&this.showPanel}_setColor(wt){this._color=wt,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(wt){this._autoActiveFirstOption=(0,m.he)(wt)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(wt){this._autoSelectActiveOption=(0,m.he)(wt)}get requireSelection(){return this._requireSelection}set requireSelection(wt){this._requireSelection=(0,m.he)(wt)}set classList(wt){this._classList=wt&&wt.length?(0,m.cc)(wt).reduce((Mt,Ge)=>(Mt[Ge]=!0,Mt),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(wt,Mt,Ge,ot){super(),this._changeDetectorRef=wt,this._elementRef=Mt,this._defaults=Ge,this._activeOptionChanges=h.yU.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new r.bkB,this.opened=new r.bkB,this.closed=new r.bkB,this.optionActivated=new r.bkB,this._classList={},this.id="mat-autocomplete-"+me++,this.inertGroups=ot?.SAFARI||!1,this._autoActiveFirstOption=!!Ge.autoActiveFirstOption,this._autoSelectActiveOption=!!Ge.autoSelectActiveOption,this._requireSelection=!!Ge.requireSelection}ngAfterContentInit(){this._keyManager=new R.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(wt=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[wt]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(wt){this.panel&&(this.panel.nativeElement.scrollTop=wt)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(wt){const Mt=new we(this,wt);this.optionSelected.emit(Mt)}_getPanelAriaLabelledby(wt){return this.ariaLabel?null:this.ariaLabelledby?(wt?wt+" ":"")+this.ariaLabelledby:wt}_setVisibilityClasses(wt){wt[this._visibleClass]=this.showPanel,wt[this._hiddenClass]=!this.showPanel}_setThemeClasses(wt){wt["mat-primary"]="primary"===this._color,wt["mat-warn"]="warn"===this._color,wt["mat-accent"]="accent"===this._color}_skipPredicate(wt){return wt.disabled}static#e=this.\u0275fac=function(Mt){return new(Mt||Et)(r.rXU(r.gRc),r.rXU(r.aKT),r.rXU(G),r.rXU(_.OD))};static#t=this.\u0275dir=r.FsC({type:Et,viewQuery:function(Mt,Ge){if(1&Mt&&(r.GBs(r.C4Q,7),r.GBs(ne,5)),2&Mt){let ot;r.mGM(ot=r.lsd())&&(Ge.template=ot.first),r.mGM(ot=r.lsd())&&(Ge.panel=ot.first)}},inputs:{ariaLabel:[r.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[r.Mj6.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:[r.Mj6.None,"class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[r.Vt3]})}return Et})();const Ee=new r.nKC("mat-autocomplete-scroll-strategy"),Ie={provide:Ee,deps:[E.hJ],useFactory:function he(Et){return()=>Et.scrollStrategies.reposition()}};let ce=(()=>{class Et{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(wt){this._autocompleteDisabled=(0,m.he)(wt)}constructor(wt,Mt,Ge,ot,Tt,jt,li,an,xi,Je,Ht){this._element=wt,this._overlay=Mt,this._viewContainerRef=Ge,this._zone=ot,this._changeDetectorRef=Tt,this._dir=li,this._formField=an,this._document=xi,this._viewportRuler=Je,this._defaults=Ht,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=h.yU.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new s.B,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,b.v)(()=>{const gi=this.autocomplete?this.autocomplete.options:null;return gi?gi.changes.pipe((0,C.Z)(gi),(0,F.n)(()=>(0,O.h)(...gi.map(Ti=>Ti.onSelectionChange)))):this._zone.onStable.pipe((0,Y.s)(1),(0,F.n)(()=>this.optionSelections))}),this._handlePanelKeydown=gi=>{(gi.keyCode===k._f&&!(0,k.rp)(gi)||gi.keyCode===k.i7&&(0,k.rp)(gi,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),gi.stopPropagation(),gi.preventDefault())},this._trackedModal=null,this._scrollStrategy=jt}ngAfterViewInit(){const wt=this._getWindow();typeof wt<"u"&&this._zone.runOutsideAngular(()=>wt.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(wt){wt.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const wt=this._getWindow();typeof wt<"u"&&wt.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&(0,R.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&(0,R.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,O.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Q.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Q.p)(()=>this._overlayAttached)):(0,w.of)()).pipe((0,se.T)(wt=>wt instanceof d.MI?wt:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,O.h)((0,f.R)(this._document,"click"),(0,f.R)(this._document,"auxclick"),(0,f.R)(this._document,"touchend")).pipe((0,Q.p)(wt=>{const Mt=(0,_.Fb)(wt),Ge=this._formField?this._formField._elementRef.nativeElement:null,ot=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Mt!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Ge||!Ge.contains(Mt))&&(!ot||!ot.contains(Mt))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Mt)}))}writeValue(wt){Promise.resolve(null).then(()=>this._assignOptionValue(wt))}registerOnChange(wt){this._onChange=wt}registerOnTouched(wt){this._onTouched=wt}setDisabledState(wt){this._element.nativeElement.disabled=wt}_handleKeydown(wt){const Mt=wt.keyCode,Ge=(0,k.rp)(wt);if(Mt===k._f&&!Ge&&wt.preventDefault(),this.activeOption&&Mt===k.Fm&&this.panelOpen&&!Ge)this.activeOption._selectViaInteraction(),this._resetActiveItem(),wt.preventDefault();else if(this.autocomplete){const ot=this.autocomplete._keyManager.activeItem,Tt=Mt===k.i7||Mt===k.n6;Mt===k.wn||Tt&&!Ge&&this.panelOpen?this.autocomplete._keyManager.onKeydown(wt):Tt&&this._canOpen()&&this.openPanel(),(Tt||this.autocomplete._keyManager.activeItem!==ot)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(wt){let Mt=wt.target,Ge=Mt.value;"number"===Mt.type&&(Ge=""==Ge?null:parseFloat(Ge)),this._previousValue!==Ge&&(this._previousValue=Ge,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(Ge),Ge||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===wt.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(wt=!1){this._formField&&"auto"===this._formField.floatLabel&&(wt?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const wt=this._zone.onStable.pipe((0,Y.s)(1)),Mt=this.autocomplete.options.changes.pipe((0,ie.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,ee.c)(0));return(0,O.h)(wt,Mt).pipe((0,F.n)(()=>(this._zone.run(()=>{const Ge=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Ge!==this.panelOpen&&(this.panelOpen?(this._captureValueOnAttach(),this._emitOpened()):this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Y.s)(1)).subscribe(Ge=>this._setValueAndClose(Ge))}_emitOpened(){this.autocomplete.opened.emit()}_captureValueOnAttach(){this._valueOnAttach=this._element.nativeElement.value}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(wt){const Mt=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(wt):wt;this._updateNativeInputValue(Mt??"")}_updateNativeInputValue(wt){this._formField?this._formField._control.value=wt:this._element.nativeElement.value=wt,this._previousValue=wt}_setValueAndClose(wt){const Mt=this.autocomplete,Ge=wt?wt.source:this._pendingAutoselectedOption;Ge?(this._clearPreviousSelectedOption(Ge),this._assignOptionValue(Ge.value),this._onChange(Ge.value),Mt._emitSelectEvent(Ge),this._element.nativeElement.focus()):Mt.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),Mt._animationDone?Mt._animationDone.pipe((0,Y.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(wt,Mt){this.autocomplete?.options?.forEach(Ge=>{Ge!==wt&&Ge.selected&&Ge.deselect(Mt)})}_attachOverlay(){let wt=this._overlayRef;wt?(this._positionStrategy.setOrigin(this._getConnectedElement()),wt.updateSize({width:this._getPanelWidth()})):(this._portal=new I.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),wt=this._overlay.create(this._getOverlayConfig()),this._overlayRef=wt,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&wt&&wt.updateSize({width:this._getPanelWidth()})})),wt&&!wt.hasAttached()&&(wt.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Mt=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this._captureValueOnAttach(),this.panelOpen&&Mt!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const wt=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=wt.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=wt.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new E.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const wt=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(wt),this._positionStrategy=wt,wt}_setStrategyPositions(wt){const Mt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ge=this._aboveClass,ot=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Ge},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Ge}];let Tt;Tt="above"===this.position?ot:"below"===this.position?Mt:[...Mt,...ot],wt.withPositions(Tt)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const wt=this.autocomplete;if(wt.autoActiveFirstOption){let Mt=-1;for(let Ge=0;Ge<wt.options.length;Ge++)if(!wt.options.get(Ge).disabled){Mt=Ge;break}wt._keyManager.setActiveItem(Mt)}else wt._keyManager.setActiveItem(-1)}_canOpen(){const wt=this._element.nativeElement;return!wt.readOnly&&!wt.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(wt){const Mt=this.autocomplete,Ge=(0,d.jb)(wt,Mt.options,Mt.optionGroups);if(0===wt&&1===Ge)Mt._setScrollTop(0);else if(Mt.panel){const ot=Mt.options.toArray()[wt];if(ot){const Tt=ot._getHostElement(),jt=(0,d.TL)(Tt.offsetTop,Tt.offsetHeight,Mt._getScrollTop(),Mt.panel.nativeElement.offsetHeight);Mt._setScrollTop(jt)}}}_applyModalPanelOwnership(){const wt=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!wt)return;const Mt=this.autocomplete.id;this._trackedModal&&(0,R.Ae)(this._trackedModal,"aria-owns",Mt),(0,R.px)(wt,"aria-owns",Mt),this._trackedModal=wt}_clearFromModal(){this._trackedModal&&((0,R.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(Mt){return new(Mt||Et)(r.rXU(r.aKT),r.rXU(E.hJ),r.rXU(r.c1b),r.rXU(r.SKi),r.rXU(r.gRc),r.rXU(Ee),r.rXU(re.dS,8),r.rXU(g.xb,9),r.rXU(j.qQ,8),r.rXU(o.Xj),r.rXU(G,8))};static#t=this.\u0275dir=r.FsC({type:Et,inputs:{autocomplete:[r.Mj6.None,"matAutocomplete","autocomplete"],position:[r.Mj6.None,"matAutocompletePosition","position"],connectedTo:[r.Mj6.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[r.Mj6.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[r.Mj6.None,"matAutocompleteDisabled","autocompleteDisabled"]},features:[r.OA$]})}return Et})();const Be=["*"];function We(Et,Lt){if(1&Et&&(r.j41(0,"div",1,0),r.SdG(2),r.k0s()),2&Et){const wt=Lt.id,Mt=r.XpG();r.Y8G("id",Mt.id)("ngClass",Mt._classList),r.BMQ("aria-label",Mt.ariaLabel||null)("aria-labelledby",Mt._getPanelAriaLabelledby(wt))}}let tt=(()=>{class Et extends z{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden",this._animationDone=null}static#e=this.\u0275fac=(()=>{let wt;return function(Ge){return(wt||(wt=r.xGo(Et)))(Ge||Et)}})();static#t=this.\u0275cmp=r.VBU({type:Et,selectors:[["mat-autocomplete"]],contentQueries:function(Mt,Ge,ot){if(1&Mt&&(r.wni(ot,d.QC,5),r.wni(ot,L.d1,5)),2&Mt){let Tt;r.mGM(Tt=r.lsd())&&(Ge.optionGroups=Tt),r.mGM(Tt=r.lsd())&&(Ge.options=Tt)}},hostAttrs:["ngSkipHydration","",1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[r.Jv_([{provide:d.is,useExisting:Et}]),r.Vt3],ngContentSelectors:Be,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"]],template:function(Mt,Ge){1&Mt&&(r.NAR(),r.DNE(0,We,3,4,"ng-template"))},dependencies:[j.YU],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0})}return Et})();const vt={provide:x.kq,useExisting:(0,r.Rfq)(()=>Xt),multi:!0};let Xt=(()=>{class Et extends ce{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}static#e=this.\u0275fac=(()=>{let wt;return function(Ge){return(wt||(wt=r.xGo(Et)))(Ge||Et)}})();static#t=this.\u0275dir=r.FsC({type:Et,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Mt,Ge){1&Mt&&r.bIt("focusin",function(){return Ge._handleFocus()})("blur",function(){return Ge._onTouched()})("input",function(Tt){return Ge._handleInput(Tt)})("keydown",function(Tt){return Ge._handleKeydown(Tt)})("click",function(){return Ge._handleClick()}),2&Mt&&r.BMQ("autocomplete",Ge.autocompleteAttribute)("role",Ge.autocompleteDisabled?null:"combobox")("aria-autocomplete",Ge.autocompleteDisabled?null:"list")("aria-activedescendant",Ge.panelOpen&&Ge.activeOption?Ge.activeOption.id:null)("aria-expanded",Ge.autocompleteDisabled?null:Ge.panelOpen.toString())("aria-owns",Ge.autocompleteDisabled||!Ge.panelOpen||null==Ge.autocomplete?null:Ge.autocomplete.id)("aria-haspopup",Ge.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[r.Jv_([vt]),r.Vt3]})}return Et})(),Qe=(()=>{class Et{static#e=this.\u0275fac=function(Mt){return new(Mt||Et)};static#t=this.\u0275mod=r.$C({type:Et});static#i=this.\u0275inj=r.G2t({providers:[Ie],imports:[E.z_,L.zI,d.yE,j.MD,o.Gj,L.zI,d.yE]})}return Et})()},85956:(ei,rt,D)=>{"use strict";D.d(rt,{iV:()=>v,wG:()=>s});var r=D(54438),d=D(86600),L=D(18617);const j=["mat-button",""],o=["*"],m=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],_=(0,d.Zc)((0,d.Ob)((0,d.GG)(class{constructor(b){this._elementRef=b}})));let v=(()=>{class b extends _{constructor(w,f,k){super(w),this._focusMonitor=f,this._animationMode=k,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const I of m)this._hasHostAttributes(I)&&this._getHostElement().classList.add(I);w.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(w,f){w?this._focusMonitor.focusVia(this._getHostElement(),w,f):this._getHostElement().focus(f)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...w){return w.some(f=>this._getHostElement().hasAttribute(f))}static#e=this.\u0275fac=function(f){return new(f||b)(r.rXU(r.aKT),r.rXU(L.FN),r.rXU(r.bc$,8))};static#t=this.\u0275cmp=r.VBU({type:b,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(f,k){if(1&f&&r.GBs(d.r6,5),2&f){let I;r.mGM(I=r.lsd())&&(k.ripple=I.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(f,k){2&f&&(r.BMQ("disabled",k.disabled||null),r.AVh("_mat-animation-noopable","NoopAnimations"===k._animationMode)("mat-button-disabled",k.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.Vt3],attrs:j,ngContentSelectors:o,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(f,k){1&f&&(r.NAR(),r.j41(0,"span",0),r.SdG(1),r.k0s(),r.nrm(2,"span",1)(3,"span",2)),2&f&&(r.R7$(2),r.AVh("mat-button-ripple-round",k.isRoundButton||k.isIconButton),r.Y8G("matRippleDisabled",k._isRippleDisabled())("matRippleCentered",k.isIconButton)("matRippleTrigger",k._getHostElement()))},dependencies:[d.r6],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return b})(),s=(()=>{class b{static#e=this.\u0275fac=function(f){return new(f||b)};static#t=this.\u0275mod=r.$C({type:b});static#i=this.\u0275inj=r.G2t({imports:[d.pZ,d.yE,d.yE]})}return b})()},20962:(ei,rt,D)=>{"use strict";D.d(rt,{Rm:()=>_,XB:()=>C,YU:()=>v,_m:()=>g,ic:()=>Y});var r=D(54438),d=D(86600);const L=["*",[["mat-card-footer"]]],j=["*","mat-card-footer"],o=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],E=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let _=(()=>{class Q{static#e=this.\u0275fac=function(ee){return new(ee||Q)};static#t=this.\u0275dir=r.FsC({type:Q,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]})}return Q})(),v=(()=>{class Q{static#e=this.\u0275fac=function(ee){return new(ee||Q)};static#t=this.\u0275dir=r.FsC({type:Q,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]})}return Q})(),g=(()=>{class Q{constructor(ie){this._animationMode=ie}static#e=this.\u0275fac=function(ee){return new(ee||Q)(r.rXU(r.bc$,8))};static#t=this.\u0275cmp=r.VBU({type:Q,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ee,re){2&ee&&r.AVh("_mat-animation-noopable","NoopAnimations"===re._animationMode)},exportAs:["matCard"],ngContentSelectors:j,decls:2,vars:0,template:function(ee,re){1&ee&&(r.NAR(L),r.SdG(0),r.SdG(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0})}return Q})(),C=(()=>{class Q{static#e=this.\u0275fac=function(ee){return new(ee||Q)};static#t=this.\u0275cmp=r.VBU({type:Q,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:E,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ee,re){1&ee&&(r.NAR(o),r.SdG(0),r.j41(1,"div",0),r.SdG(2,1),r.k0s(),r.SdG(3,2))},encapsulation:2,changeDetection:0})}return Q})(),Y=(()=>{class Q{static#e=this.\u0275fac=function(ee){return new(ee||Q)};static#t=this.\u0275mod=r.$C({type:Q});static#i=this.\u0275inj=r.G2t({imports:[d.yE,d.yE]})}return Q})()},43684:(ei,rt,D)=>{"use strict";D.d(rt,{NZ:()=>ee,Dy:()=>re});var r=D(18617),d=D(54438),L=D(89417),j=D(86600),o=D(14085);const E=["input"],R=["label"],_=new d.nKC("mat-checkbox-default-options",{providedIn:"root",factory:v});function v(){return{color:"accent",clickAction:"check-indeterminate"}}let b=0;const O=v(),w=(0,j.BF)((0,j.Zc)((0,j.GG)((0,j.Ob)(class{constructor(ne){this._elementRef=ne}}))));let f=(()=>{class ne extends w{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(be){this._required=(0,o.he)(be)}constructor(be,oe,me,we,N,G,W){super(oe),this._changeDetectorRef=me,this._ngZone=we,this._animationMode=G,this._options=W,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new d.bkB,this.indeterminateChange=new d.bkB,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||O,this.color=this.defaultColor=this._options.color||O.color,this.tabIndex=parseInt(N)||0,this.id=this._uniqueId=`${be}${++b}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(be){const oe=(0,o.he)(be);oe!=this.checked&&(this._checked=oe,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(be){const oe=(0,o.he)(be);oe!==this.disabled&&(this._disabled=oe,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(be){const oe=be!=this._indeterminate;this._indeterminate=(0,o.he)(be),oe&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(be){this.checked=!!be}registerOnChange(be){this._controlValueAccessorChangeFn=be}registerOnTouched(be){this._onTouched=be}setDisabledState(be){this.disabled=be}_transitionCheckState(be){let oe=this._currentCheckState,me=this._getAnimationTargetElement();if(oe!==be&&me&&(this._currentAnimationClass&&me.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(oe,be),this._currentCheckState=be,this._currentAnimationClass.length>0)){me.classList.add(this._currentAnimationClass);const we=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{me.classList.remove(we)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const be=this._options?.clickAction;this.disabled||"noop"===be?!this.disabled&&"noop"===be&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==be&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(be){be.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(be,oe){if("NoopAnimations"===this._animationMode)return"";switch(be){case 0:if(1===oe)return this._animationClasses.uncheckedToChecked;if(3==oe)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===oe?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===oe?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===oe?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(be){const oe=this._inputElement;oe&&(oe.nativeElement.indeterminate=be)}static#e=this.\u0275fac=function(oe){d.QTQ()};static#t=this.\u0275dir=d.FsC({type:ne,viewQuery:function(oe,me){if(1&oe&&(d.GBs(E,5),d.GBs(R,5),d.GBs(j.r6,5)),2&oe){let we;d.mGM(we=d.lsd())&&(me._inputElement=we.first),d.mGM(we=d.lsd())&&(me._labelElement=we.first),d.mGM(we=d.lsd())&&(me.ripple=we.first)}},inputs:{ariaLabel:[d.Mj6.None,"aria-label","ariaLabel"],ariaLabelledby:[d.Mj6.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[d.Mj6.None,"aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[d.Vt3]})}return ne})(),g=(()=>{class ne{static#e=this.\u0275fac=function(oe){return new(oe||ne)};static#t=this.\u0275mod=d.$C({type:ne});static#i=this.\u0275inj=d.G2t({})}return ne})();var F=D(72318);const Y=["*"],Q=ne=>({enterDuration:ne});class se{}const ie={provide:L.kq,useExisting:(0,d.Rfq)(()=>ee),multi:!0};let ee=(()=>{class ne extends f{constructor(be,oe,me,we,N,G,W){super("mat-checkbox-",be,oe,we,N,G,W),this._focusMonitor=me,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(be){const oe=new se;return oe.source=this,oe.checked=be,oe}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(be=>{be||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(be){be.stopPropagation(),super._handleInputClick()}focus(be,oe){be?this._focusMonitor.focusVia(this._inputElement,be,oe):this._inputElement.nativeElement.focus(oe)}static#e=this.\u0275fac=function(oe){return new(oe||ne)(d.rXU(d.aKT),d.rXU(d.gRc),d.rXU(r.FN),d.rXU(d.SKi),d.kS0("tabindex"),d.rXU(d.bc$,8),d.rXU(_,8))};static#t=this.\u0275cmp=d.VBU({type:ne,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(oe,me){2&oe&&(d.Mr5("id",me.id),d.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),d.AVh("mat-checkbox-indeterminate",me.indeterminate)("mat-checkbox-checked",me.checked)("mat-checkbox-disabled",me.disabled)("mat-checkbox-label-before","before"==me.labelPosition)("_mat-animation-noopable","NoopAnimations"===me._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[d.Jv_([ie]),d.Vt3],ngContentSelectors:Y,decls:17,vars:20,consts:[["label",""],["input",""],["checkboxLabel",""],[1,"mat-checkbox-layout"],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"change","click","id","required","checked","disabled","tabIndex"],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],[2,"display","none"]],template:function(oe,me){if(1&oe){const we=d.RV6();d.NAR(),d.j41(0,"label",3,0)(2,"span",4)(3,"input",5,1),d.bIt("change",function(G){return d.eBV(we),d.Njj(me._onInteractionEvent(G))})("click",function(G){return d.eBV(we),d.Njj(me._onInputClick(G))}),d.k0s(),d.j41(5,"span",6),d.nrm(6,"span",7),d.k0s(),d.nrm(7,"span",8),d.j41(8,"span",9),d.qSk(),d.j41(9,"svg",10),d.nrm(10,"path",11),d.k0s(),d.joV(),d.nrm(11,"span",12),d.k0s()(),d.j41(12,"span",13,2),d.bIt("cdkObserveContent",function(){return d.eBV(we),d.Njj(me._onLabelTextChange())}),d.j41(14,"span",14),d.EFF(15,"\xa0"),d.k0s(),d.SdG(16),d.k0s()()}if(2&oe){const we=d.sdS(1),N=d.sdS(13);d.BMQ("for",me.inputId),d.R7$(2),d.AVh("mat-checkbox-inner-container-no-side-margin",!N.textContent||!N.textContent.trim()),d.R7$(),d.Y8G("id",me.inputId)("required",me.required)("checked",me.checked)("disabled",me.disabled)("tabIndex",me.tabIndex),d.BMQ("value",me.value)("name",me.name)("aria-label",me.ariaLabel||null)("aria-labelledby",me.ariaLabelledby)("aria-describedby",me.ariaDescribedby),d.R7$(2),d.Y8G("matRippleTrigger",we)("matRippleDisabled",me._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",d.eq3(18,Q,"NoopAnimations"===me._animationMode?0:150))}},dependencies:[j.r6,F.Wv],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return ne})(),re=(()=>{class ne{static#e=this.\u0275fac=function(oe){return new(oe||ne)};static#t=this.\u0275mod=d.$C({type:ne});static#i=this.\u0275inj=d.G2t({imports:[j.pZ,j.yE,F.w5,g,j.yE,g]})}return ne})()},83269:(ei,rt,D)=>{"use strict";D.d(rt,{d1:()=>v,zI:()=>h});var r=D(54438),d=D(60177),L=D(86600);const E=["*"];function R(s,b){if(1&s&&r.nrm(0,"mat-pseudo-checkbox",5),2&s){const O=r.XpG();r.Y8G("state",O.selected?"checked":"unchecked")("disabled",O.disabled)}}function m(s,b){if(1&s&&(r.j41(0,"span",6),r.EFF(1),r.k0s()),2&s){const O=r.XpG();r.R7$(),r.SpI("(",O.group.label,")")}}let v=(()=>{class s extends L.So{constructor(O,w,f,k){super(O,w,f,k)}static#e=this.\u0275fac=function(w){return new(w||s)(r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(L.is,8),r.rXU(L.QC,8))};static#t=this.\u0275cmp=r.VBU({type:s,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(w,f){1&w&&r.bIt("click",function(){return f._selectViaInteraction()})("keydown",function(I){return f._handleKeydown(I)}),2&w&&(r.Mr5("id",f.id),r.BMQ("tabindex",f._getTabIndex())("aria-selected",f.selected)("aria-disabled",f.disabled.toString()),r.AVh("mat-selected",f.selected)("mat-option-multiple",f.multiple)("mat-active",f.active)("mat-option-disabled",f.disabled))},exportAs:["matOption"],features:[r.Vt3],ngContentSelectors:E,decls:6,vars:4,consts:[["text",""],["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(w,f){1&w&&(r.NAR(),r.DNE(0,R,1,2,"mat-pseudo-checkbox",1),r.j41(1,"span",2,0),r.SdG(3),r.k0s(),r.DNE(4,m,2,1,"span",3),r.nrm(5,"div",4)),2&w&&(r.Y8G("ngIf",f.multiple),r.R7$(4),r.Y8G("ngIf",f.group&&f.group._inert),r.R7$(),r.Y8G("matRippleTrigger",f._getHostElement())("matRippleDisabled",f.disabled||f.disableRipple))},dependencies:[L.r6,d.bT,L.wg],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0})}return s})(),h=(()=>{class s{static#e=this.\u0275fac=function(w){return new(w||s)};static#t=this.\u0275mod=r.$C({type:s});static#i=this.\u0275inj=r.G2t({imports:[L.pZ,d.MD,L.yE,L.O5]})}return s})()},74854:(ei,rt,D)=>{"use strict";D.d(rt,{xh:()=>Je,ef:()=>wi,kQ:()=>cn,In:()=>li,PQ:()=>Xi,eB:()=>It,RN:()=>xi,KI:()=>Ui});var r=D(18617),d=D(47987),L=D(36860),j=D(76939),o=D(60177),E=D(54438),R=D(67336),m=D(21413),_=D(59030),v=D(7673),h=D(28203),s=D(99172);function b(yt,pt){}class O{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let f=(()=>{class yt extends j.lb{constructor(st,Wt,Vt,ci,bi,gt,ai,kt){super(),this._elementRef=st,this._focusTrapFactory=Wt,this._config=ci,this._interactivityChecker=bi,this._ngZone=gt,this._overlayRef=ai,this._focusMonitor=kt,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=mi=>{this._portalOutlet.hasAttached();const Kt=this._portalOutlet.attachDomPortal(mi);return this._contentAttached(),Kt},this._document=Vt,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(st){this._portalOutlet.hasAttached();const Wt=this._portalOutlet.attachComponentPortal(st);return this._contentAttached(),Wt}attachTemplatePortal(st){this._portalOutlet.hasAttached();const Wt=this._portalOutlet.attachTemplatePortal(st);return this._contentAttached(),Wt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(st,Wt){this._interactivityChecker.isFocusable(st)||(st.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Vt=()=>{st.removeEventListener("blur",Vt),st.removeEventListener("mousedown",Vt),st.removeAttribute("tabindex")};st.addEventListener("blur",Vt),st.addEventListener("mousedown",Vt)})),st.focus(Wt)}_focusByCssSelector(st,Wt){let Vt=this._elementRef.nativeElement.querySelector(st);Vt&&this._forceFocus(Vt,Wt)}_trapFocus(){const st=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||st.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Wt=>{Wt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const st=this._config.restoreFocus;let Wt=null;if("string"==typeof st?Wt=this._document.querySelector(st):"boolean"==typeof st?Wt=st?this._elementFocusedBeforeDialogWasOpened:null:st&&(Wt=st),this._config.restoreFocus&&Wt&&"function"==typeof Wt.focus){const Vt=(0,L.vc)(),ci=this._elementRef.nativeElement;(!Vt||Vt===this._document.body||Vt===ci||ci.contains(Vt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Wt,this._closeInteractionType),this._closeInteractionType=null):Wt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const st=this._elementRef.nativeElement,Wt=(0,L.vc)();return st===Wt||st.contains(Wt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,L.vc)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(Wt){return new(Wt||yt)(E.rXU(E.aKT),E.rXU(r.GX),E.rXU(o.qQ,8),E.rXU(O),E.rXU(r.Z7),E.rXU(E.SKi),E.rXU(d.yY),E.rXU(r.FN))};static#t=this.\u0275cmp=E.VBU({type:yt,selectors:[["cdk-dialog-container"]],viewQuery:function(Wt,Vt){if(1&Wt&&E.GBs(j.I3,7),2&Wt){let ci;E.mGM(ci=E.lsd())&&(Vt._portalOutlet=ci.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(Wt,Vt){2&Wt&&E.BMQ("id",Vt._config.id||null)("role",Vt._config.role)("aria-modal",Vt._config.ariaModal)("aria-labelledby",Vt._config.ariaLabel?null:Vt._ariaLabelledByQueue[0])("aria-label",Vt._config.ariaLabel)("aria-describedby",Vt._config.ariaDescribedBy||null)},features:[E.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Wt,Vt){1&Wt&&E.DNE(0,b,0,0,"ng-template",0)},dependencies:[j.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return yt})();class k{constructor(pt,st){this.overlayRef=pt,this.config=st,this.closed=new m.B,this.disableClose=st.disableClose,this.backdropClick=pt.backdropClick(),this.keydownEvents=pt.keydownEvents(),this.outsidePointerEvents=pt.outsidePointerEvents(),this.id=st.id,this.keydownEvents.subscribe(Wt=>{Wt.keyCode===R._f&&!this.disableClose&&!(0,R.rp)(Wt)&&(Wt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=pt.detachments().subscribe(()=>{!1!==st.closeOnOverlayDetachments&&this.close()})}close(pt,st){if(this.containerInstance){const Wt=this.closed;this.containerInstance._closeInteractionType=st?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),Wt.next(pt),Wt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(pt="",st=""){return this.overlayRef.updateSize({width:pt,height:st}),this}addPanelClass(pt){return this.overlayRef.addPanelClass(pt),this}removePanelClass(pt){return this.overlayRef.removePanelClass(pt),this}}const I=new E.nKC("DialogScrollStrategy"),x=new E.nKC("DialogData"),g=new E.nKC("DefaultDialogConfig"),F={provide:I,deps:[d.hJ],useFactory:function C(yt){return()=>yt.scrollStrategies.block()}};let Y=0,Q=(()=>{class yt{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(st,Wt,Vt,ci,bi,gt){this._overlay=st,this._injector=Wt,this._defaultOptions=Vt,this._parentDialog=ci,this._overlayContainer=bi,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new m.B,this._afterOpenedAtThisLevel=new m.B,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,_.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,s.Z)(void 0))),this._scrollStrategy=gt}open(st,Wt){(Wt={...this._defaultOptions||new O,...Wt}).id=Wt.id||"cdk-dialog-"+Y++,Wt.id&&this.getDialogById(Wt.id);const ci=this._getOverlayConfig(Wt),bi=this._overlay.create(ci),gt=new k(bi,Wt),ai=this._attachContainer(bi,gt,Wt);return gt.containerInstance=ai,this._attachDialogContent(st,gt,ai,Wt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(gt),gt.closed.subscribe(()=>this._removeOpenDialog(gt,!0)),this.afterOpened.next(gt),gt}closeAll(){se(this.openDialogs,st=>st.close())}getDialogById(st){return this.openDialogs.find(Wt=>Wt.id===st)}ngOnDestroy(){se(this._openDialogsAtThisLevel,st=>{!1===st.config.closeOnDestroy&&this._removeOpenDialog(st,!1)}),se(this._openDialogsAtThisLevel,st=>st.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(st){const Wt=new d.rR({positionStrategy:st.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:st.scrollStrategy||this._scrollStrategy(),panelClass:st.panelClass,hasBackdrop:st.hasBackdrop,direction:st.direction,minWidth:st.minWidth,minHeight:st.minHeight,maxWidth:st.maxWidth,maxHeight:st.maxHeight,width:st.width,height:st.height,disposeOnNavigation:st.closeOnNavigation});return st.backdropClass&&(Wt.backdropClass=st.backdropClass),Wt}_attachContainer(st,Wt,Vt){const ci=Vt.injector||Vt.viewContainerRef?.injector,bi=[{provide:O,useValue:Vt},{provide:k,useValue:Wt},{provide:d.yY,useValue:st}];let gt;Vt.container?"function"==typeof Vt.container?gt=Vt.container:(gt=Vt.container.type,bi.push(...Vt.container.providers(Vt))):gt=f;const ai=new j.A8(gt,Vt.viewContainerRef,E.zZn.create({parent:ci||this._injector,providers:bi}),Vt.componentFactoryResolver);return st.attach(ai).instance}_attachDialogContent(st,Wt,Vt,ci){if(st instanceof E.C4Q){const bi=this._createInjector(ci,Wt,Vt,void 0);let gt={$implicit:ci.data,dialogRef:Wt};ci.templateContext&&(gt={...gt,..."function"==typeof ci.templateContext?ci.templateContext():ci.templateContext}),Vt.attachTemplatePortal(new j.VA(st,null,gt,bi))}else{const bi=this._createInjector(ci,Wt,Vt,this._injector),gt=Vt.attachComponentPortal(new j.A8(st,ci.viewContainerRef,bi,ci.componentFactoryResolver));Wt.componentRef=gt,Wt.componentInstance=gt.instance}}_createInjector(st,Wt,Vt,ci){const bi=st.injector||st.viewContainerRef?.injector,gt=[{provide:x,useValue:st.data},{provide:k,useValue:Wt}];return st.providers&&("function"==typeof st.providers?gt.push(...st.providers(Wt,st,Vt)):gt.push(...st.providers)),st.direction&&(!bi||!bi.get(h.dS,null,{optional:!0}))&>.push({provide:h.dS,useValue:{value:st.direction,change:(0,v.of)()}}),E.zZn.create({parent:bi||ci,providers:gt})}_removeOpenDialog(st,Wt){const Vt=this.openDialogs.indexOf(st);Vt>-1&&(this.openDialogs.splice(Vt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ci,bi)=>{ci?bi.setAttribute("aria-hidden",ci):bi.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Wt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const st=this._overlayContainer.getContainerElement();if(st.parentElement){const Wt=st.parentElement.children;for(let Vt=Wt.length-1;Vt>-1;Vt--){const ci=Wt[Vt];ci!==st&&"SCRIPT"!==ci.nodeName&&"STYLE"!==ci.nodeName&&!ci.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ci,ci.getAttribute("aria-hidden")),ci.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const st=this._parentDialog;return st?st._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(Wt){return new(Wt||yt)(E.KVO(d.hJ),E.KVO(E.zZn),E.KVO(g,8),E.KVO(yt,12),E.KVO(d.Sf),E.KVO(I))};static#t=this.\u0275prov=E.jDH({token:yt,factory:yt.\u0275fac})}return yt})();function se(yt,pt){let st=yt.length;for(;st--;)pt(yt[st])}let ie=(()=>{class yt{static#e=this.\u0275fac=function(Wt){return new(Wt||yt)};static#t=this.\u0275mod=E.$C({type:yt});static#i=this.\u0275inj=E.G2t({providers:[Q,F],imports:[d.z_,j.jc,r.Pd,j.jc]})}return yt})();var ee=D(86600),re=D(57786),ne=D(5964),_e=D(96697),be=D(49969);class me{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}let X=(()=>{class yt extends f{constructor(st,Wt,Vt,ci,bi,gt,ai,kt){super(st,Wt,Vt,ci,bi,gt,ai,kt),this._animationStateChanged=new E.bkB}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(st){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:st})}static#e=this.\u0275fac=function(Wt){return new(Wt||yt)(E.rXU(E.aKT),E.rXU(r.GX),E.rXU(o.qQ,8),E.rXU(me),E.rXU(r.Z7),E.rXU(E.SKi),E.rXU(d.yY),E.rXU(r.FN))};static#t=this.\u0275cmp=E.VBU({type:yt,selectors:[["ng-component"]],features:[E.Vt3],decls:0,vars:0,template:function(Wt,Vt){},encapsulation:2})}return yt})();class ge{constructor(pt,st,Wt){this._ref=pt,this._containerInstance=Wt,this._afterOpened=new m.B,this._beforeClosed=new m.B,this._state=0,this.disableClose=st.disableClose,this.id=pt.id,Wt._animationStateChanged.pipe((0,ne.p)(Vt=>"opened"===Vt.state),(0,_e.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Wt._animationStateChanged.pipe((0,ne.p)(Vt=>"closed"===Vt.state),(0,_e.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),pt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,re.h)(this.backdropClick(),this.keydownEvents().pipe((0,ne.p)(Vt=>Vt.keyCode===R._f&&!this.disableClose&&!(0,R.rp)(Vt)))).subscribe(Vt=>{this.disableClose||(Vt.preventDefault(),Ee(this,"keydown"===Vt.type?"keyboard":"mouse"))})}close(pt){this._result=pt,this._containerInstance._animationStateChanged.pipe((0,ne.p)(st=>"closing"===st.state),(0,_e.s)(1)).subscribe(st=>{this._beforeClosed.next(pt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),st.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(pt){let st=this._ref.config.positionStrategy;return pt&&(pt.left||pt.right)?pt.left?st.left(pt.left):st.right(pt.right):st.centerHorizontally(),pt&&(pt.top||pt.bottom)?pt.top?st.top(pt.top):st.bottom(pt.bottom):st.centerVertically(),this._ref.updatePosition(),this}updateSize(pt="",st=""){return this._ref.updateSize(pt,st),this}addPanelClass(pt){return this._ref.addPanelClass(pt),this}removePanelClass(pt){return this._ref.removePanelClass(pt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function Ee(yt,pt,st){return yt._closeInteractionType=pt,yt.close(st)}let We=0,tt=(()=>{class yt{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const st=this._parentDialog;return st?st._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(st,Wt,Vt,ci,bi,gt,ai,kt,mi,Kt){this._overlay=st,this._defaultOptions=Vt,this._parentDialog=ci,this._dialogRefConstructor=ai,this._dialogContainerType=kt,this._dialogDataToken=mi,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new m.B,this._afterOpenedAtThisLevel=new m.B,this._idPrefix="mat-dialog-",this.dialogConfigClass=me,this.afterAllClosed=(0,_.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,s.Z)(void 0))),this._scrollStrategy=gt,this._dialog=Wt.get(Q)}open(st,Wt){let Vt;(Wt={...this._defaultOptions||new me,...Wt}).id=Wt.id||`${this._idPrefix}${We++}`,Wt.scrollStrategy=Wt.scrollStrategy||this._scrollStrategy();const ci=this._dialog.open(st,{...Wt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Wt},{provide:O,useValue:Wt}]},templateContext:()=>({dialogRef:Vt}),providers:(bi,gt,ai)=>(Vt=new this._dialogRefConstructor(bi,Wt,ai),Vt.updatePosition(Wt?.position),[{provide:this._dialogContainerType,useValue:ai},{provide:this._dialogDataToken,useValue:gt.data},{provide:this._dialogRefConstructor,useValue:Vt}])});return Vt.componentRef=ci.componentRef,Vt.componentInstance=ci.componentInstance,this.openDialogs.push(Vt),this.afterOpened.next(Vt),Vt.afterClosed().subscribe(()=>{const bi=this.openDialogs.indexOf(Vt);bi>-1&&(this.openDialogs.splice(bi,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Vt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(st){return this.openDialogs.find(Wt=>Wt.id===st)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(st){let Wt=st.length;for(;Wt--;)st[Wt].close()}static#e=this.\u0275fac=function(Wt){E.QTQ()};static#t=this.\u0275prov=E.jDH({token:yt,factory:yt.\u0275fac})}return yt})();const Ge={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},ot={dialogContainer:(0,be.hZ)("dialogContainer",[(0,be.wk)("void, exit",(0,be.iF)({opacity:0,transform:"scale(0.7)"})),(0,be.wk)("enter",(0,be.iF)({transform:"none"})),(0,be.kY)("* => enter",(0,be.Os)([(0,be.i0)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,be.iF)({transform:"none",opacity:1})),(0,be.P)("@*",(0,be.MA)(),{optional:!0})]),Ge),(0,be.kY)("* => void, * => exit",(0,be.Os)([(0,be.i0)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,be.iF)({opacity:0})),(0,be.P)("@*",(0,be.MA)(),{optional:!0})]),Ge)])};function Tt(yt,pt){}const jt_params_enterAnimationDuration="150ms",jt_params_exitAnimationDuration="75ms";class li extends me{constructor(){super(...arguments),this.enterAnimationDuration=Ge.params.enterAnimationDuration,this.exitAnimationDuration=Ge.params.exitAnimationDuration}}let an=(()=>{class yt extends X{_onAnimationDone({toState:st,totalTime:Wt}){"enter"===st?this._openAnimationDone(Wt):"exit"===st&&this._animationStateChanged.next({state:"closed",totalTime:Wt})}_onAnimationStart({toState:st,totalTime:Wt}){"enter"===st?this._animationStateChanged.next({state:"opening",totalTime:Wt}):("exit"===st||"void"===st)&&this._animationStateChanged.next({state:"closing",totalTime:Wt})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}constructor(st,Wt,Vt,ci,bi,gt,ai,kt,mi){super(st,Wt,Vt,ci,bi,gt,ai,mi),this._changeDetectorRef=kt,this._state="enter"}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||jt_params_enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||jt_params_exitAnimationDuration}}}static#e=this.\u0275fac=function(Wt){return new(Wt||yt)(E.rXU(E.aKT),E.rXU(r.GX),E.rXU(o.qQ,8),E.rXU(li),E.rXU(r.Z7),E.rXU(E.SKi),E.rXU(d.yY),E.rXU(E.gRc),E.rXU(r.FN))};static#t=this.\u0275cmp=E.VBU({type:yt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(Wt,Vt){1&Wt&&E.Kam("@dialogContainer.start",function(bi){return Vt._onAnimationStart(bi)})("@dialogContainer.done",function(bi){return Vt._onAnimationDone(bi)}),2&Wt&&(E.Mr5("id",Vt._config.id),E.zvX("@dialogContainer",Vt._getAnimationState()),E.BMQ("aria-modal",Vt._config.ariaModal)("role",Vt._config.role)("aria-labelledby",Vt._config.ariaLabel?null:Vt._ariaLabelledByQueue[0])("aria-label",Vt._config.ariaLabel)("aria-describedby",Vt._config.ariaDescribedBy||null))},features:[E.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Wt,Vt){1&Wt&&E.DNE(0,Tt,0,0,"ng-template",0)},dependencies:[j.I3],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[ot.dialogContainer]}})}return yt})();class xi extends ge{}const Je=new E.nKC("MatDialogData"),Ht=new E.nKC("mat-dialog-default-options"),gi=new E.nKC("mat-dialog-scroll-strategy"),ni={provide:gi,deps:[d.hJ],useFactory:function Ti(yt){return()=>yt.scrollStrategies.block()}};let wi=(()=>{class yt extends tt{constructor(st,Wt,Vt,ci,bi,gt,ai,kt){super(st,Wt,ci,gt,ai,bi,xi,an,Je,kt),this.dialogConfigClass=li}static#e=this.\u0275fac=function(Wt){return new(Wt||yt)(E.KVO(d.hJ),E.KVO(E.zZn),E.KVO(o.aZ,8),E.KVO(Ht,8),E.KVO(gi),E.KVO(yt,12),E.KVO(d.Sf),E.KVO(E.bc$,8))};static#t=this.\u0275prov=E.jDH({token:yt,factory:yt.\u0275fac})}return yt})(),ui=0,cn=(()=>{class yt{constructor(st,Wt,Vt){this.dialogRef=st,this._elementRef=Wt,this._dialog=Vt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Ut(this._elementRef,this._dialog.openDialogs))}ngOnChanges(st){const Wt=st._matDialogClose||st._matDialogCloseResult;Wt&&(this.dialogResult=Wt.currentValue)}_onButtonClick(st){Ee(this.dialogRef,0===st.screenX&&0===st.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(Wt){return new(Wt||yt)(E.rXU(xi,8),E.rXU(E.aKT),E.rXU(wi))};static#t=this.\u0275dir=E.FsC({type:yt,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Wt,Vt){1&Wt&&E.bIt("click",function(bi){return Vt._onButtonClick(bi)}),2&Wt&&E.BMQ("aria-label",Vt.ariaLabel||null)("type",Vt.type)},inputs:{ariaLabel:[E.Mj6.None,"aria-label","ariaLabel"],type:"type",dialogResult:[E.Mj6.None,"mat-dialog-close","dialogResult"],_matDialogClose:[E.Mj6.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[E.OA$]})}return yt})(),Ui=(()=>{class yt{constructor(st,Wt,Vt){this._dialogRef=st,this._elementRef=Wt,this._dialog=Vt,this.id="mat-dialog-title-"+ui++}ngOnInit(){this._dialogRef||(this._dialogRef=Ut(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const st=this._dialogRef?._containerInstance?._ariaLabelledByQueue;st&&Promise.resolve().then(()=>{const Wt=st.indexOf(this.id);Wt>-1&&st.splice(Wt,1)})}static#e=this.\u0275fac=function(Wt){return new(Wt||yt)(E.rXU(xi,8),E.rXU(E.aKT),E.rXU(wi))};static#t=this.\u0275dir=E.FsC({type:yt,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(Wt,Vt){2&Wt&&E.Mr5("id",Vt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return yt})(),Xi=(()=>{class yt{static#e=this.\u0275fac=function(Wt){return new(Wt||yt)};static#t=this.\u0275dir=E.FsC({type:yt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]})}return yt})();function Ut(yt,pt){let st=yt.nativeElement.parentElement;for(;st&&!st.classList.contains("mat-dialog-container");)st=st.parentElement;return st?pt.find(Wt=>Wt.id===st.id):null}let It=(()=>{class yt{static#e=this.\u0275fac=function(Wt){return new(Wt||yt)};static#t=this.\u0275mod=E.$C({type:yt});static#i=this.\u0275inj=E.G2t({providers:[wi,ni],imports:[ie,d.z_,j.jc,ee.yE,ee.yE]})}return yt})()},44613:(ei,rt,D)=>{"use strict";D.d(rt,{C:()=>Ie,Kc:()=>xe,Ky:()=>ge,V3:()=>N,aw:()=>G,k5:()=>oe,xZ:()=>he});var r=D(72318),d=D(60177),L=D(54438),j=D(86600),o=D(53719),E=D(28203),R=D(14085),m=D(21413),_=D(57786),v=D(33726),h=D(99172),s=D(56977),b=D(96697),O=D(36860);const w=["connectionContainer"],f=["inputContainer"],k=["label"],I=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],x=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];function g(ce,de){1&ce&&(L.qex(0),L.j41(1,"div",15),L.nrm(2,"div",16)(3,"div",17)(4,"div",18),L.k0s(),L.j41(5,"div",19),L.nrm(6,"div",16)(7,"div",17)(8,"div",18),L.k0s(),L.bVm())}function C(ce,de){if(1&ce){const pe=L.RV6();L.j41(0,"div",20),L.bIt("cdkObserveContent",function(){L.eBV(pe);const We=L.XpG();return L.Njj(We.updateOutlineGap())}),L.SdG(1,1),L.k0s()}if(2&ce){const pe=L.XpG();L.Y8G("cdkObserveContentDisabled","outline"!=pe.appearance)}}function F(ce,de){if(1&ce&&(L.qex(0),L.SdG(1,2),L.j41(2,"span"),L.EFF(3),L.k0s(),L.bVm()),2&ce){const pe=L.XpG(2);L.R7$(3),L.JRh(pe._control.placeholder)}}function Y(ce,de){1&ce&&L.SdG(0,3,["*ngSwitchCase","true"])}function Q(ce,de){1&ce&&(L.j41(0,"span",23),L.EFF(1," *"),L.k0s())}function se(ce,de){if(1&ce){const pe=L.RV6();L.j41(0,"label",21,2),L.bIt("cdkObserveContent",function(){L.eBV(pe);const We=L.XpG();return L.Njj(We.updateOutlineGap())}),L.DNE(2,F,4,1,"ng-container",13)(3,Y,1,0,"ng-content",13)(4,Q,2,0,"span",22),L.k0s()}if(2&ce){const pe=L.XpG();L.AVh("mat-empty",pe._control.empty&&!pe._shouldAlwaysFloat())("mat-form-field-empty",pe._control.empty&&!pe._shouldAlwaysFloat())("mat-accent","accent"==pe.color)("mat-warn","warn"==pe.color),L.Y8G("cdkObserveContentDisabled","outline"!=pe.appearance)("id",pe._labelId)("ngSwitch",pe._hasLabel()),L.BMQ("for",pe._control.id)("aria-owns",pe._control.id),L.R7$(2),L.Y8G("ngSwitchCase",!1),L.R7$(),L.Y8G("ngSwitchCase",!0),L.R7$(),L.Y8G("ngIf",!pe.hideRequiredMarker&&pe._control.required&&!pe._control.disabled)}}function ie(ce,de){1&ce&&(L.j41(0,"div",24),L.SdG(1,4),L.k0s())}function ee(ce,de){if(1&ce&&(L.j41(0,"div",25),L.nrm(1,"span",26),L.k0s()),2&ce){const pe=L.XpG();L.R7$(),L.AVh("mat-accent","accent"==pe.color)("mat-warn","warn"==pe.color)}}function re(ce,de){if(1&ce&&(L.j41(0,"div"),L.SdG(1,5),L.k0s()),2&ce){const pe=L.XpG();L.Y8G("@transitionMessages",pe._subscriptAnimationState)}}function ne(ce,de){if(1&ce&&(L.j41(0,"div",30),L.EFF(1),L.k0s()),2&ce){const pe=L.XpG(2);L.Y8G("id",pe._hintLabelId),L.R7$(),L.JRh(pe.hintLabel)}}function _e(ce,de){if(1&ce&&(L.j41(0,"div",27),L.DNE(1,ne,2,2,"div",28),L.SdG(2,6),L.nrm(3,"div",29),L.SdG(4,7),L.k0s()),2&ce){const pe=L.XpG();L.Y8G("@transitionMessages",pe._subscriptAnimationState),L.R7$(),L.Y8G("ngIf",pe.hintLabel)}}let be=0,oe=(()=>{class ce{constructor(pe,Be){this.id="mat-error-"+be++,pe||Be.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(Be){return new(Be||ce)(L.kS0("aria-live"),L.rXU(L.aKT))};static#t=this.\u0275dir=L.FsC({type:ce,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(Be,We){2&Be&&L.BMQ("id",We.id)},inputs:{id:"id"},features:[L.Jv_([{provide:o.EJ,useExisting:ce}])]})}return ce})(),me=0;const we=new L.nKC("MatHint");let N=(()=>{class ce{constructor(){this.align="start",this.id="mat-hint-"+me++}static#e=this.\u0275fac=function(Be){return new(Be||ce)};static#t=this.\u0275dir=L.FsC({type:ce,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(Be,We){2&Be&&(L.BMQ("id",We.id)("align",null),L.AVh("mat-form-field-hint-end","end"===We.align))},inputs:{align:"align",id:"id"},features:[L.Jv_([{provide:we,useExisting:ce}])]})}return ce})(),G=(()=>{class ce{static#e=this.\u0275fac=function(Be){return new(Be||ce)};static#t=this.\u0275dir=L.FsC({type:ce,selectors:[["mat-label"]]})}return ce})(),W=(()=>{class ce{static#e=this.\u0275fac=function(Be){return new(Be||ce)};static#t=this.\u0275dir=L.FsC({type:ce,selectors:[["mat-placeholder"]]})}return ce})(),z=0;const ye=(0,j.Zc)(class{constructor(ce){this._elementRef=ce}},"primary"),xe=new L.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let ge=(()=>{class ce extends ye{get appearance(){return this._appearance}set appearance(pe){const Be=this._appearance;this._appearance=pe||this._defaults?.appearance||"legacy","outline"===this._appearance&&Be!==pe&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(pe){this._hideRequiredMarker=(0,R.he)(pe)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(pe){this._hintLabel=pe,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(pe){pe!==this._floatLabel&&(this._floatLabel=pe||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(pe){this._explicitFormFieldControl=pe}constructor(pe,Be,We,tt,vt,Xt,Nt){super(pe),this._changeDetectorRef=Be,this._dir=We,this._defaults=tt,this._platform=vt,this._ngZone=Xt,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new m.B,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+z++,this._labelId="mat-form-field-label-"+z++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Nt,this.appearance=tt?.appearance||"legacy",tt&&(this._hideRequiredMarker=!!tt.hideRequiredMarker,tt.color&&(this.color=this.defaultColor=tt.color))}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const pe=this._control;pe.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${pe.controlType}`),pe.stateChanges.pipe((0,h.Z)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),pe.ngControl&&pe.ngControl.valueChanges&&pe.ngControl.valueChanges.pipe((0,s.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,s.Q)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,_.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.Z)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.Z)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,s.Q)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(pe){const Be=this._control?this._control.ngControl:null;return Be&&Be[pe]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,v.R)(this._label.nativeElement,"transitionend").pipe((0,b.s)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let pe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&pe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Be=this._hintChildren?this._hintChildren.find(tt=>"start"===tt.align):null,We=this._hintChildren?this._hintChildren.find(tt=>"end"===tt.align):null;Be?pe.push(Be.id):this._hintLabel&&pe.push(this._hintLabelId),We&&pe.push(We.id)}else this._errorChildren&&pe.push(...this._errorChildren.map(Be=>Be.id));this._control.setDescribedByIds(pe)}}_validateControlChild(){}updateOutlineGap(){const pe=this._label?this._label.nativeElement:null,Be=this._connectionContainerRef.nativeElement,We=".mat-form-field-outline-start",tt=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!pe||!pe.children.length||!pe.textContent.trim()){const Et=Be.querySelectorAll(`${We}, ${tt}`);for(let Lt=0;Lt<Et.length;Lt++)Et[Lt].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let vt=0,Xt=0;const Nt=Be.querySelectorAll(We),Qe=Be.querySelectorAll(tt);if(this._label&&this._label.nativeElement.children.length){const Et=Be.getBoundingClientRect();if(0===Et.width&&0===Et.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Lt=this._getStartEnd(Et),wt=pe.children,Mt=this._getStartEnd(wt[0].getBoundingClientRect());let Ge=0;for(let ot=0;ot<wt.length;ot++)Ge+=wt[ot].offsetWidth;vt=Math.abs(Mt-Lt)-5,Xt=Ge>0?.75*Ge+10:0}for(let Et=0;Et<Nt.length;Et++)Nt[Et].style.width=`${vt}px`;for(let Et=0;Et<Qe.length;Et++)Qe[Et].style.width=`${Xt}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(pe){return this._dir&&"rtl"===this._dir.value?pe.right:pe.left}_isAttachedToDOM(){const pe=this._elementRef.nativeElement;if(pe.getRootNode){const Be=pe.getRootNode();return Be&&Be!==pe}return document.documentElement.contains(pe)}static#e=this.\u0275fac=function(Be){return new(Be||ce)(L.rXU(L.aKT),L.rXU(L.gRc),L.rXU(E.dS,8),L.rXU(xe,8),L.rXU(O.OD),L.rXU(L.SKi),L.rXU(L.bc$,8))};static#t=this.\u0275cmp=L.VBU({type:ce,selectors:[["mat-form-field"]],contentQueries:function(Be,We,tt){if(1&Be&&(L.wni(tt,o.qT,5),L.wni(tt,o.qT,7),L.wni(tt,G,5),L.wni(tt,G,7),L.wni(tt,W,5),L.wni(tt,o.EJ,5),L.wni(tt,we,5),L.wni(tt,o.KN,5),L.wni(tt,o.B1,5)),2&Be){let vt;L.mGM(vt=L.lsd())&&(We._controlNonStatic=vt.first),L.mGM(vt=L.lsd())&&(We._controlStatic=vt.first),L.mGM(vt=L.lsd())&&(We._labelChildNonStatic=vt.first),L.mGM(vt=L.lsd())&&(We._labelChildStatic=vt.first),L.mGM(vt=L.lsd())&&(We._placeholderChild=vt.first),L.mGM(vt=L.lsd())&&(We._errorChildren=vt),L.mGM(vt=L.lsd())&&(We._hintChildren=vt),L.mGM(vt=L.lsd())&&(We._prefixChildren=vt),L.mGM(vt=L.lsd())&&(We._suffixChildren=vt)}},viewQuery:function(Be,We){if(1&Be&&(L.GBs(w,7),L.GBs(f,5),L.GBs(k,5)),2&Be){let tt;L.mGM(tt=L.lsd())&&(We._connectionContainerRef=tt.first),L.mGM(tt=L.lsd())&&(We._inputContainerRef=tt.first),L.mGM(tt=L.lsd())&&(We._label=tt.first)}},hostAttrs:["ngSkipHydration","",1,"mat-form-field"],hostVars:40,hostBindings:function(Be,We){2&Be&&L.AVh("mat-form-field-appearance-standard","standard"==We.appearance)("mat-form-field-appearance-fill","fill"==We.appearance)("mat-form-field-appearance-outline","outline"==We.appearance)("mat-form-field-appearance-legacy","legacy"==We.appearance)("mat-form-field-invalid",We._control.errorState)("mat-form-field-can-float",We._canLabelFloat())("mat-form-field-should-float",We._shouldLabelFloat())("mat-form-field-has-label",We._hasFloatingLabel())("mat-form-field-hide-placeholder",We._hideControlPlaceholder())("mat-form-field-disabled",We._control.disabled)("mat-form-field-autofilled",We._control.autofilled)("mat-focused",We._control.focused)("ng-untouched",We._shouldForward("untouched"))("ng-touched",We._shouldForward("touched"))("ng-pristine",We._shouldForward("pristine"))("ng-dirty",We._shouldForward("dirty"))("ng-valid",We._shouldForward("valid"))("ng-invalid",We._shouldForward("invalid"))("ng-pending",We._shouldForward("pending"))("_mat-animation-noopable",!We._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[L.Jv_([{provide:o.xb,useExisting:ce}]),L.Vt3],ngContentSelectors:x,decls:15,vars:8,consts:[["connectionContainer",""],["inputContainer",""],["label",""],[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContent","cdkObserveContentDisabled"],[1,"mat-form-field-label",3,"cdkObserveContent","cdkObserveContentDisabled","id","ngSwitch"],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(Be,We){if(1&Be){const tt=L.RV6();L.NAR(I),L.j41(0,"div",3)(1,"div",4,0),L.bIt("click",function(Xt){return L.eBV(tt),L.Njj(We._control.onContainerClick(Xt))}),L.DNE(3,g,9,0,"ng-container",5)(4,C,2,1,"div",6),L.j41(5,"div",7,1),L.SdG(7),L.j41(8,"span",8),L.DNE(9,se,5,16,"label",9),L.k0s()(),L.DNE(10,ie,2,0,"div",10),L.k0s(),L.DNE(11,ee,2,4,"div",11),L.j41(12,"div",12),L.DNE(13,re,2,1,"div",13)(14,_e,5,2,"div",14),L.k0s()()}2&Be&&(L.R7$(3),L.Y8G("ngIf","outline"==We.appearance),L.R7$(),L.Y8G("ngIf",We._prefixChildren.length),L.R7$(5),L.Y8G("ngIf",We._hasFloatingLabel()),L.R7$(),L.Y8G("ngIf",We._suffixChildren.length),L.R7$(),L.Y8G("ngIf","outline"!=We.appearance),L.R7$(),L.Y8G("ngSwitch",We._getDisplayedMessages()),L.R7$(),L.Y8G("ngSwitchCase","error"),L.R7$(),L.Y8G("ngSwitchCase","hint"))},dependencies:[d.bT,d.ux,d.e1,r.Wv],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}.mat-form-field .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-button-base,.mat-form-field .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-form-field .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{font-size:1em;display:inline-block;margin:-2px 0 1px}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button{font-size:inherit;width:1.5em;height:1.5em;padding:0}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{line-height:1.5em;margin:0}.mat-form-field .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:baseline}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[o.EA.transitionMessages]},changeDetection:0})}return ce})(),he=(()=>{class ce{static#e=this.\u0275fac=function(Be){return new(Be||ce)};static#t=this.\u0275dir=L.FsC({type:ce,selectors:[["","matSuffix",""]],features:[L.Jv_([{provide:o.B1,useExisting:ce}])]})}return ce})(),Ie=(()=>{class ce{static#e=this.\u0275fac=function(Be){return new(Be||ce)};static#t=this.\u0275mod=L.$C({type:ce});static#i=this.\u0275inj=L.G2t({imports:[d.MD,j.yE,r.w5,j.yE]})}return ce})()},224:(ei,rt,D)=>{"use strict";D.d(rt,{aL:()=>R,mz:()=>m});var r=D(54438),d=D(59042),L=D(53719),j=D(44613),o=D(37403),E=D(86600);let R=(()=>{class _ extends d.fg{constructor(){super(...arguments),this._legacyFormField=(0,r.WQX)(L.xb,{optional:!0})}_getPlaceholder(){const h=this._legacyFormField;return h&&"legacy"===h.appearance&&!h._hasLabel?.()?null:this.placeholder}static#e=this.\u0275fac=(()=>{let h;return function(b){return(h||(h=r.xGo(_)))(b||_)}})();static#t=this.\u0275dir=r.FsC({type:_,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:15,hostBindings:function(s,b){2&s&&(r.BMQ("data-placeholder",b.placeholder),r.AVh("mat-input-server",b._isServer)("mat-mdc-input-element",!1)("mat-mdc-form-field-textarea-control",!1)("mat-mdc-form-field-input-control",!1)("mdc-text-field__input",!1)("mat-mdc-native-select-inline",!1)("mat-native-select-inline",b._isInlineSelect()))},exportAs:["matInput"],features:[r.Jv_([{provide:L.qT,useExisting:_}]),r.Vt3]})}return _})(),m=(()=>{class _{static#e=this.\u0275fac=function(s){return new(s||_)};static#t=this.\u0275mod=r.$C({type:_});static#i=this.\u0275inj=r.G2t({providers:[E.es],imports:[o.EE,j.C,E.yE,o.EE,j.C]})}return _})()},82153:(ei,rt,D)=>{"use strict";D.d(rt,{zB:()=>It,Wh:()=>bi,PM:()=>cn});var r=D(60177),d=D(54438),L=D(86600),j=D(14085),m=(D(36860),D(18359),D(57786),D(21413)),O=(D(72318),D(18617),D(45024),D(67336),D(89417),D(56977));const Be=new d.nKC("MatList"),Qe=new d.nKC("MatNavList");D(99172);let jt=(()=>{class gt{static#e=this.\u0275fac=function(mi){return new(mi||gt)};static#t=this.\u0275mod=d.$C({type:gt});static#i=this.\u0275inj=d.G2t({imports:[L.yE,L.yE]})}return gt})();const li=["*"],xi=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Je=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],wi=(0,L.Ob)((0,L.GG)(class{})),ui=(0,L.GG)(class{});let cn=(()=>{class gt extends wi{constructor(){super(...arguments),this._stateChanges=new m.B}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}static#e=this.\u0275fac=(()=>{let kt;return function(Kt){return(kt||(kt=d.xGo(gt)))(Kt||gt)}})();static#t=this.\u0275cmp=d.VBU({type:gt,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[d.Jv_([{provide:Qe,useExisting:gt}]),d.Vt3,d.OA$],ngContentSelectors:li,decls:1,vars:0,template:function(mi,Kt){1&mi&&(d.NAR(),d.SdG(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0})}return gt})(),Xi=(()=>{class gt{static#e=this.\u0275fac=function(mi){return new(mi||gt)};static#t=this.\u0275dir=d.FsC({type:gt,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]})}return gt})(),Qi=(()=>{class gt{static#e=this.\u0275fac=function(mi){return new(mi||gt)};static#t=this.\u0275dir=d.FsC({type:gt,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]})}return gt})(),It=(()=>{class gt extends ui{constructor(kt,mi,Kt,qi){super(),this._element=kt,this._isInteractiveList=!1,this._destroyed=new m.B,this._disabled=!1,this._isInteractiveList=!!(Kt||qi&&"action-list"===qi._getListType()),this._list=Kt||qi;const Wi=this._getHostElement();"button"===Wi.nodeName.toLowerCase()&&!Wi.hasAttribute("type")&&Wi.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,O.Q)(this._destroyed)).subscribe(()=>{mi.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(kt){this._disabled=(0,j.he)(kt)}ngAfterContentInit(){(0,L.IK)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}static#e=this.\u0275fac=function(mi){return new(mi||gt)(d.rXU(d.aKT),d.rXU(d.gRc),d.rXU(Qe,8),d.rXU(Be,8))};static#t=this.\u0275cmp=d.VBU({type:gt,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(mi,Kt,qi){if(1&mi&&(d.wni(qi,Xi,5),d.wni(qi,Qi,5),d.wni(qi,L.vu,5)),2&mi){let Wi;d.mGM(Wi=d.lsd())&&(Kt._avatar=Wi.first),d.mGM(Wi=d.lsd())&&(Kt._icon=Wi.first),d.mGM(Wi=d.lsd())&&(Kt._lines=Wi)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(mi,Kt){2&mi&&d.AVh("mat-list-item-disabled",Kt.disabled)("mat-list-item-with-avatar",Kt._avatar||Kt._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[d.Vt3],ngContentSelectors:Je,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(mi,Kt){1&mi&&(d.NAR(xi),d.j41(0,"span",0),d.nrm(1,"span",1),d.SdG(2),d.j41(3,"span",2),d.SdG(4,1),d.k0s(),d.SdG(5,2),d.k0s()),2&mi&&(d.R7$(),d.Y8G("matRippleTrigger",Kt._getHostElement())("matRippleDisabled",Kt._isRippleDisabled()))},dependencies:[L.r6],encapsulation:2,changeDetection:0})}return gt})(),bi=(()=>{class gt{static#e=this.\u0275fac=function(mi){return new(mi||gt)};static#t=this.\u0275mod=d.$C({type:gt});static#i=this.\u0275inj=d.G2t({imports:[L.Np,L.pZ,L.yE,L.O5,r.MD,L.Np,L.yE,L.O5,jt]})}return gt})()},1776:(ei,rt,D)=>{"use strict";D.d(rt,{wS:()=>Q,A8:()=>se});var r=D(14085),d=D(36860),L=D(23980),j=D(60177),o=D(54438),E=D(86600);const v=new o.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function h(){return{diameter:s}}}),s=100;var k=D(18359);function I(ee,re){if(1&ee&&(o.qSk(),o.nrm(0,"circle",4)),2&ee){const ne=o.XpG(),_e=o.sdS(1);o.xc7("animation-name","mat-progress-spinner-stroke-rotate-"+ne._spinnerAnimationLabel)("stroke-dashoffset",ne._getStrokeDashOffset(),"px")("stroke-dasharray",ne._getStrokeCircumference(),"px")("stroke-width",ne._getCircleStrokeWidth(),"%")("transform-origin",ne._getCircleTransformOrigin(_e)),o.BMQ("r",ne._getCircleRadius())}}function x(ee,re){if(1&ee&&(o.qSk(),o.nrm(0,"circle",4)),2&ee){const ne=o.XpG(),_e=o.sdS(1);o.xc7("stroke-dashoffset",ne._getStrokeDashOffset(),"px")("stroke-dasharray",ne._getStrokeCircumference(),"px")("stroke-width",ne._getCircleStrokeWidth(),"%")("transform-origin",ne._getCircleTransformOrigin(_e)),o.BMQ("r",ne._getCircleRadius())}}const F=(0,E.Zc)(class{constructor(ee){this._elementRef=ee}},"primary");class Q extends F{static#e=this._diameters=new WeakMap;get diameter(){return this._diameter}set diameter(re){this._diameter=(0,r.OE)(re),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(re){this._strokeWidth=(0,r.OE)(re)}get value(){return"determinate"===this.mode?this._value:0}set value(re){this._value=Math.max(0,Math.min(100,(0,r.OE)(re)))}constructor(re,ne,_e,be,oe,me,we,N,G){super(re),this._document=_e,this._nonce=G,this._diameter=100,this._value=0,this._resizeSubscription=k.yU.EMPTY,this.mode="determinate";const W=Q._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),W.has(_e.head)||W.set(_e.head,new Set([100])),this._noopAnimations="NoopAnimations"===be&&!!oe&&!oe._forceAnimations,"mat-spinner"===re.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),oe&&(oe.color&&(this.color=this.defaultColor=oe.color),oe.diameter&&(this.diameter=oe.diameter),oe.strokeWidth&&(this.strokeWidth=oe.strokeWidth)),ne.isBrowser&&ne.SAFARI&&we&&me&&N&&(this._resizeSubscription=we.change(150).subscribe(()=>{"indeterminate"===this.mode&&N.run(()=>me.markForCheck())}))}ngOnInit(){const re=this._elementRef.nativeElement;this._styleRoot=(0,d.KT)(re)||this._document.head,this._attachStyleNode(),re.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const re=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${re} ${re}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(re){const ne=50*(re.currentScale??1);return`${ne}% ${ne}%`}_attachStyleNode(){const re=this._styleRoot,ne=this._diameter,_e=Q._diameters;let be=_e.get(re);if(!be||!be.has(ne)){const oe=this._document.createElement("style");this._nonce&&(oe.nonce=this._nonce),oe.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),oe.textContent=this._getAnimationText(),re.appendChild(oe),be||(be=new Set,_e.set(re,be)),be.add(ne)}}_getAnimationText(){const re=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*re).replace(/END_VALUE/g,""+.2*re).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}static#t=this.\u0275fac=function(ne){return new(ne||Q)(o.rXU(o.aKT),o.rXU(d.OD),o.rXU(j.qQ,8),o.rXU(o.bc$,8),o.rXU(v),o.rXU(o.gRc),o.rXU(L.Xj),o.rXU(o.SKi),o.rXU(o.BIS,8))};static#i=this.\u0275cmp=o.VBU({type:Q,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(ne,_e){2&ne&&(o.BMQ("aria-valuemin","determinate"===_e.mode?0:null)("aria-valuemax","determinate"===_e.mode?100:null)("aria-valuenow","determinate"===_e.mode?_e.value:null)("mode",_e.mode),o.xc7("width",_e.diameter,"px")("height",_e.diameter,"px"),o.AVh("_mat-animation-noopable",_e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[o.Vt3],decls:4,vars:8,consts:[["svg",""],["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(ne,_e){1&ne&&(o.qSk(),o.j41(0,"svg",1,0),o.DNE(2,I,1,11,"circle",2)(3,x,1,9,"circle",3),o.k0s()),2&ne&&(o.xc7("width",_e.diameter,"px")("height",_e.diameter,"px"),o.Y8G("ngSwitch","indeterminate"===_e.mode),o.BMQ("viewBox",_e._getViewBox()),o.R7$(2),o.Y8G("ngSwitchCase",!0),o.R7$(),o.Y8G("ngSwitchCase",!1))},dependencies:[j.ux,j.e1],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0})}let se=(()=>{class ee{static#e=this.\u0275fac=function(_e){return new(_e||ee)};static#t=this.\u0275mod=o.$C({type:ee});static#i=this.\u0275inj=o.G2t({imports:[E.yE,j.MD,E.yE]})}return ee})()},5194:(ei,rt,D)=>{"use strict";D.d(rt,{$D:()=>O,nf:()=>w});var r=D(47987),d=D(76939),L=D(60177),j=D(54438),o=D(86600),E=D(85956),R=D(95416),m=D(18617),_=D(99327);function v(f,k){if(1&f){const I=j.RV6();j.j41(0,"div",2)(1,"button",3),j.bIt("click",function(){j.eBV(I);const g=j.XpG();return j.Njj(g.action())}),j.EFF(2),j.k0s()()}if(2&f){const I=j.XpG();j.R7$(2),j.JRh(I.data.action)}}function h(f,k){}let s=(()=>{class f{constructor(I,x){this.snackBarRef=I,this.data=x}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(x){return new(x||f)(j.rXU(R.TQ),j.rXU(R.ht))};static#t=this.\u0275cmp=j.VBU({type:f,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(x,g){1&x&&(j.j41(0,"span",0),j.EFF(1),j.k0s(),j.DNE(2,v,3,1,"div",1)),2&x&&(j.R7$(),j.JRh(g.data.message),j.R7$(),j.Y8G("ngIf",g.hasAction))},dependencies:[L.bT,E.iV],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0})}return f})(),b=(()=>{class f extends R.ZR{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}static#e=this.\u0275fac=(()=>{let I;return function(g){return(I||(I=j.xGo(f)))(g||f)}})();static#t=this.\u0275cmp=j.VBU({type:f,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(x,g){1&x&&j.Kam("@state.done",function(F){return g.onAnimationEnd(F)}),2&x&&j.zvX("@state",g._animationState)},features:[j.Vt3],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(x,g){1&x&&(j.j41(0,"div",0),j.DNE(1,h,0,0,"ng-template",1),j.k0s(),j.nrm(2,"div")),2&x&&(j.R7$(2),j.BMQ("aria-live",g._live)("role",g._role)("id",g._liveElementId))},dependencies:[d.I3],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[R.LT.snackBarState]}})}return f})(),O=(()=>{class f{static#e=this.\u0275fac=function(x){return new(x||f)};static#t=this.\u0275mod=j.$C({type:f});static#i=this.\u0275inj=j.G2t({imports:[r.z_,d.jc,L.MD,E.wG,o.yE,o.yE]})}return f})(),w=(()=>{class f extends R.Gr{constructor(I,x,g,C,F,Y){super(I,x,g,C,F,Y),this.simpleSnackBarComponent=s,this.snackBarContainerComponent=b,this.handsetCssClass="mat-snack-bar-handset"}static#e=this.\u0275fac=function(x){return new(x||f)(j.KVO(r.hJ),j.KVO(m.Ai),j.KVO(j.zZn),j.KVO(_.QP),j.KVO(f,12),j.KVO(R.x6))};static#t=this.\u0275prov=j.jDH({token:f,factory:f.\u0275fac,providedIn:O})}return f})()},90882:(ei,rt,D)=>{"use strict";D.d(rt,{El:()=>ye,LG:()=>xe,US:()=>ge,vg:()=>Ee});var r=D(23980),d=D(60177),L=D(54438),j=D(86600),o=D(18617),E=D(28203),R=D(14085),m=D(67336),_=D(36860),v=D(21413),h=D(33726),s=D(57786),b=D(5964),O=D(96354),w=D(73703),f=D(56977),k=D(23294),I=D(96697),x=D(99172),g=D(70152),C=D(49969);const F=["*"],Y=["content"],Q=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],se=["mat-drawer","mat-drawer-content","*"];function ie(he,Ie){if(1&he){const ce=L.RV6();L.j41(0,"div",2),L.bIt("click",function(){L.eBV(ce);const pe=L.XpG();return L.Njj(pe._onBackdropClicked())}),L.k0s()}if(2&he){const ce=L.XpG();L.AVh("mat-drawer-shown",ce._isShowingBackdrop())}}function ee(he,Ie){1&he&&(L.j41(0,"mat-drawer-content"),L.SdG(1,2),L.k0s())}const re=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ne=["mat-sidenav","mat-sidenav-content","*"];function _e(he,Ie){if(1&he){const ce=L.RV6();L.j41(0,"div",2),L.bIt("click",function(){L.eBV(ce);const pe=L.XpG();return L.Njj(pe._onBackdropClicked())}),L.k0s()}if(2&he){const ce=L.XpG();L.AVh("mat-drawer-shown",ce._isShowingBackdrop())}}function be(he,Ie){1&he&&(L.j41(0,"mat-sidenav-content"),L.SdG(1,2),L.k0s())}const me={transformDrawer:(0,C.hZ)("transform",[(0,C.wk)("open, open-instant",(0,C.iF)({transform:"none",visibility:"visible"})),(0,C.wk)("void",(0,C.iF)({"box-shadow":"none",visibility:"hidden"})),(0,C.kY)("void => open-instant",(0,C.i0)("0ms")),(0,C.kY)("void <=> open, open-instant => void",(0,C.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},N=new L.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function W(){return!1}}),G=new L.nKC("MAT_DRAWER_CONTAINER");let z=(()=>{class he extends r.uv{constructor(ce,de,pe,Be,We){super(pe,Be,We),this._changeDetectorRef=ce,this._container=de}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(de){return new(de||he)(L.rXU(L.gRc),L.rXU((0,L.Rfq)(()=>q)),L.rXU(L.aKT),L.rXU(r.R),L.rXU(L.SKi))};static#t=this.\u0275cmp=L.VBU({type:he,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(de,pe){2&de&&L.xc7("margin-left",pe._container._contentMargins.left,"px")("margin-right",pe._container._contentMargins.right,"px")},features:[L.Jv_([{provide:r.uv,useExisting:he}]),L.Vt3],ngContentSelectors:F,decls:1,vars:0,template:function(de,pe){1&de&&(L.NAR(),L.SdG(0))},encapsulation:2,changeDetection:0})}return he})(),X=(()=>{class he{get position(){return this._position}set position(ce){(ce="end"===ce?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(ce),this._position=ce,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(ce){this._mode=ce,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(ce){this._disableClose=(0,R.he)(ce)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(ce){("true"===ce||"false"===ce||null==ce)&&(ce=(0,R.he)(ce)),this._autoFocus=ce}get opened(){return this._opened}set opened(ce){this.toggle((0,R.he)(ce))}constructor(ce,de,pe,Be,We,tt,vt,Xt){this._elementRef=ce,this._focusTrapFactory=de,this._focusMonitor=pe,this._platform=Be,this._ngZone=We,this._interactivityChecker=tt,this._doc=vt,this._container=Xt,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new v.B,this._animationEnd=new v.B,this._animationState="void",this.openedChange=new L.bkB(!0),this._openedStream=this.openedChange.pipe((0,b.p)(Nt=>Nt),(0,O.T)(()=>{})),this.openedStart=this._animationStarted.pipe((0,b.p)(Nt=>Nt.fromState!==Nt.toState&&0===Nt.toState.indexOf("open")),(0,w.u)(void 0)),this._closedStream=this.openedChange.pipe((0,b.p)(Nt=>!Nt),(0,O.T)(()=>{})),this.closedStart=this._animationStarted.pipe((0,b.p)(Nt=>Nt.fromState!==Nt.toState&&"void"===Nt.toState),(0,w.u)(void 0)),this._destroyed=new v.B,this.onPositionChanged=new L.bkB,this._modeChanged=new v.B,this.openedChange.subscribe(Nt=>{Nt?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,h.R)(this._elementRef.nativeElement,"keydown").pipe((0,b.p)(Nt=>Nt.keyCode===m._f&&!this.disableClose&&!(0,m.rp)(Nt)),(0,f.Q)(this._destroyed)).subscribe(Nt=>this._ngZone.run(()=>{this.close(),Nt.stopPropagation(),Nt.preventDefault()}))}),this._animationEnd.pipe((0,k.F)((Nt,Qe)=>Nt.fromState===Qe.fromState&&Nt.toState===Qe.toState)).subscribe(Nt=>{const{fromState:Qe,toState:Et}=Nt;(0===Et.indexOf("open")&&"void"===Qe||"void"===Et&&0===Qe.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(ce,de){this._interactivityChecker.isFocusable(ce)||(ce.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const pe=()=>{ce.removeEventListener("blur",pe),ce.removeEventListener("mousedown",pe),ce.removeAttribute("tabindex")};ce.addEventListener("blur",pe),ce.addEventListener("mousedown",pe)})),ce.focus(de)}_focusByCssSelector(ce,de){let pe=this._elementRef.nativeElement.querySelector(ce);pe&&this._forceFocus(pe,de)}_takeFocus(){if(!this._focusTrap)return;const ce=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(de=>{!de&&"function"==typeof this._elementRef.nativeElement.focus&&ce.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(ce){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,ce):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const ce=this._doc.activeElement;return!!ce&&this._elementRef.nativeElement.contains(ce)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(ce){return this.toggle(!0,ce)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(ce=!this.opened,de){ce&&de&&(this._openedVia=de);const pe=this._setOpen(ce,!ce&&this._isFocusWithinDrawer(),this._openedVia||"program");return ce||(this._openedVia=null),pe}_setOpen(ce,de,pe){return this._opened=ce,ce?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",de&&this._restoreFocus(pe)),this._updateFocusTrapState(),new Promise(Be=>{this.openedChange.pipe((0,I.s)(1)).subscribe(We=>Be(We?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(ce){const de=this._elementRef.nativeElement,pe=de.parentNode;"end"===ce?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),pe.insertBefore(this._anchor,de)),pe.appendChild(de)):this._anchor&&this._anchor.parentNode.insertBefore(de,this._anchor)}static#e=this.\u0275fac=function(de){return new(de||he)(L.rXU(L.aKT),L.rXU(o.GX),L.rXU(o.FN),L.rXU(_.OD),L.rXU(L.SKi),L.rXU(o.Z7),L.rXU(d.qQ,8),L.rXU(G,8))};static#t=this.\u0275cmp=L.VBU({type:he,selectors:[["mat-drawer"]],viewQuery:function(de,pe){if(1&de&&L.GBs(Y,5),2&de){let Be;L.mGM(Be=L.lsd())&&(pe._content=Be.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(de,pe){1&de&&L.Kam("@transform.start",function(We){return pe._animationStarted.next(We)})("@transform.done",function(We){return pe._animationEnd.next(We)}),2&de&&(L.zvX("@transform",pe._animationState),L.BMQ("align",null),L.AVh("mat-drawer-end","end"===pe.position)("mat-drawer-over","over"===pe.mode)("mat-drawer-push","push"===pe.mode)("mat-drawer-side","side"===pe.mode)("mat-drawer-opened",pe.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:F,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(de,pe){1&de&&(L.NAR(),L.j41(0,"div",1,0),L.SdG(2),L.k0s())},dependencies:[r.uv],encapsulation:2,data:{animation:[me.transformDrawer]},changeDetection:0})}return he})(),q=(()=>{class he{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(ce){this._autosize=(0,R.he)(ce)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(ce){this._backdropOverride=null==ce?null:(0,R.he)(ce)}get scrollable(){return this._userContent||this._content}constructor(ce,de,pe,Be,We,tt=!1,vt){this._dir=ce,this._element=de,this._ngZone=pe,this._changeDetectorRef=Be,this._animationMode=vt,this._drawers=new L.rOR,this.backdropClick=new L.bkB,this._destroyed=new v.B,this._doCheckSubject=new v.B,this._contentMargins={left:null,right:null},this._contentMarginChanges=new v.B,ce&&ce.change.pipe((0,f.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),We.change().pipe((0,f.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=tt}ngAfterContentInit(){this._allDrawers.changes.pipe((0,x.Z)(this._allDrawers),(0,f.Q)(this._destroyed)).subscribe(ce=>{this._drawers.reset(ce.filter(de=>!de._container||de._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,x.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(ce=>{this._watchDrawerToggle(ce),this._watchDrawerPosition(ce),this._watchDrawerMode(ce)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,g.B)(10),(0,f.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(ce=>ce.open())}close(){this._drawers.forEach(ce=>ce.close())}updateContentMargins(){let ce=0,de=0;if(this._left&&this._left.opened)if("side"==this._left.mode)ce+=this._left._getWidth();else if("push"==this._left.mode){const pe=this._left._getWidth();ce+=pe,de-=pe}if(this._right&&this._right.opened)if("side"==this._right.mode)de+=this._right._getWidth();else if("push"==this._right.mode){const pe=this._right._getWidth();de+=pe,ce-=pe}ce=ce||null,de=de||null,(ce!==this._contentMargins.left||de!==this._contentMargins.right)&&(this._contentMargins={left:ce,right:de},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(ce){ce._animationStarted.pipe((0,b.p)(de=>de.fromState!==de.toState),(0,f.Q)(this._drawers.changes)).subscribe(de=>{"open-instant"!==de.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==ce.mode&&ce.openedChange.pipe((0,f.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(ce.opened))}_watchDrawerPosition(ce){ce&&ce.onPositionChanged.pipe((0,f.Q)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,I.s)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(ce){ce&&ce._modeChanged.pipe((0,f.Q)((0,s.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(ce){const de=this._element.nativeElement.classList,pe="mat-drawer-container-has-open";ce?de.add(pe):de.remove(pe)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(ce=>{"end"==ce.position?this._end=ce:this._start=ce}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(ce=>ce&&!ce.disableClose&&this._drawerHasBackdrop(ce)).forEach(ce=>ce._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(ce){return null!=ce&&ce.opened}_drawerHasBackdrop(ce){return null==this._backdropOverride?!!ce&&"side"!==ce.mode:this._backdropOverride}static#e=this.\u0275fac=function(de){return new(de||he)(L.rXU(E.dS,8),L.rXU(L.aKT),L.rXU(L.SKi),L.rXU(L.gRc),L.rXU(r.Xj),L.rXU(N),L.rXU(L.bc$,8))};static#t=this.\u0275cmp=L.VBU({type:he,selectors:[["mat-drawer-container"]],contentQueries:function(de,pe,Be){if(1&de&&(L.wni(Be,z,5),L.wni(Be,X,5)),2&de){let We;L.mGM(We=L.lsd())&&(pe._content=We.first),L.mGM(We=L.lsd())&&(pe._allDrawers=We)}},viewQuery:function(de,pe){if(1&de&&L.GBs(z,5),2&de){let Be;L.mGM(Be=L.lsd())&&(pe._userContent=Be.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(de,pe){2&de&&L.AVh("mat-drawer-container-explicit-backdrop",pe._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[L.Jv_([{provide:G,useExisting:he}])],ngContentSelectors:se,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(de,pe){1&de&&(L.NAR(Q),L.DNE(0,ie,1,2,"div",0),L.SdG(1),L.SdG(2,1),L.DNE(3,ee,2,0,"mat-drawer-content",1)),2&de&&(L.Y8G("ngIf",pe.hasBackdrop),L.R7$(3),L.Y8G("ngIf",!pe._content))},dependencies:[d.bT,z],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return he})(),ye=(()=>{class he extends z{constructor(ce,de,pe,Be,We){super(ce,de,pe,Be,We)}static#e=this.\u0275fac=function(de){return new(de||he)(L.rXU(L.gRc),L.rXU((0,L.Rfq)(()=>ge)),L.rXU(L.aKT),L.rXU(r.R),L.rXU(L.SKi))};static#t=this.\u0275cmp=L.VBU({type:he,selectors:[["mat-sidenav-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(de,pe){2&de&&L.xc7("margin-left",pe._container._contentMargins.left,"px")("margin-right",pe._container._contentMargins.right,"px")},features:[L.Jv_([{provide:r.uv,useExisting:he}]),L.Vt3],ngContentSelectors:F,decls:1,vars:0,template:function(de,pe){1&de&&(L.NAR(),L.SdG(0))},encapsulation:2,changeDetection:0})}return he})(),xe=(()=>{class he extends X{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(ce){this._fixedInViewport=(0,R.he)(ce)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(ce){this._fixedTopGap=(0,R.OE)(ce)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(ce){this._fixedBottomGap=(0,R.OE)(ce)}static#e=this.\u0275fac=(()=>{let ce;return function(pe){return(ce||(ce=L.xGo(he)))(pe||he)}})();static#t=this.\u0275cmp=L.VBU({type:he,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(de,pe){2&de&&(L.BMQ("align",null),L.xc7("top",pe.fixedInViewport?pe.fixedTopGap:null,"px")("bottom",pe.fixedInViewport?pe.fixedBottomGap:null,"px"),L.AVh("mat-drawer-end","end"===pe.position)("mat-drawer-over","over"===pe.mode)("mat-drawer-push","push"===pe.mode)("mat-drawer-side","side"===pe.mode)("mat-drawer-opened",pe.opened)("mat-sidenav-fixed",pe.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[L.Vt3],ngContentSelectors:F,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(de,pe){1&de&&(L.NAR(),L.j41(0,"div",1,0),L.SdG(2),L.k0s())},dependencies:[r.uv],encapsulation:2,data:{animation:[me.transformDrawer]},changeDetection:0})}return he})(),ge=(()=>{class he extends q{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static#e=this.\u0275fac=(()=>{let ce;return function(pe){return(ce||(ce=L.xGo(he)))(pe||he)}})();static#t=this.\u0275cmp=L.VBU({type:he,selectors:[["mat-sidenav-container"]],contentQueries:function(de,pe,Be){if(1&de&&(L.wni(Be,ye,5),L.wni(Be,xe,5)),2&de){let We;L.mGM(We=L.lsd())&&(pe._content=We.first),L.mGM(We=L.lsd())&&(pe._allDrawers=We)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(de,pe){2&de&&L.AVh("mat-drawer-container-explicit-backdrop",pe._backdropOverride)},exportAs:["matSidenavContainer"],features:[L.Jv_([{provide:G,useExisting:he}]),L.Vt3],ngContentSelectors:ne,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(de,pe){1&de&&(L.NAR(re),L.DNE(0,_e,1,2,"div",0),L.SdG(1),L.SdG(2,1),L.DNE(3,be,2,0,"mat-sidenav-content",1)),2&de&&(L.Y8G("ngIf",pe.hasBackdrop),L.R7$(3),L.Y8G("ngIf",!pe._content))},dependencies:[d.bT,ye],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return he})(),Ee=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=L.$C({type:he});static#i=this.\u0275inj=L.G2t({imports:[d.MD,j.yE,r.Gj,r.Gj,j.yE]})}return he})()},95416:(ei,rt,D)=>{"use strict";D.d(rt,{Gr:()=>_e,LT:()=>Y,TQ:()=>f,ZR:()=>se,ht:()=>k,um:()=>I,x6:()=>ne});var r=D(54438),d=D(21413),L=D(60177),j=D(49969),o=D(76939),E=D(36860),R=D(96697),m=D(56977),_=D(18617),v=D(99327),h=D(47987);const w=Math.pow(2,31)-1;class f{constructor(me,we){this._overlayRef=we,this._afterDismissed=new d.B,this._afterOpened=new d.B,this._onAction=new d.B,this._dismissedByAction=!1,this.containerInstance=me,me._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(me){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(me,w))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const k=new r.nKC("MatSnackBarData");class I{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Y={snackBarState:(0,j.hZ)("state",[(0,j.wk)("void, hidden",(0,j.iF)({transform:"scale(0.8)",opacity:0})),(0,j.wk)("visible",(0,j.iF)({transform:"scale(1)",opacity:1})),(0,j.kY)("* => visible",(0,j.i0)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,j.kY)("* => void, * => hidden",(0,j.i0)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,j.iF)({opacity:0})))])};let Q=0,se=(()=>{class oe extends o.lb{constructor(we,N,G,W,z){super(),this._ngZone=we,this._elementRef=N,this._changeDetectorRef=G,this._platform=W,this.snackBarConfig=z,this._document=(0,r.WQX)(L.qQ),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new d.B,this._onExit=new d.B,this._onEnter=new d.B,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+Q++,this.attachDomPortal=X=>{this._assertNotAttached();const q=this._portalOutlet.attachDomPortal(X);return this._afterPortalAttached(),q},this._live="assertive"!==z.politeness||z.announcementMessage?"off"===z.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(we){this._assertNotAttached();const N=this._portalOutlet.attachComponentPortal(we);return this._afterPortalAttached(),N}attachTemplatePortal(we){this._assertNotAttached();const N=this._portalOutlet.attachTemplatePortal(we);return this._afterPortalAttached(),N}onAnimationEnd(we){const{fromState:N,toState:G}=we;if(("void"===G&&"void"!==N||"hidden"===G)&&this._completeExit(),"visible"===G){const W=this._onEnter;this._ngZone.run(()=>{W.next(),W.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,R.s)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const we=this._elementRef.nativeElement,N=this.snackBarConfig.panelClass;N&&(Array.isArray(N)?N.forEach(G=>we.classList.add(G)):we.classList.add(N)),this._exposeToModals()}_exposeToModals(){const we=this._liveElementId,N=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let G=0;G<N.length;G++){const W=N[G],z=W.getAttribute("aria-owns");this._trackedModals.add(W),z?-1===z.indexOf(we)&&W.setAttribute("aria-owns",z+" "+we):W.setAttribute("aria-owns",we)}}_clearFromModals(){this._trackedModals.forEach(we=>{const N=we.getAttribute("aria-owns");if(N){const G=N.replace(this._liveElementId,"").trim();G.length>0?we.setAttribute("aria-owns",G):we.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const we=this._elementRef.nativeElement.querySelector("[aria-hidden]"),N=this._elementRef.nativeElement.querySelector("[aria-live]");if(we&&N){let G=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&we.contains(document.activeElement)&&(G=document.activeElement),we.removeAttribute("aria-hidden"),N.appendChild(we),G?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(N){return new(N||oe)(r.rXU(r.SKi),r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(E.OD),r.rXU(I))};static#t=this.\u0275dir=r.FsC({type:oe,viewQuery:function(N,G){if(1&N&&r.GBs(o.I3,7),2&N){let W;r.mGM(W=r.lsd())&&(G._portalOutlet=W.first)}},features:[r.Vt3]})}return oe})();const ne=new r.nKC("mat-snack-bar-default-options",{providedIn:"root",factory:function re(){return new I}});let _e=(()=>{class oe{get _openedSnackBarRef(){const we=this._parentSnackBar;return we?we._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(we){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=we:this._snackBarRefAtThisLevel=we}constructor(we,N,G,W,z,X){this._overlay=we,this._live=N,this._injector=G,this._breakpointObserver=W,this._parentSnackBar=z,this._defaultConfig=X,this._snackBarRefAtThisLevel=null}openFromComponent(we,N){return this._attach(we,N)}openFromTemplate(we,N){return this._attach(we,N)}open(we,N="",G){const W={...this._defaultConfig,...G};return W.data={message:we,action:N},W.announcementMessage===we&&(W.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,W)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(we,N){const W=r.zZn.create({parent:N&&N.viewContainerRef&&N.viewContainerRef.injector||this._injector,providers:[{provide:I,useValue:N}]}),z=new o.A8(this.snackBarContainerComponent,N.viewContainerRef,W),X=we.attach(z);return X.instance.snackBarConfig=N,X.instance}_attach(we,N){const G={...new I,...this._defaultConfig,...N},W=this._createOverlay(G),z=this._attachSnackBarContainer(W,G),X=new f(z,W);if(we instanceof r.C4Q){const q=new o.VA(we,null,{$implicit:G.data,snackBarRef:X});X.instance=z.attachTemplatePortal(q)}else{const q=this._createInjector(G,X),ye=new o.A8(we,void 0,q),xe=z.attachComponentPortal(ye);X.instance=xe.instance}return this._breakpointObserver.observe(v.Rp.HandsetPortrait).pipe((0,m.Q)(W.detachments())).subscribe(q=>{W.overlayElement.classList.toggle(this.handsetCssClass,q.matches)}),G.announcementMessage&&z._onAnnounce.subscribe(()=>{this._live.announce(G.announcementMessage,G.politeness)}),this._animateSnackBar(X,G),this._openedSnackBarRef=X,this._openedSnackBarRef}_animateSnackBar(we,N){we.afterDismissed().subscribe(()=>{this._openedSnackBarRef==we&&(this._openedSnackBarRef=null),N.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{we.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):we.containerInstance.enter(),N.duration&&N.duration>0&&we.afterOpened().subscribe(()=>we._dismissAfter(N.duration))}_createOverlay(we){const N=new h.rR;N.direction=we.direction;let G=this._overlay.position().global();const W="rtl"===we.direction,z="left"===we.horizontalPosition||"start"===we.horizontalPosition&&!W||"end"===we.horizontalPosition&&W,X=!z&&"center"!==we.horizontalPosition;return z?G.left("0"):X?G.right("0"):G.centerHorizontally(),"top"===we.verticalPosition?G.top("0"):G.bottom("0"),N.positionStrategy=G,this._overlay.create(N)}_createInjector(we,N){return r.zZn.create({parent:we&&we.viewContainerRef&&we.viewContainerRef.injector||this._injector,providers:[{provide:f,useValue:N},{provide:k,useValue:we.data}]})}static#e=this.\u0275fac=function(N){return new(N||oe)(r.KVO(h.hJ),r.KVO(_.Ai),r.KVO(r.zZn),r.KVO(v.QP),r.KVO(oe,12),r.KVO(ne))};static#t=this.\u0275prov=r.jDH({token:oe,factory:oe.\u0275fac})}return oe})()},55911:(ei,rt,D)=>{"use strict";D.d(rt,{KQ:()=>_,s5:()=>h});var r=D(54438),d=D(86600),L=D(36860),j=D(60177);const o=["*",[["mat-toolbar-row"]]],E=["*","mat-toolbar-row"],R=(0,d.Zc)(class{constructor(s){this._elementRef=s}});let m=(()=>{class s{static#e=this.\u0275fac=function(w){return new(w||s)};static#t=this.\u0275dir=r.FsC({type:s,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return s})(),_=(()=>{class s extends R{constructor(O,w,f){super(O),this._platform=w,this._document=f}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(w){return new(w||s)(r.rXU(r.aKT),r.rXU(L.OD),r.rXU(j.qQ))};static#t=this.\u0275cmp=r.VBU({type:s,selectors:[["mat-toolbar"]],contentQueries:function(w,f,k){if(1&w&&r.wni(k,m,5),2&w){let I;r.mGM(I=r.lsd())&&(f._toolbarRows=I)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(w,f){2&w&&r.AVh("mat-toolbar-multiple-rows",f._toolbarRows.length>0)("mat-toolbar-single-row",0===f._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[r.Vt3],ngContentSelectors:E,decls:2,vars:0,template:function(w,f){1&w&&(r.NAR(o),r.SdG(0),r.SdG(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return s})(),h=(()=>{class s{static#e=this.\u0275fac=function(w){return new(w||s)};static#t=this.\u0275mod=r.$C({type:s});static#i=this.\u0275inj=r.G2t({imports:[d.yE,d.yE]})}return s})()},345:(ei,rt,D)=>{"use strict";D.d(rt,{B7:()=>se,Bb:()=>Be,hE:()=>vt,pJ:()=>Qi,sG:()=>Ie,up:()=>Je,zw:()=>Xi});var r=D(54438),d=D(60177);class L extends d.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class j extends L{static makeCurrent(){(0,d.ZD)(new j)}onAndCancel(It,yt,pt){return It.addEventListener(yt,pt),()=>{It.removeEventListener(yt,pt)}}dispatchEvent(It,yt){It.dispatchEvent(yt)}remove(It){It.parentNode&&It.parentNode.removeChild(It)}createElement(It,yt){return(yt=yt||this.getDefaultDocument()).createElement(It)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(It){return It.nodeType===Node.ELEMENT_NODE}isShadowRoot(It){return It instanceof DocumentFragment}getGlobalEventTarget(It,yt){return"window"===yt?window:"document"===yt?It:"body"===yt?It.body:null}getBaseHref(It){const yt=function E(){return o=o||document.querySelector("base"),o?o.getAttribute("href"):null}();return null==yt?null:function R(Ut){return new URL(Ut,document.baseURI).pathname}(yt)}resetBaseElement(){o=null}getUserAgent(){return window.navigator.userAgent}getCookie(It){return(0,d._b)(document.cookie,It)}}let o=null,_=(()=>{class Ut{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(pt){return new(pt||Ut)};static#t=this.\u0275prov=r.jDH({token:Ut,factory:Ut.\u0275fac})}return Ut})();const v=new r.nKC("");let h=(()=>{class Ut{constructor(yt,pt){this._zone=pt,this._eventNameToPlugin=new Map,yt.forEach(st=>{st.manager=this}),this._plugins=yt.slice().reverse()}addEventListener(yt,pt,st){return this._findPluginFor(pt).addEventListener(yt,pt,st)}getZone(){return this._zone}_findPluginFor(yt){let pt=this._eventNameToPlugin.get(yt);if(pt)return pt;if(pt=this._plugins.find(Wt=>Wt.supports(yt)),!pt)throw new r.wOt(5101,!1);return this._eventNameToPlugin.set(yt,pt),pt}static#e=this.\u0275fac=function(pt){return new(pt||Ut)(r.KVO(v),r.KVO(r.SKi))};static#t=this.\u0275prov=r.jDH({token:Ut,factory:Ut.\u0275fac})}return Ut})();class s{constructor(It){this._doc=It}}const b="ng-app-id";let O=(()=>{class Ut{constructor(yt,pt,st,Wt={}){this.doc=yt,this.appId=pt,this.nonce=st,this.platformId=Wt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,d.Vy)(Wt),this.resetHostNodes()}addStyles(yt){for(const pt of yt)1===this.changeUsageCount(pt,1)&&this.onStyleAdded(pt)}removeStyles(yt){for(const pt of yt)this.changeUsageCount(pt,-1)<=0&&this.onStyleRemoved(pt)}ngOnDestroy(){const yt=this.styleNodesInDOM;yt&&(yt.forEach(pt=>pt.remove()),yt.clear());for(const pt of this.getAllStyles())this.onStyleRemoved(pt);this.resetHostNodes()}addHost(yt){this.hostNodes.add(yt);for(const pt of this.getAllStyles())this.addStyleToHost(yt,pt)}removeHost(yt){this.hostNodes.delete(yt)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(yt){for(const pt of this.hostNodes)this.addStyleToHost(pt,yt)}onStyleRemoved(yt){const pt=this.styleRef;pt.get(yt)?.elements?.forEach(st=>st.remove()),pt.delete(yt)}collectServerRenderedStyles(){const yt=this.doc.head?.querySelectorAll(`style[${b}="${this.appId}"]`);if(yt?.length){const pt=new Map;return yt.forEach(st=>{null!=st.textContent&&pt.set(st.textContent,st)}),pt}return null}changeUsageCount(yt,pt){const st=this.styleRef;if(st.has(yt)){const Wt=st.get(yt);return Wt.usage+=pt,Wt.usage}return st.set(yt,{usage:pt,elements:[]}),pt}getStyleElement(yt,pt){const st=this.styleNodesInDOM,Wt=st?.get(pt);if(Wt?.parentNode===yt)return st.delete(pt),Wt.removeAttribute(b),Wt;{const Vt=this.doc.createElement("style");return this.nonce&&Vt.setAttribute("nonce",this.nonce),Vt.textContent=pt,this.platformIsServer&&Vt.setAttribute(b,this.appId),yt.appendChild(Vt),Vt}}addStyleToHost(yt,pt){const st=this.getStyleElement(yt,pt),Wt=this.styleRef,Vt=Wt.get(pt)?.elements;Vt?Vt.push(st):Wt.set(pt,{elements:[st],usage:1})}resetHostNodes(){const yt=this.hostNodes;yt.clear(),yt.add(this.doc.head)}static#e=this.\u0275fac=function(pt){return new(pt||Ut)(r.KVO(d.qQ),r.KVO(r.sZ2),r.KVO(r.BIS,8),r.KVO(r.Agw))};static#t=this.\u0275prov=r.jDH({token:Ut,factory:Ut.\u0275fac})}return Ut})();const w={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},f=/%COMP%/g,k="%COMP%",I=`_nghost-${k}`,x=`_ngcontent-${k}`,C=new r.nKC("",{providedIn:"root",factory:()=>!0});function Q(Ut,It){return It.map(yt=>yt.replace(f,Ut))}let se=(()=>{class Ut{constructor(yt,pt,st,Wt,Vt,ci,bi,gt=null){this.eventManager=yt,this.sharedStylesHost=pt,this.appId=st,this.removeStylesOnCompDestroy=Wt,this.doc=Vt,this.platformId=ci,this.ngZone=bi,this.nonce=gt,this.rendererByCompId=new Map,this.platformIsServer=(0,d.Vy)(ci),this.defaultRenderer=new ie(yt,Vt,bi,this.platformIsServer)}createRenderer(yt,pt){if(!yt||!pt)return this.defaultRenderer;this.platformIsServer&&pt.encapsulation===r.gXe.ShadowDom&&(pt={...pt,encapsulation:r.gXe.Emulated});const st=this.getOrCreateRenderer(yt,pt);return st instanceof oe?st.applyToHost(yt):st instanceof be&&st.applyStyles(),st}getOrCreateRenderer(yt,pt){const st=this.rendererByCompId;let Wt=st.get(pt.id);if(!Wt){const Vt=this.doc,ci=this.ngZone,bi=this.eventManager,gt=this.sharedStylesHost,ai=this.removeStylesOnCompDestroy,kt=this.platformIsServer;switch(pt.encapsulation){case r.gXe.Emulated:Wt=new oe(bi,gt,pt,this.appId,ai,Vt,ci,kt);break;case r.gXe.ShadowDom:return new _e(bi,gt,yt,pt,Vt,ci,this.nonce,kt);default:Wt=new be(bi,gt,pt,ai,Vt,ci,kt)}st.set(pt.id,Wt)}return Wt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(pt){return new(pt||Ut)(r.KVO(h),r.KVO(O),r.KVO(r.sZ2),r.KVO(C),r.KVO(d.qQ),r.KVO(r.Agw),r.KVO(r.SKi),r.KVO(r.BIS))};static#t=this.\u0275prov=r.jDH({token:Ut,factory:Ut.\u0275fac})}return Ut})();class ie{constructor(It,yt,pt,st){this.eventManager=It,this.doc=yt,this.ngZone=pt,this.platformIsServer=st,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(It,yt){return yt?this.doc.createElementNS(w[yt]||yt,It):this.doc.createElement(It)}createComment(It){return this.doc.createComment(It)}createText(It){return this.doc.createTextNode(It)}appendChild(It,yt){(ne(It)?It.content:It).appendChild(yt)}insertBefore(It,yt,pt){It&&(ne(It)?It.content:It).insertBefore(yt,pt)}removeChild(It,yt){It&&It.removeChild(yt)}selectRootElement(It,yt){let pt="string"==typeof It?this.doc.querySelector(It):It;if(!pt)throw new r.wOt(-5104,!1);return yt||(pt.textContent=""),pt}parentNode(It){return It.parentNode}nextSibling(It){return It.nextSibling}setAttribute(It,yt,pt,st){if(st){yt=st+":"+yt;const Wt=w[st];Wt?It.setAttributeNS(Wt,yt,pt):It.setAttribute(yt,pt)}else It.setAttribute(yt,pt)}removeAttribute(It,yt,pt){if(pt){const st=w[pt];st?It.removeAttributeNS(st,yt):It.removeAttribute(`${pt}:${yt}`)}else It.removeAttribute(yt)}addClass(It,yt){It.classList.add(yt)}removeClass(It,yt){It.classList.remove(yt)}setStyle(It,yt,pt,st){st&(r.czy.DashCase|r.czy.Important)?It.style.setProperty(yt,pt,st&r.czy.Important?"important":""):It.style[yt]=pt}removeStyle(It,yt,pt){pt&r.czy.DashCase?It.style.removeProperty(yt):It.style[yt]=""}setProperty(It,yt,pt){null!=It&&(It[yt]=pt)}setValue(It,yt){It.nodeValue=yt}listen(It,yt,pt){if("string"==typeof It&&!(It=(0,d.QT)().getGlobalEventTarget(this.doc,It)))throw new Error(`Unsupported event target ${It} for event ${yt}`);return this.eventManager.addEventListener(It,yt,this.decoratePreventDefault(pt))}decoratePreventDefault(It){return yt=>{if("__ngUnwrap__"===yt)return It;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>It(yt)):It(yt))&&yt.preventDefault()}}}function ne(Ut){return"TEMPLATE"===Ut.tagName&&void 0!==Ut.content}class _e extends ie{constructor(It,yt,pt,st,Wt,Vt,ci,bi){super(It,Wt,Vt,bi),this.sharedStylesHost=yt,this.hostEl=pt,this.shadowRoot=pt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const gt=Q(st.id,st.styles);for(const ai of gt){const kt=document.createElement("style");ci&&kt.setAttribute("nonce",ci),kt.textContent=ai,this.shadowRoot.appendChild(kt)}}nodeOrShadowRoot(It){return It===this.hostEl?this.shadowRoot:It}appendChild(It,yt){return super.appendChild(this.nodeOrShadowRoot(It),yt)}insertBefore(It,yt,pt){return super.insertBefore(this.nodeOrShadowRoot(It),yt,pt)}removeChild(It,yt){return super.removeChild(this.nodeOrShadowRoot(It),yt)}parentNode(It){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(It)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class be extends ie{constructor(It,yt,pt,st,Wt,Vt,ci,bi){super(It,Wt,Vt,ci),this.sharedStylesHost=yt,this.removeStylesOnCompDestroy=st,this.styles=bi?Q(bi,pt.styles):pt.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class oe extends be{constructor(It,yt,pt,st,Wt,Vt,ci,bi){const gt=st+"-"+pt.id;super(It,yt,pt,Wt,Vt,ci,bi,gt),this.contentAttr=function F(Ut){return x.replace(f,Ut)}(gt),this.hostAttr=function Y(Ut){return I.replace(f,Ut)}(gt)}applyToHost(It){this.applyStyles(),this.setAttribute(It,this.hostAttr,"")}createElement(It,yt){const pt=super.createElement(It,yt);return super.setAttribute(pt,this.contentAttr,""),pt}}let me=(()=>{class Ut extends s{constructor(yt){super(yt)}supports(yt){return!0}addEventListener(yt,pt,st){return yt.addEventListener(pt,st,!1),()=>this.removeEventListener(yt,pt,st)}removeEventListener(yt,pt,st){return yt.removeEventListener(pt,st)}static#e=this.\u0275fac=function(pt){return new(pt||Ut)(r.KVO(d.qQ))};static#t=this.\u0275prov=r.jDH({token:Ut,factory:Ut.\u0275fac})}return Ut})();const we=["alt","control","meta","shift"],N={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},G={alt:Ut=>Ut.altKey,control:Ut=>Ut.ctrlKey,meta:Ut=>Ut.metaKey,shift:Ut=>Ut.shiftKey};let W=(()=>{class Ut extends s{constructor(yt){super(yt)}supports(yt){return null!=Ut.parseEventName(yt)}addEventListener(yt,pt,st){const Wt=Ut.parseEventName(pt),Vt=Ut.eventCallback(Wt.fullKey,st,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.QT)().onAndCancel(yt,Wt.domEventName,Vt))}static parseEventName(yt){const pt=yt.toLowerCase().split("."),st=pt.shift();if(0===pt.length||"keydown"!==st&&"keyup"!==st)return null;const Wt=Ut._normalizeKey(pt.pop());let Vt="",ci=pt.indexOf("code");if(ci>-1&&(pt.splice(ci,1),Vt="code."),we.forEach(gt=>{const ai=pt.indexOf(gt);ai>-1&&(pt.splice(ai,1),Vt+=gt+".")}),Vt+=Wt,0!=pt.length||0===Wt.length)return null;const bi={};return bi.domEventName=st,bi.fullKey=Vt,bi}static matchEventFullKeyCode(yt,pt){let st=N[yt.key]||yt.key,Wt="";return pt.indexOf("code.")>-1&&(st=yt.code,Wt="code."),!(null==st||!st)&&(st=st.toLowerCase()," "===st?st="space":"."===st&&(st="dot"),we.forEach(Vt=>{Vt!==st&&(0,G[Vt])(yt)&&(Wt+=Vt+".")}),Wt+=st,Wt===pt)}static eventCallback(yt,pt,st){return Wt=>{Ut.matchEventFullKeyCode(Wt,yt)&&st.runGuarded(()=>pt(Wt))}}static _normalizeKey(yt){return"esc"===yt?"escape":yt}static#e=this.\u0275fac=function(pt){return new(pt||Ut)(r.KVO(d.qQ))};static#t=this.\u0275prov=r.jDH({token:Ut,factory:Ut.\u0275fac})}return Ut})();const Ie=(0,r.oH4)(r.fpN,"browser",[{provide:r.Agw,useValue:d.AJ},{provide:r.PLl,useValue:function xe(){j.makeCurrent()},multi:!0},{provide:d.qQ,useFactory:function Ee(){return(0,r.TL$)(document),document},deps:[]}]),ce=new r.nKC(""),de=[{provide:r.e01,useClass:class m{addToWindow(It){r.JZv.getAngularTestability=(pt,st=!0)=>{const Wt=It.findTestabilityInTree(pt,st);if(null==Wt)throw new r.wOt(5103,!1);return Wt},r.JZv.getAllAngularTestabilities=()=>It.getAllTestabilities(),r.JZv.getAllAngularRootElements=()=>It.getAllRootElements(),r.JZv.frameworkStabilizers||(r.JZv.frameworkStabilizers=[]),r.JZv.frameworkStabilizers.push(pt=>{const st=r.JZv.getAllAngularTestabilities();let Wt=st.length;const Vt=function(){Wt--,0==Wt&&pt()};st.forEach(ci=>{ci.whenStable(Vt)})})}findTestabilityInTree(It,yt,pt){return null==yt?null:It.getTestability(yt)??(pt?(0,d.QT)().isShadowRoot(yt)?this.findTestabilityInTree(It,yt.host,!0):this.findTestabilityInTree(It,yt.parentElement,!0):null)}},deps:[]},{provide:r.WHO,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]},{provide:r.NYb,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]}],pe=[{provide:r.H8p,useValue:"root"},{provide:r.zcH,useFactory:function ge(){return new r.zcH},deps:[]},{provide:v,useClass:me,multi:!0,deps:[d.qQ,r.SKi,r.Agw]},{provide:v,useClass:W,multi:!0,deps:[d.qQ]},se,O,h,{provide:r._9s,useExisting:se},{provide:d.N0,useClass:_,deps:[]},[]];let Be=(()=>{class Ut{constructor(yt){}static withServerTransition(yt){return{ngModule:Ut,providers:[{provide:r.sZ2,useValue:yt.appId}]}}static#e=this.\u0275fac=function(pt){return new(pt||Ut)(r.KVO(ce,12))};static#t=this.\u0275mod=r.$C({type:Ut});static#i=this.\u0275inj=r.G2t({providers:[...pe,...de],imports:[d.MD,r.Hbi]})}return Ut})(),vt=(()=>{class Ut{constructor(yt){this._doc=yt}getTitle(){return this._doc.title}setTitle(yt){this._doc.title=yt||""}static#e=this.\u0275fac=function(pt){return new(pt||Ut)(r.KVO(d.qQ))};static#t=this.\u0275prov=r.jDH({token:Ut,factory:Ut.\u0275fac,providedIn:"root"})}return Ut})(),Je=(()=>{class Ut{static#e=this.\u0275fac=function(pt){return new(pt||Ut)};static#t=this.\u0275prov=r.jDH({token:Ut,factory:function(pt){let st=null;return st=pt?new(pt||Ut):r.KVO(Ht),st},providedIn:"root"})}return Ut})(),Ht=(()=>{class Ut extends Je{constructor(yt){super(),this._doc=yt}sanitize(yt,pt){if(null==pt)return null;switch(yt){case r.WPN.NONE:return pt;case r.WPN.HTML:return(0,r.ZF7)(pt,"HTML")?(0,r.rcV)(pt):(0,r.h9k)(this._doc,String(pt)).toString();case r.WPN.STYLE:return(0,r.ZF7)(pt,"Style")?(0,r.rcV)(pt):pt;case r.WPN.SCRIPT:if((0,r.ZF7)(pt,"Script"))return(0,r.rcV)(pt);throw new r.wOt(5200,!1);case r.WPN.URL:return(0,r.ZF7)(pt,"URL")?(0,r.rcV)(pt):(0,r.$MX)(String(pt));case r.WPN.RESOURCE_URL:if((0,r.ZF7)(pt,"ResourceURL"))return(0,r.rcV)(pt);throw new r.wOt(5201,!1);default:throw new r.wOt(5202,!1)}}bypassSecurityTrustHtml(yt){return(0,r.Kcf)(yt)}bypassSecurityTrustStyle(yt){return(0,r.cWb)(yt)}bypassSecurityTrustScript(yt){return(0,r.UyX)(yt)}bypassSecurityTrustUrl(yt){return(0,r.osQ)(yt)}bypassSecurityTrustResourceUrl(yt){return(0,r.e5t)(yt)}static#e=this.\u0275fac=function(pt){return new(pt||Ut)(r.KVO(d.qQ))};static#t=this.\u0275prov=r.jDH({token:Ut,factory:Ut.\u0275fac,providedIn:"root"})}return Ut})();const Xi=r.zw6,Qi=r.pJN},18498:(ei,rt,D)=>{"use strict";D.d(rt,{nX:()=>hs,j5:()=>_r,wF:()=>wn,L6:()=>aa,Z:()=>ji,Kp:()=>tl,gx:()=>Va,Ix:()=>vr,Wk:()=>zs,wQ:()=>Wn,iI:()=>vu,n3:()=>tr});var r=D(10467),d=D(54438),L=D(74402),j=D(86648),o=D(7673),E=D(84412),R=D(84572);const _=(0,D(81853).L)(nt=>function(){nt(this),this.name="EmptyError",this.message="no elements in sequence"});var v=D(28793),h=D(59030),s=D(71203),b=D(18810),O=D(983),w=D(30017),f=D(21413),k=D(18359),I=D(60177),x=D(96354),g=D(25558),C=D(96697),F=D(99172),Y=D(5964),Q=D(31397),se=D(39974),ie=D(54360);function ee(nt){return(0,se.N)((Ct,at)=>{let St=!1;Ct.subscribe((0,ie._)(at,pi=>{St=!0,at.next(pi)},()=>{St||at.next(nt),at.complete()}))})}function re(nt=ne){return(0,se.N)((Ct,at)=>{let St=!1;Ct.subscribe((0,ie._)(at,pi=>{St=!0,at.next(pi)},()=>St?at.complete():at.error(nt())))})}function ne(){return new _}var _e=D(33669);function be(nt,Ct){const at=arguments.length>=2;return St=>St.pipe(nt?(0,Y.p)((pi,zi)=>nt(pi,zi,St)):_e.D,(0,C.s)(1),at?ee(Ct):re(()=>new _))}var oe=D(70274),me=D(88141),we=D(99437);function W(nt){return nt<=0?()=>O.w:(0,se.N)((Ct,at)=>{let St=[];Ct.subscribe((0,ie._)(at,pi=>{St.push(pi),nt<St.length&&St.shift()},()=>{for(const pi of St)at.next(pi);at.complete()},void 0,()=>{St=null}))})}var X=D(73703),q=D(70980),ye=D(99898),xe=D(56977),ge=D(26365),Ee=D(345);const he="primary",Ie=Symbol("RouteTitle");class ce{constructor(Ct){this.params=Ct||{}}has(Ct){return Object.prototype.hasOwnProperty.call(this.params,Ct)}get(Ct){if(this.has(Ct)){const at=this.params[Ct];return Array.isArray(at)?at[0]:at}return null}getAll(Ct){if(this.has(Ct)){const at=this.params[Ct];return Array.isArray(at)?at:[at]}return[]}get keys(){return Object.keys(this.params)}}function de(nt){return new ce(nt)}function pe(nt,Ct,at){const St=at.path.split("/");if(St.length>nt.length||"full"===at.pathMatch&&(Ct.hasChildren()||St.length<nt.length))return null;const pi={};for(let zi=0;zi<St.length;zi++){const In=St[zi],qn=nt[zi];if(In.startsWith(":"))pi[In.substring(1)]=qn;else if(In!==qn.path)return null}return{consumed:nt.slice(0,St.length),posParams:pi}}function We(nt,Ct){const at=nt?tt(nt):void 0,St=Ct?tt(Ct):void 0;if(!at||!St||at.length!=St.length)return!1;let pi;for(let zi=0;zi<at.length;zi++)if(pi=at[zi],!vt(nt[pi],Ct[pi]))return!1;return!0}function tt(nt){return[...Object.keys(nt),...Object.getOwnPropertySymbols(nt)]}function vt(nt,Ct){if(Array.isArray(nt)&&Array.isArray(Ct)){if(nt.length!==Ct.length)return!1;const at=[...nt].sort(),St=[...Ct].sort();return at.every((pi,zi)=>St[zi]===pi)}return nt===Ct}function Xt(nt){return nt.length>0?nt[nt.length-1]:null}function Nt(nt){return(0,L.A)(nt)?nt:(0,d.jNT)(nt)?(0,j.H)(Promise.resolve(nt)):(0,o.of)(nt)}const Qe={exact:function Mt(nt,Ct,at){if(!Ht(nt.segments,Ct.segments)||!jt(nt.segments,Ct.segments,at)||nt.numberOfChildren!==Ct.numberOfChildren)return!1;for(const St in Ct.children)if(!nt.children[St]||!Mt(nt.children[St],Ct.children[St],at))return!1;return!0},subset:ot},Et={exact:function wt(nt,Ct){return We(nt,Ct)},subset:function Ge(nt,Ct){return Object.keys(Ct).length<=Object.keys(nt).length&&Object.keys(Ct).every(at=>vt(nt[at],Ct[at]))},ignored:()=>!0};function Lt(nt,Ct,at){return Qe[at.paths](nt.root,Ct.root,at.matrixParams)&&Et[at.queryParams](nt.queryParams,Ct.queryParams)&&!("exact"===at.fragment&&nt.fragment!==Ct.fragment)}function ot(nt,Ct,at){return Tt(nt,Ct,Ct.segments,at)}function Tt(nt,Ct,at,St){if(nt.segments.length>at.length){const pi=nt.segments.slice(0,at.length);return!(!Ht(pi,at)||Ct.hasChildren()||!jt(pi,at,St))}if(nt.segments.length===at.length){if(!Ht(nt.segments,at)||!jt(nt.segments,at,St))return!1;for(const pi in Ct.children)if(!nt.children[pi]||!ot(nt.children[pi],Ct.children[pi],St))return!1;return!0}{const pi=at.slice(0,nt.segments.length),zi=at.slice(nt.segments.length);return!!(Ht(nt.segments,pi)&&jt(nt.segments,pi,St)&&nt.children[he])&&Tt(nt.children[he],Ct,zi,St)}}function jt(nt,Ct,at){return Ct.every((St,pi)=>Et[at](nt[pi].parameters,St.parameters))}class li{constructor(Ct=new an([],{}),at={},St=null){this.root=Ct,this.queryParams=at,this.fragment=St}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){return wi.serialize(this)}}class an{constructor(Ct,at){this.segments=Ct,this.children=at,this.parent=null,Object.values(at).forEach(St=>St.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ui(this)}}class xi{constructor(Ct,at){this.path=Ct,this.parameters=at}get parameterMap(){return this._parameterMap??=de(this.parameters),this._parameterMap}toString(){return pt(this)}}function Ht(nt,Ct){return nt.length===Ct.length&&nt.every((at,St)=>at.path===Ct[St].path)}let Ti=(()=>{class nt{static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:()=>new ni,providedIn:"root"})}return nt})();class ni{parse(Ct){const at=new qi(Ct);return new li(at.parseRootSegment(),at.parseQueryParams(),at.parseFragment())}serialize(Ct){const at=`/${cn(Ct.root,!0)}`,St=function Wt(nt){const Ct=Object.entries(nt).map(([at,St])=>Array.isArray(St)?St.map(pi=>`${Xi(at)}=${Xi(pi)}`).join("&"):`${Xi(at)}=${Xi(St)}`).filter(at=>at);return Ct.length?`?${Ct.join("&")}`:""}(Ct.queryParams);return`${at}${St}${"string"==typeof Ct.fragment?`#${function Qi(nt){return encodeURI(nt)}(Ct.fragment)}`:""}`}}const wi=new ni;function ui(nt){return nt.segments.map(Ct=>pt(Ct)).join("/")}function cn(nt,Ct){if(!nt.hasChildren())return ui(nt);if(Ct){const at=nt.children[he]?cn(nt.children[he],!1):"",St=[];return Object.entries(nt.children).forEach(([pi,zi])=>{pi!==he&&St.push(`${pi}:${cn(zi,!1)}`)}),St.length>0?`${at}(${St.join("//")})`:at}{const at=function gi(nt,Ct){let at=[];return Object.entries(nt.children).forEach(([St,pi])=>{St===he&&(at=at.concat(Ct(pi,St)))}),Object.entries(nt.children).forEach(([St,pi])=>{St!==he&&(at=at.concat(Ct(pi,St)))}),at}(nt,(St,pi)=>pi===he?[cn(nt.children[he],!1)]:[`${pi}:${cn(St,!1)}`]);return 1===Object.keys(nt.children).length&&null!=nt.children[he]?`${ui(nt)}/${at[0]}`:`${ui(nt)}/(${at.join("//")})`}}function Ui(nt){return encodeURIComponent(nt).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xi(nt){return Ui(nt).replace(/%3B/gi,";")}function Ut(nt){return Ui(nt).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function It(nt){return decodeURIComponent(nt)}function yt(nt){return It(nt.replace(/\+/g,"%20"))}function pt(nt){return`${Ut(nt.path)}${function st(nt){return Object.entries(nt).map(([Ct,at])=>`;${Ut(Ct)}=${Ut(at)}`).join("")}(nt.parameters)}`}const Vt=/^[^\/()?;#]+/;function ci(nt){const Ct=nt.match(Vt);return Ct?Ct[0]:""}const bi=/^[^\/()?;=#]+/,ai=/^[^=?&#]+/,mi=/^[^&#]+/;class qi{constructor(Ct){this.url=Ct,this.remaining=Ct}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new an([],{}):new an([],this.parseChildren())}parseQueryParams(){const Ct={};if(this.consumeOptional("?"))do{this.parseQueryParam(Ct)}while(this.consumeOptional("&"));return Ct}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Ct=[];for(this.peekStartsWith("(")||Ct.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Ct.push(this.parseSegment());let at={};this.peekStartsWith("/(")&&(this.capture("/"),at=this.parseParens(!0));let St={};return this.peekStartsWith("(")&&(St=this.parseParens(!1)),(Ct.length>0||Object.keys(at).length>0)&&(St[he]=new an(Ct,at)),St}parseSegment(){const Ct=ci(this.remaining);if(""===Ct&&this.peekStartsWith(";"))throw new d.wOt(4009,!1);return this.capture(Ct),new xi(It(Ct),this.parseMatrixParams())}parseMatrixParams(){const Ct={};for(;this.consumeOptional(";");)this.parseParam(Ct);return Ct}parseParam(Ct){const at=function gt(nt){const Ct=nt.match(bi);return Ct?Ct[0]:""}(this.remaining);if(!at)return;this.capture(at);let St="";if(this.consumeOptional("=")){const pi=ci(this.remaining);pi&&(St=pi,this.capture(St))}Ct[It(at)]=It(St)}parseQueryParam(Ct){const at=function kt(nt){const Ct=nt.match(ai);return Ct?Ct[0]:""}(this.remaining);if(!at)return;this.capture(at);let St="";if(this.consumeOptional("=")){const In=function Kt(nt){const Ct=nt.match(mi);return Ct?Ct[0]:""}(this.remaining);In&&(St=In,this.capture(St))}const pi=yt(at),zi=yt(St);if(Ct.hasOwnProperty(pi)){let In=Ct[pi];Array.isArray(In)||(In=[In],Ct[pi]=In),In.push(zi)}else Ct[pi]=zi}parseParens(Ct){const at={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const St=ci(this.remaining),pi=this.remaining[St.length];if("/"!==pi&&")"!==pi&&";"!==pi)throw new d.wOt(4010,!1);let zi;St.indexOf(":")>-1?(zi=St.slice(0,St.indexOf(":")),this.capture(zi),this.capture(":")):Ct&&(zi=he);const In=this.parseChildren();at[zi]=1===Object.keys(In).length?In[he]:new an([],In),this.consumeOptional("//")}return at}peekStartsWith(Ct){return this.remaining.startsWith(Ct)}consumeOptional(Ct){return!!this.peekStartsWith(Ct)&&(this.remaining=this.remaining.substring(Ct.length),!0)}capture(Ct){if(!this.consumeOptional(Ct))throw new d.wOt(4011,!1)}}function Wi(nt){return nt.segments.length>0?new an([],{[he]:nt}):nt}function yn(nt){const Ct={};for(const[St,pi]of Object.entries(nt.children)){const zi=yn(pi);if(St===he&&0===zi.segments.length&&zi.hasChildren())for(const[In,qn]of Object.entries(zi.children))Ct[In]=qn;else(zi.segments.length>0||zi.hasChildren())&&(Ct[St]=zi)}return function Ur(nt){if(1===nt.numberOfChildren&&nt.children[he]){const Ct=nt.children[he];return new an(nt.segments.concat(Ct.segments),Ct.children)}return nt}(new an(nt.segments,Ct))}function ar(nt){return nt instanceof li}function po(nt){let Ct;const pi=Wi(function at(zi){const In={};for(const pr of zi.children){const Za=at(pr);In[pr.outlet]=Za}const qn=new an(zi.url,In);return zi===nt&&(Ct=qn),qn}(nt.root));return Ct??pi}function sa(nt,Ct,at,St){let pi=nt;for(;pi.parent;)pi=pi.parent;if(0===Ct.length)return ja(pi,pi,pi,at,St);const zi=function Eo(nt){if("string"==typeof nt[0]&&1===nt.length&&"/"===nt[0])return new uo(!0,0,nt);let Ct=0,at=!1;const St=nt.reduce((pi,zi,In)=>{if("object"==typeof zi&&null!=zi){if(zi.outlets){const qn={};return Object.entries(zi.outlets).forEach(([pr,Za])=>{qn[pr]="string"==typeof Za?Za.split("/"):Za}),[...pi,{outlets:qn}]}if(zi.segmentPath)return[...pi,zi.segmentPath]}return"string"!=typeof zi?[...pi,zi]:0===In?(zi.split("/").forEach((qn,pr)=>{0==pr&&"."===qn||(0==pr&&""===qn?at=!0:".."===qn?Ct++:""!=qn&&pi.push(qn))}),pi):[...pi,zi]},[]);return new uo(at,Ct,St)}(Ct);if(zi.toRoot())return ja(pi,pi,new an([],{}),at,St);const In=function Bi(nt,Ct,at){if(nt.isAbsolute)return new To(Ct,!0,0);if(!at)return new To(Ct,!1,NaN);if(null===at.parent)return new To(at,!0,0);const St=Pr(nt.commands[0])?0:1;return function _t(nt,Ct,at){let St=nt,pi=Ct,zi=at;for(;zi>pi;){if(zi-=pi,St=St.parent,!St)throw new d.wOt(4005,!1);pi=St.segments.length}return new To(St,!1,pi-zi)}(at,at.segments.length-1+St,nt.numberOfDoubleDots)}(zi,pi,nt),qn=In.processChildren?Pi(In.segmentGroup,In.index,zi.commands):Dt(In.segmentGroup,In.index,zi.commands);return ja(pi,In.segmentGroup,qn,at,St)}function Pr(nt){return"object"==typeof nt&&null!=nt&&!nt.outlets&&!nt.segmentPath}function no(nt){return"object"==typeof nt&&null!=nt&&nt.outlets}function ja(nt,Ct,at,St,pi){let In,zi={};St&&Object.entries(St).forEach(([pr,Za])=>{zi[pr]=Array.isArray(Za)?Za.map(ds=>`${ds}`):`${Za}`}),In=nt===Ct?at:Na(nt,Ct,at);const qn=Wi(yn(In));return new li(qn,zi,pi)}function Na(nt,Ct,at){const St={};return Object.entries(nt.children).forEach(([pi,zi])=>{St[pi]=zi===Ct?at:Na(zi,Ct,at)}),new an(nt.segments,St)}class uo{constructor(Ct,at,St){if(this.isAbsolute=Ct,this.numberOfDoubleDots=at,this.commands=St,Ct&&St.length>0&&Pr(St[0]))throw new d.wOt(4003,!1);const pi=St.find(no);if(pi&&pi!==Xt(St))throw new d.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class To{constructor(Ct,at,St){this.segmentGroup=Ct,this.processChildren=at,this.index=St}}function Dt(nt,Ct,at){if(nt??=new an([],{}),0===nt.segments.length&&nt.hasChildren())return Pi(nt,Ct,at);const St=function ln(nt,Ct,at){let St=0,pi=Ct;const zi={match:!1,pathIndex:0,commandIndex:0};for(;pi<nt.segments.length;){if(St>=at.length)return zi;const In=nt.segments[pi],qn=at[St];if(no(qn))break;const pr=`${qn}`,Za=St<at.length-1?at[St+1]:null;if(pi>0&&void 0===pr)break;if(pr&&Za&&"object"==typeof Za&&void 0===Za.outlets){if(!ct(pr,Za,In))return zi;St+=2}else{if(!ct(pr,{},In))return zi;St++}pi++}return{match:!0,pathIndex:pi,commandIndex:St}}(nt,Ct,at),pi=at.slice(St.commandIndex);if(St.match&&St.pathIndex<nt.segments.length){const zi=new an(nt.segments.slice(0,St.pathIndex),{});return zi.children[he]=new an(nt.segments.slice(St.pathIndex),nt.children),Pi(zi,0,pi)}return St.match&&0===pi.length?new an(nt.segments,{}):St.match&&!nt.hasChildren()?An(nt,Ct,at):St.match?Pi(nt,0,pi):An(nt,Ct,at)}function Pi(nt,Ct,at){if(0===at.length)return new an(nt.segments,{});{const St=function si(nt){return no(nt[0])?nt[0].outlets:{[he]:nt}}(at),pi={};if(Object.keys(St).some(zi=>zi!==he)&&nt.children[he]&&1===nt.numberOfChildren&&0===nt.children[he].segments.length){const zi=Pi(nt.children[he],Ct,at);return new an(nt.segments,zi.children)}return Object.entries(St).forEach(([zi,In])=>{"string"==typeof In&&(In=[In]),null!==In&&(pi[zi]=Dt(nt.children[zi],Ct,In))}),Object.entries(nt.children).forEach(([zi,In])=>{void 0===St[zi]&&(pi[zi]=In)}),new an(nt.segments,pi)}}function An(nt,Ct,at){const St=nt.segments.slice(0,Ct);let pi=0;for(;pi<at.length;){const zi=at[pi];if(no(zi)){const pr=jn(zi.outlets);return new an(St,pr)}if(0===pi&&Pr(at[0])){St.push(new xi(nt.segments[Ct].path,Gr(at[0]))),pi++;continue}const In=no(zi)?zi.outlets[he]:`${zi}`,qn=pi<at.length-1?at[pi+1]:null;In&&qn&&Pr(qn)?(St.push(new xi(In,Gr(qn))),pi+=2):(St.push(new xi(In,{})),pi++)}return new an(St,{})}function jn(nt){const Ct={};return Object.entries(nt).forEach(([at,St])=>{"string"==typeof St&&(St=[St]),null!==St&&(Ct[at]=An(new an([],{}),0,St))}),Ct}function Gr(nt){const Ct={};return Object.entries(nt).forEach(([at,St])=>Ct[at]=`${St}`),Ct}function ct(nt,Ct,at){return nt==at.path&&We(Ct,at.parameters)}const ri="imperative";var Ci=function(nt){return nt[nt.NavigationStart=0]="NavigationStart",nt[nt.NavigationEnd=1]="NavigationEnd",nt[nt.NavigationCancel=2]="NavigationCancel",nt[nt.NavigationError=3]="NavigationError",nt[nt.RoutesRecognized=4]="RoutesRecognized",nt[nt.ResolveStart=5]="ResolveStart",nt[nt.ResolveEnd=6]="ResolveEnd",nt[nt.GuardsCheckStart=7]="GuardsCheckStart",nt[nt.GuardsCheckEnd=8]="GuardsCheckEnd",nt[nt.RouteConfigLoadStart=9]="RouteConfigLoadStart",nt[nt.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",nt[nt.ChildActivationStart=11]="ChildActivationStart",nt[nt.ChildActivationEnd=12]="ChildActivationEnd",nt[nt.ActivationStart=13]="ActivationStart",nt[nt.ActivationEnd=14]="ActivationEnd",nt[nt.Scroll=15]="Scroll",nt[nt.NavigationSkipped=16]="NavigationSkipped",nt}(Ci||{});class Ri{constructor(Ct,at){this.id=Ct,this.url=at}}class ji extends Ri{constructor(Ct,at,St="imperative",pi=null){super(Ct,at),this.type=Ci.NavigationStart,this.navigationTrigger=St,this.restoredState=pi}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class wn extends Ri{constructor(Ct,at,St){super(Ct,at),this.urlAfterRedirects=St,this.type=Ci.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Nn=function(nt){return nt[nt.Redirect=0]="Redirect",nt[nt.SupersededByNewNavigation=1]="SupersededByNewNavigation",nt[nt.NoDataFromResolver=2]="NoDataFromResolver",nt[nt.GuardRejected=3]="GuardRejected",nt}(Nn||{}),En=function(nt){return nt[nt.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",nt[nt.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",nt}(En||{});class _r extends Ri{constructor(Ct,at,St,pi){super(Ct,at),this.reason=St,this.code=pi,this.type=Ci.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ha extends Ri{constructor(Ct,at,St,pi){super(Ct,at),this.reason=St,this.code=pi,this.type=Ci.NavigationSkipped}}class aa extends Ri{constructor(Ct,at,St,pi){super(Ct,at),this.error=St,this.target=pi,this.type=Ci.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Fa extends Ri{constructor(Ct,at,St,pi){super(Ct,at),this.urlAfterRedirects=St,this.state=pi,this.type=Ci.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ya extends Ri{constructor(Ct,at,St,pi){super(Ct,at),this.urlAfterRedirects=St,this.state=pi,this.type=Ci.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _o extends Ri{constructor(Ct,at,St,pi,zi){super(Ct,at),this.urlAfterRedirects=St,this.state=pi,this.shouldActivate=zi,this.type=Ci.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Yo extends Ri{constructor(Ct,at,St,pi){super(Ct,at),this.urlAfterRedirects=St,this.state=pi,this.type=Ci.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Va extends Ri{constructor(Ct,at,St,pi){super(Ct,at),this.urlAfterRedirects=St,this.state=pi,this.type=Ci.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ia{constructor(Ct){this.route=Ct,this.type=Ci.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $o{constructor(Ct){this.route=Ct,this.type=Ci.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class mo{constructor(Ct){this.snapshot=Ct,this.type=Ci.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fl{constructor(Ct){this.snapshot=Ct,this.type=Ci.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jl{constructor(Ct){this.snapshot=Ct,this.type=Ci.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zo{constructor(Ct){this.snapshot=Ct,this.type=Ci.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ao{constructor(Ct,at,St){this.routerEvent=Ct,this.position=at,this.anchor=St,this.type=Ci.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ha{}class us{constructor(Ct){this.url=Ct}}class ms{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new El,this.attachRef=null}}let El=(()=>{class nt{constructor(){this.contexts=new Map}onChildOutletCreated(at,St){const pi=this.getOrCreateContext(at);pi.outlet=St,this.contexts.set(at,pi)}onChildOutletDestroyed(at){const St=this.getContext(at);St&&(St.outlet=null,St.attachRef=null)}onOutletDeactivated(){const at=this.contexts;return this.contexts=new Map,at}onOutletReAttached(at){this.contexts=at}getOrCreateContext(at){let St=this.getContext(at);return St||(St=new ms,this.contexts.set(at,St)),St}getContext(at){return this.contexts.get(at)||null}static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})();class Wl{constructor(Ct){this._root=Ct}get root(){return this._root.value}parent(Ct){const at=this.pathFromRoot(Ct);return at.length>1?at[at.length-2]:null}children(Ct){const at=Xd(Ct,this._root);return at?at.children.map(St=>St.value):[]}firstChild(Ct){const at=Xd(Ct,this._root);return at&&at.children.length>0?at.children[0].value:null}siblings(Ct){const at=rs(Ct,this._root);return at.length<2?[]:at[at.length-2].children.map(pi=>pi.value).filter(pi=>pi!==Ct)}pathFromRoot(Ct){return rs(Ct,this._root).map(at=>at.value)}}function Xd(nt,Ct){if(nt===Ct.value)return Ct;for(const at of Ct.children){const St=Xd(nt,at);if(St)return St}return null}function rs(nt,Ct){if(nt===Ct.value)return[Ct];for(const at of Ct.children){const St=rs(nt,at);if(St.length)return St.unshift(Ct),St}return[]}class Ho{constructor(Ct,at){this.value=Ct,this.children=at}toString(){return`TreeNode(${this.value})`}}function Zs(nt){const Ct={};return nt&&nt.children.forEach(at=>Ct[at.value.outlet]=at),Ct}class jl extends Wl{constructor(Ct,at){super(Ct),this.snapshot=at,Si(this,Ct)}toString(){return this.snapshot.toString()}}function Ms(nt){const Ct=function Ko(nt){const zi=new Yl([],{},{},"",{},he,nt,null,{});return new Bt("",new Ho(zi,[]))}(nt),at=new E.t([new xi("",{})]),St=new E.t({}),pi=new E.t({}),zi=new E.t({}),In=new E.t(""),qn=new hs(at,St,zi,In,pi,he,nt,Ct.root);return qn.snapshot=Ct.root,new jl(new Ho(qn,[]),Ct)}class hs{constructor(Ct,at,St,pi,zi,In,qn,pr){this.urlSubject=Ct,this.paramsSubject=at,this.queryParamsSubject=St,this.fragmentSubject=pi,this.dataSubject=zi,this.outlet=In,this.component=qn,this._futureSnapshot=pr,this.title=this.dataSubject?.pipe((0,x.T)(Za=>Za[Ie]))??(0,o.of)(void 0),this.url=Ct,this.params=at,this.queryParams=St,this.fragment=pi,this.data=zi}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,x.T)(Ct=>de(Ct))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,x.T)(Ct=>de(Ct))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ws(nt,Ct,at="emptyOnly"){let St;const{routeConfig:pi}=nt;return St=null===Ct||"always"!==at&&""!==pi?.path&&(Ct.component||Ct.routeConfig?.loadComponent)?{params:{...nt.params},data:{...nt.data},resolve:{...nt.data,...nt._resolvedData??{}}}:{params:{...Ct.params,...nt.params},data:{...Ct.data,...nt.data},resolve:{...nt.data,...Ct.data,...pi?.data,...nt._resolvedData}},pi&&Kn(pi)&&(St.resolve[Ie]=pi.title),St}class Yl{get title(){return this.data?.[Ie]}constructor(Ct,at,St,pi,zi,In,qn,pr,Za){this.url=Ct,this.params=at,this.queryParams=St,this.fragment=pi,this.data=zi,this.outlet=In,this.component=qn,this.routeConfig=pr,this._resolve=Za}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=de(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(St=>St.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Bt extends Wl{constructor(Ct,at){super(at),this.url=Ct,Si(this,at)}toString(){return Ni(this._root)}}function Si(nt,Ct){Ct.value._routerState=nt,Ct.children.forEach(at=>Si(nt,at))}function Ni(nt){const Ct=nt.children.length>0?` { ${nt.children.map(Ni).join(", ")} } `:"";return`${nt.value}${Ct}`}function Sn(nt){if(nt.snapshot){const Ct=nt.snapshot,at=nt._futureSnapshot;nt.snapshot=at,We(Ct.queryParams,at.queryParams)||nt.queryParamsSubject.next(at.queryParams),Ct.fragment!==at.fragment&&nt.fragmentSubject.next(at.fragment),We(Ct.params,at.params)||nt.paramsSubject.next(at.params),function Be(nt,Ct){if(nt.length!==Ct.length)return!1;for(let at=0;at<nt.length;++at)if(!We(nt[at],Ct[at]))return!1;return!0}(Ct.url,at.url)||nt.urlSubject.next(at.url),We(Ct.data,at.data)||nt.dataSubject.next(at.data)}else nt.snapshot=nt._futureSnapshot,nt.dataSubject.next(nt._futureSnapshot.data)}function Dn(nt,Ct){const at=We(nt.params,Ct.params)&&function Je(nt,Ct){return Ht(nt,Ct)&&nt.every((at,St)=>We(at.parameters,Ct[St].parameters))}(nt.url,Ct.url);return at&&!(!nt.parent!=!Ct.parent)&&(!nt.parent||Dn(nt.parent,Ct.parent))}function Kn(nt){return"string"==typeof nt.title||null===nt.title}let tr=(()=>{class nt{constructor(){this.activated=null,this._activatedRoute=null,this.name=he,this.activateEvents=new d.bkB,this.deactivateEvents=new d.bkB,this.attachEvents=new d.bkB,this.detachEvents=new d.bkB,this.parentContexts=(0,d.WQX)(El),this.location=(0,d.WQX)(d.c1b),this.changeDetector=(0,d.WQX)(d.gRc),this.environmentInjector=(0,d.WQX)(d.uvJ),this.inputBinder=(0,d.WQX)(Pa,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(at){if(at.name){const{firstChange:St,previousValue:pi}=at.name;if(St)return;this.isTrackedInParentContexts(pi)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(pi)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(at){return this.parentContexts.getContext(at)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const at=this.parentContexts.getContext(this.name);at?.route&&(at.attachRef?this.attach(at.attachRef,at.route):this.activateWith(at.route,at.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new d.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.wOt(4012,!1);this.location.detach();const at=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(at.instance),at}attach(at,St){this.activated=at,this._activatedRoute=St,this.location.insert(at.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(at.instance)}deactivate(){if(this.activated){const at=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(at)}}activateWith(at,St){if(this.isActivated)throw new d.wOt(4013,!1);this._activatedRoute=at;const pi=this.location,In=at.snapshot.component,qn=this.parentContexts.getOrCreateContext(this.name).children,pr=new xr(at,qn,pi.injector);this.activated=pi.createComponent(In,{index:pi.length,injector:pr,environmentInjector:St??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275dir=d.FsC({type:nt,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[d.OA$]})}return nt})();class xr{__ngOutletInjector(Ct){return new xr(this.route,this.childContexts,Ct)}constructor(Ct,at,St){this.route=Ct,this.childContexts=at,this.parent=St}get(Ct,at){return Ct===hs?this.route:Ct===El?this.childContexts:this.parent.get(Ct,at)}}const Pa=new d.nKC("");let va=(()=>{class nt{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(at){this.unsubscribeFromRouteData(at),this.subscribeToRouteData(at)}unsubscribeFromRouteData(at){this.outletDataSubscriptions.get(at)?.unsubscribe(),this.outletDataSubscriptions.delete(at)}subscribeToRouteData(at){const{activatedRoute:St}=at,pi=(0,R.z)([St.queryParams,St.params,St.data]).pipe((0,g.n)(([zi,In,qn],pr)=>(qn={...zi,...In,...qn},0===pr?(0,o.of)(qn):Promise.resolve(qn)))).subscribe(zi=>{if(!at.isActivated||!at.activatedComponentRef||at.activatedRoute!==St||null===St.component)return void this.unsubscribeFromRouteData(at);const In=(0,d.HJs)(St.component);if(In)for(const{templateName:qn}of In.inputs)at.activatedComponentRef.setInput(qn,zi[qn]);else this.unsubscribeFromRouteData(at)});this.outletDataSubscriptions.set(at,pi)}static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac})}return nt})();function Ba(nt,Ct,at){if(at&&nt.shouldReuseRoute(Ct.value,at.value.snapshot)){const St=at.value;St._futureSnapshot=Ct.value;const pi=function ga(nt,Ct,at){return Ct.children.map(St=>{for(const pi of at.children)if(nt.shouldReuseRoute(St.value,pi.value.snapshot))return Ba(nt,St,pi);return Ba(nt,St)})}(nt,Ct,at);return new Ho(St,pi)}{if(nt.shouldAttach(Ct.value)){const zi=nt.retrieve(Ct.value);if(null!==zi){const In=zi.route;return In.value._futureSnapshot=Ct.value,In.children=Ct.children.map(qn=>Ba(nt,qn)),In}}const St=function Lo(nt){return new hs(new E.t(nt.url),new E.t(nt.params),new E.t(nt.queryParams),new E.t(nt.fragment),new E.t(nt.data),nt.outlet,nt.component,nt)}(Ct.value),pi=Ct.children.map(zi=>Ba(nt,zi));return new Ho(St,pi)}}const $a="ngNavigationCancelingError";function qs(nt,Ct){const{redirectTo:at,navigationBehaviorOptions:St}=ar(Ct)?{redirectTo:Ct,navigationBehaviorOptions:void 0}:Ct,pi=Mo(!1,Nn.Redirect);return pi.url=at,pi.navigationBehaviorOptions=St,pi}function Mo(nt,Ct){const at=new Error(`NavigationCancelingError: ${nt||""}`);return at[$a]=!0,at.cancellationCode=Ct,at}function gs(nt){return!!nt&&nt[$a]}let el=(()=>{class nt{static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275cmp=d.VBU({type:nt,selectors:[["ng-component"]],standalone:!0,features:[d.aNF],decls:1,vars:0,template:function(St,pi){1&St&&d.nrm(0,"router-outlet")},dependencies:[tr],encapsulation:2})}return nt})();function Il(nt){const Ct=nt.children&&nt.children.map(Il),at=Ct?{...nt,children:Ct}:{...nt};return!at.component&&!at.loadComponent&&(Ct||at.loadChildren)&&at.outlet&&at.outlet!==he&&(at.component=el),at}function Ud(nt){return nt.outlet||he}function ql(nt){if(!nt)return null;if(nt.routeConfig?._injector)return nt.routeConfig._injector;for(let Ct=nt.parent;Ct;Ct=Ct.parent){const at=Ct.routeConfig;if(at?._loadedInjector)return at._loadedInjector;if(at?._injector)return at._injector}return null}class vc{constructor(Ct,at,St,pi,zi){this.routeReuseStrategy=Ct,this.futureState=at,this.currState=St,this.forwardEvent=pi,this.inputBindingEnabled=zi}activate(Ct){const at=this.futureState._root,St=this.currState?this.currState._root:null;this.deactivateChildRoutes(at,St,Ct),Sn(this.futureState.root),this.activateChildRoutes(at,St,Ct)}deactivateChildRoutes(Ct,at,St){const pi=Zs(at);Ct.children.forEach(zi=>{const In=zi.value.outlet;this.deactivateRoutes(zi,pi[In],St),delete pi[In]}),Object.values(pi).forEach(zi=>{this.deactivateRouteAndItsChildren(zi,St)})}deactivateRoutes(Ct,at,St){const pi=Ct.value,zi=at?at.value:null;if(pi===zi)if(pi.component){const In=St.getContext(pi.outlet);In&&this.deactivateChildRoutes(Ct,at,In.children)}else this.deactivateChildRoutes(Ct,at,St);else zi&&this.deactivateRouteAndItsChildren(at,St)}deactivateRouteAndItsChildren(Ct,at){Ct.value.component&&this.routeReuseStrategy.shouldDetach(Ct.value.snapshot)?this.detachAndStoreRouteSubtree(Ct,at):this.deactivateRouteAndOutlet(Ct,at)}detachAndStoreRouteSubtree(Ct,at){const St=at.getContext(Ct.value.outlet),pi=St&&Ct.value.component?St.children:at,zi=Zs(Ct);for(const In of Object.values(zi))this.deactivateRouteAndItsChildren(In,pi);if(St&&St.outlet){const In=St.outlet.detach(),qn=St.children.onOutletDeactivated();this.routeReuseStrategy.store(Ct.value.snapshot,{componentRef:In,route:Ct,contexts:qn})}}deactivateRouteAndOutlet(Ct,at){const St=at.getContext(Ct.value.outlet),pi=St&&Ct.value.component?St.children:at,zi=Zs(Ct);for(const In of Object.values(zi))this.deactivateRouteAndItsChildren(In,pi);St&&(St.outlet&&(St.outlet.deactivate(),St.children.onOutletDeactivated()),St.attachRef=null,St.route=null)}activateChildRoutes(Ct,at,St){const pi=Zs(at);Ct.children.forEach(zi=>{this.activateRoutes(zi,pi[zi.value.outlet],St),this.forwardEvent(new zo(zi.value.snapshot))}),Ct.children.length&&this.forwardEvent(new fl(Ct.value.snapshot))}activateRoutes(Ct,at,St){const pi=Ct.value,zi=at?at.value:null;if(Sn(pi),pi===zi)if(pi.component){const In=St.getOrCreateContext(pi.outlet);this.activateChildRoutes(Ct,at,In.children)}else this.activateChildRoutes(Ct,at,St);else if(pi.component){const In=St.getOrCreateContext(pi.outlet);if(this.routeReuseStrategy.shouldAttach(pi.snapshot)){const qn=this.routeReuseStrategy.retrieve(pi.snapshot);this.routeReuseStrategy.store(pi.snapshot,null),In.children.onOutletReAttached(qn.contexts),In.attachRef=qn.componentRef,In.route=qn.route.value,In.outlet&&In.outlet.attach(qn.componentRef,qn.route.value),Sn(qn.route.value),this.activateChildRoutes(Ct,null,In.children)}else{const qn=ql(pi.snapshot);In.attachRef=null,In.route=pi,In.injector=qn,In.outlet&&In.outlet.activateWith(pi,In.injector),this.activateChildRoutes(Ct,null,In.children)}}else this.activateChildRoutes(Ct,null,St)}}class bc{constructor(Ct){this.path=Ct,this.route=this.path[this.path.length-1]}}class Nl{constructor(Ct,at){this.component=Ct,this.route=at}}function yc(nt,Ct,at){const St=nt._root;return au(St,Ct?Ct._root:null,at,[St.value])}function Ol(nt,Ct){const at=Symbol(),St=Ct.get(nt,at);return St===at?"function"!=typeof nt||(0,d.LfX)(nt)?Ct.get(nt):nt:St}function au(nt,Ct,at,St,pi={canDeactivateChecks:[],canActivateChecks:[]}){const zi=Zs(Ct);return nt.children.forEach(In=>{(function ks(nt,Ct,at,St,pi={canDeactivateChecks:[],canActivateChecks:[]}){const zi=nt.value,In=Ct?Ct.value:null,qn=at?at.getContext(nt.value.outlet):null;if(In&&zi.routeConfig===In.routeConfig){const pr=function oi(nt,Ct,at){if("function"==typeof at)return at(nt,Ct);switch(at){case"pathParamsChange":return!Ht(nt.url,Ct.url);case"pathParamsOrQueryParamsChange":return!Ht(nt.url,Ct.url)||!We(nt.queryParams,Ct.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Dn(nt,Ct)||!We(nt.queryParams,Ct.queryParams);default:return!Dn(nt,Ct)}}(In,zi,zi.routeConfig.runGuardsAndResolvers);pr?pi.canActivateChecks.push(new bc(St)):(zi.data=In.data,zi._resolvedData=In._resolvedData),au(nt,Ct,zi.component?qn?qn.children:null:at,St,pi),pr&&qn&&qn.outlet&&qn.outlet.isActivated&&pi.canDeactivateChecks.push(new Nl(qn.outlet.component,In))}else In&&yi(Ct,qn,pi),pi.canActivateChecks.push(new bc(St)),au(nt,null,zi.component?qn?qn.children:null:at,St,pi)})(In,zi[In.value.outlet],at,St.concat([In.value]),pi),delete zi[In.value.outlet]}),Object.entries(zi).forEach(([In,qn])=>yi(qn,at.getContext(In),pi)),pi}function yi(nt,Ct,at){const St=Zs(nt),pi=nt.value;Object.entries(St).forEach(([zi,In])=>{yi(In,pi.component?Ct?Ct.children.getContext(zi):null:Ct,at)}),at.canDeactivateChecks.push(new Nl(pi.component&&Ct&&Ct.outlet&&Ct.outlet.isActivated?Ct.outlet.component:null,pi))}function zt(nt){return"function"==typeof nt}function Ls(nt){return nt instanceof _||"EmptyError"===nt?.name}const Xc=Symbol("INITIAL_VALUE");function Cs(){return(0,g.n)(nt=>(0,R.z)(nt.map(Ct=>Ct.pipe((0,C.s)(1),(0,F.Z)(Xc)))).pipe((0,x.T)(Ct=>{for(const at of Ct)if(!0!==at){if(at===Xc)return Xc;if(!1===at||at instanceof li)return at}return!0}),(0,Y.p)(Ct=>Ct!==Xc),(0,C.s)(1)))}function Wa(nt){return(0,s.F)((0,me.M)(Ct=>{if(ar(Ct))throw qs(0,Ct)}),(0,x.T)(Ct=>!0===Ct))}class Xo{constructor(Ct){this.segmentGroup=Ct||null}}class Ys extends Error{constructor(Ct){super(),this.urlTree=Ct}}function ol(nt){return(0,b.$)(new Xo(nt))}class kl{constructor(Ct,at){this.urlSerializer=Ct,this.urlTree=at}lineralizeSegments(Ct,at){let St=[],pi=at.root;for(;;){if(St=St.concat(pi.segments),0===pi.numberOfChildren)return(0,o.of)(St);if(pi.numberOfChildren>1||!pi.children[he])return(0,b.$)(new d.wOt(4e3,!1));pi=pi.children[he]}}applyRedirectCommands(Ct,at,St){const pi=this.applyRedirectCreateUrlTree(at,this.urlSerializer.parse(at),Ct,St);if(at.startsWith("/"))throw new Ys(pi);return pi}applyRedirectCreateUrlTree(Ct,at,St,pi){const zi=this.createSegmentGroup(Ct,at.root,St,pi);return new li(zi,this.createQueryParams(at.queryParams,this.urlTree.queryParams),at.fragment)}createQueryParams(Ct,at){const St={};return Object.entries(Ct).forEach(([pi,zi])=>{if("string"==typeof zi&&zi.startsWith(":")){const qn=zi.substring(1);St[pi]=at[qn]}else St[pi]=zi}),St}createSegmentGroup(Ct,at,St,pi){const zi=this.createSegments(Ct,at.segments,St,pi);let In={};return Object.entries(at.children).forEach(([qn,pr])=>{In[qn]=this.createSegmentGroup(Ct,pr,St,pi)}),new an(zi,In)}createSegments(Ct,at,St,pi){return at.map(zi=>zi.path.startsWith(":")?this.findPosParam(Ct,zi,pi):this.findOrReturn(zi,St))}findPosParam(Ct,at,St){const pi=St[at.path.substring(1)];if(!pi)throw new d.wOt(4001,!1);return pi}findOrReturn(Ct,at){let St=0;for(const pi of at){if(pi.path===Ct.path)return at.splice(St),pi;St++}return Ct}}const Cd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gd(nt,Ct,at,St,pi){const zi=id(nt,Ct,at);return zi.matched?(St=function _s(nt,Ct){return nt.providers&&!nt._injector&&(nt._injector=(0,d.Ol2)(nt.providers,Ct,`Route: ${nt.path}`)),nt._injector??Ct}(Ct,St),function Io(nt,Ct,at,St){const pi=Ct.canMatch;if(!pi||0===pi.length)return(0,o.of)(!0);const zi=pi.map(In=>{const qn=Ol(In,nt);return Nt(function xd(nt){return nt&&zt(nt.canMatch)}(qn)?qn.canMatch(Ct,at):(0,d.N4e)(nt,()=>qn(Ct,at)))});return(0,o.of)(zi).pipe(Cs(),Wa())}(St,Ct,at).pipe((0,x.T)(In=>!0===In?zi:{...Cd}))):(0,o.of)(zi)}function id(nt,Ct,at){if("**"===Ct.path)return function Vc(nt){return{matched:!0,parameters:nt.length>0?Xt(nt).parameters:{},consumedSegments:nt,remainingSegments:[],positionalParamSegments:{}}}(at);if(""===Ct.path)return"full"===Ct.pathMatch&&(nt.hasChildren()||at.length>0)?{...Cd}:{matched:!0,consumedSegments:[],remainingSegments:at,parameters:{},positionalParamSegments:{}};const pi=(Ct.matcher||pe)(at,nt,Ct);if(!pi)return{...Cd};const zi={};Object.entries(pi.posParams??{}).forEach(([qn,pr])=>{zi[qn]=pr.path});const In=pi.consumed.length>0?{...zi,...pi.consumed[pi.consumed.length-1].parameters}:zi;return{matched:!0,consumedSegments:pi.consumed,remainingSegments:at.slice(pi.consumed.length),parameters:In,positionalParamSegments:pi.posParams??{}}}function su(nt,Ct,at,St){return at.length>0&&function gu(nt,Ct,at){return at.some(St=>Qd(nt,Ct,St)&&Ud(St)!==he)}(nt,at,St)?{segmentGroup:new an(Ct,lp(St,new an(at,nt.children))),slicedSegments:[]}:0===at.length&&function Hc(nt,Ct,at){return at.some(St=>Qd(nt,Ct,St))}(nt,at,St)?{segmentGroup:new an(nt.segments,Ju(nt,at,St,nt.children)),slicedSegments:at}:{segmentGroup:new an(nt.segments,nt.children),slicedSegments:at}}function Ju(nt,Ct,at,St){const pi={};for(const zi of at)if(Qd(nt,Ct,zi)&&!St[Ud(zi)]){const In=new an([],{});pi[Ud(zi)]=In}return{...St,...pi}}function lp(nt,Ct){const at={};at[he]=Ct;for(const St of nt)if(""===St.path&&Ud(St)!==he){const pi=new an([],{});at[Ud(St)]=pi}return at}function Qd(nt,Ct,at){return(!(nt.hasChildren()||Ct.length>0)||"full"!==at.pathMatch)&&""===at.path}class hh{}class Jc{constructor(Ct,at,St,pi,zi,In,qn){this.injector=Ct,this.configLoader=at,this.rootComponentType=St,this.config=pi,this.urlTree=zi,this.paramsInheritanceStrategy=In,this.urlSerializer=qn,this.applyRedirects=new kl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(Ct){return new d.wOt(4002,`'${Ct.segmentGroup}'`)}recognize(){const Ct=su(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(Ct).pipe((0,x.T)(at=>{const St=new Yl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},he,this.rootComponentType,null,{}),pi=new Ho(St,at),zi=new Bt("",pi),In=function na(nt,Ct,at=null,St=null){return sa(po(nt),Ct,at,St)}(St,[],this.urlTree.queryParams,this.urlTree.fragment);return In.queryParams=this.urlTree.queryParams,zi.url=this.urlSerializer.serialize(In),this.inheritParamsAndData(zi._root,null),{state:zi,tree:In}}))}match(Ct){return this.processSegmentGroup(this.injector,this.config,Ct,he).pipe((0,we.W)(St=>{if(St instanceof Ys)return this.urlTree=St.urlTree,this.match(St.urlTree.root);throw St instanceof Xo?this.noMatchError(St):St}))}inheritParamsAndData(Ct,at){const St=Ct.value,pi=ws(St,at,this.paramsInheritanceStrategy);St.params=Object.freeze(pi.params),St.data=Object.freeze(pi.data),Ct.children.forEach(zi=>this.inheritParamsAndData(zi,St))}processSegmentGroup(Ct,at,St,pi){return 0===St.segments.length&&St.hasChildren()?this.processChildren(Ct,at,St):this.processSegment(Ct,at,St,St.segments,pi,!0).pipe((0,x.T)(zi=>zi instanceof Ho?[zi]:[]))}processChildren(Ct,at,St){const pi=[];for(const zi of Object.keys(St.children))"primary"===zi?pi.unshift(zi):pi.push(zi);return(0,j.H)(pi).pipe((0,oe.H)(zi=>{const In=St.children[zi],qn=function ru(nt,Ct){const at=nt.filter(St=>Ud(St)===Ct);return at.push(...nt.filter(St=>Ud(St)!==Ct)),at}(at,zi);return this.processSegmentGroup(Ct,qn,In,zi)}),function G(nt,Ct){return(0,se.N)(function N(nt,Ct,at,St,pi){return(zi,In)=>{let qn=at,pr=Ct,Za=0;zi.subscribe((0,ie._)(In,ds=>{const La=Za++;pr=qn?nt(pr,ds,La):(qn=!0,ds),St&&In.next(pr)},pi&&(()=>{qn&&In.next(pr),In.complete()})))}}(nt,Ct,arguments.length>=2,!0))}((zi,In)=>(zi.push(...In),zi)),ee(null),function z(nt,Ct){const at=arguments.length>=2;return St=>St.pipe(nt?(0,Y.p)((pi,zi)=>nt(pi,zi,St)):_e.D,W(1),at?ee(Ct):re(()=>new _))}(),(0,Q.Z)(zi=>{if(null===zi)return ol(St);const In=xc(zi);return function Cp(nt){nt.sort((Ct,at)=>Ct.value.outlet===he?-1:at.value.outlet===he?1:Ct.value.outlet.localeCompare(at.value.outlet))}(In),(0,o.of)(In)}))}processSegment(Ct,at,St,pi,zi,In){return(0,j.H)(at).pipe((0,oe.H)(qn=>this.processSegmentAgainstRoute(qn._injector??Ct,at,qn,St,pi,zi,In).pipe((0,we.W)(pr=>{if(pr instanceof Xo)return(0,o.of)(null);throw pr}))),be(qn=>!!qn),(0,we.W)(qn=>{if(Ls(qn))return function sc(nt,Ct,at){return 0===Ct.length&&!nt.children[at]}(St,pi,zi)?(0,o.of)(new hh):ol(St);throw qn}))}processSegmentAgainstRoute(Ct,at,St,pi,zi,In,qn){return function Ic(nt,Ct,at,St){return!!(Ud(nt)===St||St!==he&&Qd(Ct,at,nt))&&id(Ct,nt,at).matched}(St,pi,zi,In)?void 0===St.redirectTo?this.matchSegmentAgainstRoute(Ct,pi,St,zi,In):this.allowRedirects&&qn?this.expandSegmentAgainstRouteUsingRedirect(Ct,pi,at,St,zi,In):ol(pi):ol(pi)}expandSegmentAgainstRouteUsingRedirect(Ct,at,St,pi,zi,In){const{matched:qn,consumedSegments:pr,positionalParamSegments:Za,remainingSegments:ds}=id(at,pi,zi);if(!qn)return ol(at);pi.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const La=this.applyRedirects.applyRedirectCommands(pr,pi.redirectTo,Za);return this.applyRedirects.lineralizeSegments(pi,La).pipe((0,Q.Z)(pd=>this.processSegment(Ct,St,at,pd.concat(ds),In,!1)))}matchSegmentAgainstRoute(Ct,at,St,pi,zi){const In=Gd(at,St,pi,Ct);return"**"===St.path&&(at.children={}),In.pipe((0,g.n)(qn=>qn.matched?this.getChildConfig(Ct=St._injector??Ct,St,pi).pipe((0,g.n)(({routes:pr})=>{const Za=St._loadedInjector??Ct,{consumedSegments:ds,remainingSegments:La,parameters:pd}=qn,bu=new Yl(ds,pd,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function lc(nt){return nt.data||{}}(St),Ud(St),St.component??St._loadedComponent??null,St,function $s(nt){return nt.resolve||{}}(St)),{segmentGroup:th,slicedSegments:gh}=su(at,ds,La,pr);if(0===gh.length&&th.hasChildren())return this.processChildren(Za,pr,th).pipe((0,x.T)(_h=>null===_h?null:new Ho(bu,_h)));if(0===pr.length&&0===gh.length)return(0,o.of)(new Ho(bu,[]));const dp=Ud(St)===zi;return this.processSegment(Za,pr,th,gh,dp?he:zi,!0).pipe((0,x.T)(_h=>new Ho(bu,_h instanceof Ho?[_h]:[])))})):ol(at)))}getChildConfig(Ct,at,St){return at.children?(0,o.of)({routes:at.children,injector:Ct}):at.loadChildren?void 0!==at._loadedRoutes?(0,o.of)({routes:at._loadedRoutes,injector:at._loadedInjector}):function ea(nt,Ct,at,St){const pi=Ct.canLoad;if(void 0===pi||0===pi.length)return(0,o.of)(!0);const zi=pi.map(In=>{const qn=Ol(In,nt);return Nt(function Un(nt){return nt&&zt(nt.canLoad)}(qn)?qn.canLoad(Ct,at):(0,d.N4e)(nt,()=>qn(Ct,at)))});return(0,o.of)(zi).pipe(Cs(),Wa())}(Ct,at,St).pipe((0,Q.Z)(pi=>pi?this.configLoader.loadChildren(Ct,at).pipe((0,me.M)(zi=>{at._loadedRoutes=zi.routes,at._loadedInjector=zi.injector})):function ml(nt){return(0,b.$)(Mo(!1,Nn.GuardRejected))}())):(0,o.of)({routes:[],injector:Ct})}}function Yp(nt){const Ct=nt.value.routeConfig;return Ct&&""===Ct.path}function xc(nt){const Ct=[],at=new Set;for(const St of nt){if(!Yp(St)){Ct.push(St);continue}const pi=Ct.find(zi=>St.value.routeConfig===zi.value.routeConfig);void 0!==pi?(pi.children.push(...St.children),at.add(pi)):Ct.push(St)}for(const St of at){const pi=xc(St.children);Ct.push(new Ho(St.value,pi))}return Ct.filter(St=>!at.has(St))}function Qt(nt){const Ct=nt.children.map(at=>Qt(at)).flat();return[nt,...Ct]}function ir(nt){return(0,g.n)(Ct=>{const at=nt(Ct);return at?(0,j.H)(at).pipe((0,x.T)(()=>Ct)):(0,o.of)(Ct)})}let Yr=(()=>{class nt{buildTitle(at){let St,pi=at.root;for(;void 0!==pi;)St=this.getResolvedTitleForRoute(pi)??St,pi=pi.children.find(zi=>zi.outlet===he);return St}getResolvedTitleForRoute(at){return at.data[Ie]}static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:()=>(0,d.WQX)(Ir),providedIn:"root"})}return nt})(),Ir=(()=>{class nt extends Yr{constructor(at){super(),this.title=at}updateTitle(at){const St=this.buildTitle(at);void 0!==St&&this.title.setTitle(St)}static#e=this.\u0275fac=function(St){return new(St||nt)(d.KVO(Ee.hE))};static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})();const pa=new d.nKC("",{providedIn:"root",factory:()=>({})}),fa=new d.nKC("");let eo=(()=>{class nt{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,d.WQX)(d.Ql9)}loadComponent(at){if(this.componentLoaders.get(at))return this.componentLoaders.get(at);if(at._loadedComponent)return(0,o.of)(at._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(at);const St=Nt(at.loadComponent()).pipe((0,x.T)(Tl),(0,me.M)(zi=>{this.onLoadEndListener&&this.onLoadEndListener(at),at._loadedComponent=zi}),(0,q.j)(()=>{this.componentLoaders.delete(at)})),pi=new w.G(St,()=>new f.B).pipe((0,ye.B)());return this.componentLoaders.set(at,pi),pi}loadChildren(at,St){if(this.childrenLoaders.get(St))return this.childrenLoaders.get(St);if(St._loadedRoutes)return(0,o.of)({routes:St._loadedRoutes,injector:St._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(St);const zi=function Oo(nt,Ct,at,St){return Nt(nt.loadChildren()).pipe((0,x.T)(Tl),(0,Q.Z)(pi=>pi instanceof d.Co$||Array.isArray(pi)?(0,o.of)(pi):(0,j.H)(Ct.compileModuleAsync(pi))),(0,x.T)(pi=>{St&&St(nt);let zi,In,qn=!1;return Array.isArray(pi)?(In=pi,!0):(zi=pi.create(at).injector,In=zi.get(fa,[],{optional:!0,self:!0}).flat()),{routes:In.map(Il),injector:zi}}))}(St,this.compiler,at,this.onLoadEndListener).pipe((0,q.j)(()=>{this.childrenLoaders.delete(St)})),In=new w.G(zi,()=>new f.B).pipe((0,ye.B)());return this.childrenLoaders.set(St,In),In}static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})();function Tl(nt){return function Fs(nt){return nt&&"object"==typeof nt&&"default"in nt}(nt)?nt.default:nt}let Rs=(()=>{class nt{static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:()=>(0,d.WQX)(Qc),providedIn:"root"})}return nt})(),Qc=(()=>{class nt{shouldProcessUrl(at){return!0}extract(at){return at}merge(at,St){return at}static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})();const ut=new d.nKC(""),Mi=new d.nKC("");function Gt(nt,Ct,at){const St=nt.get(Mi),pi=nt.get(I.qQ);return nt.get(d.SKi).runOutsideAngular(()=>{if(!pi.startViewTransition||St.skipNextTransition)return St.skipNextTransition=!1,new Promise(Za=>setTimeout(Za));let zi;const In=new Promise(Za=>{zi=Za}),qn=pi.startViewTransition(()=>(zi(),function hi(nt){return new Promise(Ct=>{(0,d.mal)(Ct,{injector:nt})})}(nt))),{onViewTransitionCreated:pr}=St;return pr&&(0,d.N4e)(nt,()=>pr({transition:qn,from:Ct,to:at})),In})}let gn=(()=>{class nt{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new f.B,this.transitionAbortSubject=new f.B,this.configLoader=(0,d.WQX)(eo),this.environmentInjector=(0,d.WQX)(d.uvJ),this.urlSerializer=(0,d.WQX)(Ti),this.rootContexts=(0,d.WQX)(El),this.location=(0,d.WQX)(I.aZ),this.inputBindingEnabled=null!==(0,d.WQX)(Pa,{optional:!0}),this.titleStrategy=(0,d.WQX)(Yr),this.options=(0,d.WQX)(pa,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,d.WQX)(Rs),this.createViewTransition=(0,d.WQX)(ut,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,o.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=pi=>this.events.next(new $o(pi)),this.configLoader.onLoadStartListener=pi=>this.events.next(new ia(pi))}complete(){this.transitions?.complete()}handleNavigationRequest(at){const St=++this.navigationId;this.transitions?.next({...this.transitions.value,...at,id:St})}setupNavigations(at,St,pi){return this.transitions=new E.t({id:0,currentUrlTree:St,currentRawUrl:St,extractedUrl:this.urlHandlingStrategy.extract(St),urlAfterRedirects:this.urlHandlingStrategy.extract(St),rawUrl:St,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ri,restoredState:null,currentSnapshot:pi.snapshot,targetSnapshot:null,currentRouterState:pi,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Y.p)(zi=>0!==zi.id),(0,x.T)(zi=>({...zi,extractedUrl:this.urlHandlingStrategy.extract(zi.rawUrl)})),(0,g.n)(zi=>{let In=!1,qn=!1;return(0,o.of)(zi).pipe((0,g.n)(pr=>{if(this.navigationId>zi.id)return this.cancelNavigationTransition(zi,"",Nn.SupersededByNewNavigation),O.w;this.currentTransition=zi,this.currentNavigation={id:pr.id,initialUrl:pr.rawUrl,extractedUrl:pr.extractedUrl,trigger:pr.source,extras:pr.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Za=!at.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!Za&&"reload"!==(pr.extras.onSameUrlNavigation??at.onSameUrlNavigation)){const La="";return this.events.next(new ha(pr.id,this.urlSerializer.serialize(pr.rawUrl),La,En.IgnoredSameUrlNavigation)),pr.resolve(null),O.w}if(this.urlHandlingStrategy.shouldProcessUrl(pr.rawUrl))return(0,o.of)(pr).pipe((0,g.n)(La=>{const pd=this.transitions?.getValue();return this.events.next(new ji(La.id,this.urlSerializer.serialize(La.extractedUrl),La.source,La.restoredState)),pd!==this.transitions?.getValue()?O.w:Promise.resolve(La)}),function et(nt,Ct,at,St,pi,zi){return(0,Q.Z)(In=>function zc(nt,Ct,at,St,pi,zi,In="emptyOnly"){return new Jc(nt,Ct,at,St,pi,In,zi).recognize()}(nt,Ct,at,St,In.extractedUrl,pi,zi).pipe((0,x.T)(({state:qn,tree:pr})=>({...In,targetSnapshot:qn,urlAfterRedirects:pr}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,at.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,me.M)(La=>{zi.targetSnapshot=La.targetSnapshot,zi.urlAfterRedirects=La.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:La.urlAfterRedirects};const pd=new Fa(La.id,this.urlSerializer.serialize(La.extractedUrl),this.urlSerializer.serialize(La.urlAfterRedirects),La.targetSnapshot);this.events.next(pd)}));if(Za&&this.urlHandlingStrategy.shouldProcessUrl(pr.currentRawUrl)){const{id:La,extractedUrl:pd,source:bu,restoredState:th,extras:gh}=pr,dp=new ji(La,this.urlSerializer.serialize(pd),bu,th);this.events.next(dp);const _h=Ms(this.rootComponentType).snapshot;return this.currentTransition=zi={...pr,targetSnapshot:_h,urlAfterRedirects:pd,extras:{...gh,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=pd,(0,o.of)(zi)}{const La="";return this.events.next(new ha(pr.id,this.urlSerializer.serialize(pr.extractedUrl),La,En.IgnoredByUrlHandlingStrategy)),pr.resolve(null),O.w}}),(0,me.M)(pr=>{const Za=new Ya(pr.id,this.urlSerializer.serialize(pr.extractedUrl),this.urlSerializer.serialize(pr.urlAfterRedirects),pr.targetSnapshot);this.events.next(Za)}),(0,x.T)(pr=>(this.currentTransition=zi={...pr,guards:yc(pr.targetSnapshot,pr.currentSnapshot,this.rootContexts)},zi)),function ou(nt,Ct){return(0,Q.Z)(at=>{const{targetSnapshot:St,currentSnapshot:pi,guards:{canActivateChecks:zi,canDeactivateChecks:In}}=at;return 0===In.length&&0===zi.length?(0,o.of)({...at,guardsResult:!0}):function uh(nt,Ct,at,St){return(0,j.H)(nt).pipe((0,Q.Z)(pi=>function dr(nt,Ct,at,St,pi){const zi=Ct&&Ct.routeConfig?Ct.routeConfig.canDeactivate:null;if(!zi||0===zi.length)return(0,o.of)(!0);const In=zi.map(qn=>{const pr=ql(Ct)??pi,Za=Ol(qn,pr);return Nt(function ed(nt){return nt&&zt(nt.canDeactivate)}(Za)?Za.canDeactivate(nt,Ct,at,St):(0,d.N4e)(pr,()=>Za(nt,Ct,at,St))).pipe(be())});return(0,o.of)(In).pipe(Cs())}(pi.component,pi.route,at,Ct,St)),be(pi=>!0!==pi,!0))}(In,St,pi,nt).pipe((0,Q.Z)(qn=>qn&&function Yi(nt){return"boolean"==typeof nt}(qn)?function Ve(nt,Ct,at,St){return(0,j.H)(Ct).pipe((0,oe.H)(pi=>(0,v.x)(function Yt(nt,Ct){return null!==nt&&Ct&&Ct(new mo(nt)),(0,o.of)(!0)}(pi.route.parent,St),function qe(nt,Ct){return null!==nt&&Ct&&Ct(new Jl(nt)),(0,o.of)(!0)}(pi.route,St),function _n(nt,Ct,at){const St=Ct[Ct.length-1],zi=Ct.slice(0,Ct.length-1).reverse().map(In=>function yd(nt){const Ct=nt.routeConfig?nt.routeConfig.canActivateChild:null;return Ct&&0!==Ct.length?{node:nt,guards:Ct}:null}(In)).filter(In=>null!==In).map(In=>(0,h.v)(()=>{const qn=In.guards.map(pr=>{const Za=ql(In.node)??at,ds=Ol(pr,Za);return Nt(function No(nt){return nt&&zt(nt.canActivateChild)}(ds)?ds.canActivateChild(St,nt):(0,d.N4e)(Za,()=>ds(St,nt))).pipe(be())});return(0,o.of)(qn).pipe(Cs())}));return(0,o.of)(zi).pipe(Cs())}(nt,pi.path,at),function Fi(nt,Ct,at){const St=Ct.routeConfig?Ct.routeConfig.canActivate:null;if(!St||0===St.length)return(0,o.of)(!0);const pi=St.map(zi=>(0,h.v)(()=>{const In=ql(Ct)??at,qn=Ol(zi,In);return Nt(function vo(nt){return nt&&zt(nt.canActivate)}(qn)?qn.canActivate(Ct,nt):(0,d.N4e)(In,()=>qn(Ct,nt))).pipe(be())}));return(0,o.of)(pi).pipe(Cs())}(nt,pi.route,at))),be(pi=>!0!==pi,!0))}(St,zi,nt,Ct):(0,o.of)(qn)),(0,x.T)(qn=>({...at,guardsResult:qn})))})}(this.environmentInjector,pr=>this.events.next(pr)),(0,me.M)(pr=>{if(zi.guardsResult=pr.guardsResult,ar(pr.guardsResult))throw qs(0,pr.guardsResult);const Za=new _o(pr.id,this.urlSerializer.serialize(pr.extractedUrl),this.urlSerializer.serialize(pr.urlAfterRedirects),pr.targetSnapshot,!!pr.guardsResult);this.events.next(Za)}),(0,Y.p)(pr=>!!pr.guardsResult||(this.cancelNavigationTransition(pr,"",Nn.GuardRejected),!1)),ir(pr=>{if(pr.guards.canActivateChecks.length)return(0,o.of)(pr).pipe((0,me.M)(Za=>{const ds=new Yo(Za.id,this.urlSerializer.serialize(Za.extractedUrl),this.urlSerializer.serialize(Za.urlAfterRedirects),Za.targetSnapshot);this.events.next(ds)}),(0,g.n)(Za=>{let ds=!1;return(0,o.of)(Za).pipe(function Ot(nt,Ct){return(0,Q.Z)(at=>{const{targetSnapshot:St,guards:{canActivateChecks:pi}}=at;if(!pi.length)return(0,o.of)(at);const zi=new Set(pi.map(pr=>pr.route)),In=new Set;for(const pr of zi)if(!In.has(pr))for(const Za of Qt(pr))In.add(Za);let qn=0;return(0,j.H)(In).pipe((0,oe.H)(pr=>zi.has(pr)?function Ei(nt,Ct,at,St){const pi=nt.routeConfig,zi=nt._resolve;return void 0!==pi?.title&&!Kn(pi)&&(zi[Ie]=pi.title),function on(nt,Ct,at,St){const pi=tt(nt);if(0===pi.length)return(0,o.of)({});const zi={};return(0,j.H)(pi).pipe((0,Q.Z)(In=>function Bn(nt,Ct,at,St){const pi=ql(Ct)??St,zi=Ol(nt,pi);return Nt(zi.resolve?zi.resolve(Ct,at):(0,d.N4e)(pi,()=>zi(Ct,at)))}(nt[In],Ct,at,St).pipe(be(),(0,me.M)(qn=>{zi[In]=qn}))),W(1),(0,X.u)(zi),(0,we.W)(In=>Ls(In)?O.w:(0,b.$)(In)))}(zi,nt,Ct,St).pipe((0,x.T)(In=>(nt._resolvedData=In,nt.data=ws(nt,nt.parent,at).resolve,null)))}(pr,St,nt,Ct):(pr.data=ws(pr,pr.parent,nt).resolve,(0,o.of)(void 0))),(0,me.M)(()=>qn++),W(1),(0,Q.Z)(pr=>qn===In.size?(0,o.of)(at):O.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,me.M)({next:()=>ds=!0,complete:()=>{ds||this.cancelNavigationTransition(Za,"",Nn.NoDataFromResolver)}}))}),(0,me.M)(Za=>{const ds=new Va(Za.id,this.urlSerializer.serialize(Za.extractedUrl),this.urlSerializer.serialize(Za.urlAfterRedirects),Za.targetSnapshot);this.events.next(ds)}))}),ir(pr=>{const Za=ds=>{const La=[];ds.routeConfig?.loadComponent&&!ds.routeConfig._loadedComponent&&La.push(this.configLoader.loadComponent(ds.routeConfig).pipe((0,me.M)(pd=>{ds.component=pd}),(0,x.T)(()=>{})));for(const pd of ds.children)La.push(...Za(pd));return La};return(0,R.z)(Za(pr.targetSnapshot.root)).pipe(ee(null),(0,C.s)(1))}),ir(()=>this.afterPreactivation()),(0,g.n)(()=>{const{currentSnapshot:pr,targetSnapshot:Za}=zi,ds=this.createViewTransition?.(this.environmentInjector,pr.root,Za.root);return ds?(0,j.H)(ds).pipe((0,x.T)(()=>zi)):(0,o.of)(zi)}),(0,x.T)(pr=>{const Za=function Aa(nt,Ct,at){const St=Ba(nt,Ct._root,at?at._root:void 0);return new jl(St,Ct)}(at.routeReuseStrategy,pr.targetSnapshot,pr.currentRouterState);return this.currentTransition=zi={...pr,targetRouterState:Za},this.currentNavigation.targetRouterState=Za,zi}),(0,me.M)(()=>{this.events.next(new Ha)}),((nt,Ct,at,St)=>(0,x.T)(pi=>(new vc(Ct,pi.targetRouterState,pi.currentRouterState,at,St).activate(nt),pi)))(this.rootContexts,at.routeReuseStrategy,pr=>this.events.next(pr),this.inputBindingEnabled),(0,C.s)(1),(0,me.M)({next:pr=>{In=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new wn(pr.id,this.urlSerializer.serialize(pr.extractedUrl),this.urlSerializer.serialize(pr.urlAfterRedirects))),this.titleStrategy?.updateTitle(pr.targetRouterState.snapshot),pr.resolve(!0)},complete:()=>{In=!0}}),(0,xe.Q)(this.transitionAbortSubject.pipe((0,me.M)(pr=>{throw pr}))),(0,q.j)(()=>{!In&&!qn&&this.cancelNavigationTransition(zi,"",Nn.SupersededByNewNavigation),this.currentTransition?.id===zi.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,we.W)(pr=>{if(qn=!0,gs(pr))this.events.next(new _r(zi.id,this.urlSerializer.serialize(zi.extractedUrl),pr.message,pr.cancellationCode)),function Ml(nt){return gs(nt)&&ar(nt.url)}(pr)?this.events.next(new us(pr.url)):zi.resolve(!1);else{this.events.next(new aa(zi.id,this.urlSerializer.serialize(zi.extractedUrl),pr,zi.targetSnapshot??void 0));try{zi.resolve(at.errorHandler(pr))}catch(Za){this.options.resolveNavigationPromiseOnError?zi.resolve(!1):zi.reject(Za)}}return O.w}))}))}cancelNavigationTransition(at,St,pi){const zi=new _r(at.id,this.urlSerializer.serialize(at.extractedUrl),St,pi);this.events.next(zi),at.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})();function rr(nt){return nt!==ri}let Tr=(()=>{class nt{static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:()=>(0,d.WQX)(Ca),providedIn:"root"})}return nt})();class Da{shouldDetach(Ct){return!1}store(Ct,at){}shouldAttach(Ct){return!1}retrieve(Ct){return null}shouldReuseRoute(Ct,at){return Ct.routeConfig===at.routeConfig}}let Ca=(()=>{class nt extends Da{static#e=this.\u0275fac=(()=>{let at;return function(pi){return(at||(at=d.xGo(nt)))(pi||nt)}})();static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})(),ts=(()=>{class nt{static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:()=>(0,d.WQX)(zn),providedIn:"root"})}return nt})(),zn=(()=>{class nt extends ts{constructor(){super(...arguments),this.location=(0,d.WQX)(I.aZ),this.urlSerializer=(0,d.WQX)(Ti),this.options=(0,d.WQX)(pa,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,d.WQX)(Rs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new li,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ms(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(at){return this.location.subscribe(St=>{"popstate"===St.type&&at(St.url,St.state)})}handleRouterEvent(at,St){if(at instanceof ji)this.stateMemento=this.createStateMemento();else if(at instanceof ha)this.rawUrlTree=St.initialUrl;else if(at instanceof Fa){if("eager"===this.urlUpdateStrategy&&!St.extras.skipLocationChange){const pi=this.urlHandlingStrategy.merge(St.finalUrl,St.initialUrl);this.setBrowserUrl(pi,St)}}else at instanceof Ha?(this.currentUrlTree=St.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(St.finalUrl,St.initialUrl),this.routerState=St.targetRouterState,"deferred"===this.urlUpdateStrategy&&(St.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,St))):at instanceof _r&&(at.code===Nn.GuardRejected||at.code===Nn.NoDataFromResolver)?this.restoreHistory(St):at instanceof aa?this.restoreHistory(St,!0):at instanceof wn&&(this.lastSuccessfulId=at.id,this.currentPageId=this.browserPageId)}setBrowserUrl(at,St){const pi=this.urlSerializer.serialize(at);if(this.location.isCurrentPathEqualTo(pi)||St.extras.replaceUrl){const In={...St.extras.state,...this.generateNgRouterState(St.id,this.browserPageId)};this.location.replaceState(pi,"",In)}else{const zi={...St.extras.state,...this.generateNgRouterState(St.id,this.browserPageId+1)};this.location.go(pi,"",zi)}}restoreHistory(at,St=!1){if("computed"===this.canceledNavigationResolution){const zi=this.currentPageId-this.browserPageId;0!==zi?this.location.historyGo(zi):this.currentUrlTree===at.finalUrl&&0===zi&&(this.resetState(at),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(St&&this.resetState(at),this.resetUrlToCurrentUrlTree())}resetState(at){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,at.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(at,St){return"computed"===this.canceledNavigationResolution?{navigationId:at,\u0275routerPageId:St}:{navigationId:at}}static#e=this.\u0275fac=(()=>{let at;return function(pi){return(at||(at=d.xGo(nt)))(pi||nt)}})();static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})();var bo=function(nt){return nt[nt.COMPLETE=0]="COMPLETE",nt[nt.FAILED=1]="FAILED",nt[nt.REDIRECTING=2]="REDIRECTING",nt}(bo||{});function Ss(nt,Ct){nt.events.pipe((0,Y.p)(at=>at instanceof wn||at instanceof _r||at instanceof aa||at instanceof ha),(0,x.T)(at=>at instanceof wn||at instanceof ha?bo.COMPLETE:at instanceof _r&&(at.code===Nn.Redirect||at.code===Nn.SupersededByNewNavigation)?bo.REDIRECTING:bo.FAILED),(0,Y.p)(at=>at!==bo.REDIRECTING),(0,C.s)(1)).subscribe(()=>{Ct()})}function wa(nt){throw nt}const Fo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ia={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let vr=(()=>{class nt{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,d.WQX)(d.H3F),this.stateManager=(0,d.WQX)(ts),this.options=(0,d.WQX)(pa,{optional:!0})||{},this.pendingTasks=(0,d.WQX)(d.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,d.WQX)(gn),this.urlSerializer=(0,d.WQX)(Ti),this.location=(0,d.WQX)(I.aZ),this.urlHandlingStrategy=(0,d.WQX)(Rs),this._events=new f.B,this.errorHandler=this.options.errorHandler||wa,this.navigated=!1,this.routeReuseStrategy=(0,d.WQX)(Tr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,d.WQX)(fa,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,d.WQX)(Pa,{optional:!0}),this.eventsSubscription=new k.yU,this.isNgZoneEnabled=(0,d.WQX)(d.SKi)instanceof d.SKi&&d.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:at=>{this.console.warn(at)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const at=this.navigationTransitions.events.subscribe(St=>{try{const pi=this.navigationTransitions.currentTransition,zi=this.navigationTransitions.currentNavigation;if(null!==pi&&null!==zi)if(this.stateManager.handleRouterEvent(St,zi),St instanceof _r&&St.code!==Nn.Redirect&&St.code!==Nn.SupersededByNewNavigation)this.navigated=!0;else if(St instanceof wn)this.navigated=!0;else if(St instanceof us){const In=this.urlHandlingStrategy.merge(St.url,pi.currentRawUrl),qn={info:pi.extras.info,skipLocationChange:pi.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||rr(pi.source)};this.scheduleNavigation(In,ri,null,qn,{resolve:pi.resolve,reject:pi.reject,promise:pi.promise})}(function oa(nt){return!(nt instanceof Ha||nt instanceof us)})(St)&&this._events.next(St)}catch(pi){this.navigationTransitions.transitionAbortSubject.next(pi)}});this.eventsSubscription.add(at)}resetRootComponentType(at){this.routerState.root.component=at,this.navigationTransitions.rootComponentType=at}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ri,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((at,St)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(at,"popstate",St)},0)})}navigateToSyncWithBrowser(at,St,pi){const zi={replaceUrl:!0},In=pi?.navigationId?pi:null;if(pi){const pr={...pi};delete pr.navigationId,delete pr.\u0275routerPageId,0!==Object.keys(pr).length&&(zi.state=pr)}const qn=this.parseUrl(at);this.scheduleNavigation(qn,St,In,zi)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(at){this.config=at.map(Il),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(at,St={}){const{relativeTo:pi,queryParams:zi,fragment:In,queryParamsHandling:qn,preserveFragment:pr}=St,Za=pr?this.currentUrlTree.fragment:In;let La,ds=null;switch(qn){case"merge":ds={...this.currentUrlTree.queryParams,...zi};break;case"preserve":ds=this.currentUrlTree.queryParams;break;default:ds=zi||null}null!==ds&&(ds=this.removeEmptyProps(ds));try{La=po(pi?pi.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof at[0]||!at[0].startsWith("/"))&&(at=[]),La=this.currentUrlTree.root}return sa(La,at,ds,Za??null)}navigateByUrl(at,St={skipLocationChange:!1}){const pi=ar(at)?at:this.parseUrl(at),zi=this.urlHandlingStrategy.merge(pi,this.rawUrlTree);return this.scheduleNavigation(zi,ri,null,St)}navigate(at,St={skipLocationChange:!1}){return function ba(nt){for(let Ct=0;Ct<nt.length;Ct++)if(null==nt[Ct])throw new d.wOt(4008,!1)}(at),this.navigateByUrl(this.createUrlTree(at,St),St)}serializeUrl(at){return this.urlSerializer.serialize(at)}parseUrl(at){try{return this.urlSerializer.parse(at)}catch{return this.urlSerializer.parse("/")}}isActive(at,St){let pi;if(pi=!0===St?{...Fo}:!1===St?{...Ia}:St,ar(at))return Lt(this.currentUrlTree,at,pi);const zi=this.parseUrl(at);return Lt(this.currentUrlTree,zi,pi)}removeEmptyProps(at){return Object.entries(at).reduce((St,[pi,zi])=>(null!=zi&&(St[pi]=zi),St),{})}scheduleNavigation(at,St,pi,zi,In){if(this.disposed)return Promise.resolve(!1);let qn,pr,Za;In?(qn=In.resolve,pr=In.reject,Za=In.promise):Za=new Promise((La,pd)=>{qn=La,pr=pd});const ds=this.pendingTasks.add();return Ss(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ds))}),this.navigationTransitions.handleNavigationRequest({source:St,restoredState:pi,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:at,extras:zi,resolve:qn,reject:pr,promise:Za,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Za.catch(La=>Promise.reject(La))}static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})(),zs=(()=>{class nt{constructor(at,St,pi,zi,In,qn){this.router=at,this.route=St,this.tabIndexAttribute=pi,this.renderer=zi,this.el=In,this.locationStrategy=qn,this.href=null,this.commands=null,this.onChanges=new f.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const pr=In.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===pr||"area"===pr,this.isAnchorElement?this.subscription=at.events.subscribe(Za=>{Za instanceof wn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(at){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",at)}ngOnChanges(at){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(at){null!=at?(this.commands=Array.isArray(at)?at:[at],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(at,St,pi,zi,In){const qn=this.urlTree;return!!(null===qn||this.isAnchorElement&&(0!==at||St||pi||zi||In||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(qn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const at=this.urlTree;this.href=null!==at&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(at)):null;const St=null===this.href?null:(0,d.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",St)}applyAttributeValue(at,St){const pi=this.renderer,zi=this.el.nativeElement;null!==St?pi.setAttribute(zi,at,St):pi.removeAttribute(zi,at)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(St){return new(St||nt)(d.rXU(vr),d.rXU(hs),d.kS0("tabindex"),d.rXU(d.sFG),d.rXU(d.aKT),d.rXU(I.hb))};static#t=this.\u0275dir=d.FsC({type:nt,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(St,pi){1&St&&d.bIt("click",function(In){return pi.onClick(In.button,In.ctrlKey,In.shiftKey,In.altKey,In.metaKey)}),2&St&&d.BMQ("target",pi.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[d.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",d.L39],skipLocationChange:[d.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",d.L39],replaceUrl:[d.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",d.L39],routerLink:"routerLink"},standalone:!0,features:[d.GFd,d.OA$]})}return nt})(),Wn=(()=>{class nt{get isActive(){return this._isActive}constructor(at,St,pi,zi,In){this.router=at,this.element=St,this.renderer=pi,this.cdr=zi,this.link=In,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new d.bkB,this.routerEventsSubscription=at.events.subscribe(qn=>{qn instanceof wn&&this.update()})}ngAfterContentInit(){(0,o.of)(this.links.changes,(0,o.of)(null)).pipe((0,ge.U)()).subscribe(at=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const at=[...this.links.toArray(),this.link].filter(St=>!!St).map(St=>St.onChanges);this.linkInputChangesSubscription=(0,j.H)(at).pipe((0,ge.U)()).subscribe(St=>{this._isActive!==this.isLinkActive(this.router)(St)&&this.update()})}set routerLinkActive(at){const St=Array.isArray(at)?at:at.split(" ");this.classes=St.filter(pi=>!!pi)}ngOnChanges(at){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const at=this.hasActiveLinks();this.classes.forEach(St=>{at?this.renderer.addClass(this.element.nativeElement,St):this.renderer.removeClass(this.element.nativeElement,St)}),at&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==at&&(this._isActive=at,this.cdr.markForCheck(),this.isActiveChange.emit(at))})}isLinkActive(at){const St=function nd(nt){return!!nt.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return pi=>{const zi=pi.urlTree;return!!zi&&at.isActive(zi,St)}}hasActiveLinks(){const at=this.isLinkActive(this.router);return this.link&&at(this.link)||this.links.some(at)}static#e=this.\u0275fac=function(St){return new(St||nt)(d.rXU(vr),d.rXU(d.aKT),d.rXU(d.sFG),d.rXU(d.gRc),d.rXU(zs,8))};static#t=this.\u0275dir=d.FsC({type:nt,selectors:[["","routerLinkActive",""]],contentQueries:function(St,pi,zi){if(1&St&&d.wni(zi,zs,5),2&St){let In;d.mGM(In=d.lsd())&&(pi.links=In)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[d.OA$]})}return nt})();class Zr{}let tl=(()=>{class nt{preload(at,St){return St().pipe((0,we.W)(()=>(0,o.of)(null)))}static#e=this.\u0275fac=function(St){return new(St||nt)};static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})(),Zc=(()=>{class nt{constructor(at,St,pi,zi,In){this.router=at,this.injector=pi,this.preloadingStrategy=zi,this.loader=In}setUpPreloading(){this.subscription=this.router.events.pipe((0,Y.p)(at=>at instanceof wn),(0,oe.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(at,St){const pi=[];for(const zi of St){zi.providers&&!zi._injector&&(zi._injector=(0,d.Ol2)(zi.providers,at,`Route: ${zi.path}`));const In=zi._injector??at,qn=zi._loadedInjector??In;(zi.loadChildren&&!zi._loadedRoutes&&void 0===zi.canLoad||zi.loadComponent&&!zi._loadedComponent)&&pi.push(this.preloadConfig(In,zi)),(zi.children||zi._loadedRoutes)&&pi.push(this.processRoutes(qn,zi.children??zi._loadedRoutes))}return(0,j.H)(pi).pipe((0,ge.U)())}preloadConfig(at,St){return this.preloadingStrategy.preload(St,()=>{let pi;pi=St.loadChildren&&void 0===St.canLoad?this.loader.loadChildren(at,St):(0,o.of)(null);const zi=pi.pipe((0,Q.Z)(In=>null===In?(0,o.of)(void 0):(St._loadedRoutes=In.routes,St._loadedInjector=In.injector,this.processRoutes(In.injector??at,In.routes))));if(St.loadComponent&&!St._loadedComponent){const In=this.loader.loadComponent(St);return(0,j.H)([zi,In]).pipe((0,ge.U)())}return zi})}static#e=this.\u0275fac=function(St){return new(St||nt)(d.KVO(vr),d.KVO(d.Ql9),d.KVO(d.uvJ),d.KVO(Zr),d.KVO(eo))};static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})();const lo=new d.nKC("");let Al=(()=>{class nt{constructor(at,St,pi,zi,In={}){this.urlSerializer=at,this.transitions=St,this.viewportScroller=pi,this.zone=zi,this.options=In,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,d.WQX)(d.uvJ),In.scrollPositionRestoration||="disabled",In.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(at=>{at instanceof ji?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=at.navigationTrigger,this.restoredId=at.restoredState?at.restoredState.navigationId:0):at instanceof wn?(this.lastId=at.id,this.scheduleScrollEvent(at,this.urlSerializer.parse(at.urlAfterRedirects).fragment)):at instanceof ha&&at.code===En.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(at,this.urlSerializer.parse(at.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(at=>{at instanceof Ao&&(at.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(at.position):at.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(at.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(at,St){var pi=this;this.zone.runOutsideAngular((0,r.A)(function*(){yield new Promise(zi=>{setTimeout(()=>{zi()}),(0,d.mal)(()=>{zi()},{injector:pi.environmentInjector})}),pi.zone.run(()=>{pi.transitions.events.next(new Ao(at,"popstate"===pi.lastSource?pi.store[pi.restoredId]:null,St))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(St){d.QTQ()};static#t=this.\u0275prov=d.jDH({token:nt,factory:nt.\u0275fac})}return nt})();function Ks(nt,Ct){return{\u0275kind:nt,\u0275providers:Ct}}function $p(){const nt=(0,d.WQX)(d.zZn);return Ct=>{const at=nt.get(d.o8S);if(Ct!==at.components[0])return;const St=nt.get(vr),pi=nt.get(Qu);1===nt.get(Zd)&&St.initialNavigation(),nt.get(Gh,null,d.$GK.Optional)?.setUpPreloading(),nt.get(lo,null,d.$GK.Optional)?.init(),St.resetRootComponentType(at.componentTypes[0]),pi.closed||(pi.next(),pi.complete(),pi.unsubscribe())}}const Qu=new d.nKC("",{factory:()=>new f.B}),Zd=new d.nKC("",{providedIn:"root",factory:()=>1}),Gh=new d.nKC("");function qd(nt){return Ks(0,[{provide:Gh,useExisting:Zc},{provide:Zr,useExisting:nt}])}function sl(nt){return Ks(9,[{provide:ut,useValue:Gt},{provide:Mi,useValue:{skipNextTransition:!!nt?.skipInitialTransition,...nt}}])}const Ru=new d.nKC("ROUTER_FORROOT_GUARD"),_u=[I.aZ,{provide:Ti,useClass:ni},vr,El,{provide:hs,useFactory:function Vh(nt){return nt.routerState.root},deps:[vr]},eo,[]];let vu=(()=>{class nt{constructor(at){}static forRoot(at,St){return{ngModule:nt,providers:[_u,[],{provide:fa,multi:!0,useValue:at},{provide:Ru,useFactory:qu,deps:[[vr,new d.Xx1,new d.kdw]]},{provide:pa,useValue:St||{}},St?.useHash?{provide:I.hb,useClass:I.fw}:{provide:I.hb,useClass:I.Sm},{provide:lo,useFactory:()=>{const nt=(0,d.WQX)(I.Xr),Ct=(0,d.WQX)(d.SKi),at=(0,d.WQX)(pa),St=(0,d.WQX)(gn),pi=(0,d.WQX)(Ti);return at.scrollOffset&&nt.setOffset(at.scrollOffset),new Al(pi,St,nt,Ct,at)}},St?.preloadingStrategy?qd(St.preloadingStrategy).\u0275providers:[],St?.initialNavigation?lu(St):[],St?.bindToComponentInputs?Ks(8,[va,{provide:Pa,useExisting:va}]).\u0275providers:[],St?.enableViewTransitions?sl().\u0275providers:[],[{provide:eh,useFactory:$p},{provide:d.iLQ,multi:!0,useExisting:eh}]]}}static forChild(at){return{ngModule:nt,providers:[{provide:fa,multi:!0,useValue:at}]}}static#e=this.\u0275fac=function(St){return new(St||nt)(d.KVO(Ru,8))};static#t=this.\u0275mod=d.$C({type:nt});static#i=this.\u0275inj=d.G2t({})}return nt})();function qu(nt){return"guarded"}function lu(nt){return["disabled"===nt.initialNavigation?Ks(3,[{provide:d.hnV,multi:!0,useFactory:()=>{const Ct=(0,d.WQX)(vr);return()=>{Ct.setUpLocationChangeListener()}}},{provide:Zd,useValue:2}]).\u0275providers:[],"enabledBlocking"===nt.initialNavigation?Ks(2,[{provide:Zd,useValue:0},{provide:d.hnV,multi:!0,deps:[d.zZn],useFactory:Ct=>{const at=Ct.get(I.hj,Promise.resolve());return()=>at.then(()=>new Promise(St=>{const pi=Ct.get(vr),zi=Ct.get(Qu);Ss(pi,()=>{St(!0)}),Ct.get(gn).afterPreactivation=()=>(St(!0),zi.closed?(0,o.of)(void 0):zi),pi.initialNavigation()}))}}]).\u0275providers:[]]}const eh=new d.nKC("")},80357:(ei,rt,D)=>{"use strict";D.d(rt,{WJ:()=>ye,EI:()=>me});var r=D(54438),d=D(60177),L=D(59030),j=D(18810),o=D(33726),E=D(7673),R=D(28793),m=D(21413),_=D(71985),v=D(85343);const h=new _.c(v.l);var b=D(57786),O=D(96354),w=D(5964),f=D(25558),k=D(30017),I=D(98071),x=D(58750),g=D(39974);const F={connector:()=>new m.B};function Y(xe,ge=F){const{connector:Ee}=ge;return(0,g.N)((he,Ie)=>{const ce=Ee();(0,x.Tg)(xe(function C(xe){return new _.c(ge=>xe.subscribe(ge))}(ce))).subscribe(Ie),Ie.add(he.subscribe(ce))})}var ie=D(96697),ee=D(88141),re=D(91986);const ne="Service workers are disabled or not supported by this browser";class be{constructor(ge){if(this.serviceWorker=ge,ge){const he=(0,o.R)(ge,"controllerchange").pipe((0,O.T)(()=>ge.controller)),Ie=(0,L.v)(()=>(0,E.of)(ge.controller)),ce=(0,R.x)(Ie,he);this.worker=ce.pipe((0,w.p)(tt=>!!tt)),this.registration=this.worker.pipe((0,f.n)(()=>ge.getRegistration()));const We=(0,o.R)(ge,"message").pipe((0,O.T)(tt=>tt.data)).pipe((0,w.p)(tt=>tt&&tt.type)).pipe(function se(xe){return xe?ge=>Y(xe)(ge):ge=>function Q(xe,ge){const Ee=(0,I.T)(xe)?xe:()=>xe;return(0,I.T)(ge)?Y(ge,{connector:Ee}):he=>new k.G(he,Ee)}(new m.B)(ge)}());We.connect(),this.events=We}else this.worker=this.events=this.registration=function _e(xe){return(0,L.v)(()=>(0,j.$)(new Error(xe)))}(ne)}postMessage(ge,Ee){return this.worker.pipe((0,ie.s)(1),(0,ee.M)(he=>{he.postMessage({action:ge,...Ee})})).toPromise().then(()=>{})}postMessageWithOperation(ge,Ee,he){const Ie=this.waitForOperationCompleted(he),ce=this.postMessage(ge,Ee);return Promise.all([ce,Ie]).then(([,de])=>de)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(ge){let Ee;return Ee="string"==typeof ge?he=>he.type===ge:he=>ge.includes(he.type),this.events.pipe((0,w.p)(Ee))}nextEventOfType(ge){return this.eventsOfType(ge).pipe((0,ie.s)(1))}waitForOperationCompleted(ge){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,w.p)(Ee=>Ee.nonce===ge),(0,ie.s)(1),(0,O.T)(Ee=>{if(void 0!==Ee.result)return Ee.result;throw new Error(Ee.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let oe=(()=>{class xe{get isEnabled(){return this.sw.isEnabled}constructor(Ee){if(this.sw=Ee,this.pushManager=null,this.subscriptionChanges=new m.B,!Ee.isEnabled)return this.messages=h,this.notificationClicks=h,void(this.subscription=h);this.messages=this.sw.eventsOfType("PUSH").pipe((0,O.T)(Ie=>Ie.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,O.T)(Ie=>Ie.data)),this.pushManager=this.sw.registration.pipe((0,O.T)(Ie=>Ie.pushManager));const he=this.pushManager.pipe((0,f.n)(Ie=>Ie.getSubscription()));this.subscription=(0,b.h)(he,this.subscriptionChanges)}requestSubscription(Ee){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(ne));const he={userVisibleOnly:!0};let Ie=this.decodeBase64(Ee.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),ce=new Uint8Array(new ArrayBuffer(Ie.length));for(let de=0;de<Ie.length;de++)ce[de]=Ie.charCodeAt(de);return he.applicationServerKey=ce,this.pushManager.pipe((0,f.n)(de=>de.subscribe(he)),(0,ie.s)(1)).toPromise().then(de=>(this.subscriptionChanges.next(de),de))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,ie.s)(1),(0,f.n)(he=>{if(null===he)throw new Error("Not subscribed to push notifications.");return he.unsubscribe().then(Ie=>{if(!Ie)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(ne))}decodeBase64(Ee){return atob(Ee)}static#e=this.\u0275fac=function(he){return new(he||xe)(r.KVO(be))};static#t=this.\u0275prov=r.jDH({token:xe,factory:xe.\u0275fac})}return xe})(),me=(()=>{class xe{get isEnabled(){return this.sw.isEnabled}constructor(Ee){if(this.sw=Ee,!Ee.isEnabled)return this.versionUpdates=h,void(this.unrecoverable=h);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ne));const Ee=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:Ee},Ee)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ne));const Ee=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:Ee},Ee)}static#e=this.\u0275fac=function(he){return new(he||xe)(r.KVO(be))};static#t=this.\u0275prov=r.jDH({token:xe,factory:xe.\u0275fac})}return xe})();const we=new r.nKC("");function N(xe,ge,Ee,he){return()=>{if(!(0,d.UE)(he)||!("serviceWorker"in navigator)||!1===Ee.enabled)return;let Ie;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof Ee.registrationStrategy)Ie=Ee.registrationStrategy();else{const[de,...pe]=(Ee.registrationStrategy||"registerWhenStable:30000").split(":");switch(de){case"registerImmediately":Ie=(0,E.of)(null);break;case"registerWithDelay":Ie=G(+pe[0]||0);break;case"registerWhenStable":Ie=pe[0]?(0,b.h)(W(xe),G(+pe[0])):W(xe);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${Ee.registrationStrategy}`)}}xe.get(r.SKi).runOutsideAngular(()=>Ie.pipe((0,ie.s)(1)).subscribe(()=>navigator.serviceWorker.register(ge,{scope:Ee.scope}).catch(de=>console.error("Service worker registration failed with:",de))))}}function G(xe){return(0,E.of)(null).pipe((0,re.c)(xe))}function W(xe){return xe.get(r.o8S).isStable.pipe((0,w.p)(Ee=>Ee))}function z(xe,ge){return new be((0,d.UE)(ge)&&!1!==xe.enabled?navigator.serviceWorker:void 0)}class X{}function q(xe,ge={}){return(0,r.EmA)([oe,me,{provide:we,useValue:xe},{provide:X,useValue:ge},{provide:be,useFactory:z,deps:[X,r.Agw]},{provide:r.hnV,useFactory:N,deps:[r.zZn,we,X,r.Agw],multi:!0}])}let ye=(()=>{class xe{static register(Ee,he={}){return{ngModule:xe,providers:[q(Ee,he)]}}static#e=this.\u0275fac=function(he){return new(he||xe)};static#t=this.\u0275mod=r.$C({type:xe});static#i=this.\u0275inj=r.G2t({providers:[oe,me]})}return xe})()},19664:(ei,rt,D)=>{"use strict";D.d(rt,{Wr:()=>f,h:()=>G,D9:()=>N,c$:()=>me});var r=D(54438),d=D(7673),L=D(74402),j=D(27468),o=D(28793),E=D(59030),R=D(96697),m=D(21413),_=D(86129);class v extends m.B{constructor(z=1/0,X=1/0,q=_.U){super(),this._bufferSize=z,this._windowTime=X,this._timestampProvider=q,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=X===1/0,this._bufferSize=Math.max(1,z),this._windowTime=Math.max(1,X)}next(z){const{isStopped:X,_buffer:q,_infiniteTimeWindow:ye,_timestampProvider:xe,_windowTime:ge}=this;X||(q.push(z),!ye&&q.push(xe.now()+ge)),this._trimBuffer(),super.next(z)}_subscribe(z){this._throwIfClosed(),this._trimBuffer();const X=this._innerSubscribe(z),{_infiniteTimeWindow:q,_buffer:ye}=this,xe=ye.slice();for(let ge=0;ge<xe.length&&!z.closed;ge+=q?1:2)z.next(xe[ge]);return this._checkFinalizedStatuses(z),X}_trimBuffer(){const{_bufferSize:z,_timestampProvider:X,_buffer:q,_infiniteTimeWindow:ye}=this,xe=(ye?1:2)*z;if(z<1/0&&xe<q.length&&q.splice(0,q.length-xe),!ye){const ge=X.now();let Ee=0;for(let he=1;he<q.length&&q[he]<=ge;he+=2)Ee=he;Ee&&q.splice(0,Ee+1)}}}var h=D(97647);function s(W,z,X){let q,ye=!1;return W&&"object"==typeof W?({bufferSize:q=1/0,windowTime:z=1/0,refCount:ye=!1,scheduler:X}=W):q=W??1/0,(0,h.u)({connector:()=>new v(q,z,X),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ye})}var b=D(96354),O=D(70274),w=D(25558);class f{}let k=(()=>{class W extends f{getTranslation(X){return(0,d.of)({})}static \u0275fac=(()=>{let X;return function(ye){return(X||(X=r.xGo(W)))(ye||W)}})();static \u0275prov=r.jDH({token:W,factory:W.\u0275fac})}return W})();class I{}let x=(()=>{class W{handle(X){return X.key}static \u0275fac=function(q){return new(q||W)};static \u0275prov=r.jDH({token:W,factory:W.\u0275fac})}return W})();function g(W,z){if(W===z)return!0;if(null===W||null===z)return!1;if(W!=W&&z!=z)return!0;let ye,xe,ge,X=typeof W;if(X==typeof z&&"object"==X){if(!Array.isArray(W)){if(Array.isArray(z))return!1;for(xe in ge=Object.create(null),W){if(!g(W[xe],z[xe]))return!1;ge[xe]=!0}for(xe in z)if(!(xe in ge)&&typeof z[xe]<"u")return!1;return!0}if(!Array.isArray(z))return!1;if((ye=W.length)==z.length){for(xe=0;xe<ye;xe++)if(!g(W[xe],z[xe]))return!1;return!0}}return!1}function C(W){return typeof W<"u"&&null!==W}function F(W){return W&&"object"==typeof W&&!Array.isArray(W)}function Y(W,z){let X=Object.assign({},W);return F(W)&&F(z)&&Object.keys(z).forEach(q=>{F(z[q])?q in W?X[q]=Y(W[q],z[q]):Object.assign(X,{[q]:z[q]}):Object.assign(X,{[q]:z[q]})}),X}class Q{}let se=(()=>{class W extends Q{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(X,q){let ye;return ye="string"==typeof X?this.interpolateString(X,q):"function"==typeof X?this.interpolateFunction(X,q):X,ye}getValue(X,q){let ye="string"==typeof q?q.split("."):[q];q="";do{q+=ye.shift(),!C(X)||!C(X[q])||"object"!=typeof X[q]&&ye.length?ye.length?q+=".":X=void 0:(X=X[q],q="")}while(ye.length);return X}interpolateFunction(X,q){return X(q)}interpolateString(X,q){return q?X.replace(this.templateMatcher,(ye,xe)=>{let ge=this.getValue(q,xe);return C(ge)?ge:ye}):X}static \u0275fac=(()=>{let X;return function(ye){return(X||(X=r.xGo(W)))(ye||W)}})();static \u0275prov=r.jDH({token:W,factory:W.\u0275fac})}return W})();class ie{}let ee=(()=>{class W extends ie{compile(X,q){return X}compileTranslations(X,q){return X}static \u0275fac=(()=>{let X;return function(ye){return(X||(X=r.xGo(W)))(ye||W)}})();static \u0275prov=r.jDH({token:W,factory:W.\u0275fac})}return W})();class re{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new r.bkB;onLangChange=new r.bkB;onDefaultLangChange=new r.bkB}const ne=new r.nKC("USE_STORE"),_e=new r.nKC("USE_DEFAULT_LANG"),be=new r.nKC("DEFAULT_LANGUAGE"),oe=new r.nKC("USE_EXTEND");let me=(()=>{class W{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new r.bkB;_onLangChange=new r.bkB;_onDefaultLangChange=new r.bkB;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(X){this.isolate?this._defaultLang=X:this.store.defaultLang=X}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(X){this.isolate?this._currentLang=X:this.store.currentLang=X}get langs(){return this.isolate?this._langs:this.store.langs}set langs(X){this.isolate?this._langs=X:this.store.langs=X}get translations(){return this.isolate?this._translations:this.store.translations}set translations(X){this.isolate?this._translations=X:this.store.translations=X}constructor(X,q,ye,xe,ge,Ee=!0,he=!1,Ie=!1,ce){this.store=X,this.currentLoader=q,this.compiler=ye,this.parser=xe,this.missingTranslationHandler=ge,this.useDefaultLang=Ee,this.isolate=he,this.extend=Ie,ce&&this.setDefaultLang(ce)}setDefaultLang(X){if(X===this.defaultLang)return;let q=this.retrieveTranslations(X);typeof q<"u"?(null==this.defaultLang&&(this.defaultLang=X),q.pipe((0,R.s)(1)).subscribe(ye=>{this.changeDefaultLang(X)})):this.changeDefaultLang(X)}getDefaultLang(){return this.defaultLang}use(X){if(X===this.currentLang)return(0,d.of)(this.translations[X]);let q=this.retrieveTranslations(X);return typeof q<"u"?(this.currentLang||(this.currentLang=X),q.pipe((0,R.s)(1)).subscribe(ye=>{this.changeLang(X)}),q):(this.changeLang(X),(0,d.of)(this.translations[X]))}retrieveTranslations(X){let q;return(typeof this.translations[X]>"u"||this.extend)&&(this._translationRequests[X]=this._translationRequests[X]||this.getTranslation(X),q=this._translationRequests[X]),q}getTranslation(X){this.pending=!0;const q=this.currentLoader.getTranslation(X).pipe(s(1),(0,R.s)(1));return this.loadingTranslations=q.pipe((0,b.T)(ye=>this.compiler.compileTranslations(ye,X)),s(1),(0,R.s)(1)),this.loadingTranslations.subscribe({next:ye=>{this.translations[X]=this.extend&&this.translations[X]?{...ye,...this.translations[X]}:ye,this.updateLangs(),this.pending=!1},error:ye=>{this.pending=!1}}),q}setTranslation(X,q,ye=!1){q=this.compiler.compileTranslations(q,X),this.translations[X]=(ye||this.extend)&&this.translations[X]?Y(this.translations[X],q):q,this.updateLangs(),this.onTranslationChange.emit({lang:X,translations:this.translations[X]})}getLangs(){return this.langs}addLangs(X){X.forEach(q=>{-1===this.langs.indexOf(q)&&this.langs.push(q)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(X,q,ye){let xe;if(q instanceof Array){let ge={},Ee=!1;for(let he of q)ge[he]=this.getParsedResult(X,he,ye),(0,L.A)(ge[he])&&(Ee=!0);if(Ee){const he=q.map(Ie=>(0,L.A)(ge[Ie])?ge[Ie]:(0,d.of)(ge[Ie]));return(0,j.p)(he).pipe((0,b.T)(Ie=>{let ce={};return Ie.forEach((de,pe)=>{ce[q[pe]]=de}),ce}))}return ge}if(X&&(xe=this.parser.interpolate(this.parser.getValue(X,q),ye)),typeof xe>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(xe=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],q),ye)),typeof xe>"u"){let ge={key:q,translateService:this};typeof ye<"u"&&(ge.interpolateParams=ye),xe=this.missingTranslationHandler.handle(ge)}return typeof xe<"u"?xe:q}get(X,q){if(!C(X)||!X.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,O.H)(ye=>(ye=this.getParsedResult(ye,X,q),(0,L.A)(ye)?ye:(0,d.of)(ye))));{let ye=this.getParsedResult(this.translations[this.currentLang],X,q);return(0,L.A)(ye)?ye:(0,d.of)(ye)}}getStreamOnTranslationChange(X,q){if(!C(X)||!X.length)throw new Error('Parameter "key" required');return(0,o.x)((0,E.v)(()=>this.get(X,q)),this.onTranslationChange.pipe((0,w.n)(ye=>{const xe=this.getParsedResult(ye.translations,X,q);return"function"==typeof xe.subscribe?xe:(0,d.of)(xe)})))}stream(X,q){if(!C(X)||!X.length)throw new Error('Parameter "key" required');return(0,o.x)((0,E.v)(()=>this.get(X,q)),this.onLangChange.pipe((0,w.n)(ye=>{const xe=this.getParsedResult(ye.translations,X,q);return(0,L.A)(xe)?xe:(0,d.of)(xe)})))}instant(X,q){if(!C(X)||!X.length)throw new Error('Parameter "key" required');let ye=this.getParsedResult(this.translations[this.currentLang],X,q);if((0,L.A)(ye)){if(X instanceof Array){let xe={};return X.forEach((ge,Ee)=>{xe[X[Ee]]=X[Ee]}),xe}return X}return ye}set(X,q,ye=this.currentLang){this.translations[ye][X]=this.compiler.compile(q,ye),this.updateLangs(),this.onTranslationChange.emit({lang:ye,translations:this.translations[ye]})}changeLang(X){this.currentLang=X,this.onLangChange.emit({lang:X,translations:this.translations[X]}),null==this.defaultLang&&this.changeDefaultLang(X)}changeDefaultLang(X){this.defaultLang=X,this.onDefaultLangChange.emit({lang:X,translations:this.translations[X]})}reloadLang(X){return this.resetLang(X),this.getTranslation(X)}resetLang(X){this._translationRequests[X]=void 0,this.translations[X]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let X=window.navigator.languages?window.navigator.languages[0]:null;return X=X||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof X>"u"?void 0:(-1!==X.indexOf("-")&&(X=X.split("-")[0]),-1!==X.indexOf("_")&&(X=X.split("_")[0]),X)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let X=window.navigator.languages?window.navigator.languages[0]:null;return X=X||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,X}static \u0275fac=function(q){return new(q||W)(r.KVO(re),r.KVO(f),r.KVO(ie),r.KVO(Q),r.KVO(I),r.KVO(_e),r.KVO(ne),r.KVO(oe),r.KVO(be))};static \u0275prov=r.jDH({token:W,factory:W.\u0275fac})}return W})(),N=(()=>{class W{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(X,q){this.translate=X,this._ref=q}updateValue(X,q,ye){let xe=ge=>{this.value=void 0!==ge?ge:X,this.lastKey=X,this._ref.markForCheck()};if(ye){let ge=this.translate.getParsedResult(ye,X,q);(0,L.A)(ge.subscribe)?ge.subscribe(xe):xe(ge)}this.translate.get(X,q).subscribe(xe)}transform(X,...q){if(!X||!X.length)return X;if(g(X,this.lastKey)&&g(q,this.lastParams))return this.value;let ye;if(C(q[0])&&q.length)if("string"==typeof q[0]&&q[0].length){let xe=q[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{ye=JSON.parse(xe)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${q[0]}`)}}else"object"==typeof q[0]&&!Array.isArray(q[0])&&(ye=q[0]);return this.lastKey=X,this.lastParams=q,this.updateValue(X,ye),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(xe=>{this.lastKey&&xe.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(X,ye,xe.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(xe=>{this.lastKey&&(this.lastKey=null,this.updateValue(X,ye,xe.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(X,ye))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(q){return new(q||W)(r.rXU(me,16),r.rXU(r.gRc,16))};static \u0275pipe=r.EJ8({name:"translate",type:W,pure:!1});static \u0275prov=r.jDH({token:W,factory:W.\u0275fac})}return W})(),G=(()=>{class W{static forRoot(X={}){return{ngModule:W,providers:[X.loader||{provide:f,useClass:k},X.compiler||{provide:ie,useClass:ee},X.parser||{provide:Q,useClass:se},X.missingTranslationHandler||{provide:I,useClass:x},re,{provide:ne,useValue:X.isolate},{provide:_e,useValue:X.useDefaultLang},{provide:oe,useValue:X.extend},{provide:be,useValue:X.defaultLanguage},me]}}static forChild(X={}){return{ngModule:W,providers:[X.loader||{provide:f,useClass:k},X.compiler||{provide:ie,useClass:ee},X.parser||{provide:Q,useClass:se},X.missingTranslationHandler||{provide:I,useClass:x},{provide:ne,useValue:X.isolate},{provide:_e,useValue:X.useDefaultLang},{provide:oe,useValue:X.extend},{provide:be,useValue:X.defaultLanguage},me]}}static \u0275fac=function(q){return new(q||W)};static \u0275mod=r.$C({type:W});static \u0275inj=r.G2t({})}return W})()},68271:(ei,rt,D)=>{"use strict";D.d(rt,{h:()=>O});var r=D(16368),d=D(52166),L=D(61203),j=D(23036);class R{constructor(f,k){let I,x;I=f||new j.H,x=k||new j.H,this._stack=[{scope:I}],this._isolationScope=x}withScope(f){const k=this._pushScope();let I;try{I=f(k)}catch(x){throw this._popScope(),x}return(0,d.Qg)(I)?I.then(x=>(this._popScope(),x),x=>{throw this._popScope(),x}):(this._popScope(),I)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const f=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:f}),f}_popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}}function m(){const w=(0,r.E)(),f=(0,r.S)(w);return f.hub||(f.hub=new R(function o(){return(0,L.B)("defaultCurrentScope",()=>new j.H)}(),function E(){return(0,L.B)("defaultIsolationScope",()=>new j.H)}())),f.hub}function _(w){return m().withScope(w)}function v(w,f){const k=m();return k.withScope(()=>(k.getStackTop().scope=w,f(w)))}function h(w){return m().withScope(()=>w(m().getIsolationScope()))}function O(w){const f=(0,r.S)(w);return f.acs?f.acs:function s(){return{withIsolationScope:h,withScope:_,withSetScope:v,withSetIsolationScope:(w,f)=>h(f),getCurrentScope:()=>m().getScope(),getIsolationScope:()=>m().getIsolationScope()}}()}},16368:(ei,rt,D)=>{"use strict";D.d(rt,{E:()=>d,S:()=>L});var r=D(61203);function d(){return L(r.O),r.O}function L(j){return j.__SENTRY__||(j.__SENTRY__={extensions:{}}),j.__SENTRY__}},25601:(ei,rt,D)=>{"use strict";D.d(rt,{U:()=>r});const r="production"},22912:(ei,rt,D)=>{"use strict";D.d(rt,{KU:()=>v,m6:()=>R,o5:()=>o,rm:()=>E,v4:()=>m});var r=D(61203),d=D(68271),L=D(16368),j=D(23036);function o(){const h=(0,L.E)();return(0,d.h)(h).getCurrentScope()}function E(){const h=(0,L.E)();return(0,d.h)(h).getIsolationScope()}function R(){return(0,r.B)("globalScope",()=>new j.H)}function m(...h){const s=(0,L.E)(),b=(0,d.h)(s);if(2===h.length){const[O,w]=h;return O?b.withSetScope(O,w):b.withScope(w)}return b.withScope(h[0])}function v(){return o().getClient()}},36002:(ei,rt,D)=>{"use strict";D.d(rt,{T:()=>r});const r=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__},29643:(ei,rt,D)=>{"use strict";D.d(rt,{Cp:()=>E,J0:()=>se,J5:()=>re,NA:()=>b,o:()=>_,r:()=>m});var r=D(61203),d=D(25601),L=D(22912),j=D(8272),o=D(40331);function E(ne,_e){return(0,L.o5)().captureException(ne,(0,o.li)(_e))}function m(ne,_e){return(0,L.o5)().captureEvent(ne,_e)}function _(ne,_e){(0,L.rm)().setContext(ne,_e)}function b(ne,_e){(0,L.rm)().setTag(ne,_e)}function se(ne){const _e=(0,L.KU)(),be=(0,L.rm)(),oe=(0,L.o5)(),{release:me,environment:we=d.U}=_e&&_e.getOptions()||{},{userAgent:N}=r.O.navigator||{},G=(0,j.fj)({release:me,environment:we,user:oe.getUser()||be.getUser(),...N&&{userAgent:N},...ne}),W=be.getSession();return W&&"ok"===W.status&&(0,j.qO)(W,{status:"exited"}),ie(),be.setSession(G),oe.setSession(G),G}function ie(){const ne=(0,L.rm)(),_e=(0,L.o5)(),be=_e.getSession()||ne.getSession();be&&(0,j.Vu)(be),ee(),ne.setSession(),_e.setSession()}function ee(){const ne=(0,L.rm)(),_e=(0,L.o5)(),be=(0,L.KU)(),oe=_e.getSession()||ne.getSession();oe&&be&&be.captureSession(oe)}function re(ne=!1){ne?ie():ee()}},36985:(ei,rt,D)=>{"use strict";D.d(rt,{g:()=>j});var r=D(95909);let d;function j(E){const R=function L(E){return d?d.get(E):void 0}(E);if(!R)return;const m={};for(const[,[_,v]]of R)m[_]||(m[_]=[]),m[_].push((0,r.Ce)(v));return m}},23036:(ei,rt,D)=>{"use strict";D.d(rt,{H:()=>v});var r=D(72327),d=D(52166),L=D(51875),j=D(51930),o=D(85614),E=D(8272),R=D(58861);class _{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=(0,r.J)()}clone(){const s=new _;return s._breadcrumbs=[...this._breadcrumbs],s._tags={...this._tags},s._extra={...this._extra},s._contexts={...this._contexts},s._user=this._user,s._level=this._level,s._session=this._session,s._transactionName=this._transactionName,s._fingerprint=this._fingerprint,s._eventProcessors=[...this._eventProcessors],s._requestSession=this._requestSession,s._attachments=[...this._attachments],s._sdkProcessingMetadata={...this._sdkProcessingMetadata},s._propagationContext={...this._propagationContext},s._client=this._client,s._lastEventId=this._lastEventId,(0,R.r)(s,(0,R.f)(this)),s}setClient(s){this._client=s}setLastEventId(s){this._lastEventId=s}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(s){this._scopeListeners.push(s)}addEventProcessor(s){return this._eventProcessors.push(s),this}setUser(s){return this._user=s||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,E.qO)(this._session,{user:s}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(s){return this._requestSession=s,this}setTags(s){return this._tags={...this._tags,...s},this._notifyScopeListeners(),this}setTag(s,b){return this._tags={...this._tags,[s]:b},this._notifyScopeListeners(),this}setExtras(s){return this._extra={...this._extra,...s},this._notifyScopeListeners(),this}setExtra(s,b){return this._extra={...this._extra,[s]:b},this._notifyScopeListeners(),this}setFingerprint(s){return this._fingerprint=s,this._notifyScopeListeners(),this}setLevel(s){return this._level=s,this._notifyScopeListeners(),this}setTransactionName(s){return this._transactionName=s,this._notifyScopeListeners(),this}setContext(s,b){return null===b?delete this._contexts[s]:this._contexts[s]=b,this._notifyScopeListeners(),this}setSession(s){return s?this._session=s:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(s){if(!s)return this;const b="function"==typeof s?s(this):s,[O,w]=b instanceof v?[b.getScopeData(),b.getRequestSession()]:(0,d.Qd)(b)?[s,s.requestSession]:[],{tags:f,extra:k,user:I,contexts:x,level:g,fingerprint:C=[],propagationContext:F}=O||{};return this._tags={...this._tags,...f},this._extra={...this._extra,...k},this._contexts={...this._contexts,...x},I&&Object.keys(I).length&&(this._user=I),g&&(this._level=g),C.length&&(this._fingerprint=C),F&&(this._propagationContext=F),w&&(this._requestSession=w),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,(0,R.r)(this,void 0),this._attachments=[],this._propagationContext=(0,r.J)(),this._notifyScopeListeners(),this}addBreadcrumb(s,b){const O="number"==typeof b?b:100;if(O<=0)return this;const w={timestamp:(0,L.lu)(),...s},f=this._breadcrumbs;return f.push(w),this._breadcrumbs=f.length>O?f.slice(-O):f,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(s){return this._attachments.push(s),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,R.f)(this)}}setSDKProcessingMetadata(s){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...s},this}setPropagationContext(s){return this._propagationContext=s,this}getPropagationContext(){return this._propagationContext}captureException(s,b){const O=b&&b.event_id?b.event_id:(0,j.eJ)();if(!this._client)return o.vF.warn("No client configured on scope - will not capture exception!"),O;const w=new Error("Sentry syntheticException");return this._client.captureException(s,{originalException:s,syntheticException:w,...b,event_id:O},this),O}captureMessage(s,b,O){const w=O&&O.event_id?O.event_id:(0,j.eJ)();if(!this._client)return o.vF.warn("No client configured on scope - will not capture message!"),w;const f=new Error(s);return this._client.captureMessage(s,b,{originalException:s,syntheticException:f,...O,event_id:w},this),w}captureEvent(s,b){const O=b&&b.event_id?b.event_id:(0,j.eJ)();return this._client?(this._client.captureEvent(s,{...b,event_id:O},this),O):(o.vF.warn("No client configured on scope - will not capture event!"),O)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(s=>{s(this)}),this._notifyingListeners=!1)}}const v=_},46947:(ei,rt,D)=>{"use strict";D.d(rt,{E1:()=>m,JD:()=>j,Sn:()=>E,fs:()=>o,i_:()=>r,jG:()=>_,sy:()=>d,uT:()=>L,xc:()=>R});const r="sentry.source",d="sentry.sample_rate",L="sentry.op",j="sentry.origin",o="sentry.idle_span_finish_reason",E="sentry.measurement_unit",R="sentry.measurement_value",m="sentry.profile_id",_="sentry.exclusive_time"},8272:(ei,rt,D)=>{"use strict";D.d(rt,{Vu:()=>E,fj:()=>j,qO:()=>o});var r=D(51875),d=D(51930),L=D(95909);function j(m){const _=(0,r.zf)(),v={sid:(0,d.eJ)(),init:!0,timestamp:_,started:_,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function R(m){return(0,L.Ce)({sid:`${m.sid}`,init:m.init,started:new Date(1e3*m.started).toISOString(),timestamp:new Date(1e3*m.timestamp).toISOString(),status:m.status,errors:m.errors,did:"number"==typeof m.did||"string"==typeof m.did?`${m.did}`:void 0,duration:m.duration,abnormal_mechanism:m.abnormal_mechanism,attrs:{release:m.release,environment:m.environment,ip_address:m.ipAddress,user_agent:m.userAgent}})}(v)};return m&&o(v,m),v}function o(m,_={}){if(_.user&&(!m.ipAddress&&_.user.ip_address&&(m.ipAddress=_.user.ip_address),!m.did&&!_.did&&(m.did=_.user.id||_.user.email||_.user.username)),m.timestamp=_.timestamp||(0,r.zf)(),_.abnormal_mechanism&&(m.abnormal_mechanism=_.abnormal_mechanism),_.ignoreDuration&&(m.ignoreDuration=_.ignoreDuration),_.sid&&(m.sid=32===_.sid.length?_.sid:(0,d.eJ)()),void 0!==_.init&&(m.init=_.init),!m.did&&_.did&&(m.did=`${_.did}`),"number"==typeof _.started&&(m.started=_.started),m.ignoreDuration)m.duration=void 0;else if("number"==typeof _.duration)m.duration=_.duration;else{const v=m.timestamp-m.started;m.duration=v>=0?v:0}_.release&&(m.release=_.release),_.environment&&(m.environment=_.environment),!m.ipAddress&&_.ipAddress&&(m.ipAddress=_.ipAddress),!m.userAgent&&_.userAgent&&(m.userAgent=_.userAgent),"number"==typeof _.errors&&(m.errors=_.errors),_.status&&(m.status=_.status)}function E(m,_){let v={};_?v={status:_}:"ok"===m.status&&(v={status:"exited"}),o(m,v)}},33638:(ei,rt,D)=>{"use strict";D.d(rt,{LZ:()=>R,k1:()=>_,lF:()=>m});var r=D(95909),d=D(25601),L=D(22912),j=D(46947),o=D(715);const E="_frozenDsc";function R(h,s){(0,r.my)(h,E,s)}function m(h,s){const b=s.getOptions(),{publicKey:O}=s.getDsn()||{},w=(0,r.Ce)({environment:b.environment||d.U,release:b.release,public_key:O,trace_id:h});return s.emit("createDsc",w),w}function _(h){const s=(0,L.KU)();if(!s)return{};const b=m((0,o.et)(h).trace_id||"",s),O=(0,o.zU)(h);if(!O)return b;const w=O[E];if(w)return w;const f=(0,o.et)(O),k=f.data||{},I=k[j.sy];null!=I&&(b.sample_rate=`${I}`);const x=k[j.i_];return x&&"url"!==x&&(b.transaction=f.description),b.sampled=String((0,o.pK)(O)),s.emit("createDsc",b),b}},89871:(ei,rt,D)=>{"use strict";D.d(rt,{F3:()=>d,N8:()=>o,TJ:()=>L,a3:()=>r});const r=0,d=1,L=2;function o(E,R){E.setAttribute("http.response.status_code",R);const m=function j(E){if(E<400&&E>=100)return{code:d};if(E>=400&&E<500)switch(E){case 401:return{code:L,message:"unauthenticated"};case 403:return{code:L,message:"permission_denied"};case 404:return{code:L,message:"not_found"};case 409:return{code:L,message:"already_exists"};case 413:return{code:L,message:"failed_precondition"};case 429:return{code:L,message:"resource_exhausted"};case 499:return{code:L,message:"cancelled"};default:return{code:L,message:"invalid_argument"}}if(E>=500&&E<600)switch(E){case 501:return{code:L,message:"unimplemented"};case 503:return{code:L,message:"unavailable"};case 504:return{code:L,message:"deadline_exceeded"};default:return{code:L,message:"internal_error"}}return{code:L,message:"unknown_error"}}(R);"unknown_error"!==m.message&&E.setStatus(m)}},40331:(ei,rt,D)=>{"use strict";D.d(rt,{li:()=>me,mG:()=>se});var r=D(51930),d=D(51875),L=D(12287),j=D(61203),o=D(41846),E=D(25601),R=D(22912),m=D(6952),_=D(85614),v=D(52166),h=D(36002);function s(W,z,X,q=0){return new m.T2((ye,xe)=>{const ge=W[q];if(null===z||"function"!=typeof ge)ye(z);else{const Ee=ge({...z},X);h.T&&ge.id&&null===Ee&&_.vF.log(`Event processor "${ge.id}" dropped event`),(0,v.Qg)(Ee)?Ee.then(he=>s(W,he,X,q+1).then(ye)).then(null,xe):s(W,Ee,X,q+1).then(ye).then(null,xe)}})}var b=D(23036),O=D(95909),w=D(33638),f=D(715);function I(W,z){const{extra:X,tags:q,user:ye,contexts:xe,level:ge,sdkProcessingMetadata:Ee,breadcrumbs:he,fingerprint:Ie,eventProcessors:ce,attachments:de,propagationContext:pe,transactionName:Be,span:We}=z;x(W,"extra",X),x(W,"tags",q),x(W,"user",ye),x(W,"contexts",xe),x(W,"sdkProcessingMetadata",Ee),ge&&(W.level=ge),Be&&(W.transactionName=Be),We&&(W.span=We),he.length&&(W.breadcrumbs=[...W.breadcrumbs,...he]),Ie.length&&(W.fingerprint=[...W.fingerprint,...Ie]),ce.length&&(W.eventProcessors=[...W.eventProcessors,...ce]),de.length&&(W.attachments=[...W.attachments,...de]),W.propagationContext={...W.propagationContext,...pe}}function x(W,z,X){if(X&&Object.keys(X).length){W[z]={...W[z]};for(const q in X)Object.prototype.hasOwnProperty.call(X,q)&&(W[z][q]=X[q])}}function se(W,z,X,q,ye,xe){const{normalizeDepth:ge=3,normalizeMaxBreadth:Ee=1e3}=W,he={...z,event_id:z.event_id||X.event_id||(0,r.eJ)(),timestamp:z.timestamp||(0,d.lu)()},Ie=X.integrations||W.integrations.map(vt=>vt.name);(function ie(W,z){const{environment:X,release:q,dist:ye,maxValueLength:xe=250}=z;"environment"in W||(W.environment="environment"in z?X:E.U),void 0===W.release&&void 0!==q&&(W.release=q),void 0===W.dist&&void 0!==ye&&(W.dist=ye),W.message&&(W.message=(0,L.xv)(W.message,xe));const ge=W.exception&&W.exception.values&&W.exception.values[0];ge&&ge.value&&(ge.value=(0,L.xv)(ge.value,xe));const Ee=W.request;Ee&&Ee.url&&(Ee.url=(0,L.xv)(Ee.url,xe))})(he,W),function _e(W,z){z.length>0&&(W.sdk=W.sdk||{},W.sdk.integrations=[...W.sdk.integrations||[],...z])}(he,Ie),void 0===z.type&&function re(W,z){const X=j.O._sentryDebugIds;if(!X)return;let q;const ye=ee.get(z);ye?q=ye:(q=new Map,ee.set(z,q));const xe=Object.keys(X).reduce((ge,Ee)=>{let he;const Ie=q.get(Ee);Ie?he=Ie:(he=z(Ee),q.set(Ee,he));for(let ce=he.length-1;ce>=0;ce--){const de=he[ce];if(de.filename){ge[de.filename]=X[Ee];break}}return ge},{});try{W.exception.values.forEach(ge=>{ge.stacktrace.frames.forEach(Ee=>{Ee.filename&&(Ee.debug_id=xe[Ee.filename])})})}catch{}}(he,W.stackParser);const ce=function oe(W,z){if(!z)return W;const X=W?W.clone():new b.H;return X.update(z),X}(q,X.captureContext);X.mechanism&&(0,r.M6)(he,X.mechanism);const de=ye?ye.getEventProcessors():[],pe=(0,R.m6)().getScopeData();xe&&I(pe,xe.getScopeData()),ce&&I(pe,ce.getScopeData());const Be=[...X.attachments||[],...pe.attachments];return Be.length&&(X.attachments=Be),function k(W,z){const{fingerprint:X,span:q,breadcrumbs:ye,sdkProcessingMetadata:xe}=z;(function g(W,z){const{extra:X,tags:q,user:ye,contexts:xe,level:ge,transactionName:Ee}=z,he=(0,O.Ce)(X);he&&Object.keys(he).length&&(W.extra={...he,...W.extra});const Ie=(0,O.Ce)(q);Ie&&Object.keys(Ie).length&&(W.tags={...Ie,...W.tags});const ce=(0,O.Ce)(ye);ce&&Object.keys(ce).length&&(W.user={...ce,...W.user});const de=(0,O.Ce)(xe);de&&Object.keys(de).length&&(W.contexts={...de,...W.contexts}),ge&&(W.level=ge),Ee&&"transaction"!==W.type&&(W.transaction=Ee)})(W,z),q&&function Y(W,z){W.contexts={trace:(0,f.kX)(z),...W.contexts},W.sdkProcessingMetadata={dynamicSamplingContext:(0,w.k1)(z),...W.sdkProcessingMetadata};const X=(0,f.zU)(z),q=(0,f.et)(X).description;q&&!W.transaction&&"transaction"===W.type&&(W.transaction=q)}(W,q),function Q(W,z){W.fingerprint=W.fingerprint?(0,r.k9)(W.fingerprint):[],z&&(W.fingerprint=W.fingerprint.concat(z)),W.fingerprint&&!W.fingerprint.length&&delete W.fingerprint}(W,X),function C(W,z){const X=[...W.breadcrumbs||[],...z];W.breadcrumbs=X.length?X:void 0}(W,ye),function F(W,z){W.sdkProcessingMetadata={...W.sdkProcessingMetadata,...z}}(W,xe)}(he,pe),s([...de,...pe.eventProcessors],he,X).then(vt=>(vt&&function ne(W){const z={};try{W.exception.values.forEach(q=>{q.stacktrace.frames.forEach(ye=>{ye.debug_id&&(ye.abs_path?z[ye.abs_path]=ye.debug_id:ye.filename&&(z[ye.filename]=ye.debug_id),delete ye.debug_id)})})}catch{}if(0===Object.keys(z).length)return;W.debug_meta=W.debug_meta||{},W.debug_meta.images=W.debug_meta.images||[];const X=W.debug_meta.images;Object.keys(z).forEach(q=>{X.push({type:"sourcemap",code_file:q,debug_id:z[q]})})}(vt),"number"==typeof ge&&ge>0?function be(W,z,X){if(!W)return null;const q={...W,...W.breadcrumbs&&{breadcrumbs:W.breadcrumbs.map(ye=>({...ye,...ye.data&&{data:(0,o.S8)(ye.data,z,X)}}))},...W.user&&{user:(0,o.S8)(W.user,z,X)},...W.contexts&&{contexts:(0,o.S8)(W.contexts,z,X)},...W.extra&&{extra:(0,o.S8)(W.extra,z,X)}};return W.contexts&&W.contexts.trace&&q.contexts&&(q.contexts.trace=W.contexts.trace,W.contexts.trace.data&&(q.contexts.trace.data=(0,o.S8)(W.contexts.trace.data,z,X))),W.spans&&(q.spans=W.spans.map(ye=>({...ye,...ye.data&&{data:(0,o.S8)(ye.data,z,X)}}))),q}(vt,ge,Ee):vt))}const ee=new WeakMap;function me(W){if(W)return function we(W){return W instanceof b.H||"function"==typeof W}(W)||function G(W){return Object.keys(W).some(z=>N.includes(z))}(W)?{captureContext:W}:W}const N=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},58861:(ei,rt,D)=>{"use strict";D.d(rt,{f:()=>j,r:()=>L});var r=D(95909);const d="_sentrySpan";function L(o,E){E?(0,r.my)(o,d,E):delete o[d]}function j(o){return o[d]}},715:(ei,rt,D)=>{"use strict";D.d(rt,{Bk:()=>ne,CC:()=>h,Ck:()=>b,Hu:()=>se,Qh:()=>w,VS:()=>ie,aO:()=>s,cI:()=>f,et:()=>I,kX:()=>O,pK:()=>C,xO:()=>ee,yW:()=>F,zU:()=>re});var r=D(95909),d=D(11314),L=D(51875),j=D(68271),o=D(16368),E=D(22912),R=D(36985),m=D(46947),_=D(89871),v=D(58861);const h=0,s=1;function b(be){const{spanId:oe,traceId:me}=be.spanContext(),{data:we,op:N,parent_span_id:G,status:W,origin:z}=I(be);return(0,r.Ce)({parent_span_id:G,span_id:oe,trace_id:me,data:we,op:N,status:W,origin:z})}function O(be){const{spanId:oe,traceId:me}=be.spanContext(),{parent_span_id:we}=I(be);return(0,r.Ce)({parent_span_id:we,span_id:oe,trace_id:me})}function w(be){const{traceId:oe,spanId:me}=be.spanContext(),we=C(be);return(0,d.TC)(oe,me,we)}function f(be){return"number"==typeof be?k(be):Array.isArray(be)?be[0]+be[1]/1e9:be instanceof Date?k(be.getTime()):(0,L.zf)()}function k(be){return be>9999999999?be/1e3:be}function I(be){if(function g(be){return"function"==typeof be.getSpanJSON}(be))return be.getSpanJSON();try{const{spanId:oe,traceId:me}=be.spanContext();if(function x(be){return!!(be.attributes&&be.startTime&&be.name&&be.endTime&&be.status)}(be)){const{attributes:we,startTime:N,name:G,endTime:W,parentSpanId:z,status:X}=be;return(0,r.Ce)({span_id:oe,trace_id:me,data:we,description:G,parent_span_id:z,start_timestamp:f(N),timestamp:f(W)||void 0,status:F(X),op:we[m.uT],origin:we[m.JD],_metrics_summary:(0,R.g)(be)})}return{span_id:oe,trace_id:me}}catch{return{}}}function C(be){const{traceFlags:oe}=be.spanContext();return oe===s}function F(be){if(be&&be.code!==_.a3)return be.code===_.F3?"ok":be.message||"unknown_error"}const Y="_sentryChildSpans",Q="_sentryRootSpan";function se(be,oe){(0,r.my)(oe,Q,be[Q]||be),be[Y]&&be[Y].size<1e3?be[Y].add(oe):(0,r.my)(be,Y,new Set([oe]))}function ie(be,oe){be[Y]&&be[Y].delete(oe)}function ee(be){const oe=new Set;return function me(we){if(!oe.has(we)&&C(we)){oe.add(we);const N=we[Y]?Array.from(we[Y]):[];for(const G of N)me(G)}}(be),Array.from(oe)}function re(be){return be[Q]||be}function ne(){const be=(0,o.E)(),oe=(0,j.h)(be);return oe.getActiveSpan?oe.getActiveSpan():(0,v.f)((0,E.o5)())}},74758:(ei,rt,D)=>{"use strict";D.d(rt,{De:()=>_,hF:()=>j,yD:()=>m});var r=D(61998),d=D(52166),L=D(85614);const j="baggage",o="sentry-",E=/^sentry-/,R=8192;function m(b){const O=function v(b){if(b&&((0,d.Kg)(b)||Array.isArray(b)))return Array.isArray(b)?b.reduce((O,w)=>{const f=h(w);for(const k of Object.keys(f))O[k]=f[k];return O},{}):h(b)}(b);if(!O)return;const w=Object.entries(O).reduce((f,[k,I])=>(k.match(E)&&(f[k.slice(o.length)]=I),f),{});return Object.keys(w).length>0?w:void 0}function _(b){if(b)return function s(b){if(0!==Object.keys(b).length)return Object.entries(b).reduce((O,[w,f],k)=>{const I=`${encodeURIComponent(w)}=${encodeURIComponent(f)}`,x=0===k?I:`${O},${I}`;return x.length>R?(r.T&&L.vF.warn(`Not adding key: ${w} with val: ${f} to baggage header due to exceeding baggage size limits.`),O):x},"")}(Object.entries(b).reduce((w,[f,k])=>(k&&(w[`${o}${f}`]=k),w),{}))}function h(b){return b.split(",").map(O=>O.split("=").map(w=>decodeURIComponent(w.trim()))).reduce((O,[w,f])=>(O[w]=f,O),{})}},89644:(ei,rt,D)=>{"use strict";D.d(rt,{$N:()=>R,Hd:()=>o,NX:()=>m,xE:()=>_});var r=D(52166);const L=D(61203).O,j=80;function o(v,h={}){if(!v)return"<unknown>";try{let s=v;const b=5,O=[];let w=0,f=0;const k=" > ",I=k.length;let x;const g=Array.isArray(h)?h:h.keyAttrs,C=!Array.isArray(h)&&h.maxStringLength||j;for(;s&&w++<b&&(x=E(s,g),!("html"===x||w>1&&f+O.length*I+x.length>=C));)O.push(x),f+=x.length,s=s.parentNode;return O.reverse().join(k)}catch{return"<unknown>"}}function E(v,h){const s=v,b=[];let O,w,f,k,I;if(!s||!s.tagName)return"";if(L.HTMLElement&&s instanceof HTMLElement&&s.dataset){if(s.dataset.sentryComponent)return s.dataset.sentryComponent;if(s.dataset.sentryElement)return s.dataset.sentryElement}b.push(s.tagName.toLowerCase());const x=h&&h.length?h.filter(C=>s.getAttribute(C)).map(C=>[C,s.getAttribute(C)]):null;if(x&&x.length)x.forEach(C=>{b.push(`[${C[0]}="${C[1]}"]`)});else if(s.id&&b.push(`#${s.id}`),O=s.className,O&&(0,r.Kg)(O))for(w=O.split(/\s+/),I=0;I<w.length;I++)b.push(`.${w[I]}`);const g=["aria-label","type","name","title","alt"];for(I=0;I<g.length;I++)f=g[I],k=s.getAttribute(f),k&&b.push(`[${f}="${k}"]`);return b.join("")}function R(){try{return L.document.location.href}catch{return""}}function m(v){return L.document&&L.document.querySelector?L.document.querySelector(v):null}function _(v){if(!L.HTMLElement)return null;let h=v;for(let b=0;b<5;b++){if(!h)return null;if(h instanceof HTMLElement){if(h.dataset.sentryComponent)return h.dataset.sentryComponent;if(h.dataset.sentryElement)return h.dataset.sentryElement}h=h.parentNode}return null}},61998:(ei,rt,D)=>{"use strict";D.d(rt,{T:()=>r});const r=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__},52166:(ei,rt,D)=>{"use strict";D.d(rt,{BD:()=>o,Kg:()=>R,L2:()=>k,NF:()=>m,Qd:()=>v,Qg:()=>O,T2:()=>j,W6:()=>E,bJ:()=>d,gd:()=>b,mE:()=>w,sO:()=>_,tH:()=>f,vq:()=>s,xH:()=>h});const r=Object.prototype.toString;function d(I){switch(r.call(I)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return f(I,Error)}}function L(I,x){return r.call(I)===`[object ${x}]`}function j(I){return L(I,"ErrorEvent")}function o(I){return L(I,"DOMError")}function E(I){return L(I,"DOMException")}function R(I){return L(I,"String")}function m(I){return"object"==typeof I&&null!==I&&"__sentry_template_string__"in I&&"__sentry_template_values__"in I}function _(I){return null===I||m(I)||"object"!=typeof I&&"function"!=typeof I}function v(I){return L(I,"Object")}function h(I){return typeof Event<"u"&&f(I,Event)}function s(I){return typeof Element<"u"&&f(I,Element)}function b(I){return L(I,"RegExp")}function O(I){return!(!I||!I.then||"function"!=typeof I.then)}function w(I){return v(I)&&"nativeEvent"in I&&"preventDefault"in I&&"stopPropagation"in I}function f(I,x){try{return I instanceof x}catch{return!1}}function k(I){return!("object"!=typeof I||null===I||!I.__isVue&&!I._isVue)}},85614:(ei,rt,D)=>{"use strict";D.d(rt,{Ow:()=>j,Z9:()=>o,pq:()=>E,vF:()=>m});var r=D(61998),d=D(61203);const j=["debug","info","warn","error","log","assert","trace"],o={};function E(_){if(!("console"in d.O))return _();const v=d.O.console,h={},s=Object.keys(o);s.forEach(b=>{const O=o[b];h[b]=v[b],v[b]=O});try{return _()}finally{s.forEach(b=>{v[b]=h[b]})}}const m=function R(){let _=!1;const v={enable:()=>{_=!0},disable:()=>{_=!1},isEnabled:()=>_};return j.forEach(r.T?h=>{v[h]=(...s)=>{_&&E(()=>{d.O.console[h](`Sentry Logger [${h}]:`,...s)})}}:h=>{v[h]=()=>{}}),v}()},51930:(ei,rt,D)=>{"use strict";D.d(rt,{$X:()=>o,GR:()=>h,M6:()=>R,eJ:()=>L,gO:()=>E,k9:()=>s});var r=D(95909),d=D(61203);function L(){const b=d.O,O=b.crypto||b.msCrypto;let w=()=>16*Math.random();try{if(O&&O.randomUUID)return O.randomUUID().replace(/-/g,"");O&&O.getRandomValues&&(w=()=>{const f=new Uint8Array(1);return O.getRandomValues(f),f[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,f=>(f^(15&w())>>f/4).toString(16))}function j(b){return b.exception&&b.exception.values?b.exception.values[0]:void 0}function o(b){const{message:O,event_id:w}=b;if(O)return O;const f=j(b);return f?f.type&&f.value?`${f.type}: ${f.value}`:f.type||f.value||w||"<unknown>":w||"<unknown>"}function E(b,O,w){const f=b.exception=b.exception||{},k=f.values=f.values||[],I=k[0]=k[0]||{};I.value||(I.value=O||""),I.type||(I.type=w||"Error")}function R(b,O){const w=j(b);if(!w)return;const k=w.mechanism;if(w.mechanism={type:"generic",handled:!0,...k,...O},O&&"data"in O){const I={...k&&k.data,...O.data};w.mechanism.data=I}}function h(b){if(b&&b.__sentry_captured__)return!0;try{(0,r.my)(b,"__sentry_captured__",!0)}catch{}return!1}function s(b){return Array.isArray(b)?b:[b]}},41846:(ei,rt,D)=>{"use strict";D.d(rt,{S8:()=>o,cd:()=>E});var r=D(52166),L=D(95909),j=D(72539);function o(b,O=100,w=1/0){try{return R("",b,O,w)}catch(f){return{ERROR:`**non-serializable** (${f})`}}}function E(b,O=3,w=102400){const f=o(b,O);return function h(b){return function v(b){return~-encodeURI(b).split(/%..|./).length}(JSON.stringify(b))}(f)>w?E(b,O-1,w):f}function R(b,O,w=1/0,f=1/0,k=function d(){const b="function"==typeof WeakSet,O=b?new WeakSet:[];return[function w(k){if(b)return!!O.has(k)||(O.add(k),!1);for(let I=0;I<O.length;I++)if(O[I]===k)return!0;return O.push(k),!1},function f(k){if(b)O.delete(k);else for(let I=0;I<O.length;I++)if(O[I]===k){O.splice(I,1);break}}]}()){const[I,x]=k;if(null==O||["number","boolean","string"].includes(typeof O)&&!Number.isNaN(O))return O;const g=function m(b,O){try{if("domain"===b&&O&&"object"==typeof O&&O._events)return"[Domain]";if("domainEmitter"===b)return"[DomainEmitter]";if(typeof global<"u"&&O===global)return"[Global]";if(typeof window<"u"&&O===window)return"[Window]";if(typeof document<"u"&&O===document)return"[Document]";if((0,r.L2)(O))return"[VueViewModel]";if((0,r.mE)(O))return"[SyntheticEvent]";if("number"==typeof O&&O!=O)return"[NaN]";if("function"==typeof O)return`[Function: ${(0,j.qQ)(O)}]`;if("symbol"==typeof O)return`[${String(O)}]`;if("bigint"==typeof O)return`[BigInt: ${String(O)}]`;const w=function _(b){const O=Object.getPrototypeOf(b);return O?O.constructor.name:"null prototype"}(O);return/^HTML(\w*)Element$/.test(w)?`[HTMLElement: ${w}]`:`[object ${w}]`}catch(w){return`**non-serializable** (${w})`}}(b,O);if(!g.startsWith("[object "))return g;if(O.__sentry_skip_normalization__)return O;const C="number"==typeof O.__sentry_override_normalization_depth__?O.__sentry_override_normalization_depth__:w;if(0===C)return g.replace("object ","");if(I(O))return"[Circular ~]";const F=O;if(F&&"function"==typeof F.toJSON)try{return R("",F.toJSON(),C-1,f,k)}catch{}const Y=Array.isArray(O)?[]:{};let Q=0;const se=(0,L.W4)(O);for(const ie in se)if(Object.prototype.hasOwnProperty.call(se,ie)){if(Q>=f){Y[ie]="[MaxProperties ~]";break}Y[ie]=R(ie,se[ie],C-1,f,k),Q++}return x(O),Y}},95909:(ei,rt,D)=>{"use strict";D.d(rt,{Ce:()=>w,GS:()=>E,HF:()=>O,W4:()=>h,my:()=>R,pO:()=>m,sp:()=>_,u4:()=>v});var r=D(89644),d=D(61998),L=D(52166),j=D(85614),o=D(12287);function E(x,g,C){if(!(g in x))return;const F=x[g],Y=C(F);"function"==typeof Y&&m(Y,F),x[g]=Y}function R(x,g,C){try{Object.defineProperty(x,g,{value:C,writable:!0,configurable:!0})}catch{d.T&&j.vF.log(`Failed to add non-enumerable property "${g}" to object`,x)}}function m(x,g){try{x.prototype=g.prototype=g.prototype||{},R(x,"__sentry_original__",g)}catch{}}function _(x){return x.__sentry_original__}function v(x){return Object.keys(x).map(g=>`${encodeURIComponent(g)}=${encodeURIComponent(x[g])}`).join("&")}function h(x){if((0,L.bJ)(x))return{message:x.message,name:x.name,stack:x.stack,...b(x)};if((0,L.xH)(x)){const g={type:x.type,target:s(x.target),currentTarget:s(x.currentTarget),...b(x)};return typeof CustomEvent<"u"&&(0,L.tH)(x,CustomEvent)&&(g.detail=x.detail),g}return x}function s(x){try{return(0,L.vq)(x)?(0,r.Hd)(x):Object.prototype.toString.call(x)}catch{return"<unknown>"}}function b(x){if("object"==typeof x&&null!==x){const g={};for(const C in x)Object.prototype.hasOwnProperty.call(x,C)&&(g[C]=x[C]);return g}return{}}function O(x,g=40){const C=Object.keys(h(x));if(C.sort(),!C.length)return"[object has no keys]";if(C[0].length>=g)return(0,o.xv)(C[0],g);for(let F=C.length;F>0;F--){const Y=C.slice(0,F).join(", ");if(!(Y.length>g))return F===C.length?Y:(0,o.xv)(Y,g)}return""}function w(x){return f(x,new Map)}function f(x,g){if(function k(x){if(!(0,L.Qd)(x))return!1;try{const g=Object.getPrototypeOf(x).constructor.name;return!g||"Object"===g}catch{return!0}}(x)){const C=g.get(x);if(void 0!==C)return C;const F={};g.set(x,F);for(const Y of Object.keys(x))typeof x[Y]<"u"&&(F[Y]=f(x[Y],g));return F}if(Array.isArray(x)){const C=g.get(x);if(void 0!==C)return C;const F=[];return g.set(x,F),x.forEach(Y=>{F.push(f(Y,g))}),F}return x}},72327:(ei,rt,D)=>{"use strict";D.d(rt,{J:()=>d});var r=D(51930);function d(){return{traceId:(0,r.eJ)(),spanId:(0,r.eJ)().substring(16)}}},72539:(ei,rt,D)=>{"use strict";D.d(rt,{gd:()=>o,qQ:()=>_,vk:()=>E,yF:()=>d});const r=50,d="?",L=/\(error: (.*)\)/,j=/captureMessage|captureException/;function o(...v){const h=v.sort((s,b)=>s[0]-b[0]).map(s=>s[1]);return(s,b=0,O=0)=>{const w=[],f=s.split("\n");for(let k=b;k<f.length;k++){const I=f[k];if(I.length>1024)continue;const x=L.test(I)?I.replace(L,"$1"):I;if(!x.match(/\S*Error: /)){for(const g of h){const C=g(x);if(C){w.push(C);break}}if(w.length>=r+O)break}}return function R(v){if(!v.length)return[];const h=Array.from(v);return/sentryWrapped/.test(h[h.length-1].function||"")&&h.pop(),h.reverse(),j.test(h[h.length-1].function||"")&&(h.pop(),j.test(h[h.length-1].function||"")&&h.pop()),h.slice(0,r).map(s=>({...s,filename:s.filename||h[h.length-1].filename,function:s.function||d}))}(w.slice(O))}}function E(v){return Array.isArray(v)?o(...v):v}const m="<anonymous>";function _(v){try{return v&&"function"==typeof v&&v.name||m}catch{return m}}},12287:(ei,rt,D)=>{"use strict";D.d(rt,{Xr:()=>E,gt:()=>j,xv:()=>d});var r=D(52166);function d(R,m=0){return"string"!=typeof R||0===m||R.length<=m?R:`${R.slice(0,m)}...`}function j(R,m){if(!Array.isArray(R))return"";const _=[];for(let v=0;v<R.length;v++){const h=R[v];try{(0,r.L2)(h)?_.push("[VueViewModel]"):_.push(String(h))}catch{_.push("[value cannot be serialized]")}}return _.join(m)}function E(R,m=[],_=!1){return m.some(v=>function o(R,m,_=!1){return!!(0,r.Kg)(R)&&((0,r.gd)(m)?m.test(R):!!(0,r.Kg)(m)&&(_?R===m:R.includes(m)))}(R,v,_))}},6952:(ei,rt,D)=>{"use strict";D.d(rt,{T2:()=>o,XW:()=>L,xg:()=>j});var d,E,r=D(52166);function L(E){return new o(R=>{R(E)})}function j(E){return new o((R,m)=>{m(E)})}(E=d||(d={}))[E.PENDING=0]="PENDING",E[E.RESOLVED=1]="RESOLVED",E[E.REJECTED=2]="REJECTED";class o{constructor(R){o.prototype.__init.call(this),o.prototype.__init2.call(this),o.prototype.__init3.call(this),o.prototype.__init4.call(this),this._state=d.PENDING,this._handlers=[];try{R(this._resolve,this._reject)}catch(m){this._reject(m)}}then(R,m){return new o((_,v)=>{this._handlers.push([!1,h=>{if(R)try{_(R(h))}catch(s){v(s)}else _(h)},h=>{if(m)try{_(m(h))}catch(s){v(s)}else v(h)}]),this._executeHandlers()})}catch(R){return this.then(m=>m,R)}finally(R){return new o((m,_)=>{let v,h;return this.then(s=>{h=!1,v=s,R&&R()},s=>{h=!0,v=s,R&&R()}).then(()=>{h?_(v):m(v)})})}__init(){this._resolve=R=>{this._setResult(d.RESOLVED,R)}}__init2(){this._reject=R=>{this._setResult(d.REJECTED,R)}}__init3(){this._setResult=(R,m)=>{if(this._state===d.PENDING){if((0,r.Qg)(m))return void m.then(this._resolve,this._reject);this._state=R,this._value=m,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===d.PENDING)return;const R=this._handlers.slice();this._handlers=[],R.forEach(m=>{m[0]||(this._state===d.RESOLVED&&m[1](this._value),this._state===d.REJECTED&&m[2](this._value),m[0]=!0)})}}}},51875:(ei,rt,D)=>{"use strict";D.d(rt,{k3:()=>R,lu:()=>L,zf:()=>o});var r=D(61203);const d=1e3;function L(){return Date.now()/d}const o=function j(){const{performance:m}=r.O;if(!m||!m.now)return L;const _=Date.now()-m.now(),v=null==m.timeOrigin?_:m.timeOrigin;return()=>(v+m.now())/d}();let E;const R=(()=>{const{performance:m}=r.O;if(!m||!m.now)return void(E="none");const _=36e5,v=m.now(),h=Date.now(),s=m.timeOrigin?Math.abs(m.timeOrigin+v-h):_,b=s<_,O=m.timing&&m.timing.navigationStart,f="number"==typeof O?Math.abs(O+v-h):_;return b||f<_?s<=f?(E="timeOrigin",m.timeOrigin):(E="navigationStart",O):(E="dateNow",h)})()},11314:(ei,rt,D)=>{"use strict";D.d(rt,{TC:()=>E,kM:()=>o});var r=D(74758),d=D(51930);const L=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(R,m){const _=function j(R){if(!R)return;const m=R.match(L);if(!m)return;let _;return"1"===m[3]?_=!0:"0"===m[3]&&(_=!1),{traceId:m[1],parentSampled:_,parentSpanId:m[2]}}(R),v=(0,r.yD)(m),{traceId:h,parentSpanId:s,parentSampled:b}=_||{};return _?{traceId:h||(0,d.eJ)(),parentSpanId:s||(0,d.eJ)().substring(16),spanId:(0,d.eJ)().substring(16),sampled:b,dsc:v||{}}:{traceId:h||(0,d.eJ)(),spanId:(0,d.eJ)().substring(16)}}function E(R=(0,d.eJ)(),m=(0,d.eJ)().substring(16),_){let v="";return void 0!==_&&(v=_?"-1":"-0"),`${R}-${m}${v}`}},61203:(ei,rt,D)=>{"use strict";D.d(rt,{B:()=>d,O:()=>r});const r=globalThis;function d(L,j,o){const E=o||r,R=E.__SENTRY__=E.__SENTRY__||{};return R[L]||(R[L]=j())}},89692:(ei,rt,D)=>{"use strict";D.d(rt,{FQ:()=>m,WW:()=>o});var r=D(60177),d=D(54438);const L=new d.nKC("WindowToken",typeof window<"u"&&window.document?{providedIn:"root",factory:()=>window}:{providedIn:"root",factory:()=>{}});var j=D(21413);let o=(()=>{class _{constructor(h,s,b){this.ngZone=h,this.document=s,this.window=b,this.copySubject=new j.B,this.copyResponse$=this.copySubject.asObservable(),this.config={}}configure(h){this.config=h}copy(h){if(!this.isSupported||!h)return this.pushCopyResponse({isSuccess:!1,content:h});const s=this.copyFromContent(h);return this.pushCopyResponse(s?{content:h,isSuccess:s}:{isSuccess:!1,content:h})}get isSupported(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window}isTargetValid(h){if(h instanceof HTMLInputElement||h instanceof HTMLTextAreaElement){if(h.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")}copyFromInputElement(h,s=!0){try{this.selectTarget(h);const b=this.copyText();return this.clearSelection(s?h:void 0,this.window),b&&this.isCopySuccessInIE11()}catch{return!1}}isCopySuccessInIE11(){const h=this.window.clipboardData;return!(h&&h.getData&&!h.getData("Text"))}copyFromContent(h,s=this.document.body){if(this.tempTextArea&&!s.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{s.appendChild(this.tempTextArea)}catch{throw new Error("Container should be a Dom element")}}this.tempTextArea.value=h;const b=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),b}destroy(h=this.document.body){this.tempTextArea&&(h.removeChild(this.tempTextArea),this.tempTextArea=void 0)}selectTarget(h){return h.select(),h.setSelectionRange(0,h.value.length),h.value.length}copyText(){return this.document.execCommand("copy")}clearSelection(h,s){h&&h.focus(),s.getSelection()?.removeAllRanges()}createTempTextArea(h,s){const b="rtl"===h.documentElement.getAttribute("dir");let O;return O=h.createElement("textarea"),O.style.fontSize="12pt",O.style.border="0",O.style.padding="0",O.style.margin="0",O.style.position="absolute",O.style[b?"right":"left"]="-9999px",O.style.top=(s.pageYOffset||h.documentElement.scrollTop)+"px",O.setAttribute("readonly",""),O}pushCopyResponse(h){this.copySubject.observers.length>0&&this.ngZone.run(()=>{this.copySubject.next(h)})}pushCopyReponse(h){this.pushCopyResponse(h)}}return _.\u0275fac=function(h){return new(h||_)(d.KVO(d.SKi),d.KVO(r.qQ),d.KVO(L,8))},_.\u0275prov=d.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),m=(()=>{class _{}return _.\u0275fac=function(h){return new(h||_)},_.\u0275mod=d.$C({type:_}),_.\u0275inj=d.G2t({imports:[r.MD]}),_})()},99830:(ei,rt,D)=>{"use strict";D.d(rt,{Dw:()=>O,Zr:()=>f});var r=D(10467),d=D(54438),L=D(60177),j=D(89417);const o=new d.nKC("ngx-mask config"),E=new d.nKC("new ngx-mask config"),R=new d.nKC("initial ngx-mask config"),m={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:I=>I,outputTransformFn:I=>I,maskFilled:new d.bkB,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},_=["Hh:m0:s0","Hh:m0","m0:s0"],v=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let h=(()=>{class I{constructor(){this._config=(0,d.WQX)(o),this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.hiddenInput=this._config.hiddenInput,this.clearIfNotMatch=this._config.clearIfNotMatch,this.specialCharacters=this._config.specialCharacters,this.patterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime,this.leadZero=this._config.leadZero,this.apm=this._config.apm,this.inputTransformFn=this._config.inputTransformFn,this.outputTransformFn=this._config.outputTransformFn,this.keepCharacterPositions=this._config.keepCharacterPositions,this._shift=new Set,this.plusOnePosition=!1,this.maskExpression="",this.actualValue="",this.showKeepCharacterExp="",this.shownMaskExpression="",this.deletedSpecialCharacter=!1,this._formatWithSeparators=(g,C,F,Y)=>{let Q=[],se="";if(Array.isArray(F)){const _e=new RegExp(F.map(be=>"[\\^$.|?*+()".indexOf(be)>=0?`\\${be}`:be).join("|"));Q=g.split(_e),se=g.match(_e)?.[0]??""}else Q=g.split(F),se=F;const ie=Q.length>1?`${se}${Q[1]}`:"";let ee=Q[0]??"";const re=this.separatorLimit.replace(/\s/g,"");re&&+re&&(ee="-"===ee[0]?`-${ee.slice(1,ee.length).slice(0,re.length)}`:ee.slice(0,re.length));const ne=/(\d+)(\d{3})/;for(;C&&ne.test(ee);)ee=ee.replace(ne,"$1"+C+"$2");return void 0===Y?ee+ie:0===Y?ee:ee+ie.substring(0,Y+1)},this.percentage=g=>{const C=g.replace(",","."),F=Number(this.allowNegativeNumbers&&g.includes("-")?C.slice(1,g.length):C);return!isNaN(F)&&F>=0&&F<=100},this.getPrecision=g=>{const C=g.split(".");return C.length>1?Number(C[C.length-1]):1/0},this.checkAndRemoveSuffix=g=>{for(let C=this.suffix?.length-1;C>=0;C--){const F=this.suffix.substring(C,this.suffix?.length);if(g.includes(F)&&C!==this.suffix?.length-1&&(C-1<0||!g.includes(this.suffix.substring(C-1,this.suffix?.length))))return g.replace(F,"")}return g},this.checkInputPrecision=(g,C,F)=>{if(C<1/0){if(Array.isArray(F)){const ie=F.find(ee=>ee!==this.thousandSeparator);F=ie||F[0]}const Y=new RegExp(this._charToRegExpExpression(F)+`\\d{${C}}.*$`),Q=g.match(Y),se=(Q&&Q[0]?.length)??0;se-1>C&&(g=g.substring(0,g.length-(se-1-C))),0===C&&this._compareOrIncludes(g[g.length-1],F,this.thousandSeparator)&&(g=g.substring(0,g.length-1))}return g}}applyMaskWithPattern(g,C){const[F,Y]=C;return this.customPattern=Y,this.applyMask(g,F)}applyMask(g,C,F=0,Y=!1,Q=!1,se=(()=>{})){if(!C||"string"!=typeof g)return"";let ie=0,ee="",re=!1,ne=!1,_e=1,be=!1;g.slice(0,this.prefix.length)===this.prefix&&(g=g.slice(this.prefix.length,g.length)),this.suffix&&g?.length>0&&(g=this.checkAndRemoveSuffix(g)),"("===g&&this.prefix&&(g="");const oe=g.toString().split("");if(this.allowNegativeNumbers&&"-"===g.slice(ie,ie+1)&&(ee+=g.slice(ie,ie+1)),"IP"===C){const z=g.split(".");this.ipError=this._validIP(z),C="099.099.099.099"}const me=[];for(let z=0;z<g.length;z++)g[z]?.match("\\d")&&me.push(g[z]??"");if("CPF_CNPJ"===C&&(this.cpfCnpjError=11!==me.length&&14!==me.length,C=me.length>11?"00.000.000/0000-00":"000.000.000-00"),C.startsWith("percent")){if(g.match("[a-z]|[A-Z]")||g.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!Q){g=this._stripToDecimal(g);const q=this.getPrecision(C);g=this.checkInputPrecision(g,q,this.decimalMarker)}const z="string"==typeof this.decimalMarker?this.decimalMarker:".";if(g.indexOf(z)>0&&!this.percentage(g.substring(0,g.indexOf(z)))){let q=g.substring(0,g.indexOf(z)-1);this.allowNegativeNumbers&&"-"===g.slice(ie,ie+1)&&!Q&&(q=g.substring(0,g.indexOf(z))),g=`${q}${g.substring(g.indexOf(z),g.length)}`}let X="";X=this.allowNegativeNumbers&&"-"===g.slice(ie,ie+1)?`-${g.slice(ie+1,ie+g.length)}`:g,ee=this.percentage(X)?this._splitPercentZero(g):this._splitPercentZero(g.substring(0,g.length-1))}else if(C.startsWith("separator")){(g.match("[w\u0430-\u044f\u0410-\u042f]")||g.match("[\u0401\u0451\u0410-\u044f]")||g.match("[a-z]|[A-Z]")||g.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\]:";<>.?/]/)||g.match("[^A-Za-z0-9,]"))&&(g=this._stripToDecimal(g));const z=this.getPrecision(C),X=Array.isArray(this.decimalMarker)?".":this.decimalMarker;0===z?g=this.allowNegativeNumbers?g.length>2&&"-"===g[0]&&"0"===g[1]&&g[2]!==this.thousandSeparator&&","!==g[2]&&"."!==g[2]?"-"+g.slice(2,g.length):"0"===g[0]&&g.length>1&&g[1]!==this.thousandSeparator&&","!==g[1]&&"."!==g[1]?g.slice(1,g.length):g:g.length>1&&"0"===g[0]&&g[1]!==this.thousandSeparator&&","!==g[1]&&"."!==g[1]?g.slice(1,g.length):g:(g[0]===X&&g.length>1&&(g="0"+g.slice(0,g.length+1),this.plusOnePosition=!0),"0"===g[0]&&g[1]!==X&&g[1]!==this.thousandSeparator&&(g=g.length>1?g.slice(0,1)+X+g.slice(1,g.length+1):g,this.plusOnePosition=!0),this.allowNegativeNumbers&&"-"===g[0]&&(g[1]===X||"0"===g[1])&&(g=g[1]===X&&g.length>2?g.slice(0,1)+"0"+g.slice(1,g.length):"0"===g[1]&&g.length>2&&g[2]!==X?g.slice(0,2)+X+g.slice(2,g.length):g,this.plusOnePosition=!0)),Q&&("0"===g[0]&&g[1]===this.decimalMarker&&("0"===g[F]||g[F]===this.decimalMarker)&&(g=g.slice(2,g.length)),"-"===g[0]&&"0"===g[1]&&g[2]===this.decimalMarker&&("0"===g[F]||g[F]===this.decimalMarker)&&(g="-"+g.slice(3,g.length)),g=this._compareOrIncludes(g[g.length-1],this.decimalMarker,this.thousandSeparator)?g.slice(0,g.length-1):g);const q=this._charToRegExpExpression(this.thousandSeparator);let ye='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(q,"");if(Array.isArray(this.decimalMarker))for(const Ie of this.decimalMarker)ye=ye.replace(this._charToRegExpExpression(Ie),"");else ye=ye.replace(this._charToRegExpExpression(this.decimalMarker),"");const xe=new RegExp("["+ye+"]");g.match(xe)&&(g=g.substring(0,g.length-1));const ge=(g=this.checkInputPrecision(g,z,this.decimalMarker)).replace(new RegExp(q,"g"),"");ee=this._formatWithSeparators(ge,this.thousandSeparator,this.decimalMarker,z);const Ee=ee.indexOf(",")-g.indexOf(","),he=ee.length-g.length;if(ee[F-1]===this.thousandSeparator&&this.prefix&&Q)F-=1;else if(he>0&&ee[F]!==this.thousandSeparator){ne=!0;let Ie=0;do{this._shift.add(F+Ie),Ie++}while(Ie<he)}else ee[F-1]===this.decimalMarker||-4===he||-3===he||","===ee[F]?(this._shift.clear(),this._shift.add(F-1)):0!==Ee&&F>0&&!(ee.indexOf(",")>=F&&F>3)||!(ee.indexOf(".")>=F&&F>3)&&he<=0?(this._shift.clear(),ne=!0,_e=he,this._shift.add(F+=he)):this._shift.clear()}else for(let z=0,X=oe[0];z<oe.length&&ie!==C.length;z++,X=oe[z]??""){const q="*"in this.patterns;if(this._checkSymbolMask(X,C[ie]??"")&&"?"===C[ie+1])ee+=X,ie+=2;else if("*"===C[ie+1]&&re&&this._checkSymbolMask(X,C[ie+2]??""))ee+=X,ie+=3,re=!1;else if(this._checkSymbolMask(X,C[ie]??"")&&"*"===C[ie+1]&&!q)ee+=X,re=!0;else if("?"===C[ie+1]&&this._checkSymbolMask(X,C[ie+2]??""))ee+=X,ie+=3;else if(this._checkSymbolMask(X,C[ie]??"")){if("H"===C[ie]&&(this.apm?Number(X)>9:Number(X)>2)){F=this.leadZeroDateTime?F:F+1,ie+=1,this._shiftStep(C,ie,oe.length),z--,this.leadZeroDateTime&&(ee+="0");continue}if("h"===C[ie]&&(this.apm?1===ee.length&&Number(ee)>1||"1"===ee&&Number(X)>2||1===g.slice(ie-1,ie).length&&Number(g.slice(ie-1,ie))>2||"1"===g.slice(ie-1,ie)&&Number(X)>2:"2"===ee&&Number(X)>3||("2"===ee.slice(ie-2,ie)||"2"===ee.slice(ie-3,ie)||"2"===ee.slice(ie-4,ie)||"2"===ee.slice(ie-1,ie))&&Number(X)>3&&ie>10)){F+=1,ie+=1,z--;continue}if(("m"===C[ie]||"s"===C[ie])&&Number(X)>5){F=this.leadZeroDateTime?F:F+1,ie+=1,this._shiftStep(C,ie,oe.length),z--,this.leadZeroDateTime&&(ee+="0");continue}const ye=31,xe=g[ie],ge=g[ie+1],Ee=g[ie+2],he=g[ie-1],Ie=g[ie-2],ce=g[ie-3],de=g.slice(ie-3,ie-1),pe=g.slice(ie-1,ie+1),Be=g.slice(ie,ie+2),We=g.slice(ie-2,ie);if("d"===C[ie]){const tt="M0"===C.slice(0,2),vt="M0"===C.slice(0,2)&&this.specialCharacters.includes(Ie);if(Number(X)>3&&this.leadZeroDateTime||!tt&&(Number(Be)>ye||Number(pe)>ye||this.specialCharacters.includes(ge)&&!Q)||(vt?Number(pe)>ye||!this.specialCharacters.includes(xe)&&this.specialCharacters.includes(Ee)||this.specialCharacters.includes(xe):Number(Be)>ye||this.specialCharacters.includes(ge)&&!Q)){F=this.leadZeroDateTime?F:F+1,ie+=1,this._shiftStep(C,ie,oe.length),z--,this.leadZeroDateTime&&(ee+="0");continue}}if("M"===C[ie]){const vt=0===ie&&(Number(X)>2||Number(Be)>12||this.specialCharacters.includes(ge)&&!Q),Xt=C.slice(ie+2,ie+3),Nt=de.includes(Xt)&&C.includes("d0")&&(this.specialCharacters.includes(Ie)&&Number(pe)>12&&!this.specialCharacters.includes(xe)||this.specialCharacters.includes(xe)||this.specialCharacters.includes(ce)&&Number(We)>12&&!this.specialCharacters.includes(he)||this.specialCharacters.includes(he)),Qe=Number(de)<=ye&&!this.specialCharacters.includes(de)&&this.specialCharacters.includes(he)&&(Number(Be)>12||this.specialCharacters.includes(ge)&&!Q),Et=Number(Be)>12&&5===ie||this.specialCharacters.includes(ge)&&5===ie,Lt=Number(de)>ye&&!this.specialCharacters.includes(de)&&!this.specialCharacters.includes(We)&&Number(We)>12&&C.includes("d0"),wt=Number(de)<=ye&&!this.specialCharacters.includes(de)&&!this.specialCharacters.includes(he)&&Number(pe)>12;if(Number(X)>1&&this.leadZeroDateTime||vt||Nt||wt||Lt||Qe||Et&&!this.leadZeroDateTime){F=this.leadZeroDateTime?F:F+1,ie+=1,this._shiftStep(C,ie,oe.length),z--,this.leadZeroDateTime&&(ee+="0");continue}}ee+=X,ie++}else" "===X&&" "===C[ie]||"/"===X&&"/"===C[ie]?(ee+=X,ie++):-1!==this.specialCharacters.indexOf(C[ie]??"")?(ee+=C[ie],ie++,this._shiftStep(C,ie,oe.length),z--):"9"===C[ie]&&this.showMaskTyped?this._shiftStep(C,ie,oe.length):this.patterns[C[ie]??""]&&this.patterns[C[ie]??""]?.optional?(oe[ie]&&"099.099.099.099"!==C&&"000.000.000-00"!==C&&"00.000.000/0000-00"!==C&&!C.match(/^9+\.0+$/)&&!this.patterns[C[ie]??""]?.optional&&(ee+=oe[ie]),C.includes("9*")&&C.includes("0*")&&ie++,ie++,z--):"*"===this.maskExpression[ie+1]&&this._findSpecialChar(this.maskExpression[ie+2]??"")&&this._findSpecialChar(X)===this.maskExpression[ie+2]&&re||"?"===this.maskExpression[ie+1]&&this._findSpecialChar(this.maskExpression[ie+2]??"")&&this._findSpecialChar(X)===this.maskExpression[ie+2]&&re?(ie+=3,ee+=X):this.showMaskTyped&&this.specialCharacters.indexOf(X)<0&&X!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(be=!0)}ee.length+1===C.length&&-1!==this.specialCharacters.indexOf(C[C.length-1]??"")&&(ee+=C[C.length-1]);let we=F+1;for(;this._shift.has(we);)_e++,we++;let N=Y&&!C.startsWith("separator")?ie:this._shift.has(F)?_e:0;be&&N--,se(N,ne),_e<0&&this._shift.clear();let G=!1;Q&&(G=oe.every(z=>this.specialCharacters.includes(z)));let W=`${this.prefix}${G?"":ee}${this.showMaskTyped?"":this.suffix}`;if(0===ee.length&&(W=this.dropSpecialCharacters?`${ee}`:`${this.prefix}${ee}`),ee.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(Q&&"-"===ee)return"";W=`-${this.prefix}${ee.split("-").join("")}${this.suffix}`}return W}_findDropSpecialChar(g){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(C=>C===g):this._findSpecialChar(g)}_findSpecialChar(g){return this.specialCharacters.find(C=>C===g)}_checkSymbolMask(g,C){return this.patterns=this.customPattern?this.customPattern:this.patterns,(this.patterns[C]?.pattern&&this.patterns[C]?.pattern.test(g))??!1}_stripToDecimal(g){return g.split("").filter((C,F)=>{const Y="string"==typeof this.decimalMarker?C===this.decimalMarker:this.decimalMarker.includes(C);return C.match("^-?\\d")||C===this.thousandSeparator||Y||"-"===C&&0===F&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(g){return g&&(" "===g?"\\s":"[\\^$.|?*+()".indexOf(g)>=0?`\\${g}`:g)}_shiftStep(g,C,F){const Y=/[*?]/g.test(g.slice(0,C))?F:C;this._shift.add(Y+this.prefix.length||0)}_compareOrIncludes(g,C,F){return Array.isArray(C)?C.filter(Y=>Y!==F).includes(g):g===C}_validIP(g){return!(4===g.length&&!g.some((C,F)=>g.length!==F+1?""===C||Number(C)>255:""===C||Number(C.substring(0,3))>255))}_splitPercentZero(g){if("-"===g&&this.allowNegativeNumbers)return g;const C=g.indexOf("string"==typeof this.decimalMarker?this.decimalMarker:"."),F=this.allowNegativeNumbers&&g.includes("-")?"-":"";if(-1===C){const Y=parseInt(F?g.slice(1,g.length):g,10);return isNaN(Y)?"":`${F}${Y}`}{const Y=parseInt(g.replace("-","").substring(0,C),10),Q=g.substring(C+1),se=isNaN(Y)?"":Y.toString();return""===se?"":`${F}${se}${"string"==typeof this.decimalMarker?this.decimalMarker:"."}${Q}`}}static#e=this.\u0275fac=function(C){return new(C||I)};static#t=this.\u0275prov=d.jDH({token:I,factory:I.\u0275fac})}return I})(),s=(()=>{class I extends h{constructor(){super(...arguments),this.isNumberValue=!1,this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this._maskExpressionArray=[],this.triggerOnMaskChange=!1,this._previousValue="",this._currentValue="",this._emitValue=!1,this.onChange=g=>{},this._elementRef=(0,d.WQX)(d.aKT,{optional:!0}),this.document=(0,d.WQX)(L.qQ),this._config=(0,d.WQX)(o),this._renderer=(0,d.WQX)(d.sFG,{optional:!0})}applyMask(g,C,F=0,Y=!1,Q=!1,se=(()=>{})){if(!C)return g!==this.actualValue?this.actualValue:g;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(g||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(g||"#")),!g&&this.showMaskTyped)return this.formControlResult(this.prefix),`${this.prefix}${this.maskIsShown}${this.suffix}`;const ie=g&&"number"==typeof this.selStart?g[this.selStart]??"":"";let ee="";if(void 0!==this.hiddenInput&&!this.writingValue){let be=g&&1===g.length?g.split(""):this.actualValue.split("");"object"==typeof this.selStart&&"object"==typeof this.selEnd?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):""!==g&&be.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(g.length>be.length?be.splice(this.selStart,0,ie):g.length<be.length&&(be.length-g.length==1?be.splice(Q?this.selStart-1:g.length-1,1):be.splice(this.selStart,this.selEnd-this.selStart))):be=[],this.showMaskTyped&&(this.hiddenInput||(g=this.removeMask(g))),ee=this.actualValue.length&&be.length<=g.length?this.shiftTypedSymbols(be.join("")):g}if(Y&&(this.hiddenInput||!this.hiddenInput)&&(ee=g),Q&&-1!==this.specialCharacters.indexOf(this.maskExpression[F]??"")&&this.showMaskTyped&&!this.prefix&&(ee=this._currentValue),this.deletedSpecialCharacter&&F&&(this.specialCharacters.includes(this.actualValue.slice(F,F+1))?F+=1:"M0"!==C.slice(F-1,F+1)&&(F-=2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&1===this.placeHolderCharacter.length&&!this.leadZeroDateTime&&(g=this.removeMask(g)),ee=this.maskChanged?g:ee&&ee.length?ee:g,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!Y){const be=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(be),this.actualValue?this.actualValue:`${this.prefix}${this.maskIsShown}${this.suffix}`}const re=super.applyMask(ee,C,F,Y,Q,se);if(this.actualValue=this.getActualValue(re),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.specialCharacters=this.specialCharacters.filter(be=>!this._compareOrIncludes(be,this.decimalMarker,this.thousandSeparator))),(re||""===re)&&(this._previousValue=this._currentValue,this._currentValue=re,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this._previousValue===this._currentValue&&Y),this._emitValue&&(this.writingValue?requestAnimationFrame(()=>this.formControlResult(re)):this.formControlResult(re)),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?Q?this.hideInput(re,this.maskExpression):`${this.hideInput(re,this.maskExpression)}${this.maskIsShown.slice(re.length)}`:re;const ne=re.length,_e=`${this.prefix}${this.maskIsShown}${this.suffix}`;if(this.maskExpression.includes("H")){const be=this._numberSkipedSymbols(re);return`${re}${_e.slice(ne+be)}`}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?`${re}${_e}`:`${re}${_e.slice(ne)}`}_numberSkipedSymbols(g){const C=/(^|\D)(\d\D)/g;let F=C.exec(g),Y=0;for(;null!=F;)Y+=1,F=C.exec(g);return Y}applyValueChanges(g,C,F,Y=(()=>{})){const Q=this._elementRef?.nativeElement;Q&&(Q.value=this.applyMask(Q.value,this.maskExpression,g,C,F,Y),Q!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(g,C){return g.split("").map((F,Y)=>this.patterns&&this.patterns[C[Y]??""]&&this.patterns[C[Y]??""]?.symbol?this.patterns[C[Y]??""]?.symbol:F).join("")}getActualValue(g){const C=g.split("").filter((F,Y)=>{const Q=this.maskExpression[Y]??"";return this._checkSymbolMask(F,Q)||this.specialCharacters.includes(Q)&&F===Q});return C.join("")===g?C.join(""):g}shiftTypedSymbols(g){let C="";return(g&&g.split("").map((Y,Q)=>{if(this.specialCharacters.includes(g[Q+1]??"")&&g[Q+1]!==this.maskExpression[Q+1])return C=Y,g[Q+1];if(C.length){const se=C;return C="",se}return Y})||[]).join("")}numberToString(g){return!g&&0!==g||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith("separator")&&this.separatorLimit.length>14&&String(g).length>14?String(g):Number(g).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace("/-/","-")}showMaskInInput(g){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(g){if("IP"===this.maskExpression)return this._checkForIp(g);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(g)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const g=this._elementRef?.nativeElement;g&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==g.value.replace(this.placeHolderCharacter,"").length&&(this.formElementProperty=["value",""],this.applyMask("",this.maskExpression))}set formElementProperty([g,C]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>this._renderer?.setProperty(this._elementRef?.nativeElement,g,C))}checkDropSpecialCharAmount(g){return g.split("").filter(F=>this._findDropSpecialChar(F)).length}removeMask(g){return this._removeMask(this._removeSuffix(this._removePrefix(g)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(g){if("#"===g)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const C=[];for(let F=0;F<g.length;F++){const Y=g[F]??"";Y&&Y.match("\\d")&&C.push(Y)}return C.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:C.length>3&&C.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:C.length>6&&C.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(g){const C=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,F=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===g)return C;const Y=[];for(let Q=0;Q<g.length;Q++){const se=g[Q]??"";se&&se.match("\\d")&&Y.push(se)}return Y.length<=3?C.slice(Y.length,C.length):Y.length>3&&Y.length<=6?C.slice(Y.length+1,C.length):Y.length>6&&Y.length<=9?C.slice(Y.length+2,C.length):Y.length>9&&Y.length<11?C.slice(Y.length+3,C.length):11===Y.length?"":12===Y.length?F.slice(17===g.length?16:15,F.length):Y.length>12&&Y.length<=14?F.slice(Y.length+4,F.length):""}_getActiveElement(g=this.document){const C=g?.activeElement?.shadowRoot;return C?.activeElement?this._getActiveElement(C):g.activeElement}formControlResult(g){if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged)return this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(g)))))),void(this.maskChanged=!1);Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(g)),this.dropSpecialCharacters))))):this.onChange(this.outputTransformFn(this._toNumber(this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===g?this._checkSymbols(this._removeSuffix(this._removePrefix(g))):g)))}_toNumber(g){if(!this.isNumberValue||""===g||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters))return g;if(String(g).length>16&&this.separatorLimit.length>14)return String(g);const C=Number(g);if(this.maskExpression.startsWith("separator")&&Number.isNaN(C)){const F=String(g).replace(",",".");return Number(F)}return Number.isNaN(C)?g:C}_removeMask(g,C){return this.maskExpression.startsWith("percent")&&g.includes(".")?g:g&&g.replace(this._regExpForRemove(C),"")}_removePrefix(g){return this.prefix?g&&g.replace(this.prefix,""):g}_removeSuffix(g){return this.suffix?g&&g.replace(this.suffix,""):g}_retrieveSeparatorValue(g){let C=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(F=>this.dropSpecialCharacters.includes(F)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&g.includes(" ")&&this.maskExpression.includes("*")&&(C=C.filter(F=>" "!==F)),this._removeMask(g,C)}_regExpForRemove(g){return new RegExp(g.map(C=>`\\${C}`).join("|"),"gi")}_replaceDecimalMarkerToDot(g){const C=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return g.replace(this._regExpForRemove(C),".")}_checkSymbols(g){if(""===g)return g;this.maskExpression.startsWith("percent")&&","===this.decimalMarker&&(g=g.replace(",","."));const C=this._retrieveSeparatorPrecision(this.maskExpression),F=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(g));return this.isNumberValue&&C?g===this.decimalMarker?null:this.separatorLimit.length>14?String(F):this._checkPrecision(this.maskExpression,F):F}_checkPatternForSpace(){for(const g in this.patterns)if(this.patterns[g]&&this.patterns[g]?.hasOwnProperty("pattern")){const C=this.patterns[g]?.pattern.toString(),F=this.patterns[g]?.pattern;if(C?.includes(" ")&&F?.test(this.maskExpression))return!0}return!1}_retrieveSeparatorPrecision(g){const C=g.match(new RegExp("^separator\\.([^d]*)"));return C?Number(C[1]):null}_checkPrecision(g,C){const F=g.slice(10,11);return g.indexOf("2")>0||this.leadZero&&Number(F)>0?(","===this.decimalMarker&&this.leadZero&&(C=C.replace(",",".")),this.leadZero?Number(C).toFixed(Number(F)):Number(C).toFixed(2)):this.numberToString(C)}_repeatPatternSymbols(g){return g.match(/{[0-9]+}/)&&g.split("").reduce((C,F,Y)=>{if(this._start="{"===F?Y:this._start,"}"!==F)return this._findSpecialChar(F)?C+F:C;this._end=Y;const Q=Number(g.slice(this._start+1,this._end)),se=new Array(Q+1).join(g[this._start-1]);if(g.slice(0,this._start).length>1&&g.includes("S")){const ie=g.slice(0,this._start-1);return ie.includes("{")?C+se:ie+C+se}return C+se},"")||g}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}static#e=this.\u0275fac=(()=>{let g;return function(F){return(g||(g=d.xGo(I)))(F||I)}})();static#t=this.\u0275prov=d.jDH({token:I,factory:I.\u0275fac})}return I})();function b(){const I=(0,d.WQX)(R),x=(0,d.WQX)(E);return x instanceof Function?{...I,...x()}:{...I,...x}}function O(I){return[{provide:E,useValue:I},{provide:R,useValue:m},{provide:o,useFactory:b},s]}let f=(()=>{class I{constructor(){this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this.leadZero=null,this.triggerOnMaskChange=null,this.apm=null,this.inputTransformFn=null,this.outputTransformFn=null,this.keepCharacterPositions=null,this.maskFilled=new d.bkB,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isFocused=!1,this._isComposing=!1,this.document=(0,d.WQX)(L.qQ),this._maskService=(0,d.WQX)(s,{self:!0}),this._config=(0,d.WQX)(o),this.onChange=g=>{},this.onTouch=()=>{}}ngOnChanges(g){const{maskExpression:C,specialCharacters:F,patterns:Y,prefix:Q,suffix:se,thousandSeparator:ie,decimalMarker:ee,dropSpecialCharacters:re,hiddenInput:ne,showMaskTyped:_e,placeHolderCharacter:be,shownMaskExpression:oe,showTemplate:me,clearIfNotMatch:we,validation:N,separatorLimit:G,allowNegativeNumbers:W,leadZeroDateTime:z,leadZero:X,triggerOnMaskChange:q,apm:ye,inputTransformFn:xe,outputTransformFn:ge,keepCharacterPositions:Ee}=g;if(C&&(C.currentValue!==C.previousValue&&!C.firstChange&&(this._maskService.maskChanged=!0),C.currentValue&&C.currentValue.split("||").length>1?(this._maskExpressionArray=C.currentValue.split("||").sort((he,Ie)=>he.length-Ie.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=C.currentValue||"",this._maskService.maskExpression=this._maskValue)),F){if(!F.currentValue||!Array.isArray(F.currentValue))return;this._maskService.specialCharacters=F.currentValue||[]}W&&(this._maskService.allowNegativeNumbers=W.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(he=>"-"!==he))),Y&&Y.currentValue&&(this._maskService.patterns=Y.currentValue),ye&&ye.currentValue&&(this._maskService.apm=ye.currentValue),Q&&(this._maskService.prefix=Q.currentValue),se&&(this._maskService.suffix=se.currentValue),ie&&(this._maskService.thousandSeparator=ie.currentValue),ee&&(this._maskService.decimalMarker=ee.currentValue),re&&(this._maskService.dropSpecialCharacters=re.currentValue),ne&&(this._maskService.hiddenInput=ne.currentValue),_e&&(this._maskService.showMaskTyped=_e.currentValue,!1===_e.previousValue&&!0===_e.currentValue&&this._isFocused&&requestAnimationFrame(()=>{this._maskService._elementRef?.nativeElement.click()})),be&&(this._maskService.placeHolderCharacter=be.currentValue),oe&&(this._maskService.shownMaskExpression=oe.currentValue),me&&(this._maskService.showTemplate=me.currentValue),we&&(this._maskService.clearIfNotMatch=we.currentValue),N&&(this._maskService.validation=N.currentValue),G&&(this._maskService.separatorLimit=G.currentValue),z&&(this._maskService.leadZeroDateTime=z.currentValue),X&&(this._maskService.leadZero=X.currentValue),q&&(this._maskService.triggerOnMaskChange=q.currentValue),xe&&(this._maskService.inputTransformFn=xe.currentValue),ge&&(this._maskService.outputTransformFn=ge.currentValue),Ee&&(this._maskService.keepCharacterPositions=Ee.currentValue),this._applyMask()}validate({value:g}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(g);if(this._maskService.cpfCnpjError)return this._createValidationError(g);if(this._maskValue.startsWith("separator")||v.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(_.includes(this._maskValue))return this._validateTime(g);if(g&&g.toString().length>=1){let C=0;if(this._maskValue.startsWith("percent"))return null;for(const F in this._maskService.patterns)if(this._maskService.patterns[F]?.optional&&(this._maskValue.indexOf(F)!==this._maskValue.lastIndexOf(F)?C+=this._maskValue.split("").filter(Q=>Q===F).join("").length:-1!==this._maskValue.indexOf(F)&&C++,-1!==this._maskValue.indexOf(F)&&g.toString().length>=this._maskValue.indexOf(F)||C===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&g.toString().length===this._maskValue.length+Number((this._maskValue.split("{")[1]??"").split("}")[0])-4)return null;if(this._maskValue.indexOf("*")>1&&g.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&g.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(g);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){g="number"==typeof g?String(g):g;const F=this._maskValue.split("*"),Y=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkDropSpecialCharAmount(this._maskValue)-C:this.prefix?this._maskValue.length+this.prefix.length-C:this._maskValue.length-C;if(1===F.length&&g.toString().length<Y)return this._createValidationError(g);if(F.length>1){const Q=F[F.length-1];if(Q&&this._maskService.specialCharacters.includes(Q[0])&&String(g).includes(Q[0]??"")&&!this.dropSpecialCharacters){const se=g.split(Q[0]);return se[se.length-1].length===Q.length-1?null:this._createValidationError(g)}return(Q&&!this._maskService.specialCharacters.includes(Q[0])||!Q||this._maskService.dropSpecialCharacters)&&g.length>=Y-1?null:this._createValidationError(g)}}if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null}return g&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onFocus(){this._isFocused=!0}onModelChange(g){(""===g||null==g)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(g){if(this._isComposing)return;const C=g.target,F=this._maskService.inputTransformFn(C.value);if("number"!==C.type)if("string"==typeof F||"number"==typeof F){if(C.value=F.toString(),this._inputValue=C.value,this._setMask(),!this._maskValue)return void this.onChange(C.value);let Y=1===C.selectionStart?C.selectionStart+this._maskService.prefix.length:C.selectionStart;if(this.showMaskTyped&&this.keepCharacterPositions&&1===this._maskService.placeHolderCharacter.length){const ee=C.value.slice(Y-1,Y),re=this.prefix.length,ne=this._maskService._checkSymbolMask(ee,this._maskService.maskExpression[Y-1-re]??""),_e=this._maskService._checkSymbolMask(ee,this._maskService.maskExpression[Y+1-re]??""),be=this._maskService.selStart===this._maskService.selEnd,oe=Number(this._maskService.selStart)-re,me=Number(this._maskService.selEnd)-re;if("Backspace"===this._code)if(be){if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(Y-this.prefix.length,Y+1-this.prefix.length))&&be)if(1===oe&&this.prefix)this._maskService.actualValue=`${this.prefix}${this._maskService.placeHolderCharacter}${C.value.split(this.prefix).join("").split(this.suffix).join("")}${this.suffix}`,Y-=1;else{const we=C.value.substring(0,Y),N=C.value.substring(Y);this._maskService.actualValue=`${we}${this._maskService.placeHolderCharacter}${N}`}}else this._maskService.actualValue=this._maskService.selStart===re?`${this.prefix}${this._maskService.maskIsShown.slice(0,me)}${this._inputValue.split(this.prefix).join("")}`:this._maskService.selStart===this._maskService.maskIsShown.length+re?`${this._inputValue}${this._maskService.maskIsShown.slice(oe,me)}`:`${this.prefix}${this._inputValue.split(this.prefix).join("").slice(0,oe)}${this._maskService.maskIsShown.slice(oe,me)}${this._maskService.actualValue.slice(me+re,this._maskService.maskIsShown.length+re)}${this.suffix}`;"Backspace"!==this._code&&(ne||_e||!be?this._maskService.specialCharacters.includes(C.value.slice(Y,Y+1))&&_e&&!this._maskService.specialCharacters.includes(C.value.slice(Y+1,Y+2))?(this._maskService.actualValue=`${C.value.slice(0,Y-1)}${C.value.slice(Y,Y+1)}${ee}${C.value.slice(Y+2)}`,Y+=1):ne?this._maskService.actualValue=1===C.value.length&&1===Y?`${this.prefix}${ee}${this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)}${this.suffix}`:`${C.value.slice(0,Y-1)}${ee}${C.value.slice(Y+1).split(this.suffix).join("")}${this.suffix}`:this.prefix&&1===C.value.length&&Y-re==1&&this._maskService._checkSymbolMask(C.value,this._maskService.maskExpression[Y-1-re]??"")&&(this._maskService.actualValue=`${this.prefix}${C.value}${this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)}${this.suffix}`):Y=Number(C.selectionStart)-1)}let Q=0,se=!1;if("Delete"===this._code&&(this._maskService.deletedSpecialCharacter=!0),this._inputValue.length>=this._maskService.maskExpression.length-1&&"Backspace"!==this._code&&"d0/M0/0000"===this._maskService.maskExpression&&Y<10){const ee=this._inputValue.slice(Y-1,Y);C.value=this._inputValue.slice(0,Y-1)+ee+this._inputValue.slice(Y+1)}if("d0/M0/0000"===this._maskService.maskExpression&&this.leadZeroDateTime&&(Y<3&&Number(C.value)>31&&Number(C.value)<40||5===Y&&Number(C.value.slice(3,5))>12)&&(Y+=2),"Hh:m0:s0"===this._maskService.maskExpression&&this.apm&&(this._justPasted&&"00"===C.value.slice(0,2)&&(C.value=C.value.slice(1,2)+C.value.slice(2,C.value.length)),C.value="00"===C.value?"0":C.value),this._maskService.applyValueChanges(Y,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(ee,re)=>{this._justPasted=!1,Q=ee,se=re}),this._getActiveElement()!==C)return;this._maskService.plusOnePosition&&(Y+=1,this._maskService.plusOnePosition=!1),this._maskExpressionArray.length&&(Y="Backspace"===this._code?this.specialCharacters.includes(this._inputValue.slice(Y-1,Y))?Y-1:Y:1===C.selectionStart?C.selectionStart+this._maskService.prefix.length:C.selectionStart),this._position=1===this._position&&1===this._inputValue.length?null:this._position;let ie=this._position?this._inputValue.length+Y+Q:Y+("Backspace"!==this._code||se?Q:0);ie>this._getActualInputLength()&&(ie=C.value===this._maskService.decimalMarker&&1===C.value.length?this._getActualInputLength()+1:this._getActualInputLength()),ie<0&&(ie=0),C.setSelectionRange(ie,ie),this._position=null}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof F);else{if(!this._maskValue)return void this.onChange(C.value);this._maskService.applyValueChanges(C.value.length,this._justPasted,"Backspace"===this._code||"Delete"===this._code)}}onCompositionStart(){this._isComposing=!0}onCompositionEnd(g){this._isComposing=!1,this._justPasted=!0,this.onInput(g)}onBlur(g){if(this._maskValue){const C=g.target;if(this.leadZero&&C.value.length>0&&"string"==typeof this.decimalMarker){const F=this._maskService.maskExpression,Y=Number(this._maskService.maskExpression.slice(F.length-1,F.length));if(Y>0){C.value=this.suffix?C.value.split(this.suffix).join(""):C.value;const Q=C.value.split(this.decimalMarker)[1];C.value=C.value.includes(this.decimalMarker)?C.value+"0".repeat(Y-Q.length)+this.suffix:C.value+this.decimalMarker+"0".repeat(Y)+this.suffix,this._maskService.actualValue=C.value}}this._maskService.clearIfNotMatchFn()}this._isFocused=!1,this.onTouch()}onClick(g){if(!this._maskValue)return;const C=g.target;null!==C&&null!==C.selectionStart&&C.selectionStart===C.selectionEnd&&C.selectionStart>this._maskService.prefix.length&&38!==g.keyCode&&this._maskService.showMaskTyped&&!this.keepCharacterPositions&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),C.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===C.value?(C.focus(),C.setSelectionRange(0,0)):C.selectionStart>this._maskService.actualValue.length&&C.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const Q=C&&(C.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:C.value);C&&C.value!==Q&&(C.value=Q),C&&"number"!==C.type&&(C.selectionStart||C.selectionEnd)<=this._maskService.prefix.length?C.selectionStart=this._maskService.prefix.length:C&&C.selectionEnd>this._getActualInputLength()&&(C.selectionEnd=this._getActualInputLength())}onKeyDown(g){if(!this._maskValue)return;if(this._isComposing)return void("Enter"===g.key&&this.onCompositionEnd(g));this._code=g.code?g.code:g.key;const C=g.target;if(this._inputValue=C.value,this._setMask(),"number"!==C.type){if("ArrowUp"===g.key&&g.preventDefault(),"ArrowLeft"===g.key||"Backspace"===g.key||"Delete"===g.key){if("Backspace"===g.key&&0===C.value.length&&(C.selectionStart=C.selectionEnd),"Backspace"===g.key&&0!==C.selectionStart)if(this.specialCharacters=this.specialCharacters?.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&C.selectionStart<=this.prefix.length)C.setSelectionRange(this.prefix.length,C.selectionEnd);else if(this._inputValue.length!==C.selectionStart&&1!==C.selectionStart)for(;this.specialCharacters.includes((this._inputValue[C.selectionStart-1]??"").toString())&&(this.prefix.length>=1&&C.selectionStart>this.prefix.length||0===this.prefix.length);)C.setSelectionRange(C.selectionStart-1,C.selectionEnd);this.checkSelectionOnDeletion(C),this._maskService.prefix.length&&C.selectionStart<=this._maskService.prefix.length&&C.selectionEnd<=this._maskService.prefix.length&&g.preventDefault(),"Backspace"===g.key&&!C.readOnly&&0===C.selectionStart&&C.selectionEnd===C.value.length&&0!==C.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<C.selectionStart?C.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):("KeyA"===g.code&&g.ctrlKey||"KeyA"===g.code&&g.metaKey)&&(C.setSelectionRange(0,this._getActualInputLength()),g.preventDefault()),this._maskService.selStart=C.selectionStart,this._maskService.selEnd=C.selectionEnd}}writeValue(g){var C=this;return(0,r.A)(function*(){if("object"==typeof g&&null!==g&&"value"in g&&("disable"in g&&C.setDisabledState(!!g.disable),g=g.value),null!==g&&(g=C.inputTransformFn?C.inputTransformFn(g):g),"string"==typeof g||"number"==typeof g||null==g){(null==g||""===g)&&(C._maskService._currentValue="",C._maskService._previousValue="");let F=g;if("number"==typeof F||C._maskValue.startsWith("separator")){F=String(F);const Y=C._maskService.currentLocaleDecimalMarker();Array.isArray(C._maskService.decimalMarker)||(F=C._maskService.decimalMarker!==Y?F.replace(Y,C._maskService.decimalMarker):F),Array.isArray(C._maskService.decimalMarker)&&"."===C.decimalMarker&&(C._maskService.decimalMarker=","),C._maskService.leadZero&&F&&C.maskExpression&&!1!==C.dropSpecialCharacters&&(F=C._maskService._checkPrecision(C._maskService.maskExpression,F)),","===C._maskService.decimalMarker&&(F=F.toString().replace(".",",")),C.maskExpression?.startsWith("separator")&&C.leadZero&&requestAnimationFrame(()=>{C._maskService.applyMask(F?.toString()??"",C._maskService.maskExpression)}),C._maskService.isNumberValue=!0}"string"!=typeof F&&(F=""),C._inputValue=F,C._setMask(),F&&C._maskService.maskExpression||C._maskService.maskExpression&&(C._maskService.prefix||C._maskService.showMaskTyped)?("function"!=typeof C.inputTransformFn&&(C._maskService.writingValue=!0),C._maskService.formElementProperty=["value",C._maskService.applyMask(F,C._maskService.maskExpression)],"function"!=typeof C.inputTransformFn&&(C._maskService.writingValue=!1)):C._maskService.formElementProperty=["value",F],C._inputValue=F}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof g)})()}registerOnChange(g){this._maskService.onChange=this.onChange=g}registerOnTouched(g){this.onTouch=g}_getActiveElement(g=this.document){const C=g?.activeElement?.shadowRoot;return C?.activeElement?this._getActiveElement(C):g.activeElement}checkSelectionOnDeletion(g){g.selectionStart=Math.min(Math.max(this.prefix.length,g.selectionStart),this._inputValue.length-this.suffix.length),g.selectionEnd=Math.min(Math.max(this.prefix.length,g.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(g){this._maskService.formElementProperty=["disabled",g]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(g){const C=this._maskValue.split("").filter(F=>":"!==F).length;return g&&(0==+(g[g.length-1]??-1)&&g.length<C||g.length<=C-2)?this._createValidationError(g):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(g){return{mask:{requiredMask:this._maskValue,actualValue:g}}}_setMask(){this._maskExpressionArray.some(g=>{if(g.split("").some(F=>this._maskService.specialCharacters.includes(F))&&this._inputValue&&!g.includes("S")||g.includes("{")){const F=this._maskService.removeMask(this._inputValue)?.length<=this._maskService.removeMask(g)?.length;if(F)return this._maskValue=this.maskExpression=this._maskService.maskExpression=g.includes("{")?this._maskService._repeatPatternSymbols(g):g,F;{const Y=this._maskExpressionArray[this._maskExpressionArray.length-1]??"";this._maskValue=this.maskExpression=this._maskService.maskExpression=Y.includes("{")?this._maskService._repeatPatternSymbols(Y):Y}}else{const F=this._maskService.removeMask(this._inputValue)?.split("").every((Y,Q)=>{const se=g.charAt(Q);return this._maskService._checkSymbolMask(Y,se)});if(F)return this._maskValue=this.maskExpression=this._maskService.maskExpression=g,F}})}static#e=this.\u0275fac=function(C){return new(C||I)};static#t=this.\u0275dir=d.FsC({type:I,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(C,F){1&C&&d.bIt("paste",function(){return F.onPaste()})("focus",function(Q){return F.onFocus(Q)})("ngModelChange",function(Q){return F.onModelChange(Q)})("input",function(Q){return F.onInput(Q)})("compositionstart",function(Q){return F.onCompositionStart(Q)})("compositionend",function(Q){return F.onCompositionEnd(Q)})("blur",function(Q){return F.onBlur(Q)})("click",function(Q){return F.onClick(Q)})("keydown",function(Q){return F.onKeyDown(Q)})},inputs:{maskExpression:[d.Mj6.None,"mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime",leadZero:"leadZero",triggerOnMaskChange:"triggerOnMaskChange",apm:"apm",inputTransformFn:"inputTransformFn",outputTransformFn:"outputTransformFn",keepCharacterPositions:"keepCharacterPositions"},outputs:{maskFilled:"maskFilled"},exportAs:["mask","ngxMask"],standalone:!0,features:[d.Jv_([{provide:j.kq,useExisting:I,multi:!0},{provide:j.cz,useExisting:I,multi:!0},s]),d.OA$]})}return I})()},36554:(ei,rt,D)=>{"use strict";D.d(rt,{PO:()=>Y,et:()=>F,ex:()=>x});var r=D(54438),d=D(84412),L=D(21413),j=D(5964),o=D(56977),E=D(49969),R=D(345),m=D(60177);const _=["overlay"],v=["*"];function h(se,ie){1&se&&r.nrm(0,"div")}function s(se,ie){if(1&se&&(r.j41(0,"div"),r.DNE(1,h,1,0,"div",6),r.k0s()),2&se){const ee=r.XpG(2);r.HbH(ee.spinner.class),r.xc7("color",ee.spinner.color),r.R7$(),r.Y8G("ngForOf",ee.spinner.divArray)}}function b(se,ie){if(1&se&&(r.nrm(0,"div",7),r.nI1(1,"safeHtml")),2&se){const ee=r.XpG(2);r.Y8G("innerHTML",r.bMT(1,1,ee.template),r.npT)}}function O(se,ie){if(1&se&&(r.j41(0,"div",2,0),r.DNE(2,s,2,5,"div",3)(3,b,2,3,"div",4),r.j41(4,"div",5),r.SdG(5),r.k0s()()),2&se){const ee=r.XpG();r.xc7("background-color",ee.spinner.bdColor)("z-index",ee.spinner.zIndex)("position",ee.spinner.fullScreen?"fixed":"absolute"),r.Y8G("@.disabled",ee.disableAnimation)("@fadeIn","in"),r.R7$(2),r.Y8G("ngIf",!ee.template),r.R7$(),r.Y8G("ngIf",ee.template),r.R7$(),r.xc7("z-index",ee.spinner.zIndex)}}const w={"ball-8bits":16,"ball-atom":4,"ball-beat":3,"ball-circus":5,"ball-climbing-dot":4,"ball-clip-rotate":1,"ball-clip-rotate-multiple":2,"ball-clip-rotate-pulse":2,"ball-elastic-dots":5,"ball-fall":3,"ball-fussion":4,"ball-grid-beat":9,"ball-grid-pulse":9,"ball-newton-cradle":4,"ball-pulse":3,"ball-pulse-rise":5,"ball-pulse-sync":3,"ball-rotate":1,"ball-running-dots":5,"ball-scale":1,"ball-scale-multiple":3,"ball-scale-pulse":2,"ball-scale-ripple":1,"ball-scale-ripple-multiple":3,"ball-spin":8,"ball-spin-clockwise":8,"ball-spin-clockwise-fade":8,"ball-spin-clockwise-fade-rotating":8,"ball-spin-fade":8,"ball-spin-fade-rotating":8,"ball-spin-rotate":2,"ball-square-clockwise-spin":8,"ball-square-spin":8,"ball-triangle-path":3,"ball-zig-zag":2,"ball-zig-zag-deflect":2,cog:1,"cube-transition":2,fire:3,"line-scale":5,"line-scale-party":5,"line-scale-pulse-out":5,"line-scale-pulse-out-rapid":5,"line-spin-clockwise-fade":8,"line-spin-clockwise-fade-rotating":8,"line-spin-fade":8,"line-spin-fade-rotating":8,pacman:6,"square-jelly-box":2,"square-loader":1,"square-spin":1,timer:1,"triangle-skew-spin":1},k="primary";class I{constructor(ie){Object.assign(this,ie)}static create(ie){return!ie?.template&&!ie?.type&&console.warn('[ngx-spinner]: Property "type" is missed. Please, provide animation type to <ngx-spinner> component\n and ensure css is added to angular.json file'),new I(ie)}}let x=(()=>{class se{constructor(){this.spinnerObservable=new d.t(null)}getSpinner(ee){return this.spinnerObservable.asObservable().pipe((0,j.p)(re=>re&&re.name===ee))}show(ee=k,re){return new Promise((ne,_e)=>{setTimeout(()=>{re&&Object.keys(re).length?(re.name=ee,this.spinnerObservable.next(new I({...re,show:!0})),ne(!0)):(this.spinnerObservable.next(new I({name:ee,show:!0})),ne(!0))},10)})}hide(ee=k,re=10){return new Promise((ne,_e)=>{setTimeout(()=>{this.spinnerObservable.next(new I({name:ee,show:!1})),ne(!0)},re)})}static#e=this.\u0275fac=function(re){return new(re||se)};static#t=this.\u0275prov=r.jDH({token:se,factory:se.\u0275fac,providedIn:"root"})}return se})();const g=new r.nKC("NGX_SPINNER_CONFIG");let C=(()=>{class se{constructor(ee){this._sanitizer=ee}transform(ee){if(ee)return this._sanitizer.bypassSecurityTrustHtml(ee)}static#e=this.\u0275fac=function(re){return new(re||se)(r.rXU(R.up,16))};static#t=this.\u0275pipe=r.EJ8({name:"safeHtml",type:se,pure:!0,standalone:!0})}return se})(),F=(()=>{class se{constructor(ee,re,ne,_e){this.spinnerService=ee,this.changeDetector=re,this.elementRef=ne,this.globalConfig=_e,this.disableAnimation=!1,this.spinner=new I,this.ngUnsubscribe=new L.B,this.setDefaultOptions=()=>{const{type:be}=this.globalConfig??{};this.spinner=I.create({name:this.name,bdColor:this.bdColor,size:this.size,color:this.color,type:this.type??be,fullScreen:this.fullScreen,divArray:this.divArray,divCount:this.divCount,show:this.show,zIndex:this.zIndex,template:this.template,showSpinner:this.showSpinner})},this.bdColor="rgba(51,51,51,0.8)",this.zIndex=99999,this.color="#fff",this.size="large",this.fullScreen=!0,this.name=k,this.template=null,this.showSpinner=!1,this.divArray=[],this.divCount=0,this.show=!1}initObservable(){this.spinnerService.getSpinner(this.name).pipe((0,o.Q)(this.ngUnsubscribe)).subscribe(ee=>{this.setDefaultOptions(),Object.assign(this.spinner,ee),ee.show&&this.onInputChange(),this.changeDetector.detectChanges()})}ngOnInit(){this.setDefaultOptions(),this.initObservable()}isSpinnerZone(ee){return ee===this.elementRef.nativeElement.parentElement||ee.parentNode&&this.isSpinnerZone(ee.parentNode)}ngOnChanges(ee){for(const re in ee)if(re){const ne=ee[re];if(ne.isFirstChange())return;typeof ne.currentValue<"u"&&ne.currentValue!==ne.previousValue&&""!==ne.currentValue&&(this.spinner[re]=ne.currentValue,"showSpinner"===re&&(ne.currentValue?this.spinnerService.show(this.spinner.name,this.spinner):this.spinnerService.hide(this.spinner.name)),"name"===re&&this.initObservable())}}getClass(ee,re){this.spinner.divCount=w[ee],this.spinner.divArray=Array(this.spinner.divCount).fill(0).map((_e,be)=>be);let ne="";switch(re.toLowerCase()){case"small":ne="la-sm";break;case"medium":ne="la-2x";break;case"large":ne="la-3x"}return"la-"+ee+" "+ne}onInputChange(){this.spinner.class=this.getClass(this.spinner.type,this.spinner.size)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}static#e=this.\u0275fac=function(re){return new(re||se)(r.rXU(x),r.rXU(r.gRc),r.rXU(r.aKT),r.rXU(g,8))};static#t=this.\u0275cmp=r.VBU({type:se,selectors:[["ngx-spinner"]],viewQuery:function(re,ne){if(1&re&&r.GBs(_,5),2&re){let _e;r.mGM(_e=r.lsd())&&(ne.spinnerDOM=_e.first)}},inputs:{bdColor:"bdColor",size:"size",color:"color",type:"type",fullScreen:"fullScreen",name:"name",zIndex:"zIndex",template:"template",showSpinner:"showSpinner",disableAnimation:"disableAnimation"},standalone:!0,features:[r.OA$,r.aNF],ngContentSelectors:v,decls:1,vars:1,consts:[["overlay",""],["class","ngx-spinner-overlay",3,"background-color","z-index","position",4,"ngIf"],[1,"ngx-spinner-overlay"],[3,"class","color",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"loading-text"],[4,"ngFor","ngForOf"],[3,"innerHTML"]],template:function(re,ne){1&re&&(r.NAR(),r.DNE(0,O,6,12,"div",1)),2&re&&r.Y8G("ngIf",ne.spinner.show)},dependencies:[C,m.bT,m.pM],styles:[".ngx-spinner-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%}.ngx-spinner-overlay[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.loading-text){top:50%;left:50%;margin:0;position:absolute;transform:translate(-50%,-50%)}.loading-text[_ngcontent-%COMP%]{position:absolute;top:60%;left:50%;transform:translate(-50%,-60%)}"],data:{animation:[(0,E.hZ)("fadeIn",[(0,E.wk)("in",(0,E.iF)({opacity:1})),(0,E.kY)(":enter",[(0,E.iF)({opacity:0}),(0,E.i0)(300)]),(0,E.kY)(":leave",(0,E.i0)(200,(0,E.iF)({opacity:0})))])]},changeDetection:0})}return se})(),Y=(()=>{class se{static forRoot(ee){return{ngModule:se,providers:[{provide:g,useValue:ee}]}}static#e=this.\u0275fac=function(re){return new(re||se)};static#t=this.\u0275mod=r.$C({type:se});static#i=this.\u0275inj=r.G2t({imports:[m.MD]})}return se})()},10467:(ei,rt,D)=>{"use strict";function r(L,j,o,E,R,m,_){try{var v=L[m](_),h=v.value}catch(s){return void o(s)}v.done?j(h):Promise.resolve(h).then(E,R)}function d(L){return function(){var j=this,o=arguments;return new Promise(function(E,R){var m=L.apply(j,o);function _(h){r(m,E,R,_,v,"next",h)}function v(h){r(m,E,R,_,v,"throw",h)}_(void 0)})}}D.d(rt,{A:()=>d})},58168:(ei,rt,D)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(d){for(var L=1;L<arguments.length;L++){var j=arguments[L];for(var o in j)Object.prototype.hasOwnProperty.call(j,o)&&(d[o]=j[o])}return d},r.apply(this,arguments)}D.d(rt,{A:()=>r})},98587:(ei,rt,D)=>{"use strict";function r(d,L){if(null==d)return{};var E,R,j={},o=Object.keys(d);for(R=0;R<o.length;R++)!(L.indexOf(E=o[R])>=0)&&(j[E]=d[E]);return j}D.d(rt,{A:()=>r})},82284:(ei,rt,D)=>{"use strict";function r(d){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(d)}D.d(rt,{A:()=>r})},31635:(ei,rt,D)=>{"use strict";function s(G,W,z,X){return new(z||(z=Promise))(function(ye,xe){function ge(Ie){try{he(X.next(Ie))}catch(ce){xe(ce)}}function Ee(Ie){try{he(X.throw(Ie))}catch(ce){xe(ce)}}function he(Ie){Ie.done?ye(Ie.value):function q(ye){return ye instanceof z?ye:new z(function(xe){xe(ye)})}(Ie.value).then(ge,Ee)}he((X=X.apply(G,W||[])).next())})}function C(G){return this instanceof C?(this.v=G,this):new C(G)}function F(G,W,z){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q,X=z.apply(G,W||[]),ye=[];return q={},xe("next"),xe("throw"),xe("return"),q[Symbol.asyncIterator]=function(){return this},q;function xe(de){X[de]&&(q[de]=function(pe){return new Promise(function(Be,We){ye.push([de,pe,Be,We])>1||ge(de,pe)})})}function ge(de,pe){try{!function Ee(de){de.value instanceof C?Promise.resolve(de.value.v).then(he,Ie):ce(ye[0][2],de)}(X[de](pe))}catch(Be){ce(ye[0][3],Be)}}function he(de){ge("next",de)}function Ie(de){ge("throw",de)}function ce(de,pe){de(pe),ye.shift(),ye.length&&ge(ye[0][0],ye[0][1])}}function Q(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var z,W=G[Symbol.asyncIterator];return W?W.call(G):(G=function f(G){var W="function"==typeof Symbol&&Symbol.iterator,z=W&&G[W],X=0;if(z)return z.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&X>=G.length&&(G=void 0),{value:G&&G[X++],done:!G}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")}(G),z={},X("next"),X("throw"),X("return"),z[Symbol.asyncIterator]=function(){return this},z);function X(ye){z[ye]=G[ye]&&function(xe){return new Promise(function(ge,Ee){!function q(ye,xe,ge,Ee){Promise.resolve(Ee).then(function(he){ye({value:he,done:ge})},xe)}(ge,Ee,(xe=G[ye](xe)).done,xe.value)})}}}D.d(rt,{AQ:()=>F,N3:()=>C,sH:()=>s,xN:()=>Q}),"function"==typeof SuppressedError&&SuppressedError},93041:ei=>{"use strict";ei.exports=JSON.parse('{"de":{"Yes":"Ja","No":"Nein","Cancel":"Abbrechen","Close":"Schlie\xdfen","Clear":"L\xf6schen","Done":"Fertig","Loading":"Laden...","Select":"Ausw\xe4hlen...","Search":"Suchen...","Back":"Zur\xfcck","OK":"OK","dxCollectionWidget-noDataText":"Keine Daten verf\xfcgbar","dxDropDownEditor-selectLabel":"Ausw\xe4hlen","validation-required":"Pflichtfeld","validation-required-formatted":"{0} ist ein Pflichtfeld","validation-numeric":"Der Wert muss eine Zahl sein","validation-numeric-formatted":"{0} muss eine Zahl sein","validation-range":"Der Wert ist nicht im g\xfcltigen Bereich","validation-range-formatted":"{0} ist nicht im g\xfcltigen Bereich","validation-stringLength":"Die L\xe4nge des Wertes ist nicht korrekt","validation-stringLength-formatted":"Die L\xe4nge von {0} ist nicht korrekt","validation-custom":"Der Wert ist ung\xfcltig","validation-custom-formatted":"{0} ist ung\xfcltig","validation-async":"Der Wert ist ung\xfcltig","validation-async-formatted":"{0} ist ung\xfcltig","validation-compare":"Der Wert ist unpassend","validation-compare-formatted":"{0} ist unpassend","validation-pattern":"Der Wert passt nicht zum Muster","validation-pattern-formatted":"{0} passt nicht zum Muster","validation-email":"Die Email-Adresse ist ung\xfcltig","validation-email-formatted":"{0} ist ung\xfcltig","validation-mask":"Der Wert ist ung\xfcltig","dxLookup-searchPlaceholder":"Minimale Anzahl Zeichen: {0}","dxList-pullingDownText":"Zum Aktualisieren nach unten ziehen","dxList-pulledDownText":"Zum Aktualisieren loslassen","dxList-refreshingText":"Aktualisiere...","dxList-pageLoadingText":"Laden...","dxList-nextButtonText":"Mehr","dxList-selectAll":"Alles ausw\xe4hlen","dxListEditDecorator-delete":"Entfernen","dxListEditDecorator-more":"Mehr","dxScrollView-pullingDownText":"Zum Aktualisieren nach unten ziehen","dxScrollView-pulledDownText":"Zum Aktualisieren loslassen","dxScrollView-refreshingText":"Aktualisiere...","dxScrollView-reachBottomText":"Laden...","dxDateBox-simulatedDataPickerTitleTime":"Zeit ausw\xe4hlen","dxDateBox-simulatedDataPickerTitleDate":"Datum ausw\xe4hlen","dxDateBox-simulatedDataPickerTitleDateTime":"Datum und Zeit ausw\xe4hlen","dxDateBox-validation-datetime":"Der Wert muss ein Datum oder eine Uhrzeit sein","dxDateRangeBox-invalidStartDateMessage":"Anfangsdatum muss ein Datum sein","dxDateRangeBox-invalidEndDateMessage":"Enddatum muss ein Datum sein","dxDateRangeBox-startDateOutOfRangeMessage":"Anfangsdatum ist ausserhalb des g\xfcltigen Bereichs","dxDateRangeBox-endDateOutOfRangeMessage":"Enddatum ist ausserhalb des g\xfcltigen Bereichs","dxDateRangeBox-startDateLabel":"Anfangsdatum","dxDateRangeBox-endDateLabel":"Enddatum","dxFileUploader-selectFile":"Datei ausw\xe4hlen","dxFileUploader-dropFile":"oder hierher ziehen","dxFileUploader-bytes":"Bytes","dxFileUploader-kb":"KB","dxFileUploader-Mb":"MB","dxFileUploader-Gb":"GB","dxFileUploader-upload":"Hochladen","dxFileUploader-uploaded":"Hochgeladen","dxFileUploader-readyToUpload":"Bereit zum Hochladen","dxFileUploader-uploadAbortedMessage":"Upload abgebrochen","dxFileUploader-uploadFailedMessage":"Fehler beim Hochladen","dxFileUploader-invalidFileExtension":"Unzul\xe4ssiger Dateityp","dxFileUploader-invalidMaxFileSize":"Datei ist zu gro\xdf","dxFileUploader-invalidMinFileSize":"Datei ist zu klein","dxRangeSlider-ariaFrom":"Von","dxRangeSlider-ariaTill":"Bis","dxSwitch-switchedOnText":"EIN","dxSwitch-switchedOffText":"AUS","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} ist ein Pflichtfeld","dxNumberBox-invalidValueMessage":"Der Wert muss eine Zahl sein","dxNumberBox-noDataText":"Keine Daten","dxDataGrid-emptyHeaderWithColumnChooserText":"Verwenden Sie die {0}, um Spalten anzuzeigen","dxDataGrid-emptyHeaderWithGroupPanelText":"Ziehen Sie eine Spalte aus dem Gruppenpanel hierher","dxDataGrid-emptyHeaderWithColumnChooserAndGroupPanelText":"Verwenden Sie die {0} oder ziehen Sie eine Spalte aus dem Gruppenpanel","dxDataGrid-emptyHeaderColumnChooserText":"Spaltenauswahl","dxDataGrid-columnChooserTitle":"Spaltenauswahl","dxDataGrid-columnChooserEmptyText":"Ziehen Sie Spalten hierhin, um sie zu verstecken","dxDataGrid-groupContinuesMessage":"Weiter auf der n\xe4chsten Seite","dxDataGrid-groupContinuedMessage":"Weiter von der vorherigen Seite","dxDataGrid-groupHeaderText":"Nach dieser Spalte gruppieren","dxDataGrid-ungroupHeaderText":"Gruppierung entfernen","dxDataGrid-ungroupAllText":"Alle Gruppierungen entfernen","dxDataGrid-editingEditRow":"Bearbeiten","dxDataGrid-editingSaveRowChanges":"Speichern","dxDataGrid-editingCancelRowChanges":"Abbrechen","dxDataGrid-editingDeleteRow":"Entfernen","dxDataGrid-editingUndeleteRow":"Wiederherstellen","dxDataGrid-editingConfirmDeleteMessage":"Sind Sie sicher, dass Sie diesen Datensatz l\xf6schen wollen?","dxDataGrid-validationCancelChanges":"\xc4nderungen verwerfen","dxDataGrid-groupPanelEmptyText":"Ziehen Sie eine Spalte hierhin, um danach zu gruppieren","dxDataGrid-noDataText":"Keine Daten","dxDataGrid-searchPanelPlaceholder":"Suchen...","dxDataGrid-filterRowShowAllText":"(Alle)","dxDataGrid-filterRowResetOperationText":"Zur\xfccksetzen","dxDataGrid-filterRowOperationEquals":"Ist gleich","dxDataGrid-filterRowOperationNotEquals":"Ist nicht gleich","dxDataGrid-filterRowOperationLess":"Kleiner als","dxDataGrid-filterRowOperationLessOrEquals":"Kleiner oder gleich","dxDataGrid-filterRowOperationGreater":"Gr\xf6\xdfer als","dxDataGrid-filterRowOperationGreaterOrEquals":"Gr\xf6\xdfer oder gleich","dxDataGrid-filterRowOperationStartsWith":"Beginnt mit","dxDataGrid-filterRowOperationContains":"Enth\xe4lt","dxDataGrid-filterRowOperationNotContains":"Enth\xe4lt nicht","dxDataGrid-filterRowOperationEndsWith":"Endet mit","dxDataGrid-filterRowOperationBetween":"Zwischen","dxDataGrid-filterRowOperationBetweenStartText":"Anfang","dxDataGrid-filterRowOperationBetweenEndText":"Ende","dxDataGrid-ariaSearchBox":"Search box","dxDataGrid-applyFilterText":"Filter anwenden","dxDataGrid-trueText":"wahr","dxDataGrid-falseText":"falsch","dxDataGrid-sortingAscendingText":"Aufsteigend sortieren","dxDataGrid-sortingDescendingText":"Absteigend sortieren","dxDataGrid-sortingClearText":"Sortierung aufheben","dxDataGrid-ariaNotSortedColumn":"Not sorted column","dxDataGrid-ariaSortedAscendingColumn":"Column sorted in ascending order","dxDataGrid-ariaSortedDescendingColumn":"Column sorted in descending order","dxDataGrid-ariaSortIndex":"Sort index {0}","dxDataGrid-editingSaveAllChanges":"\xc4nderungen speichern","dxDataGrid-editingCancelAllChanges":"\xc4nderungen verwerfen","dxDataGrid-editingAddRow":"Neue Zeile","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Minimum von {1} ist {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Maximum von {1} ist {0}","dxDataGrid-summaryAvg":"\xd8: {0}","dxDataGrid-summaryAvgOtherColumn":"Durchschnitt von {1} ist {0}","dxDataGrid-summarySum":"Summe: {0}","dxDataGrid-summarySumOtherColumn":"Summe von {1} ist {0}","dxDataGrid-summaryCount":"Anzahl: {0}","dxDataGrid-columnFixingFix":"Fixieren","dxDataGrid-columnFixingUnfix":"L\xf6sen","dxDataGrid-columnFixingLeftPosition":"Nach links","dxDataGrid-columnFixingRightPosition":"Nach rechts","dxDataGrid-exportTo":"Exportieren","dxDataGrid-exportToExcel":"Exportieren als Excel-Datei","dxDataGrid-exporting":"Exportieren ...","dxDataGrid-excelFormat":"Excel-Datei","dxDataGrid-selectedRows":"Ausgew\xe4hlte Zeilen","dxDataGrid-exportSelectedRows":"Ausgew\xe4hlte Zeilen exportieren nach {0}","dxDataGrid-exportAll":"Alle Daten exportieren nach {0}","dxDataGrid-headerFilterLabel":"Filteroptionen","dxDataGrid-headerFilterIndicatorLabel":"Filteroptionen f\xfcr Spalte \'{0}\' anzeigen","dxDataGrid-headerFilterEmptyValue":"(Leerwerte)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Abbrechen","dxDataGrid-ariaAdaptiveCollapse":"Zus\xe4tzliche Spalten verstecken","dxDataGrid-ariaAdaptiveExpand":"Zus\xe4tzliche Spalten anzeigen","dxDataGrid-ariaColumn":"Spalte","dxDataGrid-ariaColumnHeader":"Column header","dxDataGrid-ariaValue":"Wert","dxDataGrid-ariaError":"Error","dxDataGrid-ariaRevertButton":"Press Escape to discard the changes","dxDataGrid-ariaFilterCell":"Filterzelle","dxDataGrid-ariaCollapse":"Zusammenklappen","dxDataGrid-ariaModifiedCell":"Modified","dxDataGrid-ariaDeletedCell":"Deleted","dxDataGrid-ariaEditableCell":"Editable","dxDataGrid-ariaExpand":"Aufklappen","dxDataGrid-ariaCollapsedRow":"Collapsed row","dxDataGrid-ariaExpandedRow":"Expanded row","dxDataGrid-ariaDataGrid":"Datentabelle mit {0} Zeilen und {1} Spalten","dxDataGrid-ariaSearchInGrid":"Suchen in der Datentabelle","dxDataGrid-ariaSelectAll":"Alle ausw\xe4hlen","dxDataGrid-ariaSelectRow":"Zeile ausw\xe4hlen","dxDataGrid-ariaToolbar":"Symbolleiste der Datentabelle","dxDataGrid-ariaEditForm":"Edit form","dxDataGrid-filterBuilderPopupTitle":"Filter-Generator","dxDataGrid-filterPanelCreateFilter":"Filter erzeugen","dxDataGrid-filterPanelClearFilter":"Zur\xfccksetzen","dxDataGrid-filterPanelFilterEnabledHint":"Filter aktivieren","dxTreeList-ariaTreeList":"TreeList mit {0} Zeilen und {1} Spalten","dxTreeList-ariaSearchInGrid":"Suchen in der Strukturliste","dxTreeList-ariaToolbar":"Symbolleiste der Strukturliste","dxTreeList-editingAddRowToNode":"Hinzuf\xfcgen","dxPager-infoText":"Seite {0} von {1} ({2} Elemente)","dxPager-pagesCountText":"von","dxPager-pageSize":"Elemente pro Seite: {0}","dxPager-pageSizesAllText":"Alle","dxPager-page":"Seite {0}","dxPager-prevPage":"Vorherige Seite","dxPager-nextPage":"N\xe4chste Seite","dxPager-ariaLabel":"Seitennavigation","dxPager-ariaPageSize":"Seitenl\xe4nge","dxPager-ariaPageNumber":"Seitennummer","dxPivotGrid-grandTotal":"Gesamt","dxPivotGrid-total":"{0} Gesamt","dxPivotGrid-fieldChooserTitle":"Feldauswahl","dxPivotGrid-showFieldChooser":"Feldauswahl anzeigen","dxPivotGrid-expandAll":"Alle aufklappen","dxPivotGrid-collapseAll":"Alle zusammenklappen","dxPivotGrid-sortColumnBySummary":"\\"{0}\\" nach dieser Spalte sortieren","dxPivotGrid-sortRowBySummary":"\\"{0}\\" nach dieser Zeile sortieren","dxPivotGrid-removeAllSorting":"Sortierungen entfernen","dxPivotGrid-dataNotAvailable":"Entf.","dxPivotGrid-rowFields":"Zeilenfelder","dxPivotGrid-columnFields":"Spaltenfelder","dxPivotGrid-dataFields":"Datenfelder","dxPivotGrid-filterFields":"Filterfelder","dxPivotGrid-allFields":"Alle Felder","dxPivotGrid-columnFieldArea":"Spaltenfelder hierher ziehen","dxPivotGrid-dataFieldArea":"Datenfelder hierher ziehen","dxPivotGrid-rowFieldArea":"Zeilenfelder hierher ziehen","dxPivotGrid-filterFieldArea":"Filterfelder hierher ziehen","dxScheduler-editorLabelTitle":"Betreff","dxScheduler-editorLabelStartDate":"Anfangszeit","dxScheduler-editorLabelEndDate":"Endzeit","dxScheduler-editorLabelDescription":"Beschreibung","dxScheduler-editorLabelRecurrence":"Wiederholen","dxScheduler-openAppointment":"Termin \xf6ffnen","dxScheduler-recurrenceNever":"Nie","dxScheduler-recurrenceMinutely":"Min\xfctlich","dxScheduler-recurrenceHourly":"St\xfcndlich","dxScheduler-recurrenceDaily":"T\xe4glich","dxScheduler-recurrenceWeekly":"W\xf6chentlich","dxScheduler-recurrenceMonthly":"Monatlich","dxScheduler-recurrenceYearly":"J\xe4hrlich","dxScheduler-recurrenceRepeatEvery":"Wiederholen alle","dxScheduler-recurrenceRepeatOn":"Wiederholen an","dxScheduler-recurrenceEnd":"Wiederholungsende","dxScheduler-recurrenceAfter":"Nach","dxScheduler-recurrenceOn":"Am","dxScheduler-recurrenceRepeatMinutely":"Minute(n)","dxScheduler-recurrenceRepeatHourly":"Stunde(n)","dxScheduler-recurrenceRepeatDaily":"Tag(e)","dxScheduler-recurrenceRepeatWeekly":"Woche(n)","dxScheduler-recurrenceRepeatMonthly":"Monat(e)","dxScheduler-recurrenceRepeatYearly":"Jahr(e)","dxScheduler-switcherDay":"Tag","dxScheduler-switcherWeek":"Woche","dxScheduler-switcherWorkWeek":"Arbeitswoche","dxScheduler-switcherMonth":"Monat","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Zeitstrahl Tag","dxScheduler-switcherTimelineWeek":"Zeitstrahl Woche","dxScheduler-switcherTimelineWorkWeek":"Zeitstrahl Arbeitswoche","dxScheduler-switcherTimelineMonth":"Zeitstrahl Monat","dxScheduler-recurrenceRepeatOnDate":"am Datum","dxScheduler-recurrenceRepeatCount":"Ereignisse","dxScheduler-allDay":"Ganzt\xe4gig","dxScheduler-confirmRecurrenceEditTitle":"Edit Recurring Appointment","dxScheduler-confirmRecurrenceDeleteTitle":"Delete Recurring Appointment","dxScheduler-confirmRecurrenceEditMessage":"M\xf6chten Sie nur diesen Termin bearbeiten, oder die gesamte Serie?","dxScheduler-confirmRecurrenceDeleteMessage":"M\xf6chten Sie nur diesen Termin l\xf6schen, oder die gesamte Serie?","dxScheduler-confirmRecurrenceEditSeries":"Serie bearbeiten","dxScheduler-confirmRecurrenceDeleteSeries":"Serie l\xf6schen","dxScheduler-confirmRecurrenceEditOccurrence":"Termin bearbeiten","dxScheduler-confirmRecurrenceDeleteOccurrence":"Termin l\xf6schen","dxScheduler-noTimezoneTitle":"Keine Zeitzone","dxScheduler-moreAppointments":"{0} weitere","dxCalendar-todayButtonText":"Heute","dxCalendar-ariaWidgetName":"Kalendar","dxCalendar-previousMonthButtonLabel":"Previous month","dxCalendar-previousYearButtonLabel":"Previous year","dxCalendar-previousDecadeButtonLabel":"Previous decade","dxCalendar-previousCenturyButtonLabel":"Previous century","dxCalendar-nextMonthButtonLabel":"Next month","dxCalendar-nextYearButtonLabel":"Next year","dxCalendar-nextDecadeButtonLabel":"Next decade","dxCalendar-nextCenturyButtonLabel":"Next century","dxCalendar-captionMonthLabel":"Month selection","dxCalendar-captionYearLabel":"Year selection","dxCalendar-captionDecadeLabel":"Decade selection","dxCalendar-captionCenturyLabel":"Century selection","dxColorView-ariaRed":"Rot","dxColorView-ariaGreen":"Gr\xfcn","dxColorView-ariaBlue":"Blau","dxColorView-ariaAlpha":"Transparenz","dxColorView-ariaHex":"Farbwert","dxTagBox-selected":"{0} ausgew\xe4hlt","dxTagBox-allSelected":"Alle ausgew\xe4hlt ({0})","dxTagBox-moreSelected":"{0} weitere","vizExport-printingButtonText":"Drucken","vizExport-titleMenuText":"Export/Druck","vizExport-exportButtonText":"{0}-Datei","dxFilterBuilder-and":"Und","dxFilterBuilder-or":"Oder","dxFilterBuilder-notAnd":"Nicht Und","dxFilterBuilder-notOr":"Nicht Oder","dxFilterBuilder-addCondition":"Bedingung hinzuf\xfcgen","dxFilterBuilder-addGroup":"Gruppe hinzuf\xfcgen","dxFilterBuilder-enterValueText":"<Wert eingeben>","dxFilterBuilder-filterOperationEquals":"Ist gleich","dxFilterBuilder-filterOperationNotEquals":"Ist nicht gleich","dxFilterBuilder-filterOperationLess":"Kleiner als","dxFilterBuilder-filterOperationLessOrEquals":"Kleiner oder gleich","dxFilterBuilder-filterOperationGreater":"Gr\xf6\xdfer als","dxFilterBuilder-filterOperationGreaterOrEquals":"Gr\xf6\xdfer oder gleich","dxFilterBuilder-filterOperationStartsWith":"Beginnt mit","dxFilterBuilder-filterOperationContains":"Enth\xe4lt","dxFilterBuilder-filterOperationNotContains":"Enth\xe4lt nicht","dxFilterBuilder-filterOperationEndsWith":"Endet mit","dxFilterBuilder-filterOperationIsBlank":"Ist leer","dxFilterBuilder-filterOperationIsNotBlank":"Ist nicht leer","dxFilterBuilder-filterOperationBetween":"Zwischen","dxFilterBuilder-filterOperationAnyOf":"Ist enthalten in","dxFilterBuilder-filterOperationNoneOf":"Ist nicht enthalten in","dxHtmlEditor-dialogColorCaption":"Schriftfarbe \xe4ndern","dxHtmlEditor-dialogBackgroundCaption":"Hintergrundfarbe \xe4ndern","dxHtmlEditor-dialogLinkCaption":"Link hinzuf\xfcgen","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Link in neuem Fenster \xf6ffnen","dxHtmlEditor-dialogImageCaption":"Bild hinzuf\xfcgen","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternativer Text","dxHtmlEditor-dialogImageWidthField":"Breite (px)","dxHtmlEditor-dialogImageHeightField":"Bildh\xf6he (px)","dxHtmlEditor-dialogInsertTableRowsField":"Zeilen","dxHtmlEditor-dialogInsertTableColumnsField":"Spalten","dxHtmlEditor-dialogInsertTableCaption":"Tabelle einf\xfcgen","dxHtmlEditor-dialogUpdateImageCaption":"Bild Aktualisieren","dxHtmlEditor-dialogImageUpdateButton":"Aktualisieren","dxHtmlEditor-dialogImageAddButton":"Hinzuf\xfcgen","dxHtmlEditor-dialogImageSpecifyUrl":"Aus dem Web","dxHtmlEditor-dialogImageSelectFile":"Von diesem Ger\xe4t","dxHtmlEditor-dialogImageKeepAspectRatio":"Seitenverh\xe4ltnis beibehalten","dxHtmlEditor-dialogImageEncodeToBase64":"Als Base64 kodieren","dxHtmlEditor-heading":"\xdcberschrift","dxHtmlEditor-normalText":"Normaler Text","dxHtmlEditor-background":"Hintergrundfarbe","dxHtmlEditor-bold":"Fett","dxHtmlEditor-color":"Schriftfarbe","dxHtmlEditor-font":"Schriftart","dxHtmlEditor-italic":"Kursiv","dxHtmlEditor-link":"Link hinzuf\xfcgen","dxHtmlEditor-image":"Bild hinzuf\xfcgen","dxHtmlEditor-size":"Schriftgr\xf6\xdfe","dxHtmlEditor-strike":"Durchgestrichen","dxHtmlEditor-subscript":"Tiefgestellt","dxHtmlEditor-superscript":"Hochgestellt","dxHtmlEditor-underline":"Unterstrichen","dxHtmlEditor-blockquote":"Blockzitat","dxHtmlEditor-header":"Kopfzeile","dxHtmlEditor-increaseIndent":"Einzug vergr\xf6\xdfern","dxHtmlEditor-decreaseIndent":"Einzug verkleinern","dxHtmlEditor-orderedList":"Sortierte Liste","dxHtmlEditor-bulletList":"Aufz\xe4hlung","dxHtmlEditor-alignLeft":"Linksb\xfcndig","dxHtmlEditor-alignCenter":"Zentriert","dxHtmlEditor-alignRight":"Rechtsb\xfcndig","dxHtmlEditor-alignJustify":"Blocksatz","dxHtmlEditor-codeBlock":"Codeblock","dxHtmlEditor-variable":"Variable hinzuf\xfcgen","dxHtmlEditor-undo":"R\xfcckg\xe4ngig","dxHtmlEditor-redo":"Wiederholen","dxHtmlEditor-clear":"Formate l\xf6schen","dxHtmlEditor-insertTable":"Tabelle einf\xfcgen","dxHtmlEditor-insertHeaderRow":"Kopfzeile einf\xfcgen","dxHtmlEditor-insertRowAbove":"Spalte oberhalb einf\xfcgen","dxHtmlEditor-insertRowBelow":"Spalte unterhalb einf\xfcgen","dxHtmlEditor-insertColumnLeft":"Spalte links einf\xfcgen","dxHtmlEditor-insertColumnRight":"Spalte rechts einf\xfcgen","dxHtmlEditor-deleteColumn":"Spalte l\xf6schen","dxHtmlEditor-deleteRow":"Zeile l\xf6schen","dxHtmlEditor-deleteTable":"Tabelle l\xf6schen","dxHtmlEditor-cellProperties":"Zelleneigenschaften","dxHtmlEditor-tableProperties":"Tabelleneigenschaften","dxHtmlEditor-insert":"Einf\xfcgen","dxHtmlEditor-delete":"L\xf6schen","dxHtmlEditor-border":"Rahmen","dxHtmlEditor-style":"Stil","dxHtmlEditor-width":"Breite","dxHtmlEditor-height":"H\xf6he","dxHtmlEditor-borderColor":"Farbe","dxHtmlEditor-tableBackground":"Hintergrund","dxHtmlEditor-dimensions":"Abmessungen","dxHtmlEditor-alignment":"Ausrichtung","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertikal","dxHtmlEditor-paddingVertical":"Vertikaler Abstand","dxHtmlEditor-paddingHorizontal":"Horizontaler Abstand","dxHtmlEditor-pixels":"Pixel","dxHtmlEditor-list":"Liste","dxHtmlEditor-ordered":"Sortiert","dxHtmlEditor-bullet":"Aufz\xe4hlung","dxHtmlEditor-align":"Ausrichten","dxHtmlEditor-center":"Zentrieren","dxHtmlEditor-left":"Links","dxHtmlEditor-right":"Rechts","dxHtmlEditor-indent":"Einzug","dxHtmlEditor-justify":"Blocksatz","dxHtmlEditor-borderStyleNone":"none","dxHtmlEditor-borderStyleHidden":"hidden","dxHtmlEditor-borderStyleDotted":"dotted","dxHtmlEditor-borderStyleDashed":"dashed","dxHtmlEditor-borderStyleSolid":"solid","dxHtmlEditor-borderStyleDouble":"double","dxHtmlEditor-borderStyleGroove":"groove","dxHtmlEditor-borderStyleRidge":"ridge","dxHtmlEditor-borderStyleInset":"inset","dxHtmlEditor-borderStyleOutset":"outset","dxFileManager-newDirectoryName":"Ohne Titel","dxFileManager-rootDirectoryName":"Dateien","dxFileManager-errorNoAccess":"Zugriff verweigert. Die Operation kann nicht durchgef\xfchrt werden.","dxFileManager-errorDirectoryExistsFormat":"Ordner {0} existiert bereits.","dxFileManager-errorFileExistsFormat":"Datei {0} existiert bereits.","dxFileManager-errorFileNotFoundFormat":"Datei {0} wurde nicht gefunden.","dxFileManager-errorDirectoryNotFoundFormat":"Verzeichnis \'{0}\' nicht gefunden.","dxFileManager-errorWrongFileExtension":"Dateierweiterung ist nicht erlaubt.","dxFileManager-errorMaxFileSizeExceeded":"Die Dateigr\xf6\xdfe \xfcbersteigt die maximal erlaubte Gr\xf6\xdfe.","dxFileManager-errorInvalidSymbols":"Der Dateiname enth\xe4lt ung\xfcltige Zeichen.","dxFileManager-errorDefault":"Unbekannter Fehler","dxFileManager-errorDirectoryOpenFailed":"Das Verzeichnis kann nicht ge\xf6ffnet werden","dxFileManager-commandCreate":"Neues Verzeichnis","dxFileManager-commandRename":"Umbenennen","dxFileManager-commandMove":"Verschieben nach","dxFileManager-commandCopy":"Kopieren nach","dxFileManager-commandDelete":"L\xf6schen","dxFileManager-commandDownload":"Herunterladen","dxFileManager-commandUpload":"Dateien hochladen","dxFileManager-commandRefresh":"Aktualisieren","dxFileManager-commandThumbnails":"Miniaturansicht","dxFileManager-commandDetails":"Detailansicht","dxFileManager-commandClearSelection":"Auswahl aufheben","dxFileManager-commandShowNavPane":"Navigationsbereich ein-/ausschalten","dxFileManager-dialogDirectoryChooserMoveTitle":"Verschieben nach","dxFileManager-dialogDirectoryChooserMoveButtonText":"Verschieben","dxFileManager-dialogDirectoryChooserCopyTitle":"Kopieren nach","dxFileManager-dialogDirectoryChooserCopyButtonText":"Kopieren","dxFileManager-dialogRenameItemTitle":"Umbenennen","dxFileManager-dialogRenameItemButtonText":"Speichern","dxFileManager-dialogCreateDirectoryTitle":"Neues Verzeichnis","dxFileManager-dialogCreateDirectoryButtonText":"Erstellen","dxFileManager-dialogDeleteItemTitle":"L\xf6schen","dxFileManager-dialogDeleteItemButtonText":"L\xf6schen","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Sind Sie sicher, dass Sie {0} l\xf6schen m\xf6chten?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Sind Sie sicher, dass Sie {0} Elemente l\xf6schen m\xf6chten?","dxFileManager-dialogButtonCancel":"Abbrechen","dxFileManager-editingCreateSingleItemProcessingMessage":"Ein Verzeichnis wird in {0} erstellt","dxFileManager-editingCreateSingleItemSuccessMessage":"Ein Verzeichnis wurde in {0} erstellt","dxFileManager-editingCreateSingleItemErrorMessage":"Verzeichnis wurde nicht erstellt","dxFileManager-editingCreateCommonErrorMessage":"Verzeichnis wurde nicht erstellt","dxFileManager-editingRenameSingleItemProcessingMessage":"Ein Element in {0} wird umbenannt","dxFileManager-editingRenameSingleItemSuccessMessage":"Ein Element in {0} wurde umbenannt","dxFileManager-editingRenameSingleItemErrorMessage":"Element wurde nicht umbenannt","dxFileManager-editingRenameCommonErrorMessage":"Element wurde nicht umbenannt","dxFileManager-editingDeleteSingleItemProcessingMessage":"Ein Element aus {0} wird gel\xf6scht","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"{0} Elemente aus {1} werden gel\xf6scht","dxFileManager-editingDeleteSingleItemSuccessMessage":"Ein Element aus {0} wurde gel\xf6scht","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"{0} Elemente aus {1} wurden gel\xf6scht","dxFileManager-editingDeleteSingleItemErrorMessage":"Element wurde nicht gel\xf6scht","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} Elemente wurden nicht gel\xf6scht","dxFileManager-editingDeleteCommonErrorMessage":"Einige Elemente wurden nicht gel\xf6scht","dxFileManager-editingMoveSingleItemProcessingMessage":"Ein Element wird nach {0} verschoben","dxFileManager-editingMoveMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} verschoben","dxFileManager-editingMoveSingleItemSuccessMessage":"Ein Element wurde nach {0} verschoben","dxFileManager-editingMoveMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} verschoben","dxFileManager-editingMoveSingleItemErrorMessage":"Element wurde nicht verschoben","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} Elemente wurden nicht verschoben","dxFileManager-editingMoveCommonErrorMessage":"Einige Elemente wurden nicht verschoben","dxFileManager-editingCopySingleItemProcessingMessage":"Ein Element wird nach {0} kopiert","dxFileManager-editingCopyMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} kopiert","dxFileManager-editingCopySingleItemSuccessMessage":"Ein Element wurde nach {0} kopiert","dxFileManager-editingCopyMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} kopiert","dxFileManager-editingCopySingleItemErrorMessage":"Element wurde nicht kopiert","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} Elemente wurden nicht kopiert","dxFileManager-editingCopyCommonErrorMessage":"Einige Elemente wurden nicht kopiert","dxFileManager-editingUploadSingleItemProcessingMessage":"Ein Element wird nach {0} hochgeladen","dxFileManager-editingUploadMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} hochgeladen","dxFileManager-editingUploadSingleItemSuccessMessage":"Ein Element wurde nach {0} hochgeladen","dxFileManager-editingUploadMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} hochgeladen","dxFileManager-editingUploadSingleItemErrorMessage":"Element wurde nicht hochgeladen","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} Elemente wurden nicht hochgeladen","dxFileManager-editingUploadCanceledMessage":"Abgebrochen","dxFileManager-editingDownloadSingleItemErrorMessage":"Datei wurde nicht heruntergeladen","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} Dateien wurden nicht heruntergeladen","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Zuletzt ge\xe4ndert am","dxFileManager-listDetailsColumnCaptionFileSize":"Dateigr\xf6\xdfe","dxFileManager-listThumbnailsTooltipTextSize":"Gr\xf6\xdfe","dxFileManager-listThumbnailsTooltipTextDateModified":"Zuletzt ge\xe4ndert am","dxFileManager-notificationProgressPanelTitle":"Fortschritt","dxFileManager-notificationProgressPanelEmptyListText":"Keine Vorg\xe4nge","dxFileManager-notificationProgressPanelOperationCanceled":"Abgebrochen","dxDiagram-categoryGeneral":"Allgemein","dxDiagram-categoryFlowchart":"Flussdiagramm","dxDiagram-categoryOrgChart":"Organisationsdiagramm","dxDiagram-categoryContainers":"Container","dxDiagram-categoryCustom":"Benutzerdefiniert","dxDiagram-commandExportToSvg":"Export als SVG","dxDiagram-commandExportToPng":"Export als PNG","dxDiagram-commandExportToJpg":"Export als JPEG","dxDiagram-commandUndo":"R\xfcckg\xe4ngig","dxDiagram-commandRedo":"Wiederherstellen","dxDiagram-commandFontName":"Schriftartname","dxDiagram-commandFontSize":"Schriftgr\xf6\xdfe","dxDiagram-commandBold":"Fett","dxDiagram-commandItalic":"Kursiv","dxDiagram-commandUnderline":"Unterstrichen","dxDiagram-commandTextColor":"Textfarbe","dxDiagram-commandLineColor":"Linienfarbe","dxDiagram-commandLineWidth":"Linienst\xe4rke","dxDiagram-commandLineStyle":"Linienart","dxDiagram-commandLineStyleSolid":"Durchgezogen","dxDiagram-commandLineStyleDotted":"Gepunktet","dxDiagram-commandLineStyleDashed":"Gestrichelt","dxDiagram-commandFillColor":"F\xfcllfarbe","dxDiagram-commandAlignLeft":"Linksb\xfcndig","dxDiagram-commandAlignCenter":"Zentriert","dxDiagram-commandAlignRight":"Rechtsb\xfcndig","dxDiagram-commandConnectorLineType":"Konnektor Linienart","dxDiagram-commandConnectorLineStraight":"Gerade","dxDiagram-commandConnectorLineOrthogonal":"Rechtwinklig","dxDiagram-commandConnectorLineStart":"Konnektor Linienanfang","dxDiagram-commandConnectorLineEnd":"Konnektor Linienende","dxDiagram-commandConnectorLineNone":"Keine","dxDiagram-commandConnectorLineArrow":"Pfeil","dxDiagram-commandFullscreen":"Vollbild","dxDiagram-commandUnits":"Einheiten","dxDiagram-commandPageSize":"Seitengr\xf6\xdfe","dxDiagram-commandPageOrientation":"Seitenausrichtung","dxDiagram-commandPageOrientationLandscape":"Querformat","dxDiagram-commandPageOrientationPortrait":"Hochformat","dxDiagram-commandPageColor":"Seitenfarbe","dxDiagram-commandShowGrid":"Raster anzeigen","dxDiagram-commandSnapToGrid":"Am Raster ausrichten","dxDiagram-commandGridSize":"Rastergr\xf6\xdfe","dxDiagram-commandZoomLevel":"Vergr\xf6\xdferungsstufe","dxDiagram-commandAutoZoom":"Automatische Vergr\xf6\xdferung","dxDiagram-commandFitToContent":"An Inhalt anpassen","dxDiagram-commandFitToWidth":"An Breite anpassen","dxDiagram-commandAutoZoomByContent":"Automatisch an Inhalt anpassen","dxDiagram-commandAutoZoomByWidth":"Automatisch an Breite anpassen","dxDiagram-commandSimpleView":"Einfache Ansicht","dxDiagram-commandCut":"Ausschneiden","dxDiagram-commandCopy":"Kopieren","dxDiagram-commandPaste":"Einf\xfcgen","dxDiagram-commandSelectAll":"Alles ausw\xe4hlen","dxDiagram-commandDelete":"L\xf6schen","dxDiagram-commandBringToFront":"In den Vordergrund","dxDiagram-commandSendToBack":"In den Hintergrund","dxDiagram-commandLock":"Sperren","dxDiagram-commandUnlock":"Entsperren","dxDiagram-commandInsertShapeImage":"Bild einf\xfcgen...","dxDiagram-commandEditShapeImage":"Bild bearbeiten...","dxDiagram-commandDeleteShapeImage":"Bild l\xf6schen","dxDiagram-commandLayoutLeftToRight":"Von links nach rechts","dxDiagram-commandLayoutRightToLeft":"Von rechts nach links","dxDiagram-commandLayoutTopToBottom":"Von oben nach unten","dxDiagram-commandLayoutBottomToTop":"Von unten nach oben","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Abbrechen","dxDiagram-dialogInsertShapeImageTitle":"Bild einf\xfcgen","dxDiagram-dialogEditShapeImageTitle":"Bild bearbeiten","dxDiagram-dialogEditShapeImageSelectButton":"Bild ausw\xe4hlen","dxDiagram-dialogEditShapeImageLabelText":"oder Datei hier ablegen","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Eigenschaften","dxDiagram-uiSettings":"Einstellungen","dxDiagram-uiShowToolbox":"Toolbox anzeigen","dxDiagram-uiSearch":"Suchen","dxDiagram-uiStyle":"Stil","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Baum","dxDiagram-uiLayoutLayered":"Mehrschichtig","dxDiagram-uiDiagram":"Diagramm","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Objekt","dxDiagram-uiConnector":"Verbindung","dxDiagram-uiPage":"Seite","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rechteck","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Kreuz","dxDiagram-shapeTriangle":"Dreieck","dxDiagram-shapeDiamond":"Raute","dxDiagram-shapeHeart":"Herz","dxDiagram-shapePentagon":"F\xfcnfeck","dxDiagram-shapeHexagon":"Sechseck","dxDiagram-shapeOctagon":"Achteck","dxDiagram-shapeStar":"Stern","dxDiagram-shapeArrowLeft":"Pfeil nach links","dxDiagram-shapeArrowUp":"Pfeil nach oben","dxDiagram-shapeArrowRight":"Pfeil nach rechts","dxDiagram-shapeArrowDown":"Pfeil nach unten","dxDiagram-shapeArrowUpDown":"Pfeil nach oben und unten","dxDiagram-shapeArrowLeftRight":"Pfeil nach links und rechts","dxDiagram-shapeProcess":"Prozess","dxDiagram-shapeDecision":"Entscheidung","dxDiagram-shapeTerminator":"Abschluss","dxDiagram-shapePredefinedProcess":"Vordefinierter Prozess","dxDiagram-shapeDocument":"Dokument","dxDiagram-shapeMultipleDocuments":"Mehrere Dokumente","dxDiagram-shapeManualInput":"Manuelle Eingabe","dxDiagram-shapePreparation":"Vorbereitung","dxDiagram-shapeData":"Daten","dxDiagram-shapeDatabase":"Datenbank","dxDiagram-shapeHardDisk":"Festplatte","dxDiagram-shapeInternalStorage":"Lokaler Speicher","dxDiagram-shapePaperTape":"Lochstreifen","dxDiagram-shapeManualOperation":"Manuelle Verarbeitung","dxDiagram-shapeDelay":"Verz\xf6gerung","dxDiagram-shapeStoredData":"Gespeicherte Daten","dxDiagram-shapeDisplay":"Anzeige","dxDiagram-shapeMerge":"Zusammenf\xfchren","dxDiagram-shapeConnector":"Verbinder","dxDiagram-shapeOr":"Oder","dxDiagram-shapeSummingJunction":"Summierungsknoten","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertikaler Container","dxDiagram-shapeHorizontalContainer":"Horizontaler Container","dxDiagram-shapeCardDefaultText":"Name der Person","dxDiagram-shapeCardWithImageOnLeft":"Karte mit Bild links","dxDiagram-shapeCardWithImageOnTop":"Karte mit Bild oben","dxDiagram-shapeCardWithImageOnRight":"Karte mit Bild rechts","dxGantt-dialogTitle":"Titel","dxGantt-dialogStartTitle":"Beginn","dxGantt-dialogEndTitle":"Ende","dxGantt-dialogProgressTitle":"Fortschritt","dxGantt-dialogResourcesTitle":"Ressourcen","dxGantt-dialogResourceManagerTitle":"Ressourcen-Manager","dxGantt-dialogTaskDetailsTitle":"Aufgabendetails","dxGantt-dialogEditResourceListHint":"Ressourcenliste bearbeiten","dxGantt-dialogEditNoResources":"Keine Ressourcen","dxGantt-dialogButtonAdd":"Hinzuf\xfcgen","dxGantt-contextMenuNewTask":"Neue Aufgabe","dxGantt-contextMenuNewSubtask":"Neue Teilaufgabe","dxGantt-contextMenuDeleteTask":"Aufgabe l\xf6schen","dxGantt-contextMenuDeleteDependency":"Abh\xe4ngigkeit entfernen","dxGantt-dialogTaskDeleteConfirmation":"Abh\xe4ngigkeiten und Teilaufgaben werden zusammen mit dieser Aufgabe gel\xf6scht. M\xf6chten Sie diese Aufgabe l\xf6schen?","dxGantt-dialogDependencyDeleteConfirmation":"M\xf6chten Sie die Abh\xe4ngigkeit von der Aufgabe entfernen?","dxGantt-dialogResourcesDeleteConfirmation":"Wenn Sie diese Ressource l\xf6schen, wird sie von allen Aufgaben entfernt. M\xf6chten Sie die Ressource l\xf6schen? Ressource: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"Die Aufgabe, die Sie verschieben m\xf6chten, ist mit einer zweiten Aufgabe durch eine Abh\xe4ngigkeit verbunden. Die \xc4nderung w\xfcrde gegen Abh\xe4ngigkeitsregeln verstossen. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogConstraintViolationMessage":"Die Aufgabe, die Sie verschieben m\xf6chten, ist mit einer zweiten Aufgabe durch eine Abh\xe4ngigkeit verbunden. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogCancelOperationMessage":"Vorgang abbrechen","dxGantt-dialogDeleteDependencyMessage":"Abh\xe4ngigkeit l\xf6schen","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Aufgabe verschieben und Abh\xe4ngigkeit beibehalten","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"Die Aufgabe, die Sie zu verschieben versuchen, ist mit anderen Aufgaben durch Abh\xe4ngigkeitsbeziehungen verbunden. Die \xc4nderung verst\xf6\xdft daher gegen Abh\xe4ngigkeitsregeln. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"Die Aufgabe, die Sie zu verschieben versuchen, ist mit anderen Aufgaben durch Abh\xe4ngigkeitsbeziehungen verbunden. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogDeleteDependenciesMessage":"Abh\xe4ngigkeitsbeziehungen entfernen","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Die Aufgabe verschieben und die Abh\xe4ngigkeitsbeziehungen beibehalten.","dxGantt-undo":"R\xfcckg\xe4ngig","dxGantt-redo":"Wiederherstellen","dxGantt-expandAll":"Alle erweitern","dxGantt-collapseAll":"Alle reduzieren","dxGantt-addNewTask":"Neue Aufgabe hinzuf\xfcgen","dxGantt-deleteSelectedTask":"Ausgew\xe4hlte Aufgabe l\xf6schen","dxGantt-zoomIn":"Vergr\xf6\xdfern","dxGantt-zoomOut":"Verkleinern","dxGantt-fullScreen":"Vollbildmodus","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Aufsteigend sortieren","dxGantt-sortingDescendingText":"Absteigend sortieren","dxGantt-sortingClearText":"Sortierung aufheben","dxGantt-showResources":"Ressourcen Anzeigen","dxGantt-showDependencies":"Abh\xe4ngigkeiten Anzeigen","dxGantt-dialogStartDateValidation":"Startdatum muss sp\xe4ter sein als {0}","dxGantt-dialogEndDateValidation":"Enddatum muss sp\xe4ter sein als {0}","dxGallery-itemName":"Gallery item","dxMultiView-elementAriaRoleDescription":"MultiView","dxMultiView-elementAriaLabel":"Use the arrow keys or swipe to navigate between views","dxMultiView-itemAriaRoleDescription":"View","dxMultiView-itemAriaLabel":"{0} of {1}"}}')}},ei=>{ei(ei.s=87936)}]); |